/* ===========================================
   JURILINKER v2 — Design System
   =========================================== */

/* ── Variables ─────────────────────────────── */
:root {
  --navy:       #141e35;
  --navy-mid:   #1e2d4d;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --green:      #2ecc8c;
  --red:        #e84c6b;
  --amber:      #f0a033;
  --blue:       #3a7eff;
  --bg:         #f4f5f8;
  --border:     #e2e8f4;

  --sidebar-w: 220px;
  --topbar-h:  56px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.15);

  --transition: 150ms ease;
}

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: #2d3748;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }

code, .mono { font-family: var(--font-mono); }

img { max-width: 100%; }

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

/* ── Sidebar ─────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 24px 20px 16px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar-logo .logo-linker { color: var(--gold); }

.sidebar-cabinet {
  padding: 0 20px 16px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 0;
}

.sidebar-nav-group {
  margin-bottom: 4px;
}

.sidebar-nav-label {
  padding: 8px 20px 4px;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  border-radius: 0;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.sidebar-user-info {
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-plan {
  font-size: 0.6875rem;
  color: var(--gold);
}

/* ── Main content ─────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ───────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--navy);
  flex: 1;
}

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

/* ── Page content ────────────────────────── */
.page-content {
  padding: 24px;
  flex: 1;
}

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-primary:hover { background: var(--navy-mid); color: white; text-decoration: none; }

.btn-gold {
  background: var(--gold);
  color: white;
}
.btn-gold:hover { background: var(--gold-light); color: var(--navy); text-decoration: none; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: #4a5568;
}
.btn-outline:hover { border-color: #cbd5e0; background: #f7fafc; text-decoration: none; }

.btn-danger {
  background: var(--red);
  color: white;
}
.btn-danger:hover { opacity: 0.9; text-decoration: none; }

.btn-green {
  background: var(--green);
  color: white;
}
.btn-green:hover { opacity: 0.9; text-decoration: none; }

.btn-sm { padding: 5px 12px; font-size: 0.8125rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-icon { padding: 8px; }
.btn-full { width: 100%; justify-content: center; }

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

/* ── Cards ────────────────────────────────── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body {
  padding: 20px;
}

/* ── KPI Cards ────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #718096;
  margin-bottom: 8px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.kpi-sub {
  font-size: 0.75rem;
  color: #718096;
  margin-top: 4px;
}

.kpi-card.kpi-gold .kpi-value { color: var(--gold); }
.kpi-card.kpi-green .kpi-value { color: var(--green); }
.kpi-card.kpi-red .kpi-value { color: var(--red); }

/* ── Table ────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.875rem;
}

.data-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #718096;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fafbfc; }

/* ── Badges ───────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-phone  { background: rgba(58,126,255,.12); color: var(--blue); }
.badge-visio  { background: rgba(46,204,140,.12); color: var(--green); }
.badge-onsite { background: rgba(240,160,51,.12); color: var(--amber); }
.badge-scheduled { background: rgba(58,126,255,.12); color: var(--blue); }
.badge-honored   { background: rgba(46,204,140,.12); color: var(--green); }
.badge-no_show   { background: rgba(232,76,107,.12); color: var(--red); }
.badge-cancelled { background: rgba(113,128,150,.12); color: #718096; }
.badge-paid      { background: rgba(46,204,140,.12); color: var(--green); }
.badge-pending   { background: rgba(240,160,51,.12); color: var(--amber); }
.badge-free      { background: rgba(113,128,150,.1); color: #718096; }
.badge-draft     { background: rgba(113,128,150,.1); color: #718096; }
.badge-sent      { background: rgba(58,126,255,.12); color: var(--blue); }
.badge-validated { background: rgba(201,168,76,.12); color: var(--gold); }
.badge-rp        { background: rgba(240,160,51,.12); color: var(--amber); }

/* ── Avatar ───────────────────────────────── */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
}

.avatar-sm { width: 28px; height: 28px; font-size: 0.6875rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }

/* ── Forms ────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 6px;
}
.form-label .required { color: var(--red); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #2d3748;
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(58,126,255,.15);
}

.form-control::placeholder { color: #a0aec0; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-error {
  font-size: 0.75rem;
  color: var(--red);
  margin-top: 4px;
}

/* ── Chips / Filter tabs ─────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  cursor: pointer;
  background: white;
  color: #4a5568;
  transition: all var(--transition);
  white-space: nowrap;
}

.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ── Planning calendar ───────────────────── */
.planning-wrapper {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.planning-toolbar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.planning-grid {
  display: grid;
  grid-template-columns: 60px repeat(5, 1fr);
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.planning-header-row {
  display: contents;
}

.planning-hour-col {
  background: #fafbfc;
  border-right: 1px solid var(--border);
  padding-top: 40px; /* header height */
}

.planning-hour {
  height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  font-size: 0.6875rem;
  color: #a0aec0;
  font-family: var(--font-mono);
}

.planning-day-header {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  position: sticky;
  top: 0;
  z-index: 2;
}

.planning-day-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  color: #4a5568;
}

.planning-day-num.today {
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.planning-day-name {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a0aec0;
}

.planning-day-col {
  position: relative;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.planning-day-col.today-col {
  background: rgba(20,30,53,.02);
}

.planning-time-slot {
  height: 64px;
  border-bottom: 1px solid #f0f2f5;
}

.planning-time-slot:nth-child(2n) { background: transparent; }

.planning-event {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: opacity var(--transition);
  z-index: 1;
}

.planning-event:hover { opacity: 0.9; }

.planning-event.media-phone  { background: var(--blue); color: white; }
.planning-event.media-visio  { background: var(--green); color: white; }
.planning-event.media-onsite { background: var(--amber); color: white; }

.planning-event .event-time  { font-size: 0.6875rem; opacity: 0.85; }
.planning-event .event-name  { font-weight: 500; }

.current-time-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  z-index: 3;
  pointer-events: none;
}

.current-time-line::before {
  content: '';
  position: absolute;
  left: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

/* ── Modal ────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in 150ms ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { font-family: var(--font-display); font-size: 1.125rem; color: var(--navy); }

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #718096;
  font-size: 1.25rem;
  line-height: 1;
}

.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ── Flash messages ───────────────────────── */
.flash-messages {
  margin-bottom: 16px;
}

.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.flash-success { background: rgba(46,204,140,.12); color: #276749; border: 1px solid rgba(46,204,140,.3); }
.flash-error   { background: rgba(232,76,107,.1); color: #9b2335; border: 1px solid rgba(232,76,107,.3); }
.flash-info    { background: rgba(58,126,255,.1); color: #1a56db; border: 1px solid rgba(58,126,255,.3); }
.flash-warning { background: rgba(240,160,51,.1); color: #975a16; border: 1px solid rgba(240,160,51,.3); }

/* ── Tabs ─────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  gap: 0;
}

.tab {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #718096;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); border-bottom-color: var(--navy); }

/* ── Stepper (booking) ────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a0aec0;
  flex-shrink: 0;
  transition: all var(--transition);
}

.step.active .step-num {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.step.done .step-num {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.step-label {
  font-size: 0.8125rem;
  color: #a0aec0;
  white-space: nowrap;
}

.step.active .step-label { color: var(--navy); font-weight: 500; }
.step.done .step-label   { color: var(--green); }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 24px;
  max-width: 60px;
}

.step-line.done { background: var(--green); }

/* ── Booking card (type selection) ──────── */
.booking-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.booking-type-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  background: white;
}

.booking-type-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.booking-type-card.selected {
  border-color: var(--navy);
  background: rgba(20,30,53,.03);
}

.booking-type-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.booking-type-name {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.booking-type-meta {
  font-size: 0.8125rem;
  color: #718096;
}

.booking-type-price {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--gold);
}

/* ── Slot picker ──────────────────────────── */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.slot-btn {
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  color: var(--navy);
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--navy);
  background: rgba(20,30,53,.04);
}

.slot-btn.selected {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.slot-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Mini calendar ───────────────────────── */
.mini-cal { width: 100%; }
.mini-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.mini-cal-day-name {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: #a0aec0;
  padding: 4px 0;
}

.mini-cal-day {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.875rem;
  cursor: pointer;
  margin: auto;
  transition: all var(--transition);
}

.mini-cal-day:hover:not(.disabled) { background: var(--bg); }
.mini-cal-day.today { font-weight: 700; color: var(--navy); }
.mini-cal-day.has-slots { font-weight: 600; color: var(--navy); }
.mini-cal-day.selected { background: var(--navy); color: white; }
.mini-cal-day.disabled { color: #e2e8f0; cursor: default; }

/* ── Booking recap bar ───────────────────── */
.booking-recap {
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.booking-recap-item {
  font-size: 0.8125rem;
  opacity: 0.85;
}

.booking-recap-item strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* ── Progress bar ────────────────────────── */
.progress-bar-wrap {
  background: var(--border);
  border-radius: 4px;
  height: 4px;
  margin-bottom: 24px;
}

.progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  transition: width 300ms ease;
}

/* ── Onboarding ──────────────────────────── */
.onboarding-layout {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.onboarding-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
}

.onboarding-header {
  background: var(--navy);
  padding: 32px;
  color: white;
  text-align: center;
}

.onboarding-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.onboarding-logo span { color: var(--gold); }

.onboarding-body { padding: 32px; }

/* ── Auth (login/register) ───────────────── */
.auth-layout {
  min-height: 100vh;
  display: flex;
}

.auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
}

.auth-logo span { color: var(--gold); }

.auth-side {
  background: var(--navy);
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: white;
}

@media (max-width: 768px) {
  .auth-side { display: none; }
}

/* ── Divider ─────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ── Toggle switch ───────────────────────── */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e0;
  border-radius: 12px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Revenue chart ───────────────────────── */
.chart-container {
  position: relative;
  width: 100%;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding: 0 8px;
}

.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  background: var(--gold);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 500ms ease;
  cursor: pointer;
}

.chart-bar:hover { background: var(--gold-light); }

.chart-bar-label {
  font-size: 0.6875rem;
  color: #718096;
  text-align: center;
  white-space: nowrap;
}

/* ── Empty state ─────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #a0aec0;
}

.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state-title { font-size: 1.125rem; color: #4a5568; margin-bottom: 8px; }
.empty-state-desc { font-size: 0.875rem; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
}

/* ── Utilities ───────────────────────────── */
.d-flex  { display: flex; }
.d-grid  { display: grid; }
.gap-8   { gap: 8px; }
.gap-16  { gap: 16px; }
.gap-24  { gap: 24px; }
.mt-8    { margin-top: 8px; }
.mt-16   { margin-top: 16px; }
.mt-24   { margin-top: 24px; }
.mb-8    { margin-bottom: 8px; }
.mb-16   { margin-bottom: 16px; }
.mb-24   { margin-bottom: 24px; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: #718096; }
.text-navy  { color: var(--navy); }
.text-gold  { color: var(--gold); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.fw-600 { font-weight: 600; }
.mono   { font-family: var(--font-mono); }
.w-full { width: 100%; }
.align-items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

/* ── Scrollbar ───────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a0aec0; }
