/* ============================================
   BABA AURA V2.0 — BASE STYLES
   Luxury Private Members Club Aesthetic
   ============================================ */

:root {
    --black: #080808;
    --black-soft: #111111;
    --black-card: #141414;
    --gold: #C9A84C;
    --gold-light: #E2C37A;
    --gold-glow: rgba(201, 168, 76, 0.25);
    --white: #F5F5F0;
    --white-muted: #A0A09A;
    --red: #C0392B;
    --border: rgba(201, 168, 76, 0.2);
    --border-hover: rgba(201, 168, 76, 0.6);
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition: all 0.25s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    color: var(--white);
    font-family: var(--font-main);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--white);
    line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p {
    color: var(--white-muted);
    font-size: 0.95rem;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

button, .btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.65rem 1.8rem;
    font-size: 0.9rem;
    font-family: var(--font-main);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

button:hover, .btn:hover {
    background: var(--gold-glow);
    box-shadow: 0 0 16px var(--gold-glow);
    color: var(--gold-light);
}

button.primary, .btn-primary {
    background: var(--gold);
    color: var(--black);
    font-weight: 700;
}

button.primary:hover, .btn-primary:hover {
    background: var(--gold-light);
    box-shadow: 0 0 20px var(--gold-glow);
}

input, textarea, select {
    background: var(--black-soft) !important;
    border: 1px solid var(--border);
    color: var(--white) !important;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-main);
    border-radius: 2px;
    width: 100%;
    transition: var(--transition);
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

input::placeholder, textarea::placeholder {
    color: var(--white-muted);
    opacity: 0.6;
}

.card {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 20px var(--gold-glow);
}

.pin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 2rem;
    padding: 2rem;
}

.pin-container h1 {
    font-size: 1.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.pin-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
}

.pin-container input {
    text-align: center;
    letter-spacing: 0.3em;
    font-size: 1.2rem;
}

.error {
    color: var(--red);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 1rem;
}

.home-container h1 {
    color: var(--gold);
    letter-spacing: 0.1em;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

@media (max-width: 768px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    button, .btn { width: 100%; padding: 0.75rem 1rem; }
    .pin-container { padding: 1.5rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.2rem; }
    .pin-container form { max-width: 100%; }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #111111 inset !important;
    -webkit-text-fill-color: #F5F5F0 !important;
    border-color: var(--gold) !important;
    caret-color: #F5F5F0;
}

/* ============================================
   PHASE 2 — GIRL MANAGEMENT & PROFILE SYSTEM
   ============================================ */

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

/* --- SIDEBAR --- */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--black-soft);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.sidebar-title {
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    font-weight: 700;
}

.sidebar-version {
    font-size: 0.7rem;
    color: var(--white-muted);
    letter-spacing: 0.1em;
}

.sidebar-girls {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-section-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--white-muted);
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-girl-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border-left: 2px solid transparent;
    font-size: 0.9rem;
}

.sidebar-girl-item:hover {
    background: var(--gold-glow);
    border-left-color: var(--gold);
    color: var(--white);
}

.sidebar-girl-item.active {
    background: var(--gold-glow);
    border-left-color: var(--gold);
    color: var(--gold);
}

.sidebar-empty {
    padding: 0 1.5rem;
    font-size: 0.8rem;
    color: var(--white-muted);
}

.sidebar-actions {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-add-btn {
    text-align: center;
    width: 100%;
}

.sidebar-logout-btn {
    text-align: center;
    width: 100%;
    opacity: 0.6;
    font-size: 0.8rem;
}

/* --- MAIN CONTENT --- */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 2rem;
    max-width: 900px;
}

/* --- PAGE HEADER --- */
.page-header {
    margin-bottom: 2rem;
}

.page-header h2 {
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

/* --- HOME WELCOME --- */
.home-welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh;
    gap: 0.5rem;
}

.home-welcome h2 {
    color: var(--gold);
    letter-spacing: 0.1em;
}

/* --- PROFILE HEADER --- */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.profile-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-header-left h2 {
    color: var(--gold);
    letter-spacing: 0.08em;
}

/* --- STATUS BADGES --- */
.girl-status {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.status-active { background: rgba(201, 168, 76, 0.15); color: var(--gold); border: 1px solid var(--gold); }
.status-cooling { background: rgba(100, 149, 237, 0.15); color: #6495ED; border: 1px solid #6495ED; }
.status-archived { background: rgba(160, 160, 154, 0.15); color: var(--white-muted); border: 1px solid var(--white-muted); }
.status-closed { background: rgba(192, 57, 43, 0.15); color: var(--red); border: 1px solid var(--red); }

.active-mode-badge {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(201, 168, 76, 0.08);
    color: var(--white-muted);
    border: 1px solid var(--border);
}

/* --- SECTION CARDS --- */
.section-card {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* --- FORMS --- */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
}

.form-section-title {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.form-grid.full-width {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--white-muted);
    text-transform: uppercase;
}

.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 0.5rem;
}

/* --- INLINE FORM --- */
.inline-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form select {
    width: auto;
}

/* --- PROFILE GRID --- */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.profile-field.full-width {
    grid-column: 1 / -1;
}

.field-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--white-muted);
    text-transform: uppercase;
}

.field-value {
    font-size: 0.95rem;
    color: var(--white);
}

/* --- SIGNALS --- */
.signals-current {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.signals-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- NOTES --- */
.notes-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notes-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- EMPTY STATE --- */
.empty-state {
    color: var(--white-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal {
    max-width: 400px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal h3 {
    color: var(--gold);
}

.modal p {
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    padding-top: 0.5rem;
}

/* --- DANGER BUTTON --- */
.btn.danger {
    border-color: var(--red);
    color: var(--red);
}

.btn.danger:hover {
    background: rgba(192, 57, 43, 0.15);
    box-shadow: 0 0 16px rgba(192, 57, 43, 0.2);
}

/* --- MOBILE PHASE 2 --- */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .app-layout {
        flex-direction: column;
    }

    .profile-header {
        flex-direction: column;
        gap: 1rem;
    }

    .inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-form select {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* ============================================
   PHASE 3 — CONVERSATION LOG
   ============================================ */

/* --- PAGE HEADER NAV --- */
.page-header-nav {
    margin-bottom: 0.5rem;
}

.back-link {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--white-muted);
    text-decoration: none;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--gold);
}

/* --- CHAT THREAD --- */
.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    min-height: 200px;
    max-height: 520px;
    overflow-y: auto;
}

.chat-bubble-wrap {
    display: flex;
    width: 100%;
}

.her-side {
    justify-content: flex-start;
}

.baba-side {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 65%;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bubble-her {
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-bottom-left-radius: 0;
}

.bubble-baba {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--gold);
    border-bottom-right-radius: 0;
}

.bubble-text {
    font-size: 0.9rem;
    color: var(--white);
    line-height: 1.5;
}

.bubble-screenshot {
    max-width: 100%;
    border-radius: 2px;
    border: 1px solid var(--border);
}

.bubble-time {
    font-size: 0.65rem;
    color: var(--white-muted);
    letter-spacing: 0.05em;
    align-self: flex-end;
}

/* --- MESSAGE FORM --- */
.message-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- MOBILE PHASE 3 --- */
@media (max-width: 768px) {
    .chat-bubble {
        max-width: 85%;
    }

    .chat-thread {
        max-height: 400px;
    }
}

/* ============================================
   PHASE 3 — AI FEATURES
   ============================================ */

/* --- MODE TOGGLE --- */
.mode-toggle {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.mode-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.mode-label {
    font-size: 0.85rem;
    color: var(--white);
    letter-spacing: 0.05em;
}

.mode-option input[type="radio"] {
    accent-color: var(--gold);
    width: auto;
}

/* --- GENERATE FORM --- */
.generate-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* --- RESPONSE OPTIONS --- */
.response-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.response-option {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: var(--transition);
}

.response-option:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 16px var(--gold-glow);
}

.option-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 24px;
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-text {
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1.5;
}

.option-reasoning {
    font-size: 0.8rem;
    color: var(--white-muted);
    font-style: italic;
}

.copy-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* --- ERROR CARD --- */
.error-card {
    border-color: var(--red);
}

/* --- VERDICT PANEL --- */
.verdict-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.verdict-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    width: fit-content;
}

.verdict-send-it {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.verdict-do-not-send {
    background: rgba(192, 57, 43, 0.15);
    color: var(--red);
    border: 1px solid var(--red);
}

.verdict-send-with-changes {
    background: rgba(100, 149, 237, 0.15);
    color: #6495ED;
    border: 1px solid #6495ED;
}

/* --- MOBILE PHASE 3 --- */
@media (max-width: 768px) {
    .mode-toggle {
        flex-direction: column;
        gap: 0.75rem;
    }

    .response-option {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }
}

/* ============================================
   PHASE 3 — COMMAND CENTER
   ============================================ */

/* --- COMMAND CENTER LAYOUT --- */
.command-center {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* --- TOP NAV --- */
.cc-topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--black-soft);
    flex-shrink: 0;
}

.cc-topnav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cc-girl-name {
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}

.cc-topnav-right {
    display: flex;
    gap: 0.5rem;
}

.cc-nav-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
    letter-spacing: 0.06em;
}

/* --- SPLIT SCREEN --- */
.cc-split {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* --- LEFT PANEL --- */
.cc-left {
    width: 45%;
    min-width: 300px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- RIGHT PANEL --- */
.cc-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- PANEL TITLE --- */
.cc-panel-title {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--black-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

/* --- CHAT THREAD --- */
.cc-chat-thread {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* --- INPUT AREA --- */
.cc-input-area {
    border-top: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    background: var(--black-soft);
    flex-shrink: 0;
}

.cc-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.cc-sender-select {
    width: auto;
    min-width: 70px;
    padding: 0.5rem 0.5rem;
    font-size: 0.8rem;
}

.cc-textarea {
    flex: 1;
    resize: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    min-height: 40px;
}

.cc-upload-btn {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-send-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* --- MODE TABS --- */
.cc-mode-tabs {
    display: flex;
    gap: 0.5rem;
}

.cc-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white-muted);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.cc-tab.active {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-glow);
}

/* --- AI PANEL --- */
.cc-panel {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- GENERATE FORM --- */
.cc-generate-form {
    flex-shrink: 0;
}

.cc-controls-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.cc-controls-row select {
    width: auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.cc-mode-toggle {
    display: flex;
    gap: 1rem;
}

/* --- CLASSIFICATION STRIP --- */
.cc-classification-strip {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.cc-class-item {
    font-size: 0.8rem;
    color: var(--white);
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.cc-class-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-transform: uppercase;
}

/* --- CC OPTIONS --- */
.cc-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cc-option {
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.cc-option:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 12px var(--gold-glow);
}

.cc-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cc-option-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.cc-option-text {
    font-size: 0.9rem;
    color: var(--white);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

/* --- EXPLANATION --- */
.cc-explanation {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.cc-exp-title {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.cc-exp-item {
    font-size: 0.8rem;
    color: var(--white-muted);
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

/* --- DISCUSS THREAD --- */
.cc-discuss-thread {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
    max-height: 350px;
    margin-bottom: 0.75rem;
}

.cc-discuss-form {
    flex-shrink: 0;
}

/* --- MOBILE COMMAND CENTER --- */
@media (max-width: 768px) {
    .command-center {
        margin-left: 0;
        height: auto;
    }

    .cc-split {
        flex-direction: column;
        overflow: visible;
    }

    .cc-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        min-height: 400px;
    }

    .cc-topnav {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .cc-topnav-right {
        flex-wrap: wrap;
    }

    .cc-controls-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-controls-row select {
        width: 100%;
    }
}

/* --- REFINE --- */
.cc-refine {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.cc-refine-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* --- SITUATION READ --- */
.cc-situation-read {
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cc-situation-read p {
    font-size: 0.85rem;
    color: var(--white);
    line-height: 1.5;
}

/* --- WAIT TIME --- */
.cc-wait-time {
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cc-wait-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.cc-wait-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cc-wait-item.full-width {
    grid-column: 1 / -1;
}

.cc-wait-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-transform: uppercase;
}

.cc-wait-value {
    font-size: 0.85rem;
    color: var(--white);
    line-height: 1.5;
}

/* --- QUICK SITUATION CHAT --- */
.cc-quick-chat {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cc-quick-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.cc-quick-msg {
    font-size: 0.82rem;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
}

.cc-quick-msg.user {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--gold);
    color: var(--white);
    align-self: flex-end;
    max-width: 85%;
}

.cc-quick-msg.ai {
    background: var(--black-soft);
    border: 1px solid var(--border);
    color: var(--white-muted);
    align-self: flex-start;
    max-width: 85%;
}

/* --- CONQUEST BUTTON --- */
.conquest-btn {
    display: inline-block;
    padding: 0.35rem 1rem;
    border: 1px solid #8B0000;
    color: #8B0000;
    font-size: 0.7rem;
    font-family: var(--font-main);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    border-radius: 2px;
    transition: var(--transition);
    margin-left: 1rem;
}

.conquest-btn:hover {
    background: rgba(139, 0, 0, 0.15);
    box-shadow: 0 0 16px rgba(139, 0, 0, 0.3);
    color: #B22222;
}

/* ============================================
   PHASE 3 — SIDEBAR TILES & MODAL
   ============================================ */

/* --- SIDEBAR TILES --- */
.sidebar-tiles {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.sidebar-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
}

.sidebar-tile:hover {
    border-color: var(--gold);
    background: var(--gold-glow);
    box-shadow: 0 0 12px var(--gold-glow);
}

.tile-icon {
    font-size: 1rem;
    min-width: 20px;
}

.tile-label {
    flex: 1;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--white);
    font-weight: 600;
}

.tile-count {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 700;
}

/* --- ACTIVE GIRL INDICATOR --- */
.sidebar-active-girl {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar-active-name {
    font-size: 1rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* --- SIDEBAR MODAL --- */
.sidebar-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: block;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.sidebar-modal-overlay.open {
    display: flex;
}

.sidebar-modal-box {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-modal-title {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
}

.sidebar-modal-close {
    background: transparent;
    border: none;
    color: var(--white-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
    letter-spacing: 0;
    text-transform: none;
}

.sidebar-modal-close:hover {
    color: var(--white);
    box-shadow: none;
    background: transparent;
}

.sidebar-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- MODAL GIRL ROW --- */
.modal-girl-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.modal-girl-row:hover {
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

.modal-girl-name {
    flex: 1;
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 500;
}

.modal-girl-meta {
    font-size: 0.75rem;
    color: var(--white-muted);
}

.priority-star {
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    border: none;
    padding: 0.25rem;
}

.priority-star.active {
    color: var(--gold);
}

.priority-star.inactive {
    color: var(--white-muted);
    opacity: 0.4;
}

/* --- MODAL SECTIONS --- */
.modal-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-section-title {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* --- STATS GRID --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--white-muted);
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-sub {
    font-size: 0.75rem;
    color: var(--white-muted);
}

/* --- MOMENTUM DOTS --- */
.momentum-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.momentum-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.momentum-dot.hot { background: #2ECC71; }
.momentum-dot.warm { background: #F39C12; }
.momentum-dot.cold { background: #E74C3C; }

/* --- STAGE PIPELINE --- */
.stage-pipeline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stage-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.stage-name {
    flex: 1;
    font-size: 0.85rem;
    color: var(--white);
}

.stage-count {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 700;
}

/* --- PLAYBOOK MODAL --- */
.playbook-content {
    font-size: 0.82rem;
    color: var(--white-muted);
    line-height: 1.8;
    white-space: pre-wrap;
}

.playbook-content strong {
    color: var(--gold);
}

/* --- MEET TYPE GROUPS --- */
.meettype-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meettype-platform {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.meettype-platform-name {
    flex: 1;
    font-size: 0.85rem;
    color: var(--white);
}

.meettype-count {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 700;
}

/* --- MOBILE SIDEBAR TILES --- */
@media (max-width: 768px) {
    .sidebar-tiles {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    .sidebar-tile {
        flex: 1;
        min-width: 80px;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .tile-label {
        font-size: 0.6rem;
        text-align: center;
    }

    .sidebar-modal-box {
        width: 95%;
        max-height: 90vh;
    }
}

/* --- EXPLANATION FALLBACK --- */
.explanation-fallback {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

/* ============================================
   PHASE 4 — MOMENTUM TRACKER
   ============================================ */

.cc-momentum {
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cc-momentum-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--black-soft);
}

.cc-momentum-header:hover {
    background: var(--gold-glow);
}

.cc-momentum-title {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
}

.cc-momentum-arc {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.arc-building { background: rgba(46, 204, 113, 0.15); color: #2ECC71; border: 1px solid #2ECC71; }
.arc-plateauing { background: rgba(243, 156, 18, 0.15); color: #F39C12; border: 1px solid #F39C12; }
.arc-dropping { background: rgba(192, 57, 43, 0.15); color: var(--red); border: 1px solid var(--red); }

.cc-momentum-score {
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 700;
    margin-left: auto;
}

.cc-momentum-refresh {
    background: transparent;
    border: none;
    color: var(--white-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    transition: var(--transition);
    letter-spacing: 0;
    text-transform: none;
}

.cc-momentum-refresh:hover {
    color: var(--gold);
    box-shadow: none;
    background: transparent;
}

.cc-momentum-toggle {
    font-size: 0.7rem;
    color: var(--white-muted);
    transition: var(--transition);
}

.cc-momentum-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--black-card);
}

.cc-momentum-summary {
    font-size: 0.82rem;
    color: var(--white-muted);
    line-height: 1.6;
}

.cc-momentum-next {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: var(--gold-glow);
    border: 1px solid var(--border);
    border-radius: 4px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .cc-momentum-header {
        padding: 0.5rem 1rem;
    }
}

/* ============================================
   PHASE 4 — RED FLAG DETECTION
   ============================================ */

.cc-redflag {
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cc-redflag-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--black-soft);
}

.cc-redflag-header:hover {
    background: rgba(192, 57, 43, 0.08);
}

.cc-redflag-title {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
}

.cc-redflag-severity {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: auto;
}

.severity-none { background: rgba(46, 204, 113, 0.15); color: #2ECC71; border: 1px solid #2ECC71; }
.severity-low { background: rgba(243, 156, 18, 0.15); color: #F39C12; border: 1px solid #F39C12; }
.severity-medium { background: rgba(192, 57, 43, 0.15); color: var(--red); border: 1px solid var(--red); }
.severity-high { background: rgba(192, 57, 43, 0.3); color: #FF4444; border: 1px solid #FF4444; }

.cc-redflag-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--black-card);
}

.cc-redflag-item {
    padding: 0.75rem 1rem;
    background: rgba(192, 57, 43, 0.05);
    border: 1px solid rgba(192, 57, 43, 0.2);
    border-left: 3px solid var(--red);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cc-redflag-trigger {
    font-size: 0.75rem;
    color: var(--red);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.cc-redflag-signal {
    font-size: 0.82rem;
    color: var(--white);
    line-height: 1.5;
}

.cc-redflag-action {
    font-size: 0.8rem;
    color: var(--gold);
    font-style: italic;
}

.cc-redflag-assessment {
    font-size: 0.82rem;
    color: var(--white-muted);
    line-height: 1.6;
}

.cc-redflag-clear {
    font-size: 0.85rem;
    color: #2ECC71;
    padding: 0.5rem 0.75rem;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 4px;
}

/* ============================================
   PHASE 4 — WINGMAN MODE
   ============================================ */

.wingman-result {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wingman-type {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
}

.wingman-response {
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.6;
    font-weight: 500;
}

/* ============================================
   PHASE 4 — TOOLS PAGE
   ============================================ */

.tools-result {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.tools-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--white-muted);
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.tools-value {
    font-size: 0.9rem;
    color: var(--white);
    line-height: 1.6;
}

.tools-value.gold {
    color: var(--gold);
    font-weight: 600;
}

.vibe-overall {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    width: fit-content;
}

.vibe-hot { background: rgba(46, 204, 113, 0.15); color: #2ECC71; border: 1px solid #2ECC71; }
.vibe-warm { background: rgba(243, 156, 18, 0.15); color: #F39C12; border: 1px solid #F39C12; }
.vibe-neutral { background: rgba(160, 160, 154, 0.15); color: var(--white-muted); border: 1px solid var(--white-muted); }
.vibe-cool { background: rgba(100, 149, 237, 0.15); color: #6495ED; border: 1px solid #6495ED; }
.vibe-cold { background: rgba(192, 57, 43, 0.15); color: var(--red); border: 1px solid var(--red); }

/* ============================================
   PHASE 4 — RELATIONSHIP STAGE
   ============================================ */

.relationship-badge {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.rel-thinking { background: rgba(160, 160, 154, 0.15); color: var(--white-muted); border: 1px solid var(--white-muted); }
.rel-just-for-fun { background: rgba(201, 168, 76, 0.15); color: var(--gold); border: 1px solid var(--gold); }
.rel-situationship { background: rgba(100, 149, 237, 0.15); color: #6495ED; border: 1px solid #6495ED; }
.rel-friendly { background: rgba(46, 204, 113, 0.15); color: #2ECC71; border: 1px solid #2ECC71; }
.rel-gf { background: rgba(255, 105, 180, 0.15); color: #FF69B4; border: 1px solid #FF69B4; }
.rel-wifey { background: rgba(201, 168, 76, 0.3); color: var(--gold-light); border: 1px solid var(--gold-light); }

/* ============================================
   PHASE 4 — HOME SCREEN TWO DOORS
   ============================================ */

.home-body {
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

.home-settings-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--white-muted);
    transition: var(--transition);
    z-index: 100;
}

.home-settings-btn:hover {
    color: var(--gold);
}

.home-settings-panel {
    position: fixed;
    top: 3.5rem;
    right: 1.5rem;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
    min-width: 180px;
}

.home-settings-title {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
}

.home-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.home-settings-label {
    font-size: 0.85rem;
    color: var(--white);
}

.home-toggle {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
}

.toggle-on {
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
}

.toggle-off {
    background: rgba(160, 160, 154, 0.1);
    border: 1px solid var(--white-muted);
    color: var(--white-muted);
}

.home-doors {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.home-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.home-brand h1 {
    font-size: 2rem;
    letter-spacing: 0.2em;
    color: var(--gold);
}

.home-brand span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--white-muted);
}

.home-door-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.home-door {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 220px;
    height: 220px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
    background: var(--black-card);
}

.home-door:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px var(--gold-glow);
    transform: translateY(-2px);
}

.door-icon {
    font-size: 2.5rem;
}

.door-title {
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--white);
    font-weight: 700;
}

.door-sub {
    font-size: 0.75rem;
    color: var(--white-muted);
    letter-spacing: 0.05em;
}

.conquest-door:hover .door-title { color: var(--gold); }
.wingman-door:hover .door-title { color: #6495ED; }

.home-logout {
    font-size: 0.75rem;
    color: var(--white-muted);
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: var(--transition);
}

.home-logout:hover {
    color: var(--red);
}

@media (max-width: 480px) {
    .home-door {
        width: 160px;
        height: 160px;
    }

    .door-icon { font-size: 1.8rem; }
    .door-title { font-size: 0.85rem; }
}

/* ============================================
   PHASE 4 — SIDEBAR HAMBURGER
   ============================================ */

.sidebar-hamburger {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    background: var(--black-soft);
    border: 1px solid var(--border);
    color: var(--gold);
    font-size: 1.1rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border-radius: 2px;
    transition: var(--transition);
    display: none;
}

.sidebar-hamburger:hover {
    background: var(--gold-glow);
    box-shadow: 0 0 12px var(--gold-glow);
}

.sidebar.collapsed {
    transform: translateX(-100%);
    position: fixed;
}

.main-content.sidebar-collapsed {
    margin-left: 0;
}

.command-center.sidebar-collapsed {
    margin-left: 0;
}

.sidebar-hamburger {
    display: block;
}

.sidebar {
    transition: transform 0.25s ease;
}

/* ============================================
   PHASE 4 — INTEL BRIEF
   ============================================ */

.intel-brief {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intel-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.75rem 1rem;
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.intel-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--white-muted);
    text-transform: uppercase;
}

.intel-value {
    font-size: 0.88rem;
    color: var(--white);
    line-height: 1.6;
}

/* ============================================
   PHASE 5 — TOOLS PAGE SECTIONS & JOURNAL
   ============================================ */

.tools-section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.tools-section-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
}

.tools-section-sub {
    font-size: 0.75rem;
    color: var(--white-muted);
}

.reflection-header {
    margin-top: 2rem;
    border-bottom-color: rgba(160, 160, 154, 0.3);
}

.reflection-header .tools-section-label {
    color: var(--white-muted);
}

.journal-entries {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.journal-entry {
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.journal-date {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-weight: 600;
}

.journal-field {
    font-size: 0.85rem;
    color: var(--white);
    line-height: 1.5;
}

.journal-label {
    color: var(--white-muted);
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

/* --- TIMEZONE SELECT --- */
.home-timezone-select {
    width: 100%;
    background: var(--black-soft);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 0.4rem 0.5rem;
    font-size: 0.78rem;
    border-radius: 2px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.home-timezone-select:focus {
    border-color: var(--gold);
    outline: none;
}

/* --- JOURNAL AUTO & DEBATE --- */
.journal-auto-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.journal-debate-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.journal-debate-input {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
}

.journal-debate-response {
    font-size: 0.82rem;
    color: var(--gold);
    line-height: 1.6;
    min-height: 1rem;
}

/* ============================================
   PHASE 5 — PROGRESS DASHBOARD
   ============================================ */

.dash-bar-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-bar-label {
    font-size: 0.8rem;
    color: var(--white);
    min-width: 140px;
    flex-shrink: 0;
}

.dash-bar-track {
    flex: 1;
    height: 8px;
    background: var(--black-soft);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.dash-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    min-width: 4px;
}

.dash-bar-value {
    font-size: 0.8rem;
    color: var(--white-muted);
    min-width: 30px;
    text-align: right;
}

@media (max-width: 768px) {
    .dash-bar-label {
        min-width: 100px;
        font-size: 0.72rem;
    }
}

/* ============================================
   PHASE 5 — MODE SELECTOR
   ============================================ */

.mode-selector {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.mode-current {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    padding: 0.35rem 1rem;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
}

.mode-badass {
    background: rgba(192, 57, 43, 0.2);
    border: 1px solid var(--red);
    color: var(--red);
}

.mode-good-boy {
    background: rgba(245, 245, 240, 0.1);
    border: 1px solid var(--white);
    color: var(--white);
}

.mode-hybrid {
    background: rgba(100, 149, 237, 0.2);
    border: 1px solid #6495ED;
    color: #6495ED;
}

.mode-ai-suggests {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    cursor: pointer;
    text-transform: uppercase;
}

.mode-current.has-suggestion {
    animation: suggest-pulse 2s infinite;
    box-shadow: 0 0 0 2px #9B59B6;
}

@keyframes suggest-pulse {
    0% { box-shadow: 0 0 0 2px #9B59B6; }
    50% { box-shadow: 0 0 8px 2px #9B59B6; }
    100% { box-shadow: 0 0 0 2px #9B59B6; }
}

.mode-panel {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 160px;
    z-index: 200;
    margin-top: 0.5rem;
}

.mode-option {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.75rem;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-main);
    text-align: left;
    transition: var(--transition);
}

.mode-option:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mode-option.mode-badass {
    border: 1px solid var(--red);
    color: var(--red);
    background: transparent;
}

.mode-option.mode-badass:hover:not(:disabled) {
    background: rgba(192, 57, 43, 0.15);
}

.mode-option.mode-goodboy {
    border: 1px solid var(--white-muted);
    color: var(--white-muted);
    background: transparent;
}

.mode-option.mode-hybrid {
    border: 1px solid #6495ED;
    color: #6495ED;
    background: transparent;
}

.coming-soon {
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    color: var(--white-muted);
    margin-left: 0.25rem;
}

.mode-ai-btn-row {
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
}

.mode-ai-result {
    font-size: 0.78rem;
    color: var(--white-muted);
    line-height: 1.5;
    padding: 0.5rem;
    background: var(--black-soft);
    border-radius: 4px;
    border: 1px solid var(--border);
    max-height: 150px;
    overflow-y: auto;
}

.mode-debate-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
}
/* ============================================
   PHASE 5 — DAILY BRIEFING
   ============================================ */

.briefing-now-card {
    border-left: 3px solid var(--gold);
}

.briefing-now-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.briefing-now-item {
    padding: 1rem;
    background: var(--black-soft);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.briefing-now-item.urgency-high {
    border-left: 3px solid #2ECC71;
}

.briefing-now-item.urgency-medium {
    border-left: 3px solid var(--gold);
}

.briefing-now-item.urgency-low {
    border-left: 3px solid var(--white-muted);
}

.briefing-now-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.briefing-now-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

.briefing-urgency-badge {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    background: var(--black-card);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.briefing-now-reason {
    font-size: 0.85rem;
    color: var(--white-muted);
    line-height: 1.5;
}

.briefing-nobody {
    padding: 1rem;
    color: var(--white-muted);
    font-size: 0.85rem;
}

.briefing-overall {
    padding: 0.75rem 1rem;
    background: var(--black-soft);
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--white);
    line-height: 1.6;
}

.briefing-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.briefing-item {
    padding: 1rem;
    background: var(--black-soft);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.briefing-item.briefing-hot { border-left: 3px solid #2ECC71; }
.briefing-item.briefing-warm { border-left: 3px solid var(--gold); }
.briefing-item.briefing-cooling { border-left: 3px solid #E67E22; }
.briefing-item.briefing-cold { border-left: 3px solid var(--white-muted); }
.briefing-item.briefing-red-flag { border-left: 3px solid var(--red); }

.briefing-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.briefing-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
}

.briefing-status-badge {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
}

.status-badge-hot { background: rgba(46,204,113,0.15); color: #2ECC71; border: 1px solid #2ECC71; }
.status-badge-warm { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid var(--gold); }
.status-badge-cooling { background: rgba(230,126,34,0.15); color: #E67E22; border: 1px solid #E67E22; }
.status-badge-cold { background: rgba(160,160,154,0.15); color: var(--white-muted); border: 1px solid var(--border); }
.status-badge-red-flag { background: rgba(192,57,43,0.15); color: var(--red); border: 1px solid var(--red); }

.briefing-priority {
    font-size: 0.65rem;
    color: var(--white-muted);
    margin-left: auto;
}

.briefing-summary {
    font-size: 0.85rem;
    color: var(--white);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.briefing-action {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
}

/* ============================================
   PHASE 5 — DAILY BRIEFING
   ============================================ */

.briefing-now-card {
    border-left: 3px solid var(--gold);
}

.briefing-now-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.briefing-now-item {
    padding: 1rem;
    background: var(--black-soft);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.briefing-now-item.urgency-high {
    border-left: 3px solid #2ECC71;
}

.briefing-now-item.urgency-medium {
    border-left: 3px solid var(--gold);
}

.briefing-now-item.urgency-low {
    border-left: 3px solid var(--white-muted);
}

.briefing-now-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.briefing-now-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

.briefing-urgency-badge {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    background: var(--black-card);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.briefing-now-reason {
    font-size: 0.85rem;
    color: var(--white-muted);
    line-height: 1.5;
}

.briefing-nobody {
    padding: 1rem;
    color: var(--white-muted);
    font-size: 0.85rem;
}

.briefing-overall {
    padding: 0.75rem 1rem;
    background: var(--black-soft);
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--white);
    line-height: 1.6;
}

.briefing-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.briefing-item {
    padding: 1rem;
    background: var(--black-soft);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.briefing-item.briefing-hot { border-left: 3px solid #2ECC71; }
.briefing-item.briefing-warm { border-left: 3px solid var(--gold); }
.briefing-item.briefing-cooling { border-left: 3px solid #E67E22; }
.briefing-item.briefing-cold { border-left: 3px solid var(--white-muted); }
.briefing-item.briefing-red-flag { border-left: 3px solid var(--red); }

.briefing-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.briefing-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
}

.briefing-status-badge {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
}

.status-badge-hot { background: rgba(46,204,113,0.15); color: #2ECC71; border: 1px solid #2ECC71; }
.status-badge-warm { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid var(--gold); }
.status-badge-cooling { background: rgba(230,126,34,0.15); color: #E67E22; border: 1px solid #E67E22; }
.status-badge-cold { background: rgba(160,160,154,0.15); color: var(--white-muted); border: 1px solid var(--border); }
.status-badge-red-flag { background: rgba(192,57,43,0.15); color: var(--red); border: 1px solid var(--red); }

.briefing-priority {
    font-size: 0.65rem;
    color: var(--white-muted);
    margin-left: auto;
}

.briefing-summary {
    font-size: 0.85rem;
    color: var(--white);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.briefing-action {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
}

/* --- BRIEFING TILE GLOW --- */
.briefing-tile-glow {
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.4);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.briefing-tile-glow:hover {
    box-shadow: 0 0 16px rgba(201, 168, 76, 0.7);
    border-color: var(--gold);
}

/* ============================================
   PHASE 5 — CHALLENGE MODE
   ============================================ */

.challenge-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.challenge-type-badge {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.challenge-difficulty-badge {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}

.difficulty-easy { background: rgba(46,204,113,0.15); color: #2ECC71; border: 1px solid #2ECC71; }
.difficulty-medium { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid var(--gold); }
.difficulty-hard { background: rgba(192,57,43,0.15); color: var(--red); border: 1px solid var(--red); }

.challenge-name {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 600;
}

.challenge-backstory {
    font-size: 0.85rem;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.challenge-thread {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.challenge-score-card {
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin: 0 1rem;
}

.challenge-score-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.challenge-score-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

.challenge-score-label {
    font-size: 0.7rem;
    color: var(--white-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.challenge-score-field {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.challenge-grade-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.challenge-grade {
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.challenge-score-big {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.challenge-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.challenge-summary-field {
    padding: 0.75rem 1rem;
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* ============================================
   PHASE 5 — MASTER AI
   ============================================ */

.master-door {
    border-color: #9B59B6;
    background: rgba(155, 89, 182, 0.05);
}

.master-door:hover {
    border-color: #9B59B6;
    box-shadow: 0 0 30px rgba(155, 89, 182, 0.3);
    background: rgba(155, 89, 182, 0.1);
}

.master-door .door-title {
    color: #9B59B6;
}

.master-mode-bar {
    border-left: 3px solid #9B59B6;
}

.master-mode-detect-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.master-mode-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: #9B59B6;
    text-transform: uppercase;
    font-weight: 700;
}

.master-mode-confidence {
    font-size: 0.75rem;
    color: var(--white-muted);
}

.master-mode-reasoning {
    font-size: 0.82rem;
    color: var(--white-muted);
    line-height: 1.5;
}

.master-voice-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
}

.master-mic-btn {
    font-size: 1rem;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    background: rgba(155, 89, 182, 0.15);
    border: 2px solid #9B59B6;
    color: #9B59B6;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
}

.master-mic-btn:hover {
    background: rgba(155, 89, 182, 0.3);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.4);
}

.master-rec-status {
    font-size: 0.8rem;
    color: var(--white-muted);
    min-height: 1.2rem;
}

.master-divider {
    text-align: center;
    font-size: 0.75rem;
    color: var(--white-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0.5rem 0;
}

/* --- WAIT TIMER --- */
.cc-wait-timer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.timer-set-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.timer-select {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
    background: var(--black-soft);
    border: 1px solid var(--border);
    color: var(--white);
    border-radius: 2px;
    font-family: var(--font-main);
}

.timer-status {
    font-size: 0.8rem;
    min-height: 1.2rem;
}

/* --- RELATIONSHIP CONTEXT BADGE --- */
.rel-context-badge {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
    font-weight: 700;
}

.rel-context-hitting-on {
    background: rgba(192,57,43,0.15);
    color: var(--red);
    border: 1px solid var(--red);
}

.rel-context-situationship {
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.rel-context-girlfriend {
    background: rgba(46,204,113,0.15);
    color: #2ECC71;
    border: 1px solid #2ECC71;
}

.rel-context-wife {
    background: rgba(155,89,182,0.15);
    color: #9B59B6;
    border: 1px solid #9B59B6;
}

/* --- APPROACH MODE BUTTON --- */
.approach-mode-btn {
    border-color: #9B59B6;
    color: #9B59B6;
}
.approach-mode-btn:hover {
    background: rgba(155,89,182,0.15);
}

/* --- MEMORY LAYER --- */
.memory-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.memory-type-badge {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    border: 1px solid var(--gold);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.memory-text {
    font-size: 0.82rem;
    color: var(--white);
    line-height: 1.5;
    flex: 1;
}

.memory-delete-btn {
    font-size: 0.65rem;
    color: var(--white-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    flex-shrink: 0;
}

.memory-delete-btn:hover {
    color: var(--red);
}

/* ============================================
   CONQUEST SCREEN — TOP NAV REDESIGN
   ============================================ */

.cc-topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--black-card);
    gap: 0.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.cc-topnav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cc-topnav-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.cc-nav-btn {
    font-size: 0.65rem !important;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.65rem !important;
    border-radius: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: var(--transition);
    white-space: nowrap;
}

.cc-nav-btn:hover {
    opacity: 1;
}

.cc-tabs {
    display: flex;
    gap: 0;
    border-bottom: none;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.cc-tab {
    font-size: 0.65rem !important;
    letter-spacing: 0.1em;
    padding: 0.5rem 0.75rem !important;
    text-transform: uppercase;
    opacity: 0.5;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    color: var(--white);
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
}

.cc-tab:hover {
    opacity: 0.8;
}

.cc-tab.active {
    opacity: 1;
    border-bottom: 2px solid var(--gold);
    color: var(--gold);
}

.mode-selector {
    flex-shrink: 0;
}

.mode-current {
    font-size: 0.65rem !important;
    padding: 0.3rem 0.75rem !important;
    letter-spacing: 0.1em;
}

.cc-girl-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

.cc-status-badge {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
}

.approach-mode-btn {
    font-size: 0.65rem !important;
    padding: 0.3rem 0.65rem !important;
    border-color: #9B59B6;
    color: #9B59B6;
    opacity: 1;
}

/* Timer row - more compact */
.cc-wait-timer {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--black-card);
}

.timer-set-row {
    gap: 0.4rem;
}

.timer-select {
    font-size: 0.72rem;
    padding: 0.25rem 0.4rem;
}

/* AI Suggests text smaller */
.mode-ai-suggests {
    font-size: 0.55rem;
}

/* ============================================
   CONQUEST — REFINED AESTHETIC
   ============================================ */

/* Timer — minimal */
.cc-wait-timer {
    padding: 0.3rem 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent !important;
    border-bottom: 1px solid var(--border);
}

.timer-set-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.timer-select {
    font-size: 0.68rem !important;
    padding: 0.2rem 0.35rem !important;
    background: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--white-muted) !important;
    max-width: 90px;
}

.timer-set-row .btn {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.5rem !important;
    background: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--white-muted) !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timer-set-row .btn:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

.timer-status {
    font-size: 0.68rem;
    color: var(--gold);
}

/* Mode selector — refined */
.mode-current {
    font-size: 0.6rem !important;
    padding: 0.2rem 0.6rem !important;
    letter-spacing: 0.12em;
    border-width: 1px !important;
}

/* Top nav buttons — hairline */
.cc-nav-btn {
    font-size: 0.6rem !important;
    padding: 0.2rem 0.55rem !important;
    letter-spacing: 0.1em;
    background: transparent !important;
    border: 1px solid var(--border) !important;
    color: var(--white-muted) !important;
    opacity: 1 !important;
}

.cc-nav-btn:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

.approach-mode-btn {
    border-color: rgba(155,89,182,0.5) !important;
    color: #9B59B6 !important;
}

.approach-mode-btn:hover {
    border-color: #9B59B6 !important;
}

/* Status badges in top nav — smaller */
.status-active, .status-cooling, .status-archived, .status-closed {
    font-size: 0.55rem !important;
    padding: 0.1rem 0.4rem !important;
}

/* Girl name in conquest top nav */
.cc-girl-name {
    font-size: 0.85rem !important;
    font-weight: 600;
}

/* AI brain panel — no big borders */
.cc-right-panel {
    border-left: 1px solid var(--border);
}

/* --- CONFIDENCE MILESTONES --- */
.milestone-confidence-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.milestone-conf-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--white-muted);
    text-transform: uppercase;
    flex-shrink: 0;
}

.conf-slider {
    flex: 1;
    accent-color: var(--gold);
}

.milestone-conf-value {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

.milestone-item {
    padding: 0.6rem 0.75rem;
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.milestone-item.milestone-achieved {
    opacity: 0.5;
    border-color: #2ECC71;
}

.milestone-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.milestone-type-badge {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.1rem 0.35rem;
    border-radius: 2px;
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    border: 1px solid var(--gold);
    flex-shrink: 0;
}

.milestone-name {
    font-size: 0.82rem;
    color: var(--white);
    font-weight: 600;
    flex: 1;
}

.milestone-desc {
    font-size: 0.75rem;
    color: var(--white-muted);
    line-height: 1.4;
}

.milestone-add-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.milestone-check-result {
    margin-bottom: 0.75rem;
}

/* --- TABS OVERFLOW FIX --- */
.cc-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    border-bottom: 1px solid var(--border);
}

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

.cc-tab {
    font-size: 0.6rem !important;
    padding: 0.45rem 0.6rem !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- TAB MIN WIDTH FIX --- */
.cc-tab {
    min-width: fit-content !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* --- RIGHT PANEL OVERFLOW FIX --- */
.cc-right {
    overflow: visible !important;
}

.cc-tabs {
    overflow-x: auto !important;
    overflow-y: visible !important;
    width: 100%;
}

/* --- VOICE NOTES --- */
.voice-note-recorder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.vnote-item {
    padding: 0.75rem;
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.vnote-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.vnote-date {
    font-size: 0.7rem;
    color: var(--gold);
    flex-shrink: 0;
}

.vnote-audio {
    flex: 1;
    height: 30px;
    min-width: 150px;
}

.vnote-transcript {
    font-size: 0.82rem;
    color: var(--white-muted);
    line-height: 1.5;
    border-top: 1px solid var(--border);
    padding-top: 0.4rem;
    margin-top: 0.3rem;
}

/* --- MOOD TRACKER --- */
.mood-log-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mood-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mood-field-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--white-muted);
    text-transform: uppercase;
    min-width: 50px;
    flex-shrink: 0;
}

.mood-options {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.mood-chip {
    font-size: 0.68rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--white-muted);
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
}

.mood-chip:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.mood-chip-active {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    background: rgba(201,168,76,0.15) !important;
}

/* --- MEMORY CATEGORIES --- */
.memory-category {
    margin-bottom: 0.75rem;
}

.memory-cat-label {
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    color: var(--white-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.3rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--border);
}

/* --- OUTCOME FEEDBACK --- */
.feedback-row {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.feedback-btn {
    font-size: 0.58rem;
    padding: 0.15rem 0.4rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white-muted);
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
}

.feedback-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.feedback-logged {
    font-size: 0.58rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

/* --- CONVERSATION HEALTH SCORE --- */
.cc-health-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.health-label {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    color: var(--white-muted);
    text-transform: uppercase;
}

.health-score-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.05em;
}

.health-score-badge:hover {
    opacity: 0.8;
}
