/* ===== MYSTICAL RESET & VARIABLES ===== */
:root {
    --deep-space: #0a0414;
    --cosmic-void: #1a0b2e;
    --nebula-purple: #3d1b6d;
    --royal-violet: #5a20cb;
    --cosmic-violet: #6a2ba0;
    --amethyst: #8a2be2;
    --starlight: #c084fc;
    --lilac-glow: #d8b4fe;
    --mystic-blue: #4f46e5;
    --crystal-border: rgba(192, 132, 252, 0.3);
    --crystal-glow: rgba(192, 132, 252, 0.5);
    --text-glow: rgba(192, 132, 252, 0.7);
    --portal-glow: rgba(106, 43, 160, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', 'Playfair Display', serif;
    background-color: var(--deep-space);
    color: #f0e6ff;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===== HERO SECTION WITH FIXED BACKGROUND ===== */
.hero-section {
    background: url('download.gif') center/cover no-repeat fixed;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Dark overlay for text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 4, 20, 0.85) 70%, rgba(10, 4, 20, 0.95) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 20px;
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ===== HERO TYPOGRAPHY ===== */
.arcane-symbol {
    font-size: 4rem;
    color: var(--starlight);
    margin-bottom: 2rem;
    animation: spin-slow 20s linear infinite;
    opacity: 0.7;
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glow-text {
    text-shadow: 
        0 2px 15px rgba(0, 0, 0, 0.9),
        0 0 15px var(--text-glow),
        0 0 30px var(--text-glow),
        0 0 45px rgba(79, 70, 229, 0.4);
    animation: pulse-glow 4s ease-in-out infinite alternate;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@keyframes pulse-glow {
    0% { 
        text-shadow: 0 0 15px var(--text-glow), 0 0 30px rgba(106, 43, 160, 0.5); 
    }
    100% { 
        text-shadow: 0 0 25px #fff, 0 0 50px var(--starlight), 0 0 75px rgba(79, 70, 229, 0.7); 
    }
}

.celestia {
    background: linear-gradient(90deg, #c084fc, #8a2be2, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.tagline, .hero-description {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.tagline {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.constellation-line {
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--starlight), transparent);
    margin: 2rem auto;
    opacity: 0.5;
}

.hero-description {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 2rem auto 3rem;
    opacity: 0.8;
    line-height: 1.8;
}

.scroll-hint {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: fade-pulse 3s infinite;
}

@keyframes fade-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.pulse {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===== BUTTONS ===== */
.crystal-btn {
    background: linear-gradient(135deg, 
        rgba(106, 43, 160, 0.85), 
        rgba(79, 70, 229, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 40px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
}

.crystal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent);
    transition: left 0.7s ease;
}

.crystal-btn:hover::before {
    left: 100%;
}

.crystal-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 15px 35px var(--portal-glow),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    border-color: var(--crystal-glow);
}

.portal-btn {
    margin-top: 2rem;
    padding: 20px 50px;
    font-size: 1.2rem;
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.crystal-btn:hover .btn-shine {
    opacity: 1;
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

/* ===== SOUND TOGGLE BUTTON ===== */
.sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 24px;
    font-size: 0.9rem;
    background: rgba(26, 16, 48, 0.9);
    border: 1px solid var(--crystal-border);
}

/* ===== CONSTELLATION DIVIDERS ===== */
.constellation-divider {
    position: relative;
    height: 1px;
    margin: 80px auto;
    width: 80%;
    background: transparent;
}

.constellation-divider::before {
    content: '✦✦✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--deep-space);
    padding: 0 25px;
    color: var(--starlight);
    font-size: 1.5rem;
    letter-spacing: 20px;
    text-shadow: 0 0 10px var(--crystal-glow);
}

/* ===== TAROT-STYLE CARDS ===== */
.tarot-card {
    background: linear-gradient(145deg, 
        rgba(26, 16, 48, 0.9), 
        rgba(42, 24, 72, 0.9));
    border: 1px solid var(--crystal-border);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tarot-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        var(--cosmic-violet), 
        transparent 30%, 
        transparent 70%, 
        var(--mystic-blue));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
    filter: blur(5px);
}

.tarot-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(2deg);
    border-color: var(--starlight);
}

.tarot-card:hover::before {
    opacity: 1;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 80px 20px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--lilac-glow);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title i {
    margin-right: 15px;
    color: var(--starlight);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.arcane-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.mystic-orb {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, var(--starlight), var(--royal-violet));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 
        0 0 30px var(--crystal-glow),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: orb-float 6s ease-in-out infinite;
}

@keyframes orb-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.tarot-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--lilac-glow);
}

.tarot-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.card-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--starlight);
    font-size: 0.95rem;
}

/* ===== PORTAL SECTION ===== */
.portal-section {
    padding: 80px 20px;
}

.portal-container {
    max-width: 700px;
    margin: 0 auto;
}

.portal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.portal-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--starlight);
}

.portal-subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    font-style: italic;
}

/* ===== FORM STYLES ===== */
.portal-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--lilac-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-label i {
    margin-right: 12px;
    color: var(--starlight);
}

.date-input-wrapper {
    position: relative;
}

.mystic-input {
    width: 100%;
    background: rgba(16, 10, 32, 0.7);
    border: 1px solid var(--crystal-border);
    border-radius: 12px;
    padding: 18px 20px;
    color: #f0e6ff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-family: 'Inter', sans-serif;
}

.mystic-input:focus {
    outline: none;
    border-color: var(--starlight);
    box-shadow: 
        0 0 30px var(--portal-glow),
        inset 0 0 10px rgba(192, 132, 252, 0.2);
}

.input-ornament {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--starlight);
    font-size: 1.2rem;
}

.form-hint {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

.form-options {
    margin: 2.5rem 0;
}

.checkbox-group {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.mystic-checkbox {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--crystal-border);
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    cursor: pointer;
    background: rgba(16, 10, 32, 0.7);
    transition: all 0.3s ease;
}

.mystic-checkbox:checked {
    background: var(--royal-violet);
    border-color: var(--starlight);
}

.mystic-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

.checkbox-label {
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reveal-btn {
    width: 100%;
    padding: 22px;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-note {
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-note i {
    margin-right: 8px;
    color: var(--starlight);
}

/* ===== RESULTS SECTION ===== */
.results-section {
    padding: 80px 20px;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 20px;
}

.results-header h2 {
    font-size: 2.5rem;
    color: var(--lilac-glow);
}

.reset-btn {
    padding: 15px 30px;
    font-size: 1rem;
}

/* Zodiac Reveal */
.zodiac-reveal {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.zodiac-symbol {
    font-size: 8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px var(--crystal-glow);
    animation: symbol-float 4s ease-in-out infinite;
}

@keyframes symbol-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.zodiac-title {
    margin-bottom: 1rem;
}

#zodiac-name {
    font-size: 3.5rem;
    color: var(--starlight);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.zodiac-dates {
    font-size: 1.3rem;
    opacity: 0.8;
    font-style: italic;
}

.zodiac-description {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 1rem auto 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--lilac-glow);
}

/* Results Divider */
.results-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--starlight), transparent);
    opacity: 0.5;
}

.divider-star {
    margin: 0 30px;
    font-size: 2rem;
    color: var(--starlight);
    animation: spin 10s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 3rem;
}

.insight-card {
    background: rgba(26, 16, 48, 0.5);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid var(--royal-violet);
    transition: transform 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--starlight);
}

.insight-icon {
    font-size: 2rem;
    color: var(--starlight);
    margin-bottom: 1rem;
}

.insight-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--lilac-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.insight-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    min-height: 60px;
}

.insight-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(106, 43, 160, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--starlight);
    border: 1px solid rgba(192, 132, 252, 0.3);
}

/* Mystic Insights */
.mystic-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.mystic-card {
    background: rgba(42, 24, 72, 0.5);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.mystic-card h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--starlight);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mystic-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Chinese Zodiac */
.chinese-zodiac {
    background: linear-gradient(90deg, 
        rgba(106, 43, 160, 0.2), 
        rgba(42, 24, 72, 0.5),
        rgba(106, 43, 160, 0.2));
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.chinese-zodiac h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--lilac-glow);
}

.chinese-zodiac h4 i {
    margin-right: 15px;
    color: var(--starlight);
}

#chinese-zodiac {
    color: var(--starlight);
    font-weight: bold;
}

#chinese-description {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

/* Results Actions */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.action-btn {
    padding: 15px 30px;
    font-size: 1rem;
    min-width: 180px;
}

/* ===== FOOTER ===== */
.mystic-footer {
    margin-top: 5rem;
    padding: 50px 20px;
    background: rgba(10, 4, 20, 0.8);
    border-top: 1px solid rgba(192, 132, 252, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    text-align: center;
}

.footer-symbol {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--starlight);
    animation: spin-slow 30s linear infinite;
}

.footer-logo h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--lilac-glow);
}

.footer-logo p {
    opacity: 0.7;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--starlight);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-3px);
}

.footer-credits {
    text-align: center;
    opacity: 0.7;
    margin-top: 2rem;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ===== IMPROVED QR MODAL STYLES ===== */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 4, 20, 0.95);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.qr-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 420px;
    width: 90%;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid var(--crystal-border);
    box-shadow: 0 25px 50px rgba(106, 43, 160, 0.3);
}

.qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(192, 132, 252, 0.3);
}

.qr-modal-header h3 {
    color: var(--lilac-glow);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.close-qr-modal {
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid var(--crystal-border);
    color: var(--starlight);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-qr-modal:hover {
    background: rgba(192, 132, 252, 0.2);
    transform: rotate(90deg);
    border-color: var(--starlight);
}

.qr-modal-body {
    text-align: center;
    padding: 0 20px 20px;
}

.qr-description {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.1rem;
    color: var(--lilac-glow);
}

.qr-code-display {
    position: relative;
    display: inline-block;
    margin: 20px auto;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.qr-code-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.qr-code-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
}

.qr-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.center-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--royal-violet), var(--mystic-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.5);
}

.center-logo i {
    font-size: 1.5rem;
    color: white;
}

.qr-info {
    margin: 2rem 0;
    text-align: left;
    background: rgba(26, 16, 48, 0.5);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--starlight);
}

.qr-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.qr-info i {
    color: var(--starlight);
    width: 20px;
}

.qr-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 2rem;
}

.qr-action-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
    min-width: 140px;
}

/* Animation for QR code entrance */
@keyframes qrReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.qr-code-wrapper canvas {
    animation: qrReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Crystal Ball SVG Styling */
.crystal-ball-svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.7));
}

.star-svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(26, 16, 48, 0.8);
    border-radius: 12px;
    padding: 8px;
    border: 1px solid var(--crystal-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(192, 132, 252, 0.3);
    color: var(--starlight);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(106, 43, 160, 0.3);
    border-color: var(--starlight);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--royal-violet);
    border-color: var(--starlight);
    color: white;
    font-weight: 600;
    box-shadow: 0 0 15px var(--portal-glow);
}

.lang-btn .btn-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1100px) {
    .glow-text {
        font-size: 4rem;
    }
    
    .arcane-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .glow-text {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .portal-form {
        padding: 25px;
    }
    
    .results-header {
        flex-direction: column;
        text-align: center;
    }
    
    .zodiac-symbol {
        font-size: 6rem;
    }
    
    #zodiac-name {
        font-size: 2.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .constellation-divider::before {
        letter-spacing: 10px;
        font-size: 1.2rem;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .sound-toggle {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .sound-toggle .sound-text {
        display: none;
    }
    
    .qr-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .qr-action-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
        flex-wrap: wrap;
        max-width: 200px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .glow-text {
        font-size: 2.5rem;
    }
    
    .tarot-card {
        padding: 25px;
    }
    
    .portal-btn, .reveal-btn {
        padding: 18px 25px;
        font-size: 1rem;
    }
    
    .zodiac-symbol {
        font-size: 5rem;
    }
    
    .qr-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .qr-code-display {
        padding: 10px;
    }
    
    .qr-code-wrapper {
        width: 180px;
        height: 180px;
    }
}