/* ==========================================================================
   Qeydly Web — dizayn sistemi
   Rənglər, radius və komponentlər Flutter tətbiqi (app_colors.dart) ilə eynidir.
   ========================================================================== */

:root {
  --brand: #5B50E6;
  --brand-deep: #4338CA;
  --primary: #5B50E6;          /* mətn / link rəngi */
  --primary-soft: #EEEDFD;
  --accent: #14B8A6;
  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;

  --ink: #0F172A;
  --muted: #64748B;
  --line: #E6E8F0;
  --canvas: #F6F7FB;
  --surface: #FFFFFF;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --shadow: 0 8px 18px rgba(30, 42, 90, .06);
  --shadow-lg: 0 18px 40px rgba(30, 42, 90, .14);
  --grad: linear-gradient(135deg, #7466F0, #4338CA);

  --nav-h: 68px;
  --side-w: 264px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8E85FF;
    --primary-soft: rgba(142, 133, 255, .14);
    --ink: #F1F3FA;
    --muted: #9AA3B8;
    --line: #2A3047;
    --canvas: #0B0D17;
    --surface: #141828;
    --shadow: none;
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lock { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; font-weight: 800; }
h3 { font-size: 16px; font-weight: 800; }
a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 800; }
.center { text-align: center; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ico { display: inline-flex; flex: none; line-height: 0; }
.ico svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Səhifə qabığı ---------- */
.view { animation: viewIn .28s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page { width: 100%; max-width: 1040px; margin: 0 auto; padding: 20px 20px 40px; }
.page.narrow { max-width: 640px; }

.shell { min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 16px;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .spacer { flex: 1; }

.sidebar { display: none; }
.has-nav .page { padding-bottom: calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.nav-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none;
}
.nav-item:hover { text-decoration: none; }
.nav-item .pip { padding: 4px 18px; border-radius: 999px; transition: background .2s; }
.nav-item.active { color: var(--primary); font-weight: 800; }
.nav-item.active .pip { background: var(--primary-soft); }

.badge {
  position: absolute; top: -5px; right: -7px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 10.5px; font-weight: 800; line-height: 1;
  border: 2px solid var(--surface);
}
.pipwrap { position: relative; display: inline-flex; }

@media (min-width: 960px) {
  .has-nav { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .has-nav .bottom-nav { display: none; }
  .has-nav .topbar.mobile-only { display: none; }
  .has-nav .page { padding: 36px 40px 56px; }
  .sidebar {
    display: flex; flex-direction: column; gap: 6px;
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    padding: 22px 16px; background: var(--surface); border-right: 1px solid var(--line);
  }
  .sidebar .brand { padding: 4px 10px 22px; }
  .side-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: var(--r-sm);
    color: var(--muted); font-weight: 700; text-decoration: none;
    transition: background .15s, color .15s;
  }
  .side-link:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
  .side-link.active { background: var(--primary-soft); color: var(--primary); }
  .side-link .count {
    margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; display: grid; place-items: center;
    border-radius: 999px; background: var(--danger); color: #fff; font-size: 11.5px; font-weight: 800;
  }
  .side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
}

/* ---------- Brend ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 11px; color: #fff; overflow: hidden;
  background: #fff; box-shadow: 0 4px 12px rgba(30, 42, 90, .22);
}
.brand-mark.light { box-shadow: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.brand.light { color: #fff; }

/* ---------- Kartlar ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 16px;
}
.card.flat { box-shadow: none; }
.card.tap { cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card.tap:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.card.tap:active { transform: translateY(0); }
.card.selected { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.card.tint { background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); box-shadow: none; }
.card.warn { background: color-mix(in srgb, var(--warning) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 35%, var(--line)); box-shadow: none; }

.tile-ico {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 15px;
  color: var(--c, var(--brand));
  background: color-mix(in srgb, var(--c, var(--brand)) 13%, transparent);
}
.tile-ico.solid { color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #fff)); box-shadow: 0 8px 16px color-mix(in srgb, var(--c) 30%, transparent); }

.avatar {
  display: grid; place-items: center; flex: none;
  color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #fff));
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 13%, transparent);
  font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Düymələr ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-md);
  font-weight: 700; font-size: 15px; letter-spacing: -.005em; text-decoration: none;
  cursor: pointer; user-select: none;
  transition: transform .12s, background .15s, box-shadow .15s, border-color .15s, opacity .15s;
}
.btn:hover { text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 13px; }
.btn.xs { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(91, 80, 230, .28); }
.btn.primary:hover:not(:disabled) { background: var(--brand-deep); }
.btn.outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.outline:hover:not(:disabled) { border-color: var(--brand); color: var(--primary); }
.btn.tonal { background: var(--primary-soft); color: var(--primary); }
.btn.tonal:hover:not(:disabled) { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.btn.ghost { background: transparent; color: var(--primary); padding: 0 12px; }
.btn.ghost:hover:not(:disabled) { background: var(--primary-soft); }
.btn.danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 20%, transparent); }
.btn.white { background: #fff; color: var(--brand-deep); }
.btn.glass { background: rgba(255, 255, 255, .16); color: #fff; }
.btn.glass:hover:not(:disabled) { background: rgba(255, 255, 255, .26); }
.btn.icon-only { min-height: 40px; width: 40px; padding: 0; border-radius: 12px; }
.btn .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.loading { pointer-events: none; }
.btn.loading .spin { display: block; }
.btn.loading .lbl, .btn.loading .ico { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Formalar ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13.5px; font-weight: 700; }
.field .opt { color: var(--muted); font-weight: 500; }
.input-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s;
}
.input-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.input-wrap.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 12%, transparent); }
.input-wrap > .ico { margin-left: 14px; color: var(--muted); }
.input-wrap .prefix { margin-left: 14px; padding-right: 10px; border-right: 1px solid var(--line); color: var(--muted); font-weight: 700; }
.input {
  flex: 1; min-width: 0; width: 100%;
  padding: 15px 14px; border: 0; background: transparent; outline: none;
  border-radius: var(--r-md);
}
.input::placeholder { color: var(--muted); opacity: .75; }
textarea.input { resize: vertical; min-height: 88px; }
.input.mono { font-weight: 800; letter-spacing: .12em; }
.input-wrap .toggle { margin-right: 6px; border: 0; background: transparent; color: var(--muted); padding: 8px; border-radius: 10px; cursor: pointer; }
.input-wrap .toggle:hover { color: var(--ink); background: var(--primary-soft); }
.field-hint { font-size: 12.5px; color: var(--muted); }
.field-error { font-size: 12.5px; color: var(--danger); font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .span2 { grid-column: 1 / -1; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; transition: all .15s;
}
.chip:hover { border-color: var(--brand); }
.chip.on { background: color-mix(in srgb, var(--c, var(--brand)) 12%, var(--surface)); border-color: var(--c, var(--brand)); font-weight: 800; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--brand)) 14%, transparent); }
.chip .ico { color: var(--c, var(--brand)); }

.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--muted) 40%, transparent); transition: background .2s; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

.time-input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 800; outline: none; min-width: 104px; }
.time-input:focus { border-color: var(--brand); }

/* ---------- Başlıq / bölmə ---------- */
.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 22px; }
.page-head .titles { flex: 1; min-width: 0; }
.page-head p { color: var(--muted); margin-top: 4px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-head h3 { flex: 1; font-size: 17px; }
.back-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.back-btn:hover { border-color: var(--brand); color: var(--primary); }

/* ---------- Siyahılar ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.grid-cards { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-owners { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-owners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-owners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cat-card { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 124px; padding: 16px; }
.cat-card .name { font-weight: 800; line-height: 1.25; }

.time-block { width: 62px; padding: 8px 0; border-radius: 14px; text-align: center; background: var(--primary-soft); color: var(--primary); }
.time-block .a { font-weight: 800; font-size: 15px; }
.time-block .b { font-size: 11.5px; color: var(--muted); }

.note-box { padding: 10px 12px; border-radius: 12px; font-size: 13px; background: color-mix(in srgb, var(--ink) 5%, transparent); }

/* ---------- Gün seçici / saat şəbəkəsi ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day {
  flex: none; width: 62px; padding: 10px 0; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; cursor: pointer;
  transition: all .15s;
}
.day .w { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.day .n { font-size: 20px; font-weight: 800; }
.day:hover:not(:disabled) { border-color: var(--brand); }
.day.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 16px rgba(91, 80, 230, .3); }
.day.on .w { color: rgba(255, 255, 255, .85); }
.day:disabled { opacity: .4; cursor: not-allowed; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; cursor: pointer; transition: all .15s; }
.slot:hover { border-color: var(--brand); color: var(--primary); }
.slot.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 16px rgba(91, 80, 230, .3); }

.step { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step .num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; }
.step h3 { font-size: 17px; }

.radio-card { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); flex: none; display: grid; place-items: center; }
.selected .radio-dot { border-color: var(--brand); }
.selected .radio-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

/* ---------- Rezervasiya düzəni ---------- */
.book-grid { display: grid; gap: 22px; }
.summary { padding: 16px; }
@media (max-width: 899px) {
  .book-grid { padding-bottom: 120px; }
  .summary {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    border-radius: var(--r-lg) var(--r-lg) 0 0; border-width: 1px 0 0;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .08);
  }
}
@media (min-width: 900px) {
  .book-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .book-grid aside { position: sticky; top: 84px; }
}

/* ---------- Profil səhifəsi ---------- */
.hero-biz {
  position: relative; overflow: hidden; color: #fff;
  padding: 22px 22px 24px; border-radius: 28px;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 40%, #2a1f8f));
  box-shadow: var(--shadow-lg);
}
.hero-biz::after { content: ''; position: absolute; right: -60px; top: -70px; width: 230px; height: 230px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.hero-biz > * { position: relative; z-index: 1; }
.hero-biz .status { margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .16); display: flex; gap: 10px; align-items: center; font-weight: 700; }
.biz-grid { display: grid; gap: 22px; margin-top: 22px; }
.cta-side { display: none; }
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; flex-direction: column; gap: 10px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.biz-pad { padding-bottom: 130px; }
@media (min-width: 900px) {
  .biz-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .cta-side { display: block; position: sticky; top: 84px; }
  .cta-bar { display: none; }
  .biz-pad { padding-bottom: 40px; }
}
.hours-row { display: flex; justify-content: space-between; padding: 9px 0; }
.hours-row + .hours-row { border-top: 1px dashed var(--line); }
.hours-row.today { color: var(--primary); font-weight: 800; }

/* ---------- Paylaşma kartı (kod + link) ---------- */
.share-card {
  position: relative; overflow: hidden; color: #fff;
  padding: 24px; border-radius: 28px; background: var(--grad);
  box-shadow: 0 16px 36px rgba(91, 80, 230, .32);
}
.share-card::before, .share-card::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.share-card::before { width: 220px; height: 220px; right: -70px; top: -80px; }
.share-card::after { width: 160px; height: 160px; left: -50px; bottom: -70px; }
.share-card > * { position: relative; z-index: 1; }
.code-big { font-size: clamp(30px, 7vw, 44px); font-weight: 800; letter-spacing: .14em; line-height: 1.1; }
.link-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .16); cursor: pointer; text-align: left; border: 0; color: #fff; width: 100%; }
.link-box:hover { background: rgba(255, 255, 255, .24); }
.link-box span.t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }

.status-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.status-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 18px; cursor: pointer; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13px; text-align: center; transition: all .15s; }
.status-tile .ico { color: var(--c); }
.status-tile.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 11%, var(--surface)); font-weight: 800; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 14%, transparent); }

/* ---------- Giriş / qeydiyyat ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; }
.auth-aside { display: none; }
.auth-main { display: flex; flex-direction: column; padding: 14px 20px 40px; }
.auth-card { width: 100%; max-width: 440px; margin: 0 auto; padding-top: 12px; }
.auth-card.wide { max-width: 520px; }
.auth-top { display: flex; align-items: center; gap: 12px; height: 52px; margin-bottom: 8px; }
.auth-title { margin: 10px 0 6px; font-size: 28px; letter-spacing: -.02em; }
@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .auth-aside {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
    padding: 40px 48px; color: #fff; background: var(--grad);
  }
  .auth-aside::before, .auth-aside::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
  .auth-aside::before { width: 380px; height: 380px; right: -120px; top: -110px; }
  .auth-aside::after { width: 300px; height: 300px; left: -100px; bottom: -80px; }
  .auth-aside > * { position: relative; z-index: 1; }
  .auth-main { justify-content: center; padding: 40px 56px; }
}
.aside-points { display: flex; flex-direction: column; gap: 16px; }
.aside-points div { display: flex; gap: 12px; align-items: flex-start; }
.aside-points .ico { padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .16); box-sizing: content-box; }

.progress { display: flex; gap: 8px; margin: 14px 0 6px; }
.progress i { flex: 1; height: 5px; border-radius: 999px; background: var(--line); transition: background .3s; }
.progress i.on { background: var(--brand); }

.role-card { display: flex; align-items: center; gap: 14px; padding: 18px; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; background: var(--primary-soft); color: var(--ink); }
.notice .ico { color: var(--primary); margin-top: 1px; }
.notice.ok { background: color-mix(in srgb, var(--success) 11%, transparent); }
.notice.ok .ico { color: var(--success); }

/* ---------- Açılış səhifəsi ---------- */
.landing-hero { position: relative; overflow: hidden; color: #fff; background: var(--grad); }
.landing-hero::before, .landing-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.landing-hero::before { width: 420px; height: 420px; right: -120px; top: -140px; }
.landing-hero::after { width: 280px; height: 280px; left: -90px; bottom: -110px; }
.landing-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 18px 20px; }
.landing-body { position: relative; z-index: 2; display: grid; gap: 36px; max-width: 1120px; margin: 0 auto; padding: 24px 20px 80px; }
.landing-body h1 { color: #fff; font-size: clamp(32px, 6vw, 54px); }
.landing-body .lead { margin-top: 16px; font-size: 17px; color: rgba(255, 255, 255, .86); max-width: 520px; }
.landing-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mock { color: var(--ink); max-width: 400px; width: 100%; margin: 0 auto; padding: 18px; border-radius: 28px; background: var(--surface); box-shadow: 0 30px 60px rgba(20, 10, 90, .35); transform: rotate(1.5deg); }
@media (min-width: 960px) { .landing-body { grid-template-columns: 1.15fr .85fr; align-items: center; padding-top: 48px; padding-bottom: 110px; } }
.landing-section { max-width: 1120px; margin: -48px auto 0; padding: 0 20px 56px; position: relative; z-index: 3; }
.two-col { display: grid; gap: 16px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.checklist { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ico { color: var(--success); margin-top: 2px; }

/* ---------- Boş / xəta / skelet ---------- */
.state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; text-align: center; }
.state .bubble { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); margin-bottom: 4px; }
.state.err .bubble { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.state p { color: var(--muted); max-width: 340px; }
.skel { position: relative; overflow: hidden; border-radius: var(--r-md); background: color-mix(in srgb, var(--muted) 16%, transparent); }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: shimmer 1.3s infinite; }
@media (prefers-color-scheme: dark) { .skel::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); } }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Pəncərələr ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 10, 28, .5); animation: fade .18s ease both; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--surface); border-radius: 28px 28px 0 0; animation: rise .25s cubic-bezier(.2, .8, .2, 1) both; }
.sheet .grab { width: 40px; height: 4px; margin: 6px auto 14px; border-radius: 4px; background: var(--line); }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sheet-head h2 { flex: 1; font-size: 20px; }
@media (min-width: 640px) { .overlay { align-items: center; padding: 20px; } .sheet { border-radius: 28px; padding-bottom: 24px; } .sheet .grab { display: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }

#toasts { position: fixed; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.has-nav-toast #toasts { bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .has-nav-toast #toasts { bottom: 24px; } }
.toast { display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 13px 16px; border-radius: 14px; color: #fff; background: #0F172A; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; animation: toastIn .25s ease both; pointer-events: auto; }
.toast.error { background: #B42318; }
.toast.ok .ico { color: #4ADE80; }
.toast.out { animation: toastOut .25s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

.success-ring { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 20px; color: var(--c, var(--success)); background: color-mix(in srgb, var(--c, var(--success)) 13%, transparent); animation: pop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes pop { from { transform: scale(0); } }

.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: color-mix(in srgb, var(--muted) 14%, transparent); }
.tab { padding: 8px 18px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; color: var(--muted); cursor: pointer; }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }

.kv { display: flex; align-items: center; gap: 12px; padding: 13px 0; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv .ico { color: var(--primary); }
.kv .k { color: var(--muted); }
.kv .v { margin-left: auto; font-weight: 800; text-align: right; }

.unread { border-left: 4px solid var(--brand); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
