:root { 
    --gold: #d4af37; 
    --bg: #05070a; 
    --purple: #1a0b2e; 
    --text: #f0f0f0;
}

body { 
    background: var(--bg); 
    color: var(--text); 
    font-family: 'Fauna One', serif; 
    margin: 0; 
    text-align: center; 
    overflow-x: hidden; 
}

#stars-container { 
    position: fixed; top:0; left:0; width:100%; height:100%; z-index:-1; 
    background: radial-gradient(circle, var(--purple) 0%, var(--bg) 100%); 
}

nav { 
    display: flex; justify-content: space-around; padding: 20px; 
    border-bottom: 1px solid var(--gold); background: rgba(0,0,0,0.9); 
    position: sticky; top:0; z-index: 100; 
}

nav ul { display: flex; list-style: none; margin: 0; padding: 0;}
nav ul li a { color: var(--gold); text-decoration: none; margin: 0 10px; font-family: 'Cinzel'; font-size: 0.75em; letter-spacing: 1px;}

.glow-text { 
    font-family: 'Cinzel'; font-size: 2.5rem; color: var(--gold); 
    text-shadow: 0 0 15px rgba(212,175,55,0.5); margin-top: 30px; 
}

.intro-text { max-width: 600px; margin: 20px auto; line-height: 1.6; opacity: 0.8; }

.card-container { perspective: 1000px; margin: 30px auto; width: 260px; height: 420px; transition: transform 0.3s ease; z-index: 1; }
.card-container:hover { transform: scale(1.4); z-index: 500; }
.card { 
    width: 100%; height: 100%; position: relative; 
    transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer; 
}
.card.is-flipped { transform: rotateY(180deg); }

.card-back, .card-front { 
    position: absolute; width: 100%; height: 100%; 
    backface-visibility: hidden; border-radius: 15px; border: 2px solid var(--gold); 
}

.card-back { background: #0a0a0a; display: flex; justify-content: center; align-items: center; transform: rotateY(180deg); }
.card-back img { width: 100%; height: 100%; object-fit: contain; border-radius: 13px; }
.card-front img { width: 100%; height: 100%; object-fit: cover; }

.result-display { margin: 20px; font-size: 1.1rem; color: var(--gold); font-family: 'Cinzel'; min-height: 80px; }

/* Grid for multiple cards */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    max-width: 1200px;
}
.cards-grid .card-container { margin: 0; width: 200px; height: 320px; }

/* Deck Selection */
.deck-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    max-width: 800px;
}
.deck-card {
    width: 60px;
    height: 100px;
    background: #0a0a0a;
    border: 2px solid var(--gold);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.deck-card:hover { transform: translateY(-10px) scale(1.4); border-color: var(--gold); box-shadow: 0 10px 20px rgba(212,175,55,0.6); z-index: 500; }
.deck-card.selected { transform: translateY(-15px); border-color: #fff; box-shadow: 0 10px 20px rgba(255,255,255,0.6); pointer-events: none; }
.deck-card img { width: 80%; border-radius: 5px; }

/* Blurred card effect */
.blurred-card { filter: blur(8px) grayscale(50%); pointer-events: none; transition: filter 1s ease; }
.unlocked .blurred-card { filter: blur(0) grayscale(0); pointer-events: auto; }

/* Reading modes selector */
.reading-modes { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }

.btn { 
    padding: 12px 25px; border: 1px solid var(--gold); cursor: pointer; 
    font-family: 'Cinzel'; transition: 0.3s; margin: 10px; 
    background: transparent; color: var(--gold); 
}
.btn.gold { background: var(--gold); color: #000; }
.btn:hover { box-shadow: 0 0 10px var(--gold); }

.price-tag { font-size: 3.5rem; color: var(--gold); font-family: 'Cinzel'; margin: 20px 0; }

input, select, textarea { 
    width: 100%; max-width: 300px; padding: 12px; margin: 10px 0; 
    background: rgba(255,255,255,0.05); border: 1px solid var(--gold); color: white; 
}
textarea { max-width: 500px; height: 100px; }

section { display: none; padding: 40px 20px; animation: fadeIn 0.6s ease; }
section.active { display: block; }

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

/* MODAL */
.modal { 
    position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center; }
.modal-content { 
    background: #0d0d0d; padding: 40px; border: 2px solid var(--gold); 
    border-radius: 15px; max-width: 450px; text-align: center; }

.active-theme {
    background: var(--gold) !important;
    color: var(--bg) !important;
    box-shadow: 0 0 15px rgba(212,175,55,0.6);
}

.theme-btn {
    font-size: 0.7rem;
    padding: 8px 15px;
}

/* SABLIER ANIMATION */
.sablier-container {
    display: flex;
    justify-content: center;
    margin: 20px auto;
}

.sablier {
    position: relative;
    width: 60px;
    height: 100px;
    border: 3px solid var(--gold);
    border-radius: 5px;
    background: transparent;
    overflow: hidden;
    animation: rotate-sablier 3s infinite ease-in-out;
}

.sablier::before, .sablier::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--gold);
}

.sablier::before {
    top: 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    animation: sand-top 3s infinite ease-in-out;
}

.sablier::after {
    bottom: 0;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    animation: sand-bottom 3s infinite ease-in-out;
}

@keyframes rotate-sablier {
    0%, 90% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

@keyframes sand-top {
    0% { height: 50%; }
    90%, 100% { height: 0%; }
}

@keyframes sand-bottom {
    0% { height: 0%; }
    90%, 100% { height: 50%; }
}

/* REVIEWS SECTION */
.reviews-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 20px;
    border-top: 1px solid rgba(212,175,55,0.2);
}

.review-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
    transition: 0.3s;
}

.review-card:hover { border-color: var(--gold); background: rgba(255,255,255,0.05); }

.review-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.review-name { font-family: 'Cinzel'; color: var(--gold); font-weight: bold; }
.review-stars { color: var(--gold); }
.review-text { font-style: italic; opacity: 0.9; line-height: 1.5; }
