/* Astrological Bot - Mystical Cosmic Theme */

:root {
    --primary: #8b5cf6;
    --secondary: #6366f1;
    --accent: #a78bfa;
    --cosmic-purple: #7c3aed;
    --cosmic-blue: #3b82f6;
    --glow: rgba(139, 92, 246, 0.5);
    --cosmic-glow: rgba(99, 102, 241, 0.4);
    
    --bg-dark: #0a0514;
    --bg-darker: #050209;
    --bg-card: rgba(139, 92, 246, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 100px;
    
    --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow: auto;
}

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

/* ===== COSMIC BACKGROUND ===== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #050209 0%,
        #1a0a2e 20%,
        #16213e 40%,
        #0f3460 60%,
        #1a0a2e 80%,
        #050209 100%
    );
    background-size: 400% 400%;
    animation: cosmicShift 25s ease infinite;
    z-index: -3;
}

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

.bg-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 40%, white, transparent),
        radial-gradient(1px 1px at 33% 60%, white, transparent),
        radial-gradient(1px 1px at 55% 80%, white, transparent);
    background-size: 200% 200%;
    animation: starTwinkle 20s linear infinite;
    opacity: 0.6;
    z-index: -2;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.6; transform: translate(0, 0); }
    50% { opacity: 0.8; transform: translate(-10px, -10px); }
}

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

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: cosmicFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--cosmic-purple);
    top: -150px;
    right: -150px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--cosmic-blue);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

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

@keyframes cosmicFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    25% { 
        transform: translate(40px, -40px) scale(1.15);
        opacity: 0.4;
    }
    50% { 
        transform: translate(-30px, 30px) scale(0.95);
        opacity: 0.3;
    }
    75% { 
        transform: translate(30px, 40px) scale(1.1);
        opacity: 0.35;
    }
}

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

/* ===== SCREENS ===== */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
}

/* Profile screen specific - allow scrolling */
#profile-screen {
    overflow: hidden;
    height: 100vh;
}

#profile-screen .screen-content {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.screen-content {
    width: 100%;
    padding: 24px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    min-height: 100%;
    overflow-y: auto;
    max-height: 100vh;
}

/* Profile screen content - extra padding for fixed button */
#profile-screen .screen-content {
    padding-bottom: 120px;
}

/* ===== INTRO SCREEN ===== */
.logo-container {
    text-align: center;
    animation: cosmicAppear 1s var(--ease-out-expo) forwards;
}

@keyframes cosmicAppear {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-icon.cosmic-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--cosmic-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--glow), 0 0 80px var(--cosmic-glow);
    animation: cosmicPulse 3s ease-in-out infinite;
    position: relative;
}

.logo-icon.cosmic-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--cosmic-blue));
    opacity: 0.3;
    filter: blur(20px);
    animation: cosmicPulse 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes cosmicPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 40px var(--glow), 0 0 80px var(--cosmic-glow);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 60px var(--glow), 0 0 120px var(--cosmic-glow);
    }
}

.logo-emoji {
    font-size: 64px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.title {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: 0 0 30px var(--glow);
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

.intro-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.intro-text {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-full);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.trust-icon {
    font-size: 18px;
}

.trust-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.primary-btn {
    width: 100%;
    max-width: calc(100% - 48px);
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px var(--glow);
    position: relative;
    overflow: hidden;
}

/* Fixed button for profile screen */
#profile-submit-btn {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 100;
    margin: 0;
    border-radius: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 20px 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
}

/* Adjust button styling when fixed */
#profile-submit-btn::before {
    border-radius: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.primary-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cosmic-blue), var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--glow);
}

.primary-btn:hover::before {
    opacity: 1;
}

.btn-text, .btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    font-size: 20px;
}

/* ===== PROFILE SETUP SCREEN ===== */
.setup-header {
    text-align: center;
    width: 100%;
}

.setup-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.setup-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.profile-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 100px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.15);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -4px;
}

/* ===== AUTОCOMPLETE ===== */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: -2px;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

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

.autocomplete-item:hover {
    background: rgba(139, 92, 246, 0.2);
}

.autocomplete-item:active {
    background: rgba(139, 92, 246, 0.3);
}

/* ===== LANGUAGE OPTIONS ===== */
.language-options {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    flex: 1;
    transition: all 0.3s ease;
}

.language-option:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.15);
}

.language-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.language-option input[type="radio"]:checked + span {
    color: var(--primary);
    font-weight: 600;
}

.language-option span {
    font-size: 14px;
    color: var(--text-primary);
    user-select: none;
}

/* ===== CHAT SCREEN ===== */
.chat-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(10, 5, 20, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: scale(1.1);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cosmic-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--cosmic-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--glow);
}

.cosmic-symbol {
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.chat-header-text {
    flex: 1;
}

.chat-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.chat-status {
    font-size: 13px;
    color: var(--text-muted);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 120px;
    /* Start messages from bottom */
    justify-content: flex-end;
}

.chat-message {
    display: flex;
    gap: 12px;
    animation: messageSlide 0.3s ease-out;
}

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

.chat-message.user {
    flex-direction: row-reverse;
}

.message-bubble {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message.ai .message-bubble {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
    border-top-left-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chat-message.user .message-bubble {
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    color: white;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 12px var(--glow);
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 16px 20px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: typingBounce 1.4s ease-in-out infinite;
}

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

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

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

.chat-input-container {
    padding: 16px 20px 80px 20px;
    background: rgba(10, 5, 20, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--glow);
}

.send-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--glow);
}

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

/* ===== MINUTES DISPLAY ===== */
.minutes-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
}

.minutes-icon {
    font-size: 16px;
}

.minutes-text {
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.buy-time-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.buy-time-btn:hover {
    background: rgba(139, 92, 246, 0.5);
    transform: scale(1.1);
}

/* ===== STORE SCREEN ===== */
.store-content {
    padding: 16px 24px 200px 24px;
    gap: 24px;
    max-height: 100vh;
    overflow-y: auto;
}

.store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.store-title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.store-info {
    text-align: center;
    width: 100%;
}

.store-avatar-container {
    margin-bottom: 20px;
}

.cosmic-avatar-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--cosmic-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--glow);
}

.cosmic-symbol-large {
    font-size: 48px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.current-minutes-card {
    background: var(--bg-card);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.current-minutes-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.current-minutes-value {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

.store-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pricing-options-store {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 0 2px var(--primary);
}

.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

.pricing-amount {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-minutes {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-buy-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.pricing-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

.store-footer-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.store-bottom-action {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 16px 24px 80px 24px;
    background: linear-gradient(to top, 
        rgba(10, 5, 20, 0.95) 0%,
        rgba(10, 5, 20, 0.85) 70%,
        transparent 100%
    );
    backdrop-filter: blur(20px);
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.store-buy-now-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 18px;
    font-family: inherit;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px var(--glow);
    margin-bottom: 8px;
}

.store-buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--glow);
}

.store-bottom-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

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

.modal-content {
    background: var(--bg-darker);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.paywall-content {
    padding: 32px 24px 24px 24px;
    max-height: 90vh;
    overflow-y: auto;
}

.paywall-header {
    text-align: center;
    margin-bottom: 32px;
}

.paywall-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.paywall-title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.paywall-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pricing-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.paywall-footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 16px;
}

.paywall-bottom-action {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.paywall-buy-now-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 18px;
    font-family: inherit;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px var(--glow);
    margin-bottom: 8px;
}

.paywall-buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--glow);
}

.paywall-bottom-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ===== CONTACT BUTTON ===== */
.contact-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.contact-icon {
    font-size: 20px;
}

/* ===== CONTACT MODAL ===== */
.contact-content {
    padding: 32px 24px;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 24px;
}

.contact-icon-large {
    font-size: 48px;
    margin-bottom: 12px;
}

.contact-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.contact-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.contact-submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--glow);
    margin-top: 8px;
}

.contact-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-success {
    text-align: center;
    padding: 32px 16px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cosmic-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin: 0 auto 16px;
    font-weight: 700;
}

.success-message {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

/* ===== FOOTER ===== */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: rgba(10, 5, 20, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
    z-index: 50;
}

.app-footer p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.pricing-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar,
.screen-content::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.screen-content::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb,
.screen-content::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.screen-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

