*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== DESIGN TOKENS — DARK MODE (Manila Core: navy + gold) =====
   The app's semantic names are kept; only their values are remapped onto the
   Manila Core palette from manila-core-tokens.css. Anything already written as
   var(--surface) / var(--accent) / etc. inherits the rebrand for free. */
:root {
  --bg:          var(--color-navy);          /* #010016 */
  --bg2:         var(--color-navy-soft);     /* #0a0a2e */
  --surface:     rgba(255,255,255,0.04);     /* DS: card on dark */
  --surface2:    rgba(255,255,255,0.06);     /* DS: card on dark, raised */
  --surface3:    rgba(255,255,255,0.10);
  --border:      var(--border-white);        /* rgba(255,255,255,0.15) */
  --border2:     var(--border-gold);         /* rgba(248,200,48,0.40) */
  --text:        var(--color-white);
  --text-muted:  var(--color-gray-400);      /* #A8A8A8 */
  --text2:       var(--text-muted);          /* alias — used across dashboard chrome */
  --accent:      var(--color-gold);          /* #F8C830 — brand CTA color */
  --accent-fg:   var(--color-navy);          /* text on gold buttons */
  --accent2:     var(--color-gold-dark);     /* #C9A020 */
  /* Contrast-safe accent for TEXT/ICON use (not backgrounds) — gold-on-navy is
     13:1, well past AA, so this equals --accent here. See light theme for why
     this token exists at all. */
  --accent-text: var(--accent);
  --status-success: #4caf50;                 /* 7.5:1 on navy */
  --status-danger:  #ef5350;                 /* 6.0:1 on navy */
  --status-warning: #ff9800;                 /* 9.6:1 on navy */
  --accent-glow: rgba(248,200,48,0.18);      /* DS: --shadow-gold-sm tint */
  --glass:       rgba(1,0,22,0.72);
  --glass-light: rgba(255,255,255,0.03);
  --modal-bg:    rgba(10,10,46,0.94);
  --popup-bg:    rgba(13,13,61,0.96);
  --glow-accent: rgba(248,200,48,0.22);
  /* DS uses restrained rounding (2-4px). 8px is the compromise: on-brand for a
     dense app UI without reading as the old 14px consumer-app look. */
  --radius:      8px;
  /* Softer "liquid glass" rounding for dashboard surfaces only — kept separate
     from --radius so buttons/inputs/chat UI elsewhere don't inherit it. */
  --radius-glass: 16px;
  --shadow:      var(--shadow-dark-lg), var(--shadow-dark-sm);
  --shadow-sm:   var(--shadow-dark);
  --blur:        blur(20px) saturate(160%);
}

/* ===== LIGHT MODE (Manila Core off-white + gold) ===== */
[data-theme="light"] {
  --bg:          var(--color-off-white);     /* #F8F7F2 */
  --bg2:         #F0EFE7;
  --surface:     rgba(255,255,255,0.9);
  --surface2:    rgba(255,255,255,0.7);
  --surface3:    rgba(255,255,255,1);
  --border:      var(--border-dark);         /* rgba(1,0,22,0.12) */
  --border2:     rgba(248,200,48,0.35);       /* gold accent border */
  --text:        var(--color-charcoal);      /* #111111 */
  /* gray-500 (#888) only reaches 3.3:1 on this bg — fails AA (4.5:1) for
     normal-size muted text. gray-600 passes at 5.4-5.7:1. */
  --text-muted:  #666666;
  --accent:      var(--color-gold);          /* #F8C830 — brand CTA, not black */
  --accent-fg:   var(--color-navy);          /* text on gold buttons */
  --accent2:     var(--color-gold-dark);     /* #C9A020 */
  /* Gold-as-text only reaches 1.5:1 on this bg — badly fails AA. Navy (the
     other core brand color) reaches 19-20:1, so it takes over as the
     text/icon accent specifically in light mode; --accent itself stays gold
     for backgrounds/fills where it's always paired with --accent-fg (navy). */
  --accent-text: var(--color-navy);
  --status-success: #2e7d32;                 /* 4.8-5.1:1 on light bg */
  --status-danger:  #c62828;                 /* 5.2-5.6:1 on light bg */
  --status-warning: #a04d00;                 /* 5.5:1 on light bg */
  --accent-glow: rgba(248,200,48,0.18);
  --glass:       rgba(255,255,255,0.80);
  --glass-light: rgba(255,255,255,0.9);
  --modal-bg:    rgba(250,250,250,0.96);
  --popup-bg:    rgba(252,252,252,0.98);
  --glow-accent: rgba(248,200,48,0.16);
  --shadow:      var(--shadow-md), var(--shadow-mc-sm);   /* DS navy-tinted elevation */
  --shadow-sm:   var(--shadow-mc-sm);
  --blur:        blur(20px) saturate(180%);
}

/* ===== SLATE MODE (neutral black/gray dark, gold accent) ===== */
[data-theme="slate"] {
  --bg:          #0B0C0F;
  --bg2:         #17181C;
  --surface:     rgba(255,255,255,0.05);
  --surface2:    rgba(255,255,255,0.08);
  --surface3:    rgba(255,255,255,0.12);
  --border:      rgba(255,255,255,0.12);
  --border2:     rgba(248,200,48,0.35);
  --text:        var(--color-gray-100);      /* #F2F2F0 — off-pure-white */
  --text-muted:  var(--color-gray-400);      /* #A8A8A8 */
  --accent:      var(--color-gold);
  --accent-fg:   var(--color-navy);
  --accent2:     var(--color-gold-dark);
  --accent-text: var(--accent);              /* gold-on-slate is 12.4:1, fine */
  --status-success: #4caf50;                 /* ~7.4:1 on slate */
  --status-danger:  #ef5350;                 /* ~6.0:1 on slate */
  --status-warning: #ff9800;                 /* ~9.5:1 on slate */
  --accent-glow: rgba(248,200,48,0.20);
  --glass:       rgba(11,12,15,0.72);
  --glass-light: rgba(255,255,255,0.04);
  --modal-bg:    rgba(20,21,25,0.94);
  --popup-bg:    rgba(23,24,28,0.96);
  --glow-accent: rgba(248,200,48,0.22);
  --shadow:      var(--shadow-dark-lg), var(--shadow-dark-sm);
  --shadow-sm:   var(--shadow-dark);
  --blur:        blur(20px) saturate(160%);
}

/* ===== BASE ===== */
body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.018) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 10%, rgba(255,255,255,0.012) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  height: 100vh;
  overflow: hidden;
  transition: background 0.4s ease, color 0.3s ease;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse at 15% 40%, rgba(0,0,0,0.02) 0%, transparent 55%),
    linear-gradient(160deg, #f7f7f7 0%, #efefef 50%, #f7f7f7 100%);
}

/* Subtle grid dot texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] body::after {
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
  opacity: 0.6;
}


/* ===== WIZARD ===== */
.wizard {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  z-index: 100;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-topbar { flex-shrink: 0; }
.wizard-topbar-back-btn,
#wizard-topbar-back-btn { flex-shrink: 0; }

.wizard-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wizard-progress-dots {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.wiz-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  transition: background 0.2s;
}
.wiz-dot.active { background: var(--accent, var(--color-gold)); }

.wizard-step { display: none; width: 100%; max-width: 1100px; }
.wizard-step.active { display: block; }

.wizard-header {
  text-align: center;
  margin-bottom: 36px;
}

.wizard-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 20px;
}

.wizard-prompt {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.wizard-sub {
  color: var(--text-muted);
  font-size: 14px;
}

.meeting-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.meeting-type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, background 0.15s, box-shadow 0.2s;
  text-align: center;
}

.meeting-type-card:hover {
  border-color: var(--border2);
  background: var(--surface2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.meeting-type-icon { font-size: 28px; margin-bottom: 8px; }
.meeting-type-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.meeting-type-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

.meeting-type-avatars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.meeting-type-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

/* Step 2 header */
.wizard-step2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wizard-step-title { font-size: 20px; font-weight: 600; }

.wizard-nav-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.2s;
}
.wizard-nav-btn:hover { border-color: var(--text-muted); }

.wizard-start-btn {
  background: var(--accent);
  border: none;
  color: var(--accent-fg);
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.wizard-start-btn:hover { opacity: 0.88; }

.wizard-team-hint {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.wizard-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.wizard-participant-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.wizard-participant-tile:hover { border-color: var(--border2); background: var(--surface2); }

.wizard-participant-tile .remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px;
}
.wizard-participant-tile .remove-btn:hover { color: #ef5350; }

.wizard-tile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}
.wizard-tile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.wizard-tile-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.wizard-tile-role { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.wizard-tile-llm {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--surface2);
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-block;
}

.add-participant-btn {
  background: var(--surface2);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  padding: 12px 24px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
  width: 100%;
  margin-top: 4px;
}
.add-participant-btn:hover { border-color: var(--accent-text); color: var(--accent-text); }

/* ===== MEETING ROOM ===== */
.meeting-room {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Body row: avatar area + right panel */
.meeting-body {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}

.meeting-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* Right collapsible transcript panel */
.right-panel {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  transition: width 0.25s ease;
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.right-panel.collapsed { width: 0; border-left: none; }

.right-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.right-panel-title { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.04em; white-space: nowrap; }

.panel-collapse-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 13px; padding: 2px 4px; border-radius: 4px;
}
.panel-collapse-btn:hover { background: var(--border); color: var(--text); }

.right-transcript {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  font-size: 12px;
}

/* ===== MEETING COMPASS (Verdict Chair) ===== */
.meeting-compass {
  flex-shrink: 0;
  padding: 10px 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.compass-title { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.compass-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}
.compass-label { color: var(--text-muted); font-size: 11px; flex-shrink: 0; }
.compass-value {
  color: var(--text);
  font-size: 11px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}
.compass-phase-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.compass-phase-badge.phase-context-alignment,
.compass-phase-badge.phase-expert-input { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-text); border-color: transparent; }
.compass-phase-badge.phase-challenge { background: color-mix(in srgb, var(--status-warning) 18%, transparent); color: var(--status-warning); border-color: transparent; }
.compass-phase-badge.phase-synthesis,
.compass-phase-badge.phase-user-decision { background: color-mix(in srgb, var(--status-success) 18%, transparent); color: var(--status-success); border-color: transparent; }
.compass-phase-badge.phase-execution-plan,
.compass-phase-badge.phase-closing,
.compass-phase-badge.phase-closed { background: color-mix(in srgb, var(--status-danger) 15%, transparent); color: var(--status-danger); border-color: transparent; }
.compass-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 8px 0;
}
.compass-stat { text-align: center; background: var(--surface2); border-radius: 8px; padding: 6px 2px; }
.compass-stat-num { display: block; font-size: 15px; font-weight: 700; color: var(--accent-text); }
.compass-stat label { display: block; font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 1px; }

/* Right panel action buttons */
.right-panel-actions {
  flex-shrink: 0;
  padding: 10px 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rp-btn {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition: background 0.15s;
  white-space: nowrap;
}
.rp-btn:hover:not(:disabled) { background: var(--border); }
.rp-btn:disabled { opacity: 0.4; cursor: default; }
.rp-btn.active { background: var(--surface3); border-color: var(--border2); color: var(--text); }
.rp-export-row { display: flex; align-items: center; gap: 6px; }
.rp-export-label { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.rp-export-btn {
  flex: 1; padding: 5px 4px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface2); color: var(--text); cursor: pointer; font-size: 11px;
  transition: background 0.15s;
}
.rp-export-btn:hover:not(:disabled) { background: var(--border); }
.rp-export-btn:disabled { opacity: 0.4; cursor: default; }

/* Expand tab when panel is collapsed */
.panel-expand-tab {
  position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 10px 6px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}
.panel-expand-tab:hover { background: var(--surface3); color: var(--text); }

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
  position: relative;
  z-index: 10;
  min-height: 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
  letter-spacing: -0.2px;
}

.status-idle      { color: var(--text-muted); font-size: 11px; letter-spacing: 0.01em; }
.status-listening { color: #5cb85c; font-size: 11px; }
.status-thinking  { color: #aaaaaa; font-size: 11px; }
.status-speaking  { color: #bbbbbb; font-size: 11px; }

.header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.header-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 6px 10px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.header-btn:hover { border-color: var(--border2); color: var(--text); background: var(--surface3); }
.header-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.header-btn.active { border-color: var(--border2); color: var(--text); }

.length-btn.warn { border-color: rgba(255,152,0,0.5); color: #ff9800; }

/* ===== MEETING STAGE (Google Meet-style: spotlight + thumbnail strip) ===== */
#meeting-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: #202124;
  overflow: hidden;
}

/* Main stage — whoever is currently speaking is shown here, large */
#stage-main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#stage-main .avatar-tile {
  width: 100%;
  height: 100%;
}
#stage-main .avatar-ring-container { transform: scale(1.6); }
#stage-main .tile-caption-name { font-size: 16px; padding: 6px 14px; }

.stage-idle-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}
.stage-idle-placeholder i { font-size: 28px; }
#stage-main.has-speaker .stage-idle-placeholder,
#stage-main.sharing .stage-idle-placeholder { display: none; }

/* Screen share — takes priority over the speaker spotlight while active */
#stage-screen-share {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
#stage-screen-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.stage-presenter-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 100px;
}

.header-btn.presenting {
  border-color: #ef5350;
  color: #ef5350;
  background: rgba(239,83,80,0.12);
}

.header-btn.recording {
  border-color: #e5484d;
  color: #e5484d;
  background: rgba(229,72,77,0.12);
}

/* Meeting duration countdown */
.meeting-timer {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 10px;
  margin-left: 4px;
}
.meeting-timer.urgent {
  color: #e53935;
  border-color: #e53935;
  background: color-mix(in srgb, #e53935 12%, var(--surface2));
  animation: mic-pulse 1.2s ease-in-out infinite;
}

/* Thumbnail strip — every participant, smaller, horizontally scrollable */
main#avatar-grid {
  flex-shrink: 0;
  height: 150px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
}
main#avatar-grid .avatar-tile {
  flex: 0 0 200px;
  height: 100%;
}

/* Avatar tile — Meet-style video card: dark, edge-to-edge, name overlaid bottom-left */
.avatar-tile {
  background: linear-gradient(160deg, color-mix(in srgb, var(--tile-color, #3c4043) 22%, #2a2b2e), #2a2b2e);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  cursor: default;
  z-index: 1;
}

.avatar-tile.speaking {
  border-color: var(--tile-color, var(--accent));
  animation: tile-speaking-glow 1.4s ease-in-out infinite alternate;
}

@keyframes tile-speaking-glow {
  from {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--tile-color, var(--accent)) 30%, transparent),
                0 0 14px color-mix(in srgb, var(--tile-color, var(--accent)) 30%, transparent),
                var(--shadow);
  }
  to {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tile-color, var(--accent)) 55%, transparent),
                0 0 28px color-mix(in srgb, var(--tile-color, var(--accent)) 45%, transparent),
                0 0 56px color-mix(in srgb, var(--tile-color, var(--accent)) 20%, transparent),
                var(--shadow);
  }
}

.avatar-tile.error { border-color: #e53935; }
.avatar-tile.thinking { opacity: 0.8; }
.avatar-tile.debating { border-color: var(--tile-color, var(--accent)); opacity: 0.9; }

/* Circular audiogram ring container */
.avatar-ring-container {
  position: relative;
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  position: relative;
  z-index: 2;
  border: 3px solid transparent;
  transition: border-color 0.2s;
}

.avatar-tile.speaking .avatar-circle {
  border-color: var(--tile-color, var(--accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tile-color, var(--accent)) 25%, transparent),
              0 0 0 8px color-mix(in srgb, var(--tile-color, var(--accent)) 10%, transparent);
}

.avatar-circle img, .avatar-circle video { width: 100%; height: 100%; object-fit: cover; }

/* "You" tile — local/relayed camera presence, not an AI participant */
.you-mic-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 5;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: #e53935;
  color: #fff;
  font-size: 11px;
}
.you-tile.muted .you-mic-badge { display: flex; }

/* Radial audiogram ring — bars fanning around the avatar circle */
.radial-eq {
  position: absolute;
  width: 130px;
  height: 130px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.radial-eq-bar {
  position: absolute;
  width: 3px;
  height: 44px;
  bottom: 50%;
  left: calc(50% - 1.5px);
  transform-origin: 1.5px 100%;
  /* gradient hides the inner portion under the avatar; only outer stub is visible */
  background: linear-gradient(
    to top,
    transparent 40px,
    var(--tile-color, var(--accent)) 40px
  );
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.avatar-tile.speaking .radial-eq-bar {
  opacity: 1;
  animation: radial-bar-pulse var(--dur, 0.5s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}

@keyframes radial-bar-pulse {
  from { height: 44px; }
  to   { height: 66px; }
}

/* Avatar hover overlay */
.avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}

.avatar-ring-container:hover .avatar-overlay { opacity: 1; }

.avatar-overlay button {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  padding: 4px 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.avatar-overlay button:hover { background: rgba(255,255,255,0.28); }

/* Spinner inside avatar */
.avatar-spinner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--tile-color, var(--accent));
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Tile caption — Meet-style name pill overlaid bottom-left on the dark tile */
.tile-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.tile-caption-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  max-width: 100%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-caption-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}

.tile-caption-meta .avatar-role {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.45);
  padding: 2px 8px;
  border-radius: 100px;
}

.avatar-llm-badge {
  font-size: 10px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  border-radius: 100px;
  padding: 2px 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.avatar-llm-badge:hover {
  background: rgba(0,0,0,0.7);
  color: #fff;
}

/* LLM switcher popup */
.llm-popup {
  position: fixed;
  z-index: 9999;
  background: var(--popup-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 6px;
  max-height: 380px;
  overflow-y: auto;
  box-shadow: 0 8px 28px rgba(0,0,0,0.65);
}
.llm-popup-group {
  font-size: 10px;
  color: var(--text-muted);
  padding: 8px 8px 3px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.llm-popup-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  font-size: 12px;
  text-align: left;
  gap: 6px;
}
.llm-popup-item:hover { background: var(--border); }
.llm-popup-item.active { background: var(--surface3); color: var(--text); font-weight: 600; }
.llm-caps { font-size: 11px; opacity: 0.75; flex-shrink: 0; }

.llm-popup-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--text);
}
.llm-popup-role { font-size: 11px; color: var(--text-muted); }

.llm-popup-attitude-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.llm-popup-attitude-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 9px;
  cursor: pointer;
}
.llm-popup-attitude-btn:hover { color: var(--text); }
.llm-popup-attitude-btn.active { background: var(--surface3); color: var(--text); border-color: var(--border2); font-weight: 600; }

/* Tile settings gear — top-left, opens the consolidated popup above */
.tile-settings-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.15s, color 0.15s;
}
.avatar-tile:hover .tile-settings-btn { opacity: 1; }
.tile-settings-btn:hover { background: rgba(0,0,0,0.75); color: #fff; }

/* Attitude badge */
.avatar-attitude-badge {
  font-size: 10px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  border-radius: 100px;
  padding: 2px 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.avatar-attitude-badge:hover { background: rgba(0,0,0,0.7); color: #fff; }

/* Raise-hand bubble (appears above tile before response) */
.raise-hand-bubble {
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 24px;
  pointer-events: none;
  animation: raise-hand-pop 1.6s ease-out forwards;
  z-index: 10;
}
@keyframes raise-hand-pop {
  0%   { transform: scale(0) translateY(4px); opacity: 0; }
  20%  { transform: scale(1.3) translateY(-8px); opacity: 1; }
  65%  { transform: scale(1) translateY(-12px); opacity: 1; }
  100% { transform: scale(0.7) translateY(-20px); opacity: 0; }
}

/* Interjection hint (wants to speak during TTS) */
.interjection-hint {
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 20px;
  pointer-events: none;
  animation: interject-hint 1.8s ease-out forwards;
  z-index: 10;
}
@keyframes interject-hint {
  0%   { opacity: 0; transform: scale(0.5); }
  25%  { opacity: 1; transform: scale(1.1); }
  75%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.8); }
}

/* Floating Zoom-style reaction emoji */
.reaction-float {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  pointer-events: none;
  animation: reaction-float-up 2.8s ease-out forwards;
  z-index: 20;
}
@keyframes reaction-float-up {
  0%   { transform: translateX(-50%) translateY(0)    scale(0.4); opacity: 0; }
  15%  { transform: translateX(-50%) translateY(-16px) scale(1.3); opacity: 1; }
  75%  { transform: translateX(-50%) translateY(-80px) scale(1);   opacity: 0.85; }
  100% { transform: translateX(-50%) translateY(-120px) scale(0.8); opacity: 0; }
}

/* Response text hidden in tiles — shown only in right-panel transcript */
.avatar-response { display: none; }
.avatar-response.muted { display: none; }
.avatar-response.error-text { display: none; }
.avatar-response.skipped-text { display: none; }

/* Tile action buttons — small hover toolbar pinned top-right, Meet-style */
.tile-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.avatar-tile:hover .tile-actions { opacity: 1; }

.tile-action-btn {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 12px;
  padding: 3px 8px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.tile-action-btn:hover { color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(0,0,0,0.7); }
.tile-action-btn.copied { color: #4caf50; border-color: #4caf50; }

/* Speaking label — inline pill next to the name, shows only when tile is active */
.speaking-label {
  display: none;
  font-size: 10px;
  font-weight: 600;
  color: var(--tile-color, var(--accent));
  letter-spacing: 0.04em;
  animation: speaking-label-pulse 1s ease-in-out infinite alternate;
}
.avatar-tile.speaking .speaking-label { display: inline; }
@keyframes speaking-label-pulse { from { opacity: 0.6; } to { opacity: 1; } }

/* Per-tile stop button — visible on hover always, highlighted when speaking */
.tile-stop-btn { display: none; }
.avatar-tile:hover .tile-stop-btn { display: inline-flex; }
.avatar-tile.speaking .tile-stop-btn {
  display: inline-flex;
  color: #ef5350;
  border-color: #ef5350;
  animation: stop-btn-pulse 1s ease-in-out infinite alternate;
}
.avatar-tile.speaking .tile-stop-btn:hover { background: rgba(239,83,80,0.15); }
.avatar-tile.speaking .tile-actions { opacity: 1; }
@keyframes stop-btn-pulse { from { opacity: 0.7; } to { opacity: 1; } }

/* Reaction round badge */
.reaction-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--tile-color, var(--accent));
  color: #fff;
  font-size: 10px;
  border-radius: 4px;
  padding: 2px 6px;
  opacity: 0.9;
}

/* ===== SUMMARY PANEL ===== */
.summary-panel {
  flex-shrink: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  max-height: 35vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.summary-title { display: flex; align-items: center; gap: 10px; }
.summary-badge { color: var(--accent-text); font-weight: 600; font-size: 14px; }
.summary-meta { color: var(--text-muted); font-size: 12px; }
.summary-actions { display: flex; gap: 6px; }

.summary-body {
  padding: 12px 16px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.export-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 10px;
  transition: color 0.15s, border-color 0.15s;
}
.export-btn:hover { color: var(--text); border-color: var(--text-muted); }
.export-btn.copied { color: #4caf50; border-color: #4caf50; }

/* ===== TRANSCRIPT ===== */
.log-entry { padding: 5px 0; font-size: 12px; border-bottom: 1px solid var(--border); line-height: 1.4; }
.log-user strong { color: var(--text); }
.log-ai strong { color: var(--text); }
.log-ai { white-space: pre-wrap; }
.log-round-header { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 0 3px; }
.log-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: rgba(220,50,50,0.07);
  border-radius: 6px;
  padding: 6px 8px;
  margin: 3px 0;
  border: 1px solid rgba(220,50,50,0.18);
}
.log-error i { color: #e05555; flex-shrink: 0; margin-top: 1px; font-size: 11px; }
.log-error-detail { color: var(--text-muted); word-break: break-word; }
.log-fallback-badge {
  display: inline-block;
  background: rgba(255,152,0,0.15);
  color: #ff9800;
  border: 1px solid rgba(255,152,0,0.3);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
}
.log-interim { color: var(--text-muted); font-style: italic; font-size: 11px; padding: 4px 0; }
.log-interject { color: var(--text-muted); font-style: italic; animation: fadeIn 0.3s ease; }

/* ===== ATTACHMENTS ===== */
.attachment-row {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 6px 16px;
  background: var(--glass);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
}

.attachment-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  max-width: 160px;
}

.attachment-chip img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.attachment-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
  color: var(--text-muted);
}

.attachment-chip-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.attachment-chip-remove:hover { color: #ef5350; }

/* ===== CONTROLS BAR ===== */
.controls-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 12px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 5;
}

.attach-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  transition: color 0.2s, border-color 0.2s;
}
.attach-btn:hover { color: var(--text); border-color: var(--text-muted); }
.attach-btn.uploading { color: var(--text); border-color: var(--border2); }

.input-row {
  flex: 1;
  display: flex;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.input-row:focus-within { border-color: var(--border2); }

.input-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
}
.input-row input::placeholder { color: var(--text-muted); }

.input-row button {
  background: var(--accent);
  border: none;
  color: var(--accent-fg);
  cursor: pointer;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.input-row button:hover { opacity: 0.85; }

#mic-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  transition: all 0.2s;
  flex-shrink: 0;
}
#mic-btn:hover { border-color: var(--text-muted); }
#mic-btn.muted {
  background: color-mix(in srgb, #e53935 15%, var(--surface2));
  border-color: #e53935;
  color: #e53935;
}

#camera-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  transition: all 0.2s;
  flex-shrink: 0;
}
#camera-btn:hover { border-color: var(--text-muted); }
#camera-btn.on {
  background: color-mix(in srgb, #4caf50 15%, var(--surface2));
  border-color: #4caf50;
  color: #4caf50;
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(229,57,53,0); }
}

#stop-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
#stop-btn:hover { color: #ef5350; border-color: #ef5350; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-dialog {
  background: var(--modal-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.modal-dialog.modal-wide { max-width: 680px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title { font-weight: 600; font-size: 15px; }

.modal-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.status-meta { color: var(--text-muted); font-size: 12px; }

/* Voice settings modal */
.modal-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.preset-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 10px;
  transition: color 0.15s, border-color 0.15s;
}
.preset-btn:hover { color: var(--text); border-color: var(--text-muted); }

.voice-settings-table { padding: 8px 18px; }

.voice-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.voice-model-name { font-size: 13px; font-weight: 500; }

.voice-row select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  padding: 4px 8px;
  max-width: 140px;
}

.voice-test-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  padding: 4px 8px;
  white-space: nowrap;
  transition: color 0.15s;
}
.voice-test-btn:hover { color: var(--accent-text); border-color: var(--accent-text); }

/* Participant editor modal */
.participant-edit-body { padding: 16px 18px; }

.pe-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  margin-top: 16px;
}
.pe-section-label:first-child { margin-top: 0; }

.llm-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.llm-chip {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
  white-space: nowrap;
}
.llm-chip:hover { border-color: var(--text-muted); }
.llm-chip.selected { border-color: var(--accent-text); color: var(--accent-text); }

.persona-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.persona-pick-card {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.persona-pick-card:hover { border-color: var(--text-muted); }
.persona-pick-card.selected { border-color: var(--accent-text); }

.persona-pick-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  overflow: hidden;
}
.persona-pick-avatar img { width: 100%; height: 100%; object-fit: cover; }

.persona-pick-name { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.persona-pick-role { font-size: 10px; color: var(--text-muted); }

.pe-custom-row { margin-top: 12px; }

/* Custom persona form */
.custom-persona-form {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-persona-form label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.custom-persona-form input,
.custom-persona-form textarea,
.custom-persona-form select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 8px 12px;
  width: 100%;
  font-family: inherit;
  resize: vertical;
}

.custom-persona-form input:focus,
.custom-persona-form textarea:focus,
.custom-persona-form select:focus {
  outline: none;
  border-color: var(--accent-text);
}

.color-picker-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.15s;
}
.color-swatch.selected { border-color: #fff; }

/* ===== MEETING ADJOURNED PAGE ===== */
.adjourned-page {
  position: fixed;
  inset: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.015) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(255,255,255,0.01) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
  z-index: 150;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px 60px;
  animation: fadeIn 0.5s ease;
}

.adjourned-inner {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.adjourned-badge {
  font-size: 13px;
  font-weight: 700;
  color: #ef5350;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(229,57,53,0.1);
  border: 1px solid rgba(229,57,53,0.25);
  border-radius: 20px;
  padding: 6px 18px;
}

.adjourned-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  line-height: 1.2;
}

.adjourned-time {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: -18px;
}

.adjourned-section {
  width: 100%;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: box-shadow 0.2s;
}
.adjourned-section:hover { box-shadow: var(--shadow-sm); }

/* Collapsible sections */
.adjourned-collapsible .adj-section-body { overflow: hidden; transition: max-height 0.4s ease, opacity 0.25s; max-height: 5000px; opacity: 1; }
.adjourned-collapsible.collapsed .adj-section-body { max-height: 0; opacity: 0; }
.adjourned-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 16px;
  user-select: none;
}
.adjourned-collapsible.collapsed .adjourned-section-header { margin-bottom: 0; }
.adj-collapse-icon { color: var(--text-muted); font-size: 11px; transition: transform 0.25s; }
.adjourned-collapsible.collapsed .adj-collapse-icon { transform: rotate(-180deg); }

.adjourned-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* AI Analysis toolbar */
.adj-ai-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.adj-ai-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  padding: 9px 16px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.adj-ai-btn:hover { background: var(--border); border-color: var(--border2); transform: translateY(-1px); }
.adj-ai-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.adj-ai-btn-primary {
  background: var(--surface3);
  border-color: var(--border2);
  color: var(--text);
  font-weight: 600;
}
.adj-ai-btn-primary:hover { background: var(--accent); color: var(--accent-fg); border-color: var(--accent-text); }

/* Inline error and loading states */
.adj-ai-error {
  background: rgba(239,83,80,0.1);
  border: 1px solid rgba(239,83,80,0.35);
  border-radius: 8px;
  color: #ef9a9a;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 10px;
  padding: 10px 14px;
}
.adj-ai-loading {
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
  gap: 10px;
  margin-top: 10px;
}
.adj-loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

/* Section body + actions */
.adj-section-body { padding-top: 4px; }
.adj-section-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.adj-mini-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  padding: 4px 10px;
  transition: color 0.15s, border-color 0.15s;
}
.adj-mini-btn:hover { color: var(--text); border-color: var(--text-muted); }

/* Summary body */
.adjourned-summary-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  max-height: 320px;
  overflow-y: auto;
}

/* Key Takeaways */
.adj-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adj-bullet-list li {
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 12px 8px 16px;
  background: var(--surface2);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  color: var(--text);
}
.adj-risks li { border-left-color: #ef5350; }

/* Action Plan */
.adj-action-list { display: flex; flex-direction: column; gap: 8px; }
.adj-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface2);
  border-radius: 8px;
  font-size: 13px;
}
.adj-prio-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.prio-high { background: rgba(229,57,53,0.18); color: #ef5350; }
.prio-med  { background: rgba(255,152,0,0.18);  color: #ff9800; }
.prio-low  { background: rgba(76,175,80,0.18);  color: #4caf50; }
.adj-action-task { flex: 1; color: var(--text); }
.adj-action-owner { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* THE VERDICT — primary decisive outcome */
.adj-verdict-section {
  border: 1px solid var(--border2);
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.adj-verdict-decision {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.adj-verdict-rationale {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}
.adj-verdict-block { margin-bottom: 18px; }
.adj-verdict-block h4,
.adj-verdict-grid h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.adj-verdict-actions-list { display: flex; flex-direction: column; gap: 8px; }
.adj-verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 12px;
}
.adj-verdict-grid .adj-bullet-list li { font-size: 12px; padding: 6px 10px 6px 12px; }
.adj-verdict-review {
  font-size: 12px;
  color: var(--accent-text);
  font-weight: 600;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Two-column layout for decisions & risks */
.adj-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.adj-sub-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }

/* Performance score cards */
.adj-perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.adj-perf-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.adj-perf-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff; overflow: hidden;
  margin-bottom: 4px;
}
.adj-perf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.adj-perf-name { font-size: 13px; font-weight: 600; color: var(--text); }
.adj-perf-role { font-size: 11px; color: var(--text-muted); }
.adj-score-bar-wrap { width: 100%; height: 6px; background: var(--border); border-radius: 3px; margin: 6px 0 2px; overflow: hidden; }
.adj-score-bar { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.adj-score-num { font-size: 22px; font-weight: 700; line-height: 1; }
.adj-score-denom { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.adj-perf-eval { font-size: 11px; color: var(--text-muted); line-height: 1.4; font-style: italic; }
.adj-perf-sub { width: 100%; font-size: 10px; color: var(--text-muted); display: flex; flex-direction: column; gap: 2px; text-align: left; }
.adj-perf-strength { color: #4caf50; }
.adj-perf-improve { color: #ff9800; }

/* User feedback stars */
.adj-feedback-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.adj-feedback-label { font-size: 10px; color: var(--text-muted); }
.adj-stars { display: flex; gap: 2px; }
.adj-star {
  font-size: 16px;
  color: var(--border2);
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  user-select: none;
}
.adj-star.active, .adj-star.hover { color: #ffc107; transform: scale(1.15); }
.adj-feedback-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-size: 10px;
  padding: 4px 7px;
  outline: none;
}
.adj-feedback-input:focus { border-color: var(--accent-text); }

/* Transcript downloads */
.adjourned-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.adj-dl-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}
.adj-dl-group-label { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.adj-dl-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  padding: 8px 14px;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.adj-dl-btn:hover { background: var(--border); border-color: var(--border2); }
.adj-dl-btn:disabled { opacity: 0.5; cursor: default; }
.adj-dl-group .adj-dl-btn {
  background: transparent;
  border: none;
  padding: 3px 8px;
  border-radius: 5px;
}
.adj-dl-group .adj-dl-btn:hover { background: var(--border); }
.adj-dl-btn-audio {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--text);
}
.adj-dl-btn-audio:hover { background: var(--surface3); }

/* Attendees */
.adjourned-team {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.adjourned-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}
.adjourned-member-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff; overflow: hidden;
  border: 2px solid transparent;
}
.adjourned-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.adjourned-member-name { font-size: 12px; font-weight: 600; text-align: center; color: var(--text); }
.adjourned-member-role { font-size: 11px; color: var(--text-muted); text-align: center; }

.adjourned-new-btn {
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: var(--accent-fg);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 8px;
}
.adjourned-new-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.end-meeting-btn {
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
}
.end-meeting-btn:hover {
  border-color: rgba(239,83,80,0.6) !important;
  color: #ef5350 !important;
  background: rgba(239,83,80,0.07) !important;
}

/* ===== WELCOME OVERLAY ===== */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.03) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(255,255,255,0.02) 0%, transparent 50%);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.5s ease;
}

.welcome-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.welcome-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: -0.3px;
}

.welcome-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.welcome-sub {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 440px;
}

.welcome-features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.welcome-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.welcome-feature-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.welcome-feature strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.welcome-feature span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.welcome-cta {
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: var(--accent-fg);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 40px;
  width: 100%;
  max-width: 360px;
  transition: opacity 0.2s, transform 0.15s;
  animation: welcome-pulse 2.5s ease-in-out infinite;
}
.welcome-cta:hover { opacity: 0.88; transform: translateY(-1px); animation: none; }

@keyframes welcome-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%       { box-shadow: 0 0 0 10px transparent; }
}

.welcome-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 4px;
  transition: color 0.2s;
}
.welcome-skip:hover { color: var(--text); }

/* ===== OVERFLOW MENU ===== */
.header-overflow-wrap {
  position: relative;
}

.overflow-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--popup-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 6px;
  min-width: 210px;
  box-shadow: var(--shadow);
  z-index: 100;
  animation: popIn 0.15s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.overflow-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  padding: 8px 12px;
  text-align: left;
  transition: background 0.15s;
  white-space: nowrap;
}
.overflow-item:hover:not(:disabled) { background: var(--surface2); }
.overflow-item:disabled { opacity: 0.4; cursor: default; }
.overflow-item.active { color: var(--text); background: var(--surface3); }

.overflow-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 6px;
}

/* ===== MEETING ROOM EMPTY STATE ===== */
.meeting-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
  z-index: 3;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.meeting-empty-state.hidden {
  opacity: 0;
  pointer-events: none;
}

.meeting-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 0 20px;
}

.starter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 580px;
  padding: 0 20px;
  pointer-events: all;
}

.starter-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  padding: 8px 16px;
  transition: border-color 0.2s, background 0.15s, transform 0.15s;
}
.starter-chip:hover {
  border-color: var(--accent-text);
  background: var(--surface2);
  transform: translateY(-1px);
}

/* ===== WIZARD STEP 1 ACTIONS (past meetings button) ===== */
.wizard-step1-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.wizard-history-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 7px 14px;
  transition: border-color 0.2s, color 0.2s;
}
.wizard-history-btn:hover { border-color: var(--accent-text); color: var(--text); }

/* ===== WIZARD STEP 2 FOOTER ===== */
.wizard-step2-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.wizard-team-preview {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
  text-align: right;
  padding: 4px 0;
}

/* ===== END MEETING CONFIRMATION MODAL ===== */
.end-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}

.end-confirm-card {
  background: var(--modal-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}

.end-confirm-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.end-confirm-sub {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.end-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.end-confirm-primary {
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: var(--accent-fg);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  transition: opacity 0.2s, transform 0.15s;
}
.end-confirm-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.end-confirm-cancel {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  padding: 10px 24px;
  transition: background 0.2s;
}
.end-confirm-cancel:hover { background: var(--border); }

/* ===== PAST MEETINGS DRAWER ===== */
.history-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.history-drawer {
  background: var(--modal-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border2);
  border-radius: var(--radius) var(--radius) 0 0;
  max-width: 620px;
  width: 100%;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.history-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.history-drawer-title {
  font-size: 16px;
  font-weight: 600;
}

.history-drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.history-drawer-close:hover { color: var(--text); background: var(--border); }

.history-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.15s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.history-item:hover { border-color: var(--accent-text); background: var(--surface2); }

.history-item-info { flex: 1; min-width: 0; }
.history-item-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.history-item-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.history-item-badge {
  font-size: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 8px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.history-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 20px;
  line-height: 1.7;
}

/* ===== PAGE TRANSITIONS ===== */
.transition-slide-up {
  animation: slideUpIn 0.35s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.transition-fade-scale {
  animation: fadeScaleIn 0.4s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* Avatar grid tile stagger-in on meeting start */
@keyframes tileStaggerIn {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.avatar-tile.stagger-in {
  animation: tileStaggerIn 0.3s cubic-bezier(0.2, 0, 0, 1) both;
}

/* Adjourned section stagger-reveal */
@keyframes sectionReveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.adj-section-reveal {
  animation: sectionReveal 0.3s cubic-bezier(0.2, 0, 0, 1) both;
}

/* ===== TOOLTIP SYSTEM ===== */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--popup-bg);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  white-space: nowrap;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 9999;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  z-index: 300;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.toast.warn { border-color: #ff9800; color: #ff9800; }
.toast.error { border-color: #ef5350; color: #ef5350; }

/* ===== RESPONSIVE / MOBILE ===== */

@media (max-width: 768px) {
  /* Header */
  header {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .header-controls {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
  }
  .header-btn { font-size: 11px; padding: 5px 8px; }
  #status-text { display: none; }

  /* Meeting stage — smaller thumbnail strip on tablet */
  #meeting-stage { padding: 6px; gap: 6px; }
  main#avatar-grid { height: 120px; }
  main#avatar-grid .avatar-tile { flex-basis: 160px; }

  /* Wizard cards */
  .meeting-type-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  .wizard-team-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  /* Right panel becomes a bottom drawer on tablet */
  .meeting-body { overflow: hidden; }
  .right-panel {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 55vh !important;
    max-height: 55vh !important;
    border-left: none !important;
    border-top: 1px solid var(--border) !important;
    border-radius: 16px 16px 0 0 !important;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
  }
  .right-panel:not(.collapsed) { transform: translateY(0) !important; }
  .right-panel.collapsed { transform: translateY(100%) !important; width: 100% !important; }

  /* Expand tab repositioned to bottom center */
  .panel-expand-tab {
    position: fixed !important;
    right: auto !important;
    left: 50% !important;
    bottom: 0 !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    border-radius: 10px 10px 0 0 !important;
    border-right: 1px solid var(--border) !important;
    border-bottom: none !important;
    padding: 6px 24px !important;
    z-index: 51;
  }

  /* Controls bar */
  .controls-bar { padding: 8px 10px; gap: 6px; }

  /* Adjourned */
  .adjourned-downloads { gap: 8px; }
}

@media (max-width: 480px) {
  /* Header — keep icon, hide name text */
  header { padding: 6px 10px; }
  .logo span { display: none; }
  .header-btn { font-size: 10px; padding: 4px 6px; }
  #end-meeting-btn { font-size: 10px; }

  /* Meeting stage — compact thumbnail strip on phone */
  #meeting-stage { padding: 6px; gap: 6px; }
  main#avatar-grid { height: 96px; gap: 6px; }
  main#avatar-grid .avatar-tile { flex-basis: 130px; }
  #stage-main .avatar-ring-container { transform: scale(1.2); }

  /* Smaller tiles */
  .avatar-circle { width: 56px; height: 56px; font-size: 20px; }
  .avatar-spinner { width: 56px; height: 56px; }
  .avatar-ring-container { width: 94px; height: 94px; }
  .tile-caption { left: 6px; bottom: 6px; right: 6px; }
  .tile-caption-name { font-size: 10px; padding: 3px 8px; }
  .avatar-role { font-size: 9px; }
  .avatar-llm-badge, .avatar-attitude-badge { font-size: 9px; padding: 1px 6px; }
  .tile-actions { gap: 4px; top: 4px; right: 4px; }
  .tile-action-btn { font-size: 10px; padding: 2px 6px; }

  /* Radial eq — scale down for smaller avatar (56px diameter = 28px radius) */
  .radial-eq { width: 94px; height: 94px; }
  .radial-eq-bar {
    height: 32px;
    background: linear-gradient(to top, transparent 28px, var(--tile-color, var(--accent)) 28px);
  }
  @keyframes radial-bar-pulse {
    from { height: 32px; }
    to   { height: 48px; }
  }

  /* Wizard presets — 2 columns */
  .meeting-type-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .meeting-type-card { padding: 12px 8px; }
  .meeting-type-icon { font-size: 22px; margin-bottom: 6px; }
  .meeting-type-name { font-size: 11px; }
  .meeting-type-desc { display: none; }
  .meeting-type-avatars { margin-top: 6px; }

  /* Wizard team grid */
  .wizard-team-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wizard-participant-tile { padding: 12px 8px; }
  .wizard-tile-avatar { width: 44px; height: 44px; font-size: 16px; }
  .wizard-tile-name { font-size: 11px; }
  .wizard-tile-role { font-size: 10px; }
  .wizard-step2-header { flex-wrap: wrap; gap: 8px; }

  /* Controls bar — input on its own row */
  .controls-bar { flex-wrap: wrap; padding: 6px 8px; gap: 5px; }
  .input-row { order: -1; flex-basis: 100%; }
  #mic-btn { flex: 1; }
  #stop-btn { flex: 1; justify-content: center; }

  /* Modals — full screen sheet */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-dialog {
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
  }

  /* Right panel — taller on small phone */
  .right-panel { height: 65vh !important; max-height: 65vh !important; }

  /* Summary panel smaller max-height */
  .summary-panel { max-height: 28vh; }

  /* Adjourned page */
  .adjourned-title { font-size: 22px; }
  .adjourned-downloads { flex-direction: column; }
  .adj-dl-btn { width: 100%; text-align: center; }
  .adjourned-member-avatar { width: 44px; height: 44px; font-size: 15px; }

  /* Transcript log */
  .right-transcript { font-size: 11px; }
  .rp-btn { font-size: 11px; }
}

/* ===================================================
   LANDING PAGE — LiteLLM-inspired dark navy/purple SaaS
   Manila Core gold (var(--color-gold)) + LiteLLM blue (#5078F2)
   =================================================== */

/* ── Landing page root ── */
.landing-page {
  min-height: 100vh;
  font-family: inherit;
  overflow-x: clip;
  background: #07060F;
  background-image:
    radial-gradient(ellipse at 15% 0%,  rgba(101,70,255,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 5%,  rgba(60,120,255,0.13) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(80,50,200,0.07)  0%, transparent 55%);
  color: var(--text);
}

/* ── Site Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(7,6,15,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.site-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  flex-shrink: 0;
}
.site-nav-brand svg { opacity: 0.85; color: var(--color-gold); }
.site-nav-brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
  color: var(--text);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}
.site-nav-link {
  color: rgba(237,232,255,0.58);
  text-decoration: none;
  font-size: 13.5px;
  padding: 6px 11px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.site-nav-link:hover {
  color: var(--color-gold);
  background: rgba(248,200,48,0.08);
}

.site-nav-cta {
  background: var(--color-gold);
  color: #07050A;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(248,200,48,0.28);
}
.site-nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 5px 22px rgba(248,200,48,0.40);
}

.site-nav-mobile-menu {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--text);
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.site-nav-mobile-links {
  padding: 12px 24px 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(7,6,15,0.97);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Gradient glow blobs behind hero */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 22% 28%, rgba(101,70,255,0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 78% 18%, rgba(60,120,255,0.15) 0%, transparent 45%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.15) saturate(0.4);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7,6,15,0.25) 0%,
    rgba(7,6,15,0.55) 55%,
    rgba(7,6,15,0.96) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px 84px;
}

.hero-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-app-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: rgba(237,232,255,0.88);
  letter-spacing: -0.3px;
}

.hero-mc-logo-wrap { display: inline-block; }
.hero-mc-logo { max-height: 26px; display: block; opacity: 0.90; }

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.8vw, 66px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 35%, #D4B86A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-by-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(237,232,255,0.48);
  margin-bottom: 22px;
}
.hero-by-logo { max-height: 20px; opacity: 0.78; }

.hero-sub {
  font-size: 17px;
  color: rgba(237,232,255,0.62);
  line-height: 1.68;
  max-width: 600px;
  margin: 0 auto 42px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 68px;
}

.hero-cta-primary {
  background: var(--color-gold);
  color: #07050A;
  border: none;
  border-radius: 12px;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 26px rgba(248,200,48,0.38);
}
.hero-cta-primary:hover {
  opacity: 0.93;
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(248,200,48,0.50);
}

.hero-cta-secondary {
  background: rgba(80,120,242,0.12);
  color: rgba(237,232,255,0.9);
  border: 1px solid rgba(80,120,242,0.38);
  border-radius: 12px;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.hero-cta-secondary:hover {
  background: rgba(80,120,242,0.22);
  border-color: rgba(80,120,242,0.65);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: -0.5px;
}
.hero-stat-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 3px;
  color: rgba(237,232,255,0.48);
}
.hero-stat-sep,
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/* ── Section Blocks ── */
.section-block {
  width: 100%;
  padding: 88px max(24px, calc((100% - 1160px) / 2));
}
.section-alt { background: rgba(10,8,22,0.65); }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
  border: 1px solid rgba(248,200,48,0.28);
  padding: 3px 11px;
  border-radius: 100px;
  background: rgba(248,200,48,0.08);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.15;
}
.section-sub {
  font-size: 16px;
  color: var(--color-gray-400);
  max-width: 580px;
  line-height: 1.72;
}

/* ── Centered section headers (global, landing page) ── */
.landing-page .section-label { display: block; text-align: center; width: fit-content; margin-left: auto; margin-right: auto; }
.landing-page .section-title  { text-align: center; }
.landing-page .section-sub    { text-align: center; margin-left: auto; margin-right: auto; }
/* FAQ section is now centered like other sections */

/* ── About Section ── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 52px;
}
.about-card {
  background: rgba(120,90,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 30px;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--card-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  border-radius: inherit;
  pointer-events: none;
}
.about-card > * { position: relative; z-index: 1; }
.about-card:hover {
  border-color: rgba(248,200,48,0.32);
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(248,200,48,0.09);
}
.about-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(248,200,48,0.10);
  border: 1px solid rgba(248,200,48,0.22);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-gold);
  margin-bottom: 18px;
}
.about-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.about-card p  { font-size: 14px; color: var(--color-gray-400); line-height: 1.68; }

/* ── Features Carousel ── */
.features-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 52px;
}
.carousel-track-wrap {
  overflow: hidden;
  flex: 1;
  border-radius: 18px;
}
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.feature-card {
  flex: 0 0 calc(33.33% - 12px);
  margin-right: 18px;
  background: rgba(120,90,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 30px 24px;
  text-align: center;
  flex-shrink: 0;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  border-color: rgba(80,120,242,0.40);
  box-shadow: 0 12px 36px rgba(80,120,242,0.12);
}
.feature-card-icon { font-size: 28px; color: #5078F2; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 15.5px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.35; }
.feature-card p  { font-size: 13.5px; color: var(--color-gray-400); line-height: 1.65; }
.carousel-nav-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.carousel-nav-btn:hover {
  background: rgba(248,200,48,0.14);
  border-color: rgba(248,200,48,0.42);
  color: var(--color-gold);
  transform: scale(1.08);
}
.carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 22px;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  cursor: pointer; border: none; padding: 0;
  transition: background 0.22s, transform 0.22s;
}
.carousel-dot.active { background: var(--color-gold); transform: scale(1.35); }

/* ── Testimonials ── */
.case-testimonial {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.case-test-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(248,200,48,0.32);
}
.case-test-quote { font-size: 12.5px; color: var(--color-gray-400); line-height: 1.6; font-style: italic; margin-bottom: 5px; }
.case-test-name  { font-size: 11.5px; font-weight: 700; color: rgba(237,232,255,0.55); }

/* ── Real images in case/blog card headers ── */
.case-card-header,
.blog-card-img { overflow: hidden; position: relative; }
.case-card-header img, .blog-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.case-card:hover .case-card-header img,
.blog-card:hover .blog-card-img img { transform: scale(1.06); }

/* ── Footer layout: two-column with contact form ── */
.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 52px;
}
.footer-left { display: flex; flex-direction: column; gap: 18px; }
.footer-contact-title { font-size: 16px; font-weight: 700; color: var(--text); }
.footer-contact-sub { font-size: 13px; color: var(--color-gray-400); margin-bottom: 4px; }
.footer-contact-form { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-form input,
.footer-contact-form textarea {
  background: rgba(120,90,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder { color: var(--color-gray-400); }
.footer-contact-form input:focus,
.footer-contact-form textarea:focus { border-color: rgba(248,200,48,0.45); }
.footer-contact-form textarea { resize: vertical; min-height: 80px; }
.footer-contact-btn {
  background: var(--color-gold); color: #07050A;
  border: none; border-radius: 10px;
  padding: 11px 22px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; align-self: flex-start;
  display: flex; align-items: center; gap: 8px;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 3px 14px rgba(248,200,48,0.28);
}
.footer-contact-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.footer-contact-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.footer-bottom-brand {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--color-gray-400);
}
.footer-bottom-brand svg { opacity: 0.55; flex-shrink: 0; }
.footer-mc-logo-sm { max-height: 15px; opacity: 0.72; vertical-align: middle; }

/* ── Horizontal Steps Timeline ── */
.steps-timeline {
  position: relative;
  margin-top: 64px;
  overflow: hidden;
}

.steps-track-line {
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(248,200,48,0.28);
  z-index: 0;
  border-radius: 2px;
}

.steps-nodes {
  display: flex;
  position: relative;
  z-index: 1;
  gap: 0;
}

.step-tl-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
  cursor: pointer;
}

.step-tl-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.14);
  background: #07060F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: rgba(237,232,255,0.30);
  transition: border-color 0.35s, color 0.35s, background 0.35s, box-shadow 0.35s;
  margin-bottom: 22px;
  flex-shrink: 0;
  letter-spacing: 0;
  position: relative;
  z-index: 2;
}

.step-tl-item.active .step-tl-dot {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: #0E0C04;
  box-shadow: 0 0 0 6px rgba(248,200,48,0.18), 0 0 28px rgba(248,200,48,0.45);
}

.step-tl-item:not(.active):hover .step-tl-dot {
  border-color: rgba(248,200,48,0.50);
  color: rgba(248,200,48,0.70);
  background: rgba(248,200,48,0.06);
}

.step-tl-content h3 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(237,232,255,0.38);
  margin-bottom: 10px;
  line-height: 1.35;
  transition: color 0.22s;
}

.step-tl-item.active .step-tl-content h3 {
  color: var(--text);
  font-weight: 700;
}

.step-tl-item:not(.active):hover .step-tl-content h3 {
  color: rgba(237,232,255,0.65);
}

.step-tl-content p {
  font-size: 12.5px;
  color: transparent;
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, color 0.28s ease, opacity 0.28s ease;
  opacity: 0;
}

.step-tl-item.active .step-tl-content p {
  color: var(--color-gray-400);
  max-height: 120px;
  opacity: 1;
}

/* ── Steps Preview Image Panel ── */
.steps-preview-wrap {
  margin-top: 48px;
}
.steps-preview-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(248,200,48,0.18);
  box-shadow: 0 20px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  background: #0E0C18;
  aspect-ratio: 16 / 7;
  position: relative;
}
.steps-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: opacity 0.35s ease;
}
.steps-preview-img.fading {
  opacity: 0;
}

/* ── Usage CTA ── */
.usage-cta {
  margin-top: 52px;
  display: flex;
  justify-content: center;
}
.usage-cta .hero-cta-primary {
  background: var(--color-gold);
  color: #07050A;
  box-shadow: 0 4px 20px rgba(248,200,48,0.32);
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 56px;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-card {
  background: rgba(120,90,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 34px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 18px 52px rgba(0,0,0,0.35);
}
.pricing-featured {
  border-color: rgba(248,200,48,0.52);
  background: rgba(248,200,48,0.05);
  box-shadow: 0 0 44px rgba(248,200,48,0.09);
}
.pricing-featured:hover {
  border-color: rgba(248,200,48,0.72);
  box-shadow: 0 18px 60px rgba(248,200,48,0.14);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-gold), #E8C96A);
  color: #07050A;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(248,200,48,0.44);
}
.pricing-tier { font-size: 13px; font-weight: 600; color: var(--color-gray-400); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.pricing-price { font-size: 44px; font-weight: 800; color: var(--text); letter-spacing: -1.5px; line-height: 1; }
.pricing-price sub { font-size: 16px; font-weight: 500; letter-spacing: 0; vertical-align: baseline; color: var(--color-gray-400); }
.pricing-currency { font-size: 22px; font-weight: 700; vertical-align: top; line-height: 1.4; color: var(--text); }
.pricing-period { font-size: 13px; color: var(--color-gray-400); margin: 7px 0 20px; }
.pricing-desc { font-size: 13.5px; color: var(--color-gray-400); line-height: 1.62; margin: 10px 0 22px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li { font-size: 14px; color: var(--color-gray-400); display: flex; align-items: flex-start; gap: 10px; }
.pricing-features li i { color: var(--color-gold); margin-top: 2px; flex-shrink: 0; }
.pricing-feat-dim { opacity: 0.38; }
.pricing-feat-dim i { color: var(--color-gray-400) !important; }
.pricing-cta {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.pricing-cta:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.20); transform: translateY(-1px); }
.pricing-featured .pricing-cta {
  background: var(--color-gold);
  color: #07050A;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 22px rgba(248,200,48,0.34);
}
.pricing-featured .pricing-cta:hover { opacity: 0.92; box-shadow: 0 7px 30px rgba(248,200,48,0.46); }

/* ── Case Studies & Blog Cards ── */
.case-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 52px;
}
.case-card,
.blog-card {
  background: rgba(120,90,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.case-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(80,120,242,0.34);
  box-shadow: 0 16px 44px rgba(80,120,242,0.11);
}

.case-card-header,
.blog-card-img {
  height: 160px;
  background: linear-gradient(135deg, rgba(101,70,255,0.28) 0%, rgba(60,120,255,0.18) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: rgba(237,232,255,0.55);
}
.blog-card-img { height: 140px; font-size: 32px; }
.case-card-body,
.blog-card-body { padding: 24px; }

.case-card-tag,
.blog-card-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 9px;
}
.case-card h3,
.blog-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 9px; line-height: 1.38; }
.case-card p,
.blog-card p { font-size: 13.5px; color: var(--color-gray-400); line-height: 1.65; margin-bottom: 18px; }

.case-card-link,
.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: #5078F2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s, gap 0.15s;
}
.case-card-link:hover,
.blog-card-link:hover { color: #7A9AFF; gap: 9px; }

/* ── Case card result line ── */
.case-card-result {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.case-card-result i { color: #4CAF7F; flex-shrink: 0; }

/* ── FAQ ── */
.faq-list { margin-top: 52px; max-width: 720px; display: flex; flex-direction: column; gap: 6px; }
.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(248,200,48,0.32); }
.faq-question {
  width: 100%;
  background: rgba(120,90,255,0.06);
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.15s;
}
.faq-question:hover { background: rgba(120,90,255,0.11); }
.faq-question i { color: var(--color-gold); font-size: 13px; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  font-size: 14px;
  color: var(--color-gray-400);
  line-height: 1.72;
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s;
  background: rgba(120,90,255,0.04);
}
.faq-item.open .faq-answer { max-height: 320px; padding: 0 22px 20px; }

/* ── Contact Form ── */
.contact-form-wrap { max-width: 640px; margin-top: 52px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 7px; }
.contact-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.contact-field input,
.contact-field select,
.contact-field textarea {
  background: rgba(120,90,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
  width: 100%;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--color-gray-400); }
.contact-field select option { background: #0C0A18; color: var(--color-white); }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: rgba(248,200,48,0.48);
  background: rgba(248,200,48,0.04);
}
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-submit {
  background: var(--color-gold);
  color: #07050A;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 3px 16px rgba(248,200,48,0.32);
}
.contact-submit:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 26px rgba(248,200,48,0.44); }
.contact-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.req { color: #E05555; margin-left: 2px; }
.contact-status { font-size: 14px; padding: 10px 16px; border-radius: 8px; display: none; }
.contact-status.success { display: block; background: rgba(76,175,127,0.10); color: #4CAF7F; border: 1px solid rgba(76,175,127,0.20); }
.contact-status.error   { display: block; background: rgba(220,50,50,0.08);   color: #E05555; border: 1px solid rgba(220,50,50,0.18); }

/* ── Site Footer ── */
.site-footer {
  background: #050410;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 60px max(24px, calc((100% - 1160px) / 2)) 0;
}
.footer-links-group { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links-col { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.footer-links-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 4px; }
.footer-links-col a { font-size: 13.5px; color: var(--color-gray-400); text-decoration: none; transition: color 0.15s; }
.footer-links-col a:hover { color: var(--color-gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--color-gray-400);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12.5px; color: var(--color-gray-400); text-decoration: none; transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--color-gold); }

/* ── FAQ full-width centered list ── */
.faq-list-centered {
  max-width: 760px;
  margin: 40px auto 0;
}

/* ── Floating Chat Bubble ── */
/* Hidden in the meeting room — it was floating on top of the mic/camera controls */
body:has(#meeting-room[style*="flex"]) .chat-bubble-wrap { display: none; }

.chat-bubble-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  user-select: none;
  touch-action: none;
}
.chat-bubble-wrap.is-dragging { cursor: grabbing; }
.chat-bubble-btn { cursor: grab; }
.chat-bubble-wrap.is-dragging .chat-bubble-btn { cursor: grabbing; }

.chat-bubble-panel {
  background: #12101A;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 360px;
  height: 480px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.6);
  transform-origin: bottom right;
  animation: bubblePanelIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.chat-bubble-panel[aria-hidden="true"] { display: none !important; }

@keyframes bubblePanelIn {
  from { opacity: 0; transform: scale(0.85) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-bubble-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-gold);
  border: none;
  color: #07050A;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(248,200,48,0.45);
  transition: transform 0.18s, box-shadow 0.18s;
  flex-shrink: 0;
}
.chat-bubble-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 36px rgba(248,200,48,0.60);
}

.chat-bubble-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--color-gray-400);
  font-size: 16px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.chat-bubble-close:hover { color: var(--text); background: rgba(255,255,255,0.07); }

/* ── Chat Widget shared styles (used by floating panel) ── */

.faq-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(248,200,48,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.faq-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(248,200,48,0.12);
  border: 1px solid rgba(248,200,48,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-chat-header-text { min-width: 0; }
.faq-chat-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.faq-chat-status {
  font-size: 11.5px;
  color: var(--color-gray-400);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}
.faq-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF7F;
  flex-shrink: 0;
  animation: faq-pulse 2s infinite;
}
@keyframes faq-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.faq-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.faq-chat-messages::-webkit-scrollbar { width: 4px; }
.faq-chat-messages::-webkit-scrollbar-track { background: transparent; }
.faq-chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 2px; }

.faq-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  animation: faqMsgIn 0.22s ease;
}
@keyframes faqMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-msg-ai { align-self: flex-start; }
.faq-msg-user { align-self: flex-end; }

.faq-msg p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.62;
}
.faq-msg-ai p {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.faq-msg-user p {
  background: var(--color-gold);
  color: #07050A;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.faq-typing-indicator p {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--color-gray-400);
  font-style: italic;
  font-size: 12.5px;
}

.faq-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.faq-chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}
.faq-chat-input::placeholder { color: var(--color-gray-400); }
.faq-chat-input:focus { border-color: rgba(248,200,48,0.45); }
.faq-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-gold);
  border: none;
  color: #07050A;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.1s;
  align-self: flex-end;
}
.faq-chat-send:hover { opacity: 0.88; transform: scale(1.05); }
.faq-chat-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── Landing page responsive ── */
@media (max-width: 768px) {
  .site-nav-links { display: none; }
  .site-nav-cta { display: none; }
  .site-nav-mobile-menu { display: flex; }

  .hero-headline { font-size: 30px; letter-spacing: -1px; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-cta-primary, .hero-cta-secondary { justify-content: center; }
  .hero-stats { gap: 24px; }
  .hero-stat-sep, .hero-stat-divider { display: none; }

  .section-block { padding: 56px 18px; }
  .contact-form-row { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Steps timeline → vertical on mobile */
  .steps-preview-frame { aspect-ratio: 16 / 9; }
  .steps-timeline { overflow: visible; }
  .steps-track-line { display: none; }
  .steps-nodes { flex-direction: column; gap: 0; }
  .step-tl-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0;
    padding-bottom: 28px;
    position: relative;
  }
  .step-tl-item:last-child { padding-bottom: 0; }
  .step-tl-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: rgba(248,200,48,0.20);
  }
  .step-tl-dot { margin-bottom: 0; margin-right: 18px; flex-shrink: 0; }
  .step-tl-content { padding-top: 8px; }
  .step-tl-content h3 { font-size: 15px; margin-bottom: 6px; }
  .step-tl-item.active .step-tl-content p,
  .step-tl-item .step-tl-content p {
    max-height: 200px;
    opacity: 1;
    color: var(--color-gray-400);
  }

  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .about-grid, .case-grid, .blog-grid { grid-template-columns: 1fr; }

  /* Carousel: 1 card at a time on mobile */
  .features-carousel-wrap { gap: 8px; }
  .carousel-nav-btn { width: 36px; height: 36px; font-size: 12px; }
  .feature-card { flex: 0 0 100%; margin-right: 0; }

  /* Footer: stack on mobile */
  .site-footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-links-group { gap: 28px; }

  .chat-bubble-panel { width: calc(100vw - 32px); height: 420px; right: 0; }
  .chat-bubble-wrap { right: 16px; bottom: 16px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .section-block { padding: 72px max(20px, calc((100% - 960px) / 2)); }
  .hero-headline { font-size: 44px; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pricing-card { padding: 26px; }
  .site-nav-link { font-size: 12.5px; padding: 6px 8px; }
}

/* ── Meeting Tips Modal ── */
.meeting-tips-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(12px, 3vh, 24px);
  overflow-y: auto;
  animation: fadeIn 0.25s ease;
}
/* Vertically center when there's enough room */
@media (min-height: 600px) {
  .meeting-tips-overlay { align-items: center; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.meeting-tips-modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: clamp(18px, 4vw, 32px);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 4px 16px rgba(0,0,0,0.5);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.meeting-tips-header {
  text-align: center;
  margin-bottom: 24px;
}
.meeting-tips-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
  margin: 0 auto 14px;
}
.meeting-tips-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.meeting-tips-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.meeting-tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 22px;
}
.meeting-tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.meeting-tips-list li i {
  color: #10a37f;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 13px;
}
.meeting-tips-list li strong { color: var(--text); }

.meeting-tips-starters { margin-bottom: 24px; }
.meeting-tips-starter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.meeting-tips-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.meeting-tips-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.meeting-tips-chip:hover {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--text);
}

.meeting-tips-start-btn {
  width: 100%;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: opacity 0.15s, transform 0.1s;
}
.meeting-tips-start-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Meeting Tips responsive compaction ── */
@media (max-height: 700px) {
  .meeting-tips-header { margin-bottom: 14px; }
  .meeting-tips-icon { width: 36px; height: 36px; font-size: 16px; margin-bottom: 8px; }
  .meeting-tips-header h3 { font-size: 16px; margin-bottom: 4px; }
  .meeting-tips-sub { font-size: 12px; }
  .meeting-tips-list { gap: 7px; margin-bottom: 14px; }
  .meeting-tips-list li { font-size: 12.5px; }
  .meeting-tips-starters { margin-bottom: 14px; }
  .meeting-tips-start-btn { padding: 11px; font-size: 14px; }
}
@media (max-width: 480px) {
  .meeting-tips-modal { border-radius: 16px; }
  .meeting-tips-chips { gap: 5px; }
  .meeting-tips-chip { font-size: 11.5px; padding: 5px 11px; }
  .meeting-tips-list li { font-size: 12.5px; }
}

/* ── Agenda Page ── */
.agenda-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.agenda-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.agenda-header-left { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.agenda-header-center { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.agenda-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.agenda-back-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s;
}
.agenda-back-btn:hover { background: var(--surface2); }
.agenda-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); }

.agenda-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.agenda-container {
  width: 100%;
  max-width: 640px;
  text-align: center;
}
.agenda-step-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.agenda-title { font-size: clamp(22px, 3.5vw, 34px); font-weight: 800; color: var(--text); letter-spacing: -0.8px; margin-bottom: 10px; }
.agenda-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }

.agenda-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  resize: none;
  min-height: 130px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.55;
}
.agenda-textarea:focus {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.agenda-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin: 18px 0 28px;
}
.agenda-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.agenda-chip:hover {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--text);
}
.agenda-chip.selected {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: transparent;
}

/* Meeting duration picker on the agenda page */
.meeting-duration-row { margin-bottom: 16px; }
.meeting-duration-label {
  display: block; font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}

/* Meeting-kind toggle (Boardroom vs Direct Model Chat) on the agenda page */
.meeting-kind-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.meeting-kind-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.meeting-kind-btn:hover { border-color: var(--border2); color: var(--text); }
.meeting-kind-btn.active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: transparent;
}

.direct-model-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}
.direct-model-grid .agenda-chip.selected { background: var(--accent); }

.agenda-attach-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 4px;
}
.agenda-attach-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.agenda-attach-btn:hover { border-color: var(--text-muted); color: var(--text); }
.agenda-attach-btn.uploading { opacity: 0.6; cursor: wait; }
.agenda-link-input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.agenda-link-input:focus { border-color: var(--accent-text); }
#agenda-attachment-row { margin-bottom: 16px; border-radius: 10px; }

.agenda-next-btn {
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: opacity 0.15s, transform 0.1s;
}
.agenda-next-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.agenda-next-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Recommended preset card highlight */
.meeting-type-card.preset-recommended {
  border-color: var(--border2);
  background: var(--surface2);
  position: relative;
}
.meeting-type-card.preset-recommended::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px var(--accent) inset;
  pointer-events: none;
  opacity: 0.3;
}

/* Recommended badge on wizard preset cards */
.preset-badge-recommended {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Distinct accent for genuine AI-driven picks vs. the instant keyword-match fallback */
.meeting-type-card.preset-ai-recommended::before { opacity: 0.7; }
.preset-badge-ai { background: #e5533d; color: #fff; }
.wizard-ai-reasoning {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
  margin-bottom: 16px;
}

/* ================================================================
   AUTH / ACCOUNTS STYLES
   ================================================================ */

/* Nav auth widget */
.nav-auth-widget { display: flex; align-items: center; gap: 8px; }
.nav-login-btn {
  background: transparent;
  border: 1px solid rgba(248,200,48,0.5);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-login-btn:hover { background: rgba(248,200,48,0.12); border-color: var(--accent-text); }
.nav-user-badge { position: relative; display: flex; align-items: center; gap: 6px; }
.nav-plan-chip {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px;
  background: rgba(248,200,48,0.15); color: var(--accent-text); border: 1px solid rgba(248,200,48,0.3);
}
.nav-plan-chip.plan-starter { background: rgba(76,201,168,0.15); color: #4cc9a8; border-color: rgba(76,201,168,0.3); }
.nav-plan-chip.plan-pro { background: rgba(139,92,246,0.15); color: #8b5cf6; border-color: rgba(139,92,246,0.3); }
.nav-plan-chip.plan-enterprise { background: rgba(245,158,11,0.15); color: #f59e0b; border-color: rgba(245,158,11,0.3); }
.nav-user-btn {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 6px 12px; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background 0.2s;
}
.nav-user-btn:hover { background: rgba(255,255,255,0.1); }
.nav-user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4); padding: 6px; z-index: 9990;
}
.nav-user-dropdown button {
  width: 100%; text-align: left; background: transparent; border: none;
  color: var(--text); padding: 9px 12px; border-radius: 8px; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; gap: 10px; transition: background 0.15s;
}
.nav-user-dropdown button:hover { background: rgba(255,255,255,0.07); }
.nav-user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* Auth page (full-screen centered card) */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: 20px;
}
.auth-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px 36px; width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.auth-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-size: 18px; font-weight: 700; color: var(--text);
}
.auth-tabs {
  display: flex; gap: 4px; background: rgba(255,255,255,0.04); border-radius: 10px;
  padding: 4px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; background: transparent; border: none; color: var(--text-muted);
  padding: 8px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.auth-tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.auth-label-optional { font-weight: 400; opacity: 0.6; }
.auth-field input {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--text);
  box-sizing: border-box; transition: border-color 0.2s; outline: none;
}
.auth-field input:focus { border-color: var(--accent-text); }
.auth-pw-wrap { position: relative; }
.auth-pw-wrap input { padding-right: 44px; }
.auth-pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px;
}
.auth-submit-btn {
  width: 100%; background: var(--accent); color: #0a0a0a; border: none;
  border-radius: 10px; padding: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s; margin-top: 4px;
}
.auth-submit-btn:hover { opacity: 0.9; }
.auth-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  color: var(--text-muted); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-guest-btn {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px; font-size: 14px; color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s;
}
.auth-guest-btn:hover { background: rgba(255,255,255,0.08); }
.auth-guest-note { font-size: 12px; color: var(--text-muted); }
.auth-terms { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 16px; }
.auth-terms a { color: var(--accent-text); text-decoration: none; }
.auth-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444; border-radius: 8px; padding: 10px 12px; font-size: 13px;
}
.auth-spinner {
  width: 28px; height: 28px; border: 3px solid rgba(248,200,48,0.2);
  border-top-color: var(--accent-text); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Verify / OTP */
.verify-icon { font-size: 48px; color: var(--accent-text); text-align: center; margin-bottom: 16px; }
.verify-title { font-size: 22px; font-weight: 700; text-align: center; margin: 0 0 8px; }
.verify-subtitle { font-size: 14px; color: var(--text-muted); text-align: center; margin: 0 0 28px; }
.otp-wrap { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.otp-box {
  width: 46px; height: 56px; text-align: center; font-size: 22px; font-weight: 700;
  background: rgba(255,255,255,0.05); border: 2px solid var(--border); border-radius: 10px;
  color: var(--text); outline: none; transition: border-color 0.2s;
  box-sizing: border-box;
}
.otp-box:focus { border-color: var(--accent-text); background: rgba(248,200,48,0.07); }
.verify-resend { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.verify-resend-link {
  background: transparent; border: none; color: var(--accent-text); cursor: pointer;
  font-size: 13px; text-decoration: underline;
}

/* Upgrade modal */
.upgrade-modal-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px 32px; max-width: 820px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative;
}
.upgrade-modal-icon { font-size: 36px; color: var(--accent-text); text-align: center; margin-bottom: 12px; }
.upgrade-modal-title { font-size: 24px; font-weight: 700; text-align: center; margin: 0 0 8px; }
.upgrade-modal-sub { font-size: 15px; color: var(--text-muted); text-align: center; margin: 0 0 32px; }
.upgrade-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 680px) { .upgrade-plans-grid { grid-template-columns: 1fr; } }
.upgrade-plan-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px 20px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.upgrade-plan-card:hover { border-color: var(--accent-text); background: rgba(248,200,48,0.04); }
.upgrade-plan-featured {
  border-color: var(--accent-text); background: rgba(248,200,48,0.06);
  box-shadow: 0 0 0 1px var(--accent);
}
.upgrade-plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #0a0a0a; font-size: 10px; font-weight: 800;
  letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 100px;
  white-space: nowrap;
}
.upgrade-plan-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.upgrade-plan-price { font-size: 32px; font-weight: 800; color: var(--accent-text); margin-bottom: 16px; }
.upgrade-plan-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.upgrade-plan-features { list-style: none; padding: 0; margin: 0 0 20px; font-size: 13px; color: var(--text-muted); }
.upgrade-plan-features li { padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.upgrade-plan-features li i { color: var(--accent-text); font-size: 11px; }
.upgrade-plan-btn {
  width: 100%; background: var(--accent); color: #0a0a0a; border: none;
  border-radius: 8px; padding: 10px; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: opacity 0.2s; pointer-events: none;
}
.upgrade-plan-card:hover .upgrade-plan-btn { opacity: 0.9; }

/* Provider keys modal */
.provider-modal-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px 32px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative;
}
.provider-modal-title { font-size: 20px; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.provider-modal-sub { font-size: 13px; color: var(--text-muted); margin: 0 0 24px; }
.provider-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.provider-item {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px;
}
.provider-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.provider-item-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.provider-item-saved { font-size: 11px; color: #4caf50; display: flex; align-items: center; gap: 4px; }
.provider-key-wrap { display: flex; gap: 8px; }
.provider-key-wrap input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--text); outline: none;
  transition: border-color 0.2s; font-family: monospace;
}
.provider-key-wrap input:focus { border-color: var(--accent-text); }
.provider-key-save { background: var(--accent); color: #0a0a0a; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.provider-key-delete { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); border-radius: 8px; padding: 8px 12px; font-size: 13px; cursor: pointer; }
.provider-byok-note { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-top: 8px; }

/* Guest limit banner shown in wizard */
.guest-limit-banner {
  background: rgba(248,200,48,0.08); border: 1px solid rgba(248,200,48,0.25);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
}
.guest-limit-banner i { color: var(--accent-text); }
.guest-limit-upgrade-link { color: var(--accent-text); cursor: pointer; text-decoration: underline; background: none; border: none; font-size: 13px; }

/* Plan badge in meeting header */
.meeting-plan-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px; display: inline-flex; align-items: center;
  background: rgba(248,200,48,0.12); color: var(--accent-text); border: 1px solid rgba(248,200,48,0.2);
}

/* ===== ADMIN DASHBOARD ===== */
.admin-dashboard {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.admin-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(248,200,48,0.15);
  color: var(--accent-text);
  border: 1px solid rgba(248,200,48,0.25);
}
.admin-back-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s, border-color 0.15s;
}
.admin-back-btn:hover { color: var(--text); border-color: var(--text-muted); }

.admin-content {
  padding: 28px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Stat cards */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}
.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.admin-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.admin-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Sections */
.admin-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-section-title i { color: var(--accent-text); }

/* System grid */
.admin-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.admin-system-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
}
.admin-system-item .asis-label { color: var(--text-muted); margin-bottom: 4px; }
.admin-system-item .asis-value { color: var(--text); font-weight: 600; word-break: break-all; }
.asis-ok { color: #4caf50; }
.asis-err { color: #ef5350; }

/* Toolbar */
.admin-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-search {
  flex: 1;
  min-width: 200px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
}
.admin-search:focus { border-color: var(--accent-text); }
.admin-filter-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.admin-refresh-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.admin-refresh-btn:hover { color: var(--text); }

/* Table */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface2); }
.admin-loading { text-align: center; color: var(--text-muted); padding: 24px; }

/* Role / plan chips in table */
.admin-role-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid;
}
.admin-role-chip.super_admin { color: #ff9800; border-color: rgba(255,152,0,0.35); background: rgba(255,152,0,0.08); }
.admin-role-chip.admin       { color: #64b5f6; border-color: rgba(100,181,246,0.35); background: rgba(100,181,246,0.08); }
.admin-role-chip.user        { color: var(--text-muted); border-color: var(--border); background: transparent; }

/* Row actions */
.admin-row-actions { display: flex; gap: 6px; align-items: center; }
.admin-plan-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
}
.admin-plan-select:focus { outline: none; border-color: var(--accent-text); }
.admin-delete-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.admin-delete-btn:hover { color: #ef5350; border-color: #ef5350; }
.admin-delete-btn:disabled { opacity: 0.3; cursor: not-allowed; }

@media (max-width: 600px) {
  .admin-content { padding: 16px; }
  .admin-topbar { padding: 12px 16px; }
  .admin-stats-row { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   NEW ADMIN DASHBOARD — Sidebar layout
   ============================================================ */

.admin-dashboard {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

/* Topbar */
.adm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  flex-shrink: 0;
}
.adm-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.adm-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(248,200,48,0.15);
  color: var(--accent-text);
  border: 1px solid rgba(248,200,48,0.3);
  padding: 2px 7px;
  border-radius: 100px;
}
.adm-topbar-actions { display: flex; align-items: center; gap: 12px; }
.adm-topbar-user { font-size: 13px; color: var(--text-muted); }
.adm-back-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s;
}
.adm-back-btn:hover { background: rgba(255,255,255,0.1); }

/* Body layout */
.adm-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Sidebar */
.adm-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--glass-light);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.adm-nav-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background 0.15s, color 0.15s;
}
.adm-nav-btn:hover { background: var(--surface2); color: var(--text); }
.adm-nav-btn.active { background: rgba(248,200,48,0.12); color: var(--accent-text); font-weight: 500; }
.adm-nav-btn i { width: 16px; text-align: center; flex-shrink: 0; }

/* Main content */
.adm-main {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  min-width: 0;
}
.adm-section { display: none; }
.adm-section.active { display: block; }

/* Section headers */
.adm-section-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}
.adm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.adm-section-header .adm-section-title { margin: 0; }
.adm-subsection-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stats row */
.adm-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.adm-stat-card {
  background: var(--glass-light);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.adm-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.adm-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-text);
}
.adm-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* System grid */
.adm-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.adm-sys-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.adm-sys-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 3px; }
.adm-sys-value { font-size: 13px; color: var(--text); font-weight: 500; }
.adm-ok { color: #4caf50 !important; }
.adm-err { color: #ef5350 !important; }

/* Activity log */
.adm-log-list { display: flex; flex-direction: column; gap: 6px; }
.adm-log-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; flex-wrap: wrap; }
.adm-log-action { font-weight: 600; color: var(--accent-text); }
.adm-log-target { color: var(--text); }
.adm-log-by { color: var(--text-muted); }
.adm-log-time { color: var(--text-muted); margin-left: auto; }

/* Toolbar */
.adm-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.adm-search {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}
.adm-filter-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}
.adm-refresh-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.adm-refresh-btn:hover { background: rgba(255,255,255,0.1); }

/* Table */
.adm-table-wrap { overflow-x: auto; }
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.adm-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  white-space: nowrap;
}
.adm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
.adm-table tr:hover td { background: rgba(255,255,255,0.03); }
.adm-loading { text-align: center; color: var(--text-muted); padding: 20px; }

/* Plan/role chips */
.adm-plan-chip {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}
.adm-plan-chip.plan-guest     { background: rgba(150,150,150,0.15); color: #aaa; }
.adm-plan-chip.plan-starter   { background: rgba(76,201,168,0.15);  color: #4cc9a8; }
.adm-plan-chip.plan-pro       { background: rgba(139,92,246,0.15);  color: #8b5cf6; }
.adm-plan-chip.plan-enterprise{ background: rgba(245,158,11,0.15);  color: #f59e0b; }

.adm-role-chip {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
}
.adm-role-chip.user        { background: rgba(255,255,255,0.08); color: #ccc; }
.adm-role-chip.admin       { background: rgba(33,150,243,0.15);  color: #64b5f6; }
.adm-role-chip.super-admin { background: rgba(248,200,48,0.15);  color: var(--accent-text); }

.adm-badge-ok       { font-size: 10px; padding: 2px 8px; border-radius: 100px; background: rgba(76,175,80,0.15);  color: #4caf50; font-weight: 700; }
.adm-badge-warn     { font-size: 10px; padding: 2px 8px; border-radius: 100px; background: rgba(255,193,7,0.15);   color: #ffc107; font-weight: 700; }
.adm-badge-suspended{ font-size: 10px; padding: 2px 8px; border-radius: 100px; background: rgba(239,83,80,0.15);  color: #ef5350; font-weight: 700; }

/* Buttons */
.adm-btn-primary {
  background: var(--color-gold);
  color: #07050A;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.15s;
}
.adm-btn-primary:hover { opacity: 0.88; }
.adm-btn-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s;
}
.adm-btn-secondary:hover { background: rgba(255,255,255,0.12); }
.adm-btn-danger {
  background: rgba(239,83,80,0.12);
  border: 1px solid rgba(239,83,80,0.3);
  color: #ef5350;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  display: block;
  width: 100%;
  transition: background 0.15s;
}
.adm-btn-danger:hover { background: rgba(239,83,80,0.2); }
.adm-view-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.adm-view-btn:hover { background: rgba(255,255,255,0.1); }
.adm-btn-sm {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s;
}
.adm-btn-sm:hover { background: rgba(255,255,255,0.1); }
.adm-btn-sm-danger {
  background: rgba(239,83,80,0.08);
  border-color: rgba(239,83,80,0.25);
  color: var(--status-danger, #ef5350); /* theme-aware: darker red on the light theme */
}
.adm-btn-sm-danger:hover { background: rgba(239,83,80,0.16); }

/* Cards */
.adm-card {
  background: var(--glass-light);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.adm-muted { color: var(--text-muted); font-size: 13px; }

/* Revenue */
.adm-rev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }

/* Persona grid */
.adm-persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.adm-persona-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.adm-persona-card:hover { border-color: rgba(248,200,48,0.3); }
.adm-persona-card.inactive { opacity: 0.5; }
.adm-persona-card-head { display: flex; align-items: center; gap: 12px; padding: 14px; }
.adm-persona-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.adm-persona-emoji { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(255,255,255,0.06); flex-shrink: 0; }
.adm-persona-name { font-size: 14px; font-weight: 600; color: var(--text); }
.adm-persona-actions { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); background: rgba(0,0,0,0.2); }

/* Presets list */
.adm-presets-list { display: flex; flex-direction: column; gap: 10px; }
.adm-preset-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}
.adm-preset-item:hover { border-color: rgba(248,200,48,0.3); }
.adm-preset-item.inactive { opacity: 0.5; }
.adm-preset-icon { font-size: 28px; flex-shrink: 0; }
.adm-preset-info { flex: 1; min-width: 0; }
.adm-preset-name { font-size: 14px; font-weight: 600; color: var(--text); }
.adm-preset-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* CMS */
.adm-cms-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.adm-cms-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.adm-cms-tab:hover { background: rgba(255,255,255,0.09); color: var(--text); }
.adm-cms-tab.active { background: rgba(248,200,48,0.12); border-color: rgba(248,200,48,0.3); color: var(--accent-text); }
.adm-cms-content { display: flex; flex-direction: column; gap: 20px; }
.adm-cms-field { display: flex; flex-direction: column; }
.adm-cms-textarea { min-height: 120px; resize: vertical; }

/* Tutorials */
.adm-tutorials-list { display: flex; flex-direction: column; gap: 10px; }
.adm-tut-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.adm-tut-item.draft { border-style: dashed; opacity: 0.75; }
.adm-tut-info { flex: 1; min-width: 0; }
.adm-tut-title { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.adm-tut-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Settings */
.adm-settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.adm-danger-zone { border-color: rgba(239,83,80,0.25); }

/* Forms */
.adm-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; display: block; margin-top: 10px; }
.adm-label:first-child { margin-top: 0; }
.adm-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s;
}
.adm-input:focus { outline: none; border-color: rgba(248,200,48,0.5); }
.adm-input textarea, textarea.adm-input, .adm-textarea { resize: vertical; min-height: 80px; }
.adm-textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 8px 12px; font-size: 13px;
  box-sizing: border-box; font-family: inherit; transition: border-color 0.15s;
}
.adm-textarea:focus { outline: none; border-color: rgba(248,200,48,0.5); }

/* Modals */
.adm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 20px;
}
.adm-modal-card {
  background: var(--modal-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 560px;
  position: relative;
}
.adm-modal-title { font-size: 16px; font-weight: 700; margin: 0 0 18px; color: var(--text); }
.adm-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.adm-persona-check-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 8px; margin-top: 6px; }
.adm-persona-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 5px 8px; border-radius: 6px; }
.adm-persona-check:hover { background: rgba(255,255,255,0.05); }
.adm-persona-check input[type=checkbox] { accent-color: var(--color-gold); }

/* AI Assistant */
.adm-ai-quickbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-ai-quickbtns button {
  background: rgba(248,200,48,0.1);
  border: 1px solid rgba(248,200,48,0.25);
  color: var(--accent-text);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.adm-ai-quickbtns button:hover { background: rgba(248,200,48,0.18); }
.adm-ai-messages {
  height: 360px;
  overflow-y: auto;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.adm-ai-msg { display: flex; }
.adm-ai-msg.user { justify-content: flex-end; }
.adm-ai-msg.assistant { justify-content: flex-start; }
.adm-ai-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.adm-ai-msg.user .adm-ai-bubble { background: rgba(248,200,48,0.15); border: 1px solid rgba(248,200,48,0.25); color: var(--text); }
.adm-ai-msg.assistant .adm-ai-bubble { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text); }
.adm-ai-thinking { opacity: 0.4; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{opacity:0.3} 50%{opacity:0.8} }
.adm-ai-input-row { display: flex; gap: 10px; align-items: flex-end; }
.adm-ai-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  transition: border-color 0.15s;
}
.adm-ai-input:focus { outline: none; border-color: rgba(248,200,48,0.5); }
.adm-ai-send-btn {
  background: var(--color-gold);
  color: #07050A;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.adm-ai-send-btn:hover { opacity: 0.85; }

/* Responsive */
@media (max-width: 768px) {
  .adm-sidebar { width: 52px; padding: 12px 6px; }
  .adm-nav-btn span, .adm-nav-btn { font-size: 0; padding: 10px; justify-content: center; }
  .adm-nav-btn i { width: auto; font-size: 16px; }
  .adm-main { padding: 16px; }
  .adm-rev-grid { grid-template-columns: 1fr; }
  .adm-modal-grid { grid-template-columns: 1fr; }
  .adm-persona-grid { grid-template-columns: 1fr; }
}

/* ===== ADMIN START MEETING BUTTON ===== */
.adm-start-meeting-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent, var(--color-gold)); color: #000;
  border: none; border-radius: 6px;
  padding: 7px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s;
}
.adm-start-meeting-btn:hover { opacity: 0.85; }

/* ===== UPGRADE MODAL — FREE PLAN CARD ===== */
.upgrade-plan-free { opacity: 0.9; }
.upgrade-plan-free .upgrade-plan-btn {
  background: var(--surface2) !important;
  color: var(--text) !important;
}

/* ===== USER DASHBOARD ===== */
.user-dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

/* Topbar */
.usr-topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; height: 60px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
}
.usr-topbar-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 16px; font-weight: 700; white-space: nowrap;
}
.usr-topbar-brand img { height: 28px; width: 28px; border-radius: 6px; }
.usr-topbar-center {
  flex: 1; text-align: center;
  font-size: 14px; color: var(--text2);
}
.usr-topbar-center strong { color: var(--text); }
.usr-topbar-actions { display: flex; gap: 8px; align-items: center; }

/* Theme switcher (light / dark / slate) — used in both dashboard topbars */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.theme-switch-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: transparent; border: none; border-radius: 999px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.theme-switch-btn:hover { color: var(--text); }
.theme-switch-btn.active {
  background: var(--accent);
  color: var(--accent-fg);
}

.usr-start-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent, var(--color-gold)); color: #000;
  border: none; border-radius: 6px;
  padding: 7px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s;
}
.usr-start-btn:hover { opacity: 0.85; }

.usr-signout-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text2);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 12px; font-size: 13px;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.usr-signout-btn:hover { color: var(--text); border-color: var(--text2); }

/* Tabs */
.usr-tabs {
  position: sticky; top: 60px; z-index: 90;
  display: flex; gap: 4px;
  padding: 0 24px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.usr-tab {
  background: transparent; border: none; border-bottom: 3px solid transparent;
  padding: 12px 16px; font-size: 14px; color: var(--text2);
  cursor: pointer; white-space: nowrap; transition: color 0.2s, border-color 0.2s;
}
.usr-tab:hover { color: var(--text); }
.usr-tab.active { color: var(--accent-text, var(--color-gold)); border-bottom-color: var(--accent-text, var(--color-gold)); font-weight: 600; }

/* Content area */
.usr-content {
  flex: 1;
  max-width: 1200px; width: 100%;
  margin: 0 auto; padding: 32px 24px;
  box-sizing: border-box;
}
.usr-tab-pane { display: block; }

/* Stat cards */
.usr-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.usr-stat-card {
  background: var(--glass-light);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.usr-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.usr-stat-label { font-size: 12px; color: var(--text2); margin-top: 6px; display: block; }
.usr-stat-value, .usr-stat-num { font-size: 26px; font-weight: 700; color: var(--accent-text, var(--color-gold)); display: block; }

/* Overview grid */
.usr-overview-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
}
.usr-ad-column { display: flex; flex-direction: column; gap: 16px; }
.usr-ad-box {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border); border-radius: var(--radius-glass);
  overflow: hidden; background: var(--glass-light);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text2);
}

/* Stat sub text */
.usr-stat-sub { font-size: 11px; color: var(--text2); }

/* Card header */
.usr-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.usr-card-header h3 { margin: 0; font-family: var(--font-serif, 'Playfair Display', serif); font-weight: 600; }
.usr-link-btn {
  background: none; border: none; color: var(--accent-text, var(--color-gold));
  font-size: 13px; cursor: pointer; padding: 0;
}
.usr-link-btn:hover { text-decoration: underline; }

/* Card */
.usr-card {
  background: var(--glass-light);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-glass);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.usr-card h3 { font-family: var(--font-serif, 'Playfair Display', serif); font-size: 17px; font-weight: 600; margin: 0 0 16px; }

/* Meetings table */
.usr-meetings-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.usr-meetings-table th {
  text-align: left; padding: 8px 10px;
  border-bottom: 2px solid var(--border);
  font-size: 12px; color: var(--text2); font-weight: 600;
}
.usr-meetings-table td { padding: 10px; border-bottom: 1px solid var(--border); }
.usr-meetings-table tr:last-child td { border-bottom: none; }
.usr-meetings-table tr:hover td { background: var(--surface2); }

/* Meetings tab — ongoing cards, past pagination, detail modal */
.usr-meetings-section { margin-bottom: 22px; }
.usr-meetings-section:last-child { margin-bottom: 0; }
.usr-meetings-section-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text2); margin: 0 0 10px;
}
.usr-meeting-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.usr-meeting-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.usr-meeting-card:hover { border-color: var(--border2); background: var(--surface2); }
.usr-meeting-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.usr-meeting-card-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.usr-meeting-card-agenda {
  font-size: 12px; color: var(--text2); margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.usr-meeting-card-members { font-size: 11px; color: var(--text2); }
.usr-meeting-kind { font-size: 11px; color: var(--text2); }

.usr-status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 3px 9px; border-radius: 100px;
  background: var(--surface2); color: var(--text2); border: 1px solid var(--border);
}
.usr-status-pill.ongoing { background: color-mix(in srgb, var(--status-success) 18%, transparent); color: var(--status-success); border-color: transparent; }
.usr-status-pill.completed { background: var(--surface2); color: var(--text2); }

.usr-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.usr-pagination button {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 12px; color: var(--text); font-size: 12px; cursor: pointer;
}
.usr-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.usr-pagination span { font-size: 12px; color: var(--text2); }

.meeting-detail-card {
  position: relative; max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto;
}
.meeting-detail-card .modal-close-x {
  position: absolute; top: 14px; right: 14px; background: none; border: none;
  color: var(--text2); font-size: 16px; cursor: pointer;
}
.mtg-detail-members { font-size: 13px; color: var(--text2); margin: 10px 0 16px; }
.mtg-detail-body { display: flex; flex-direction: column; gap: 16px; }
.mtg-detail-block h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text2); margin: 0 0 6px; }
.mtg-detail-transcript {
  white-space: pre-wrap; font-size: 13px; line-height: 1.5; max-height: 260px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px;
}
.mtg-detail-actions { margin-top: 18px; display: flex; gap: 10px; }

/* Meetings tab search */
.usr-search-row { display: flex; gap: 10px; margin-bottom: 16px; }
.usr-search-input {
  flex: 1; padding: 8px 12px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 14px;
}
.usr-search-input:focus { outline: 1px solid var(--accent); }

/* Profile grid */
.usr-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.usr-profile-grid .usr-card { display: flex; flex-direction: column; gap: 12px; }
.usr-profile-label { font-size: 12px; color: var(--text2); margin-bottom: 2px; }
.usr-profile-input {
  width: 100%; padding: 8px 10px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 14px; box-sizing: border-box;
}
.usr-profile-input:focus { outline: 1px solid var(--accent); }
.usr-profile-btn {
  padding: 8px 16px; border-radius: 6px;
  background: var(--accent, var(--color-gold)); color: #000;
  border: none; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: opacity 0.2s; align-self: flex-start;
}
.usr-profile-btn:hover { opacity: 0.85; }
.usr-plan-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.usr-plan-badge.plan-guest, .usr-plan-badge.plan-free { background: var(--surface2); color: var(--text2); }
.usr-plan-badge.plan-pro { background: rgba(248,200,48,0.13); color: var(--accent-text); }
.usr-plan-badge.plan-enterprise { background: #7c3aed22; color: #7c3aed; }
.usr-upgrade-btn {
  padding: 8px 16px; border-radius: 6px;
  background: transparent; color: var(--accent-text, var(--color-gold));
  border: 1px solid var(--accent, var(--color-gold));
  font-weight: 600; font-size: 13px;
  cursor: pointer; transition: background 0.2s; align-self: flex-start;
}
.usr-upgrade-btn:hover { background: var(--accent, var(--color-gold)); color: #000; }

/* Help tutorials */
.usr-tutorial-card {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 16px; margin-bottom: 12px;
}
.usr-tutorial-card h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.usr-tutorial-card p { margin: 0 0 8px; font-size: 13px; color: var(--text2); }
.usr-tutorial-link { font-size: 13px; color: var(--accent-text, var(--color-gold)); text-decoration: none; }
.usr-tutorial-link:hover { text-decoration: underline; }

/* Empty state */
.usr-empty, .usr-muted { color: var(--text2); font-size: 14px; padding: 8px 0; margin: 0; }

/* Form helpers */
.usr-label { font-size: 12px; color: var(--text2); margin-bottom: 4px; display: block; }
.usr-input {
  width: 100%; padding: 8px 10px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 14px; box-sizing: border-box;
}
.usr-input:focus { outline: 1px solid var(--accent); }
.usr-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 6px;
  background: var(--accent, var(--color-gold)); color: #000;
  border: none; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: opacity 0.2s;
}
.usr-btn-primary:hover { opacity: 0.85; }
.usr-plan-display { margin: 4px 0 8px; }

/* Responsive */
@media (max-width: 768px) {
  .usr-overview-grid { grid-template-columns: 1fr; }
  .usr-ad-column { flex-direction: row; overflow-x: auto; }
  .usr-ad-box { min-width: 140px; aspect-ratio: 3 / 4; }
  .usr-topbar-center { display: none; }
  .usr-profile-grid { grid-template-columns: 1fr; }
  .usr-content { padding: 16px; }
}

/* ===== SUPPORT TICKETS ===== */

/* Stat row */
.tkt-stats-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
}
.tkt-stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 90px;
}
.tkt-stat-num { font-size: 22px; font-weight: 700; }
.tkt-stat-label { font-size: 11px; color: var(--text2); }

/* Filters bar */
.tkt-filters {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.tkt-status-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tkt-tab {
  background: transparent; border: 1px solid var(--border); border-radius: 20px;
  padding: 5px 14px; font-size: 13px; color: var(--text2);
  cursor: pointer; transition: all 0.15s;
}
.tkt-tab:hover { color: var(--text); border-color: var(--text2); }
.tkt-tab.active { background: var(--accent, var(--color-gold)); color: #000; border-color: var(--accent-text, var(--color-gold)); font-weight: 600; }

/* Ticket table */
.tkt-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.tkt-table th {
  text-align: left; padding: 8px 10px;
  border-bottom: 2px solid var(--border);
  font-size: 12px; color: var(--text2); font-weight: 600;
}
.tkt-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tkt-row { cursor: pointer; }
.tkt-row:hover td { background: var(--surface2); }
.tkt-id { color: var(--text2); font-size: 12px; white-space: nowrap; }
.tkt-subject { font-weight: 500; }
.tkt-from { color: var(--text2); font-size: 13px; }
.tkt-date { color: var(--text2); font-size: 12px; white-space: nowrap; }
.tkt-reply-count { text-align: center; color: var(--text2); }

/* Status & priority badges */
.tkt-status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.tkt-status-open        { background: #ef535022; color: #ef5350; }
.tkt-status-in_progress { background: #ff980022; color: #ff9800; }
.tkt-status-resolved    { background: #4caf5022; color: #4caf50; }
.tkt-status-closed      { background: var(--surface2); color: var(--text2); }

.tkt-priority-badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600; text-transform: capitalize; white-space: nowrap;
}
.tkt-priority-low    { background: var(--surface2); color: var(--text2); }
.tkt-priority-normal { background: #2196f322; color: #2196f3; }
.tkt-priority-high   { background: #ff980022; color: #ff9800; }
.tkt-priority-urgent { background: #ef535022; color: #ef5350; }

/* Detail header */
.tkt-detail-header {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.tkt-detail-meta { display: flex; gap: 8px; align-items: center; }
.tkt-detail-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.adm-input-sm { padding: 5px 10px; font-size: 13px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.tkt-detail-subject { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.tkt-detail-from { font-size: 13px; color: var(--text2); margin: 0 0 16px; }

/* Thread */
.tkt-thread {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 480px; overflow-y: auto;
  padding: 4px 0;
}
.tkt-msg { border-radius: 10px; padding: 14px 16px; max-width: 90%; }
.tkt-msg-user  { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; }
.tkt-msg-admin { background: var(--accent, var(--color-gold))18; border: 1px solid var(--accent, var(--color-gold))44; align-self: flex-end; }
.tkt-msg-meta  { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.tkt-msg-meta strong { font-weight: 600; }
.tkt-msg-time  { color: var(--text2); font-size: 12px; }
.tkt-admin-tag { background: var(--accent, var(--color-gold)); color: #000; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.tkt-msg-body  { font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* Attachments */
.tkt-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tkt-attach-img   { max-width: 200px; max-height: 160px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border); }
.tkt-attach-video { max-width: 280px; border-radius: 6px; }
.tkt-attach-file  { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent-text, var(--color-gold)); padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; }
.tkt-attach-file:hover { background: var(--surface2); }

/* Reply form */
.tkt-attach-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tkt-attach-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 6px;
  border: 1px dashed var(--border); color: var(--text2);
  font-size: 13px; cursor: pointer; transition: border-color 0.2s;
}
.tkt-attach-btn:hover { border-color: var(--text2); color: var(--text); }
.tkt-attach-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.tkt-attach-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; padding: 3px 8px;
  background: var(--surface2); border-radius: 20px; color: var(--text2);
}

/* New ticket modal box */
.modal-box {
  background: var(--modal-bg, var(--surface));
  border: 1px solid var(--border2, var(--border));
  border-radius: var(--radius, 12px);
  width: 100%; max-height: 85vh; overflow-y: auto;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow, 0 8px 32px rgba(0,0,0,0.4));
}
.modal-box .modal-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-box .modal-body   { padding: 18px; flex: 1; }
.modal-box .modal-footer { padding: 10px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.modal-close-btn { background: none; border: none; color: var(--text2); font-size: 16px; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.modal-close-btn:hover { color: var(--text); background: var(--surface2); }

/* Logout button (replaces Back to App) */
.adm-logout-btn {
  background: transparent !important;
  color: var(--text2) !important;
  border: 1px solid var(--border) !important;
}
.adm-logout-btn:hover { color: var(--text) !important; border-color: var(--text2) !important; }


/* ==========================================================================
   MANILA CORE BRAND LAYER
   Source: Claude Design → "Manila Core Design System" (Brand Guidelines v1.0)
   Appended last so it wins over the legacy rules above without editing them.

   The colour rebrand is already handled by the token remap in :root — this
   layer carries the component specs the guidelines state explicitly:
   type pairing, button variants, card treatment, and the gold accent rule.
   ========================================================================== */

/* ── Typography: Playfair above, DM Sans below ─────────────────────────────
   Guidelines: "Playfair sits above, DM Sans below. A Playfair heading
   followed by a DM Sans body paragraph is the standard pattern." */
.landing-page h1, .landing-page h2, .landing-page h3,
.hero-headline, .section-title, .auth-card h1, .auth-card h2,
.adjourned-title, .pricing-card-name, .feature-card h3,
.about-card h3, .case-card-header h3, .blog-card-body h3 {
  font-family: var(--font-serif);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

/* Eyebrow / micro labels — DM Sans 700, uppercase, wide tracking */
.section-eyebrow, .hero-eyebrow, .pricing-card-tag, .case-card-tag {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-gold);
}

/* Gold rule — the brand's section-level accent under an eyebrow label */
.section-eyebrow::after, .hero-eyebrow::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  margin-top: var(--space-3);
  background: var(--color-gold);
  border-radius: var(--radius-xs);
}

/* ── Buttons ───────────────────────────────────────────────────────────────
   Guidelines: DM Sans 600, uppercase, letter-spacing 0.10em, radius 2px,
   min height 36px. Primary = gold on navy; hover lightens to #FBDA6B + glow. */
.hero-cta-primary, .hero-cta-secondary, .pricing-cta, .adm-btn-primary,
.usr-btn-primary, .auth-submit-btn, .wizard-start-btn, .upgrade-plan-btn,
.adj-ai-btn-primary {
  font-family: var(--font-sans);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  border-radius: var(--radius-sm);
  min-height: 36px;
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition), transform var(--transition);
}

/* Primary variant — gold fill, navy label */
.hero-cta-primary, .pricing-featured .pricing-cta, .adm-btn-primary,
.usr-btn-primary, .auth-submit-btn, .wizard-start-btn, .upgrade-plan-btn,
.adj-ai-btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
  border: 1px solid transparent;
}
.hero-cta-primary:hover, .pricing-featured .pricing-cta:hover, .adm-btn-primary:hover,
.usr-btn-primary:hover, .auth-submit-btn:hover, .wizard-start-btn:hover,
.upgrade-plan-btn:hover, .adj-ai-btn-primary:hover {
  background: var(--accent-hover);          /* #FBDA6B */
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}
.pricing-featured .pricing-cta:active, .adm-btn-primary:active,
.usr-btn-primary:active, .auth-submit-btn:active {
  background: var(--accent-press);          /* #C9A020 */
  transform: translateY(0);
}

/* Ghost variant — tertiary actions on dark */
.pricing-cta:not(.pricing-featured .pricing-cta) {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.30);
}
.pricing-cta:not(.pricing-featured .pricing-cta):hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
}

/* ── Cards ─────────────────────────────────────────────────────────────────
   Guidelines: dark glass = rgba(255,255,255,0.04) + 1px rgba(248,200,48,0.18),
   radius 4px, hover translateY(-2px) with intensified shadow, 200ms ease. */
.feature-card, .pricing-card, .case-card, .blog-card, .about-card,
.meeting-type-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(248,200,48,0.18);
  border-radius: var(--radius-mc);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.feature-card:hover, .pricing-card:hover, .case-card:hover, .blog-card:hover,
.about-card:hover, .meeting-type-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-dark-lg);
  border-color: var(--border-gold);
}

/* Featured pricing tier gets the gold edge treatment */
.pricing-featured {
  border-color: var(--border-gold-solid);
  box-shadow: var(--shadow-gold-sm);
}

/* ── Light theme overrides ─────────────────────────────────────────────────
   Guidelines: light sections are off-white with charcoal text and navy accent. */
[data-theme="light"] {
  --bg:          var(--color-off-white);     /* #F8F7F2 */
  --bg2:         var(--color-gray-100);
  --surface:     rgba(255,255,255,0.92);
  --surface2:    rgba(255,255,255,0.78);
  --surface3:    var(--color-white);
  --border:      var(--border-default);
  --border2:     rgba(1,0,22,0.18);
  --text:        var(--color-charcoal);
  --text-muted:  var(--color-gray-600);
  --accent:      var(--color-gold);
  --accent-fg:   var(--color-navy);
  --accent2:     var(--color-blue);
  --accent-glow: rgba(248,200,48,0.16);
  --glass:       rgba(248,247,242,0.82);
  --glass-light: rgba(255,255,255,0.92);
  --modal-bg:    rgba(255,255,255,0.97);
  --popup-bg:    rgba(255,255,255,0.98);
  --glow-accent: rgba(248,200,48,0.20);
  --shadow:      var(--shadow-lg);
  --shadow-sm:   var(--shadow-mc-sm);
}
[data-theme="light"] .feature-card, [data-theme="light"] .pricing-card,
[data-theme="light"] .case-card, [data-theme="light"] .blog-card,
[data-theme="light"] .about-card, [data-theme="light"] .meeting-type-card {
  background: var(--color-white);
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}
[data-theme="light"] .section-eyebrow, [data-theme="light"] .hero-eyebrow {
  color: var(--color-blue);
}
[data-theme="light"] .section-eyebrow::after,
[data-theme="light"] .hero-eyebrow::after { background: var(--color-gold); }

/* Secondary/ghost hero CTA — transparent with a white hairline, per the
   guidelines' Ghost variant for tertiary actions on dark surfaces. */
.hero-cta-secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.30);
}
.hero-cta-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
}

/* Ghost pricing CTA needs a dark label once the surface goes off-white. */
[data-theme="light"] .pricing-cta:not(.pricing-featured .pricing-cta) {
  color: var(--color-navy);
  border-color: rgba(1,0,22,0.25);
}
[data-theme="light"] .pricing-cta:not(.pricing-featured .pricing-cta):hover {
  background: rgba(1,0,22,0.05);
  border-color: rgba(1,0,22,0.40);
}

/* ── Voice input mic buttons on freeform text fields ── */
.voice-field-wrap { position: relative; width: 100%; }
.voice-field-wrap textarea,
.voice-field-wrap input { padding-right: 40px; }
.voice-mic-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.voice-field-wrap input ~ .voice-mic-btn { top: 50%; bottom: auto; transform: translateY(-50%); }
.voice-mic-btn:hover:not(:disabled) { border-color: var(--text-muted); color: var(--text); }
.voice-mic-btn.listening {
  background: color-mix(in srgb, #e53935 15%, var(--surface2));
  border-color: #e53935;
  color: #e53935;
  animation: mic-pulse 1.2s ease-in-out infinite;
}
.voice-mic-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.voice-mic-inline {
  position: static;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  align-self: flex-end;
}

/* ===== TWO-HUMAN COLLABORATION ===== */
.collab-presence {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 13px;
}

.invite-link-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.invite-link-input {
  flex: 1;
  min-width: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 13px;
}

/* Guest mode: participant config stays host-owned — guest can watch and speak,
   not reconfigure models/attitudes/avatars for the rest of the board. */
body.collab-guest-mode .avatar-llm-badge,
body.collab-guest-mode .avatar-attitude-badge,
body.collab-guest-mode .avatar-overlay {
  pointer-events: none;
  opacity: 0.6;
}

/* ── Dashboard overview redesign ── */
.usr-hero { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:26px 28px; margin-bottom:22px; border-radius:var(--radius-glass); border:1px solid var(--border); background:linear-gradient(135deg, color-mix(in srgb, var(--accent-text, #da7756) 18%, transparent), var(--glass-light)); backdrop-filter:var(--blur); -webkit-backdrop-filter:var(--blur); }
.usr-hero h2 { margin:0 0 4px; font-family:var(--font-serif,'Playfair Display',serif); font-size:26px; }
.usr-hero p { margin:0; color:var(--text2); font-size:14px; max-width:560px; }
.usr-hero-cta { background:var(--accent, var(--color-gold)); color:var(--accent-fg, #000); border:0; border-radius:999px; padding:12px 22px; font-weight:600; cursor:pointer; font-size:14px; }
.usr-hero-cta:hover { filter:brightness(1.1); }
.usr-meter { height:6px; border-radius:99px; background:var(--border); margin-top:10px; overflow:hidden; }
.usr-meter i { display:block; height:100%; width:0; background:var(--accent-text,#da7756); border-radius:99px; transition:width .4s; }
.usr-row-link { cursor:pointer; }
.usr-row-link:hover td { background:var(--glass-light); }
.usr-chip-row { display:flex; gap:10px; flex-wrap:wrap; }
.usr-chip { padding:7px 14px; border-radius:99px; border:1px solid var(--border); background:var(--glass-light); font-size:13px; }
.usr-news-item { display:flex; gap:10px; align-items:center; padding:9px 0; border-bottom:1px solid var(--border); color:inherit; text-decoration:none; }
.usr-news-item:last-child { border-bottom:0; }
.usr-news-item:hover b { text-decoration:underline; }
.usr-news-item img { width:52px; height:52px; object-fit:cover; border-radius:8px; flex:none; }
.usr-news-item b { display:block; font-size:13px; line-height:1.35; font-weight:600; }
.usr-news-item small { color:var(--text2); font-size:11px; }

/* ── Readability fixes ── */
/* Native dropdown lists open on the browser default (white); give options the theme's own background so the text stays readable. */
select option, select optgroup { background-color: var(--bg2, var(--bg)); color: var(--text); }
/* Links inside admin help text were the default browser blue on dark backgrounds. */
.adm-muted a, .adm-card p a { color: var(--accent-text, var(--color-gold)); text-decoration: underline; }

.trait-row { display:grid; grid-template-columns:150px 78px 1fr 78px 34px; gap:8px; align-items:center; font-size:12px; margin:4px 0; }
.trait-name { color:var(--text); font-weight:500; }
.trait-end { color:var(--text-muted); font-size:11px; }
.trait-end:nth-of-type(3) { text-align:right; }
.trait-val { color:var(--accent-text, var(--color-gold)); text-align:right; font-variant-numeric:tabular-nums; }
.trait-row input[type=range] { width:100%; accent-color:var(--accent, var(--color-gold)); }
@media (max-width:640px){ .trait-row { grid-template-columns:1fr 1fr; } .trait-row input[type=range]{ grid-column:1 / -1; } }
