/* ====
   RESET & BASE STYLES
   ==== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Paleta base e tokens */
:root {
  /* Brand */
  --primary: #20A490;
  --primary-dark: #159A96;

  /* Fundos e cards (claro/escuro) */
  --background-light: #F5F5F5;
  --background-dark: #1A1A1A;
  --card-light: #FFFFFF;
  --card-dark: #2A2A2A;

  /* Cinzas e texto */
  --gray: #E8E8E8;
  --gray-dark: #333333;

  --text-light: #1A1D1E;
  --text-dark: #FFFFFF;
  --text-secondary-light: #5F6A6F;
  --text-secondary-dark: #C3CBD3;

  /* Bordas */
  --border-light: #E8E8E8;
  --border-dark: #3A3A3A;

  /* Estados */
  --success: #34C759;
  --warning: #FF9500;
  --error:   #FF3B30;
  --info:    #A3A3A0;

  /* Espaçamento */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition: 0.3s ease-in-out;
}

/* Theme scope variables mapping + improved readability tokens */
:root {
  --background: var(--background-light);
  --card: var(--card-light);

  /* tokens de legibilidade */
  --text-primary: var(--text-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: #8B9499;
  --section-title: #707A80;

  --text: var(--text-primary);
  --border: var(--border-light);
}

:root[data-theme="dark"],
body.dark-theme {
  --background: var(--background-dark);
  --card: var(--card-dark);
  --text-primary: var(--text-dark);
  --text-secondary: var(--text-secondary-dark);
  --text-muted: #8F98A0;
  --section-title: #9AA3A9;

  --text: var(--text-primary);
  --border: var(--border-dark);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====
   MOBILE CONTAINER
   ==== */
.mobile-container {
  max-width: 428px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--background);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

#content {
  min-height: calc(100vh - 70px);
  padding-bottom: 80px;
}

/* ====
   TYPOGRAPHY
   ==== */
h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--text);
}

h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

.text-small { font-size: 14px; }
.text-caption { font-size: 12px; color: var(--text-secondary); }

/* ====
   BUTTONS
   ==== */
.btn-primary {
  background-color: var(--primary);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition);
  width: 100%;
  cursor: pointer;
}
.btn-primary:hover { background-color: var(--primary-dark); transform: scale(1.02); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition);
  width: 100%;
  cursor: pointer;
}
.btn-secondary:hover { background-color: var(--primary); color: white; }

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 0;
}
.btn-link:hover { text-decoration: underline; }

/* Botão primário de atenção (amarelo gradiente) */
.btn-warning-gradient {
  background: linear-gradient(135deg, #FFB200 0%, #FF9500 100%);
  color: #1A1A1A;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  transition: all var(--transition);
  width: 100%;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 149, 0, 0.28);
}
.btn-warning-gradient:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 149, 0, 0.35);
}
.btn-warning-gradient:active { transform: translateY(0); }

/* ====
   CARDS
   ==== */
.card {
  background-color: var(--card);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: var(--spacing-md);
  transition: all var(--transition);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background);
  color: var(--primary);
  font-size: 20px;
  border: 1px solid var(--border);
}

.card-title { font-size: 16px; font-weight: 600; margin: 0; color: var(--text); }
.card-description { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* Normaliza ícones Font Awesome */
.card-icon i,
.notification-icon i,
.profile-item-icon i,
.header-icon i,
.list-icon i {
  line-height: 1;
  display: inline-block;
}

/* ====
   FORMS
   ==== */
.form-group { margin-bottom: var(--spacing-md); }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: var(--spacing-sm); color: var(--text); }
.form-control {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px; transition: all var(--transition); background-color: var(--card); color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(32, 164, 144, 0.1); }
.form-control::placeholder { color: var(--text-muted); }

/* ====
   BOTTOM NAVIGATION
   ==== */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); max-width: 428px; width: 100%;
  background-color: var(--card); border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; padding: 8px 0; z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text-secondary); font-size: 12px; padding: 8px; cursor: pointer;
  transition: all var(--transition); position: relative;
}
.nav-item i { font-size: 20px; margin-bottom: 4px; }
.nav-item.active { color: var(--primary); }
.nav-item .badge-dot {
  position: absolute; top: 8px; right: 50%; transform: translateX(12px); width: 8px; height: 8px;
  background-color: var(--error); border-radius: 50%; display: none;
}
.nav-item .badge-dot.show { display: block; }

/* ====
   HEADER
   ==== */
.app-header {
  background-color: var(--card);
  padding: var(--spacing-md);
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border);
}
.header-logo { font-size: 20px; font-weight: 700; color: var(--primary); }
.header-actions { display: flex; gap: var(--spacing-sm); }
.header-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--background); color: var(--text);
  cursor: pointer; transition: all var(--transition); position: relative; border: 1px solid var(--border);
}
.header-icon:hover { background-color: var(--gray); }
.header-icon .badge {
  position: absolute; top: -4px; right: -4px; background-color: var(--error); color: white;
  font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: var(--radius-full); min-width: 18px; text-align: center;
}

/* ====
   SCREENS
   ==== */
.screen { padding: var(--spacing-md); animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }

/* Splash prateada com brilho animado */
.splash-screen {
  position: relative; overflow: hidden; min-height: 100vh; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0; padding: var(--spacing-xl);
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(100% 70% at 80% 90%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(135deg, #D9DADA 0%, #BFC3C8 45%, #A9B0B7 55%, #E3E5E7 100%);
  color: #FFFFFF; text-align: center;
}
:root[data-theme="dark"] .splash-screen {
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(100% 70% at 80% 90%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(135deg, #B9BDC2 0%, #9AA1A9 45%, #858D96 55%, #C8CCD0 100%);
}
.splash-screen::after {
  content: ""; position: absolute; top: -20%; left: -120%; width: 240%; height: 140%;
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.35) 45%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0.35) 55%, rgba(255,255,255,0) 70%);
  transform: rotate(0.5deg); animation: sweep-shine 2.6s ease-in-out 0.4s infinite; pointer-events: none; mix-blend-mode: screen;
}
@keyframes sweep-shine { 0% { transform: translateX(0) rotate(0.5deg);} 52% { transform: translateX(60%) rotate(0.5deg);} 100% { transform: translateX(120%) rotate(0.5deg);} }
.splash-logo { font-size: 48px; margin-bottom: var(--spacing-md); animation: pulse 2s infinite; }
.splash-logo img { height: 90px; filter: drop-shadow(0 2px 6px rgba(255,255,255,0.22)); }
@keyframes pulse { 0%, 100% { transform: scale(1);} 50% { transform: scale(1.05);} }
.splash-title { font-size: 32px; font-weight: 700; margin-bottom: var(--spacing-sm); text-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.splash-subtitle { font-size: 16px; opacity: 0.95; text-shadow: 0 1px 2px rgba(0,0,0,0.25); }

/* Login */
.login-screen { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: var(--spacing-xl); }
.login-logo { text-align: center; margin-bottom: var(--spacing-xl); }
.login-logo i { font-size: 64px; color: var(--primary); }
.login-logo h1 { color: var(--primary); margin-top: var(--spacing-md); }
.login-form { margin-bottom: var(--spacing-lg); }
.login-links { text-align: center; margin-top: var(--spacing-lg); }

/* Home */
.home-screen { padding-bottom: var(--spacing-xl); }
.welcome-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; padding: var(--spacing-lg); border-radius: var(--radius-md); margin-bottom: var(--spacing-lg);
}
.welcome-title { font-size: 24px; font-weight: 700; margin-bottom: var(--spacing-sm); }
.welcome-subtitle { font-size: 14px; opacity: 0.9; }

.quick-actions {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md); margin-bottom: var(--spacing-lg);
}
.quick-action-card {
  background-color: var(--card); border-radius: var(--radius-md);
  padding: var(--spacing-md); text-align: center; box-shadow: var(--shadow-md);
  cursor: pointer; transition: all var(--transition); border: 1px solid var(--border);
}
.quick-action-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quick-action-icon { font-size: 32px; color: var(--primary); margin-bottom: var(--spacing-sm); }
.quick-action-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); }

/* Cards Carousel */
.cards-carousel { overflow-x: auto; padding-bottom: 8px; margin-bottom: var(--spacing-lg); }
.cards-carousel::-webkit-scrollbar { height: 8px; }
.carousel-track { display: flex; gap: 12px; }
.bank-card { flex: 0 0 320px; aspect-ratio: 85 / 54; border-radius: 14px; padding: 16px; color: white; box-shadow: var(--shadow-lg); position: relative; }
.card-chip { position: absolute; width: 36px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5)); top: 16px; left: 16px; }
.card-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.card-brand { letter-spacing: 0.5px; }
.card-number { font-family: monospace; font-size: 18px; letter-spacing: 2px; margin-top: 24px; }
.card-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; }
.label { font-size: 9px; opacity: 0.85; }
.value { font-size: 12px; font-weight: 600; }

/* Update Banner (se for usar em outra área) */
.update-banner {
  background-color: var(--info); color: white; padding: var(--spacing-md);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--spacing-md);
}
.update-banner-content { flex: 1; }
.update-banner-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.update-banner-text { font-size: 12px; opacity: 0.9; }
.update-banner-btn {
  background-color: white; color: var(--info); border: none; padding: 8px 16px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 12px; cursor: pointer; white-space: nowrap;
}

/* Notification List */
.notification-tabs {
  display: flex; gap: var(--spacing-sm); margin-bottom: var(--spacing-md); border-bottom: 1px solid var(--border);
}
.tab-button {
  flex: 1; background: none; border: none; padding: var(--spacing-md) 0;
  font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; position: relative; transition: all var(--transition);
}
.tab-button.active { color: var(--primary); }
.tab-button.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background-color: var(--primary); }
.notification-group { margin-bottom: var(--spacing-lg); }
.notification-group-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; margin-bottom: var(--spacing-sm); }
.notification-card {
  background-color: var(--card); border-radius: var(--radius-md); padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm); display: flex; gap: var(--spacing-md); cursor: pointer; transition: all var(--transition); position: relative; border: 1px solid var(--border);
}
.notification-card:hover { background-color: var(--background); }
.notification-card.unread { border-left: 3px solid var(--primary); }
.notification-icon {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background-color: var(--background); color: var(--primary); flex-shrink: 0; border: 1px solid var(--border);
}
.notification-content { flex: 1; }
.notification-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.notification-description { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.notification-time { font-size: 11px; color: var(--text-secondary); }

/* Profile Screen */
.profile-header { text-align: center; padding: var(--spacing-lg) 0; margin-bottom: var(--spacing-lg); }
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 32px; font-weight: 700;
}
.profile-name { font-size: 20px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.profile-email { font-size: 14px; color: var(--text-secondary); }
.profile-section { margin-bottom: var(--spacing-lg); }
.profile-section-title {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; margin-bottom: var(--spacing-sm); padding: 0 var(--spacing-sm);
}
.profile-item {
  background-color: var(--card); padding: var(--spacing-md);
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: all var(--transition); border-bottom: 1px solid var(--border);
}
.profile-item:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.profile-item:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); border-bottom: none; }
.profile-item:only-child { border-radius: var(--radius-md); }
.profile-item:hover { background-color: var(--background); }
.profile-item-left { display: flex; align-items: center; gap: var(--spacing-md); }
.profile-item-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background-color: var(--background); color: var(--primary);
  border: 1px solid var(--border);
}
.profile-item-text { font-size: 14px; font-weight: 500; color: var(--text); }
.profile-item-right { display: flex; align-items: center; gap: var(--spacing-sm); }

/* Toggle Switch */
.toggle-switch { position: relative; width: 48px; height: 28px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--gray); transition: 0.3s; border-radius: var(--radius-full); box-shadow: 0 0 0 1px var(--border) inset;
}
.toggle-slider:before {
  position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: var(--card);
  transition: 0.3s; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
input:checked + .toggle-slider { background-color: var(--primary); box-shadow: 0 0 0 1px #0f7f68 inset; }
input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Search Bar */
.search-bar { position: relative; margin-bottom: var(--spacing-md); }
.search-input {
  width: 100%; padding: 12px 16px 12px 44px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; background-color: var(--card); color: var(--text);
}
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }

/* Filter Chips */
.filter-chips { display: flex; gap: var(--spacing-sm); overflow-x: auto; padding-bottom: var(--spacing-sm); margin-bottom: var(--spacing-md); -webkit-overflow-scrolling: touch; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  background-color: var(--card); border: 1px solid var(--border); padding: 8px 16px;
  border-radius: var(--radius-full); font-size: 13px; white-space: nowrap; cursor: pointer; transition: all var(--transition);
}
.filter-chip.active { background-color: var(--primary); color: white; border-color: var(--primary); }

/* Empty State */
.empty-state { text-align: center; padding: var(--spacing-xl); }
.empty-state-icon { font-size: 64px; color: var(--text-secondary); margin-bottom: var(--spacing-md); }
.empty-state-title { font-size: 18px; font-weight: 600; margin-bottom: var(--spacing-sm); color: var(--text); }
.empty-state-text { font-size: 14px; color: var(--text-secondary); }

/* Loading Overlay */
.loading-overlay { position: fixed; inset: 0; background-color: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 9999; }

/* Back Button */
.back-button { background: none; border: none; color: var(--text); font-size: 20px; cursor: pointer; padding: var(--spacing-sm); margin-right: var(--spacing-sm); }

/* Accordion */
.accordion-item {
  background-color: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm); overflow: hidden;
}
.accordion-header {
  padding: var(--spacing-md); cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: all var(--transition);
}
.accordion-header:hover { background-color: var(--background); }
.accordion-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: var(--spacing-sm); color: var(--text); }
.accordion-icon { transition: transform var(--transition); }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.accordion-item.active .accordion-content { max-height: 2000px; }
.accordion-body { padding: 0 var(--spacing-md) var(--spacing-md); }
.info-row { display: flex; justify-content: space-between; padding: var(--spacing-sm) 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.info-value { font-size: 13px; font-weight: 600; text-align: right; color: var(--text); }

/* Table */
.table-responsive { overflow-x: auto; margin-top: var(--spacing-md); }
.custom-table { width: 100%; font-size: 13px; }
.custom-table th { background-color: var(--background); padding: var(--spacing-sm); text-align: left; font-weight: 600; color: var(--text-secondary); }
.custom-table td { padding: var(--spacing-sm); border-bottom: 1px solid var(--border); }

/* List pattern (Módulos) */
.section-modulos { padding: var(--spacing-md); }
.list { display:flex; flex-direction:column; gap: 12px; }
.list-item{
  appearance:none; border:0; text-align:left; width:100%;
  background: var(--card); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  border: 1px solid var(--border); padding: 12px; display:flex; align-items:center; gap:12px;
}
.list-item:active { transform: scale(0.996); }
.leading{
  width:48px; height:48px; border-radius: 12px; display:flex; align-items:center; justify-content:center;
  background-color: var(--background);
  border: 1px solid var(--border);
  flex-shrink:0;
}
.list-icon { font-size: 20px; color: var(--primary); display:flex; align-items:center; justify-content:center; }
.content{ flex:1; min-width:0; }
.row{ display:flex; align-items:center; gap:8px; }
.title{ font-size:16px; font-weight:700; color: var(--text); line-height:1.2; }
.subtitle{ font-size:14px; color: var(--text-secondary); margin-top:2px; }
.meta{ font-size:12px; color: var(--text-secondary); margin-left:auto; }
.trailing{ color: var(--primary); display:flex; align-items:center; justify-content:center; width:24px; }

/* Responsive */
@media (max-width: 428px) {
  .mobile-container { max-width: 100%; }
  .bottom-nav { max-width: 100%; }
}

/* Utility Classes */
.text-primary  { color: var(--primary) !important; }
.text-success  { color: var(--success) !important; }
.text-warning  { color: var(--warning) !important; }
.text-error    { color: var(--error) !important; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.p-1  { padding: var(--spacing-sm); }
.p-2  { padding: var(--spacing-md); }
.p-3  { padding: var(--spacing-lg); }

/* Update Screen (escopo) */
.update-screen { background-color: var(--background-dark); }
.update-screen .update-card { /* escopo dark já aplicado inline */ }
.warning-icon { border-radius: 20px; }
.update-title { color: #FFFFFF; }
.update-text  { color: #C3CBD3; }

/* Padronização: Preferências igual a Privacidade */
.profile-section > div > .profile-item {
  min-height: 64px;
  padding: var(--spacing-md);
}

.profile-item-icon {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.profile-item-text {
  font-size: 15px;
  line-height: 1.2;
}

/* Agrupamento visual coeso (itens empilhados) */
.profile-section > div {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.profile-section > div .profile-item {
  border: 1px solid var(--border);
  background-color: var(--card);
  margin-bottom: 0;
}

.profile-section > div .profile-item + .profile-item {
  border-top: none; /* sem dupla borda entre itens */
}

/* Toggle consistente */
.toggle-switch { width: 50px; height: 28px; }
.toggle-slider:before { width: 20px; height: 20px; }

/* Font Awesome: reforço de fonte e peso + proteção */
.fas, .far { font-family: "Font Awesome 5 Free"; }
.fab { font-family: "Font Awesome 5 Brands"; }
.fas { font-weight: 900; }
.far { font-weight: 400; }
.fas::before, .far::before, .fab::before { display: inline-block; }

/* Consistência visual dos ícones em listas/cards */
.list-icon, .quick-action-icon, .notification-icon, .card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  color: var(--primary);
  border: 1px solid var(--border);
}

.list-icon i, .quick-action-icon i, .notification-icon i, .card-icon i {
  font-size: 18px;
  line-height: 1;
}