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

:root {
  --accent:       #4F46E5;
  --accent-hover: #4338CA;
  --accent-light: #EEF2FF;
  --bg:           #F5F6FA;
  --surface:      #FFFFFF;
  --border:       #E5E7EB;
  --text-1:       #111827;
  --text-2:       #6B7280;
  --text-3:       #9CA3AF;
  --sidebar-w:    248px;
  --radius:       12px;
  --shadow:       0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);

  /* account status */
  --s-ativa:        #10B981; --s-ativa-bg:       #ECFDF5;
  --s-aquecendo:    #F59E0B; --s-aquecendo-bg:   #FFFBEB;
  --s-analise:      #3B82F6; --s-analise-bg:     #EFF6FF;
  --s-suspensa:     #EF4444; --s-suspensa-bg:    #FEF2F2;
  --s-cancelada:    #6B7280; --s-cancelada-bg:   #F3F4F6;

  /* creative status */
  --c-testando:   #3B82F6; --c-testando-bg:  #EFF6FF;
  --c-escalando:  #10B981; --c-escalando-bg: #ECFDF5;
  --c-vencedor:   #8B5CF6; --c-vencedor-bg:  #F5F3FF;
  --c-morto:      #9CA3AF; --c-morto-bg:     #F3F4F6;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  display: flex;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

/* ── SIDEBAR ──────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
}

.brand-logo { display: flex; align-items: center; gap: 10px; }

.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(79,70,229,.35);
}

.brand-text .brand-name {
  font-size: 15px; font-weight: 700;
  color: var(--text-1); letter-spacing: -0.3px;
}

.brand-text .brand-product {
  font-size: 11px; color: var(--accent);
  font-weight: 600; letter-spacing: 0.2px;
}

.brand-text .brand-sub {
  font-size: 10.5px; color: var(--text-3); margin-top: 1px;
}

.sidebar-nav { padding: 12px 10px; flex: 1; overflow-y: auto; }

.nav-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-3); padding: 10px 10px 5px;
}

.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 8px;
  cursor: pointer; color: var(--text-2);
  font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s;
  user-select: none;
}

.nav-item:hover  { background: var(--bg); color: var(--text-1); }
.nav-item.active { background: var(--accent-light); color: var(--accent); }
.nav-item svg    { width: 16px; height: 16px; flex-shrink: 0; }

.nav-badge {
  margin-left: auto;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 600;
  padding: 1px 7px; border-radius: 99px;
  min-width: 20px; text-align: center;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

/* ── BULK BAR ──────────────────────────────────────── */
.bulk-bar {
  background: #1e1b4b;
  color: white;
  padding: 9px 28px;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  position: sticky;
  top: 62px;
  z-index: 40;
  flex-wrap: wrap;
}
.bulk-bar.visible { display: flex; }
.bulk-bar-count { font-weight: 700; font-size: 14px; }
.bulk-bar-sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); flex-shrink: 0; }
.bulk-bar select {
  padding: 6px 10px; border-radius: 7px; border: none;
  font-size: 12px; font-family: inherit;
  background: rgba(255,255,255,.15); color: white;
  outline: none; cursor: pointer;
}
.bulk-bar select option { background: #1e1b4b; color: white; }
.btn-bulk {
  padding: 6px 12px; border-radius: 7px; border: none;
  font-size: 12px; font-weight: 500; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 5px;
  transition: opacity .15s;
}
.btn-bulk:hover { opacity: .82; }
.btn-bulk svg { width: 12px; height: 12px; flex-shrink: 0; }
.btn-bulk-ghost  { background: rgba(255,255,255,.15); color: white; }
.btn-bulk-danger { background: #EF4444; color: white; }
.bulk-bar-spacer { flex: 1; }
.btn-bulk-clear {
  background: none; border: none; color: rgba(255,255,255,.55);
  cursor: pointer; font-size: 20px; padding: 0 2px; line-height: 1;
  transition: color .15s;
}
.btn-bulk-clear:hover { color: white; }

/* ── CHECKBOX COL ──────────────────────────────────── */
.th-check, .td-check {
  width: 38px;
  padding-left: 14px !important;
  padding-right: 2px !important;
}
input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--accent); cursor: pointer;
  vertical-align: middle;
}

/* ── MAIN ─────────────────────────────────────────── */
.main { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}

.topbar-title { font-size: 15px; font-weight: 600; }
.topbar-sub   { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; border: none;
  transition: all .15s; font-family: inherit; white-space: nowrap;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text-1); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── CONTENT ──────────────────────────────────────── */
.content { padding: 28px; flex: 1; }

/* ── PERIOD FILTER ────────────────────────────────── */
.period-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.period-bar label { font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.period-bar input[type="date"] {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-1);
  background: var(--surface);
  outline: none;
  transition: border-color .15s;
}
.period-bar input[type="date"]:focus { border-color: var(--accent); }
.period-bar .btn-ghost-xs {
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.period-bar .btn-ghost-xs:hover { background: var(--bg); color: var(--text-1); }

/* ── SPEND CARDS ───────────────────────────────────── */
.spend-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.spend-card .stat-value { font-size: 22px; letter-spacing: -.8px; }
.spend-card.highlight { border-color: var(--accent-mid); background: var(--accent-light); }
.spend-card.highlight .stat-value { color: var(--accent); }

/* ── SPEND TABLE ───────────────────────────────────── */
.spend-section { margin-top: 28px; }
.metric-positive { color: #10B981; font-weight: 600; }
.metric-negative { color: #EF4444; font-weight: 600; }
.metric-zero     { color: var(--text-3); }

/* ── STATS ────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 28px;
}

.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}

.stat-dot   { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -1.2px; }
.stat-sub   { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ── SECTION ──────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}

.section-title { font-size: 14px; font-weight: 600; }
.section-sub   { font-size: 12px; color: var(--text-3); margin-top: 1px; }

/* ── DASH MODE TOGGLE ─────────────────────────────── */
.dash-mode-bar {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
  width: fit-content;
  margin-bottom: 24px;
}
.dash-mode-btn {
  padding: 7px 18px;
  border-radius: 7px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; border: none;
  background: transparent; color: var(--text-2);
  font-family: inherit; transition: all .15s;
}
.dash-mode-btn.selected {
  background: var(--surface); color: var(--accent);
  box-shadow: var(--shadow); font-weight: 600;
}

/* ── PROGRESS BAR ─────────────────────────────────── */
.progress-wrap {
  display: flex; align-items: center; gap: 8px;
}
.progress-bar {
  flex: 1; background: #E5E7EB; border-radius: 99px;
  height: 6px; overflow: hidden; min-width: 60px;
}
.progress-fill {
  height: 100%; border-radius: 99px; transition: width .3s;
}

/* ── CARD BADGE ───────────────────────────────────── */
.badge-card {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  background: #F0F0FF; color: var(--accent);
  font-family: 'SF Mono','Fira Code',monospace;
  letter-spacing: 0.5px;
}

/* ── FILTERS ──────────────────────────────────────── */
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }

.search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 300px; }

.search-wrap svg {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--text-3); pointer-events: none;
}

.search-input {
  width: 100%; padding: 8px 10px 8px 32px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit;
  background: var(--surface); color: var(--text-1);
  outline: none; transition: border-color .15s, box-shadow .15s;
}

.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.07); }

.filter-select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit; background: var(--surface);
  color: var(--text-1); outline: none; cursor: pointer;
}

.filter-select:focus { border-color: var(--accent); }

/* ── TABLE ────────────────────────────────────────── */
.table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: opacity .2s;
}

table { width: 100%; border-collapse: collapse; }

thead th {
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-3); background: #FAFBFC;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #FAFBFF; }

tbody td { padding: 11px 14px; font-size: 13px; vertical-align: middle; }

.td-mono { font-family: 'SF Mono','Fira Code',monospace; font-size: 12px; color: var(--text-2); }
.td-dim  { color: var(--text-2); font-size: 12px; }

/* ── BADGES ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
}

.badge-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.badge-ativa     { background: var(--s-ativa-bg);     color: var(--s-ativa);     }
.badge-aquecendo { background: var(--s-aquecendo-bg); color: var(--s-aquecendo); }
.badge-analise   { background: var(--s-analise-bg);   color: var(--s-analise);   }
.badge-suspensa  { background: var(--s-suspensa-bg);  color: var(--s-suspensa);  }
.badge-cancelada { background: var(--s-cancelada-bg); color: var(--s-cancelada); }

.badge-testando  { background: var(--c-testando-bg);  color: var(--c-testando);  }
.badge-escalando { background: var(--c-escalando-bg); color: var(--c-escalando); }
.badge-vencedor  { background: var(--c-vencedor-bg);  color: var(--c-vencedor);  }
.badge-morto     { background: var(--c-morto-bg);     color: var(--c-morto);     }

.badge-mcc  { background: var(--accent-light); color: var(--accent); font-size: 10.5px; }
.badge-solo { background: #F3F4F6; color: var(--text-2); font-size: 10.5px; }

/* ── ACTION BUTTONS ───────────────────────────────── */
.action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  border: none; background: transparent;
  cursor: pointer; color: var(--text-3); transition: all .15s;
}

.action-btn:hover        { background: var(--bg);  color: var(--text-1); }
.action-btn.danger:hover { background: #FEF2F2;    color: var(--s-suspensa); }
.action-btn svg { width: 14px; height: 14px; }

/* ── EMPTY STATE ──────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state svg  { width: 38px; height: 38px; margin-bottom: 12px; opacity: .3; }
.empty-state p    { font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.empty-state span { font-size: 12px; color: var(--text-3); }

/* ── MODAL ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(17,24,39,.4); backdrop-filter: blur(3px);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface); border-radius: 16px;
  width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  transform: translateY(14px) scale(.98);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-wide { max-width: 860px; }

.import-table-wrap { overflow-x: auto; margin-top: 16px; }
.import-table-wrap table thead th { background: #F0F0FF; color: var(--accent); }
.import-row-nome { font-weight: 600; font-size: 13px; }
.tag-novo   { display:inline-block; font-size:10px; font-weight:600; padding:1px 7px; border-radius:99px; background:#ECFDF5; color:#10B981; margin-left:6px; }
.tag-merge  { display:inline-block; font-size:10px; font-weight:600; padding:1px 7px; border-radius:99px; background:#FFF7ED; color:#F59E0B; margin-left:6px; }

.modal-header {
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
  border-radius: 16px 16px 0 0;
}

.modal-title { font-size: 15px; font-weight: 600; }

.modal-close {
  width: 28px; height: 28px; border-radius: 6px; border: none;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); transition: all .15s;
}

.modal-close:hover { background: var(--bg); color: var(--text-1); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: 20px 24px; }

.modal-footer {
  padding: 16px 24px 20px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; justify-content: flex-end;
  position: sticky; bottom: 0; background: var(--surface);
  border-radius: 0 0 16px 16px;
}

/* ── FORM ─────────────────────────────────────────── */
.form-section {
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-3);
  padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--border);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-row.full { grid-template-columns: 1fr; }
.form-row.thirds { grid-template-columns: 1fr 1fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 12px; font-weight: 500; color: var(--text-2); }

.form-input, .form-select, .form-textarea {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit; color: var(--text-1);
  background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.08);
}

.form-textarea { resize: vertical; min-height: 76px; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ── TOGGLE ───────────────────────────────────────── */
.toggle-group {
  display: flex; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 3px; gap: 2px;
}

.toggle-option {
  flex: 1; padding: 7px 10px; border-radius: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  cursor: pointer; text-align: center; transition: all .15s;
  border: none; background: transparent; font-family: inherit;
}

.toggle-option.selected { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }

/* ── VIEWS ────────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; }

/* ── TOAST ────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--text-1); color: white;
  padding: 10px 16px; border-radius: 9px;
  font-size: 13px; font-weight: 500; z-index: 999;
  transform: translateY(80px); opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--shadow-md); pointer-events: none;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── HAMBURGER ────────────────────────────────────── */
.btn-hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; color: var(--text-2); transition: all .15s;
  flex-shrink: 0;
}
.btn-hamburger:hover { background: var(--bg); color: var(--text-1); }
.btn-hamburger svg { width: 18px; height: 18px; }

/* ── SIDEBAR OVERLAY ──────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(17,24,39,.45);
  z-index: 99;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ══════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }

  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

  .topbar { padding: 0 20px; }
  .content { padding: 20px; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 768px)
══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Sidebar vira drawer off-canvas */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    z-index: 100;
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
  }

  /* Main ocupa tela toda */
  .main { margin-left: 0; }

  /* Topbar */
  .topbar { padding: 0 16px; height: 56px; gap: 10px; }
  .topbar-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
  .topbar-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-sub { display: none; }
  .btn-hamburger { display: inline-flex; }

  /* Bulk bar */
  .bulk-bar { padding: 8px 16px; top: 56px; gap: 6px; }
  .bulk-bar-sep { display: none; }

  /* Content */
  .content { padding: 16px; }

  /* Stats grid: 2 colunas no mobile */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .stat-card { padding: 14px 14px; }
  .stat-value { font-size: 22px; }

  /* Dash mode toggle: full width */
  .dash-mode-bar { width: 100%; margin-bottom: 16px; }
  .dash-mode-btn { flex: 1; padding: 7px 10px; font-size: 12px; }

  /* Filters: empilha */
  .filters { flex-direction: column; align-items: stretch; gap: 8px; }
  .search-wrap { max-width: 100%; }
  .filter-select { width: 100%; }

  /* Period bar */
  .period-bar { flex-direction: column; align-items: stretch; }
  .period-bar input[type="date"] { width: 100%; }

  /* Table: scroll horizontal */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
  table { min-width: 540px; }

  /* Section header */
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-header .topbar-actions { width: 100%; justify-content: flex-start; }

  /* Form rows: sempre 1 coluna */
  .form-row         { grid-template-columns: 1fr; }
  .form-row.thirds  { grid-template-columns: 1fr; }

  /* Modal: ocupa a tela toda no mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
  }
  .modal-overlay.open .modal { transform: translateY(0); }
  .modal-wide { max-width: 100%; }

  /* Toast: centralizado no bottom */
  .toast { left: 16px; right: 16px; bottom: 16px; text-align: center; }

  /* Login: padding menor no mobile */
  #login-screen > div {
    padding: 32px 24px !important;
    border-radius: 0 !important;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
