/* ==========================================================================
   EXPEDITUM CLIENT PORTAL & PARTNER ENGINE — STYLESHEET
   Aesthetic: Google Flow Light Executive Luxury
   Warm Ivory Porcelain, Ethereal Pastel Ambient Glow, Sunset Coral Accents
   ========================================================================== */

:root {
  /* Warm Porcelain & Ambient Canvas */
  --bg-canvas: #faf8f5;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-solid: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-surface-elevated: #ffffff;

  /* Primary Accent & Sunset Coral/Amber Gradient */
  --coral-primary: #ea580c;
  --coral-light: #fb923c;
  --coral-dark: #c2410c;
  --coral-gradient: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  --coral-glow: rgba(234, 88, 12, 0.28);

  /* Warm Sand & Amber Tones */
  --amber-primary: #d97706;
  --amber-light: #fef3c7;
  --amber-border: #fde68a;
  --amber-dark: #92400e;

  /* Sage & Emerald Accents */
  --emerald-primary: #166534;
  --emerald-light: #dcfce7;
  --emerald-border: #bbf7d0;

  /* Slate & Cyan Accents */
  --cyan-primary: #0284c7;
  --cyan-light: #e0f2fe;
  --cyan-border: #bae6fd;

  /* Typography Colors */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-card: rgba(226, 232, 240, 0.8);
  --border-focus: #fb923c;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px -4px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.02);
  --shadow-card-hover: 0 20px 40px -8px rgba(15, 23, 42, 0.08), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-coral: 0 8px 22px rgba(234, 88, 12, 0.28);
  --shadow-featured: 0 14px 36px rgba(245, 158, 11, 0.16);
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  /* Ambient Ethereal Light Gradient */
  background-image: 
    radial-gradient(ellipse 70% 50% at 15% 15%, rgba(254, 215, 170, 0.38) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 20%, rgba(186, 230, 253, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 90% 85%, rgba(254, 240, 138, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 30% 90%, rgba(254, 205, 211, 0.22) 0%, transparent 50%);
  background-attachment: fixed;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ==========================================================================
   STATE A: THE GATEWAY DOOR (#gateway-view)
   ========================================================================== */

#gateway-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 24px;
  position: relative;
}

.gateway-box {
  width: 100%;
  max-width: 540px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 48px 44px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.08), 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
  text-align: center;
}

.gateway-brand {
  margin-bottom: 28px;
}

.gateway-crest {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: #ffedd5;
  color: var(--coral-dark);
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-serif);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.25);
  border: 1px solid #fed7aa;
}

.gateway-title {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.gateway-subtitle {
  font-size: 11px;
  color: var(--amber-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 16px;
}

.gateway-ethos {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
  font-style: italic;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--emerald-primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.security-badge .dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.auth-form {
  margin-bottom: 28px;
}

.auth-input-group {
  margin-bottom: 16px;
  position: relative;
}

.auth-input {
  width: 100%;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.auth-input:focus {
  border-color: var(--coral-light);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}

.auth-input::placeholder {
  color: var(--text-dim);
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
}

.auth-btn {
  width: 100%;
  padding: 15px 24px;
  background: var(--coral-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-coral);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.38);
}

/* Quick Passkey Chips */
.demo-keys-strip {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  margin-bottom: 22px;
}

.demo-keys-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 10px;
}

.demo-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-chip-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.demo-chip-btn:hover {
  background: #ffedd5;
  border-color: #fdba74;
  color: var(--coral-dark);
}

/* Discrete Request Accordion */
.request-accordion {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  text-align: left;
}

.accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
  transition: color 0.2s ease;
}

.accordion-toggle:hover {
  color: var(--coral-dark);
}

.accordion-body {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}

.accordion-body.open {
  display: block;
  animation: fadeIn 0.25s ease;
}

.accordion-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.guest-input-group {
  margin-bottom: 10px;
}

.guest-input {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 12.5px;
  outline: none;
  transition: border 0.2s ease;
}

.guest-input:focus {
  border-color: var(--coral-light);
}

.guest-btn {
  width: 100%;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.guest-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ==========================================================================
   STATE B: THE CLIENT COMMAND ROOM (#workspace-view)
   ========================================================================== */

#workspace-view {
  display: none;
  min-height: 100vh;
  padding-bottom: 80px;
}

#workspace-view.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Top Sticky Floating Executive Header */
.workspace-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-bottom: 20px;
}

.header-inner {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

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

.header-crest {
  width: 36px;
  height: 36px;
  background: #ffedd5;
  color: var(--coral-dark);
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-serif);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fed7aa;
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.2);
}

.header-title-box h1 {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
  color: var(--text-main);
  line-height: 1.1;
}

.header-title-box span {
  font-size: 9.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.client-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--emerald-primary);
  font-weight: 600;
}

.client-status-pill .pulse {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
}

.client-key-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--amber-light);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  color: var(--amber-dark);
  font-weight: 700;
  font-family: var(--font-mono);
}

.lock-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.lock-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Master Tab Navigation Strip */
.nav-tab-strip {
  margin-bottom: 32px;
}

.nav-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 6px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}

.nav-tab-btn.active {
  background: #ffedd5;
  border-color: #fdba74;
  color: var(--coral-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.15);
}

.nav-tab-btn .badge-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--emerald-light);
  color: var(--emerald-primary);
  border-radius: var(--radius-full);
}

/* Module Container Sections */
.workspace-module {
  display: none;
}

.workspace-module.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* General Module Headers */
.module-header {
  margin-bottom: 24px;
}

.module-tag {
  font-size: 11px;
  color: var(--amber-dark);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.module-title {
  font-size: 27px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.module-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.55;
}

/* ==========================================================================
   MODULE 1: DIAGNOSTIC & VISION MEMO (SCREENSHOT 1)
   ========================================================================== */

.diagnostic-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: 38px 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
  position: relative;
  backdrop-filter: blur(20px);
}

.diag-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.client-identity h3 {
  font-size: 21px;
  color: var(--text-main);
  font-weight: 800;
}

.client-identity p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.sprint-timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.step-node.completed {
  background: var(--emerald-light);
  color: var(--emerald-primary);
  border: 1px solid var(--emerald-border);
}

.step-node.active {
  background: #fef3c7;
  color: var(--amber-dark);
  border: 1px solid var(--amber-border);
  font-weight: 700;
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.diag-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.teardown-box {
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  position: relative;
}

.teardown-box.friction {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
}

.teardown-box.solution {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
}

.box-label {
  font-size: 11.5px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.teardown-box.friction .box-label {
  color: var(--amber-dark);
}

.teardown-box.solution .box-label {
  color: var(--emerald-primary);
}

.box-content {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.6;
}

/* Studio Principles Bottom Strip */
.principles-strip {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.principles-item-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.principles-item-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   MODULE 2: SOW & PACKAGE SELECTOR (SCREENSHOT 3)
   ========================================================================== */

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
  align-items: stretch;
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card-hover);
}

.package-card.selected {
  border: 2px solid #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  box-shadow: var(--shadow-featured);
  transform: translateY(-4px);
}

.featured-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.card-radio-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.pkg-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
}

.pkg-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.package-card.selected .pkg-radio {
  border-color: #f59e0b;
}

.package-card.selected .pkg-radio::after {
  content: '';
  width: 9px;
  height: 9px;
  background: #f59e0b;
  border-radius: 50%;
}

.pkg-price-row {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.pkg-amount {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  font-family: var(--font-sans);
}

.pkg-deposit-note {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 6px;
}

.pkg-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.pkg-deliverables li {
  font-size: 13px;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.pkg-deliverables li span {
  color: #f59e0b;
  font-weight: 800;
  font-size: 14px;
}

/* SOW Summary & Deposit Trigger Bar */
.sow-trigger-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.sow-selection-summary h4 {
  font-size: 16.5px;
  color: var(--text-main);
  font-weight: 800;
  margin-bottom: 4px;
}

.sow-selection-summary p {
  font-size: 13px;
  color: var(--text-muted);
}

.deposit-btn {
  background: var(--coral-gradient);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-coral);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.deposit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.4);
}

/* ==========================================================================
   MODULE 3: SERVICE CADENCE & ADVISORY BOOKING (SCREENSHOT 2)
   ========================================================================== */

.cadence-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.cadence-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.sessions-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 24px;
}

.slot-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.slot-box.completed {
  border-color: var(--emerald-border);
  background: var(--emerald-light);
}

.slot-box.available {
  border-color: #fdba74;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.12);
}

.slot-month {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.slot-box.available .slot-month {
  color: var(--coral-dark);
}

.slot-status {
  font-size: 12px;
  font-weight: 700;
}

.slot-box.completed .slot-status { color: var(--emerald-primary); }
.slot-box.available .slot-status { color: var(--coral-dark); }
.slot-box.future .slot-status { color: var(--text-dim); }

.slot-action-btn {
  background: #ffffff;
  border: 1px solid #fdba74;
  border-radius: 8px;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(251, 146, 60, 0.16);
  transition: all 0.2s ease;
  width: 100%;
}

.slot-action-btn:hover {
  background: #fff7ed;
  border-color: #fb923c;
  transform: translateY(-1px);
}

.strict-terms-banner {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 24px;
}

.strict-terms-banner h4 {
  font-size: 13.5px;
  color: var(--amber-dark);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.strict-terms-banner p {
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.55;
}

.booking-form-box {
  background: transparent;
  padding: 0;
}

.form-row {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-body);
  font-weight: 700;
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 11px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--coral-light);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.18);
}

.terms-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-body);
  cursor: pointer;
  margin-bottom: 20px;
  line-height: 1.45;
}

.terms-checkbox-label input {
  margin-top: 3px;
  accent-color: var(--coral-primary);
}

/* ==========================================================================
   MODULE 4: 20% PARTNER COMMISSION & VIRTUAL CARD
   ========================================================================== */

.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

/* Virtual Credit Card Component - Pearlescent Bronze/Obsidian Executive Finish */
.card-perspective-container {
  perspective: 1000px;
  margin-bottom: 22px;
}

.virtual-card {
  width: 100%;
  max-width: 440px;
  height: 250px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #1e293b 100%);
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: 20px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25), 0 0 20px rgba(251, 146, 60, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
  color: #ffffff;
}

.virtual-card:hover {
  transform: translateY(-4px) rotateX(4deg);
}

.virtual-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 75% 30%, rgba(251, 146, 60, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-brand-logo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fed7aa;
}

.card-chip {
  width: 38px;
  height: 26px;
  background: linear-gradient(135deg, #fbbf24 0%, #fef08a 50%, #d97706 100%);
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.card-balance-section {
  margin-top: 6px;
}

.card-balance-label {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.card-balance-amount {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card-number-row {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: #e2e8f0;
}

.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.cardholder-name {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #ffffff;
}

.card-exp-cvv {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fed7aa;
  text-align: right;
}

.card-actions-row {
  display: flex;
  gap: 12px;
  max-width: 440px;
}

.reveal-btn {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  color: var(--text-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.reveal-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.apple-wallet-btn {
  flex: 1;
  background: #000000;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 11px 16px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.apple-wallet-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* Commission Calculation Matrix Table */
.calc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.calc-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 700;
}

.calc-table td {
  padding: 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
}

.calc-table tr:hover td {
  background: rgba(251, 146, 60, 0.04);
}

.calc-payout-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--emerald-primary);
}

/* Pipeline Tracker Card */
.pipeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.status-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.status-badge.funded { background: var(--emerald-light); color: var(--emerald-primary); border: 1px solid var(--emerald-border); }
.status-badge.booked { background: #fef3c7; color: var(--amber-dark); border: 1px solid var(--amber-border); }
.status-badge.session { background: var(--cyan-light); color: var(--cyan-primary); border: 1px solid var(--cyan-border); }

/* ==========================================================================
   MODULE 5: PRODUCTION VAULT
   ========================================================================== */

.vault-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vault-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.vault-item-card:hover {
  border-color: var(--coral-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.vault-icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.vault-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.vault-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.vault-action-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--coral-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.vault-action-link:hover {
  gap: 10px;
  color: var(--coral-dark);
}

/* Modals & Toasts */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.25);
  animation: modalScale 0.2s ease;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Rules */
@media (max-width: 990px) {
  .packages-grid, .cadence-grid, .partner-grid, .vault-grid, .sow-bullets-grid {
    grid-template-columns: 1fr !important;
  }
  .diag-body-grid {
    grid-template-columns: 1fr;
  }
  .sessions-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   TENANT SYSTEM & DYNAMIC HYDRATION ENHANCEMENTS
   ========================================================================== */

.hidden {
  display: none !important;
}

/* Gateway Form & Drawer */
.gateway-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 24px;
  position: relative;
}

.gateway-card {
  width: 100%;
  max-width: 540px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 48px 44px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.08), 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
  text-align: center;
}

.gateway-header {
  margin-bottom: 28px;
}

.gateway-header .monogram {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: #ffedd5;
  color: var(--coral-dark);
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-serif);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.25);
  border: 1px solid #fed7aa;
}

.gateway-header h1 {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.gateway-header .tagline {
  font-size: 11.5px;
  color: var(--amber-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 16px;
}

.gate-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--emerald-primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.access-form {
  margin-bottom: 24px;
  text-align: left;
}

.input-label {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group input {
  width: 100%;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.input-group input:focus {
  border-color: var(--coral-light);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}

.submit-key-btn {
  width: 100%;
  padding: 15px 24px;
  background: var(--coral-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-coral);
}

.submit-key-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.38);
}

.error-msg {
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.inquiry-drawer details {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  text-align: left;
}

.inquiry-drawer summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
  transition: color 0.2s ease;
}

.inquiry-drawer summary:hover {
  color: var(--coral-dark);
}

.intro-request-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 4px;
}

.request-btn {
  width: 100%;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.request-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Agreed Scope of Work Card */
.sow-agreed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 38px 36px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  margin-bottom: 28px;
}

.sow-agreed-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.sow-agreed-scope-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.sow-bullets-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.sow-bullets-grid li {
  font-size: 13.5px;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.sow-bullets-grid li .check {
  color: #f59e0b;
  font-weight: 800;
  font-size: 15px;
}

.sow-agreed-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
}

.status-badge.settled {
  background: var(--emerald-light);
  color: var(--emerald-primary);
  border: 1px solid var(--emerald-border);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.status-badge.pending {
  background: var(--amber-light);
  color: var(--amber-dark);
  border: 1px solid var(--amber-border);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.btn-disabled {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  cursor: default !important;
  transform: none !important;
  pointer-events: none;
}

/* Deliverables Vault Dynamic Items */
.vault-links-container {
  margin-bottom: 32px;
}

.vault-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.vault-item:hover {
  border-color: var(--coral-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.vault-asset-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-block;
  margin-right: 10px;
}

.vault-asset-badge {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: #ffedd5;
  color: var(--coral-dark);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  letter-spacing: 0.06em;
}

.vault-btn {
  background: #ffffff;
  color: var(--coral-primary);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.vault-btn:hover {
  background: #ffedd5;
  border-color: #fdba74;
  color: var(--coral-dark);
}

/* ==========================================================================
   ARCHETYPE PILLS & STRATEGIC HIGHLIGHTS
   ========================================================================== */
.archetype-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.archetype-pill.owner {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.archetype-pill.champion {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.thesis-highlight-box {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--coral-primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.thesis-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--coral-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.thesis-content {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.6;
  font-weight: 500;
}

/* Phase 2 Expansion Roadmap on SOW */
.phase2-container {
  margin: 20px 0;
}

.phase2-inner {
  background: linear-gradient(135deg, #f8fafc 0%, #ede9fe 100%);
  border: 1px dashed #c4b5fd;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}

.phase2-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #6d28d9;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.phase2-inner h4 {
  font-size: 15px;
  font-weight: 800;
  color: #4c1d95;
  margin-bottom: 4px;
}

.phase2-inner p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Founder Chip on Gateway */
.demo-chip-btn.founder-chip {
  background: #fdf2f8;
  border-color: #fbcfe8;
  color: #9d174d;
  font-weight: 700;
}

.demo-chip-btn.founder-chip:hover {
  background: #fce7f3;
  border-color: #f472b6;
}

/* ==========================================================================
   STATE C: STUDIO MANAGER (FOUNDER ADMIN DECK)
   ========================================================================== */
#manager-view {
  min-height: 100vh;
  background: var(--bg-canvas);
  padding-bottom: 80px;
}

.manager-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.manager-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.manager-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.monogram-small {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #fb923c, #f43f5e);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(251, 146, 60, 0.3);
}

.manager-brand h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.06em;
  margin: 0;
  font-family: var(--font-serif);
}

.manager-brand p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.manager-main {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.manager-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.manager-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.manager-card-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.manager-card-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.status-pill-green {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--emerald-light);
  color: var(--emerald-primary);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-full);
}

/* Manager Ledger Table */
.table-responsive {
  overflow-x: auto;
}

.manager-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.manager-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-subtle);
  background: rgba(248, 250, 252, 0.6);
}

.manager-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
  vertical-align: middle;
}

.manager-table tr:hover td {
  background: rgba(254, 243, 199, 0.15);
}

.ledger-action-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.ledger-action-btn:hover {
  background: #ffedd5;
  border-color: #fdba74;
  color: var(--coral-dark);
}

.ledger-action-btn.copy-btn {
  background: #f1f5f9;
}

.ledger-action-btn.copy-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* Intake Form 3-Column Grid */
.intake-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

@media (max-width: 1024px) {
  .intake-form-grid {
    grid-template-columns: 1fr;
  }
}

.intake-col {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.intake-col-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.archetype-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.archetype-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-body);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.archetype-radio-label:hover {
  border-color: var(--coral-light);
}

.archetype-radio-label input[type="radio"]:checked + span {
  color: var(--coral-dark);
  font-weight: 700;
}

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

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--emerald-primary);
  cursor: pointer;
  margin-top: 4px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1e293b;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   SIMPLIFIED 4-PILLAR CLIENT WORKSPACE
   ========================================================================== */
.workspace-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.header-crest {
  width: 36px;
  height: 36px;
  background: #ffedd5;
  color: var(--coral-dark);
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-serif);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fed7aa;
}

.header-title-box h1 {
  font-size: 16px;
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1.1;
}

.header-title-box span {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.workspace-body {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1080px;
}

.workspace-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.section-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--coral-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.section-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.section-header-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 14px;
}

/* Pillar 1: Summary Card */
.summary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.summary-card-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
}

.summary-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 600;
}

.badge-fast-turnaround {
  font-size: 11.5px;
  font-weight: 700;
  background: #ffedd5;
  color: var(--coral-dark);
  border: 1px solid #fdba74;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.client-name-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.status-badge.status-live {
  background: var(--emerald-light);
  color: var(--emerald-primary);
  border: 1px solid var(--emerald-border);
}

/* ==========================================================================
   PILLAR 1: BESPOKE EXECUTIVE PROFILE CARD (COMPACT & CONTAINED)
   ========================================================================== */
.executive-profile-card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.executive-profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37 0%, #f59e0b 50%, #d4af37 100%);
}

.profile-compact-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-id-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-avatar-compact {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 2px;
  background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.avatar-img-small {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0f172a;
}

.avatar-pip-small {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.profile-id-details {
  flex-grow: 1;
  min-width: 280px;
}

.profile-top-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.profile-title-text {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 2px;
}

.profile-role-text {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.profile-role-text .firm-highlight {
  color: var(--text-main);
  font-weight: 700;
}

.profile-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 3px 10px;
}

.profile-chip a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 700;
}

.profile-chip a:hover {
  text-decoration: underline;
}

/* Modular Narrative Tiles */
.profile-modular-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
  .profile-modular-tiles {
    grid-template-columns: 1fr;
  }
}

.modular-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: all 0.2s ease;
}

.modular-tile:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.modular-tile.tile-impasse {
  border-left: 3px solid #f59e0b;
}

.modular-tile.tile-solution {
  border-left: 3px solid #10b981;
}

.tile-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tile-icon {
  font-size: 15px;
}

.tile-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--text-muted);
}

.tile-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: #334155;
}

/* Modular Stat Strip */
.profile-stats-modular {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

@media (max-width: 640px) {
  .profile-stats-modular {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-module {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
}

.stat-mod-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 16.5px;
  font-weight: 800;
  color: #b45309;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.stat-mod-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
}

/* ==========================================================================
   PILLAR 2: COMMISSIONED DELIVERABLES GRID (WITH RICH THUMBNAILS)
   ========================================================================== */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.deliverable-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.deliverable-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.16);
}

.del-thumb-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0b1120;
}

.del-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.deliverable-card:hover .del-thumb-img {
  transform: scale(1.06);
}

.del-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.del-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.del-category-badge.badge-gold {
  background: #d4af37;
  color: #070e1e;
}

.del-category-badge.badge-emerald {
  background: #10b981;
  color: #ffffff;
}

.del-category-badge.badge-blue {
  background: #0284c7;
  color: #ffffff;
}

.del-category-badge.badge-coral {
  background: #ef4444;
  color: #ffffff;
}

.del-category-badge.badge-purple {
  background: #8b5cf6;
  color: #ffffff;
}

.del-category-badge.badge-amber {
  background: #f59e0b;
  color: #070e1e;
}

.del-category-badge.badge-teal {
  background: #0d9488;
  color: #ffffff;
}

.del-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.del-name {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.del-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.del-footer {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.del-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
}

.del-launch-btn .btn-arrow {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.del-launch-btn:hover {
  background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
  border-color: #aa820a;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.del-launch-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.del-launch-btn.staged-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
  cursor: pointer;
}

/* ==========================================================================
   PILLAR 3: MODULAR WORK REPORT & PRODUCTION MILESTONES (WITH THUMBNAILS)
   ========================================================================== */
.work-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.report-module-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.report-module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.12);
}

.report-mod-thumb-wrap {
  position: relative;
  width: 100%;
  height: 165px;
  overflow: hidden;
  background: #0b1120;
}

.report-mod-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.report-module-card:hover .report-mod-thumb-img {
  transform: scale(1.05);
}

.report-mod-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.report-mod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.report-mod-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.report-mod-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.report-mod-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.report-mod-date {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.report-mod-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.report-mod-footer {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.mod-metric-tag {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 9px;
  border-radius: 4px;
}

/* Pillar 4: Requests & Sparring Hub */
.requests-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .requests-hub-grid {
    grid-template-columns: 1fr;
  }
}

.hub-column {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.hub-col-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.hub-col-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.requests-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.request-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.hub-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}



