/* ============================================
   ASTRÓLOGOS ONLINE — Design System 2026
   Ultra-Premium Cosmic Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: rgba(20, 20, 50, 0.6);
    --purple-deep: #1a0533;
    --purple-mid: #2d1b69;
    --purple-light: #6b4ce6;
    --purple-soft: rgba(107, 76, 230, 0.15);
    --gold: #FFD700;
    --gold-dim: rgba(255, 215, 0, 0.3);
    --gold-glow: rgba(255, 215, 0, 0.15);
    --blue-cosmic: #0f1b61;
    --blue-accent: #4a7dff;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0c0;
    --text-muted: #6b6b8d;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-gold: rgba(255, 215, 0, 0.15);
    --success: #4ade80;
    --error: #f87171;
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 1.75rem;
    --radius-full: 50%;
    --shadow-glow: 0 0 30px rgba(107, 76, 230, 0.15);
    --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.1);
    --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: all 0.2s ease;
    --transition-view: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; }

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ============================================
   LUCIDE ICON SYSTEM
   ============================================ */
/* Icon size variants */
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}

.icon-label {
    width: 14px;
    height: 14px;
    color: var(--gold);
    opacity: 0.7;
    margin-right: 2px;
    vertical-align: -1px;
}

.icon-btn {
    width: 20px;
    height: 20px;
}

.icon-btn-sm {
    width: 16px;
    height: 16px;
    vertical-align: -2px;
    margin-right: 4px;
}

.icon-sm {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 2px;
    color: var(--gold);
    opacity: 0.6;
}

.icon-xs {
    width: 12px;
    height: 12px;
    vertical-align: -1px;
}

.icon-toast {
    width: 18px;
    height: 18px;
    color: var(--gold);
    fill: var(--gold);
}

/* Star rating icons */
.icon-star-filled {
    width: 16px;
    height: 16px;
    color: var(--gold);
    fill: var(--gold);
}

/* Large icon circles (for section headers) */
.icon-circle-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-light), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 30px rgba(107, 76, 230, 0.3), 0 0 60px rgba(255, 215, 0, 0.1);
    animation: iconFloat 3s ease-in-out infinite;
}

.icon-circle-lg i,
.icon-circle-lg [data-lucide] {
    width: 28px;
    height: 28px;
    color: #fff;
}

.form-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-light), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 0 20px rgba(107, 76, 230, 0.25);
}

.form-header-icon [data-lucide] {
    width: 22px;
    height: 22px;
    color: #fff;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* --- Canvas Background --- */
#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Mesh Gradient Overlays --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mesh-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
    will-change: transform;
}

.glow-purple {
    width: 600px;
    height: 600px;
    background: var(--purple-mid);
    top: -15%;
    left: -10%;
    animation: floatGlow 20s ease-in-out infinite;
}

.glow-gold {
    width: 500px;
    height: 500px;
    background: var(--gold);
    bottom: -20%;
    right: -10%;
    opacity: 0.08;
    animation: floatGlow 25s ease-in-out infinite reverse;
}

.glow-blue {
    width: 450px;
    height: 450px;
    background: var(--blue-cosmic);
    top: 40%;
    right: 20%;
    opacity: 0.1;
    animation: floatGlow 18s ease-in-out infinite 5s;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 10, 26, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: transform 0.3s ease, background 0.3s ease;
}

.site-nav.scrolled {
    background: rgba(10, 10, 26, 0.92);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-brand:hover { color: var(--text-primary); }

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
    transition: var(--transition-fast);
}

.nav-brand:hover .nav-logo {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-social:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--border-gold);
    color: var(--gold);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold), #f0a500);
    color: #000;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

@media (max-width: 480px) {
    .nav-title { display: none; }
    .nav-cta { font-size: 0.75rem; padding: 0.45rem 1rem; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem 1rem;
}

/* Hero compact variant for mobile — form must be above fold */
.hero.hero-compact {
    align-items: flex-start;
}

.hero-content {
    max-width: 720px;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-family: var(--font-sans);
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero p.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* --- Social Proof Strip --- */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

.proof-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.proof-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* --- Star Rating (Lucide SVG) --- */
.stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 0.5rem;
}

/* --- CTA Button --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--gold), #f0a500);
    color: #000;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    text-transform: none;
    letter-spacing: -0.01em;
    animation: fadeInUp 1s ease-out 0.7s both;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-25deg);
    animation: btnShine 4s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 100% { left: -60%; }
    50% { left: 120%; }
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 35px rgba(255, 215, 0, 0.45);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.85rem 2rem;
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--gold-glow);
    border-color: var(--gold);
}

/* ============================================
   FORM SECTION
   ============================================ */
.form-section {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-glow), var(--shadow-gold);
    animation: fadeInUp 0.6s ease-out;
}

.form-card h2 {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-card .form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold-dim);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px var(--gold-glow), 
                inset 0 0 20px rgba(255, 215, 0, 0.03);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group .hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* --- Birthdate 3-Select Grid --- */
.birthdate-selects {
    display: grid;
    grid-template-columns: 1fr 1.8fr 1.2fr;
    gap: 0.5rem;
}

.birthdate-selects select {
    width: 100%;
    padding: 0.85rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
    cursor: pointer;
    /* Flecha nativa del select visible */
    -webkit-appearance: auto;
    appearance: auto;
}

.birthdate-selects select:focus {
    border-color: var(--gold-dim);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Estado de error cuando no está completo */
.birthdate-selects select.select-error {
    border-color: var(--error);
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

/* --- Price Tag with Shimmer --- */
.price-tag {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--gold-glow);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.price-tag-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 25%, 
        rgba(255, 215, 0, 0.06) 50%, 
        transparent 75%
    );
    animation: priceShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes priceShimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.price-tag .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.price-tag .price-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.payment-methods span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gold), #f0a500);
    color: #000;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   CHAT SECTION
   ============================================ */
.chat-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    /* dvh = Dynamic Viewport Height: se encoge cuando el teclado Android aparece */
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    /* viewport-fit=cover activo: env() ahora retorna el valor real de la Android navbar */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.chat-header-right {
    margin-left: auto;
}

.chat-badge-secure {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--success);
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.15);
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 500;
}

.astrologer-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--purple-light), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    animation: avatarGlow 3s ease-in-out infinite;
}

.astrologer-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(var(--purple-light), var(--gold), var(--purple-light));
    z-index: -1;
    animation: avatarSpin 4s linear infinite;
    opacity: 0.6;
}

.astrologer-avatar [data-lucide] {
    width: 22px;
    height: 22px;
    color: #fff;
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(107, 76, 230, 0.3); }
    50% { box-shadow: 0 0 25px rgba(107, 76, 230, 0.5), 0 0 40px rgba(255, 215, 0, 0.15); }
}

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

.astrologer-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.astrologer-info .status {
    font-size: 0.8rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.astrologer-info .status .dot-online {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
}

/* Custom chat scrollbar */
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { 
    background: linear-gradient(var(--purple-mid), var(--gold));
    border-radius: 2px; 
}

.message {
    max-width: 80%;
    padding: 0.9rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    line-height: 1.6;
    animation: messageSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.message.bot {
    align-self: flex-start;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--purple-mid), var(--purple-light));
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 12px rgba(107, 76, 230, 0.2);
}

.message .time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    text-align: right;
}

.message.user .time {
    color: rgba(255, 255, 255, 0.5);
}

/* Bot message avatar layout */
.message.bot {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 2px;
}

.msg-content {
    flex: 1;
    min-width: 0;
}

/* Blue read checkmarks */
.read-checks {
    color: #53bdeb;
    font-size: 0.75rem;
    letter-spacing: -2px;
    margin-left: 3px;
}

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

/* Typing Indicator — Contextual */
.typing-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.85rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    max-width: 300px;
    animation: messageSlide 0.3s ease-out;
}

.typing-text {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 500;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(90deg, var(--gold), var(--gold-dim), var(--gold));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 2s ease infinite;
}

@keyframes shimmerText {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.typing-dots {
    display: flex;
    gap: 0.35rem;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Streaming Cursor */
.message.bot.streaming .stream-text::after {
    content: '▌';
    color: var(--gold);
    animation: blink 0.8s step-end infinite;
    margin-left: 1px;
}

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

/* Sound Toggle */
.btn-sound {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border-radius: 50%;
}

.btn-sound:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

/* Chat Separator (returning users) */
.chat-separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chat-separator::before,
.chat-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.chat-separator span {
    white-space: nowrap;
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* padding top e inline normales, padding-bottom 0 porque el safe-area lo da .chat-section */
    padding: 0.85rem 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    /* Nunca se comprima con el teclado */
    flex-shrink: 0;
    /* Altura mínima para que siempre sea tocable en Android */
    min-height: 68px;
}

.chat-input-bar input {
    flex: 1;
    padding: 0.9rem 1.15rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    outline: none;
    transition: var(--transition-fast);
}

.chat-input-bar input:focus {
    border-color: var(--gold-dim);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px var(--gold-glow);
}

.chat-input-bar input::placeholder {
    color: var(--text-muted);
}

.btn-send {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold), #f0a500);
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.btn-send [data-lucide] {
    width: 20px;
    height: 20px;
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   RETURN USER SECTION
   ============================================ */
.return-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.return-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-glow);
    animation: fadeInUp 0.6s ease-out;
}

.return-card h2 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.return-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-gold);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .sticky-cta {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.4rem;
        padding: 0.65rem 1.25rem;
    }
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta .sticky-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sticky-cta .sticky-price strong {
    color: var(--gold);
    font-size: 1.1rem;
}

.sticky-cta .btn-sticky {
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, var(--gold), #f0a500);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
}

/* ============================================
   SOCIAL PROOF TOAST
   ============================================ */
.proof-toast {
    position: fixed;
    bottom: 5rem;
    left: 1.5rem;
    z-index: 90;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    max-width: 320px;
}

.proof-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.proof-toast .toast-icon {
    display: flex;
    align-items: center;
}

.proof-toast .toast-name {
    font-weight: 600;
    color: var(--gold);
}

/* ============================================
   PENDING PAYMENT
   ============================================ */
.pending-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.pending-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-glow);
    animation: fadeInUp 0.6s ease-out;
}

.pending-pulse {
    animation: iconFloat 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

.pending-card h2 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.pending-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem 5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   GUARANTEE BADGE
   ============================================ */
.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 50px;
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   LIVE VIEWERS COUNTER
   ============================================ */
.live-viewers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

/* ============================================
   STEP INDICATOR
   ============================================ */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

.step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    font-weight: 700;
}

.step.active span {
    background: var(--gold);
    color: #000;
}

.step.completed {
    color: var(--success);
}

.step.completed span {
    background: var(--success);
    color: #000;
}

.step-line {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* ============================================
   TRUST BADGES (below pay button)
   ============================================ */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-badge svg {
    color: #4ade80;
}



/* ============================================
   CHAT AVATAR PHOTO
   ============================================ */
.chat-avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ============================================
   LIVE SESSION STATUS
   ============================================ */
.live-status {
    color: #4ade80 !important;
    font-weight: 600;
}

.live-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

/* ============================================
   FOOTER - Professional
   ============================================ */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    text-align: center;
}

.footer-brand p {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-badges span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer-badges svg {
    color: #4ade80;
}

.footer-copy {
    margin-top: 1rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================================
   DISCOVERY SECTION
   ============================================ */
.discovery-section {
    padding: 2rem 1.5rem 2.5rem;
    text-align: center;
}

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
    text-align: left;
}

.discovery-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.discovery-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.15);
    transform: translateY(-2px);
}

.discovery-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.icon-discovery {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.discovery-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.discovery-item p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.mini-stars {
    display: inline-flex;
    gap: 1px;
    margin-right: 0.25rem;
    vertical-align: middle;
}

/* ============================================
   EXIT INTENT POPUP
   ============================================ */
.exit-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.exit-overlay.show {
    display: flex;
    animation: fadeInOverlay 0.3s ease;
}

.exit-popup {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: popIn 0.4s ease;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInOverlay {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.exit-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.exit-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.exit-popup h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.exit-popup > p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.exit-cta {
    display: inline-block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--gold), #f0a500);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
}

.exit-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 215, 0, 0.35);
}

.exit-dismiss {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.exit-dismiss:hover { opacity: 1; }

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), #f0a500, #ffd700);
    z-index: 10000;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delays for sequential reveal */
.scroll-reveal.stagger-1 { transition-delay: 0.05s; }
.scroll-reveal.stagger-2 { transition-delay: 0.12s; }
.scroll-reveal.stagger-3 { transition-delay: 0.19s; }
.scroll-reveal.stagger-4 { transition-delay: 0.26s; }
.scroll-reveal.stagger-5 { transition-delay: 0.33s; }
.scroll-reveal.stagger-6 { transition-delay: 0.40s; }

/* Section titles glow in on reveal */
.scroll-reveal .section-title,
.scroll-reveal.revealed .section-title {
    transition: text-shadow 1s ease 0.3s;
}

.scroll-reveal.revealed .section-title {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.15);
}

/* Faster reveals on mobile — reduce jank on WebView */
@media (max-width: 768px) {
    .scroll-reveal {
        transform: translateY(15px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .scroll-reveal.stagger-1 { transition-delay: 0s; }
    .scroll-reveal.stagger-2 { transition-delay: 0.05s; }
    .scroll-reveal.stagger-3 { transition-delay: 0.1s; }
    .scroll-reveal.stagger-4 { transition-delay: 0.15s; }
    .scroll-reveal.stagger-5 { transition-delay: 0.2s; }
    .scroll-reveal.stagger-6 { transition-delay: 0.25s; }
}

/* Parallax depth on mesh background */
.mesh-bg {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* === Mobile Performance Overrides === */
@media (max-width: 768px) {
    .mesh-glow {
        filter: blur(60px);
        animation-duration: 30s; /* Slower = fewer repaints */
    }
    
    /* Kill ALL backdrop-filter on mobile — WebView can't handle them during scroll.
       Replace with solid semi-transparent backgrounds that look nearly identical. */
    .site-nav {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 10, 26, 0.92);
    }
    
    .sticky-cta {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 10, 26, 0.97);
    }
    
    .proof-toast {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(20, 20, 50, 0.95);
    }
    
    .form-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(20, 20, 50, 0.85);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
    
    .return-card,
    .pending-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(20, 20, 50, 0.85);
    }
    
    .chat-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(20, 20, 50, 0.95);
    }
    
    .chat-input-bar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(20, 20, 50, 0.95);
    }
    
    .message.bot {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(20, 20, 50, 0.8);
    }
    
    .testimonial-card,
    .step-item,
    .astrologer-card-profile,
    .faq-item,
    .urgency-digit-box {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .hero-badge {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(20, 20, 50, 0.8);
    }
    
    /* Disable avatar border spin animation on mobile */
    .astrologer-card-profile .astrologer-card-avatar {
        animation: none;
    }
    
    /* Disable conic-gradient spinning border — very expensive composite layer */
    .astrologer-avatar::before {
        animation: none;
        background: linear-gradient(135deg, var(--purple-light), var(--gold));
    }
    
    /* Disable parallax on mobile — scroll handler won't apply transform */
    .mesh-bg {
        transform: none !important;
    }
}

/* === WebView Ultra-Performance Mode ===
   Added by JS when WebView detected (Instagram, Facebook, FBAV, etc.) */
body.webview #star-canvas {
    display: none !important;
}

body.webview .mesh-bg {
    display: none !important;
}

body.webview .scroll-progress {
    display: none !important;
}

body.webview .exit-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ============================================
   PROGRESSIVE FORM VALIDATION
   ============================================ */
.input-wrap {
    position: relative;
}

.input-wrap input {
    padding-right: 2.5rem;
    width: 100%;
}

.field-check {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0;
}

.field-check.valid::after {
    content: '✓';
    font-size: 1rem;
    color: #4ade80;
    font-weight: 700;
}

.field-check.valid { opacity: 1; }

.input-wrap input.field-valid {
    border-color: rgba(74, 222, 128, 0.3);
}

/* ============================================
   MICRO-INTERACTIONS
   ============================================ */
.btn-primary:hover, .urgency-cta:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-primary:active, .btn-submit:active {
    transform: translateY(0) scale(0.98);
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
    0%, 60% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.astrologer-card-profile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.1);
}



.faq-item:hover {
    border-color: rgba(255, 215, 0, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .hero {
        padding: 4.5rem 1rem 0.5rem;  /* Only space for navbar */
        min-height: auto;              /* Don't force height — let content decide */
    }
    .hero h1 {
        font-size: 1.85rem;
        margin-bottom: 0.5rem;
    }
    .hero p.subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    .hero-badge {
        margin-bottom: 1rem;
    }
    .social-proof {
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: 0.75rem;
    }
    .proof-number { font-size: 1.2rem; }

    /* Hide testimonial on mobile — it pushes form below fold */
    .hero-testimonial {
        display: none;
    }

    /* Hide the entire CTA wrapper on mobile — form IS the CTA */
    .hero-cta-wrapper {
        display: none !important;
    }

    /* Form section sits tight against hero — no gap */
    .form-section {
        padding: 0 1rem 2rem;
    }
    .form-card {
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-md);
    }
    .form-card h2 {
        font-size: 1.35rem;
    }

    .form-row { grid-template-columns: 1fr; }
    .message { max-width: 88%; }
    .chat-messages { padding: 1rem; }
    .proof-toast { left: 1rem; right: 1rem; max-width: none; }
    .icon-circle-lg { width: 52px; height: 52px; }
    .icon-circle-lg [data-lucide] { width: 24px; height: 24px; }
    .discovery-grid { grid-template-columns: 1fr; }
    .trust-badges { gap: 0.5rem; }
    .trust-badge { font-size: 0.65rem; }
    .step-indicator { gap: 0.5rem; }
    .step { font-size: 0.7rem; }
    .footer-links { flex-direction: column; gap: 0.75rem; align-items: center; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 1.75rem; }
    .btn-primary { font-size: 1rem; padding: 0.85rem 2rem; }
}

/* --- Loading Spinner --- */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

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

/* --- Global Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gold);
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(15deg);
}

/* ============================================
   URGENCY SECTION
   ============================================ */
.urgency-section {
    text-align: center;
    padding: 0.5rem 1.5rem 2rem;
    position: relative;
    z-index: 10;
    background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
}

.urgency-flame {
    margin-bottom: 0.75rem;
}

.urgency-flame svg {
    width: 40px;
    height: 40px;
    color: #ef4444;
    animation: flamePulse 1.5s ease-in-out infinite;
}

@keyframes flamePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

.urgency-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.urgency-price {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.urgency-price s {
    color: var(--text-muted);
    opacity: 0.6;
}

.urgency-highlight {
    color: #4ade80;
    font-weight: 700;
    font-size: 1.3rem;
}

.urgency-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.urgency-digit-box {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    min-width: 72px;
    text-align: center;
}

.urgency-digit-box span {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #fef2f2;
    line-height: 1;
}

.urgency-digit-box small {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.urgency-sep {
    font-size: 2rem;
    font-weight: 700;
    color: #ef4444;
    line-height: 1;
    padding-bottom: 1rem;
}

.urgency-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--gold), #f0a500);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
}

.urgency-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 215, 0, 0.35);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ============================================
   ASTROLOGER PROFILE CARDS
   ============================================ */
.astrologers-section {
    padding: 3rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.astrologers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.astrologer-card-profile {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-fast);
}

.astrologer-card-profile:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(107, 76, 230, 0.15);
}

.astrologer-card-profile .astrologer-card-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: avatarGlow 3s ease-in-out infinite;
    overflow: hidden;
}

.astrologer-card-profile .astrologer-card-avatar svg {
    width: 26px;
    height: 26px;
    color: #1a1a2e;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
}

.astrologer-card-profile h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.astrologer-card-specialty {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.astrologer-card-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
}

.astrologer-card-stars span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 0.35rem;
}

.astrologer-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.astrologer-card-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}



/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
    padding: 3rem 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--gold-dim);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--gold);
}

.faq-answer {
    padding: 0 1.25rem 1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   LIGHT THEME
   ============================================ */
body.light-theme {
    --bg-dark: #f5f3ff;
    --bg-card: #ffffff;
    --bg-surface: #f8f7ff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8a8aaa;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --gold-glow: rgba(107, 76, 230, 0.1);
}

body.light-theme .mesh-bg { opacity: 0.3; }
body.light-theme .hero { text-shadow: none; }
body.light-theme #star-canvas { opacity: 0.15; }

body.light-theme .astrologer-card-profile,
body.light-theme .faq-item,
body.light-theme .form-card,
body.light-theme .return-card,
body.light-theme .pending-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

body.light-theme .urgency-section {
    background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
}

body.light-theme .urgency-digit-box {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(220, 38, 38, 0.15);
}

body.light-theme .urgency-digit-box span { color: #1a1a2e; }
body.light-theme .urgency-banner strong { color: #b91c1c; }
body.light-theme .payment-methods { color: var(--text-secondary); }

/* ============================================
   RATING PROMPT
   ============================================ */
.rating-prompt {
    padding: 0.5rem 0;
    animation: messageSlide 0.3s ease-out;
}

.rating-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
}

.rating-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.rating-star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: transform 0.2s;
    color: var(--text-muted);
}

.rating-star:hover { transform: scale(1.2); }
.rating-star.active { color: var(--gold); }
.rating-star svg { width: 28px; height: 28px; }

.rating-comment {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    resize: none;
    margin-bottom: 0.75rem;
}

.rating-comment:focus { border-color: var(--gold-dim); }

.rating-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.btn-rating-submit {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--gold), #f0a500);
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-rating-skip {
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-share-reading {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-share-reading:hover {
    color: var(--gold);
    border-color: var(--gold-dim);
}

.btn-share-reading svg { width: 14px; height: 14px; }

/* ============================================
   MOBILE CRO OPTIMIZATIONS
   ============================================ */

/* Hero hook — curiosity text */
.hero-hook {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    color: var(--gold);
    font-style: italic;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.45s both;
}

/* Astrologer show/hide toggle */
.astrologer-extra-cards {
    display: contents; /* Show all on desktop */
}

.btn-show-more {
    display: none; /* Hidden on desktop */
    width: 100%;
    padding: 0.85rem 1.5rem;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-show-more:hover {
    background: var(--gold-glow);
    border-color: var(--gold);
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    /* Hide navbar CTA on mobile — sticky bar is enough */
    .hide-on-mobile {
        display: none !important;
    }

    /* Compact hero — get form visible faster */
    .hero.hero-compact {
        min-height: auto;
        padding: 3.25rem 1.25rem 0.5rem;
    }

    .hero h1 {
        font-size: 1.55rem;
        margin-bottom: 0.35rem;
        line-height: 1.2;
    }

    .hero p.subtitle {
        font-size: 0.88rem;
        margin-bottom: 0.35rem;
    }

    .hero-hook {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .social-proof {
        margin-bottom: 0.35rem;
        gap: 0.75rem;
    }

    .hero-badge {
        margin-bottom: 0.5rem;
        font-size: 0.72rem;
        padding: 0.3rem 0.9rem;
    }

    .guarantee-badge {
        font-size: 0.78rem;
    }

    /* Hero testimonial tighter on mobile */
    .hero-testimonial {
        margin-bottom: 0.25rem !important;
        padding: 0.6rem 0.8rem !important;
    }

    .hero-testimonial p {
        font-size: 0.82rem !important;
        margin-bottom: 0.15rem !important;
    }

    .hero-testimonial span {
        font-size: 0.72rem !important;
    }

    /* CTA button pulse to draw instant attention */
    .hero-cta-wrapper .btn-primary {
        animation: ctaPulse 2.5s ease-in-out infinite !important;
        font-size: 1rem;
        padding: 0.85rem 2rem;
    }

    @keyframes ctaPulse {
        0%, 100% { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3); }
        50% { box-shadow: 0 4px 35px rgba(255, 215, 0, 0.55), 0 0 60px rgba(255, 215, 0, 0.15); }
    }

    .form-section {
        padding: 0.75rem 1rem;
    }

    .form-card {
        padding: 1.25rem 1.15rem;
    }

    /* Collapse extra astrologer cards on mobile */
    .astrologer-extra-cards {
        display: none;
    }

    .astrologer-extra-cards.show {
        display: contents;
    }

    .btn-show-more {
        display: block;
    }

    /* === WEBVIEW PERFORMANCE: Disable heavy GPU animations === */
    #star-canvas {
        display: none !important;
    }

    .mesh-bg {
        display: none !important;
    }

    /* Disable non-essential animations */
    .hero-content {
        animation: none;
    }

    .hero-badge {
        animation: none;
    }

    .hero h1 {
        animation: none;
    }

    .hero p.subtitle {
        animation: none;
    }

    /* Lazy render below-fold sections */
    .testimonials-section,
    .astrologer-section,
    .faq-section,
    .how-it-works-section {
        content-visibility: auto;
        contain-intrinsic-size: 0 500px;
    }
}

/* ============================================
   HOW IT WORKS — 3 Steps
   ============================================ */
.how-it-works-section {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem;
    text-align: center;
}

.how-it-works-section .section-title,
.testimonials-section .section-title {
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.step-item {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: var(--transition-fast);
}

.step-item:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #f0a500);
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-item p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        padding: 1.25rem;
    }

    .how-it-works-section .section-title,
    .testimonials-section .section-title {
        text-align: center;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
    }

    .step-item strong {
        margin-bottom: 0.25rem;
    }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 2rem auto 0;
}

.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: left;
    transition: var(--transition-fast);
}

.testimonial-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.testimonial-author strong {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ============================================
   ASTROLABIO WEBGL / CANVAS BACKGROUND
   ============================================ */
.astrolabe-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

.astrolabe-bg.active {
    opacity: 0.4;
}

@media (max-width: 768px) {
    .astrolabe-bg {
        width: 400px;
        height: 400px;
    }
}

/* ============================================
   HERO TESTIMONIAL (Inline Social Proof)
   ============================================ */
.hero-testimonial {
    margin-top: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: var(--radius-sm);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    min-height: 80px;
    overflow: hidden;
}

.testimonial-slide {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.hero-testimonial p {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.hero-testimonial span {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-testimonial {
        margin-top: 0.5rem;
        padding: 0;
        min-height: 70px;
    }
    .testimonial-slide {
        padding: 0.6rem 1rem;
    }
    .hero-testimonial p {
        font-size: 0.82rem;
    }
}

/* ============================================
   TOPIC GRID (Step 1 Visual Picker)
   ============================================ */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.topic-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-sans);
    color: var(--text-secondary);
}

.topic-btn:hover {
    border-color: var(--gold-dim);
    background: rgba(255, 215, 0, 0.06);
    transform: translateY(-2px);
}

.topic-btn.selected {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
    transform: scale(1.03);
}

.topic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.topic-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
    opacity: 0.8;
    transition: all 0.25s ease;
}

.topic-btn.selected .topic-icon svg {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
}

.topic-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .topic-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .topic-btn {
        padding: 0.7rem 0.3rem;
    }
    .topic-icon {
        font-size: 1.3rem;
    }
    .topic-label {
        font-size: 0.72rem;
    }
}

/* ============================================
   2-STEP FORM TRANSITIONS
   ============================================ */
.form-step {
    animation: fadeInUp 0.4s ease-out;
}

.form-step h2 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.btn-next-step {
    margin-top: 0.5rem;
}

.btn-next-step:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.btn-next-step:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn-back-step {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.6rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

/* ============================================
   STICKY CTA - Improved
   ============================================ */
.sticky-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .sticky-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }
}

/* === Paywall Premium Button === */
.btn-pay {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px 24px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    backdrop-filter: blur(10px);
    color: #FFD700;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(255, 215, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: payBtn-glow 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.btn-pay:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.18));
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.25);
    transform: translateY(-1px);
}

.btn-pay:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(255, 215, 0, 0.15);
}

.btn-pay::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 215, 0, 0.08) 50%,
        transparent 60%
    );
    animation: payBtn-shine 5s ease-in-out infinite;
}

@keyframes payBtn-glow {
    0%, 100% { box-shadow: 0 2px 20px rgba(255, 215, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
    50% { box-shadow: 0 2px 25px rgba(255, 215, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
}

@keyframes payBtn-shine {
    0% { transform: translateX(-100%) rotate(25deg); }
    25%, 100% { transform: translateX(100%) rotate(25deg); }
}

/* ============================================
   CONNECTING OVERLAY
   ============================================ */
.connecting-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}
.connecting-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.connecting-content {
    text-align: center;
    padding: 2rem;
    max-width: 320px;
}

.connecting-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}
.connecting-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 3px solid var(--gold);
    position: relative;
    z-index: 2;
}
.connecting-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0;
    animation: connectPulse 1.5s ease-out infinite;
}
@keyframes connectPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

.connecting-content h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}
.connecting-content > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.connecting-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.connecting-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light, #ffe066));
    border-radius: 4px;
    width: 0%;
    transition: width 0.6s ease;
}

.connecting-status {
    color: var(--gold);
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
    min-height: 1.2em;
    transition: opacity 0.3s;
}
