/* ==========================================================================
   MIRROR MAGIC COACH™ — DESIGN SYSTEM & STYLESHEET
   Honey Vachhani Movement — Cream & Gold Premium Theme
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Color Palette */
    --color-bg-darkest: #fffbf2;      /* Cream background */
    --color-bg-darker: #f5edd7;       /* Warm secondary cream */
    --color-bg-panel: rgba(255, 251, 242, 0.75);
    --color-border-glass: rgba(183, 140, 45, 0.18);
    --color-border-glow: rgba(183, 140, 45, 0.35);
    
    --color-primary: #b78c2d;         /* Gold */
    --color-primary-light: #d1aa4e;   /* Light Gold */
    --color-secondary: #b78c2d;       /* Gold */
    --color-accent: #b78c2d;          /* Gold */
    
    --color-text-primary: #1C1C1E;    /* Charcoal */
    --color-text-secondary: #3e3e42;  /* Medium Charcoal */
    --color-text-muted: #767679;      /* Muted Charcoal */
    
    --color-user-bubble: rgba(183, 140, 45, 0.12); /* Light gold bubble */
    --color-coach-bubble: #ffffff;                 /* Pure white bubble */
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Shadows & Glows */
    --glow-soft: 0 0 25px rgba(183, 140, 45, 0.15);
    --glow-strong: 0 0 35px rgba(183, 140, 45, 0.25);
    --shadow-card: 0 8px 24px rgba(183, 140, 45, 0.08);
    
    /* Animation Speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* --- Base Resets & Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background-color: var(--color-bg-darkest);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(183, 140, 45, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(183, 140, 45, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Grid (Dual Pane) --- */
.app-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    grid-template-rows: 100vh; /* Strictly lock rows to exactly the screen height */
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(183, 140, 45, 0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(183, 140, 45, 0.45);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(183, 140, 45, 0.75);
}

/* ==========================================================================
   LEFT PANE: SIDEBAR & MIRROR VIEWPORT
   ========================================================================== */
.sidebar-pane {
    background: var(--color-bg-darker);
    border-right: 1px solid var(--color-border-glass);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding: 24px;
    gap: 24px;
}

/* Header & Branding */
.sidebar-header {
    margin-bottom: 8px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-symbol {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(183, 140, 45, 0.4));
    animation: gentle-pulse 3s infinite ease-in-out;
}
.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}
.brand-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* The Digital Mirror viewport */
.mirror-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mirror-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    border: 1px solid var(--color-border-glass);
    background: #eae3d2;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.mirror-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Flip video horizontally to behave like a true mirror */
    transform: scaleX(-1);
    border-radius: 19px;
}
.mirror-video.flipped {
    transform: scaleX(1);
}

/* Fallback/Inactive Reflection State */
.mirror-fallback-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    text-align: center;
    background: #fdfaf2;
}
.glow-orb {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(183, 140, 45, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    animation: orb-float 8s infinite ease-in-out;
}
.reflection-frame {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.spiritual-icon {
    font-size: 2.5rem;
    animation: spin-slow 20s infinite linear;
}
.reflection-quote {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--color-primary);
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    max-width: 240px;
}

/* Mirror buttons */
.mirror-controls {
    display: flex;
    gap: 10px;
}
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #9a7622 100%);
    color: #fffbf2;
    box-shadow: 0 4px 15px rgba(183, 140, 45, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    box-shadow: 0 6px 20px rgba(183, 140, 45, 0.35);
    transform: translateY(-1px);
}
.btn-secondary {
    background: #ffffff;
    border-color: var(--color-border-glass);
    color: var(--color-text-primary);
}
.btn-secondary:hover {
    background: rgba(183, 140, 45, 0.08);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn-icon-only {
    width: 42px;
    height: 42px;
    padding: 0;
    flex-shrink: 0;
    background: #ffffff;
    border-color: var(--color-border-glass);
    border-radius: 12px;
}
.btn-icon-only:hover {
    background: rgba(183, 140, 45, 0.08);
    border-color: var(--color-accent);
}
.btn-pill {
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
}
.btn-text {
    background: #ffffff;
    color: var(--color-text-secondary);
    border: 1px solid rgba(183, 140, 45, 0.25);
}
.btn-text:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(183, 140, 45, 0.05);
}

/* Accordion Guides section */
.methodology-guides {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-weight: 600;
}
.guide-item {
    background: #ffffff;
    border: 1px solid var(--color-border-glass);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color var(--transition-normal);
}
.guide-item[open] {
    border-color: rgba(183, 140, 45, 0.4);
    background: #ffffff;
}
.guide-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    user-select: none;
    color: var(--color-text-primary);
    list-style: none;
}
.guide-summary::-webkit-details-marker {
    display: none;
}
.guide-summary .chevron {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    transition: transform var(--transition-normal);
}
.guide-item[open] .guide-summary .chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}
.guide-content {
    padding: 0 16px 14px 16px;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    border-top: 1px solid rgba(183, 140, 45, 0.08);
    padding-top: 10px;
}
.guide-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vocab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-top: 4px;
}
.vocab-table th, .vocab-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(183, 140, 45, 0.08);
    color: var(--color-text-secondary);
}
.vocab-table th {
    color: var(--color-text-muted);
    font-weight: 600;
}
.vocab-table td strong {
    color: var(--color-primary);
}

/* ==========================================================================
   RIGHT PANE: COACH CHAT PANEL
   ========================================================================== */
.chat-pane {
    background: var(--color-bg-panel);
    display: flex;
    flex-direction: column;
    height: 100vh; /* Force panel to fill viewport height exactly */
    max-height: 100vh;
    overflow: hidden; /* Force scrolling inside the message container only */
    position: relative;
}

/* Header bar */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    background: rgba(255, 251, 242, 0.85);
    border-bottom: 1px solid var(--color-border-glass);
    backdrop-filter: blur(8px);
    z-index: 10;
}
.coach-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}
.avatar-container {
    position: relative;
    width: 44px;
    height: 44px;
}
.coach-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a47e28 0%, var(--color-primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 4px 10px rgba(183, 140, 45, 0.15);
    border: 1px solid var(--color-primary);
}
.avatar-status-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    opacity: 0.6;
    animation: pulse-ring 2.5s infinite;
}
.coach-info h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
}
.coach-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--color-text-secondary);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-dot.online {
    background-color: #4cd964;
    box-shadow: 0 0 8px #4cd964;
}
.status-dot.typing {
    background-color: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    animation: blink 1s infinite alternate;
}

/* Membership voice overrides */
.client-context-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}
.context-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}
.context-select {
    background: #ffffff;
    color: var(--color-primary);
    border: 1px solid var(--color-border-glass);
    border-radius: 8px;
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}
.context-select:focus {
    border-color: var(--color-primary);
}

/* Chat History message feed */
.chat-history {
    flex: 1;
    min-height: 0; /* Prevents container from expanding beyond viewport and fixes scroll lock */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Welcome Card styling */
.system-welcome-card {
    align-self: center;
    max-width: 480px;
    background: #ffffff;
    border: 1px solid var(--color-border-glass);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    margin: auto;
    animation: fade-in-up 0.6s ease-out;
}
.welcome-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(183, 140, 45, 0.08);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.system-welcome-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}
.system-welcome-card p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Message styling */
.message-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    animation: message-slide var(--transition-normal) forwards;
    opacity: 0;
}
.message-wrapper.user {
    align-self: flex-end;
}
.message-wrapper.coach {
    align-self: flex-start;
}
.message-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.94rem;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
    box-shadow: 0 4px 12px rgba(183, 140, 45, 0.04);
}
.message-wrapper.user .message-bubble {
    background: var(--color-user-bubble);
    color: var(--color-text-primary);
    border: 1px solid rgba(183, 140, 45, 0.25);
    border-bottom-right-radius: 4px;
}
.message-wrapper.coach .message-bubble {
    background: var(--color-coach-bubble);
    color: var(--color-text-primary);
    border: 1px solid rgba(183, 140, 45, 0.15);
    border-bottom-left-radius: 4px;
    backdrop-filter: blur(4px);
}

/* Option Quick-Selection Buttons (For Mandatory Opening) */
.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.btn-option {
    background: rgba(183, 140, 45, 0.06);
    border: 1px solid rgba(183, 140, 45, 0.2);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.84rem;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.btn-option:hover {
    background: rgba(183, 140, 45, 0.12);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

/* Formatted components inside coach message (e.g. hyperlinks) */
.message-bubble a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
    text-underline-offset: 2px;
}
.message-bubble a:hover {
    color: #9a7622;
}

.message-meta {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    padding: 0 4px;
}
.message-wrapper.user .message-meta {
    text-align: right;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px 14px;
    align-items: center;
}
.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Chat Input Bar Footer */
.chat-footer {
    padding: 20px 30px 14px 30px;
    background: rgba(255, 251, 242, 0.85);
    border-top: 1px solid var(--color-border-glass);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.input-actions-row {
    display: flex;
    gap: 10px;
}
.chat-input-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--color-border-glass);
    border-radius: 24px;
    padding: 6px 10px 6px 18px;
    gap: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color var(--transition-fast);
}
.chat-input-container:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(183, 140, 45, 0.08);
}
.chat-input-container textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.94rem;
    resize: none;
    max-height: 120px;
    min-height: 24px;
    line-height: 1.4;
    padding: 6px 0;
}
.chat-input-container textarea::placeholder {
    color: var(--color-text-muted);
}
.btn-round {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.send-icon {
    margin-left: 2px;
}
.footer-fine-print {
    text-align: center;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    letter-spacing: 0.3px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes message-slide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(183, 140, 45, 0.2));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 18px rgba(183, 140, 45, 0.35));
    }
}
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.2;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}
@keyframes orb-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(10px, -15px) scale(1.15);
    }
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
@keyframes blink {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE/TABLET OVERRIDES)
   ========================================================================== */
@media (max-width: 860px) {
    .app-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        overflow-y: auto;
    }
    .sidebar-pane {
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--color-border-glass);
        padding: 20px;
    }
    .chat-pane {
        height: calc(100vh - 350px);
        min-height: 450px;
    }
    .mirror-box {
        max-width: 320px;
        margin: 0 auto;
    }
    .mirror-controls {
        justify-content: center;
    }
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   DAILY ALIGNMENT & MONETIZATION STYLES
   ========================================================================== */
.daily-alignment-section {
    margin-top: 15px;
    margin-bottom: 15px;
    animation: fade-in-up 0.5s ease-out;
}
.text-gold {
    color: var(--color-primary);
}
.alignment-prompt {
    font-size: 0.94rem;
    color: var(--color-text-primary);
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-style: italic;
    background: rgba(183, 140, 45, 0.05);
    padding: 10px 14px;
    border-left: 3px solid var(--color-primary);
    border-radius: 4px;
}

/* Audio wave animation helper */
.audio-prompt-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.audio-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
}
.audio-wave .stroke {
    width: 3px;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 2px;
    animation: wave-bar 1.2s ease-in-out infinite alternate;
}
.audio-wave .stroke:nth-child(1) { animation-delay: 0.1s; height: 30%; }
.audio-wave .stroke:nth-child(2) { animation-delay: 0.3s; height: 60%; }
.audio-wave .stroke:nth-child(3) { animation-delay: 0.0s; height: 100%; }
.audio-wave .stroke:nth-child(4) { animation-delay: 0.4s; height: 50%; }
.audio-wave .stroke:nth-child(5) { animation-delay: 0.2s; height: 80%; }

@keyframes wave-bar {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

/* Journaling inputs */
.journal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px dashed rgba(183, 140, 45, 0.2);
    padding-top: 15px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}
.form-group textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--color-border-glass);
    border-radius: 10px;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--color-text-primary);
    resize: none;
    outline: none;
    transition: border-color var(--transition-fast);
}
.form-group textarea:focus {
    border-color: var(--color-primary);
}
.btn-block {
    width: 100%;
}

/* Modal Overlay & Subscription Paywall */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 21, 59, 0.5);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fade-in 0.3s ease-out;
}
.modal-content {
    background: rgba(255, 251, 242, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    max-width: 650px;
    width: 100%;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(46, 21, 59, 0.2);
    position: relative;
    text-align: center;
}
.modal-gold-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    animation: gentle-pulse 2s infinite alternate;
}
.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-primary);
    margin-bottom: 10px;
}
.modal-header p {
    font-size: 0.94rem;
    color: var(--color-text-secondary);
    margin-bottom: 25px;
}
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.pricing-card {
    background: #ffffff;
    border: 2px solid var(--color-border-glass);
    border-radius: 16px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}
.pricing-card:hover, .pricing-card.selected {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 140, 45, 0.1);
}
.pricing-card.selected {
    background: rgba(183, 140, 45, 0.03);
}
.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pricing-card h3 {
    font-size: 0.94rem;
    color: var(--color-text-primary);
    margin-top: 5px;
    margin-bottom: 10px;
}
.pricing-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.pricing-card .price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-muted);
}
.trial-info {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.3;
}
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    margin: 20px 0;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border-glass);
}
.divider span {
    padding: 0 10px;
}
.alternative-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.alt-btn {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--color-border-glass);
    padding: 8px 14px;
    border-radius: 12px;
    transition: all var(--transition-fast);
    background: #ffffff;
}
.alt-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(183, 140, 45, 0.02);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    cursor: pointer;
}
.modal-close:hover {
    color: var(--color-text-primary);
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Chat Pane Lock Overlay */
.lock-overlay {
    position: absolute;
    top: 65px; /* under header */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 251, 242, 0.7);
    backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.lock-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border-glass);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-card);
    animation: fade-in-up 0.5s ease-out;
}
.lock-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}
.lock-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}
.lock-card p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}
.chat-pane {
    position: relative; /* ensure absolute positioning works for lock-overlay */
}
