/* Dr. Yaman Klinik Yönetimi — premium tasarım sistemi */

:root {
  --navy-950: #070c1f;
  --navy-900: #0e1630;
  --navy-850: #121b3d;
  --navy-800: #16204a;
  --navy-700: #1c2a5e;
  --navy-600: #253878;

  --gold-600: #a9791a;
  --gold-500: #c8a13d;
  --gold-400: #d9bc6b;
  --gold-300: #e8d7a3;
  --gold-50:  #faf5e8;

  --ink-900: #10131f;
  --ink-700: #3c405a;
  --ink-500: #6d7290;
  --ink-300: #a7abc4;
  --line: #e8e8f0;
  --bg: #f3f2f8;
  --card: #ffffff;

  --green: #1a9c72;
  --red: #dd4b4b;
  --amber: #c8842f;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 22, 48, 0.05), 0 1px 1px rgba(14, 22, 48, 0.04);
  --shadow-md: 0 10px 28px rgba(14, 22, 48, 0.08), 0 2px 8px rgba(14, 22, 48, 0.04);
  --shadow-lg: 0 24px 60px rgba(7, 12, 31, 0.22);
  --shadow-gold: 0 8px 22px rgba(168, 130, 40, 0.28);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 272px;
  flex-shrink: 0;
  background:
    radial-gradient(1100px 420px at -10% -10%, rgba(200, 161, 61, 0.10), transparent 55%),
    linear-gradient(165deg, var(--navy-850) 0%, var(--navy-950) 78%);
  color: #fff;
  padding: 24px 16px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 40;
  transform: translateX(0);
  transition: transform .25s ease;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; }
.sidebar-brand img { height: 32px; }
.sidebar-user {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin-bottom: 24px;
}
.avatar-badge {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950); font-weight: 800; font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.14);
}
.sidebar-user-name { font-size: 14px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.sidebar-user-role { font-size: 11.5px; color: var(--gold-300); font-weight: 600; letter-spacing: .02em; }

.nav-section-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.32); padding: 8px 12px; margin-top: 4px; font-weight: 700;
}
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10.5px 12px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.72); font-size: 14.5px; font-weight: 500;
  margin-bottom: 2px;
  position: relative;
  transition: background .15s ease, color .15s ease;
}
.nav-link svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .85; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.active {
  background: linear-gradient(90deg, rgba(200,161,61,.22), rgba(200,161,61,.05));
  color: #fff;
}
.nav-link.active::before {
  content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
}
.nav-link.active svg { opacity: 1; color: var(--gold-400); }
.nav-link.logout { margin-top: 18px; color: #e6a3a3; }
.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.4;
  min-width: 18px;
  text-align: center;
}
.nav-link.logout:hover { background: rgba(221,75,75,.14); }

.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0; background: rgba(5,8,20,.6);
  backdrop-filter: blur(2px);
  z-index: 35;
}

.main {
  flex: 1;
  margin-left: 272px;
  min-width: 0;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 18px 30px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-size: 21px; letter-spacing: -0.02em; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.hamburger {
  display: none;
  border: none; background: var(--gold-50); color: var(--navy-800);
  width: 38px; height: 38px; border-radius: 10px;
  align-items: center; justify-content: center;
}

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-700);
  transition: all .15s ease;
}
.icon-btn:hover { background: var(--gold-50); border-color: var(--gold-400); color: var(--gold-600); }
.icon-btn svg { width: 18px; height: 18px; }

.page {
  padding: 26px 30px 52px;
  max-width: 1340px;
}

/* ---------- Cards / stats ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.dashboard-grid { grid-template-columns: 1.7fr 1fr; }
@media (max-width: 980px) { .grid-3, .grid-2, .dashboard-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
.card-header {
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 15.5px; letter-spacing: -0.01em; }
.card-body { padding: 22px; }

.stat-card { padding: 22px; display: flex; align-items: center; gap: 16px; }
.stat-icon {
  width: 50px; height: 50px; border-radius: 15px;
  background: linear-gradient(150deg, var(--gold-50), #fff);
  border: 1px solid var(--gold-300);
  color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.stat-icon.past { background: #f2f2f7; color: var(--ink-500); border-color: var(--line); }
.stat-icon.future { background: linear-gradient(150deg, #eafaf3, #fff); color: var(--green); border-color: #bdeed8; }
.stat-label { font-size: 12.5px; color: var(--ink-500); margin-bottom: 3px; font-weight: 600; letter-spacing: .01em; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; color: var(--navy-900); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 11px; font-size: 14px; font-weight: 700;
  border: 1px solid transparent; transition: all .15s ease;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(168,130,40,.36); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink-700); }
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-600); background: var(--gold-50); }
.btn-danger { background: #fff; border-color: #f3cfd0; color: var(--red); }
.btn-danger:hover { background: #fff5f5; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-700); margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=date], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 11px;
  border: 1.5px solid var(--line); font-size: 14.5px; color: var(--ink-900);
  background: #fbfbfd;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); background: #fff;
  box-shadow: 0 0 0 4px var(--gold-50);
}
.field-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-700); }
.password-field { position: relative; }
.password-field input { padding-right: 44px !important; }
.password-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: none; background: transparent; color: var(--ink-500);
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.password-toggle:hover { color: var(--gold-600); background: var(--gold-50); }
.password-toggle svg { width: 18px; height: 18px; }
.price-field-group { display: flex; gap: 8px; }
.price-field-group input { flex: 1; min-width: 0; }
.price-field-group select {
  width: 96px; flex-shrink: 0; padding: 0 8px; border-radius: 11px;
  border: 1.5px solid var(--line); font-size: 14px; color: var(--ink-900);
  background: #fbfbfd;
}
.price-field-group select:invalid { color: var(--ink-500); }
.price-field-group select.needs-currency { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(200,132,47,.14); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.alert { padding: 12px 16px; border-radius: 11px; font-size: 14px; margin-bottom: 18px; font-weight: 500; }
.alert-success { background: #eafaf3; color: #0d7a53; border: 1px solid #bfeed9; }
.alert-error { background: #fdeeee; color: #b72a2e; border: 1px solid #f4c8c9; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-500); padding: 11px 16px; border-bottom: 1.5px solid var(--line);
  white-space: nowrap; font-weight: 700;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: var(--gold-50); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  color: #fff; letter-spacing: .01em;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-700); font-weight: 500;
}
.chip-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.chip-dot-square { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }

.search-box { position: relative; max-width: 340px; }
.search-box input {
  width: 100%; padding: 10px 14px 10px 38px; border-radius: 11px;
  border: 1.5px solid var(--line); font-size: 14px; background: #fbfbfd;
}
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-500); }

.empty-state { text-align: center; padding: 52px 20px; color: var(--ink-500); font-size: 14px; }

.contracted-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(150deg, var(--gold-400), var(--gold-600));
  color: #fff; margin-left: 6px; vertical-align: middle;
}
.contracted-badge svg { width: 10px; height: 10px; }

/* ---------- Takip: sekmeler + filtreler ---------- */
.takip-toolbar { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.takip-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.takip-tab {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-700);
  padding: 9px 16px; border-radius: 11px; font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; gap: 8px; transition: all .15s ease;
}
.takip-tab:hover { border-color: var(--gold-400); color: var(--gold-600); }
.takip-tab.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.takip-tab .tab-count {
  background: rgba(0,0,0,.12); border-radius: 999px; padding: 1px 8px; font-size: 11.5px;
}
.takip-tab.active .tab-count { background: rgba(255,255,255,.18); }

.takip-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-700);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.filter-chip:hover { border-color: var(--gold-400); }
.filter-chip.active { background: var(--gold-50); border-color: var(--gold-400); color: var(--gold-600); }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-700); }

.takip-panel[hidden] { display: none; }

/* ---------- Detail hero / info grid ---------- */
.detail-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.detail-avatar {
  width: 60px; height: 60px; border-radius: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: var(--shadow-md);
}
.detail-title h3 { font-size: 19px; margin-bottom: 5px; }
.detail-meta { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; }
.detail-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-500); font-weight: 600; }
.detail-meta-item svg { width: 14px; height: 14px; opacity: .75; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }
.info-item {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfbfd;
}
.info-item .info-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--gold-50); border: 1px solid var(--gold-300); color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
}
.info-item .info-icon svg { width: 17px; height: 17px; }
.info-item .info-value { font-size: 15px; font-weight: 700; color: var(--navy-900); letter-spacing: -0.01em; }

.followup-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.followup-row:last-child { border-bottom: none; }
.followup-dot { width: 11px; height: 11px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--line); }
.followup-dot.done-ok { background: var(--green); }
.followup-dot.done-bad { background: var(--red); }
.followup-dot.done-wait { background: #2f6fed; }
.followup-dot.pending { background: var(--amber); }

/* ---------- Live search ---------- */
.search-hero { padding: 30px 26px 26px; text-align: center; }
.search-hero h3 { font-size: 19px; margin-bottom: 6px; }
.search-hero p { color: var(--ink-500); font-size: 13.5px; margin-bottom: 22px; }
.search-live-wrap { position: relative; max-width: 480px; margin: 0 auto; }
.search-live-wrap .search-box { max-width: none; }
.search-live-wrap .search-box input { padding: 14px 42px 14px 44px; font-size: 15px; border-radius: 14px; }
.search-live-wrap .search-box svg { left: 15px; width: 18px; height: 18px; }
.search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; background: transparent; color: var(--ink-500);
  border-radius: 8px; display: none; align-items: center; justify-content: center;
}
.search-clear.show { display: flex; }
.search-clear:hover { background: var(--gold-50); color: var(--gold-600); }
.search-clear svg { width: 16px; height: 16px; }
.search-live-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); max-height: 360px; overflow-y: auto; z-index: 50;
  display: none; text-align: left;
}
.search-live-results.open { display: block; }
.search-live-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.search-live-item:last-child { border-bottom: none; }
.search-live-item:hover, .search-live-item.active { background: var(--gold-50); }
.search-live-name { font-weight: 700; font-size: 13.5px; color: var(--navy-900); }
.search-live-sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.search-live-status { padding: 10px 16px; font-size: 12.5px; color: var(--ink-500); text-align: center; }

/* ---------- Calendar ---------- */
#calendar { padding: 4px; }
.fc { font-family: inherit; }
.fc .fc-toolbar-title { font-size: 18.5px; font-weight: 800; letter-spacing: -0.015em; color: var(--navy-900); }
.fc .fc-button {
  background: #fff; border: 1.5px solid var(--line); color: var(--ink-700);
  box-shadow: none; text-transform: none; font-weight: 700; font-size: 13px;
}
.fc .fc-button:hover { background: var(--gold-50); border-color: var(--gold-400); color: var(--gold-600); }
.fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.fc-daygrid-event { border-radius: 6px; padding: 1px 5px; font-size: 11.5px; border: none; font-weight: 600; }
.fc-day-today { background: var(--gold-50) !important; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 14px 20px; border-top: 1px solid var(--line); }

/* ---------- Login ---------- */
.auth-shell {
  height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 58% 42%;
  background: #F8F9FC;
}
.auth-visual {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 760px at 14% 12%, #0c1a7a 0%, #020B5C 48%, #020732 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
}
.auth-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 25% 25%, black, transparent 70%);
}
.auth-visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 600px at 90% 95%, rgba(216,180,106,.10), transparent 60%);
}
.auth-visual-text { position: relative; color: #fff; max-width: 650px; width: 100%; }
.auth-visual-text .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #D8B46A; margin-bottom: 16px;
}
.auth-visual-text h2 { font-size: 32px; margin-bottom: 14px; letter-spacing: -0.02em; line-height: 1.28; }
.auth-visual-text p { color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.65; max-width: 500px; }

.feature-list { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.feature-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.feature-card-icon {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(216,180,106,.12); border: 1px solid rgba(216,180,106,.28);
  color: #D8B46A;
}
.feature-card-icon svg { width: 22px; height: 22px; }
.feature-card-title { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -0.005em; margin-bottom: 2px; }
.feature-card-desc { font-size: 12.5px; color: rgba(255,255,255,.62); line-height: 1.45; }

.auth-form-side {
  background: #F8F9FC; display: flex; align-items: center; justify-content: center; padding: 24px;
  overflow-y: auto;
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card .auth-logo-ring {
  width: 80px; height: 80px; border-radius: 20px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e8e8f0;
  box-shadow: 0 8px 22px rgba(16,19,31,.06);
}
.auth-card .auth-logo-ring img { height: 48px; width: auto; }
.auth-card .gold-rule { width: 42px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #D8B46A, #B88A2A); margin: 0 0 24px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; letter-spacing: -0.02em; }
.auth-card .subtitle { color: var(--ink-500); font-size: 14px; margin-bottom: 30px; }

.auth-card .field input {
  height: 50px; padding: 0 16px; border-radius: 11px;
  background: #fff;
}
.auth-card .field input:focus {
  border-color: #B88A2A; box-shadow: 0 0 0 4px rgba(216,180,106,.16);
}
.auth-card .password-field input { padding-right: 46px; }
.auth-card .btn-primary {
  height: 50px;
  background: linear-gradient(135deg, #D8B46A, #B88A2A);
  color: #241a05;
  box-shadow: 0 8px 20px rgba(184,138,42,.28);
}
.auth-card .btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(184,138,42,.34); }

@media (max-width: 1024px) {
  .auth-visual { padding: 34px; }
  .auth-visual-text h2 { font-size: 27px; }
  .feature-card { padding: 12px 14px; }
}
@media (max-width: 768px) {
  .auth-shell { grid-template-columns: 1fr; height: auto; min-height: 100vh; overflow: visible; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 24px; min-height: 100vh; }
  .auth-card { max-width: 420px; }
}

/* ---------- Responsive shell ---------- */
@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { display: block; }
  .main { margin-left: 0; }
  .hamburger { display: inline-flex; }
  .page { padding: 18px 16px 40px; }
  .topbar { padding: 14px 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.mobile-fab {
  display: none;
}
@media (max-width: 640px) {
  .mobile-fab {
    display: flex; position: fixed; right: 18px; bottom: 22px; z-index: 30;
    width: 54px; height: 54px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950);
    align-items: center; justify-content: center; box-shadow: var(--shadow-gold);
  }
  .mobile-fab svg { width: 24px; height: 24px; }
}
