:root,
[data-theme="dark"] {
  --bg-0: #0d1110;
  --bg-1: #16191a;
  --bg-2: #1f2425;
  --bg-3: #2a2f30;
  --gold: #dabb52;
  --gold-soft: #ecd17a;
  --gold-dark: #a8861f;
  --amber: #ffb547;
  --ink: #f3efe2;
  --ink-2: #a39e8e;
  --ink-3: #7a7065;
  --success: #4ade80;
  --danger: #f87171;
  --info: #60a5fa;
  --line: rgba(255, 245, 220, 0.10);
  --line-strong: rgba(255, 245, 220, 0.20);
  --glass-bg: rgba(15, 17, 18, 0.72);
  --glass-border: rgba(218, 187, 82, 0.24);
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --shadow-2:
    0 20px 60px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(218, 187, 82, 0.10);
  --bg-radial-1: rgba(218, 187, 82, 0.10);
  --bg-radial-2: rgba(168, 134, 31, 0.06);
  --bg-radial-3: rgba(218, 187, 82, 0.04);
  --noise-opacity: 0.4;
  --status-confirmed-bg: rgba(96, 165, 250, 0.10);
  --status-confirmed-fg: var(--info);
  --status-awaiting-bg: rgba(255, 181, 71, 0.14);
  --status-awaiting-fg: var(--amber);
  --status-completed-bg: rgba(74, 222, 128, 0.10);
  --status-completed-fg: var(--success);
  --gradient-text: linear-gradient(135deg, var(--ink) 0%, var(--gold) 100%);
  --gradient-btn: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  --liquid-gold: linear-gradient(135deg, #f4c742 0%, #d99e2c 28%, #8a5a14 65%, #2a1d08 100%);
  --liquid-shine: radial-gradient(ellipse 280px 180px at 0% 0%, rgba(255,255,255,0.30), transparent 55%),
                  radial-gradient(ellipse 200px 130px at 100% 100%, rgba(255,180,40,0.40), transparent 60%);
}

[data-theme="light"] {
  --bg-0: #f5efe1;
  --bg-1: #fdfaf0;
  --bg-2: #ebe4d2;
  --bg-3: #ddd5be;
  --gold: #8b6a14;
  --gold-soft: #b8912a;
  --gold-dark: #5e4708;
  --amber: #d97706;
  --ink: #16110a;
  --ink-2: #3d3528;
  --ink-3: #5e5240;
  --success: #16a34a;
  --danger: #dc2626;
  --info: #2563eb;
  --line: rgba(22, 17, 10, 0.16);
  --line-strong: rgba(22, 17, 10, 0.30);
  --glass-bg: rgba(253, 250, 240, 0.78);
  --glass-border: rgba(122, 89, 18, 0.28);
  --glass-highlight: rgba(255, 255, 255, 0.55);
  --shadow-2:
    0 20px 60px -20px rgba(120, 90, 20, 0.30),
    0 0 0 1px rgba(122, 89, 18, 0.14);
  --bg-radial-1: rgba(184, 145, 42, 0.18);
  --bg-radial-2: rgba(184, 145, 42, 0.10);
  --bg-radial-3: rgba(184, 145, 42, 0.08);
  --noise-opacity: 0.18;
  --status-confirmed-bg: rgba(37, 99, 235, 0.10);
  --status-confirmed-fg: var(--info);
  --status-awaiting-bg: rgba(217, 119, 6, 0.12);
  --status-awaiting-fg: var(--amber);
  --status-completed-bg: rgba(22, 163, 74, 0.10);
  --status-completed-fg: var(--success);
  --gradient-text: linear-gradient(135deg, var(--ink) 0%, var(--gold-soft) 100%);
  --gradient-btn: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-dark) 100%);
  --liquid-gold: linear-gradient(135deg, #f4c742 0%, #d99e2c 28%, #8a5a14 65%, #2a1d08 100%);
  --liquid-shine: radial-gradient(ellipse 280px 180px at 0% 0%, rgba(255,255,255,0.45), transparent 55%),
                  radial-gradient(ellipse 200px 130px at 100% 100%, rgba(255,180,40,0.40), transparent 60%);
}

:root, [data-theme="dark"], [data-theme="light"] {
  --ser: 'Instrument Serif', serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
}

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

html { font-size: 16px; }

html, body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  /* R58.1 (2026-05-11): overflow-x:hidden → clip. hidden создаёт sticky-containing-block на body
     и силент-убивает все position:sticky внутри (sidebar /lk «уезжал» при скролле). clip не
     устанавливает scroll-context, но всё ещё прячет горизонтальное переполнение. Safari 16+. */
  overflow-x: clip;
  transition: background 0.4s ease, color 0.4s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(800px 600px at 10% -10%, var(--bg-radial-1), transparent 50%),
    radial-gradient(600px 500px at 100% 20%, var(--bg-radial-2), transparent 60%),
    radial-gradient(400px 400px at 30% 110%, var(--bg-radial-3), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: var(--noise-opacity);
}

/* Top switcher */
.switcher {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 6px;
  display: flex;
  gap: 4px;
  box-shadow: var(--shadow-2), inset 0 1px 0 var(--glass-highlight);
}

.switcher button {
  background: transparent;
  border: none;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.switcher button:hover { color: var(--ink); }

.switcher button.active {
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 30px -8px rgba(213, 175, 55, 0.6);
}

[data-theme="dark"] .switcher button.active { color: var(--bg-0); }

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 101;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-2), inset 0 1px 0 var(--glass-highlight);
}

.theme-toggle:hover {
  transform: rotate(20deg);
  border-color: var(--gold);
  color: var(--gold);
}

.theme-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }

[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }

/* Views */
.view { display: none; min-height: 100vh; position: relative; z-index: 1; animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.view.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ===== OWNER /lk ===== */
.lk-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

.lk-sidebar {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--line);
  padding: 90px 20px 20px;
  position: sticky;
  top: 0;
  /* R58.1 (2026-05-11): align-self:start (для grid) + flex-start (для flex) — на случай если
     .lk-shell где-то flex, а не grid. overscroll-behavior:contain — внутренний скролл sidebar
     не пробрасывается в основное окно. */
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.brand {
  font-family: var(--ser);
  font-size: 32px;
  font-style: italic;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 12px 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.nav-section {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  padding: 16px 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  margin-bottom: 1px;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.nav-item.active {
  font-weight: 700;
  color: var(--ink);
  background: rgba(218, 187, 82, 0.08);
}

[data-theme="light"] .nav-item.active {
  background: rgba(122, 89, 18, 0.08);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 100px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  box-shadow: none;
}

.nav-icon { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; flex-shrink: 0; }

.nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  font-family: var(--mono);
}

[data-theme="dark"] .nav-badge { color: var(--bg-0); }

.sidebar-footer {
  margin-top: auto;
  padding: 16px 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}

[data-theme="dark"] .user-avatar { color: var(--bg-0); }

.user-info { min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--ink-3); font-family: var(--mono); }

/* R58 (2026-05-11): был max-width:1400px без margin auto → контент сидел flush-left.
   Сведено к 1100px+margin auto как fallback (соответствует inline renderLkShellCss и injectLkSidebar). */
.lk-main { padding: 90px 40px 60px; max-width: 1100px; margin: 0 auto; }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.page-title {
  font-family: var(--ser);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--ink);
}

.page-title em { font-style: italic; color: var(--gold); }
.page-subtitle { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.page-actions { display: flex; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: transparent;
  color: var(--ink);
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px -6px rgba(213, 175, 55, 0.5);
}

[data-theme="dark"] .btn-primary { color: var(--bg-0); }

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -6px rgba(213, 175, 55, 0.6); }

.btn-ghost {
  background: rgba(213, 175, 55, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

[data-theme="light"] .btn-ghost { background: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(213, 175, 55, 0.1); border-color: var(--gold); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }

.stat-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

[data-theme="dark"] .stat-card {
  background: linear-gradient(180deg, var(--bg-1) 0%, rgba(18, 17, 15, 0.6) 100%);
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.stat-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(213, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.stat-label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 12px; }
.stat-value { font-family: var(--ser); font-size: 44px; line-height: 1; font-weight: 400; color: var(--ink); letter-spacing: -0.02em; }
.stat-value .unit { font-family: var(--sans); font-size: 16px; color: var(--ink-2); font-weight: 400; margin-left: 4px; vertical-align: middle; }

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 100px;
  margin-top: 16px;
}

.stat-change.up { background: rgba(74, 222, 128, 0.1); color: var(--success); }
[data-theme="light"] .stat-change.up { background: rgba(22, 163, 74, 0.12); }
.stat-change.down { background: rgba(248, 113, 113, 0.1); color: var(--danger); }
[data-theme="light"] .stat-change.down { background: rgba(220, 38, 38, 0.1); }

.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 32px; }

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.3s ease;
}

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.card-title { font-family: var(--ser); font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
.card-title em { font-style: italic; color: var(--gold); }

.appt-list { display: flex; flex-direction: column; gap: 10px; }

.appt-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.appt-row:hover { background: rgba(213, 175, 55, 0.06); border-color: var(--line-strong); transform: translateX(4px); }
[data-theme="light"] .appt-row:hover { background: rgba(168, 136, 39, 0.08); }

.appt-time { font-family: var(--ser); font-size: 22px; color: var(--gold); font-style: italic; letter-spacing: -0.01em; }
.appt-time-date { font-family: var(--mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.appt-client { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.appt-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.appt-meta span:not(:first-child)::before { content: '·'; margin-right: 8px; color: var(--ink-3); }

.appt-status {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 100px;
  font-weight: 600;
}

.appt-status.confirmed { background: var(--status-confirmed-bg); color: var(--status-confirmed-fg); }
.appt-status.awaiting { background: var(--status-awaiting-bg); color: var(--status-awaiting-fg); animation: pulse 2s ease-in-out infinite; }
.appt-status.completed { background: var(--status-completed-bg); color: var(--status-completed-fg); }

.side-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; }

.ai-spotlight {
  background: linear-gradient(135deg, rgba(213, 175, 55, 0.08) 0%, rgba(168, 136, 39, 0.02) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

[data-theme="light"] .ai-spotlight { background: linear-gradient(135deg, rgba(213, 175, 55, 0.16) 0%, rgba(213, 175, 55, 0.04) 100%); }

.ai-spotlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(213, 175, 55, 0.18) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.ai-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .ai-icon { color: var(--bg-0); }

.ai-title { font-family: var(--ser); font-size: 22px; font-style: italic; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.01em; position: relative; z-index: 1; }

.ai-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.ai-status::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; box-shadow: 0 0 8px var(--success); }

.ai-desc { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin: 12px 0 16px; position: relative; z-index: 1; }
.ai-metric { font-family: var(--ser); font-size: 40px; color: var(--gold); font-style: italic; line-height: 1; position: relative; z-index: 1; }
.ai-metric-label { font-size: 11px; color: var(--ink-2); margin-top: 6px; position: relative; z-index: 1; }

.alert-card {
  background: rgba(255, 181, 71, 0.08);
  border: 1px solid rgba(255, 181, 71, 0.25);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
}

[data-theme="light"] .alert-card { background: rgba(217, 119, 6, 0.1); border-color: rgba(217, 119, 6, 0.3); }

.alert-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--amber); margin-bottom: 12px; }
.alert-body { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: 16px; }
.alert-actions { display: flex; gap: 8px; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: var(--r-sm); }

/* ===== CLIENT /my ===== */
/* R58 (2026-05-11): дубль .my-shell удалён (был тут + на ~1811). Канонический блок — ниже. */
.my-header { margin-bottom: 32px; }
.my-greeting { font-size: 13px; color: var(--ink-2); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }

.my-name {
  font-family: var(--ser);
  font-size: 52px;
  line-height: 1;
  color: var(--ink);
  margin-top: 8px;
  letter-spacing: -0.03em;
}

.my-name em { font-style: italic; color: var(--gold); }

.tier-card {
  position: relative;
  border-radius: 26px;
  padding: 26px 24px;
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--liquid-gold);
  border: 0.5px solid rgba(255, 225, 122, 0.40);
  box-shadow:
    0 18px 50px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(218, 187, 82, 0.20);
  color: #fff8e0;
}

.tier-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--liquid-shine);
  pointer-events: none;
  z-index: 1;
}

.tier-card > * {
  position: relative;
  z-index: 2;
}

.tier-card .tier-meta,
.tier-card .tier-prog-meta span {
  color: rgba(255, 248, 224, 0.65);
}

.tier-label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255, 248, 224, 0.70); margin-bottom: 12px; position: relative; z-index: 2; }
.tier-name { font-family: var(--ser); font-size: 50px; font-style: italic; color: #fff8e0; letter-spacing: -0.02em; line-height: 1; position: relative; z-index: 2; }
.tier-points { display: flex; align-items: baseline; gap: 6px; margin: 24px 0 16px; position: relative; z-index: 2; }
.tier-points-value { font-family: var(--ser); font-size: 64px; color: #fff8e0; line-height: 1; letter-spacing: -0.03em; }
.tier-points-label { font-size: 14px; color: rgba(255, 248, 224, 0.65); }
.tier-progress { margin-top: 20px; position: relative; z-index: 2; }
.tier-progress-meta { display: flex; justify-content: space-between; font-size: 11px; font-family: var(--mono); color: rgba(255, 248, 224, 0.65); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.tier-bar { height: 3px; background: rgba(0, 0, 0, 0.40); border-radius: 100px; overflow: hidden; }

.tier-fill {
  height: 100%;
  background: linear-gradient(90deg, #fff8e0 0%, #ffd470 100%);
  width: 68%;
  border-radius: 100px;
  animation: fillBar 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fillBar { from { width: 0%; } to { width: 68%; } }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }

.quick-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.quick-card:hover { background: var(--bg-2); border-color: var(--line-strong); transform: translateY(-2px); }

.quick-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: rgba(213, 175, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 12px;
}

[data-theme="light"] .quick-icon { background: rgba(184, 145, 42, 0.14); }
.quick-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.quick-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.quick-value { font-family: var(--ser); font-size: 24px; color: var(--gold); margin-top: 4px; letter-spacing: -0.01em; }
.quick-desc { font-size: 12px; color: var(--ink-2); margin-top: 2px; }

.upcoming-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upcoming-card:hover { background: var(--bg-2); border-color: var(--line-strong); }

.upcoming-date {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--bg-2);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

[data-theme="dark"] .upcoming-date { background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%); }

.upcoming-day { font-family: var(--ser); font-size: 24px; font-style: italic; color: var(--gold); line-height: 1; }
.upcoming-month { font-family: var(--mono); font-size: 9px; text-transform: uppercase; color: var(--ink-2); letter-spacing: 0.1em; margin-top: 2px; }
.upcoming-info { flex: 1; min-width: 0; }
.upcoming-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.upcoming-sub { font-size: 12px; color: var(--ink-2); }
.upcoming-time { font-family: var(--mono); font-size: 14px; color: var(--gold); font-weight: 500; }

.ai-banner {
  background: linear-gradient(135deg, rgba(213, 175, 55, 0.08) 0%, rgba(213, 175, 55, 0.02) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .ai-banner { background: linear-gradient(135deg, rgba(213, 175, 55, 0.16) 0%, rgba(213, 175, 55, 0.04) 100%); }

.ai-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(213, 175, 55, 0.12) 0%, transparent 70%);
}

.ai-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}

[data-theme="dark"] .ai-banner-icon { color: var(--bg-0); }

.ai-banner-text { flex: 1; position: relative; }
.ai-banner-title { font-family: var(--ser); font-size: 18px; font-style: italic; color: var(--ink); letter-spacing: -0.01em; }
.ai-banner-desc { font-size: 12px; color: var(--ink-2); margin-top: 2px; }

.section-title { font-family: var(--ser); font-size: 28px; color: var(--ink); margin: 32px 0 16px; letter-spacing: -0.02em; }
.section-title em { font-style: italic; color: var(--gold); }

/* ===== iOS-style glass tab bar with liquid blob ===== */
.tab-bar {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 8px;
  display: flex;
  gap: 2px;
  z-index: 50;
  will-change: bottom, opacity;
  transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              background 0.4s ease,
              border-color 0.4s ease;
  box-shadow:
    0 20px 60px -10px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(213, 175, 55, 0.1),
    inset 0 1px 0 var(--glass-highlight);
}

.tab-bar.tab-bar-hidden {
  bottom: -120px;
  opacity: 0;
  pointer-events: none;
}

/* Liquid blob indicator */
.tab-blob {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 52px;
  height: 44px;
  background: var(--gradient-btn);
  border-radius: 100px;
  box-shadow: 
    0 8px 24px -4px rgba(213, 175, 55, 0.6),
    0 0 0 1px rgba(213, 175, 55, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 0;
}

/* Splash droplet - the liquid aftertrail */
.tab-blob::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  box-shadow: 0 0 20px var(--gold);
}

.tab-blob.splashing::before {
  animation: splashDrop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes splashDrop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(3); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(6); opacity: 0; }
}

.tab-item {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 44px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: transparent;
  border: none;
  flex-shrink: 0;
}

.tab-item:hover:not(.active) { color: var(--ink); transform: translateY(-2px); }

.tab-item.active {
  color: #fff;
}

[data-theme="dark"] .tab-item.active { color: var(--bg-0); }

.tab-item:active {
  transform: scale(0.88);
}

.tab-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

.tab-item.active svg {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Ripple on tap */
.tab-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(213, 175, 55, 0.3);
  transform: scale(0);
  pointer-events: none;
  animation: ripple 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.8; }
  100% { transform: scale(4); opacity: 0; }
}

/* ===== STAFF /staff ===== */
.staff-shell { max-width: 460px; margin: 0 auto; padding: 90px 20px 60px; }
.staff-header { margin-bottom: 28px; }
.staff-meta { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.staff-name { font-family: var(--ser); font-size: 44px; font-style: italic; color: var(--ink); letter-spacing: -0.02em; line-height: 1; margin-top: 10px; }
.staff-subtitle { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

.today-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 24px;
}

.summary-cell { text-align: center; padding: 8px; }
.summary-cell + .summary-cell { border-left: 1px solid var(--line); }
.summary-value { font-family: var(--ser); font-size: 32px; color: var(--gold); line-height: 1; letter-spacing: -0.02em; }
.summary-label { font-family: var(--mono); font-size: 10px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }

.day-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.day-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.visit-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.visit-card.awaiting {
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.08) 0%, var(--bg-1) 50%);
  border-color: rgba(255, 181, 71, 0.25);
}

[data-theme="light"] .visit-card.awaiting {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, var(--bg-1) 50%);
  border-color: rgba(217, 119, 6, 0.3);
}

.visit-card.awaiting::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

.visit-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 12px; }
.visit-time { font-family: var(--ser); font-size: 28px; color: var(--gold); font-style: italic; line-height: 1; letter-spacing: -0.01em; }

.visit-badge {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 100px;
  font-weight: 600;
}

.visit-badge.pending { background: var(--status-confirmed-bg); color: var(--status-confirmed-fg); }
.visit-badge.awaiting { background: var(--status-awaiting-bg); color: var(--status-awaiting-fg); }

.visit-client { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.visit-detail { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.visit-detail .dot { width: 3px; height: 3px; background: var(--ink-3); border-radius: 50%; }
.visit-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

.visit-btn {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.visit-btn.confirm {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.14) 0%, rgba(74, 222, 128, 0.04) 100%);
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--success);
}

[data-theme="light"] .visit-btn.confirm {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.14) 0%, rgba(22, 163, 74, 0.04) 100%);
  border-color: rgba(22, 163, 74, 0.3);
}

.visit-btn.confirm:hover { background: rgba(74, 222, 128, 0.18); transform: translateY(-1px); }
[data-theme="light"] .visit-btn.confirm:hover { background: rgba(22, 163, 74, 0.16); }

.visit-btn.reject { color: var(--ink-2); }
.visit-btn.reject:hover { border-color: rgba(248, 113, 113, 0.3); color: var(--danger); background: rgba(248, 113, 113, 0.06); }
[data-theme="light"] .visit-btn.reject:hover { border-color: rgba(220, 38, 38, 0.3); background: rgba(220, 38, 38, 0.06); }

.visit-btn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.2; fill: none; }

@media (max-width: 1024px) {
  .lk-shell { grid-template-columns: 1fr; }
  .lk-sidebar { display: none; }
  .lk-main { padding: 90px 20px 40px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 42px; }
}

@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr; }
  .page-title { font-size: 36px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .switcher { flex-wrap: wrap; max-width: calc(100vw - 80px); }
  .switcher button { padding: 8px 12px; font-size: 12px; }
  .theme-toggle { top: 24px; right: 16px; width: 40px; height: 40px; }
}

/* ==== SEDE real cabinet overrides (no view switcher in production) ==== */
.view { display: block; }
.switcher { display: none !important; }

/* ===== /start — Registration choice screen ===== */
.reg-choice-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 90px 20px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.reg-choice-header { text-align: center; margin-bottom: 48px; }
.reg-choice-header .brand { display: inline-block; margin-bottom: 24px; }
.reg-choice-title {
  font-family: var(--ser);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}
.reg-choice-title em { font-style: italic; color: var(--gold); }
.reg-choice-subtitle {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}
.reg-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.reg-choice-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: slideUp .5s cubic-bezier(.4,0,.2,1) backwards;
}
.reg-choice-card:nth-child(1) { animation-delay: .1s; }
.reg-choice-card:nth-child(2) { animation-delay: .2s; }
.reg-choice-card:nth-child(3) { animation-delay: .3s; }
.reg-choice-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(213, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.reg-choice-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 24px 60px -20px rgba(213, 175, 55, 0.3), 0 0 0 1px rgba(213, 175, 55, 0.2);
}
.reg-choice-card:hover::before { opacity: 1; }
.reg-choice-flag { font-size: 48px; line-height: 1; margin-bottom: 8px; }
.reg-choice-name {
  font-family: var(--ser);
  font-size: 32px;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.reg-choice-type {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
}
.reg-choice-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 8px 0 12px;
  flex: 1;
}
.reg-choice-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  transition: gap .2s ease;
}
.reg-choice-action svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform .2s ease;
}
.reg-choice-card:hover .reg-choice-action { gap: 12px; }
.reg-choice-card:hover .reg-choice-action svg { transform: translateX(4px); }
.reg-choice-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}
.reg-choice-footer a { color: var(--gold); text-decoration: none; font-weight: 500; }
.reg-choice-footer a:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .reg-choice-title { font-size: 40px; }
  .reg-choice-grid { grid-template-columns: 1fr; gap: 14px; }
  .reg-choice-shell { padding: 80px 16px 40px; }
}

/* ===== Owner tab-bar — только на мобильных ===== */
.tab-bar-owner { display: none; }
@media (max-width: 1024px) {
  .tab-bar-owner { display: flex; }
  .lk-main { padding-bottom: 120px !important; }
}

/* ===== Landing: social contacts + bot CTA block ===== */
.social-contacts {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}
.social-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
.social-whatsapp { background: #25d366; color: #fff; }
.social-telegram { background: #0088cc; color: #fff; }
.social-max { background: linear-gradient(135deg, #7b61ff 0%, #5b41df 100%); color: #fff; }
.max-logo { font-size: 13px; font-weight: 800; letter-spacing: 0.5px; font-family: inherit; }
@media (max-width: 600px) {
  .social-btn { width: 52px; height: 52px; }
  .social-btn svg { width: 24px; height: 24px; }
  .max-logo { font-size: 11px; }
}

.bot-cta-block {
  text-align: center;
  padding: 40px 20px;
  margin: 20px 0;
}
.bot-cta-title {
  font-family: var(--ser);
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.1;
}
.bot-cta-title em { font-style: italic; color: var(--gold); }
.bot-cta-sub {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 24px;
}
.bot-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.bot-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 180px;
  justify-content: center;
}
.bot-btn svg { width: 22px; height: 22px; }
.bot-btn-tg {
  background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(0, 136, 204, 0.5);
}
.bot-btn-tg:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(0, 136, 204, 0.7); }
.bot-btn-max {
  background: linear-gradient(135deg, #ff7a00 0%, #e65100 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(255, 122, 0, 0.5);
}
.bot-btn-max:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(255, 122, 0, 0.7); }
@media (max-width: 480px) {
  .bot-cta-buttons { flex-direction: column; align-items: center; }
  .bot-btn { width: 100%; max-width: 280px; }
  .bot-cta-title { font-size: 28px; }
}

/* ── SEDE Admin (системный кабинет /sede-admin) ── */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--glass-bg);
  border-right: 1px solid var(--line);
  padding: 24px;
}

.admin-main {
  padding: 32px;
}

.admin-brand {
  font-family: var(--ser);
  font-size: 24px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 24px;
  line-height: 1;
}

.admin-brand::after {
  content: 'admin';
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  font-style: normal;
  margin-top: 4px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  margin: 2px 0;
  transition: all 0.2s ease;
}

.admin-nav-item:hover {
  background: rgba(213, 175, 55, 0.06);
  color: var(--ink);
}

.admin-nav-item.active {
  background: linear-gradient(90deg, rgba(213, 175, 55, 0.14) 0%, transparent 100%);
  color: var(--gold);
  border-left: 2px solid var(--gold);
}

.admin-warning-bar {
  background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  padding: 8px 24px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.admin-warning-bar::before { content: '⚠ '; }

@media (max-width: 768px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { border-right: none; border-bottom: 1px solid var(--line); }
  .admin-main { padding: 20px; }
}

/* ========================================================================
   LK Dashboard 2.0 (Hybrid A+C, 2026-04-26)
   Greet + KPI row + 2-col layout + action-grid + ai-banner
   ======================================================================== */

.lk-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.lk-top-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lk-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lk-greet-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.lk-greet-line .page-title {
  font-family: var(--ser);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
  font-size: 56px;
}

.lk-greet-line .page-title em {
  font-style: italic;
  color: var(--gold);
  display: inline;
  line-height: 1.05;
}

/* Адаптивные размеры — приоритет business_name (короткое=крупное, ФИО=мелкое) */
.lk-greet-line .page-title.hero-name.is-short { font-size: 64px; }
.lk-greet-line .page-title.hero-name.is-short em { font-size: 64px; }

.lk-greet-line .page-title.hero-name.is-medium { font-size: 48px; }
.lk-greet-line .page-title.hero-name.is-medium em { font-size: 48px; }

.lk-greet-line .page-title.hero-name.is-long { font-size: 36px; line-height: 1.05; }
.lk-greet-line .page-title.hero-name.is-long em { font-size: 38px; line-height: 1.1; }

@media (max-width: 480px) {
  .lk-greet-line .page-title.hero-name.is-short,
  .lk-greet-line .page-title.hero-name.is-short em { font-size: 48px; }
  .lk-greet-line .page-title.hero-name.is-medium,
  .lk-greet-line .page-title.hero-name.is-medium em { font-size: 36px; }
  .lk-greet-line .page-title.hero-name.is-long { font-size: 28px; }
  .lk-greet-line .page-title.hero-name.is-long em { font-size: 30px; }
}

.status-pill {
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.status-pill.status-active {
  background: rgba(74, 222, 128, 0.16);
  color: var(--success);
}

[data-theme="light"] .status-pill.status-active {
  background: rgba(22, 163, 74, 0.12);
}

.status-pill.status-paused {
  background: rgba(255, 181, 71, 0.14);
  color: var(--amber);
}

.lk-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 22px;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .lk-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

.lk-kpi-row .kpi-card {
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 24px;
  margin: 0;
  transition: background-color 200ms;
}

.lk-kpi-row .kpi-card:nth-child(4n) { border-right: none; }
.lk-kpi-row .kpi-card:nth-last-child(-n+4) { border-bottom: none; }

@media (max-width: 1100px) {
  .lk-kpi-row .kpi-card:nth-child(4n) { border-right: 1px solid var(--line); }
  .lk-kpi-row .kpi-card:nth-child(2n) { border-right: none; }
  .lk-kpi-row .kpi-card:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .lk-kpi-row .kpi-card:nth-last-child(-n+2) { border-bottom: none; }
}

.lk-kpi-row .kpi-card:hover {
  background: var(--bg-2);
}

.kpi-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  transition: background-color 200ms;
}

.kpi-card:hover {
  background: var(--bg-2);
}

.kpi-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.kpi-value {
  font-family: var(--ser);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.kpi-currency {
  color: var(--ink-2);
  font-size: 22px;
}

.kpi-delta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  color: var(--ink-2);
}

.kpi-delta.delta-positive { color: var(--success); }
.kpi-delta.delta-negative { color: var(--danger); }
.kpi-delta.delta-warning { color: var(--amber); }

.lk-col2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

@media (max-width: 1100px) {
  .lk-col2 { grid-template-columns: 1fr; }
}

.lk-side-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}

.card-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.visit-row-compact {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--line);
  text-decoration: none;
  transition: opacity 200ms;
}

.visit-row-compact:last-child { border-bottom: none; }
.visit-row-compact:hover { opacity: 0.8; }

.visit-row-compact .visit-time {
  font-family: var(--ser);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
}

.visit-row-compact .visit-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.visit-row-compact .visit-svc {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
}

.visit-row-compact .visit-amt {
  font-family: var(--ser);
  font-size: 20px;
  color: var(--ink);
}

.visit-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.visit-badge.status-awaiting {
  background: var(--status-awaiting-bg);
  color: var(--status-awaiting-fg);
}
.visit-badge.status-completed {
  background: var(--status-completed-bg);
  color: var(--status-completed-fg);
}
.visit-badge.status-confirmed {
  background: var(--status-confirmed-bg);
  color: var(--status-confirmed-fg);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.action-card {
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 24px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: background-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.action-grid .action-card:nth-child(2n) { border-right: none; }
.action-grid .action-card:nth-last-child(-n+2) { border-bottom: none; }

.action-card:hover {
  background: var(--bg-2);
}

.action-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.action-ico {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: rgba(218, 187, 82, 0.10);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .action-ico {
  background: rgba(122, 89, 18, 0.10);
}

.action-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.action-count.count-warning { color: var(--amber); }
.action-count.count-danger { color: var(--danger); }

.action-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.action-sub {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 2px;
}

.ai-banner {
  background: var(--bg-1);
  border: 0.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  transition: all 200ms;
}

.ai-banner:hover { border-color: var(--gold); }

.ai-banner-ico {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--liquid-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  color: #0a0908;
}

.ai-banner-ico::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--liquid-shine);
  pointer-events: none;
}

.ai-banner-ico svg {
  position: relative;
  z-index: 2;
}

.ai-banner-title {
  font-family: var(--ser);
  font-size: 17px;
  font-style: italic;
  line-height: 1.2;
  color: var(--ink);
}

.ai-banner-sub {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
}

.empty-state-mini {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
  padding: 24px 0;
}

/* ========================================================================
   /my Client Dashboard 2.0 (Hybrid A+C, 2026-04-26)
   Greet + tier-card (uses global liquid-gold) + upcoming + stories + quick + AI
   ======================================================================== */

.my-body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--sans);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* R58 (2026-05-11): 440→480 канонический. Единый базовый /my/*-shell. */
.my-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px calc(140px + env(safe-area-inset-bottom)) 20px;
  position: relative;
  z-index: 2;
}

.my-greet-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.my-greet-name {
  font-family: var(--ser);
  font-size: 48px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--ink);
}

.my-greet-name em {
  font-style: italic;
  color: var(--gold);
}

.my-shell .tier-card {
  display: block;
  text-decoration: none;
  margin-bottom: 22px;
}

.my-shell .tier-card .tier-row1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.my-shell .tier-card .tier-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 248, 224, 0.65);
}

.my-shell .tier-card .tier-qr-link {
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.30);
  color: rgba(255, 248, 224, 0.85);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.my-shell .tier-card .tier-name {
  font-family: var(--ser);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  margin: 14px 0 0;
  letter-spacing: -0.01em;
  color: #fff8e0;
}

.my-shell .tier-card .tier-hero {
  text-align: center;
  margin: 18px 0 6px;
  position: relative;
  z-index: 2;
}

.my-shell .tier-card .tier-hero-value {
  font-family: var(--ser);
  font-style: italic;
  font-size: 96px;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #fff8e0;
  margin-bottom: 6px;
}

.my-shell .tier-card .tier-hero-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 248, 224, 0.82);
}

.my-shell .tier-card .tier-breakdown {
  border-top: 1px solid rgba(255, 248, 224, 0.18);
  padding-top: 14px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: rgba(255, 248, 224, 0.78);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.my-shell .tier-card .tier-breakdown span {
  display: block;
}

.my-shell .tier-card .tier-breakdown-detail {
  font-size: 9.5px;
  opacity: 0.78;
  letter-spacing: 0.08em;
}

@media (max-width: 480px) {
  .my-shell .tier-card .tier-name { font-size: 28px; }
  .my-shell .tier-card .tier-hero-value { font-size: 80px; }
  .my-shell .tier-card .tier-hero-label { font-size: 11px; letter-spacing: 0.22em; }
}

.my-shell .tier-card .tier-points {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.my-shell .tier-card .tier-points-value {
  font-family: var(--ser);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff8e0;
}

.my-shell .tier-card .tier-points-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 248, 224, 0.75);
}

.my-shell .tier-card .tier-points-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 248, 224, 0.78);
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.my-shell .tier-card .tier-progress {
  margin-top: 22px;
}

.my-shell .tier-card .tier-progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 248, 224, 0.65);
  margin-bottom: 8px;
}

.my-shell .tier-card .tier-bar {
  height: 3px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.40);
  overflow: hidden;
}

.my-shell .tier-card .tier-fill {
  height: 100%;
  background: linear-gradient(90deg, #fff8e0 0%, #ffd470 100%);
  border-radius: 100px;
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.upcoming-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  text-decoration: none;
  transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.upcoming-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.upcoming-date {
  width: 56px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0a0908;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .upcoming-date {
  color: #fff;
}

.upcoming-day {
  font-family: var(--ser);
  font-size: 28px;
  line-height: 1;
}

.upcoming-month {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  margin-top: 2px;
  text-transform: uppercase;
}

.upcoming-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upcoming-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upcoming-logo-fallback {
  font-family: var(--ser);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-1) 100%);
}

.upcoming-info {
  flex: 1;
  min-width: 0;
}

.upcoming-svc {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.upcoming-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 3px;
}

.upcoming-time {
  font-family: var(--ser);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.awaiting-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-1);
  border: 0.5px solid rgba(255, 181, 71, 0.40);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
  text-decoration: none;
  transition: border-color 200ms;
}

.awaiting-card:hover {
  border-color: var(--amber);
}

.awaiting-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 181, 71, 0.16);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .awaiting-ico {
  background: rgba(217, 119, 6, 0.14);
}

.awaiting-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.awaiting-sub {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 2px;
}

.stories-ribbon {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stories-ribbon::-webkit-scrollbar { display: none; }

.story-item {
  flex-shrink: 0;
  width: 64px;
  text-decoration: none;
}

.story-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  transition: filter 180ms ease;
}

.story-ring.seen {
  background: linear-gradient(135deg, var(--ink-3) 0%, var(--line) 100%);
  filter: saturate(0.4);
}

.story-ring-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ser);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  background: var(--bg-2);
}

.story-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-label {
  font-family: var(--sans);
  font-size: 10.5px;
  text-align: center;
  margin-top: 6px;
  line-height: 1.2;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.my-quick-card {
  background: var(--bg-1);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  padding: 14px 12px;
  text-decoration: none;
  text-align: left;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.my-quick-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.my-quick-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(218, 187, 82, 0.10);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

[data-theme="light"] .my-quick-ico {
  background: rgba(122, 89, 18, 0.10);
}

.my-quick-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.my-quick-sub {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 2px;
  line-height: 1.3;
}

.ai-banner-client {
  background: rgba(218, 187, 82, 0.06);
  border: 0.5px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: border-color 200ms;
}

[data-theme="light"] .ai-banner-client {
  background: rgba(122, 89, 18, 0.06);
}

.ai-banner-client:hover {
  border-color: var(--gold);
}

.ai-banner-client .ai-banner-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--liquid-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  color: #0a0908;
}

.ai-banner-client .ai-banner-ico::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--liquid-shine);
  pointer-events: none;
}

.ai-banner-client .ai-banner-ico svg {
  position: relative;
  z-index: 2;
}

.ai-banner-client .ai-banner-title {
  font-family: var(--ser);
  font-size: 17px;
  font-style: italic;
  line-height: 1.2;
  color: var(--ink);
}

.ai-banner-client .ai-banner-sub {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
}

/* ========================================================================
   /staff Master Dashboard 2.0 (Hybrid A+C, 2026-04-26)
   ======================================================================== */

.staff-body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--sans);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.staff-shell {
  max-width: 460px;
  margin: 0 auto;
  padding: 32px 20px calc(140px + env(safe-area-inset-bottom)) 20px;
  position: relative;
  z-index: 2;
}

.staff-greet-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.staff-greet-name {
  font-family: var(--ser);
  font-size: 46px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 4px;
  color: var(--ink);
  font-style: italic;
}

.staff-greet-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.redeem-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 181, 71, 0.10);
  border: 1px solid rgba(255, 181, 71, 0.40);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
  text-decoration: none;
  animation: redeemPulse 2s ease-in-out infinite;
}

[data-theme="light"] .redeem-alert {
  background: rgba(217, 119, 6, 0.10);
  border-color: rgba(217, 119, 6, 0.40);
}

@keyframes redeemPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.30); }
  50% { box-shadow: 0 0 0 6px rgba(255, 181, 71, 0); }
}

.redeem-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 181, 71, 0.20);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .redeem-ico {
  background: rgba(217, 119, 6, 0.16);
}

.redeem-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.redeem-sub {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 2px;
}

.mpay-missing-card {
  background: var(--bg-1);
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
  text-align: center;
}

.mpay-missing-title {
  font-family: var(--ser);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 6px;
}

.mpay-missing-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 16px;
  line-height: 1.5;
}

.mpay-missing-cta {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 100px;
  background: var(--gold);
  color: #0a0908;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 200ms;
}

[data-theme="light"] .mpay-missing-cta {
  color: #fff;
}

.mpay-missing-cta:hover { transform: translateY(-1px); }

.earnings-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  text-decoration: none;
  transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.earnings-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.earnings-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--liquid-gold);
  color: #0a0908;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.earnings-ico::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--liquid-shine);
  pointer-events: none;
}

.earnings-ico svg {
  position: relative;
  z-index: 2;
}

.earnings-info {
  flex: 1;
  min-width: 0;
}

.earnings-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.earnings-value {
  font-family: var(--ser);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.earnings-currency {
  color: var(--ink-2);
  font-size: 20px;
}

.earnings-sub {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 4px;
}

.earnings-arrow {
  color: var(--ink-3);
  flex-shrink: 0;
}

.staff-three-stat {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 8px;
  margin-bottom: 22px;
}

.staff-three-stat .stat-cell {
  text-align: center;
  padding: 0 8px;
  border-right: 1px solid var(--line);
}

.staff-three-stat .stat-cell:last-child { border-right: none; }

.staff-three-stat .stat-num {
  font-family: var(--ser);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.staff-three-stat .stat-num.gold { color: var(--gold); }
.staff-three-stat .stat-num.amber { color: var(--amber); }

.staff-three-stat .stat-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}

.staff-calendar-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 0 12px;
  margin-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.staff-calendar-strip::-webkit-scrollbar { display: none; }

.day-cell {
  flex-shrink: 0;
  width: 56px;
  background: var(--bg-1);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 4px;
  text-align: center;
  text-decoration: none;
  transition: all 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.day-cell:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.day-cell.is-today {
  border-color: var(--gold);
  border-width: 0.5px;
}

.day-cell.is-focus {
  background: var(--liquid-gold);
  border-color: rgba(255, 225, 122, 0.50);
  position: relative;
  overflow: hidden;
}

.day-cell.is-focus::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--liquid-shine);
  pointer-events: none;
}

.day-cell.is-focus > * { position: relative; z-index: 2; }

.day-cell .day-name {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.day-cell.is-focus .day-name { color: rgba(255, 248, 224, 0.75); }

.day-cell .day-num {
  font-family: var(--ser);
  font-size: 22px;
  line-height: 1;
  margin-top: 4px;
  color: var(--ink);
}

.day-cell.is-focus .day-num { color: #fff8e0; }

.day-cell .day-count {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  margin-top: 4px;
  color: var(--gold);
  min-height: 14px;
}

.day-cell.is-focus .day-count { color: rgba(255, 248, 224, 0.85); }

.staff-section-divider {
  margin: 18px 0 12px;
  padding-top: 12px;
  border-top: 0.5px solid var(--line);
}

.staff-section-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.staff-visits-list { display: flex; flex-direction: column; gap: 10px; }

.staff-shell .visit-card {
  background: var(--bg-1);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  transition: border-color 200ms;
}

.staff-shell .visit-card.is-awaiting { border-color: rgba(255, 181, 71, 0.40); }
.staff-shell .visit-card.is-completed { opacity: 0.7; }
.staff-shell .visit-card.is-cancelled { opacity: 0.5; }

.staff-shell .visit-card .visit-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.staff-shell .visit-card .visit-time {
  font-family: var(--ser);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
}

.staff-shell .visit-card .visit-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.staff-shell .visit-card .visit-badge.is-awaiting { background: var(--status-awaiting-bg); color: var(--status-awaiting-fg); }
.staff-shell .visit-card .visit-badge.is-completed { background: var(--status-completed-bg); color: var(--status-completed-fg); }
.staff-shell .visit-card .visit-badge.is-confirmed { background: var(--status-confirmed-bg); color: var(--status-confirmed-fg); }
.staff-shell .visit-card .visit-badge.is-cancelled { background: rgba(248, 113, 113, 0.10); color: var(--danger); }

.staff-shell .visit-card .visit-client {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.staff-shell .visit-card .visit-svc {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 4px;
  line-height: 1.4;
}

.staff-shell .visit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 0.5px solid var(--line);
}

.staff-shell .visit-btn {
  padding: 9px 12px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  border: 0.5px solid;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 150ms;
  background: transparent;
}

.staff-shell .visit-btn-confirm {
  border-color: rgba(74, 222, 128, 0.40);
  color: var(--success);
}

[data-theme="light"] .staff-shell .visit-btn-confirm {
  border-color: rgba(22, 163, 74, 0.40);
}

.staff-shell .visit-btn-confirm:hover {
  background: rgba(74, 222, 128, 0.10);
  border-color: var(--success);
}

[data-theme="light"] .staff-shell .visit-btn-confirm:hover {
  background: rgba(22, 163, 74, 0.08);
}

.staff-shell .visit-btn-cancel {
  border-color: rgba(248, 113, 113, 0.30);
  color: var(--danger);
}

.staff-shell .visit-btn-cancel:hover {
  background: rgba(248, 113, 113, 0.08);
  border-color: var(--danger);
}

.staff-shell .visit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-day {
  text-align: center;
  padding: 48px 24px;
  font-family: var(--ser);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-2);
  background: var(--bg-1);
  border: 0.5px solid var(--line);
  border-radius: 18px;
}

.empty-day-sub {
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  color: var(--ink-3);
  display: block;
  margin-top: 6px;
}

/* ============================================================
   Bonus Redeem Confirmation - /staff/redeem/:id + /lk/redeem/:id
   ============================================================ */

.redeem-shell {
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 20px calc(140px + env(safe-area-inset-bottom)) 20px;
  position: relative;
  z-index: 2;
}

.lk-main .redeem-shell {
  max-width: 720px;
  padding: 32px 40px 60px;
}

.redeem-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.redeem-back {
  width: 36px;
  height: 36px;
  border-radius: 100px;
  background: var(--bg-1);
  border: 0.5px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color 200ms;
}

.redeem-back:hover { border-color: var(--gold); }

.redeem-top-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.redeem-title {
  font-family: var(--ser);
  font-size: 38px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--ink);
}

.redeem-title em {
  font-style: italic;
  color: var(--gold);
}

.redeem-countdown {
  background: rgba(255, 181, 71, 0.08);
  border: 0.5px solid rgba(255, 181, 71, 0.30);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

[data-theme="light"] .redeem-countdown {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.30);
}

.redeem-countdown.is-expired {
  background: rgba(248, 113, 113, 0.06);
  border-color: rgba(248, 113, 113, 0.30);
}

[data-theme="light"] .redeem-countdown.is-expired {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.30);
}

.redeem-countdown-bar {
  height: 3px;
  border-radius: 100px;
  background: rgba(255, 181, 71, 0.20);
  overflow: hidden;
  margin-bottom: 8px;
}

[data-theme="light"] .redeem-countdown-bar {
  background: rgba(217, 119, 6, 0.20);
}

.redeem-countdown-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 100px;
  width: 100%;
  transition: width 1s linear;
}

.is-expired .redeem-countdown-fill {
  background: var(--danger);
}

.redeem-countdown-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--amber);
  text-align: center;
}

.is-expired .redeem-countdown-text {
  color: var(--danger);
}

.redeem-status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.redeem-status-banner.is-applied {
  background: rgba(74, 222, 128, 0.10);
  border: 0.5px solid rgba(74, 222, 128, 0.40);
}

[data-theme="light"] .redeem-status-banner.is-applied {
  background: rgba(22, 163, 74, 0.10);
  border-color: rgba(22, 163, 74, 0.40);
}

.redeem-status-banner.is-rejected {
  background: rgba(248, 113, 113, 0.10);
  border: 0.5px solid rgba(248, 113, 113, 0.40);
}

[data-theme="light"] .redeem-status-banner.is-rejected {
  background: rgba(220, 38, 38, 0.10);
  border-color: rgba(220, 38, 38, 0.40);
}

.redeem-status-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.is-applied .redeem-status-ico {
  background: rgba(74, 222, 128, 0.16);
  color: var(--success);
}

.is-rejected .redeem-status-ico {
  background: rgba(248, 113, 113, 0.16);
  color: var(--danger);
}

.redeem-status-title {
  font-family: var(--ser);
  font-style: italic;
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
}

.redeem-status-sub {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 3px;
}

.redeem-calc-card {
  background: var(--liquid-gold);
  border: 0.5px solid rgba(255, 225, 122, 0.50);
  border-radius: 24px;
  padding: 28px 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.55);
}

.redeem-calc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--liquid-shine);
  pointer-events: none;
}

.redeem-calc-card > * { position: relative; z-index: 2; }

.redeem-calc-points,
.redeem-calc-rubles {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.redeem-calc-num {
  font-family: var(--ser);
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff8e0;
}

.redeem-calc-unit {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 248, 224, 0.75);
  margin-top: 6px;
}

.redeem-calc-equals {
  font-family: var(--ser);
  font-size: 36px;
  color: rgba(255, 248, 224, 0.55);
  font-style: italic;
}

.redeem-cheque-card {
  background: var(--bg-1);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.redeem-cheque-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
}

.redeem-cheque-row:not(:last-child) {
  border-bottom: 0.5px solid var(--line);
}

.redeem-cheque-label {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
}

.redeem-cheque-value {
  font-family: var(--ser);
  font-size: 22px;
  color: var(--ink);
}

.redeem-cheque-value.redeem-cheque-final {
  color: var(--gold);
  font-style: italic;
}

.redeem-cheque-row.redeem-cheque-meta {
  border-top: 0.5px solid var(--line);
  padding-top: 10px;
  margin-top: 4px;
  border-bottom: none;
}

.redeem-cheque-row.redeem-cheque-meta span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.redeem-limit-warning {
  background: rgba(248, 113, 113, 0.10);
  border: 0.5px solid rgba(248, 113, 113, 0.40);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

.redeem-limit-warning strong { color: var(--danger); }

.redeem-section-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 22px 0 10px;
  padding-top: 6px;
}

.redeem-info-card {
  background: var(--bg-1);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}

.redeem-customer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--line);
}

.redeem-customer-avatar,
.redeem-customer-initial {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.redeem-customer-initial {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0a0908;
  font-family: var(--ser);
  font-style: italic;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .redeem-customer-initial {
  color: #fff;
}

.redeem-customer-name {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.redeem-customer-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--ink-3);
  margin-top: 3px;
}

.redeem-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.redeem-info-label {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
}

.redeem-info-value {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.redeem-balance-after { color: var(--gold); }

.redeem-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 8px;
}

.redeem-btn {
  padding: 16px 20px;
  border-radius: 18px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  border: 0.5px solid;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  background: transparent;
  text-decoration: none;
}

.redeem-btn-confirm {
  background: var(--success);
  color: #0a0908;
  border-color: var(--success);
}

[data-theme="light"] .redeem-btn-confirm {
  color: #fff;
}

.redeem-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px var(--success);
}

.redeem-btn-reject {
  border-color: rgba(248, 113, 113, 0.50);
  color: var(--danger);
}

.redeem-btn-reject:hover {
  background: rgba(248, 113, 113, 0.10);
  border-color: var(--danger);
}

.redeem-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.redeem-reject-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

@media (min-width: 600px) {
  .redeem-reject-modal { align-items: center; }
}

.redeem-reject-modal-card {
  background: var(--bg-1);
  border: 0.5px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.60);
}

.redeem-reject-modal-title {
  font-family: var(--ser);
  font-style: italic;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 4px;
}

.redeem-reject-modal-sub {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.redeem-reject-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 0.5px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 14px;
}

.redeem-reject-textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.redeem-reject-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.redeem-btn-sm {
  padding: 10px 16px;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  border: 0.5px solid;
  cursor: pointer;
  background: transparent;
  transition: all 200ms;
}

.redeem-btn-sm-ghost {
  border-color: var(--line-strong);
  color: var(--ink-2);
}

.redeem-btn-sm-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.redeem-btn-sm-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.redeem-btn-sm-danger:hover {
  opacity: 0.9;
}

.redeem-not-found {
  text-align: center;
  padding: 80px 20px;
}

.redeem-not-found-title {
  font-family: var(--ser);
  font-style: italic;
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 8px;
}

.redeem-not-found-sub {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 24px;
}

/* ============================================================
   /lk/calendar — List view (default)
   ============================================================ */
.cal-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 720px;
  margin: 0 auto;
}

.cal-day-group {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.cal-day-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.cal-day-header.is-today {
  background: var(--liquid-gold);
  position: relative;
  overflow: hidden;
}

.cal-day-header.is-today::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--liquid-shine);
  pointer-events: none;
  z-index: 1;
}

.cal-day-header.is-today > * { position: relative; z-index: 2; color: #fff8e0; }

.cal-day-date { text-align: center; min-width: 44px; }

.cal-day-num {
  font-family: var(--ser);
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
}

.cal-day-header.is-today .cal-day-num { color: #fff8e0; }

.cal-day-month {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

.cal-day-header.is-today .cal-day-month { color: rgba(255, 248, 224, 0.75); }

.cal-day-name {
  font-family: var(--ser);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}

.cal-day-count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.cal-day-header.is-today .cal-day-count { color: rgba(255, 248, 224, 0.75); }

.cal-day-appts { display: flex; flex-direction: column; }

.cal-list-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background 150ms;
}

.cal-list-row:last-child { border-bottom: none; }
.cal-list-row:hover { background: var(--bg-2); }
.cal-list-row.is-completed { opacity: 0.6; }
.cal-list-row.is-cancelled { opacity: 0.5; }

.cal-row-time {
  font-family: var(--ser);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  min-width: 56px;
}

.cal-row-client {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.cal-row-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
  line-height: 1.4;
}

.cal-row-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.cal-row-badge.is-confirmed {
  background: var(--status-confirmed-bg);
  color: var(--status-confirmed-fg);
}

.cal-row-badge.is-awaiting {
  background: var(--status-awaiting-bg);
  color: var(--status-awaiting-fg);
}

.cal-row-badge.is-completed {
  background: var(--status-completed-bg);
  color: var(--status-completed-fg);
}

.cal-row-badge.is-cancelled {
  background: rgba(248, 113, 113, 0.16);
  color: var(--danger);
}

.cal-empty {
  text-align: center;
  padding: 80px 20px;
}

.cal-empty-title {
  font-family: var(--ser);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 6px;
}

.cal-empty-sub {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
}

@media (max-width: 600px) {
  .cal-day-header { padding: 12px 14px; gap: 10px; }
  .cal-list-row { padding: 10px 14px; gap: 10px; }
  .cal-row-time { font-size: 17px; min-width: 46px; }
  .cal-row-client { font-size: 14px; }
  .cal-row-meta { font-size: 11px; }
  .cal-day-num { font-size: 22px; }
  .cal-day-name { font-size: 16px; }
}

/* ─── Audit-E: SEDE Points vs Local Bonuses разделение в /my hero ──── */
.my-shell .sede-frozen-pill {
  display: inline-block; margin-top: 10px;
  padding: 4px 11px; border-radius: 100px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.32); color: rgba(255, 248, 224, 0.92);
  border: 1px solid rgba(255, 248, 224, 0.20);
}
.my-shell .local-card-hero {
  display: block; margin: 12px 20px 0;
  padding: 16px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: border-color .15s, transform .1s;
}
.my-shell .local-card-hero:hover { border-color: var(--gold); }
.my-shell .local-card-hero:active { transform: scale(.99); }
.my-shell .local-card-hero .lch-row {
  display: flex; align-items: center; gap: 14px;
}
.my-shell .local-card-hero .lch-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(218, 187, 82, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
[data-theme="light"] .my-shell .local-card-hero .lch-icon {
  background: rgba(122, 89, 18, 0.10);
}
.my-shell .local-card-hero .lch-info { flex: 1; min-width: 0; }
.my-shell .local-card-hero .lch-title {
  font-family: var(--ser); font-size: 17px; font-style: italic;
  color: var(--text); line-height: 1.1;
}
.my-shell .local-card-hero .lch-sub {
  font-size: 11px; color: var(--text-muted); margin-top: 3px;
}
.my-shell .local-card-hero .lch-value {
  font-family: var(--ser); font-style: italic; font-weight: 600;
  font-size: 28px; color: var(--gold); line-height: 1;
}

/* ─── /my/bonuses hero — двойной — SEDE + Local ─────────── */
.bonuses-dual-hero {
  display: grid; gap: 12px; margin-bottom: 18px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 540px) { .bonuses-dual-hero { grid-template-columns: 1fr; } }
.bonuses-hero-card {
  padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
}
.bonuses-hero-card.is-sede {
  background: linear-gradient(135deg, #fff8e0 0%, #dabb52 35%, #9d7d1c 60%, #dabb52 90%);
  color: #1a1408; border-color: transparent;
}
.bonuses-hero-card .bhc-icon { font-size: 22px; line-height: 1; }
.bonuses-hero-card .bhc-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.85;
}
.bonuses-hero-card .bhc-value {
  font-family: var(--ser); font-style: italic; font-weight: 600;
  font-size: 36px; line-height: 1;
}
.bonuses-hero-card .bhc-sub { font-size: 12px; opacity: 0.78; }
.bonuses-hero-card.is-sede .bhc-sub { color: rgba(26, 20, 8, 0.72); }
.bonuses-hero-card.is-local .bhc-value { color: var(--gold); }

/* Бейджи на bonus-history items */
.bonus-history-badge {
  display: inline-block; padding: 2px 8px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
}
.bonus-history-badge.sede {
  background: linear-gradient(135deg, #fff8e0 0%, #dabb52 100%);
  color: #1a1408;
}
.bonus-history-badge.local {
  background: rgba(218, 187, 82, 0.12);
  color: var(--gold);
}
[data-theme="light"] .bonus-history-badge.local {
  background: rgba(122, 89, 18, 0.10);
  color: #7a5912;
}
