@font-face {
    font-family: 'Cinzel';
    src: url('/fonts/Cinzel-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel';
    src: url('/fonts/Cinzel-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden;
}

/* ========== CSS VARIABLES ========== */
:root {
    --primary-purple: #6B46C1;
    --mystic-gold: #FFD700;
    --mystic-purple: #b8a7d6;
    --cosmic-black: #0A0A0F;
    --soft-white: #F5F5F5;
    --fading-amber: #FFA500;
    --glass-white: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --deep-purple: rgba(107, 70, 193, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 85px; /* Add padding for fixed header */
	/* Prevent layout shift */
    overflow-anchor: none;
}

/* ========== GLASS HEADER ========== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

/* Header Links */
.site-link,
.back-link {
    color: var(--mystic-gold);
    text-decoration: none;
    font-size: 1.1em;
    transition: opacity 0.3s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.site-link:hover,
.back-link:hover {
    opacity: 0.8;
}

/* Auth Container */
#auth-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
}

/* User Info */
.glass-header .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    position: static !important;
    top: auto !important;
    right: auto !important;
    z-index: auto;
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
}

.user-email {
    color: var(--mystic-gold);
    font-size: 0.9rem;
}

.sign-out-btn {
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    color: var(--mystic-gold);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.sign-out-btn:hover {
    background: var(--deep-purple);
    transform: scale(1.05);
}

/* Fortune Widget */
.fortune-widget {
    background: var(--deep-purple);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: transform 0.3s;
    min-height: 44px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.fortune-widget:hover {
    transform: scale(1.05);
}

.fortune-widget.low {
    animation: pulse 2s ease-in-out infinite;
    border-color: rgba(255, 165, 0, 0.5);
    background: rgba(255, 165, 0, 0.1);
}

.fortune-label {
    color: #b8a7d6;
    margin-right: 10px;
    font-size: 0.9rem;
}

.fortune-amount {
    color: var(--mystic-gold);
    font-size: 1.2em;
    font-weight: bold;
}

/* Main App Container */
#app {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.app-header {
    text-align: center;
    margin-bottom: 40px;
}

.app-header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #d4a574 0%, #f4e4c1 50%, #d4a574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.whisper-text {
    font-style: italic;
    opacity: 0.8;
    font-size: 1.1em;
    color: #b8a7d6;
    animation: fadeIn 2s ease-in;
}

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

/* .user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
	z-index: 100;
} */

.main-content {
    text-align: center;
    padding: 60px 20px;
}

.oracle-message {
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.oracle-message h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #e4c4ff;
}

/* Reading Options */
.reading-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.cta-button {
    padding: 20px 40px;
    background: linear-gradient(135deg, #8a2be2 0%, #4b0082 100%);
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(138, 43, 226, 0.5);
    border-color: rgba(212, 165, 116, 0.6);
}

.cta-button-premium {
    background: linear-gradient(135deg, #d4a574 0%, #b8936d 100%);
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.4);
}

.cta-button-premium:hover {
    box-shadow: 0 6px 30px rgba(212, 165, 116, 0.6);
}

.button-subtitle {
    font-size: 0.7em;
    opacity: 0.9;
    margin-top: 5px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.portal-subtitle {
    margin-top: 20px;
    font-size: 0.9em;
    opacity: 0.7;
}

/* Auth Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal-overlay.hidden {
    display: none;
}

.auth-modal {
    background: linear-gradient(135deg, rgba(42, 26, 78, 0.95) 0%, rgba(26, 15, 46, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.4);
    border: 1px solid rgba(212, 165, 116, 0.2);
    position: relative;
}

.auth-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    color: #d4a574;
    /* Reset any inherited button styles */
    background: transparent;
    border: none;
    padding: 0;
    width: auto;
    min-height: auto;
    border-radius: 0;
}

.auth-modal .close-modal:hover {
    opacity: 1;
    background: transparent;
}

.logo {
    font-size: 48px;
    text-align: center;
    margin-bottom: 10px;
    animation: pulse 3s ease-in-out infinite;
}

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

.modal-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.8em;
    color: #e4c4ff;
}

.oracle-greeting {
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #b8a7d6;
    font-size: 1.1em;
    line-height: 1.4;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.message.error {
    background: rgba(255, 67, 54, 0.2);
    border: 1px solid rgba(255, 67, 54, 0.5);
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.message.info {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.5);
}

.auth-form {
    animation: fadeIn 0.5s ease-in;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    color: #d4a574;
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

input:focus {
    outline: none;
    border-color: rgba(212, 165, 116, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #8a2be2 0%, #4b0082 100%);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
    border-color: rgba(212, 165, 116, 0.5);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-secondary {
    background: transparent;
    border: 2px solid rgba(212, 165, 116, 0.3);
    box-shadow: none;
}

.button-secondary:hover:not(:disabled) {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(212, 165, 116, 0.5);
}

.hidden {
    display: none !important;
}

.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Reading area (placeholder for now) */
.reading-area {
    margin-top: 40px;
    padding: 40px;
    background: rgba(138, 43, 226, 0.05);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 20px;
    min-height: 400px;
}

.mystical-divider {
    text-align: center;
    margin: 20px 0;
    font-size: 0.9em;
    opacity: 0.6;
    color: #d4a574;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    body {
        padding-top: 100px; /* Adjust for mobile two-row header */
    }
    
    /* Glass header mobile layout */
    .glass-header {
        padding: 0;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .glass-header .site-link,
    .glass-header .back-link {
        grid-column: 1;
        grid-row: 1;
        padding: 12px 20px;
        justify-content: flex-start;
        border-bottom: 1px solid var(--glass-border);
        border-right: 1px solid var(--glass-border);
        min-height: 44px;
    }
    
    .glass-header .fortune-widget {
        grid-column: 2;
        grid-row: 1;
        padding: 12px 20px;
        justify-content: center;
        border-bottom: 1px solid var(--glass-border);
        background: transparent;
        border-radius: 0;
        font-size: 0.85rem;
    }
    
    .glass-header #auth-container {
        grid-column: 1 / span 2;
        grid-row: 2;
        padding: 12px 20px;
        min-height: 44px;
        justify-content: center;
        display: flex !important;
    }
    
    .user-email {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .site-title {
        font-size: 3rem;
        min-height: 100px;
    }
}

.departure-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.departure-gate {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98), rgba(20, 20, 40, 0.98));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    color: #F5F5F5;  /* Light text for readability */
}

.oracle-seal {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.departure-title {
    color: #FFD700;
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
}

.fortune-status {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.fortune-glow {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-weight: bold;
}

.departure-options {
    margin-bottom: 2rem;
}

.departure-btn {
    width: 100%;
    padding: 1.5rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: #F5F5F5;  /* Light text */
    text-align: left;
    display: block;
}

.departure-btn:hover {
    transform: translateX(5px);
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.btn-icon {
    font-size: 1.5rem;
    display: inline-block;
    margin-right: 1rem;
}

.btn-text {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #FFD700;
}

.btn-subtitle {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.cancel-departure {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.cancel-departure:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
}






/* Default - hide mobile nav and menu sheet on desktop */
.mobile-nav,
.mobile-menu-sheet {
  display: none;
}

@media (max-width: 768px) {
  /* Hide the glass header on mobile */
  .glass-header {
    display: none !important;
  }

  /* ========================================
     A2 MOBILE NAV - Fortune Hero Design
     ======================================== */
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to top, #0A0A0F 0%, #12121A 100%);
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Row 1: Fortune Hero Button */
  .mobile-fortune-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3) 0%, rgba(75, 0, 130, 0.4) 100%);
    border: none;
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .mobile-fortune-hero:active {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.5) 0%, rgba(75, 0, 130, 0.6) 100%);
  }

  .fortune-sparkle {
    font-size: 20px;
  }

  .fortune-amount-mobile {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    font-family: 'Georgia', serif;
  }

  .fortune-word {
    font-size: 14px;
    color: rgba(212, 165, 116, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .fortune-tap-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 8px;
  }

  /* Row 2: Navigation Controls */
  .mobile-nav-controls {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    min-height: 52px;
  }

  .mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    min-height: 48px; /* Touch target */
  }

  .mobile-nav-btn:active {
    background: rgba(255, 255, 255, 0.05);
    color: #FFD700;
  }

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

  .mobile-nav-btn .nav-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Language button specific */
  .mobile-nav-lang {
    flex-direction: row;
    gap: 6px;
  }

  .mobile-nav-lang .lang-flag {
    font-size: 18px;
  }

  .mobile-nav-lang .lang-code {
    font-size: 12px;
    font-weight: 600;
    color: rgba(212, 165, 116, 0.9);
  }

  /* Dividers between nav buttons */
  .mobile-nav-btn:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Body padding for bottom nav */
  body {
    padding-top: 0;
    padding-bottom: calc(100px + env(safe-area-inset-bottom)); /* Two rows now */
  }

  /* ========================================
     MOBILE MENU BOTTOM SHEET
     ======================================== */
  .mobile-menu-sheet {
    display: none; /* Shown via JS */
    position: fixed;
    inset: 0;
    z-index: 200;
  }

  .mobile-menu-sheet.open {
    display: block;
  }

  .menu-sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
  }

  .menu-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #0A0A0F 0%, #1a1a2e 100%);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 12px 0 calc(20px + env(safe-area-inset-bottom));
    animation: slideUp 0.3s ease;
  }

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

  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .menu-sheet-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12px 16px 8px;
  }

  .menu-sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
  }

  .menu-sheet-close {
    position: absolute;
    right: 16px;
    top: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .menu-sheet-close:active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
  }

  .menu-sheet-nav {
    display: flex;
    flex-direction: column;
  }

  .menu-sheet-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .menu-sheet-item:active {
    background: rgba(255, 255, 255, 0.05);
  }

  .menu-sheet-item .menu-icon {
    font-size: 24px;
    width: 32px;
    text-align: center;
  }

  .menu-sheet-item .menu-label {
    flex: 1;
  }

  .menu-sheet-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 24px;
  }

  .menu-hint {
    font-size: 11px;
    color: rgba(212, 165, 116, 0.7);
    margin-left: auto;
    font-style: italic;
  }

  .menu-sheet-email {
    padding: 8px 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-sheet-depart {
    color: rgba(255, 100, 100, 0.8);
  }

  .menu-sheet-depart:active {
    color: rgba(255, 100, 100, 1);
  }
}


/* Payment Modal Styles */

.payment-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.payment-tier {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.2), rgba(184, 167, 214, 0.1));
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-align: center;
}

.payment-tier:hover {
    transform: translateY(-5px);
    border-color: var(--mystic-gold);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.payment-tier.featured {
    border-color: var(--mystic-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(184, 167, 214, 0.1));
}

.tier-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--mystic-gold);
    color: var(--cosmic-black);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.tier-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e4c4ff;
    margin-bottom: 15px;
}

.tier-price {
    margin: 15px 0;
}

.price-usd {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--mystic-gold);
}

.price-local {
    display: block;
    font-size: 0.9rem;
    color: #9a8fb8;
    margin-top: 5px;
}

.tier-fortune {
    font-size: 1.1rem;
    color: #b8a7d6;
    margin: 10px 0;
}

.tier-discount {
    background: rgba(255, 215, 0, 0.2);
    color: var(--mystic-gold);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin: 10px 0;
    display: inline-block;
}

.tier-rate {
    font-size: 0.8rem;
    color: #7a6b9a;
    margin-top: 10px;
}

.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #9a8fb8;
    font-size: 0.9rem;
    margin: 20px 0;
}

.payment-loading {
    text-align: center;
    padding: 40px;
}

.payment-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--mystic-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #9a8fb8;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #e4c4ff;
}

.modal-subtitle {
    color: #9a8fb8;
    font-size: 0.95rem;
    margin-top: -10px;
    margin-bottom: 20px;
}

.modal-dismiss {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #b8a7d6;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    min-height: 44px;
    font-size: 0.95rem;
}

.modal-dismiss:hover {
    background: var(--glass-white);
}

@media (max-width: 768px) {
    .payment-tiers {
        grid-template-columns: 1fr;
    }
    
    .tier-name {
        font-size: 1.1rem;
    }
    
    .price-usd {
        font-size: 1.5rem;
    }
}




/* Language Indicator Styles */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-indicator {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 20px;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.language-indicator:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(212, 165, 116, 0.5);
    transform: translateY(-1px);
}

.language-flag {
    font-size: 1.1em;
}

.language-code {
    font-weight: 600;
    color: #d4a574;
}

/* Language Menu Overlay */
.language-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.language-menu {
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 100%);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 15px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.language-menu h3 {
    color: #d4a574;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.language-option {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: white;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-option:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(212, 165, 116, 0.4);
    transform: translateX(5px);
}

.language-option.active {
    background: rgba(212, 165, 116, 0.2);
    border-color: #d4a574;
}

.language-option span:first-child {
    font-size: 1.2em;
    min-width: 30px;
}

.close-menu {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

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


/* Add to your CSS */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}





/* Cosmic Mirror Modal - using your existing modal patterns */
.cosmic-mirror-offer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.cosmic-mirror-modal {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    backdrop-filter: blur(20px);
	z-index: 20000;
}

.camera-container {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.2));
    border: 2px solid rgba(212, 165, 116, 0.5);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
}

#cosmic-video {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.camera-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.camera-controls button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
}

.mirror-description {
    color: rgba(255, 255, 255, 0.8);
    margin: 1rem 0;
    line-height: 1.6;
}

.privacy-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 1rem 0;
}

.mirror-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.mirror-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mirror-btn.primary {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    color: white;
}

.mirror-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dismiss-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}
.cosmic-camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Super high to beat everything */
}



/* Cosmic Camera Interface Styles */
.magical-camera-interface {
    z-index: 99999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-interface {
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.15), 
        rgba(75, 0, 130, 0.25));
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.3);
}

.camera-title {
    background: linear-gradient(135deg, #d4a574, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin: 1rem 0;
    font-size: 1.8rem;
}

.camera-instruction {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Lens Selector Styles */
.lens-selector {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.selector-label {
    color: #d4a574;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}

.selector-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.magical-select {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 8px;
    color: white;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.magical-select option {
    background: #2a0b45;
    color: white;
}

.cycle-btn {
    white-space: nowrap;
    padding: 0.75rem 1rem;
    background: rgba(138, 43, 226, 0.3);
    color: white;
    border: 1px solid rgba(138, 43, 226, 0.5);
}

.cycle-btn:hover {
    background: rgba(138, 43, 226, 0.5);
}

.selector-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-style: italic;
}

/* Crystal Viewfinder */
.crystal-viewfinder {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(212, 165, 116, 0.5);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.4);
}

#cosmic-video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror effect */
    display: block;
}

.viewfinder-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid rgba(212, 165, 116, 0.3);
    pointer-events: none;
}

/* Magical Buttons */
.magical-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.capture-btn {
    background: linear-gradient(135deg, #8a2be2, #d4a574);
    color: white;
    flex: 2;
    justify-content: center;
}

.capture-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.4);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    justify-content: center;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Fate button - for random significator selection */
.fate-btn {
    background: rgba(212, 165, 116, 0.2);
    color: #d4a574;
    border: 1px solid rgba(212, 165, 116, 0.4);
    flex: 1;
    justify-content: center;
}

.fate-btn:hover {
    background: rgba(212, 165, 116, 0.3);
    transform: translateY(-1px);
}

/* Modal close button (X) in top right corner */
.modal-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

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

.camera-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.btn-text {
    font-weight: 500;
}

/* Camera Error */
.camera-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .camera-interface {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .selector-controls {
        flex-direction: column;
    }
    
    .camera-controls {
        flex-direction: column;
    }
    
    .magical-btn {
        width: 100%;
    }
}

/* Add ONLY these to your styles.css - DO NOT replace existing modal CSS */

/* Prevent modal overflow */
.cosmic-mirror-offer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.cosmic-mirror-modal {
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: auto; /* Center vertically/horizontally */
}

/* Keep content from pushing modal height */
.privacy-covenant {
    margin-bottom: 1rem; /* Space before buttons */
}
.covenant-terms {
	text-align: left !important;
}

/* Remove forced spacing that causes black void */
.covenant-terms li:last-child {
    margin-bottom: 0; /* Last item doesn't push extra space */
}

/* Left justify legal text */
.legal-text {
    text-align: left !important; /* Override any centering */
}

/* Prevent email/entity line breaks */
.no-break {
    white-space: nowrap;
    display: inline-block;
}

/* Ensure legal section is clickable */
.legal-ward {
    position: relative; /* Establish stacking context */
    z-index: 10;
    clear: both; /* Prevent float overlap */
}

/* Make sure buttons stay below content */
.mirror-actions {
    margin-top: 1.5rem;
    position: relative; /* Keep in flow */
    z-index: 5;
}

/* Ensure close button works */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    cursor: pointer;
}