/* 
 * 🔥💧 LÜKS ELEMENT FALI TASARIMI 💧🔥
 * Premium Design - Animations - Effects
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Dancing+Script:wght@400;500;600;700&display=swap');

:root {
    /* Premium Renk Paleti */
    --gold: #D4AF37;
    --gold-light: #FFD700;
    --gold-dark: #B8860B;
    --silver: #C0C0C0;
    --platinum: #E5E4E2;
    --crystal: #A7D8FF;
    
    /* Element Renkleri */
    --fire-grad: linear-gradient(135deg, #FF6B35 0%, #FFA62E 50%, #FFD166 100%);
    --water-grad: linear-gradient(135deg, #36D1DC 0%, #5B86E5 50%, #7B68EE 100%);
    --fire-glow: rgba(255, 107, 53, 0.4);
    --water-glow: rgba(54, 209, 220, 0.4);
    
    /* Premium Background */
    --bg-dark: #0A0A0F;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(212, 175, 55, 0.3);
    
    /* Animasyonlar */
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    background: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(54, 209, 220, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0A0A0F 0%, #1A1A2E 50%, #16213E 100%);
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    color: var(--platinum);
    overflow-x: hidden;
}

/* Ana Container - Kristal Kutu Efekti */
#element-fali-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 30px;
    position: relative;
}

/* Kenar Glow Efekti */
#element-fali-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--gold) 0%,
        var(--silver) 25%,
        var(--crystal) 50%,
        var(--silver) 75%,
        var(--gold) 100%);
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
    filter: blur(5px);
    opacity: 0.5;
}

#element-fali-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    border-radius: 23px;
    z-index: -1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes borderGlow {
    0% { filter: blur(5px) hue-rotate(0deg); }
    100% { filter: blur(5px) hue-rotate(360deg); }
}

/* Ana Wrapper - Cam Efekti */
.element-fali-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Parçacık Efekti */
.element-fali-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gold), 
        transparent);
    animation: shine 3s ease-in-out infinite;
}

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

/* Bölümler */
.element-section {
    display: none;
    padding: 60px 40px;
    min-height: 70vh;
    position: relative;
}

.element-section.active {
    display: block;
    animation: sectionAppear 0.8s ease-out;
}

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

/* Başlık Stilleri */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gold), 
        transparent);
    border-radius: 3px;
}

.section-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--platinum) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--silver);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.subtitle::before,
.subtitle::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

.subtitle::before {
    left: -40px;
}

.subtitle::after {
    right: -40px;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

/* ELEMENT BUTONLARI - LÜKS VERSİYON */
.element-choice {
    text-align: center;
}

.element-choice h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--platinum);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.element-choice h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gold), 
        var(--silver), 
        var(--gold), 
        transparent);
}

.element-buttons {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 60px 0;
    perspective: 1000px;
}

.element-btn {
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    padding: 50px 30px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 255, 255, 0.1);
}

/* Ateş Butonu */
.fire-btn {
    background: var(--fire-grad);
    color: white;
}

.fire-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.3) 0%, 
        transparent 70%);
    animation: flamePulse 2s ease-in-out infinite;
}

.fire-btn:hover {
    transform: translateY(-15px) rotateX(10deg) scale(1.05);
    box-shadow: 
        0 30px 60px rgba(255, 107, 53, 0.4),
        0 0 100px var(--fire-glow);
}

/* Su Butonu */
.water-btn {
    background: var(--water-grad);
    color: white;
}

.water-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 70%);
    animation: waterFlow 3s linear infinite;
}

.water-btn:hover {
    transform: translateY(-15px) rotateX(10deg) scale(1.05);
    box-shadow: 
        0 30px 60px rgba(54, 209, 220, 0.4),
        0 0 100px var(--water-glow);
}

@keyframes flamePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes waterFlow {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Buton İçeriği */
.element-icon {
    font-size: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    display: block;
    transition: var(--transition-smooth);
}

.element-btn:hover .element-icon {
    transform: scale(1.2) rotate(10deg);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1.2) rotate(10deg); }
    50% { transform: translateY(-10px) scale(1.2) rotate(10deg); }
}

.element-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.element-desc {
    font-size: 1rem;
    opacity: 0.9;
    letter-spacing: 2px;
    font-weight: 300;
    text-transform: uppercase;
}

/* Aktif Buton Stili */
.element-btn.active {
    animation: activePulse 2s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 0 60px currentColor,
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

@keyframes activePulse {
    0%, 100% { box-shadow: 0 0 60px currentColor, inset 0 0 30px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 90px currentColor, inset 0 0 40px rgba(255, 255, 255, 0.3); }
}

/* FORM STİLLERİ - LÜKS */
#element-user-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

#element-user-form::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        var(--gold), 
        var(--silver), 
        var(--crystal), 
        var(--silver), 
        var(--gold));
    border-radius: 21px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
}

.form-group {
    margin-bottom: 35px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--gold-light);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--platinum);
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.form-group::after {
    content: '✦';
    position: absolute;
    right: 20px;
    top: 55px;
    color: var(--gold);
    opacity: 0;
    transition: var(--transition-smooth);
}

.form-group:focus-within::after {
    opacity: 1;
    animation: twinkle 1.5s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Form Butonları */
.form-actions {
    display: flex;
    gap: 25px;
    margin-top: 50px;
}

.back-btn, .next-btn {
    flex: 1;
    padding: 22px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.back-btn {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    color: var(--silver);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.next-btn {
    background: linear-gradient(135deg, 
        var(--gold) 0%,
        var(--gold-light) 50%,
        var(--gold) 100%);
    color: #000;
    font-weight: 700;
}

.next-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(212, 175, 55, 0.4),
        0 0 60px rgba(212, 175, 55, 0.2);
    animation: goldShimmer 2s ease-in-out infinite;
}

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

/* SEMBOL KARTLARI - 3D LÜKS */
.symbols-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin: 60px 0;
    perspective: 1200px;
}

.element-symbol-card {
    height: 320px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    transform: translateZ(0);
}

.element-symbol-card:hover:not(.selected) {
    transform: translateY(-20px) rotateX(10deg) scale(1.05);
}

.element-symbol-card.selected {
    transform: rotateY(180deg) translateZ(50px);
    animation: cardSelect 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cardSelect {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(90deg) scale(1.1); }
    100% { transform: rotateY(180deg) scale(1); }
}

/* Kart Ön ve Arka Yüzleri - DÜZELTİLMİŞ */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    overflow: hidden;
}

/* Kart Ön Yüzü - Normalde görünen (Sayı) */
.card-front {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: rotateY(0deg); /* DÜZELTİLDİ: Normalde düz görünmeli */
    z-index: 2; /* Ön yüz üstte olmalı */
    box-shadow: 
        inset 0 0 50px rgba(255, 255, 255, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Kart Arka Yüzü - Seçildiğinde görünen (İçerik) */
.card-back {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%,
        rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    transform: rotateY(180deg); /* DÜZELTİLDİ: Normalde arkada olmalı */
    z-index: 1;
}

/* Seçili kart için - DÜZELTİLMİŞ */
.element-symbol-card.selected {
    transform: rotateY(180deg) translateZ(50px);
    animation: cardSelect 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ateş ve Su kartları için arka plan düzeltmeleri */
.element-symbol-card.fire .card-front {
    border-color: rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.15) 0%,
        rgba(255, 166, 46, 0.1) 100%);
}

.element-symbol-card.water .card-front {
    border-color: rgba(54, 209, 220, 0.4);
    background: linear-gradient(135deg, 
        rgba(54, 209, 220, 0.15) 0%,
        rgba(91, 134, 229, 0.1) 100%);
}

/* FORM INPUT STİLLERİ - DÜZELTİLMİŞ */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08); /* Daha görünür arkaplan */
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--platinum); /* Açık renk metin */
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

/* Placeholder rengi */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Daha görünür placeholder */
}

/* Focus durumu */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.12); /* Daha görünür focus */
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.08);
}

/* Tarih inputu için özel stil */
input[type="date"] {
    color-scheme: dark; /* Karanlık tema için */
}

/* Doğum tarihi inputu için placeholder */
input[type="date"]:not(:valid) {
    color: rgba(255, 255, 255, 0.5);
}

/* Kart ön yüzündeki sayı ve metin - DÜZELTİLMİŞ */
.symbol-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold-light);
    margin-bottom: 15px;
    text-shadow: 0 0 10px currentColor;
}

.card-front p {
    color: var(--silver);
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* Seçilen kartlar için hover efekti */
.element-symbol-card:not(.selected):hover .card-front {
    transform: scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(255, 255, 255, 0.15);
}

/* Daha iyi görünürlük için ek kontrast */
.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--gold-light);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Zorunlu alan işareti */
.form-group label::after {
    content: ' *';
    color: #ff6b6b;
    font-size: 1.2rem;
}

/* Form group daha görünür hale getirildi */
.form-group {
    margin-bottom: 35px;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobil için form input düzenlemeleri */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* iOS zoom önlemi */
        padding: 16px;
    }
    
    input[type="date"] {
        min-height: 48px; /* Mobil dokunma alanı */
    }
}

/* Kart İçeriği */
.card-icon {
    font-size: 70px;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(5deg); }
    66% { transform: translateY(5px) rotate(-5deg); }
}

.card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gold-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-meaning {
    font-size: 0.95rem;
    color: var(--silver);
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.9;
}

/* Seçilen Semboller */
.selected-symbols-container {
    background: linear-gradient(135deg, 
        rgba(79, 172, 254, 0.1) 0%,
        rgba(0, 242, 254, 0.05) 100%);
    padding: 40px;
    border-radius: 20px;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.selected-symbols-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #4facfe, 
        #00f2fe, 
        #4facfe);
    animation: gradientFlow 3s linear infinite;
}

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

.selected-symbols-container h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--platinum);
    font-family: 'Playfair Display', serif;
}

.selected-symbols-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.selected-symbol-item {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    padding: 18px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.selected-symbol-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.6s;
}

.selected-symbol-item:hover::before {
    left: 100%;
}

.selected-symbol-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.remove-symbol {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-symbol:hover {
    background: rgba(255, 68, 68, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

/* Fal Butonu */
.selection-actions {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

#get-reading-btn {
    flex: 2;
    background: linear-gradient(135deg, 
        var(--gold) 0%,
        var(--gold-light) 50%,
        var(--gold) 100%);
    color: #000;
    padding: 25px;
    border: none;
    border-radius: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
}

#get-reading-btn:disabled {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

#get-reading-btn:not(:disabled):hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 30px 60px rgba(212, 175, 55, 0.5),
        0 0 100px rgba(212, 175, 55, 0.3);
    animation: goldPulse 2s ease-in-out infinite;
}

#get-reading-btn:not(:disabled)::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.3) 0%, 
        transparent 70%);
    animation: buttonShine 3s linear infinite;
}

@keyframes goldPulse {
    0%, 100% { box-shadow: 0 30px 60px rgba(212, 175, 55, 0.5), 0 0 100px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 40px 80px rgba(212, 175, 55, 0.7), 0 0 150px rgba(212, 175, 55, 0.5); }
}

@keyframes buttonShine {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* YÜKLENİYOR EKRANI */
.loading-content {
    text-align: center;
    padding: 100px;
    position: relative;
}

.spinner {
    width: 120px;
    height: 120px;
    margin: 0 auto 50px;
    position: relative;
}

.spinner::before,
.spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spin 2s linear infinite;
}

.spinner::before {
    width: 100%;
    height: 100%;
    border-top-color: var(--gold);
    border-right-color: var(--silver);
}

.spinner::after {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-bottom-color: var(--crystal);
    border-left-color: var(--gold-light);
    animation-direction: reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    background: linear-gradient(135deg, 
        var(--gold-light) 0%,
        var(--silver) 50%,
        var(--crystal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: titlePulse 3s ease-in-out infinite;
}

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

#loading-text {
    font-size: 1.2rem;
    color: var(--silver);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
}

#loading-text::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* FAL SONUÇLARI - PREMIUM */
.reading-header {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%,
        rgba(54, 209, 220, 0.1) 100%);
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reading-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,5Q65,40,95,50Q65,60,50,95Q35,60,5,50Q35,40,50,5Z" fill="none" stroke="%23D4AF37" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 200px;
    animation: patternMove 20s linear infinite;
}

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

.reading-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--gold-light);
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 30px currentColor;
    position: relative;
    z-index: 1;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 30px currentColor; }
    50% { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 0 50px currentColor; }
}

/* Fal Detayları */
.reading-details {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.reading-details p {
    margin: 15px 0;
    font-size: 1.1rem;
    color: var(--silver);
    display: flex;
    align-items: center;
}

.reading-details strong {
    color: var(--gold-light);
    min-width: 150px;
    display: inline-block;
}

/* Sembol Gösterimi */
.selected-symbols-display {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}

.symbol-chip {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    padding: 20px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.symbol-chip:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

.symbol-number {
    background: linear-gradient(135deg, 
        var(--gold) 0%,
        var(--gold-light) 100%);
    color: #000;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.symbol-name {
    font-weight: 600;
    color: var(--platinum);
    font-size: 1.1rem;
}

/* Fal Metni */
.reading-text {
    background: rgba(255, 255, 255, 0.02);
    padding: 50px;
    border-radius: 20px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.8;
    font-size: 1.15rem;
    color: var(--platinum);
    white-space: pre-line;
    position: relative;
    backdrop-filter: blur(10px);
}

.reading-text::before {
    content: '❝';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
}

.reading-text::after {
    content: '❞';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
}

/* Enerji Bilgisi */
.energy-info {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.energy-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--gold), 
        var(--silver), 
        var(--gold));
    animation: shine 2s ease-in-out infinite;
}

.energy-level {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-left: 15px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.energy-level.fire {
    background: var(--fire-grad);
    color: white;
    box-shadow: 0 10px 30px var(--fire-glow);
}

.energy-level.water {
    background: var(--water-grad);
    color: white;
    box-shadow: 0 10px 30px var(--water-glow);
}

/* Action Butonları */
.reading-actions {
    display: flex;
    gap: 30px;
    margin-top: 60px;
}

#new-reading-btn, #download-reading-btn {
    flex: 1;
    padding: 25px;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

#new-reading-btn {
    background: linear-gradient(135deg, 
        var(--gold) 0%,
        var(--gold-light) 100%);
    color: #000;
}

#download-reading-btn {
    background: linear-gradient(135deg, 
        #4CAF50 0%,
        #45a049 100%);
    color: white;
}

#new-reading-btn:hover, #download-reading-btn:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px currentColor;
}

#new-reading-btn::before,
#download-reading-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s;
}

#new-reading-btn:hover::before,
#download-reading-btn:hover::before {
    left: 100%;
}

/* HATA MESAJLARI */
.error-container {
    text-align: center;
    padding: 80px;
    background: rgba(214, 48, 49, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(214, 48, 49, 0.3);
    margin: 40px 0;
}

.error-icon {
    font-size: 80px;
    color: #ff6b6b;
    margin-bottom: 30px;
    animation: errorPulse 2s ease-in-out infinite;
}

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

.error-container h3 {
    color: #ff6b6b;
    font-size: 2rem;
    margin-bottom: 20px;
}

.error-container p {
    color: var(--silver);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.retry-btn {
    background: linear-gradient(135deg, 
        var(--gold) 0%,
        var(--gold-light) 100%);
    color: #000;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.retry-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

/* MOBİL UYUMLULUK */
@media (max-width: 1200px) {
    .section-header h1 {
        font-size: 2.8rem;
    }
    
    .element-btn {
        min-width: 280px;
    }
    
    .symbols-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    #element-fali-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .element-section {
        padding: 30px 20px;
    }
    
    .section-header h1 {
        font-size: 2.2rem;
    }
    
    .element-buttons {
        flex-direction: column;
        gap: 30px;
    }
    
    .element-btn {
        min-width: 100%;
    }
    
    #element-user-form {
        padding: 30px 20px;
    }
    
    .form-actions,
    .selection-actions,
    .reading-actions {
        flex-direction: column;
    }
    
    .symbols-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .element-symbol-card {
        height: 280px;
    }
    
    .selected-symbols-container {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .section-header h1 {
        font-size: 1.8rem;
    }
    
    .element-icon {
        font-size: 60px;
    }
    
    .element-name {
        font-size: 1.8rem;
    }
    
    .symbols-container {
        grid-template-columns: 1fr;
    }
    
    .card-icon {
        font-size: 50px;
    }
    
    .card-name {
        font-size: 1.5rem;
    }
    
    .reading-header h2 {
        font-size: 2.5rem;
    }
    
    .reading-text {
        padding: 30px 20px;
        font-size: 1rem;
    }
}

/* Özel Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, 
        var(--gold) 0%,
        var(--gold-light) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, 
        var(--gold-light) 0%,
        var(--gold) 100%);
}

/* Selection Stilleri */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(212, 175, 55, 0.3);
    color: white;
}

/* Focus Outline */
:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Print Stilleri */
@media print {
    .element-fali-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .element-btn,
    #get-reading-btn,
    #new-reading-btn,
    #download-reading-btn {
        display: none;
    }
}

/* Loading Bar Animation */
.progress-bar {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--gold) 0%,
        var(--silver) 50%,
        var(--gold) 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transform-origin: left;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(1); }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
    z-index: 0;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 5%;
    font-size: 60px;
    animation: floatElement 20s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 10%;
    font-size: 40px;
    animation: floatElement 25s ease-in-out infinite reverse;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 15%;
    font-size: 50px;
    animation: floatElement 30s ease-in-out infinite;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--platinum);
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    border: 1px solid var(--gold);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--gold) transparent transparent transparent;
}

/* Confetti Effect */
.confetti {
    position: absolute;
    width: 10px;
    height: 20px;
    opacity: 0;
    animation: confettiFall 5s ease-in-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Glass Morphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s ease-in-out infinite;
}

/* Particle Background */
.particle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .element-name {
        font-size: 1.6rem;
    }
    
    .card-name {
        font-size: 1.3rem;
    }
    
    .reading-header h2 {
        font-size: 2rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --gold: #FFD700;
        --gold-light: #FFFF00;
        --gold-dark: #FFA500;
    }
    
    .element-btn {
        border: 3px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

/* Hover Effects for Cards */
.element-symbol-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.element-symbol-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 255, 255, 0.1);
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(135deg, 
        var(--gold) 0%,
        var(--silver) 25%,
        var(--crystal) 50%,
        var(--silver) 75%,
        var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientText 3s ease-in-out infinite;
}

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

/* Final Touches */
.final-touch {
    position: relative;
}

.final-touch::before {
    content: '✦';
    position: absolute;
    color: var(--gold);
    animation: finalSparkle 2s ease-in-out infinite;
}

@keyframes finalSparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
}

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

/* Custom Checkbox */
.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
}

.custom-checkbox input {
    opacity: 0;
    position: absolute;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--gold);
    border-radius: 4px;
    transition: all 0.3s;
}

.custom-checkbox input:checked + .checkmark {
    background: var(--gold);
}

.custom-checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    position: absolute;
}

.toggle-switch .slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: all 0.4s;
}

.toggle-switch .slider::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    left: 2px;
    bottom: 2px;
    background: var(--gold);
    border-radius: 50%;
    transition: all 0.4s;
}

.toggle-switch input:checked + .slider {
    background: rgba(212, 175, 55, 0.3);
}

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

/* Notification Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, 
        var(--gold) 0%,
        var(--gold-light) 100%);
    color: #000;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 10000;
}

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

/* Countdown Timer */
.countdown {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 10px currentColor;
    animation: countdownPulse 1s ease-in-out infinite;
}

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

/* Progress Circle */
.progress-circle {
    width: 100px;
    height: 100px;
    position: relative;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transform-origin: center;
}

.progress-circle .bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.progress-circle .progress {
    stroke: var(--gold);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: progressAnimation 2s ease-out forwards;
}

@keyframes progressAnimation {
    to {
        stroke-dashoffset: 0;
    }
}

/* Parallax Effect */
.parallax-layer {
    position: absolute;
    will-change: transform;
}

.layer-1 { transform: translateZ(-100px); }
.layer-2 { transform: translateZ(-50px); }
.layer-3 { transform: translateZ(0); }

/* Magnetic Button Effect */
.magnetic-button {
    position: relative;
    overflow: hidden;
}

.magnetic-button .magnetic-content {
    position: relative;
    z-index: 2;
}

.magnetic-button .magnetic-field {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 70%);
    transform: translate(-50%, -50%);
    transition: transform 0.3s;
    pointer-events: none;
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.5s ease-out forwards;
}

@keyframes textReveal {
    to {
        transform: translateY(0);
    }
}

/* Blob Animation */
.blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, 
        var(--gold) 0%,
        var(--crystal) 100%);
    border-radius: 43% 57% 70% 30% / 30% 30% 70% 70%;
    animation: blobAnimation 20s ease-in-out infinite;
    opacity: 0.1;
    filter: blur(40px);
}

@keyframes blobAnimation {
    0%, 100% { 
        border-radius: 43% 57% 70% 30% / 30% 30% 70% 70%;
        transform: translate(0, 0) rotate(0deg);
    }
    25% { 
        border-radius: 30% 70% 50% 50% / 50% 40% 60% 50%;
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% { 
        border-radius: 60% 40% 30% 70% / 70% 50% 50% 30%;
        transform: translate(0, 20px) rotate(180deg);
    }
    75% { 
        border-radius: 40% 60% 70% 30% / 40% 60% 30% 60%;
        transform: translate(-20px, 0) rotate(270deg);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--fire-glow);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip: rect(44px, 450px, 56px, 0);
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--water-glow);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip: rect(44px, 450px, 56px, 0);
}

@keyframes glitch-1 {
    0% { clip: rect(20px, 9999px, 85px, 0); }
    5% { clip: rect(85px, 9999px, 90px, 0); }
    10% { clip: rect(20px, 9999px, 30px, 0); }
    15% { clip: rect(40px, 9999px, 60px, 0); }
    20% { clip: rect(60px, 9999px, 65px, 0); }
    25% { clip: rect(90px, 9999px, 100px, 0); }
    30% { clip: rect(20px, 9999px, 85px, 0); }
    35% { clip: rect(85px, 9999px, 90px, 0); }
    40% { clip: rect(20px, 9999px, 30px, 0); }
    45% { clip: rect(40px, 9999px, 60px, 0); }
    50% { clip: rect(60px, 9999px, 65px, 0); }
    55% { clip: rect(90px, 9999px, 100px, 0); }
    60% { clip: rect(20px, 9999px, 85px, 0); }
    65% { clip: rect(85px, 9999px, 90px, 0); }
    70% { clip: rect(20px, 9999px, 30px, 0); }
    75% { clip: rect(40px, 9999px, 60px, 0); }
    80% { clip: rect(60px, 9999px, 65px, 0); }
    85% { clip: rect(90px, 9999px, 100px, 0); }
    90% { clip: rect(20px, 9999px, 85px, 0); }
    95% { clip: rect(85px, 9999px, 90px, 0); }
    100% { clip: rect(20px, 9999px, 30px, 0); }
}

@keyframes glitch-2 {
    0% { clip: rect(65px, 9999px, 35px, 0); }
    5% { clip: rect(25px, 9999px, 30px, 0); }
    10% { clip: rect(15px, 9999px, 5px, 0); }
    15% { clip: rect(90px, 9999px, 10px, 0); }
    20% { clip: rect(10px, 9999px, 65px, 0); }
    25% { clip: rect(65px, 9999px, 90px, 0); }
    30% { clip: rect(65px, 9999px, 35px, 0); }
    35% { clip: rect(25px, 9999px, 30px, 0); }
    40% { clip: rect(15px, 9999px, 5px, 0); }
    45% { clip: rect(90px, 9999px, 10px, 0); }
    50% { clip: rect(10px, 9999px, 65px, 0); }
    55% { clip: rect(65px, 9999px, 90px, 0); }
    60% { clip: rect(65px, 9999px, 35px, 0); }
    65% { clip: rect(25px, 9999px, 30px, 0); }
    70% { clip: rect(15px, 9999px, 5px, 0); }
    75% { clip: rect(90px, 9999px, 10px, 0); }
    80% { clip: rect(10px, 9999px, 65px, 0); }
    85% { clip: rect(65px, 9999px, 90px, 0); }
    90% { clip: rect(65px, 9999px, 35px, 0); }
    95% { clip: rect(25px, 9999px, 30px, 0); }
    100% { clip: rect(15px, 9999px, 5px, 0); }
}

/* Final Loading Animation */
.final-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.final-loading .orb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        var(--gold) 0%,
        var(--crystal) 100%);
    position: relative;
    animation: orbFloat 3s ease-in-out infinite;
    box-shadow: 
        0 0 60px var(--gold),
        0 0 100px var(--crystal);
}

.final-loading .orb::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    animation: orbPulse 2s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Premium Signature */
.premium-signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--gold);
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.premium-signature::before {
    content: '✦';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    padding: 0 20px;
    color: var(--gold);
}

/* Responsive Grid System */
.grid-system {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Custom Alert */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.9) 0%,
        rgba(255, 215, 0, 0.9) 100%);
    color: #000;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    max-width: 400px;
}

.custom-alert.show {
    transform: translateX(0);
}

.custom-alert .close-alert {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.custom-alert .close-alert:hover {
    transform: scale(1.2);
}

/* Wave Animation */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    overflow: hidden;
    z-index: -1;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23D4AF37" opacity="0.1"/></svg>');
    animation: wave 10s linear infinite;
}

.wave:nth-child(2) {
    animation: wave 7s linear infinite reverse;
    opacity: 0.5;
}

.wave:nth-child(3) {
    animation: wave 5s linear infinite;
    opacity: 0.3;
}

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

/* Final Enhancement */
.enhanced {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s;
}

.enhanced:hover {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* Loading Bar */
.loading-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 30px 0;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--gold) 0%,
        var(--gold-light) 50%,
        var(--gold) 100%);
    width: 0%;
    animation: loadingBar 2s ease-in-out infinite;
    border-radius: 2px;
}

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

/* Final Message */
.final-message {
    text-align: center;
    padding: 40px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.final-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,5Q65,40,95,50Q65,60,50,95Q35,60,5,50Q35,40,50,5Z" fill="%23D4AF37" opacity="0.05"/></svg>');
    background-size: 100px;
    animation: patternRotate 20s linear infinite;
}

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

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    margin: 30px 0;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* Custom Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--gold) 0%,
        var(--gold-light) 100%);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform 0.1s;
}

/* Dark/Light Mode Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

.theme-toggle button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}

/* Audio Player */
.audio-player {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-player .controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.audio-player button {
    background: var(--gold);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-player button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--gold);
}

.audio-player .progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.audio-player .progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width 0.1s;
}

/* Countup Animation */
.countup {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 10px currentColor;
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--gold);
    white-space: nowrap;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--gold); }
}

/* Final Enhancement Class */
.premium-enhancement {
    position: relative;
}

.premium-enhancement::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--gold);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.premium-enhancement:hover::after {
    opacity: 0.3;
}

/* Responsive Utilities */
.hide-on-mobile {
    display: block;
}

.show-on-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    .show-on-mobile {
        display: block !important;
    }
}

/* Print Optimization */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .element-fali-wrapper {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        background: white !important;
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    :root {
        --gold: #FFFF00;
        --gold-light: #FFFFFF;
        --gold-dark: #FFA500;
    }
    
    .element-btn,
    #get-reading-btn,
    #new-reading-btn,
    #download-reading-btn {
        border: 3px solid currentColor;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .element-btn:hover,
    .element-symbol-card:hover,
    .selected-symbol-item:hover,
    #get-reading-btn:hover,
    #new-reading-btn:hover,
    #download-reading-btn:hover {
        transform: none !important;
    }
    
    .tooltip .tooltip-text {
        display: none;
    }
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* GPU Acceleration */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Final Touch - Signature Animation */
.signature-animation {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    background: linear-gradient(135deg, 
        var(--gold) 0%,
        var(--silver) 50%,
        var(--crystal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: 
        signatureWrite 2s ease-out forwards,
        signatureShine 3s ease-in-out infinite 2s;
    position: relative;
    overflow: hidden;
}

@keyframes signatureWrite {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

@keyframes signatureShine {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
    }
}

/* Container Query Support */
@container (min-width: 400px) {
    .element-symbol-card {
        height: 350px;
    }
}

/* View Transition API */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 9999;
}

/* Final Performance Class */
.optimized-render {
    content-visibility: auto;
    contain-intrinsic-size: 1px 5000px;
}

/* Last CSS Rule - Always at the end */
.final-css-rule {
    /* This ensures all previous styles are properly loaded */
    display: block;
}