/* ═══════════════════════════════════════════════════════
   VQuint Partner Portal — Premium Light Mode
   Design Tokens + Complete Styles + Tab System
   ═══════════════════════════════════════════════════════ */

:root {
  /* ── Colour Palette (Tailwind Gray Scale) ── */
  --canvas:        #F9FAFB;   /* gray-50  — subtle off-white canvas */
  --surface:       #FFFFFF;   /* pure white cards for natural depth */
  --surface-hover: #F9FAFB;
  --border:        #E5E7EB;   /* gray-200 — primary 1px borders */
  --border-light:  #F3F4F6;   /* gray-100 — ultra-subtle dividers */
  --text:          #111827;   /* gray-900 — max legibility headings */
  --text-secondary:#4B5563;   /* gray-600 — clear secondary copy */
  --text-tertiary: #6B7280;   /* gray-500 — muted but accessible */

  /* Sage Green (Primary Accent) */
  --sage:          #7C9A82;
  --sage-light:    #E8F0EA;
  --sage-lighter:  #F2F7F3;
  --sage-dark:     #5E7E64;

  /* Semantic Colours */
  --blue:          #3B82F6;   /* more vibrant Stripe-blue */
  --blue-light:    #EFF6FF;
  --amber:         #D97706;
  --amber-light:   #FFFBEB;
  --rose:          #E11D48;
  --rose-light:    #FFF1F2;
  --red:           #DC2626;
  --red-light:     #FEF2F2;

  /* ── Typography ── */
  --font-serif:    'DM Serif Display', Georgia, serif;
  --font-sans:     'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Spacing (strict 8px grid) ── */
  --sp-1:          4px;
  --sp-2:          8px;
  --sp-3:          12px;
  --sp-4:          16px;
  --sp-5:          20px;
  --sp-6:          24px;
  --sp-8:          32px;
  --sp-10:         40px;
  --sp-12:         48px;

  /* ── Radius (modern rounded-2xl) ── */
  --radius-sm:     10px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     24px;

  /* ── Shadows (Stripe-style: ambient-only, nearly invisible) ── */
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.02);
  --shadow-md:     0 1px 2px rgba(0,0,0,0.03), 0 2px 8px rgba(0,0,0,0.02);
  --shadow-lg:     0 2px 4px rgba(0,0,0,0.03), 0 4px 16px rgba(0,0,0,0.03);
  --shadow-xl:     0 4px 12px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.04);

  /* ── Sidebar ── */
  --sidebar-w:     260px;
  --sidebar-collapsed: 72px;

  /* ── Motion ── */
  --dur:           0.25s;
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);  /* smooth spring */
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  font-feature-settings: 'cv01', 'cv02', 'cv03', 'cv04';  /* Plus Jakarta Sans alt glyphs */
  font-optical-sizing: auto;
  background: var(--canvas);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: -0.011em;  /* tighter tracking like Vercel */
}
a { color: var(--sage-dark); text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
.serif { font-family: var(--font-serif); }

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */
.sidebar {
  position: fixed; top: 0; left: 0; z-index: 100;
  width: var(--sidebar-w); height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border-light);
  display: flex; flex-direction: column;
  padding: var(--sp-5) var(--sp-3);
  transition: width var(--dur) var(--ease);
  overflow: hidden;
}
.sidebar.collapsed { width: var(--sidebar-collapsed); }

/* Brand */
.sidebar-brand {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-1) var(--sp-2) var(--sp-5);
  white-space: nowrap;
}
.brand-mark { flex-shrink: 0; }
.brand-identity { overflow: hidden; transition: opacity var(--dur) var(--ease); }
.sidebar.collapsed .brand-identity { opacity: 0; width: 0; }
.brand-name { font-family: var(--font-serif); font-size: 1.2rem; color: var(--text); display: block; line-height: 1.2; letter-spacing: -0.02em; }
.brand-tag { font-size: 0.62rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* Nav */
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: var(--sp-1); overflow-y: auto; }
.nav-section-label {
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-tertiary);
  padding: var(--sp-4) var(--sp-3) var(--sp-2); white-space: nowrap;
}
.sidebar.collapsed .nav-section-label { opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; }

.nav-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.84rem; font-weight: 500;
  text-decoration: none; position: relative;
  transition: all 0.15s ease; white-space: nowrap;
}
.nav-item:hover { background: var(--canvas); color: var(--text); }
.nav-item.active {
  background: var(--sage-light); color: var(--sage-dark); font-weight: 600;
}
.nav-item.active svg { stroke: var(--sage-dark); }
.nav-item svg { flex-shrink: 0; transition: stroke 0.2s ease; }
.nav-label { overflow: hidden; transition: opacity var(--dur) var(--ease); }
.sidebar.collapsed .nav-label { opacity: 0; width: 0; }

/* Sidebar Tooltip (collapsed mode) */
.sidebar.collapsed .nav-item::after {
  content: attr(data-tooltip);
  position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: var(--text); color: #fff; padding: 6px 12px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.sidebar.collapsed .nav-item:hover::after { opacity: 1; }

/* Sidebar Footer */
.sidebar-footer { margin-top: auto; }
.sidebar-divider { height: 1px; background: var(--border-light); margin: var(--sp-2) var(--sp-1) var(--sp-3); }
.sidebar-user {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-2); border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.sidebar-user:hover { background: var(--canvas); }
.sidebar-user-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sidebar-user-info { overflow: hidden; transition: opacity var(--dur) var(--ease); }
.sidebar.collapsed .sidebar-user-info { opacity: 0; width: 0; }
.sidebar-user-name { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.sidebar-user-role { display: block; font-size: 0.68rem; color: var(--text-tertiary); }

/* ═══════════════════════════════════════
   MAIN WRAPPER
   ═══════════════════════════════════════ */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1; min-height: 100vh;
  transition: margin-left var(--dur) var(--ease);
}
.sidebar.collapsed ~ .main-wrapper { margin-left: var(--sidebar-collapsed); }

/* ═══════════════════════════════════════
   TOP HEADER
   ═══════════════════════════════════════ */
.top-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-8);
  background: rgba(249,250,251,0.82);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border-light);
}
.header-left { display: flex; align-items: center; gap: var(--sp-4); }
.sidebar-toggle {
  display: none; /* shown via media query */
  align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); transition: all 0.2s ease;
}
.sidebar-toggle:hover { background: var(--sage-lighter); color: var(--sage-dark); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.82rem; }
.breadcrumb-root { color: var(--text-tertiary); font-weight: 500; }
.breadcrumb svg { color: var(--text-tertiary); }
.breadcrumb-current { color: var(--text); font-weight: 600; }

.header-right { display: flex; align-items: center; gap: var(--sp-3); }

/* Sync Badge */
.sync-badge {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 6px var(--sp-3); border-radius: 100px;
  background: var(--sage-lighter); border: 1px solid var(--sage-light);
}
.sync-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sage);
  animation: syncPulse 2s ease-in-out infinite;
}
@keyframes syncPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.sync-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; color: var(--sage-dark); text-transform: uppercase; }

/* Header Buttons */
.header-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); transition: all 0.2s ease;
}
.header-btn:hover { background: var(--sage-lighter); color: var(--sage-dark); border-color: var(--sage-light); }
.notif-badge-dot {
  position: absolute; top: 6px; right: 6px;
  min-width: 16px; height: 16px; border-radius: 100px;
  background: var(--rose); color: #fff; font-size: 0.55rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--surface);
}
.header-profile img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); cursor: pointer;
  transition: border-color 0.2s ease;
}
.header-profile img:hover { border-color: var(--sage); }

/* ═══════════════════════════════════════
   TAB PANE SYSTEM
   ═══════════════════════════════════════ */
.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
/* Fade-in animation class */
.tab-pane.entering {
  display: block;
}

/* ═══════════════════════════════════════
   PAGE HERO
   ═══════════════════════════════════════ */
.page-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--sp-8) var(--sp-8) 0;
  gap: var(--sp-4); flex-wrap: wrap;
}
.hero-greeting { font-size: 0.78rem; color: var(--text-tertiary); font-weight: 500; margin-bottom: var(--sp-2); letter-spacing: 0.01em; }
.hero-title { font-family: var(--font-sans); font-size: 1.75rem; font-weight: 800; color: var(--text); line-height: 1.15; letter-spacing: -0.035em; }
.hero-subtitle { font-size: 0.82rem; color: var(--text-secondary); margin-top: var(--sp-2); font-weight: 400; }
.hero-subtitle strong { font-weight: 600; color: var(--text); }
.hero-right { display: flex; align-items: center; gap: var(--sp-3); }

/* Date Picker */
.date-picker {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.8rem; font-weight: 500; color: var(--text);
  cursor: pointer; transition: all 0.15s ease;
}
.date-picker:hover { border-color: var(--sage); background: var(--sage-lighter); }
.date-picker svg { color: var(--text-tertiary); }

/* ═══════════════════════════════════════
   KPI STRIP (Overview)
   ═══════════════════════════════════════ */
.kpi-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-8) 0;
}
.kpi-card {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6); border-radius: var(--radius-xl);
  background: var(--surface); border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
  position: relative; overflow: hidden;
}
.kpi-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; opacity: 0;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
  background: linear-gradient(135deg, transparent 60%, var(--border-light));
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
}
.kpi-card:hover::before { opacity: 1; }

/* Top row: icon + badge */
.kpi-top-row {
  display: flex; align-items: center; justify-content: space-between;
}

/* Icon */
.kpi-icon-wrap {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kpi-icon-wrap svg { width: 18px; height: 18px; stroke-width: 1.8; }
.kpi-icon-wrap.sage  { background: #ECFDF5; color: #059669; }
.kpi-icon-wrap.blue  { background: #EFF6FF; color: #2563EB; }
.kpi-icon-wrap.amber { background: #FFFBEB; color: #D97706; }
.kpi-icon-wrap.rose  { background: #FFF1F2; color: #E11D48; }

/* Body */
.kpi-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kpi-number {
  display: block; font-family: var(--font-sans);
  font-size: 1.65rem; font-weight: 800; color: var(--text);
  line-height: 1.15; letter-spacing: -0.035em;
}
.kpi-label {
  display: block; font-size: 0.6rem; color: var(--text-tertiary);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
}

/* Trend Badge / Pill */
.kpi-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.6rem; font-weight: 700; padding: 3px 9px;
  border-radius: 100px; white-space: nowrap; flex-shrink: 0;
  line-height: 1.4;
}
.kpi-badge .arrow { font-size: 0.55rem; line-height: 1; }
.kpi-badge.up   { background: #ECFDF5; color: #065F46; }
.kpi-badge.down { background: #FEF2F2; color: #991B1B; }
.kpi-badge.neutral { background: var(--canvas); color: var(--text-tertiary); border: 1px solid var(--border); }

/* ═══════════════════════════════════════
   BENTO GRID (Overview)
   ═══════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: auto auto;
  gap: var(--sp-5); padding: var(--sp-6) var(--sp-8) var(--sp-8);
}

/* ── Cards ── */
.card {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: var(--sp-6) var(--sp-6) 0; gap: var(--sp-3);
}
.card-title-group { flex: 1; min-width: 0; }
.card-title { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.card-desc { font-size: 0.72rem; color: var(--text-tertiary); margin-top: var(--sp-1); font-weight: 500; }
.card-header-right { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.card-body { padding: var(--sp-4) var(--sp-6) var(--sp-6); }
.card-body--flush { padding: 0; }
.card-menu {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  border: none; background: none; color: var(--text-tertiary);
  transition: all 0.2s ease;
}
.card-menu:hover { background: var(--canvas); color: var(--text); }

/* Revenue Card */
.card-revenue { grid-column: 1; grid-row: 1; }
.chart-area { width: 100%; height: 240px; position: relative; }
.chart-footer { display: flex; gap: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--border-light); margin-top: var(--sp-4); flex-wrap: wrap; }
.cf-item { display: flex; flex-direction: column; gap: var(--sp-1); }
.cf-label { font-size: 0.68rem; color: var(--text-tertiary); font-weight: 500; }
.cf-value { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.sage-text { color: var(--sage-dark) !important; }
.amber-text { color: var(--amber) !important; }

.legend-row { display: flex; gap: 12px; }
.legend-chip { display: flex; align-items: center; gap: 6px; font-size: 0.68rem; color: var(--text-tertiary); }
.legend-swatch { width: 8px; height: 8px; border-radius: 50%; }
.legend-swatch.sage { background: var(--sage); }
.legend-swatch.amber { background: var(--amber); }

/* Chart Tooltip (glassmorphism) */
.chart-tooltip {
  position: absolute; pointer-events: none;
  padding: 10px 14px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10; white-space: nowrap;
}
.chart-tooltip.visible { opacity: 1; transform: translateY(0); }
.chart-tooltip .tt-date { display: block; font-size: 0.6rem; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.chart-tooltip .tt-amount { display: block; font-size: 0.92rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }

/* Sync Card */
.card-sync { grid-column: 2; grid-row: 1; }
.sync-banner {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-md);
  background: var(--sage-lighter); margin-bottom: var(--sp-5);
}
.sync-ring {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--sage-light); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sync-core { width: 12px; height: 12px; border-radius: 50%; background: var(--sage); animation: syncPulse 2s ease-in-out infinite; }
.sync-headline { display: block; font-size: 0.82rem; font-weight: 700; color: var(--sage-dark); letter-spacing: -0.01em; }
.sync-sub { display: block; font-size: 0.68rem; color: var(--text-tertiary); margin-top: 2px; }
.sync-list { display: flex; flex-direction: column; gap: 2px; }
.sync-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-3); border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.sync-row:hover { background: var(--canvas); }
.sync-row-left { display: flex; align-items: center; gap: var(--sp-3); font-size: 0.8rem; color: var(--text); font-weight: 500; }
.sync-row-left svg { color: var(--text-tertiary); flex-shrink: 0; }

/* Sync Status Badges */
.status-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.6rem; font-weight: 700; padding: 4px 10px;
  border-radius: 100px; white-space: nowrap; letter-spacing: 0.02em;
}
.status-chip.synced { background: #ECFDF5; color: #065F46; }
.status-chip.synced::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #059669; flex-shrink: 0;
}
.status-chip.syncing { background: #FFFBEB; color: #92400E; }
.status-chip.syncing::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #D97706; flex-shrink: 0;
  animation: pulsingDot 1.4s ease-in-out infinite;
}
@keyframes pulsingDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.connected-agents { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--border-light); }
.ca-label { font-size: 0.62rem; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: var(--sp-3); }
.ca-avatars { display: flex; gap: 6px; }
.ca-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sage-light); color: var(--sage-dark);
  font-size: 0.58rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
  transition: transform 0.15s ease;
}
.ca-avatar:hover { transform: translateY(-2px); }
.ca-avatar.more { background: var(--canvas); color: var(--text-tertiary); border-color: var(--border); }

/* Inquiries Card */
.card-inquiries { grid-column: 1; grid-row: 2; }
.count-chip {
  font-size: 0.65rem; font-weight: 600; padding: 4px 12px;
  border-radius: 100px; background: var(--sage-light); color: var(--sage-dark);
}

/* Data Table */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.data-table thead { border-bottom: 1px solid var(--border); }
.data-table th {
  padding: var(--sp-3) var(--sp-5); text-align: left;
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-tertiary); white-space: nowrap;
  border: none;
}
.data-table td {
  padding: var(--sp-4) var(--sp-5);
  border: none; border-bottom: 1px solid rgba(0,0,0,0.04);
  white-space: nowrap;
}
.data-table tbody tr {
  transition: background 0.12s ease;
}
.data-table tbody tr:hover { background: #F9FAFB; }
.data-table tbody tr:last-child td { border-bottom: none; }

.guest-cell { display: flex; align-items: center; gap: var(--sp-3); }
.avatar-circle {
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
/* Consistent aesthetic avatar palette */
.avatar-circle          { background: #F0FDF4; color: #166534; }
.avatar-circle.red      { background: #FEF2F2; color: #991B1B; }
.avatar-circle.amber    { background: #FFFBEB; color: #92400E; }
.avatar-circle.sage     { background: #ECFDF5; color: #065F46; }
.avatar-circle.blue     { background: #EFF6FF; color: #1E40AF; }
.avatar-circle.purple   { background: #FAF5FF; color: #6B21A8; }
.g-name { display: block; font-weight: 600; color: var(--text); font-size: 0.82rem; }
.g-via { display: block; font-size: 0.65rem; color: var(--text-tertiary); margin-top: 1px; }

.td-date { color: var(--text-secondary); font-weight: 500; }
.td-value { font-family: var(--font-sans); font-weight: 700; color: var(--text); font-size: 0.85rem; letter-spacing: -0.01em; }
.td-mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.72rem; color: var(--text-secondary); letter-spacing: 0.02em; }
.td-comm { font-size: 0.78rem; color: var(--text-tertiary); }

/* Source Badge (pill, high contrast) */
.source-tag {
  display: inline-flex; align-items: center;
  font-size: 0.58rem; font-weight: 700; padding: 3px 10px;
  border-radius: 100px; text-transform: uppercase; letter-spacing: 0.06em;
}
.source-tag.agent  { background: #EFF6FF; color: #1E40AF; }
.source-tag.direct { background: #ECFDF5; color: #065F46; }

/* SLA Status Pill (redesigned, high contrast) */
.sla-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.62rem; font-weight: 700; padding: 4px 12px;
  border-radius: 100px; white-space: nowrap;
}
.sla-pill::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}
.sla-pill.critical { background: #FEF2F2; color: #991B1B; }
.sla-pill.critical::before { background: #DC2626; animation: pulsingDot 1s ease-in-out infinite; }
.sla-pill.pending  { background: #FFFBEB; color: #92400E; }
.sla-pill.pending::before  { background: #D97706; }
.sla-pill.review   { background: #EFF6FF; color: #1E40AF; }
.sla-pill.review::before   { background: #3B82F6; }
.sla-pill.confirmed { background: #ECFDF5; color: #065F46; }
.sla-pill.confirmed::before { background: #059669; }

.table-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--border-light); flex-wrap: wrap; gap: var(--sp-2);
}
.sla-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.68rem; color: var(--text-tertiary); font-weight: 400;
}
.sla-note svg { flex-shrink: 0; }
.view-all {
  font-size: 0.75rem; font-weight: 600; color: var(--sage-dark);
  transition: color 0.2s ease; cursor: pointer;
}
.view-all:hover { color: var(--sage); }

/* Quick Actions Card */
.card-actions { grid-column: 2; grid-row: 2; }
.action-buttons { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.action-btn {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md);
  font-size: 0.82rem; font-weight: 600; border: none;
  transition: all 0.18s var(--ease);
}
.action-btn svg { transition: color 0.18s ease, stroke 0.18s ease; }
.action-btn.primary {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 1px 3px rgba(94,126,100,0.25);
}
.action-btn.primary:hover {
  background: linear-gradient(135deg, var(--sage-dark) 0%, #4D6B53 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 12px rgba(94,126,100,0.3);
}
.action-btn.primary:active { transform: translateY(0); box-shadow: inset 0 2px 4px rgba(0,0,0,0.15); }
.action-btn.secondary {
  background: var(--surface); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.action-btn.secondary:hover {
  background: var(--canvas); border-color: var(--sage-light); color: var(--text);
  transform: translateY(-1px);
}
.action-btn.secondary:hover svg { stroke: var(--sage-dark); }

.activity-section { border-top: 1px solid var(--border-light); padding-top: var(--sp-4); }
.activity-heading { font-size: 0.68rem; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-3); }
.activity-feed { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.activity-entry { display: flex; align-items: flex-start; gap: 10px; }
.a-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); margin-top: 6px; flex-shrink: 0; }
.a-dot.sage { background: var(--sage); }
.a-dot.blue { background: var(--blue); }
.a-dot.amber { background: var(--amber); }
.a-body { flex: 1; min-width: 0; }
.a-text { font-size: 0.78rem; color: var(--text); line-height: 1.4; display: block; }
.a-text strong { font-weight: 600; }
.a-time { font-size: 0.65rem; color: var(--text-tertiary); display: block; margin-top: 2px; }

/* ═══════════════════════════════════════
   NOTIFICATION DROPDOWN
   ═══════════════════════════════════════ */
.notif-dropdown {
  position: fixed; top: 60px; right: var(--sp-8); z-index: 200;
  width: 380px; max-height: 440px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--border-light); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  opacity: 0; transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: all 0.25s var(--ease);
  overflow: hidden;
}
.notif-dropdown.open {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: all;
}
.nd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border-light);
}
.nd-header span { font-weight: 700; font-size: 0.88rem; letter-spacing: -0.01em; }
.nd-header a { font-size: 0.72rem; font-weight: 500; }
.nd-body { max-height: 340px; overflow-y: auto; }
.nd-item { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); transition: background 0.15s ease; }
.nd-item:hover { background: var(--canvas); }
.nd-item.unread { background: var(--canvas); }
.nd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); margin-top: 5px; flex-shrink: 0; }
.nd-dot.red { background: var(--red); }
.nd-dot.amber { background: var(--amber); }
.nd-dot.sage { background: var(--sage); }
.nd-content { flex: 1; }
.nd-text { font-size: 0.78rem; color: var(--text); line-height: 1.45; display: block; }
.nd-text strong { font-weight: 600; }
.nd-time { font-size: 0.65rem; color: var(--text-tertiary); margin-top: 4px; display: block; }

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,0.25);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.sidebar-overlay.active { opacity: 1; pointer-events: all; }


/* ═══════════════════════════════════════════════════════
   CALENDAR VIEW
   ═══════════════════════════════════════════════════════ */

/* Calendar Nav Controls */
.cal-nav-controls { display: flex; align-items: center; gap: 6px; }
.cal-nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-light); background: var(--surface);
  color: var(--text-secondary); transition: all 0.18s ease;
}
.cal-nav-btn:hover { background: var(--canvas); color: var(--text); border-color: var(--border); }
.cal-nav-btn:active { transform: scale(0.95); }
.cal-month-label {
  font-family: var(--font-sans); font-size: 1.12rem; font-weight: 700; color: var(--text);
  min-width: 145px; text-align: center; letter-spacing: -0.025em;
  user-select: none;
}

/* Smart Pricing Toggle */
.smart-pricing-toggle { display: flex; align-items: center; gap: 10px; }
.sp-label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); letter-spacing: -0.01em; }

/* iOS Toggle Switch */
.ios-toggle { position: relative; display: inline-block; width: 46px; height: 26px; cursor: pointer; }
.ios-toggle input { opacity: 0; width: 0; height: 0; }
.ios-slider {
  position: absolute; inset: 0;
  background: #D1D5DB; border-radius: 26px;
  transition: background 0.25s ease;
}
.ios-slider::before {
  content: '';
  position: absolute; left: 3px; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 0 1px rgba(0,0,0,0.04);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ios-toggle input:checked + .ios-slider { background: var(--sage); }
.ios-toggle input:checked + .ios-slider::before { transform: translateX(20px); }

/* Calendar Legend */
.cal-legend-bar {
  display: flex; align-items: center; gap: var(--sp-6);
  padding: var(--sp-4) var(--sp-8); flex-wrap: wrap;
}
.cal-legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; color: var(--text-secondary); font-weight: 500; }
.cal-legend-swatch { width: 12px; height: 12px; border-radius: 4px; }
.cal-legend-swatch.confirmed { background: #ECFDF5; border: 1.5px solid #6EE7B7; }
.cal-legend-swatch.blocked {
  background: repeating-linear-gradient(135deg, #F3F4F6, #F3F4F6 2px, #E5E7EB 2px, #E5E7EB 4px);
  border: 1px solid #E5E7EB;
}
.cal-legend-swatch.inquiry { background: #FFFBEB; border: 1.5px solid #FCD34D; }
.cal-legend-swatch.available { background: var(--surface); border: 1.5px solid var(--border); }

/* Calendar Card */
.cal-card {
  margin: 0 var(--sp-8) var(--sp-8);
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Calendar Grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-header-cell {
  padding: var(--sp-3) var(--sp-2);
  text-align: center;
  font-size: 0.58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-light);
  background: var(--canvas);
}

/* ── Calendar Cell ── */
.cal-cell {
  position: relative;
  min-height: 100px; padding: var(--sp-3);
  border: 0.5px solid rgba(0,0,0,0.05);
  display: flex; flex-direction: column;
  transition: background 0.2s ease;
  cursor: pointer;
}
.cal-cell:hover { background: #F9FAFB; }
.cal-cell.empty { background: #FAFAFA; cursor: default; opacity: 0.5; }
.cal-cell.empty:hover { background: #FAFAFA; }

/* Day Number */
.cal-day {
  font-size: 0.8rem; font-weight: 600; color: #374151;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.15s ease;
  flex-shrink: 0; line-height: 1;
}

/* Today State */
.cal-cell.today { border-top: 2px solid var(--sage); }
.cal-cell.today .cal-day {
  background: var(--sage); color: #fff; font-weight: 700;
}

/* Daily Price */
.cal-price {
  font-size: 0.62rem; color: #9CA3AF; font-weight: 500;
  margin-top: auto; align-self: flex-end;
  letter-spacing: 0.01em;
}

/* ── Event Pill (Tag inside cell) ── */
.cal-tag {
  font-size: 0.58rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  margin: auto 2px 0; text-align: center;
  white-space: nowrap; letter-spacing: 0.01em;
  line-height: 1.4;
}

/* ── Confirmed State (Emerald) ── */
.cal-cell.confirmed {
  background: #ECFDF5;
}
.cal-cell.confirmed:hover { background: #D1FAE5; }
.cal-cell.confirmed .cal-day { color: #065F46; }
.cal-cell.confirmed .cal-tag {
  background: #D1FAE5; color: #065F46;
}

/* ── Blocked State (Subtle Stripes) ── */
.cal-cell.blocked {
  background: repeating-linear-gradient(
    135deg,
    #F9FAFB,
    #F9FAFB 3px,
    #F3F4F6 3px,
    #F3F4F6 6px
  );
}
.cal-cell.blocked:hover {
  background: repeating-linear-gradient(
    135deg,
    #F3F4F6,
    #F3F4F6 3px,
    #E5E7EB 3px,
    #E5E7EB 6px
  );
}
.cal-cell.blocked .cal-day { color: #6B7280; }
.cal-cell.blocked .cal-tag {
  background: #E5E7EB; color: #475569;
}

/* ── Inquiry State (Amber) ── */
.cal-cell.inquiry {
  background: #FFFBEB;
}
.cal-cell.inquiry:hover { background: #FEF3C7; }
.cal-cell.inquiry .cal-day { color: #92400E; }
.cal-cell.inquiry .cal-tag {
  background: #FDE68A; color: #78350F;
}

/* ── Multi-Day Spanning Ribbons ── */
.cal-cell.span-start .cal-tag {
  border-radius: 6px 2px 2px 6px;
  margin-right: -2px;
}
.cal-cell.span-mid .cal-tag {
  border-radius: 0;
  margin-left: -2px; margin-right: -2px;
}
.cal-cell.span-end .cal-tag {
  border-radius: 2px 6px 6px 2px;
  margin-left: -2px;
}
.cal-cell.span-single .cal-tag {
  border-radius: 6px;
}


/* ═══════════════════════════════════════════════════════
   KANBAN BOARD (Inquiries)
   ═══════════════════════════════════════════════════════ */
.kanban-board {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5); padding: var(--sp-6) var(--sp-8) var(--sp-8);
  align-items: flex-start;
}

/* ── Column ── */
.kanban-col {
  background: #F9FAFB; border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-xl); padding: var(--sp-4);
  min-height: 360px;
}
.kanban-col-header {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-4); padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.kanban-col-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kanban-col-dot.amber { background: #F59E0B; }
.kanban-col-dot.blue  { background: #3B82F6; }
.kanban-col-dot.sage  { background: #10B981; }
.kanban-col-title {
  font-size: 0.82rem; font-weight: 700; color: #374151;
  flex: 1; letter-spacing: -0.01em;
}
.kanban-col-count {
  font-size: 0.6rem; font-weight: 600;
  background: #E5E7EB; color: #4B5563;
  padding: 2px 10px; border-radius: 100px;
  line-height: 1.5;
}

/* ── Cards ── */
.kanban-cards { display: flex; flex-direction: column; gap: var(--sp-3); }
.kanban-card {
  position: relative;
  background: #FFFFFF; border: 1px solid #F3F4F6;
  border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-5);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
  overflow: hidden;
}
/* Left accent bar */
.kanban-card::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--border-light);
  transition: background 0.2s ease;
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
  border-color: #E5E7EB;
}

/* Accent bar colour per column */
.kanban-col:nth-child(1) .kanban-card::before { background: #FCD34D; }
.kanban-col:nth-child(2) .kanban-card::before { background: #93C5FD; }
.kanban-col:nth-child(3) .kanban-card::before { background: #6EE7B7; }

/* Card internals */
.kc-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); margin-bottom: var(--sp-1);
}
.kc-top .g-name {
  font-size: 0.92rem; font-weight: 700; color: #111827;
  letter-spacing: -0.015em; line-height: 1.3;
}

/* Guest Tag Badges */
.kc-badge {
  display: inline-flex; align-items: center;
  font-size: 0.52rem; font-weight: 800; padding: 3px 8px;
  border-radius: 100px; text-transform: uppercase; letter-spacing: 0.08em;
  line-height: 1.3; flex-shrink: 0;
}
.kc-badge.vip {
  background: #FEF3C7; color: #92400E;
}
.kc-badge.returning {
  background: #EEF2FF; color: #3730A3;
}

/* Dates with icon */
.kc-dates {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 500; color: #6B7280;
  margin-bottom: var(--sp-2);
}
.kc-dates svg { flex-shrink: 0; color: #9CA3AF; }

/* Price */
.kc-value {
  font-family: var(--font-sans); font-size: 1.25rem; font-weight: 800;
  color: #111827; letter-spacing: -0.03em; line-height: 1.2;
  margin-bottom: var(--sp-3);
}

/* Footer */
.kc-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); flex-wrap: wrap;
  padding-top: var(--sp-3); border-top: 1px solid #F3F4F6;
}
.kc-source {
  font-size: 0.58rem; font-weight: 600; color: #9CA3AF;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.kc-time { font-size: 0.6rem; font-weight: 500; color: #9CA3AF; }

/* SLA Status Badges inside Kanban */
.kc-sla {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.6rem; font-weight: 700; padding: 3px 10px;
  border-radius: 100px; white-space: nowrap; line-height: 1.4;
}
.kc-sla svg { flex-shrink: 0; }
.kc-sla.urgent {
  background: #FEF2F2; color: #991B1B;
}
.kc-sla.review {
  background: #EFF6FF; color: #1E40AF;
}
.kc-sla.confirmed {
  background: #ECFDF5; color: #065F46;
}


/* ═══════════════════════════════════════════════════════
   PROPERTY DATA & MEDIA
   ═══════════════════════════════════════════════════════ */
.prop-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-6); padding: var(--sp-6) var(--sp-8) var(--sp-8);
  align-items: flex-start;
}
.prop-media-card { }
.prop-form-card { }

/* ── Media Dropzone ── */
.media-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-2); padding: var(--sp-10) var(--sp-5);
  border: 2px dashed #D1D5DB;
  border-radius: var(--radius-xl);
  background: #F9FAFB;
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer; margin-bottom: var(--sp-5);
}
.media-dropzone:hover, .media-dropzone.dragover {
  border-color: #9CA3AF; background: #F3F4F6;
}
.dropzone-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #ECFDF5; color: #059669;
  margin-bottom: var(--sp-1);
  transition: transform 0.2s ease, background 0.2s ease;
}
.media-dropzone:hover .dropzone-icon {
  transform: scale(1.06); background: #D1FAE5; color: #047857;
}
.dropzone-text {
  font-size: 0.88rem; font-weight: 500; color: #374151;
}
.dropzone-text a {
  color: #059669; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.dropzone-hint {
  font-size: 0.68rem; color: #9CA3AF; letter-spacing: 0.01em;
}

/* ── Media Gallery Grid ── */
.media-thumbs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
}
.thumb {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 4 / 3; cursor: grab;
}
.thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.thumb:hover img { transform: scale(1.06); }
.thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 10px 8px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
  color: #fff;
}

/* ── Form Sections & Inputs ── */
.form-section { margin-bottom: var(--sp-6); }
.form-section-title {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #9CA3AF; margin-bottom: var(--sp-3);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-3); margin-bottom: var(--sp-3);
}

/* Modern Input Field */
.prop-field {
  display: flex; flex-direction: column; gap: 5px;
}
.prop-field-label {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #9CA3AF;
}
.prop-input-wrap {
  position: relative; display: flex; align-items: center;
}
.prop-input-icon {
  position: absolute; left: 12px; color: #9CA3AF;
  display: flex; align-items: center; pointer-events: none;
  font-size: 0.82rem; font-weight: 500;
}
.prop-input-icon svg { width: 16px; height: 16px; stroke: #9CA3AF; }
.prop-input {
  width: 100%; padding: 11px 14px 11px 38px;
  font-size: 0.88rem; font-family: var(--font-sans); font-weight: 500;
  border: 1px solid #E5E7EB; border-radius: var(--radius-lg);
  background: #F9FAFB; color: #111827;
  transition: all 0.2s ease; outline: none;
}
.prop-input:focus {
  background: #fff;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

/* ── Amenity Toggle Rows ── */
.toggle-rows { display: flex; flex-direction: column; }
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-3);
  border-bottom: 1px solid #F3F4F6;
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row:hover { background: rgba(249,250,251,0.6); }
.toggle-row-left {
  display: flex; align-items: center; gap: var(--sp-3); flex: 1;
}
.toggle-row-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: #F3F4F6; color: #6B7280; flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.toggle-row-icon svg { width: 18px; height: 18px; }
.toggle-row:hover .toggle-row-icon { background: #ECFDF5; color: #059669; }
.toggle-info { display: flex; flex-direction: column; gap: 1px; }
.toggle-name {
  font-size: 0.82rem; font-weight: 650; color: #111827;
  letter-spacing: -0.01em;
}
.toggle-desc { font-size: 0.72rem; color: #9CA3AF; }

/* ── Premium Toggle Switch (iOS/Radix) ── */
.amenity-toggle {
  position: relative; display: inline-block;
  width: 44px; height: 24px; cursor: pointer; flex-shrink: 0;
}
.amenity-toggle input { opacity: 0; width: 0; height: 0; }
.amenity-slider {
  position: absolute; inset: 0;
  border-radius: 100px;
  background: #D1D5DB;
  transition: background 0.25s cubic-bezier(0.16,1,0.3,1);
}
.amenity-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  left: 3px; bottom: 3px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.amenity-toggle input:checked + .amenity-slider {
  background: #10B981;
}
.amenity-toggle input:checked + .amenity-slider::before {
  transform: translateX(20px);
}
.amenity-toggle input:focus-visible + .amenity-slider {
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}


/* ═══════════════════════════════════════════════════════
   FINANCIAL LEDGER
   ═══════════════════════════════════════════════════════ */

/* ── Premium KPI Cards ── */
.fin-summary-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-8) 0;
}
.fin-summary-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: var(--sp-6); border-radius: var(--radius-lg);
  background: #fff; border: 1px solid rgba(229,231,235,0.75);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.2s var(--ease);
  position: relative; overflow: hidden;
}
.fin-summary-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.03);
}
.fin-label {
  font-size: 0.62rem; font-weight: 700; color: #6B7280;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.fin-big-number {
  font-family: var(--font-sans); font-size: 1.65rem; font-weight: 800;
  color: #111827; line-height: 1.15; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.fin-sub { font-size: 0.62rem; color: #9CA3AF; font-weight: 450; }

/* Hero card — YTD Net Payout */
.fin-summary-card.fin-hero {
  border-top: 2.5px solid #059669;
}
.fin-summary-card.fin-hero .fin-big-number {
  color: #047857;
}
.fin-summary-card.fin-hero .fin-label {
  color: #059669;
}

/* ── Fintech Table ── */
.fin-table-card { margin: var(--sp-5) var(--sp-8) var(--sp-8); }
.fin-table th {
  font-size: 0.58rem; font-weight: 700;
  color: #6B7280; text-transform: uppercase;
  letter-spacing: 0.1em;
}
.fin-table th.th-right,
.fin-table td.td-right { text-align: right; }
.fin-table td {
  font-variant-numeric: tabular-nums;
}
.fin-table tbody tr td {
  border-bottom: 1px solid #F3F4F6;
}
.fin-table tbody tr:last-child td { border-bottom: none; }
.fin-table tbody tr {
  transition: background 0.15s ease;
}
.fin-table tbody tr:hover { background: rgba(249,250,251,0.6); }

/* Financial cell variants */
.td-gross {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 0.82rem; color: #111827; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.td-deduction {
  font-size: 0.78rem; font-weight: 500; color: #9CA3AF;
  font-variant-numeric: tabular-nums;
}
.td-net {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 0.85rem; color: #111827; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* Status pills — fintech grade */
.fin-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: 100px;
  white-space: nowrap;
}
.fin-pill .pill-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}
.fin-pill.paid { background: #ECFDF5; color: #065F46; }
.fin-pill.paid .pill-dot { background: #059669; }
.fin-pill.scheduled { background: #FFFBEB; color: #92400E; }
.fin-pill.scheduled .pill-dot { background: #D97706; }

/* Download button — premium outline */
.fin-download-btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 10px 20px;
  font-size: 0.82rem; font-weight: 600; font-family: var(--font-sans);
  color: #374151; background: #fff;
  border: 1px solid #E5E7EB; border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.15s ease;
}
.fin-download-btn:hover {
  background: #F9FAFB; border-color: #D1D5DB;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.fin-download-btn svg { color: #6B7280; }

/* Footer */
.fin-footer-note {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.62rem; color: #9CA3AF; font-weight: 400;
}
.fin-footer-note svg { flex-shrink: 0; color: #D1D5DB; }


/* ═══════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .bento-grid { grid-template-columns: 1fr; }
  .card-revenue, .card-sync, .card-inquiries, .card-actions {
    grid-column: 1; grid-row: auto;
  }
  .kanban-board { grid-template-columns: 1fr; }
  .prop-grid { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .fin-summary-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .sidebar { width: var(--sidebar-collapsed); }
  .sidebar .nav-label,
  .sidebar .brand-identity,
  .sidebar .sidebar-user-info,
  .sidebar .nav-section-label { opacity: 0; width: 0; overflow: hidden; }
  .sidebar .nav-item::after {
    content: attr(data-tooltip);
    position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
    background: var(--text); color: #fff; padding: 6px 12px; border-radius: 6px;
    font-size: 0.72rem; font-weight: 500; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
  }
  .sidebar .nav-item:hover::after { opacity: 1; }
  .main-wrapper { margin-left: var(--sidebar-collapsed); }
  .sidebar-toggle { display: flex; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w);
    box-shadow: var(--shadow-xl);
  }
  .sidebar .nav-label,
  .sidebar .brand-identity,
  .sidebar .sidebar-user-info,
  .sidebar .nav-section-label { opacity: 1; width: auto; }
  .sidebar .nav-item::after { display: none; }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .top-header { padding: 12px 16px; }
  .page-hero { padding: 20px 16px 0; flex-direction: column; align-items: flex-start; }
  .kpi-strip { padding: 16px; grid-template-columns: 1fr; }
  .bento-grid { padding: 16px; }
  .cal-legend-bar { padding: 12px 16px; }
  .cal-card { margin: 0 16px 16px; }
  .kanban-board { padding: 16px; }
  .prop-grid { padding: 16px; }
  .fin-summary-strip { padding: 16px; grid-template-columns: 1fr; }
  .fin-table-card { margin: 16px; }
  .cal-grid { font-size: 0.7rem; }
  .cal-cell { min-height: 64px; padding: 6px; }
  .sync-badge { display: none; }
  .hero-right { width: 100%; }
}
