/* Tarot Insight - Premium Dark Theme (BFF Calculator Style) */

:root {
    /* Theme colors */
    --primary: #ff6b9d;
    --secondary: #c44fff;
    --accent: #ff6b6b;
    --glow: rgba(255, 107, 157, 0.4);
    
    /* Dark theme */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-card-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --btn-gradient: linear-gradient(135deg, #ff6b9d 0%, #c44fff 100%);
    
    /* Shadows */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--glow);
    
    /* Border radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 100px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #0a0a0f 0%,
        #1a0a1f 25%,
        #0f0a1a 50%,
        #1a0f1f 75%,
        #0a0a0f 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.4;
    }
    75% { 
        transform: translate(20px, 30px) scale(1.05);
        opacity: 0.35;
    }
}

/* ===== APP CONTAINER ===== */
.app-container {
    max-width: 640px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

.page {
    display: none;
    padding: 24px;
    padding-bottom: 48px;
    position: relative;
    z-index: 1;
}

.page.active {
    display: block;
    animation: fadeIn 0.4s var(--ease-out);
}

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

.content-wrapper {
    max-width: 100%;
}

.content-wrapper.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
}

/* ===== TYPOGRAPHY ===== */
.main-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* ===== QUESTION CARDS ===== */
.question-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s var(--ease-out);
}

.question-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.question-card:active {
    transform: scale(0.98);
}

.question-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.question-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.4;
}

.price-badge {
    background: var(--btn-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.question-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.get-insight-btn {
    width: 100%;
    padding: 14px;
    background: var(--btn-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
}

.get-insight-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.2);
}

/* ===== BACK BUTTON ===== */
.back-btn {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--ease-out);
}

.back-btn:active {
    background: var(--bg-card-hover);
    transform: scale(0.97);
}

/* ===== QUESTION HEADER ===== */
.question-header {
    margin-bottom: 32px;
    text-align: center;
}

.question-title-large {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.instruction-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    font-style: italic;
}

/* ===== CARD SELECTION GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.tarot-card-select {
    aspect-ratio: 2/3;
    position: relative;
    cursor: pointer;
    perspective: 1000px;
    animation: cardAppear 0.6s var(--ease-out) backwards;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) rotateY(-15deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateY(0);
    }
}

.tarot-card-select:active {
    transform: scale(0.95);
}

.card-select-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--btn-gradient);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    transition: transform 0.3s var(--ease-out);
}

.card-pattern {
    width: 60%;
    height: 60%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    position: relative;
}

.card-pattern::before,
.card-pattern::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.card-pattern::before {
    top: -8px;
    left: -8px;
}

.card-pattern::after {
    bottom: -8px;
    right: -8px;
}

.card-select-front {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    transition: transform 0.3s var(--ease-out);
    overflow: hidden;
}

.card-select-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-align: center;
    padding: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.tarot-card-select:hover .card-select-back {
    transform: rotateY(180deg);
}

.tarot-card-select:hover .card-select-front {
    transform: rotateY(0);
}

/* ===== CARD REVEAL ANIMATION ===== */
.reveal-animation {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.card-flip-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    perspective: 1000px;
}

.tarot-card-back,
.tarot-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    backface-visibility: hidden;
    transition: transform 0.8s var(--ease-out);
}

.tarot-card-back {
    background: var(--btn-gradient);
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateY(0deg);
}

.tarot-card-back .card-pattern {
    width: 70%;
    height: 70%;
}

.tarot-card-front {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transform: rotateY(180deg);
    overflow: hidden;
    position: relative;
}

.tarot-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 0;
}

.card-flip-container.flipped .tarot-card-back {
    transform: rotateY(-180deg);
}

.card-flip-container.flipped .tarot-card-front {
    transform: rotateY(0deg);
}

.card-reveal-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

/* ===== LOCKED ANSWER PAGE ===== */
.unlock-section.unlock-top {
    margin-bottom: 32px;
}

.tarot-reveal-small {
    text-align: center;
    margin: 16px 0 24px;
}

.tarot-card-name-small {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.answer-content.locked {
    position: relative;
}

.locked-block {
    position: relative;
}

.glimpse-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.6;
    padding: 12px;
    background: rgba(255, 107, 157, 0.1);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
}

.block-text.blurred {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
    color: var(--text-muted);
}

.block-text.blurred::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 15, 0.9));
    pointer-events: none;
}

/* ===== UNLOCK SECTION ===== */
.unlock-section {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.btn-unlock {
    width: 100%;
    padding: 16px;
    background: var(--btn-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
}

.btn-unlock:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-unlock:active:not(:disabled) {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

.unlock-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.unlock-features span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ===== RESULT PAGE ===== */
.tarot-reveal {
    text-align: center;
    margin-bottom: 32px;
    padding: 32px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.tarot-card-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.tarot-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.answer-content {
    margin-bottom: 40px;
}

.answer-block {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.block-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.block-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== UPSELL PLACEHOLDER ===== */
.upsell-placeholder {
    margin-top: 40px;
}

.upsell-card-blurred {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    opacity: 0.7;
}

.upsell-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.btn-upsell-disabled {
    width: 100%;
    padding: 14px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: not-allowed;
}

/* ===== LOADING ===== */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ===== BACK BUTTON ===== */
.back-to-trends-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.back-to-trends-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.back-to-trends-btn:active {
    transform: translateX(-2px);
}

/* ===== ASK BANNER ===== */
.ask-banner {
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease;
}

.ask-banner-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.ask-banner-link:hover {
    transform: translateY(-2px);
}

.ask-banner-content {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ask-banner-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

.ask-banner-icon {
    font-size: 48px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

.ask-banner-text {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 1;
}

.ask-banner-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ask-banner-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.ask-banner-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.ask-banner-arrow {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.ask-banner-link:hover .ask-banner-arrow {
    transform: translateX(4px);
}

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

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(34, 197, 94, 0.6);
    }
}

/* ===== CURIOSITY HOOK ===== */
.curiosity-hook {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.curiosity-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.curiosity-text:last-child {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== FIXED UNLOCK SECTION ===== */
.fixed-unlock-section {
    position: fixed;
    bottom: 50px; /* Above attribution footer */
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 16px 24px 24px;
    z-index: 1001;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.scrollable-content {
    padding-bottom: 220px; /* Space for fixed button + footer */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.price-timer {
    text-align: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.price-timer.urgent {
    color: var(--accent);
    animation: pulse 1s infinite;
}

.timer-text {
    font-weight: 600;
}

#timer-countdown {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}

.btn-unlock-fixed {
    width: 100%;
    background: var(--btn-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-glow);
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
}

.btn-unlock-fixed:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.5);
}

.btn-unlock-fixed:active {
    transform: translateY(0);
}

.btn-share-free {
    width: 100%;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 18px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-share-free:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
}

.btn-share-free:active {
    transform: translateY(0);
}

.share-icon {
    font-size: 1.2rem;
}

.share-progress {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-left: 6px;
    font-weight: 500;
}

.fixed-unlock-section .unlock-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fixed-unlock-section .unlock-features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ===== "WHAT DOES THAT MEAN?" BUTTON ===== */
.btn-what-does-mean {
    margin-top: 32px;
    background: var(--btn-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-glow);
    font-family: 'Outfit', sans-serif;
    opacity: 0;
}

.btn-what-does-mean:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.5);
}

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

/* ===== PROCESSING PAGE ===== */
#processing-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.processing-animation {
    text-align: center;
    max-width: 400px;
}

.processing-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.processing-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    min-height: 30px;
}

.processing-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.processing-steps .step {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    opacity: 0.4;
}

.processing-steps .step.active {
    opacity: 1;
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(255, 107, 157, 0.1);
    transform: scale(1.05);
}

/* ===== FOMO BANNER ===== */
.fomo-banner {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(196, 79, 255, 0.15) 100%);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fomo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fomo-badge {
    display: inline-block;
    background: var(--btn-gradient);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.fomo-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== ATTRIBUTION FOOTER ===== */
.attribution-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 12px 24px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    z-index: 100;
}

.attribution-footer p {
    margin: 0;
    line-height: 1.4;
}

.attribution-footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.attribution-footer a:hover {
    color: var(--secondary);
}

/* Page padding adjustments */
.page {
    padding-bottom: 60px;
}

#locked-answer-page {
    padding-bottom: 0; /* No extra padding - handled by scrollable-content */
    position: relative;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .question-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page {
        padding: 32px;
        padding-bottom: 70px;
    }
    
    .cards-grid {
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .question-title-large {
        font-size: 2.25rem;
    }
    
    .cards-grid {
        max-width: 600px;
        margin: 24px auto 0;
    }
}