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

/* Prevent double-tap zoom on all interactive elements */
button, a, input, textarea, select, [onclick], [role="button"] {
    touch-action: manipulation;
}

/* ── Stable Avatar System ─────────────────────────────────────────
   Every avatar container shows the initial letter immediately.
   When an image loads it fades in on top; on error it stays hidden.
   This prevents empty circles during loading / on broken URLs.   */

/* Containers that hold avatars need stacking context */
.contact-avatar-img,
.message-avatar,
.chat-hdr-avatar,
.profile-avatar,
.avatar-placeholder,
.avatar-small,
.avatar-large,
.avatar-medium,
.fpm-avatar-img,
.ul-avatar-img,
.quiz-branding-avatar,
.setup-avatar-inner,
.msg-notif-avatar {
    position: relative;
    overflow: hidden;
}

/* The initial letter – always visible behind the image */
.avatar-initial-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 700;
    color: #fff;
    font-size: inherit;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

/* The image layer – sits on top of the initial */
.avatar-img-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    opacity: 0;
    /* No CSS transition — handled by onload to prevent flicker on tab switch.
       Cached images fire onload almost instantly, so a transition just creates
       a visible flash of the initial-letter fallback underneath. */
    pointer-events: none;
}

/* Image loaded successfully → show immediately */
.avatar-img-layer.loaded {
    opacity: 1;
}

/* Image failed → stay invisible so initial stays visible */
.avatar-img-layer.failed {
    display: none;
}

:root {
    --primary-color: #E91E63;
    --primary-dark: #C2185B;
    --primary-light: #F06292;
    --secondary-color: #7C4DFF;
    --bg-gradient: linear-gradient(135deg, #E91E63 0%, #7C4DFF 100%);
    --text-primary: #212121;
    --text-secondary: #757575;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --border-color: #E0E0E0;
    --success-color: #66BB6A;
    --error-color: #EF5350;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App Container - Mobile First */
.screen {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    min-height: 100vh;
    width: 100%;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.screen.active {
    display: flex !important;
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

/* Welcome Screen */
#welcomeScreen {
    background: var(--bg-gradient);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.welcome-container {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.profile-image {
    margin-bottom: 32px;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.welcome-container h1 {
    color: white;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 40px;
}

/* Buttons */
.btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 16px 48px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin-top: 12px;
}

.btn-google {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-google:active {
    background: var(--bg-secondary);
}

/* Auth Screen & Verification Screen */
#authScreen, #verificationScreen {
    background: white;
    overflow-y: auto;
}

.auth-container {
    padding: 24px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    margin-bottom: 24px;
}

.auth-container h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.auth-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 12px;
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.auth-form .btn-primary {
    margin-top: 8px;
    max-width: none;
    background: var(--primary-color);
    color: white;
}

.divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    background: white;
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Chat Screen */
#chatScreen {
    flex-direction: column;
    background: white;
}

.chat-header {
    background: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-small {
    width: 42px;
    height: 42px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
}

.header-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.status {
    font-size: 12px;
    color: var(--success-color);
    display: flex;
    align-items: center;
}

.status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    margin-right: 6px;
}

.credits-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.credits-display:active {
    transform: scale(0.95);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #FAFAFA;
    margin-bottom: 80px;
}

.message {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    /* Animation entfernt – läuft jetzt nur über .new-message in chat-vibe.css */
}

.message.received {
    justify-content: flex-start;
}

.message.sent {
    justify-content: flex-end;
}

.message-avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.message.sent .message-avatar {
    order: 2;
    background: var(--border-color);
    color: var(--text-secondary);
}

.message-bubble {
    max-width: 75%;
}

.message.received .message-bubble {
    background: white;
    border-radius: 18px 18px 18px 4px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
}

.message.sent .message-bubble {
    background: var(--primary-color);
    border-radius: 18px 18px 4px 18px;
    padding: 12px 16px;
    color: white;
}

.message-bubble p {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.6;
    display: block;
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 2px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #bbb;
    border-radius: 50%;
    animation: typingBounce 1.2s infinite ease-in-out;
}

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

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.75); opacity: 0.4; }
    40% { transform: scale(1.15); opacity: 1; }
}

/* Contact list typing indicator */
.contact-preview.typing-active {
    color: #E91E63 !important;
    font-weight: 500;
}
.contact-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-style: italic;
}
.ct-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #E91E63;
    border-radius: 50%;
    animation: typingBounce 1.2s infinite ease-in-out;
}
.ct-dot:nth-child(2) { animation-delay: 0.2s; }
.ct-dot:nth-child(3) { animation-delay: 0.4s; }

/* Chat Input */
.chat-input-container {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
}

#messageInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 15px;
    outline: none;
}

.send-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.send-btn:active {
    transform: scale(0.95);
}

/* App Navigation */
.app-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* Verification Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-content {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.popup-icon {
    margin-bottom: 20px;
}

.popup-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.popup-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
}

.toast.error {
    background: var(--error-color);
}

.toast.success {
    background: var(--success-color);
}

/* Responsive Design – 9:16 Smartphone-Layout auf allen Geräten.
   Die tatsächlichen Desktop-Regeln kommen aus critical-ui-fix.css (!important).
   Diese Regeln sind der Basis-Fallback. */
@media (min-width: 768px) {
    .screen {
        width: calc(100vh * 9 / 16);
        max-width: 100vw;
        margin: 0 auto;
        box-shadow: var(--shadow-lg);
    }

    .chat-input-container,
    .app-nav {
        width: calc(100vh * 9 / 16);
        max-width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Credits Store Screen */
#creditsScreen {
    flex-direction: column;
    background: white;
    overflow-y: auto;
}

/* ============================================================================
   CREDITS STORE — cs- prefix (complete redesign)
   ============================================================================ */
.cs-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-bottom: 100px;
}

/* Top bar: back + balance */
.cs-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}
.cs-balance {
    display: flex;
    align-items: baseline;
    gap: 5px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 7px 14px;
}
.cs-balance-num {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.cs-balance-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main card */
.cs-card {
    position: relative;
    margin: 12px 20px 0;
    background: linear-gradient(165deg, #1a0a2e 0%, #0f0618 50%, #1a0525 100%);
    border: 1px solid rgba(233,30,99,0.18);
    border-radius: 28px;
    padding: 40px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}
.cs-card-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 180px;
    background: radial-gradient(ellipse, rgba(233,30,99,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Amount */
.cs-amount {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #FF80AB 50%, #E91E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}
.cs-amount-label {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* Per-credit highlight */
.cs-percredit {
    margin: 24px 0 0;
    position: relative;
    z-index: 1;
}
.cs-percredit-tag {
    display: inline-block;
    background: rgba(233,30,99,0.12);
    border: 1px solid rgba(233,30,99,0.28);
    color: #FF80AB;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 14px;
    letter-spacing: 0.2px;
}

/* Divider */
.cs-divider {
    width: 48px;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 28px 0;
    position: relative;
    z-index: 1;
}

/* Price */
.cs-price {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
    position: relative;
    z-index: 1;
}
.cs-price-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 8px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

/* Buy button */
.cs-buy {
    width: 100%;
    padding: 18px 24px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(233,30,99,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}
.cs-buy::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation: csShimmer 3s ease-in-out infinite;
}
@keyframes csShimmer {
    0%   { left: -100%; }
    100% { left: 100%; }
}
.cs-buy:active {
    transform: scale(0.97);
    box-shadow: 0 4px 16px rgba(233,30,99,0.3);
}

/* Trust row */
.cs-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 24px 20px 0;
}
.cs-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.25);
}
.cs-trust-item svg {
    opacity: 0.35;
}

/* (legacy credit-packages / credit-card classes removed) */

.card-icon {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.credit-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.card-price {
    margin-bottom: 16px;
}

.price {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.price-per {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

.savings-badge {
    background: var(--success-color);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.btn-purchase {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-purchase:active {
    transform: scale(0.98);
    background: var(--primary-dark);
}

/* (store-footer removed) */

/* Profile Screen */
#profileScreen {
    flex-direction: column;
    background: var(--bg-secondary);
    overflow-y: auto;
}

.profile-header {
    background: white;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.profile-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 20px 0 0 0;
}

.profile-container {
    padding: 20px;
    padding-bottom: 100px;
}

.profile-picture-section {
    background: white;
    padding: 32px 20px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.profile-picture-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.profile-picture {
    width: 120px;
    height: 120px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-picture-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.edit-picture-btn:active {
    transform: scale(0.95);
}

.profile-hint {
    color: var(--text-secondary);
    font-size: 13px;
}

.profile-form {
    background: white;
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.profile-form .input-group {
    margin-bottom: 20px;
}

.input-hint {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.profile-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.profile-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.profile-form .btn-primary {
    max-width: none;
    background: var(--primary-color);
    color: white;
    margin-top: 8px;
}

.profile-options {
    background: white;
    padding: 20px;
    border-radius: 20px;
}

.profile-options h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.option-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:last-child {
    border-bottom: none;
}

.option-btn:active {
    background: var(--bg-secondary);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-content span {
    font-size: 15px;
    font-weight: 500;
}

/* Purchase Success Popup */
.success-popup {
    overflow: visible;
}

.success-animation {
    position: relative;
    margin-bottom: 24px;
}

.success-checkmark {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    animation: confettiFall 1s ease-out forwards;
}

.confetti:nth-child(1) {
    left: 10%;
    background: #FF6B9D;
    animation-delay: 0.1s;
}

.confetti:nth-child(2) {
    left: 30%;
    background: #FEC163;
    animation-delay: 0.2s;
}

.confetti:nth-child(3) {
    left: 50%;
    background: #4ECDC4;
    animation-delay: 0.15s;
}

.confetti:nth-child(4) {
    left: 70%;
    background: #95E1D3;
    animation-delay: 0.25s;
}

.confetti:nth-child(5) {
    left: 90%;
    background: #F38181;
    animation-delay: 0.05s;
}

@keyframes confettiFall {
    0% {
        top: -10px;
        opacity: 1;
        transform: rotate(0deg);
    }
    100% {
        top: 100px;
        opacity: 0;
        transform: rotate(360deg);
    }
}

.new-balance {
    background: var(--primary-light);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.new-balance span {
    color: var(--text-secondary);
    font-size: 14px;
}

.new-balance strong {
    color: var(--primary-dark);
    font-size: 18px;
}

/* Delete Account Modal */
.delete-confirm-popup h3 {
    color: var(--error-color);
}

.popup-icon.warning {
    margin-bottom: 16px;
}

.warning-box {
    background: #FFEBEE;
    border-left: 4px solid var(--error-color);
    padding: 16px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: left;
}

.warning-box strong {
    display: block;
    margin-bottom: 12px;
    color: var(--error-color);
}

.warning-box ul {
    margin: 0;
    padding-left: 20px;
}

.warning-box li {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.btn-modal-cancel {
    flex: 1;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-cancel:hover {
    background: #E0E0E0;
}

.btn-modal-danger {
    flex: 1;
    background: var(--error-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-danger:hover {
    background: #D32F2F;
}
/* ============================================
   EMAIL VERIFICATION SCREEN
   ============================================ */

.verification-icon {
    text-align: center;
    margin-bottom: 24px;
}

.verification-icon svg {
    stroke: var(--primary-color);
    opacity: 0.8;
}

.verification-form {
    margin-top: 32px;
}

.code-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.code-input.filled {
    border-color: var(--success-color);
    background: rgba(76, 175, 80, 0.05);
}

.code-input.error {
    border-color: var(--error-color);
    background: rgba(244, 67, 54, 0.05);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.verification-error {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

.resend-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.resend-section p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.btn-resend {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-resend:hover {
    background: rgba(233, 30, 99, 0.1);
}

.btn-resend:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

.resend-timer {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.resend-timer span {
    font-weight: 700;
    color: var(--primary-color);
}

/* ========================================
   SETTINGS SCREENS
   ======================================== */

.settings-container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    padding-bottom: 100px;
}

.settings-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.settings-section h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settings-hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.setting-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.setting-info > div {
    flex: 1;
}

.setting-info strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.setting-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.radio-option {
    display: block;
    cursor: pointer;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: rgba(233, 30, 99, 0.02);
}

.radio-option input {
    display: none;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.radio-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input:checked ~ .radio-content .radio-check {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.radio-option input:checked ~ .radio-content .radio-check:after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-option input:checked {
    border-color: var(--primary-color);
}

.radio-content strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.radio-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.settings-footer-note {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    padding: 16px 20px;
    line-height: 1.5;
}

/* Notification & Privacy Settings Screens */
#notificationSettingsScreen,
#privacySettingsScreen {
    flex-direction: column;
    background: var(--bg-secondary);
}

/* ========================================
   LANGUAGE SETTINGS SCREEN
   ======================================== */

#languageSettingsScreen {
    flex-direction: column;
    background: var(--bg-primary, #0D0A0F);
}

.lang-settings-body {
    flex: 1;
    padding: 8px 20px 100px;
    overflow-y: auto;
}

.lang-settings-hint {
    font-size: 14px;
    color: var(--text-secondary, #B0B0B0);
    margin: 0 0 20px 0;
}

.lang-selector-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.07);
}

.lang-item:active {
    transform: scale(0.98);
}

.lang-item--active {
    background: rgba(233, 30, 99, 0.1);
    border-color: rgba(233, 30, 99, 0.25);
}

.lang-item--active:hover {
    background: rgba(233, 30, 99, 0.14);
}

.lang-item__flag {
    font-size: 28px;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.lang-item--active .lang-item__flag {
    background: rgba(233, 30, 99, 0.12);
}

.lang-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-item__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.lang-item--active .lang-item__name {
    color: #E91E63;
}

.lang-item__code {
    font-size: 12px;
    color: var(--text-secondary, #B0B0B0);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.lang-item__check {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(233, 30, 99, 0.12);
}

/* ========================================
   QUIZ ONBOARDING FLOW
   ======================================== */

/* Chat States Container */
.chat-state {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px; /* Account for app-nav */
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-state.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

.chat-state.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Profile Selection */
.profile-selection-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.profile-card:active {
    transform: translateY(-2px);
}

.profile-card-avatar {
    position: relative;
}

.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--error-color, #EF5350) 0%, #D32F2F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: white;
}

.avatar-medium {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--error-color, #EF5350) 0%, #D32F2F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin: 0 auto 20px;
}

.status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #27ae60;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    border: 2px solid white;
}

.profile-card-info {
    flex: 1;
}

.profile-card-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.profile-tagline {
    font-size: 14px;
    color: #718096;
    margin: 0 0 8px 0;
}

.profile-hint {
    font-size: 13px;
    color: var(--error-color, #EF5350);
    font-weight: 600;
    margin: 0;
}

.profile-card-arrow {
    color: #cbd5e0;
}

/* Quiz Container */
.quiz-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
}

.quiz-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.quiz-back-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #4a5568;
    transition: color 0.2s;
}

.quiz-back-btn:hover {
    color: var(--error-color, #EF5350);
}

.quiz-progress {
    flex: 1;
}

.quiz-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    text-align: center;
}

.quiz-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--error-color, #EF5350) 0%, #D32F2F 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px 20px;
}

.quiz-question-card {
    max-width: 500px;
    margin: 0 auto;
}

.quiz-question {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 30px 0;
    text-align: center;
    line-height: 1.4;
}

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

.quiz-choice {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quiz-choice:hover {
    border-color: var(--error-color, #EF5350);
    background: #fff5f5;
    transform: translateY(-2px);
}

.quiz-choice:active {
    transform: translateY(0);
}

/* Match Feedback */
.match-feedback {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.match-content {
    text-align: center;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.match-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 1s ease infinite;
}

.match-text {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
}

.match-subtext {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Unlock Modal */
.unlock-modal {
    position: fixed !important;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.5s ease;
}

.unlock-modal-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.unlock-card {
    background: white;
    border-radius: 25px;
    padding: 50px 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: unlockBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 1;
}

.unlock-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: rotate360 2s ease-in-out;
}

.unlock-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.unlock-subtitle {
    font-size: 18px;
    color: #718096;
    margin: 0 0 30px 0;
}

.unlock-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.unlock-stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--error-color, #EF5350);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #718096;
    font-weight: 600;
}

.unlock-cta {
    background: linear-gradient(135deg, var(--error-color, #EF5350) 0%, #D32F2F 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.unlock-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.4);
}

.unlock-cta:active {
    transform: translateY(-1px);
}

.unlock-badge {
    display: inline-block;
    background: #27ae60;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 5px;
    margin-left: 5px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes unlockBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Mobile Optimizations */
@media (max-width: 480px) {
    .profile-card {
        padding: 20px;
    }
    
    .avatar-large {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .quiz-question {
        font-size: 20px;
    }
    
    .unlock-title {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 30px;
    }
}

/* ========================================
   PROFILE SCREEN – no-header, full scroll
   ======================================== */

/* Screen itself: flex column, no overflow */
#profileScreen {
    display: none;
    flex-direction: column !important;
    overflow: hidden !important;
    position: fixed !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--profile-bg, var(--app-bg, #0a0a0a));
    z-index: 20;
}
#profileScreen.active,
#profileScreen[style*="display: flex"] { display: flex !important; }

/* Single scrollable wrapper (everything above the nav) */
.profile-scroll-body {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 80px; /* room for nav */
}

/* Top card – avatar, name, credits – part of the scroll */
.profile-top-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: calc(32px + env(safe-area-inset-top, 0px)) 20px 28px;
    background: linear-gradient(180deg, rgba(233,30,99,0.12) 0%, transparent 100%);
    text-align: center;
}
.profile-top-card .profile-avatar-ring {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E91E63, #FF6B35);
    padding: 3px;
    flex-shrink: 0;
}
.profile-top-card .profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent, #E91E63);
}
.profile-top-card .profile-avatar img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.profile-top-card .profile-avatar-edit {
    position: absolute;
    bottom: 0; right: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--accent, #E91E63);
    border: 2px solid var(--profile-bg, #0a0a0a);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #fff;
}
.profile-top-card .profile-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary, #fff);
}

/* Kill the old separate hero — keep nothing fixed above content */
#profileScreen .profile-hero { display: none !important; }

/* Content area: just padding, no separate scroll */
#profileScreen .profile-content {
    overflow: visible !important;
    flex: none !important;
    padding: 0 16px 0 !important;
    margin-top: 0 !important;
}

/* ========================================
   PROFILE SETUP SCREEN (one-time after registration)
   ======================================== */

#profileSetupScreen {
    background: var(--bg-primary, #0a0a0a);
    display: flex;
    /* Start content at top so overflow can scroll */
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    /* Full-screen scroll: essential for small phones */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

.profile-setup-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    /* top padding keeps header away from edge; bottom gives room for button */
    padding: 48px 24px 64px;
    animation: setupSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Progress dots */
.setup-progress {
    display: flex;
    gap: 8px;
    align-self: center;
}
.setup-step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s;
}
.setup-step.done  { background: var(--accent, #E91E63); opacity: 0.5; }
.setup-step.active { background: var(--accent, #E91E63); width: 24px; border-radius: 4px; }

/* Header */
.setup-header {
    text-align: center;
}
.setup-sparkle {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    animation: sparkleFloat 2.5s ease-in-out infinite;
}
@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}
.setup-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary, #fff);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}
.setup-subtitle {
    font-size: 15px;
    color: var(--text-secondary, rgba(255,255,255,0.55));
    line-height: 1.6;
    margin: 0;
    padding: 0 8px;
}

/* Avatar upload area */
.setup-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.setup-avatar-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E91E63, #FF6B35);
    padding: 3px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 0 0 rgba(233,30,99,0.4);
    animation: avatarPulse 2s ease-in-out infinite;
    transition: transform 0.2s;
}
.setup-avatar-ring:active { transform: scale(0.96); }
@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(233,30,99,0.35); }
    50%       { box-shadow: 0 0 0 10px rgba(233,30,99,0); }
}
.setup-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.setup-avatar-initial {
    font-size: 44px;
    font-weight: 700;
    color: var(--accent, #E91E63);
    line-height: 1;
    user-select: none;
}
.setup-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.setup-avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent, #E91E63);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid var(--bg-primary, #0a0a0a);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.setup-avatar-hint {
    font-size: 13px;
    color: var(--text-secondary, rgba(255,255,255,0.45));
    margin: 0;
}

/* Name input */
.setup-form {
    width: 100%;
    position: relative;
}
.setup-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary, rgba(255,255,255,0.5));
    margin-bottom: 8px;
}
.setup-input {
    width: 100%;
    padding: 16px 48px 16px 18px;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.08);
    background: var(--bg-secondary, #1a1a1a);
    color: var(--text-primary, #fff);
    font-size: 17px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.setup-input:focus {
    border-color: var(--accent, #E91E63);
    box-shadow: 0 0 0 4px rgba(233,30,99,0.12);
}
.setup-input::placeholder { color: rgba(255,255,255,0.25); }
.setup-char-count {
    position: absolute;
    right: 14px;
    bottom: 16px;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}

/* Buttons */
.setup-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.setup-btn-primary {
    width: 100%;
    padding: 16px 24px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #E91E63, #FF4081);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(233,30,99,0.4);
    transition: transform 0.18s, box-shadow 0.18s;
}
.setup-btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(233,30,99,0.3);
}
.setup-btn-skip {
    background: none;
    border: none;
    color: var(--text-secondary, rgba(255,255,255,0.4));
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.setup-btn-skip:hover { color: rgba(255,255,255,0.65); }

/* ── New setup: required / optional labels ── */
.setup-req    { color: #E91E63; margin-left: 2px; }
.setup-optional { color: rgba(255,255,255,0.3); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ── Setup: photos block – avatar centered top, cover banner below ── */
.setup-photos-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Avatar section */
.setup-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.setup-avatar-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E91E63, #FF6B35);
    padding: 3px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 0 4px var(--bg-primary, #0a0a0a), 0 0 20px rgba(233,30,99,0.35);
    animation: avatarPulse 2.2s ease-in-out infinite;
    transition: transform 0.2s;
}
.setup-avatar-ring:active { transform: scale(0.95); }

.setup-avatar-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin: 0;
}

/* Camera badge */
.setup-avatar-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent, #E91E63);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2.5px solid var(--bg-primary, #0a0a0a);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Cover banner */
.setup-cover-area {
    width: 100%;
    height: 120px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.15);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
}
.setup-cover-area:active { transform: scale(0.99); }
.setup-cover-area.has-cover { border-style: solid; border-color: rgba(255,255,255,0.1); }

.setup-cover-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.setup-cover-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: row; align-items: center; justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,0.45);
    font-size: 13px; font-weight: 600;
    pointer-events: none;
    transition: opacity 0.25s;
}
.setup-cover-area.has-cover .setup-cover-overlay { opacity: 0; }

/* ── Gender selector ── */
.setup-gender-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.setup-gender-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.5);
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.setup-gender-btn:active { transform: scale(0.97); }
.setup-gender-btn.selected {
    background: rgba(233,30,99,0.15);
    border-color: #E91E63;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(233,30,99,0.12);
}
.setup-gender-btn.selected svg { stroke: #E91E63; }

/* ── Textarea ── */
.setup-textarea {
    padding: 14px 18px !important;
    resize: none;
    line-height: 1.55;
}

/* ── Light mode overrides ── */
[data-theme="light"] #profileSetupScreen { background: #f8f8f8; }
[data-theme="light"] .setup-avatar-inner { background: #f0f0f0; }
[data-theme="light"] .setup-input {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    color: #111;
}
[data-theme="light"] .setup-input:focus { border-color: #E91E63; }
[data-theme="light"] .setup-title { color: #111; }
[data-theme="light"] .setup-avatar-over { box-shadow: 0 0 0 4px #f8f8f8; }
[data-theme="light"] .setup-gender-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,0.4); }
[data-theme="light"] .setup-cover-area { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); }

/* ════════════════════════════════════════
   AUTH MODAL (bottom-sheet on profile landing)
   ════════════════════════════════════════ */
.aum-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex; align-items: flex-end; justify-content: center;
    animation: aumFadeIn 0.28s ease both;
}
@keyframes aumFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.aum-sheet {
    width: 100%; max-width: 480px;
    background: var(--bg-secondary, #141414);
    border-radius: 28px 28px 0 0;
    padding: 0 24px 40px;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
    animation: aumSlideUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
    max-height: 92svh; overflow-y: auto;
}
@keyframes aumSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.aum-drag-handle {
    width: 40px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
    margin: 14px auto 20px;
}
.aum-brand {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 22px;
}
.aum-brand-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #E91E63;
    box-shadow: 0 0 10px rgba(233,30,99,0.6);
}
.aum-brand-name {
    font-size: 22px; font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary, #fff);
}

/* Tabs */
.aum-tabs {
    display: flex; position: relative;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 26px;
}
.aum-tab {
    flex: 1; padding: 10px;
    border: none; background: none;
    color: rgba(255,255,255,0.45);
    font-size: 14px; font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative; z-index: 1;
}
.aum-tab.active { color: var(--text-primary, #fff); }
.aum-tab-indicator {
    position: absolute; top: 4px; left: 4px;
    width: calc(50% - 4px); height: calc(100% - 8px);
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.aum-tab-indicator.right { transform: translateX(100%); }

/* Forms */
.aum-form { display: none; flex-direction: column; gap: 14px; }
.aum-form.active { display: flex; }

/* Floating-label fields */
.aum-field {
    position: relative;
}
.aum-input {
    width: 100%; box-sizing: border-box;
    padding: 20px 16px 8px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.06);
    color: var(--text-primary, #fff);
    font-size: 16px; font-weight: 500;
    outline: none;
    transition: border-color 0.22s, box-shadow 0.22s;
}
.aum-input:focus {
    border-color: #E91E63;
    box-shadow: 0 0 0 4px rgba(233,30,99,0.12);
}
.aum-label {
    position: absolute; left: 16px; top: 14px;
    font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,0.35);
    pointer-events: none;
    transition: top 0.18s, font-size 0.18s, color 0.18s;
}
.aum-input:focus ~ .aum-label,
.aum-input:not(:placeholder-shown) ~ .aum-label {
    top: 7px; font-size: 10px; color: #E91E63; letter-spacing: 0.4px;
}

/* Buttons */
.aum-btn-primary {
    width: 100%; padding: 15px 20px;
    border: none; border-radius: 14px;
    background: linear-gradient(135deg, #E91E63 0%, #FF4081 100%);
    color: #fff; font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(233,30,99,0.38);
    transition: transform 0.18s, box-shadow 0.18s;
    margin-top: 4px;
}
.aum-btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(233,30,99,0.28);
}
.aum-btn-google {
    width: 100%; padding: 13px 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary, #fff); font-size: 15px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.aum-btn-google:active { background: rgba(255,255,255,0.1); }

/* Light mode */
[data-theme="light"] .aum-sheet { background: #fff; }
[data-theme="light"] .aum-input { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #111; }
[data-theme="light"] .aum-label { color: rgba(0,0,0,0.35); }
[data-theme="light"] .aum-btn-google { border-color: rgba(0,0,0,0.12); color: #111; }

/* Forgot password button */
.forgot-password-row {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 15px;
}
.btn-forgot-password {
    background: none;
    border: none;
    color: #E91E63;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}
.btn-forgot-password:hover { text-decoration: underline; }


/* ============================================================================
   LUCKY WHEEL MODAL
   ============================================================================ */

/* Overlay */
.lwm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lwm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lwm-overlay.lwm-visible .lwm-backdrop { opacity: 1; }

/* Panel */
.lwm-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 370px;
    background: linear-gradient(170deg, #1a0e2e 0%, #0c0818 55%, #130012 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 32px;
    padding: 30px 26px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 24px 80px rgba(0,0,0,0.85),
        0 0 100px rgba(168,85,247,0.13),
        inset 0 1px 0 rgba(255,255,255,0.07);
    overflow: hidden;
    transform: scale(0.86) translateY(28px);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
}

.lwm-overlay.lwm-visible .lwm-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Gradient top border line */
.lwm-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168,85,247,0.7), rgba(233,30,99,0.6), transparent);
    pointer-events: none;
}

/* Radial ambient top glow */
.lwm-panel::after {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 280px; height: 160px;
    background: radial-gradient(ellipse, rgba(168,85,247,0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* Close button */
.lwm-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    z-index: 2;
}
.lwm-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

/* Header */
.lwm-header { text-align: center; width: 100%; padding-top: 4px; }

.lwm-icon {
    font-size: 42px;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
    animation: lwmFloat 3s ease-in-out infinite;
}
@keyframes lwmFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-6px) scale(1.06); }
}

.lwm-title {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 5px;
    background: linear-gradient(135deg, #e0b0ff 0%, #e91e63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lwm-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin: 0 0 12px;
    font-weight: 500;
}

.lwm-streak {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(251,146,60,0.12);
    border: 1px solid rgba(251,146,60,0.3);
    color: #fb923c;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Wheel container */
.lwm-wheel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter:
        drop-shadow(0 0 20px rgba(168,85,247,0.3))
        drop-shadow(0 0 50px rgba(233,30,99,0.15));
}

.lwm-pointer {
    position: absolute;
    top: -14px;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(233,30,99,0.8));
}

#lwmCanvas {
    display: block;
    border-radius: 50%;
}

/* Result reveal */
.lwm-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    animation: lwmResultPop 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes lwmResultPop {
    from { transform: scale(0.5) translateY(20px); opacity: 0; }
    to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

.lwm-win-badge {
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(233,30,99,0.2));
    border: 1px solid rgba(168,85,247,0.35);
    border-radius: 24px;
    padding: 12px 32px;
    box-shadow: 0 0 40px rgba(168,85,247,0.2);
}

.lwm-win-number {
    font-size: 52px;
    font-weight: 900;
    background: linear-gradient(135deg, #d8b4fe, #e91e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -2px;
}

.lwm-win-credits-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.lwm-win-msg {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin: 0;
    text-align: center;
}
.lwm-win-msg.lwm-jackpot { color: #fbbf24; font-size: 15px; }
.lwm-win-msg.lwm-great   { color: #f9a8d4; }

/* Spin button */
.lwm-spin-btn {
    width: 100%;
    padding: 17px 24px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #9333ea 0%, #e91e63 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 6px 30px rgba(147,51,234,0.45), 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.18s, box-shadow 0.2s, opacity 0.18s;
    position: relative;
    overflow: hidden;
}
.lwm-spin-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}
.lwm-spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(147,51,234,0.55), 0 4px 12px rgba(0,0,0,0.3);
}
.lwm-spin-btn:hover::before { left: 100%; }
.lwm-spin-btn:active  { transform: scale(0.97) translateY(0); }
.lwm-spin-btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

/* Already-spun / countdown state */
.lwm-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.lwm-countdown-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    width: 100%;
}

.lwm-countdown-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.lwm-countdown {
    font-size: 32px;
    font-weight: 800;
    color: rgba(255,255,255,0.72);
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

.lwm-continue-btn {
    width: 100%;
    padding: 15px 24px;
    border: 1.5px solid rgba(147,51,234,0.3);
    border-radius: 18px;
    background: rgba(147,51,234,0.08);
    color: #c084fc;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lwm-continue-btn:hover {
    background: rgba(147,51,234,0.16);
    border-color: rgba(147,51,234,0.5);
    color: #d8b4fe;
}
.lwm-continue-btn:active { background: rgba(147,51,234,0.22); }

/* Confetti */
.lwm-confetti {
    position: absolute;
    top: 0;
    pointer-events: none;
    animation: lwmConfettiFall linear forwards;
}
@keyframes lwmConfettiFall {
    0%   { transform: translateY(-10px) rotate(0deg);    opacity: 1; }
    100% { transform: translateY(420px) rotate(620deg);  opacity: 0; }
}

/* (btn-purchase--hero removed — replaced by .cs-buy) */

/* ============================================================
   VIVIANA AI – Typing Indicator
   ============================================================ */
.typing-bubble {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    min-width: 56px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: vivianaTyping 1.2s infinite ease-in-out;
    display: inline-block;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

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