/* =========================================
   CERTCRUSHER — SALESFORCE ADMIN EXAM PREP
   ========================================= */

:root {
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --text: #e8e8f0;
    --text-muted: #8888aa;
    --primary: #6c5ce7;
    --primary-glow: rgba(108, 92, 231, 0.3);
    --secondary: #00cec9;
    --accent: #fd79a8;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --gradient: linear-gradient(135deg, #6c5ce7, #a29bfe, #fd79a8);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== TOP BAR ===== */
#top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.15);
}

.logo {
    font-weight: 800;
    font-size: 1.1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.streak-badge, .xp-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.timer-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ===== SCREENS ===== */
.screen {
    display: none;
    padding: 20px;
    max-width: 720px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
}
.screen.active { display: block; }

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

.back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 12px;
    transition: var(--transition);
}
.back-btn:hover { color: var(--text); }

/* ===== HOME SCREEN ===== */
.home-hero {
    text-align: center;
    padding: 30px 0 10px;
}
.home-hero h1 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 8px;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Progress Ring */
.progress-ring-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 24px auto;
}
.progress-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring-bg {
    fill: none;
    stroke: var(--bg-card);
    stroke-width: 12;
}
.progress-ring-fill {
    fill: none;
    stroke: url(#ring-gradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-ring-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.progress-ring-label span {
    font-size: 2rem;
    font-weight: 900;
    display: block;
}
.progress-ring-label small {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SVG Gradient (added via JS) */
.ring-gradient-stop1 { stop-color: #6c5ce7; }
.ring-gradient-stop2 { stop-color: #fd79a8; }

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover { background: #7c6cf7; box-shadow: 0 6px 30px var(--primary-glow); }

.btn-secondary { background: rgba(0, 206, 201, 0.15); color: var(--secondary); border: 1px solid rgba(0, 206, 201, 0.3); }
.btn-secondary:hover { background: rgba(0, 206, 201, 0.25); }

.btn-accent { background: rgba(253, 121, 168, 0.15); color: var(--accent); border: 1px solid rgba(253, 121, 168, 0.3); }
.btn-accent:hover { background: rgba(253, 121, 168, 0.25); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.15); }
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }

.btn-success { background: var(--success); color: white; }
.btn-warning { background: var(--warning); color: #333; }
.btn-danger { background: var(--danger); color: white; }

.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-sm { padding: 10px 16px; font-size: 0.85rem; }
.btn-icon { font-size: 1.2rem; }

/* Pulse animation for primary CTA */
.pulse {
    animation: pulse 2.5s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px var(--primary-glow); }
    50% { box-shadow: 0 4px 40px rgba(108, 92, 231, 0.5); }
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}
.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Daily Tip */
.daily-tip {
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* ===== TOPICS SCREEN ===== */
.screen-subtitle {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 30px;
}

.topic-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 14px;
}
.topic-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

.topic-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.topic-info { flex: 1; }
.topic-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}
.topic-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.topic-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}
.topic-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.mastery-low { background: var(--danger); }
.mastery-mid { background: var(--warning); }
.mastery-high { background: var(--success); }

/* ===== QUIZ SCREEN ===== */
.quiz-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.quiz-progress { flex: 1; display: flex; align-items: center; gap: 10px; }
.quiz-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.quiz-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.quiz-progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 40px;
    text-align: right;
}

.quiz-topic-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.question-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 20px;
}

.choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-btn {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition);
}
.choice-btn:hover:not(.disabled) {
    background: rgba(108, 92, 231, 0.1);
    border-color: rgba(108, 92, 231, 0.4);
}

.choice-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.choice-btn.correct {
    background: rgba(0, 184, 148, 0.15);
    border-color: var(--success);
}
.choice-btn.correct .choice-letter { background: var(--success); color: white; }

.choice-btn.wrong {
    background: rgba(225, 112, 85, 0.15);
    border-color: var(--danger);
}
.choice-btn.wrong .choice-letter { background: var(--danger); color: white; }

.choice-btn.disabled { pointer-events: none; opacity: 0.6; }
.choice-btn.correct.disabled, .choice-btn.wrong.disabled { opacity: 1; }

/* Feedback */
.feedback-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}
.feedback-icon { font-size: 3rem; margin-bottom: 8px; }
.feedback-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.feedback-explanation {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.feedback-mnemonic {
    background: rgba(253, 121, 168, 0.1);
    border: 1px solid rgba(253, 121, 168, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.feedback-mnemonic:empty { display: none; }

/* ===== RESULTS SCREEN ===== */
.results-container {
    text-align: center;
    padding: 20px 0;
}
.results-score-ring {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}
.results-pct { font-size: 2.5rem; }
.results-ring {
    stroke: var(--success);
}

#results-headline {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}
#results-detail {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.results-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    text-align: left;
}
.breakdown-item {
    background: var(--bg-card);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}
.breakdown-item .topic { font-weight: 600; margin-bottom: 2px; }
.breakdown-item .score { color: var(--text-muted); }

.results-xp {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--warning);
    margin-bottom: 24px;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== FLASHCARDS ===== */
.flashcard {
    perspective: 1000px;
    width: 100%;
    height: 300px;
    cursor: pointer;
    margin: 20px 0;
}
.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.flashcard-inner.flipped { transform: rotateY(180deg); }

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: var(--radius);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}
.flashcard-front {
    background: var(--bg-card);
    border: 2px solid rgba(108, 92, 231, 0.3);
    font-weight: 600;
}
.flashcard-back {
    background: rgba(108, 92, 231, 0.15);
    border: 2px solid var(--primary);
    transform: rotateY(180deg);
    color: var(--text);
}

.flashcard-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* ===== CONFETTI ===== */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
    .quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .topics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .home-hero h1 { font-size: 3rem; }
    .screen { padding: 30px; }
}

/* ===== KEYBOARD SHORTCUT HINTS ===== */
.shortcut-hint {
    display: none;
}
@media (hover: hover) {
    .shortcut-hint {
        display: inline;
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-left: 6px;
        opacity: 0.6;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes bounceIn {
    0% { transform: scale(0.85); opacity: 0; }
    60% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}
.bounce-in { animation: bounceIn 0.5s ease; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
.shake { animation: shake 0.5s ease; }

/* Focus ring for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Color coding for pass/fail */
.pass-color { color: var(--success); }
.fail-color { color: var(--danger); }

/* ===== PRO BADGE ===== */
.pro-badge {
    padding: 4px 10px;
    background: var(--gradient);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
}

/* ===== FREE TIER BANNER ===== */
.free-tier-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(253, 121, 168, 0.1);
    border: 1px solid rgba(253, 121, 168, 0.25);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 12px;
    gap: 12px;
}
.free-tier-text {
    font-size: 0.85rem;
    color: var(--text);
}
.free-tier-text strong {
    color: var(--accent);
}

/* ===== FEEDBACK FAB ===== */
.feedback-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    border-radius: 28px;
    border: none;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow), 0 0 24px rgba(108, 92, 231, 0.15);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fabGlow 2s ease-in-out infinite alternate;
}
.feedback-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px var(--primary-glow), 0 0 36px rgba(108, 92, 231, 0.25);
}
@keyframes fabGlow {
    from { box-shadow: 0 0 12px var(--primary-glow), 0 0 24px rgba(108, 92, 231, 0.15); }
    to { box-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(108, 92, 231, 0.3); }
}


/* ===== FEEDBACK MODAL ===== */
.feedback-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.feedback-modal {
    background: var(--bg-card);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: var(--radius);
    padding: 32px 28px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: bounceIn 0.4s ease;
}
.feedback-modal h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.feedback-modal-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.feedback-categories {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.feedback-cat {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(136, 136, 170, 0.3);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.feedback-cat:hover {
    border-color: var(--primary);
    color: var(--text);
}
.feedback-cat.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.feedback-textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid rgba(136, 136, 170, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    padding: 12px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
    transition: border-color var(--transition);
}
.feedback-textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.feedback-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid rgba(136, 136, 170, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    padding: 10px 12px;
    margin-bottom: 16px;
    transition: border-color var(--transition);
}
.feedback-input:focus {
    outline: none;
    border-color: var(--primary);
}
.feedback-label {
    display: block;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.feedback-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.5;
    font-size: 0.7rem;
}
.feedback-submit {
    width: 100%;
}
.feedback-status {
    margin-top: 12px;
    font-size: 0.85rem;
}
.feedback-status.success {
    color: var(--success);
}
.feedback-status.error {
    color: var(--danger);
}

/* ===== PAYWALL MODAL ===== */
.paywall-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.paywall-modal {
    background: var(--bg-card);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: var(--radius);
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: bounceIn 0.4s ease;
}

.paywall-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.paywall-close:hover { color: var(--text); }

.paywall-icon { font-size: 2.5rem; margin-bottom: 8px; }

.paywall-modal h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.paywall-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.paywall-features {
    text-align: left;
    margin-bottom: 20px;
}
.paywall-feature {
    padding: 6px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.paywall-feature span {
    color: var(--success);
    font-weight: 700;
    font-size: 1rem;
}

.paywall-price {
    margin-bottom: 16px;
}
.paywall-amount {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.paywall-period {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: -4px;
}

.paywall-buy {
    width: 100%;
    text-decoration: none;
    margin-bottom: 16px;
    font-size: 1.1rem;
    padding: 16px;
}

.paywall-divider {
    position: relative;
    margin: 16px 0;
    text-align: center;
}
.paywall-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.08);
}
.paywall-divider span {
    position: relative;
    background: var(--bg-card);
    padding: 0 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.paywall-activate {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.paywall-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
}
.paywall-input:focus {
    outline: none;
    border-color: var(--primary);
}
.paywall-input::placeholder { color: var(--text-muted); }

.paywall-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
}
.paywall-success {
    color: var(--success);
}

.paywall-free-note {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 12px;
}

/* Lock icon on buttons */
.lock-icon::after {
    content: ' 🔒';
    font-size: 0.85em;
}

/* Topic card locked state */
.topic-card.locked {
    opacity: 0.6;
}
.topic-card.locked::after {
    content: '🔒';
    font-size: 1.2rem;
    margin-left: auto;
}

/* ===== CONSENT BANNER ===== */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--bg-card);
    border-top: 1px solid rgba(108, 92, 231, 0.3);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.consent-text {
    flex: 1;
    min-width: 240px;
}
.consent-text p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}
.consent-text a {
    color: var(--primary);
    text-decoration: underline;
}
.consent-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
#site-footer {
    text-align: center;
    padding: 40px 20px 32px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
#site-footer .disclaimer {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 16px;
    opacity: 0.4;
    letter-spacing: 0.01em;
}
#site-footer .footer-links {
    font-size: 0.75rem;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}
#site-footer .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity var(--transition), color var(--transition);
}
#site-footer .footer-links a:hover {
    color: var(--primary);
    opacity: 1;
}
#site-footer .footer-sep {
    color: var(--text-muted);
    margin: 0 10px;
    opacity: 0.25;
}
#site-footer .copyright {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.3;
    letter-spacing: 0.03em;
}
