/* ═══════════════════════════════════════════════════════════
   AURA CONNECT — Design System
   Damerax Cloud Solutions
═══════════════════════════════════════════════════════════ */
:root {
  --ivory:      #FAF8F5;
  --surface:    #F4F1EC;
  --surface2:   #EDE9E2;
  --onyx:       #1A1A1A;
  --onyx-60:    rgba(26,26,26,0.6);
  --onyx-35:    rgba(26,26,26,0.35);
  --onyx-10:    rgba(26,26,26,0.08);
  --maroon:     #5C0A11;
  --maroon-soft:rgba(92,10,17,0.08);
  --gold:       #D4AF37;
  --gold-soft:  rgba(212,175,55,0.12);
  --gold-glow:  rgba(212,175,55,0.06);
  --green:      #2D6A4F;
  --green-soft: rgba(45,106,79,0.10);
  --amber:      #B45309;
  --amber-soft: rgba(180,83,9,0.10);
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
  --radius:     6px;
  --radius-lg:  12px;
  --ease:       cubic-bezier(0.25,0.46,0.45,0.94);
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { font-size:16px; -webkit-font-smoothing:antialiased; }
body { background:var(--surface); color:var(--onyx); font-family:var(--sans); font-weight:300; min-height:100vh; }
button { cursor:pointer; border:none; background:none; font-family:var(--sans); }
input,select,textarea { font-family:var(--sans); outline:none; }
a { text-decoration:none; color:inherit; }
img { display:block; width:100%; }

/* ── View Toggle (top-level) ────────────────────────────── */
.view-toggle-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--onyx);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.vtb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vtb-logo {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.06em;
}

.vtb-back-btn {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 12px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vtb-back-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.vtb-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  padding: 4px;
  border-radius: 100px;
}

.vtb-tab {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  padding: 7px 20px;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}

.vtb-tab.active {
  background: var(--ivory);
  color: var(--onyx);
}

.vtb-right {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* ── App Shell ───────────────────────────────────────────── */
.app-shell {
  display: none;
  padding-top: 52px;
  min-height: 100vh;
}

.app-shell.active { display: flex; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--ivory);
  border-right: 1px solid var(--onyx-10);
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
}

.sidebar-user {
  padding: 28px 24px 24px;
  border-bottom: 1px solid var(--onyx-10);
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), #8B1520);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ivory);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--onyx);
  margin-bottom: 2px;
}

.sidebar-user-tag {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.sidebar-nav {
  padding: 20px 12px;
  flex: 1;
}

.sidebar-nav-section {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--onyx-35);
  padding: 0 12px;
  margin: 16px 0 8px;
}

.sidebar-nav-section:first-child { margin-top: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 400;
  color: var(--onyx-60);
  transition: all 0.2s var(--ease);
  margin-bottom: 2px;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.nav-item:hover { background: var(--onyx-10); color: var(--onyx); }

.nav-item.active {
  background: var(--onyx);
  color: var(--ivory);
}

.nav-item.active .nav-icon { opacity: 1; }

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item.active .nav-icon { opacity: 0.85; }

.nav-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 500;
  background: var(--maroon);
  color: var(--ivory);
  padding: 2px 7px;
  border-radius: 100px;
  line-height: 1.4;
}

.nav-item.active .nav-badge { background: rgba(255,255,255,0.15); }

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--onyx-10);
}

.sidebar-footer-text {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--onyx-35);
  line-height: 1.7;
}

/* ── Main Content ────────────────────────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

.screen { display: none; padding: 36px 40px; }
.screen.active { display: block; }

.screen-header {
  margin-bottom: 32px;
}

.screen-eyebrow {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.screen-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--onyx);
  line-height: 1.2;
}

.screen-title em { font-style: italic; color: var(--maroon); }

.screen-sub {
  font-size: 12px;
  color: var(--onyx-60);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--ivory);
  border: 1px solid var(--onyx-10);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--onyx-35);
  margin-bottom: 16px;
}

/* ── Grid Layouts ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }
.grid-col-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.grid-col-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card {
  background: var(--ivory);
  border: 1px solid var(--onyx-10);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0.4;
}

.stat-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--onyx-35);
  margin-bottom: 10px;
}

.stat-value {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--onyx);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-sub {
  font-size: 10px;
  color: var(--onyx-35);
  letter-spacing: 0.04em;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--green);
  background: var(--green-soft);
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 8px;
}

/* ── Status Badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.badge-confirmed  { background: var(--green-soft);  color: var(--green); }
.badge-pending    { background: var(--amber-soft);  color: var(--amber); }
.badge-completed  { background: var(--onyx-10);     color: var(--onyx-60); }
.badge-cancelled  { background: var(--maroon-soft); color: var(--maroon); }
.badge-gold       { background: var(--gold-soft);   color: #8B6914; }

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

/* ── Appointment Card ────────────────────────────────────── */
.appt-card {
  background: var(--ivory);
  border: 1px solid var(--onyx-10);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
}

.appt-card:hover {
  border-color: rgba(212,175,55,0.3);
  box-shadow: 0 4px 24px rgba(26,26,26,0.05);
}

.appt-date-block {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 8px 4px;
}

.appt-date-day {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--onyx);
  line-height: 1;
}

.appt-date-mon {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--onyx-35);
  margin-top: 3px;
}

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

.appt-treatment {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--onyx);
  margin-bottom: 4px;
}

.appt-meta {
  font-size: 11px;
  color: var(--onyx-60);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.appt-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.appt-right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.appt-time {
  font-size: 13px;
  font-weight: 500;
  color: var(--onyx);
  letter-spacing: 0.04em;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--onyx);
  color: var(--ivory);
}

.btn-primary:hover { background: var(--maroon); }

.btn-gold {
  background: var(--gold);
  color: var(--onyx);
}

.btn-gold:hover { background: #C09B25; }

.btn-ghost {
  background: transparent;
  color: var(--onyx-60);
  border: 1px solid var(--onyx-10);
}

.btn-ghost:hover {
  border-color: var(--onyx-35);
  color: var(--onyx);
}

.btn-sm {
  font-size: 9px;
  padding: 6px 14px;
}

/* ── Journey Timeline ────────────────────────────────────── */
/* THE SIGNATURE ELEMENT */
.journey-timeline {
  position: relative;
  padding-left: 32px;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), rgba(212,175,55,0.1));
}

.journey-event {
  position: relative;
  margin-bottom: 32px;
}

.journey-event:last-child { margin-bottom: 0; }

.journey-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--gold);
  z-index: 1;
}

.journey-dot.filled {
  background: var(--gold);
}

.journey-date {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.journey-treatment {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--onyx);
  margin-bottom: 4px;
}

.journey-note {
  font-size: 11px;
  line-height: 1.75;
  color: var(--onyx-60);
  margin-bottom: 10px;
}

.journey-clinician {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--onyx-35);
  font-style: italic;
}

.journey-outcome {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--green);
  background: var(--green-soft);
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 6px;
}

/* ── Invoice / Payment Row ───────────────────────────────── */
.invoice-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--onyx-10);
}

.invoice-row:last-child { border-bottom: none; }

.invoice-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B6914;
  flex-shrink: 0;
}

.invoice-info { flex: 1; }

.invoice-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--onyx);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.invoice-date {
  font-size: 10px;
  color: var(--onyx-35);
  letter-spacing: 0.04em;
}

.invoice-amount {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--onyx);
  text-align: right;
}

.invoice-status { flex-shrink: 0; }

/* ── Client Row (Clinic Dashboard) ──────────────────────── */
.client-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: var(--radius);
  transition: background 0.2s;
  cursor: pointer;
}

.client-row:hover { background: var(--surface); }

.client-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ivory);
  flex-shrink: 0;
}

.client-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--onyx);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.client-meta {
  font-size: 10px;
  color: var(--onyx-35);
  letter-spacing: 0.04em;
}

.client-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.client-tag {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--surface2);
  color: var(--onyx-60);
  padding: 3px 8px;
  border-radius: 100px;
}

.client-last-visit {
  font-size: 10px;
  color: var(--onyx-35);
  white-space: nowrap;
  margin-left: auto;
  text-align: right;
}

/* ── Appointment Slot (Clinic Calendar) ──────────────────── */
.slot-row {
  display: flex;
  gap: 0;
  margin-bottom: 2px;
}

.slot-time {
  width: 72px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  color: var(--onyx-35);
  letter-spacing: 0.08em;
  padding: 12px 0;
  text-align: right;
  padding-right: 16px;
}

.slot-bar {
  flex: 1;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  border-left: 3px solid transparent;
}

.slot-empty {
  border-bottom: 1px dashed var(--onyx-10);
  border-radius: 0;
  border-left: none;
}

.slot-confirmed {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}

.slot-pending {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: var(--amber);
}

.slot-completed {
  background: var(--surface);
  border-color: var(--onyx-35);
  color: var(--onyx-60);
}

.slot-name { font-weight: 500; color: var(--onyx); }
.slot-treatment { font-size: 10px; opacity: 0.7; }

/* ── Search Bar ──────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ivory);
  border: 1px solid var(--onyx-10);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 20px;
}

.search-bar svg { opacity: 0.3; flex-shrink: 0; }

.search-bar input {
  flex: 1;
  font-size: 13px;
  font-weight: 300;
  color: var(--onyx);
  border: none;
  background: transparent;
}

.search-bar input::placeholder { color: var(--onyx-35); }

/* ── Treatment Catalog Card ──────────────────────────────── */
.treatment-catalog-card {
  background: var(--ivory);
  border: 1px solid var(--onyx-10);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s;
}

.treatment-catalog-card:hover { border-color: rgba(212,175,55,0.3); }

.tc-category {
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.tc-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--onyx);
  margin-bottom: 6px;
}

.tc-duration {
  font-size: 10px;
  color: var(--onyx-35);
  margin-bottom: 12px;
}

.tc-price {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--onyx);
  margin-bottom: 12px;
}

.tc-actions {
  display: flex;
  gap: 8px;
}

/* ── Upcoming appt highlight ─────────────────────────────── */
.next-appt-card {
  background: var(--onyx);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.next-appt-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 65%);
}

.next-appt-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.next-appt-treatment {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--ivory);
  margin-bottom: 6px;
  line-height: 1.3;
}

.next-appt-meta {
  font-size: 11px;
  color: rgba(250,248,245,0.5);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.next-appt-countdown {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.countdown-block { text-align: center; }

.countdown-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--ivory);
  line-height: 1;
}

.countdown-unit {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.3);
  margin-top: 3px;
}

.countdown-sep {
  font-family: var(--serif);
  font-size: 24px;
  color: rgba(250,248,245,0.15);
  align-self: flex-start;
  margin-top: 4px;
}

/* ── Quick Actions ───────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-action {
  background: var(--ivory);
  border: 1px solid var(--onyx-10);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: left;
}

.quick-action:hover {
  border-color: rgba(212,175,55,0.3);
  box-shadow: 0 4px 16px rgba(26,26,26,0.05);
}

.qa-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--onyx-60);
}

.quick-action:hover .qa-icon { background: var(--gold-soft); color: #8B6914; }

.qa-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--onyx);
  letter-spacing: 0.02em;
}

.qa-sub {
  font-size: 9px;
  color: var(--onyx-35);
  letter-spacing: 0.04em;
}

/* ── Progress bar ────────────────────────────────────────── */
.progress-bar {
  height: 3px;
  background: var(--surface2);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold), #C09B25);
  border-radius: 100px;
  transition: width 0.6s var(--ease);
}

/* ── Section divider ─────────────────────────────────────── */
.section-sep {
  height: 1px;
  background: var(--onyx-10);
  margin: 28px 0;
}

/* ── Modal ───────────────────────────────────────────────── */
#portal-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

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

.modal-back {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.55);
  backdrop-filter: blur(6px);
}

.modal-box {
  position: relative;
  z-index: 1;
  background: var(--ivory);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 36px;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

#portal-modal.open .modal-box { transform: translateY(0) scale(1); }

.modal-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--onyx);
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 11px;
  color: var(--onyx-35);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.modal-close-btn:hover { opacity: 1; }

.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--onyx-35);
  display: block;
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  font-size: 13px;
  font-weight: 300;
  color: var(--onyx);
  background: var(--surface);
  border: 1px solid var(--onyx-10);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--gold); }

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

/* ── Top bar (inside main content) ──────────────────────── */
.content-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

/* ── Notification dot ────────────────────────────────────── */
.notif-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--maroon);
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Today strip (dashboard) ─────────────────────────────── */
.today-strip {
  background: var(--gold-glow);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.today-strip-left {
  font-size: 10px;
  color: var(--onyx-60);
  letter-spacing: 0.06em;
}

.today-strip-left strong {
  font-weight: 500;
  color: var(--onyx);
}

.today-strip-right {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--onyx-10); border-radius: 2px; }

/* ── Concept watermark ───────────────────────────────────── */
.concept-strip {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--onyx);
  text-align: center;
  padding: 6px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.concept-strip span { color: var(--gold); opacity: 0.7; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { width: 200px; }
  .grid-4  { grid-template-columns: 1fr 1fr; }
  .grid-3  { grid-template-columns: 1fr 1fr; }
  .grid-col-1-2, .grid-col-2-1 { grid-template-columns: 1fr; }
  
  .vtb-right { display: none; }
  .back-text-mobile { display: none; }
}

@media (min-width: 901px) {
  .back-text-mobile { display: none; }
}

@media (max-width: 640px) {
  .sidebar { display: none; }
  .screen  { padding: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  
  .view-toggle-bar { padding: 0 12px; }
  .vtb-logo { display: none; }
  .back-text { display: none; }
  .back-text-mobile { display: inline; }
  .vtb-tab { padding: 7px 10px; font-size: 8px; letter-spacing: 0.1em; }
}