  :root {
    --navy: #1B2A4A;
    --navy-light: #2C3E6B;
    --navy-dark: #111d33;
    --cream: #F5F0E8;
    --cream-dark: #EDE6D6;
    --gold: #C8963E;
    --gold-light: #E8B96A;
    --green: #2D7A4F;
    --green-light: #E8F5EE;
    --red: #C0392B;
    --red-light: #FDECEA;
    --text: #2C2C2C;
    --muted: #777;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy-dark);
    color: var(--cream);
    min-height: 100vh;
  }

  /* ── HEADER ── */
  header {
    background: var(--navy-dark);
    padding: 28px 48px 0;
    border-bottom: 1px solid rgba(200,150,62,0.2);
  }

  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
  }

  .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--cream);
  }

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

  .badge {
    background: rgba(200,150,62,0.15);
    border: 1px solid rgba(200,150,62,0.3);
    color: var(--gold-light);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  /* ── TABS ── */
  .tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .tab {
    padding: 12px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(245,240,232,0.5);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .tab:hover { color: var(--cream); }

  .tab.active {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
  }

  /* ── MAIN ── */
  main { padding: 40px 48px; max-width: 1000px; margin: 0 auto; }

  /* Brand Kit: wider column only — do NOT use full-bleed + clip (clips the iframe) */
  main:has(#branding.active) {
    max-width: 1240px;
  }

  .section { display: none; animation: fadeIn 0.35s ease; }
  .section.active { display: block; }

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

  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--cream);
    margin-bottom: 6px;
  }

  .section-sub {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 36px;
    font-weight: 300;
  }

  /* Brand kit tab — framed iframe (stays inside main; no negative margins) */
  .brand-kit-intro {
    max-width: 720px;
    margin-bottom: 28px;
  }

  #branding .section-sub {
    margin-bottom: 0;
  }

  .brand-kit-chrome {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2px;
    border-radius: 18px;
    background: linear-gradient(
      145deg,
      rgba(232, 185, 106, 0.55) 0%,
      rgba(200, 150, 62, 0.22) 28%,
      rgba(27, 42, 74, 0.5) 55%,
      rgba(200, 150, 62, 0.18) 100%
    );
    box-shadow:
      0 28px 56px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(200, 150, 62, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .brand-kit-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 188px);
    min-height: 560px;
    border: none;
    border-radius: 16px;
    background: #111d33;
  }

  /* ── CATEGORY FILTER ── */
  .filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }

  .filter-btn {
    padding: 7px 18px;
    border-radius: 100px;
    border: 1px solid rgba(245,240,232,0.15);
    background: transparent;
    color: rgba(245,240,232,0.6);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .filter-btn:hover { border-color: var(--gold); color: var(--gold-light); }
  .filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-dark);
    font-weight: 600;
  }

  /* ── FLASHCARDS ── */
  .qa-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
  }

  .progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
    transition: width 0.4s ease;
  }

  .progress-text {
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
  }

  .flashcard-wrapper {
    perspective: 1200px;
    margin-bottom: 24px;
  }

  .flashcard {
    position: relative;
    width: 100%;
    min-height: 220px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .flashcard.flipped { transform: rotateY(180deg); }

  .card-face {
    position: absolute;
    top: 0; left: 0; right: 0;
    min-height: 220px;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .card-front {
    background: var(--navy);
    border: 1px solid rgba(200,150,62,0.2);
  }

  .card-back {
    background: linear-gradient(135deg, #1a3a2a, #0f2518);
    border: 1px solid rgba(45,122,79,0.3);
    transform: rotateY(180deg);
  }

  .card-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .card-front .card-label { color: var(--gold); }
  .card-back .card-label { color: #6fcf97; }

  .card-category {
    display: inline-block;
    background: rgba(200,150,62,0.15);
    border: 1px solid rgba(200,150,62,0.25);
    color: var(--gold-light);
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
  }

  .card-back .card-category {
    background: rgba(45,122,79,0.2);
    border-color: rgba(45,122,79,0.3);
    color: #6fcf97;
  }

  .card-question {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--cream);
  }

  .card-answer {
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(245,240,232,0.9);
    font-weight: 300;
  }

  .card-hint {
    margin-top: 16px;
    font-size: 0.8rem;
    color: rgba(245,240,232,0.35);
    text-align: center;
  }

  .card-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-btn {
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid rgba(245,240,232,0.15);
    background: transparent;
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .nav-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }
  .nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

  .nav-btn.primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-dark);
    font-weight: 600;
  }

  .nav-btn.primary:hover { background: var(--gold-light); }

  .flip-hint {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
  }

  /* ── CHECKLIST ── */
  .checklist-group { margin-bottom: 36px; }

  .checklist-group-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--gold-light);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(200,150,62,0.2);
  }

  .checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
  }

  .checklist-item:hover { background: rgba(255,255,255,0.06); }

  .checklist-item.done {
    background: rgba(45,122,79,0.08);
    border-color: rgba(45,122,79,0.2);
  }

  .check-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(245,240,232,0.25);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
  }

  .checklist-item.done .check-box {
    background: var(--green);
    border-color: var(--green);
  }

  .check-mark {
    font-size: 0.75rem;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .checklist-item.done .check-mark { opacity: 1; }

  .check-content { flex: 1; }

  .check-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 3px;
    transition: all 0.2s ease;
  }

  .checklist-item.done .check-title {
    color: rgba(245,240,232,0.45);
    text-decoration: line-through;
  }

  .check-sub {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.5;
  }

  .check-tag {
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
    align-self: flex-start;
  }

  .tag-critical { background: rgba(192,57,43,0.15); color: #e07060; border: 1px solid rgba(192,57,43,0.25); }
  .tag-important { background: rgba(200,150,62,0.15); color: var(--gold-light); border: 1px solid rgba(200,150,62,0.25); }
  .tag-nice { background: rgba(45,122,79,0.15); color: #6fcf97; border: 1px solid rgba(45,122,79,0.25); }

  .checklist-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 32px;
  }

  .summary-stat { text-align: center; }
  .summary-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--gold-light); display: block; line-height: 1; }
  .summary-label { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.5px; }
  .summary-div { width: 1px; height: 36px; background: rgba(255,255,255,0.1); }

  .reset-btn {
    margin-left: auto;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .reset-btn:hover { border-color: rgba(255,255,255,0.3); color: var(--cream); }

  /* ── SCRIPTS ── */
  .script-card {
    background: var(--navy);
    border: 1px solid rgba(245,240,232,0.08);
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
  }

  .script-header {
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .script-header:hover { background: rgba(255,255,255,0.03); }

  .script-header-left { display: flex; align-items: center; gap: 14px; }

  .script-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(200,150,62,0.12);
    border: 1px solid rgba(200,150,62,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .script-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--cream);
    margin-bottom: 2px;
  }

  .script-desc { font-size: 0.8rem; color: var(--muted); }

  .script-chevron {
    font-size: 0.8rem;
    color: var(--muted);
    transition: transform 0.3s ease;
  }

  .script-card.open .script-chevron { transform: rotate(180deg); }

  .script-body {
    display: none;
    padding: 0 28px 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .script-card.open .script-body { display: block; }

  .script-step {
    margin-top: 20px;
  }

  .step-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .step-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(200,150,62,0.2);
  }

  .script-text {
    background: rgba(255,255,255,0.04);
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(245,240,232,0.88);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 10px;
  }

  .script-note {
    font-size: 0.78rem;
    color: var(--muted);
    background: rgba(255,255,255,0.03);
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 8px;
  }

  .script-note strong { color: var(--gold-light); font-weight: 600; }

  .objection-tag {
    display: inline-block;
    background: rgba(192,57,43,0.15);
    border: 1px solid rgba(192,57,43,0.25);
    color: #e07060;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 12px;
  }

  /* ── AI PITCH COACH ── */
  .coach-config {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }
  .coach-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
  }
  .coach-field select, .coach-field input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(245,240,232,0.15);
    border-radius: 10px;
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s;
  }
  .coach-field select:focus, .coach-field input:focus { border-color: var(--gold); }
  .coach-field select option { background: #1B2A4A; color: var(--cream); }
  .coach-field.full { grid-column: 1 / -1; }

  .coach-chat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(245,240,232,0.08);
    border-radius: 20px;
    min-height: 340px;
    max-height: 420px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
    scroll-behavior: smooth;
  }
  .coach-msg { display: flex; flex-direction: column; gap: 4px; max-width: 85%; }
  .coach-msg.user { align-self: flex-end; align-items: flex-end; }
  .coach-msg.ai { align-self: flex-start; align-items: flex-start; }
  .coach-msg.system { align-self: center; align-items: center; max-width: 100%; }
  .coach-msg-label { font-size: 0.7rem; color: var(--muted); font-weight: 500; letter-spacing: 0.5px; }
  .coach-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.65;
  }
  .coach-msg.user .coach-bubble {
    background: var(--navy-light);
    color: var(--cream);
    border-radius: 16px 16px 4px 16px;
    border: 1px solid rgba(200,150,62,0.2);
  }
  .coach-msg.ai .coach-bubble {
    background: var(--navy);
    color: var(--cream);
    border-radius: 16px 16px 16px 4px;
    border: 1px solid rgba(245,240,232,0.08);
  }
  .coach-msg.system .coach-bubble {
    background: rgba(200,150,62,0.08);
    color: var(--gold-light);
    border: 1px solid rgba(200,150,62,0.15);
    font-size: 0.82rem;
    font-style: italic;
    border-radius: 10px;
    text-align: center;
  }
  .speaking-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .speaking-indicator span {
    width: 5px; height: 5px;
    background: var(--gold);
    border-radius: 50%;
    animation: speakPulse 1s infinite;
  }
  .speaking-indicator span:nth-child(2) { animation-delay: 0.2s; }
  .speaking-indicator span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes speakPulse {
    0%,100% { transform: scaleY(1); opacity:0.4; }
    50% { transform: scaleY(2); opacity:1; }
  }

  .coach-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
  }
  .coach-mic-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(200,150,62,0.4);
    background: rgba(200,150,62,0.08);
    color: var(--gold);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .coach-mic-btn:hover { background: rgba(200,150,62,0.18); transform: scale(1.05); }
  .coach-mic-btn.recording {
    background: rgba(192,57,43,0.2);
    border-color: #e07060;
    color: #e07060;
    animation: micPulse 1.5s infinite;
  }
  @keyframes micPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(192,57,43,0); }
  }
  .coach-mic-btn.disabled { opacity: 0.3; cursor: not-allowed; }
  .coach-status {
    flex: 1;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
  }
  .coach-status strong { color: var(--cream); font-weight: 500; }
  .coach-status.listening { color: #e07060; }
  .coach-status.speaking { color: var(--gold-light); }

  .coach-action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }
  .coach-btn {
    padding: 10px 22px;
    border-radius: 100px;
    border: 1px solid rgba(245,240,232,0.15);
    background: transparent;
    color: rgba(245,240,232,0.7);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .coach-btn:hover { border-color: var(--gold); color: var(--gold-light); }
  .coach-btn.primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-dark);
    font-weight: 600;
  }
  .coach-btn.primary:hover { background: var(--gold-light); }
  .coach-btn.danger { border-color: rgba(192,57,43,0.4); color: #e07060; }
  .coach-btn.danger:hover { background: rgba(192,57,43,0.1); }

  .coach-scorecard {
    background: var(--navy);
    border: 1px solid rgba(200,150,62,0.2);
    border-radius: 20px;
    padding: 28px;
    margin-top: 28px;
    display: none;
  }
  .coach-scorecard.visible { display: block; animation: fadeIn 0.4s ease; }
  .coach-scorecard-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .score-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }
  .score-pill {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(245,240,232,0.1);
    border-radius: 100px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
  }
  .score-pill-label { color: var(--muted); }
  .score-pill-val { font-weight: 600; font-size: 0.95rem; }
  .score-pill-val.good { color: #6fcf97; }
  .score-pill-val.mid { color: var(--gold-light); }
  .score-pill-val.low { color: #e07060; }
  .coach-feedback-block { margin-bottom: 16px; }
  .coach-feedback-block h4 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
  }
  .coach-feedback-block ul {
    list-style: none;
    padding: 0;
  }
  .coach-feedback-block ul li {
    font-size: 0.88rem;
    color: rgba(245,240,232,0.8);
    padding: 5px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
  }
  .coach-feedback-block ul li::before { content: '→'; position: absolute; left: 0; color: var(--gold); }
  .coach-rewrite {
    background: rgba(200,150,62,0.08);
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    font-size: 0.88rem;
    font-style: italic;
    color: rgba(245,240,232,0.9);
    line-height: 1.7;
    margin-top: 8px;
  }
  .webhook-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 100px;
  }
  .webhook-status.sent { background: rgba(45,122,79,0.15); color: #6fcf97; border: 1px solid rgba(45,122,79,0.3); }
  .webhook-status.failed { background: rgba(192,57,43,0.15); color: #e07060; border: 1px solid rgba(192,57,43,0.3); }
  .webhook-status.sending { background: rgba(200,150,62,0.1); color: var(--gold-light); border: 1px solid rgba(200,150,62,0.2); }

  /* ── REAL PERSONA CARDS ── */
  .persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
  }
  .persona-card {
    background: var(--navy);
    border: 1px solid rgba(245,240,232,0.08);
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }
  .persona-card:hover {
    border-color: rgba(200,150,62,0.4);
    transform: translateY(-3px);
    background: var(--navy-light);
  }
  .persona-card.selected {
    border-color: var(--gold);
    border-width: 2px;
  }
  .persona-difficulty {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 16px;
  }
  .persona-difficulty.hard { background: rgba(192,57,43,0.2); color: #e07060; border: 1px solid rgba(192,57,43,0.3); }
  .persona-difficulty.medium { background: rgba(200,150,62,0.15); color: var(--gold-light); border: 1px solid rgba(200,150,62,0.25); }
  .persona-difficulty.easy { background: rgba(45,122,79,0.15); color: #6fcf97; border: 1px solid rgba(45,122,79,0.25); }
  .persona-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(200,150,62,0.15);
    border: 2px solid rgba(200,150,62,0.3);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 14px;
  }
  .persona-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 2px;
  }
  .persona-clinic {
    font-size: 0.82rem;
    color: var(--gold-light);
    font-weight: 500;
    margin-bottom: 4px;
  }
  .persona-meta {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 14px;
  }
  .persona-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
  .ptag {
    font-size: 0.68rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(245,240,232,0.6);
    padding: 3px 8px;
    border-radius: 100px;
  }
  .persona-hint {
    font-size: 0.78rem;
    color: var(--muted);
    font-style: italic;
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
    margin-top: 4px;
  }

  /* ── ACTIVE PERSONA BAR ── */
  .active-persona-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy);
    border: 1px solid rgba(200,150,62,0.25);
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .apb-left { display: flex; align-items: center; gap: 14px; }
  .apb-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(200,150,62,0.15);
    border: 1px solid rgba(200,150,62,0.3);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--gold-light);
    flex-shrink: 0;
  }
  .apb-name { font-weight: 600; font-size: 0.95rem; color: var(--cream); }
  .apb-clinic { font-size: 0.78rem; color: var(--gold-light); }
  .apb-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .pass-indicator {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; color: var(--muted);
  }
  .pass-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--muted);
    flex-shrink: 0;
  }
  .pass-indicator.live .pass-dot {
    background: #e07060;
    animation: micPulse 1.5s infinite;
  }
  .pass-indicator.passed .pass-dot { background: #6fcf97; }
  .pass-indicator.failed .pass-dot { background: #e07060; animation: none; }

  /* ── OBJECTION TRACKER ── */
  .objection-tracker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
  }
  .ot-label { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
  .ot-pills { display: flex; flex-wrap: wrap; gap: 6px; }
  .ot-pill {
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(245,240,232,0.4);
    background: transparent;
    transition: all 0.3s ease;
  }
  .ot-pill.thrown {
    background: rgba(192,57,43,0.15);
    border-color: rgba(192,57,43,0.35);
    color: #e07060;
  }
  .ot-pill.handled {
    background: rgba(45,122,79,0.15);
    border-color: rgba(45,122,79,0.35);
    color: #6fcf97;
  }

  /* ── VERDICT BANNER ── */
  .verdict-banner {
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    text-align: center;
    animation: fadeIn 0.5s ease;
  }
  .verdict-banner.pass {
    background: rgba(45,122,79,0.15);
    border: 1px solid rgba(45,122,79,0.35);
  }
  .verdict-banner.fail {
    background: rgba(192,57,43,0.12);
    border: 1px solid rgba(192,57,43,0.3);
  }
  .verdict-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .verdict-banner.pass .verdict-title { color: #6fcf97; }
  .verdict-banner.fail .verdict-title { color: #e07060; }
  .verdict-sub { font-size: 0.88rem; color: rgba(245,240,232,0.7); line-height: 1.6; }


  /* ── PERSONA AI COACH ── */
  .persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 32px; }
  .persona-card { background: var(--navy); border: 1px solid rgba(245,240,232,0.08); border-radius: 20px; padding: 24px; cursor: pointer; transition: all 0.25s ease; position: relative; }
  .persona-card:hover { border-color: rgba(200,150,62,0.4); transform: translateY(-3px); background: var(--navy-light); }
  .persona-card.selected { border-color: var(--gold); border-width: 2px; }
  .persona-difficulty { display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: 2px; padding: 3px 10px; border-radius: 100px; margin-bottom: 16px; }
  .persona-difficulty.hard { background: rgba(192,57,43,0.2); color: #e07060; border: 1px solid rgba(192,57,43,0.3); }
  .persona-difficulty.medium { background: rgba(200,150,62,0.15); color: var(--gold-light); border: 1px solid rgba(200,150,62,0.25); }
  .persona-difficulty.easy { background: rgba(45,122,79,0.15); color: #6fcf97; border: 1px solid rgba(45,122,79,0.25); }
  .persona-avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(200,150,62,0.15); border: 2px solid rgba(200,150,62,0.3); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--gold-light); margin-bottom: 14px; }
  .persona-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--cream); margin-bottom: 2px; }
  .persona-clinic { font-size: 0.82rem; color: var(--gold-light); font-weight: 500; margin-bottom: 4px; }
  .persona-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 14px; }
  .persona-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
  .ptag { font-size: 0.68rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(245,240,232,0.6); padding: 3px 8px; border-radius: 100px; }
  .persona-hint { font-size: 0.78rem; color: var(--muted); font-style: italic; line-height: 1.5; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 12px; margin-top: 4px; }
  .active-persona-bar { display: flex; align-items: center; justify-content: space-between; background: var(--navy); border: 1px solid rgba(200,150,62,0.25); border-radius: 14px; padding: 14px 20px; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
  .apb-left { display: flex; align-items: center; gap: 14px; }
  .apb-avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(200,150,62,0.15); border: 1px solid rgba(200,150,62,0.3); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--gold-light); flex-shrink: 0; }
  .apb-name { font-weight: 600; font-size: 0.95rem; color: var(--cream); }
  .apb-clinic { font-size: 0.78rem; color: var(--gold-light); }
  .apb-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .pass-indicator { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); }
  .pass-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
  .pass-indicator.live .pass-dot { background: #e07060; animation: micPulse 1.5s infinite; }
  .pass-indicator.passed .pass-dot { background: #6fcf97; }
  .pass-indicator.failed .pass-dot { background: #e07060; animation: none; }
  .objection-tracker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 14px; background: rgba(255,255,255,0.02); border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); }
  .ot-label { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
  .ot-pills { display: flex; flex-wrap: wrap; gap: 6px; }
  .ot-pill { font-size: 0.68rem; padding: 3px 10px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.1); color: rgba(245,240,232,0.4); background: transparent; transition: all 0.3s ease; }
  .ot-pill.thrown { background: rgba(192,57,43,0.15); border-color: rgba(192,57,43,0.35); color: #e07060; }
  .ot-pill.handled { background: rgba(45,122,79,0.15); border-color: rgba(45,122,79,0.35); color: #6fcf97; }
  .verdict-banner { border-radius: 16px; padding: 24px 28px; margin-bottom: 24px; text-align: center; animation: fadeIn 0.5s ease; }
  .verdict-banner.pass { background: rgba(45,122,79,0.15); border: 1px solid rgba(45,122,79,0.35); }
  .verdict-banner.fail { background: rgba(192,57,43,0.12); border: 1px solid rgba(192,57,43,0.3); }
  .verdict-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 8px; }
  .verdict-banner.pass .verdict-title { color: #6fcf97; }
  .verdict-banner.fail .verdict-title { color: #e07060; }
  .verdict-sub { font-size: 0.88rem; color: rgba(245,240,232,0.7); line-height: 1.6; }

  /* ── RESPONSIVE ── */

  /* Tablet (≤768px) */
  @media (max-width: 768px) {
    header { padding: 18px 20px 0; }
    main { padding: 28px 20px; }
    .coach-config { grid-template-columns: 1fr; }
    .coach-action-row { flex-wrap: wrap; }
    .coach-btn { flex: 1; min-width: 130px; }
  }

  /* Mobile (≤640px) */
  @media (max-width: 640px) {
    .tab { padding: 13px 16px; font-size: 0.82rem; min-height: 44px; }
    .card-face { padding: 28px 24px; }
    .brand-kit-frame {
      height: calc(100vh - 220px);
      min-height: 420px;
      border-radius: 14px;
    }
    .brand-kit-chrome { border-radius: 15px; }
  }

  /* ── AUTH GATE ── */
  #authGate {
    position: fixed;
    inset: 0;
    background: var(--navy-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .auth-box {
    background: var(--navy);
    border: 1px solid rgba(200,150,62,0.2);
    border-radius: 24px;
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: fadeIn 0.4s ease;
  }

  .auth-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--cream);
    margin-bottom: 6px;
  }

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

  .auth-sub {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 36px;
    letter-spacing: 0.3px;
  }

  .auth-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    text-align: left;
    margin-bottom: 8px;
  }

  .auth-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(245,240,232,0.15);
    border-radius: 12px;
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    outline: none;
    transition: border-color 0.2s ease;
    margin-bottom: 16px;
    text-align: center;
  }

  .auth-input:focus { border-color: var(--gold); }
  .auth-input::placeholder { letter-spacing: 1px; color: rgba(245,240,232,0.2); font-size: 0.85rem; }

  .auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    border: none;
    border-radius: 12px;
    color: var(--navy-dark);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
  }

  .auth-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

  .auth-error {
    font-size: 0.8rem;
    color: #e07060;
    min-height: 20px;
    margin-top: 4px;
    display: none;
  }

  .auth-error.show { display: block; }

  .auth-footer {
    margin-top: 28px;
    font-size: 0.72rem;
    color: rgba(245,240,232,0.2);
    letter-spacing: 0.3px;
  }

  #appContent { display: none; }

@keyframes fadeOut { from{opacity:1} to{opacity:0;pointer-events:none} }

/* ── COMPANY BIBLE ── */
.bible-phase-banner {
  background: rgba(200,150,62,0.08);
  border: 1px solid rgba(200,150,62,0.25);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 32px;
}
.bible-phase-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.bible-phase-body {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.5);
  line-height: 1.65;
}

.bible-block-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 20px;
}

.bible-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.bible-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,240,232,0.08);
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.2s ease;
}
.bible-card:hover { border-color: rgba(200,150,62,0.3); }
.bible-card.hidden { display: none; }

.bible-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.bible-card-icon {
  background: rgba(200,150,62,0.12);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.bible-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.2;
}
.bible-card-cat {
  font-size: 0.67rem;
  color: var(--gold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 2px;
}

.bible-field {
  margin-bottom: 10px;
}
.bible-field-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245,240,232,0.3);
  margin-bottom: 4px;
}
.bible-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bible-field-value {
  font-size: 0.84rem;
  color: rgba(245,240,232,0.75);
  font-family: 'DM Sans', sans-serif;
  word-break: break-all;
  flex: 1;
}
.bible-field-value a {
  color: var(--gold-light);
  text-decoration: none;
}
.bible-field-value a:hover { text-decoration: underline; }
.bible-pw-value {
  filter: blur(5px);
  transition: filter 0.2s;
  user-select: none;
}
.bible-pw-value.revealed {
  filter: none;
  user-select: text;
}
.bible-copy-btn {
  background: none;
  border: none;
  color: rgba(245,240,232,0.25);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}
.bible-copy-btn:hover { color: var(--gold-light); }
.bible-reveal-btn {
  font-size: 0.72rem;
  color: rgba(245,240,232,0.3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.15s;
  flex-shrink: 0;
}
.bible-reveal-btn:hover { color: var(--gold-light); }
.bible-notes {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.35);
  font-style: italic;
  margin-top: 10px;
  line-height: 1.5;
}

.bible-table-wrap {
  border: 1px solid rgba(245,240,232,0.08);
  border-radius: 14px;
  overflow-x: auto;
}
.bible-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.bible-table th {
  background: rgba(255,255,255,0.04);
  color: rgba(245,240,232,0.4);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
.bible-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(245,240,232,0.05);
  color: rgba(245,240,232,0.7);
  white-space: nowrap;
}
.bible-table tr:last-child td { border-bottom: none; }
.bible-table td:first-child { color: var(--cream); font-weight: 500; }
.access-admin { color: var(--gold); font-weight: 600; }
.access-yes { color: #4CAF50; font-weight: 600; }
.access-no { color: rgba(245,240,232,0.2); }

.bible-rules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.bible-rule-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(245,240,232,0.07);
  border-radius: 14px;
  padding: 16px 18px;
}
.bible-rule-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 6px;
}
.bible-rule-body {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.45);
  line-height: 1.55;
}
