/* ============================================================
   Meteler Grup Yönetim Hizmetleri — ortak stiller
   Tasarım dili: lacivert + altın palet (marka afişlerinden),
   Bricolage Grotesque + Figtree, 20px kartlar, pill butonlar
   ============================================================ */

:root {
  --bg: #F4F6FB;
  --surface: #ffffff;
  --surface-2: #F7F9FC;
  --ink: #14284A;
  --ink-inverse: #ffffff;
  --body: #46566E;
  --muted: #7B8AA3;
  --accent: #1D4E89;
  --accent-deep: #16345E;
  --accent-bright: #5B84C0;
  --gold: #C6A15B;
  --gold-deep: #A67C2E;
  --gold-soft: rgba(198, 161, 91, .14);
  --teal: #33619B;
  --border: #DBE2EE;
  --border-light: #EAEFF7;
  --border-strong: #C9D5E7;
  --danger: #C0392B;
  --danger-bg: rgba(192, 57, 43, .08);
  --warn: #B9770E;
  --warn-bg: rgba(185, 119, 14, .1);
  --ok: #1E9E6A;
  --ok-bg: rgba(30, 158, 106, .12);
  --info-bg: rgba(51, 97, 155, .12);
  --sidebar: #0E2038;
  --shadow-card: 0 4px 18px rgba(14, 32, 56, .06);
  --shadow-pop: 0 22px 44px rgba(14, 32, 56, .14);
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Figtree', sans-serif;
}

[data-theme="dark"] {
  --bg: #0A1526;
  --surface: #122744;
  --surface-2: #0E2038;
  --ink: #EAF0FA;
  --body: #B7C3D6;
  --muted: #8394AD;
  --gold: #D4B872;
  --gold-deep: #D9BE7A;
  --border: #24354F;
  --border-light: #1E2F47;
  --border-strong: #2C405D;
  --sidebar: #070E1C;
  --shadow-card: 0 4px 18px rgba(0, 0, 0, .3);
  --shadow-pop: 0 22px 44px rgba(0, 0, 0, .45);
  --ok: #34C98B;
  --ok-bg: rgba(30, 158, 106, .18);
  --info-bg: rgba(51, 97, 155, .2);
  --danger-bg: rgba(231, 111, 94, .15);
  --warn-bg: rgba(222, 170, 90, .16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent-deep); }
img { max-width: 100%; }

h1, h2, h3, .display { font-family: var(--font-display); color: var(--ink); }

/* ── Butonlar ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(29, 78, 137, .24);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(29, 78, 137, .34); }
.btn.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: none;
  font-weight: 700;
}
.btn.btn-outline:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn.btn-sm { padding: 7px 14px; font-size: 12px; box-shadow: none; }
.btn.btn-ghost {
  background: transparent;
  color: var(--accent-deep);
  box-shadow: none;
  border: 1.5px solid var(--border);
}
.btn.btn-ghost:hover { border-color: var(--accent); }
.btn.btn-danger { background: var(--danger); box-shadow: 0 8px 20px rgba(192, 57, 43, .25); }

/* ── Form elemanları ── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13px; font-weight: 800; color: var(--ink); }
.field small { color: var(--muted); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.input:focus { border-color: var(--accent); background: var(--surface); }
textarea.input { resize: vertical; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--body); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ── Kartlar ── */
.card {
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.card-link { font-size: 13px; font-weight: 700; color: var(--accent-deep); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ── Rozetler ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-info { background: var(--info-bg); color: var(--teal); }
.badge-neutral { background: rgba(20, 40, 74, .08); color: var(--ink); }
[data-theme="dark"] .badge-neutral { background: rgba(234, 246, 242, .12); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }

/* ── Satır tabanlı tablolar (tasarımdaki grid satırları) ── */
.rows { display: flex; flex-direction: column; }
.row-line {
  display: grid;
  gap: 0 16px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1.5px solid var(--border-light);
  font-size: 14px;
}
.row-line:last-child { border-bottom: none; }
.row-line .strong { font-weight: 700; color: var(--ink); }
.row-line .dim { font-size: 13px; color: var(--muted); }
.row-line .amount { font-weight: 800; color: var(--ink); }
.row-line .amount.ok { color: var(--ok); }

/* ── Veri tablosu ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
table.table td { padding: 12px; border-bottom: 1.5px solid var(--border-light); vertical-align: middle; }
table.table tr:last-child td { border-bottom: none; }
table.table td .strong { font-weight: 700; color: var(--ink); }

/* ── Flash mesajlar ── */
.flash { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.flash > div {
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
}
.flash .flash-success { background: var(--ok-bg); color: var(--ok); border-color: rgba(30, 158, 106, .25); }
.flash .flash-error { background: var(--danger-bg); color: var(--danger); border-color: rgba(192, 57, 43, .25); }
.flash .flash-info { background: var(--info-bg); color: var(--teal); border-color: rgba(51, 97, 155, .25); }

/* ============================================================
   PANEL YERLEŞİMİ (yönetici + sakin)
   ============================================================ */
.panel-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
/* grid/flex öğelerinin min-content genişliğiyle sayfayı taşırmasını engelle */
.panel-shell > *,
.main > *,
.grid-2 > *, .grid-2-even > *, .stat-grid > *, .stack > *,
.card, .table-wrap { min-width: 0; }
.card-head { flex-wrap: wrap; }
.page-actions form { flex-wrap: wrap; }

.sidebar {
  background: var(--sidebar);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand { padding: 4px 14px 20px; text-decoration: none; display: flex; align-items: center; gap: 11px; }
.sidebar-brand .brand-text { display: flex; flex-direction: column; }
.sidebar-brand .brand-mark { color: var(--gold); }
.sidebar-brand .name { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: #fff; letter-spacing: -.3px; }
.sidebar-brand .tag { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .45); }

/* marka işareti — ortak */
.brand-mark { flex: 0 0 auto; color: var(--gold-deep); }

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.side-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-link.active { background: var(--accent); color: #fff; font-weight: 700; }
.side-link svg { flex: 0 0 auto; }
.side-section {
  padding: 18px 14px 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
}

.side-nav { display: flex; flex-direction: column; gap: 6px; }
.side-spacer { flex: 1; }
.side-utils { display: flex; flex-direction: column; gap: 6px; }
.side-utils form { margin: 0; }

/* hamburger — yalnızca mobil üst çubukta görünür */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .85);
  cursor: pointer;
}
.nav-burger:hover { color: #fff; }
.nav-burger .icon-close { display: none; }
.sidebar.nav-open .nav-burger .icon-open { display: none; }
.sidebar.nav-open .nav-burger .icon-close { display: block; }

.side-user {
  margin-top: 8px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  gap: 11px;
}
.side-user .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 13px;
  flex: 0 0 auto;
}
.side-user .who { display: flex; flex-direction: column; min-width: 0; }
.side-user .who b { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { font-size: 11px; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { padding: 32px 40px 60px; max-width: 1160px; width: 100%; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.page-head p { margin: 0; font-size: 14.5px; color: var(--body); }
.page-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* site seçici */
.site-switcher { position: relative; margin: 2px 0 14px; }
.site-switcher select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}
.site-switcher select option { color: #14284A; background: #fff; }

/* istatistik kartları */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--border); }
.stat-card.dark { background: #0E2038; border-color: #0E2038; color: #fff; }
[data-theme="dark"] .stat-card.dark { background: #060E1C; border-color: #17294A; }
.stat-card .label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.stat-card.dark .label { color: rgba(255, 255, 255, .6); }
.stat-card .value { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.stat-card .sub { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--ok); }
.stat-card.dark .sub { color: rgba(255, 255, 255, .55); font-weight: 600; }
.stat-card .bar { margin-top: 12px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.stat-card .bar > i { display: block; height: 100%; border-radius: 3px; background: var(--gold); }

.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.grid-2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* mini duyuru/talep kartları */
.mini-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1.5px solid var(--border-light);
}
.mini-card .t { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.mini-card .t b { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.mini-card .meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.mini-card p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--body); }

/* filtre çubuğu */
.filterbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.filterbar .field { min-width: 150px; }

/* modallar (details tabanlı, JS'siz çalışır) */
.modal-details > summary { list-style: none; cursor: pointer; }
.modal-details > summary::-webkit-details-marker { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 18, 34, .58);
  display: grid; place-items: center;
  padding: 24px;
}
.modal-box {
  width: 100%; max-width: 520px;
  background: var(--surface);
  border-radius: 22px;
  border: 1.5px solid var(--border);
  padding: 30px 32px;
  box-shadow: var(--shadow-pop);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box h3 { margin: 0 0 18px; font-size: 20px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }

/* boş durum */
.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.empty .big { font-size: 40px; display: block; margin-bottom: 10px; }

.panel-footer {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 18px;
  border-top: 1.5px solid var(--border-light);
}
.panel-footer span { font-size: 12.5px; color: var(--muted); }
.panel-footer a { font-size: 12.5px; color: var(--muted); font-weight: 600; text-decoration: none; }
.panel-footer a:hover { color: var(--ink); }
.panel-footer a.ondiso { color: var(--accent-deep); font-weight: 700; }

/* tema düğmesi */
.theme-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border: none; border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, .6);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.theme-toggle:hover { color: #fff; }

/* ============================================================
   GİRİŞ SAYFALARI
   ============================================================ */
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; }
.auth-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 48px; }
.brand-link { display: flex; flex-direction: row; align-items: center; gap: 11px; text-decoration: none; }
.brand-link .brand-text { display: flex; flex-direction: column; }
.brand-link .name { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.3px; }
.brand-link .tag { font-size: 10.5px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted); }
.auth-back { font-size: 14px; font-weight: 700; color: var(--body); text-decoration: none; }
.auth-back:hover { color: var(--ink); }

.auth-main { flex: 1; display: grid; place-items: center; padding: 40px 24px 80px; }
.auth-card { width: 100%; max-width: 430px; border-radius: 26px; padding: 44px 42px; }
.auth-card.light { background: var(--surface); border: 1.5px solid var(--border); box-shadow: 0 24px 60px rgba(14, 32, 56, .1); }
.auth-card.dark { background: #0E2038; box-shadow: 0 24px 60px rgba(14, 32, 56, .32); }
.auth-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.auth-card h1 { margin: 0 0 8px; font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.auth-card.dark h1 { color: #fff; }
.auth-card .lead { margin: 0 0 28px; font-size: 14.5px; line-height: 1.65; color: var(--body); }
.auth-card.dark .lead { color: rgba(255, 255, 255, .7); }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.auth-card.dark .field > span { color: #fff; }
.auth-card.dark .input {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.auth-card.dark .input::placeholder { color: rgba(255, 255, 255, .4); }
.auth-card.dark .input:focus { border-color: var(--accent); background: rgba(255, 255, 255, .12); }
.auth-card.dark .checkbox { color: rgba(255, 255, 255, .75); }
.auth-row { display: flex; align-items: center; justify-content: space-between; }
.auth-alt { margin-top: 26px; padding-top: 22px; border-top: 1.5px solid var(--border); display: flex; justify-content: center; gap: 6px; font-size: 13.5px; }
.auth-card.dark .auth-alt { border-color: rgba(255, 255, 255, .15); }
.auth-alt span { color: var(--body); font-weight: 600; }
.auth-card.dark .auth-alt span { color: rgba(255, 255, 255, .7); }
.auth-alt a { font-weight: 800; text-decoration: none; color: var(--accent-deep); }
.auth-card.dark .auth-alt a { color: var(--accent-bright); }
.auth-alt a:hover { text-decoration: underline; }
.auth-footer { padding: 20px 48px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.auth-footer span { font-size: 12.5px; color: var(--muted); }
.auth-footer a { font-size: 12.5px; color: var(--muted); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { color: var(--ink); }
.auth-footer a.ondiso { color: var(--accent-deep); font-weight: 700; }
.public-footer span a { color: var(--accent-deep); font-weight: 700; text-decoration: none; }

/* ============================================================
   YASAL SAYFALAR + HATALAR
   ============================================================ */
.legal-main { max-width: 820px; margin: 0 auto; padding: 64px 32px 100px; }
.eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--accent-deep);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.legal-main h1 { margin: 20px 0 10px; font-size: 38px; font-weight: 800; letter-spacing: -.8px; }
.legal-date { margin: 0 0 40px; font-size: 14px; color: var(--muted); font-weight: 600; }
.legal-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 22px; padding: 40px 42px; display: flex; flex-direction: column; gap: 28px; }
.legal-card h2 { margin: 0 0 10px; font-size: 21px; font-weight: 700; }
.legal-card p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--body); }
.public-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 48px; border-bottom: 1.5px solid var(--border); background: var(--surface); }
.public-footer { padding: 24px 48px; display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; border-top: 1.5px solid var(--border); background: var(--surface); }
.public-footer a { font-size: 13px; font-weight: 700; color: var(--accent-deep); text-decoration: none; }
.public-footer span { font-size: 13px; color: var(--muted); }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.error-page .code { font-family: var(--font-display); font-size: 90px; font-weight: 800; color: var(--gold-deep); line-height: 1; }

/* ── Duyarlılık ── */
@media (max-width: 1024px) {
  /* !important: bazı sayfalar kolon oranlarını inline style ile değiştiriyor */
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-2, .grid-2-even { grid-template-columns: 1fr !important; }
}
@media (max-width: 860px) {
  .panel-shell { grid-template-columns: 1fr; }

  /* kenar çubuğu → kompakt üst çubuk + hamburger menü */
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 70;
    height: auto;
    overflow: visible;
    padding: 12px 16px;
    gap: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    box-shadow: 0 6px 18px rgba(8, 18, 34, .2);
  }
  .sidebar-brand { padding: 0; grid-column: 1; grid-row: 1; }
  .sidebar-brand br { display: none; }
  .sidebar-brand .name { font-size: 17px; margin-right: 8px; }

  /* menü ve site seçici varsayılan gizli — hamburger açar */
  .site-switcher { display: none; grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .site-switcher select { padding: 10px 12px; }
  .side-nav { display: none; grid-column: 1 / -1; grid-row: 3; }

  .sidebar.nav-open .site-switcher { display: block; }
  .sidebar.nav-open .side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: calc(100dvh - 128px);
    overflow-y: auto;
    padding-bottom: 8px;
  }
  .sidebar.nav-open .side-link { padding: 12px 14px; }
  .side-section { padding: 14px 14px 4px; }
  .side-spacer, .side-user { display: none; }

  /* tema + çıkış + hamburger: sağ üstte ikon butonlar */
  .side-utils {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    gap: 4px;
    align-items: center;
  }
  .side-utils .theme-toggle {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
  }
  .side-utils .theme-toggle span { display: none; }
  .nav-burger { display: inline-flex; }

  .main { padding: 24px 18px 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .stat-grid { grid-template-columns: 1fr !important; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .auth-header, .auth-footer { padding: 18px 20px; }
  .auth-card { padding: 32px 24px; }
  .page-head h1 { font-size: 23px; }
}
@media (max-width: 560px) {
  .main { padding: 20px 14px 40px; }
  .page-head h1 { font-size: 21px; }
  .card { padding: 20px 18px; }
  .modal-box { padding: 24px 20px; border-radius: 18px; }
  .legal-main { padding: 40px 18px 64px; }
  .legal-main h1 { font-size: 30px; }
  .legal-card { padding: 26px 22px; }
  .auth-card { padding: 28px 20px; }
  .auth-card h1 { font-size: 26px; }
}
