/* --- CSS STYLES --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-panel: #1a1a1a;
    --text-main: #d4d4d4;
    --gold: #d4af37;
    --gold-hover: #f9d868;
    --gold-dim: #8b7355;
    --gray-accent: #2a2a2a;
    --mystical-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    --candle-glow: 0 0 30px rgba(255, 200, 100, 0.6);
    --candle-light: rgba(255, 220, 150, 0.3);
    --selected-glow: 0 0 50px rgba(212, 175, 55, 0.8), 0 0 100px rgba(212, 175, 55, 0.4);
    --top-bar-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

/* === SIMPLIFIED MYSTICAL BACKGROUND (NO HEAVY ANIMATIONS) === */
.mystical-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    /* Simple gradient background - NO animations */
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%),
        linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Just 2 simple static orbs - NO animation */
.mystical-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    /* No animation! */
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
}

/* Simple static symbols - NO rotation animation */
.mystical-symbol {
    position: absolute;
    font-size: 6rem;
    color: var(--gold);
    opacity: 0.04;
    font-family: 'Cinzel', serif;
    /* No animation! */
}

.symbol-1 {
    top: 20%;
    left: 15%;
}

.symbol-2 {
    bottom: 25%;
    right: 20%;
}

.symbol-3 {
    top: 60%;
    left: 70%;
}

/* === FIXED TOP BAR (PERSONAL CABINET) === */
.fixed-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-bar-height);
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-bottom: 2px solid var(--gold);
    z-index: 10000;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.top-bar-logo {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.top-bar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#top-bar-welcome {
    font-size: 1rem;
    margin-right: 10px;
}

/* === HERO SECTION (FULL VIEWPORT HEIGHT) === */
.hero-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--top-bar-height);
}

.hero-section header {
    text-align: center;
    padding: 60px 20px;
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--top-bar-height));
    padding: 40px 20px;
}

.header-symbol {
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.6;
    margin-bottom: 20px;
}

h1 {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 1.6rem;
    font-weight: 400;
    color: #aaa;
    margin-bottom: 50px;
    letter-spacing: 4px;
    font-style: italic;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 25px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.2rem;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gold-dim);
}

.btn-secondary:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--gold);
    border-radius: 3px;
}

.scroll-indicator span {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Spark Effect from Candle Cursor */
.spark {
    position: fixed;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #fff 0%, var(--gold) 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    animation: sparkFly 0.8s ease-out forwards;
    box-shadow: 0 0 20px var(--gold), 0 0 40px rgba(255, 200, 100, 0.5);
}

@keyframes sparkFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--spark-x), var(--spark-y)) scale(0);
    }
}

/* === CUSTOM CURSOR (CANDLE FLAME) === */
.candle-cursor {
    position: fixed;
    width: 40px;
    height: 70px;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -100%);
    display: none;
}

.candle-cursor.active {
    display: block;
}

.candle-flame {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 45px;
    background: linear-gradient(to top, #ff6600 0%, #ffcc00 40%, #ffdd88 70%, #ffffff 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    filter: blur(1px);
    animation: flameFlicker 0.15s ease-in-out infinite alternate;
    box-shadow: 
        0 0 25px #ff6600,
        0 0 50px #ffcc00,
        0 0 75px rgba(255, 200, 100, 0.6),
        0 0 100px rgba(255, 220, 150, 0.4);
}

.candle-cursor::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 20px;
    background: linear-gradient(to bottom, #a0522d, #5c3317);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
}

@keyframes flameFlicker {
    0% {
        transform: translateX(-50%) scale(1) rotate(-3deg) skewX(-2deg);
        opacity: 0.85;
    }
    100% {
        transform: translateX(-50%) scale(1.08) rotate(3deg) skewX(2deg);
        opacity: 1;
    }
}

/* Candle Glow Effect on Body */
body.candle-mode {
    cursor: none;
}

body.candle-mode .candle-cursor {
    display: block;
}

/* === CARD CANDLE EFFECT === */
.tarot-card.candle-lit {
    box-shadow: 
        var(--candle-glow),
        0 0 60px rgba(255, 200, 100, 0.4),
        0 0 100px rgba(255, 220, 150, 0.3);
    animation: candleFlicker 0.4s ease-in-out infinite alternate;
    border-color: var(--gold);
}

.tarot-card.candle-lit img {
    filter: grayscale(0%) brightness(1.3) contrast(1.1);
}

.tarot-card.candle-lit .card-overlay {
    background: linear-gradient(135deg, rgba(255, 230, 180, 0.98) 0%, rgba(255, 210, 140, 0.95) 100%);
    box-shadow: inset 0 0 40px rgba(255, 200, 100, 0.6);
}

.tarot-card.candle-lit .card-overlay strong,
.tarot-card.candle-lit .card-overlay span {
    color: #1a1a1a;
    text-shadow: none;
}

.tarot-card.candle-lit .card-overlay strong {
    color: #000;
}

@keyframes candleFlicker {
    0% {
        box-shadow: 
            0 0 30px rgba(255, 200, 100, 0.6),
            0 0 60px rgba(255, 200, 100, 0.4),
            0 0 100px rgba(255, 220, 150, 0.3);
    }
    100% {
        box-shadow: 
            0 0 45px rgba(255, 200, 100, 0.75),
            0 0 80px rgba(255, 200, 100, 0.55),
            0 0 130px rgba(255, 220, 150, 0.45);
    }
}

/* Selected Card Persistent Glow */
.tarot-card.selected {
    box-shadow: var(--selected-glow);
    border: 2px solid var(--gold);
    animation: selectedPulse 2s ease-in-out infinite;
}

.tarot-card.selected img {
    filter: grayscale(0%) brightness(1.2);
}

@keyframes selectedPulse {
    0%, 100% {
        box-shadow: var(--selected-glow);
    }
    50% {
        box-shadow: 0 0 70px rgba(212, 175, 55, 0.9), 0 0 140px rgba(212, 175, 55, 0.5);
    }
}

.tarot-card.selected .card-checkbox {
    display: block !important;
}

/* Saved Cards Candle Effect */
.saved-card.candle-lit {
    box-shadow: 
        var(--candle-glow),
        0 0 60px rgba(255, 200, 100, 0.4);
    animation: candleFlicker 0.4s ease-in-out infinite alternate;
    border-color: var(--gold);
}

.saved-card.candle-lit img {
    filter: grayscale(0%) brightness(1.3) contrast(1.1);
}

.saved-card.candle-lit .saved-card-overlay {
    background: linear-gradient(135deg, rgba(255, 230, 180, 0.98) 0%, rgba(255, 210, 140, 0.95) 100%);
    box-shadow: inset 0 0 40px rgba(255, 200, 100, 0.6);
}

.saved-card.candle-lit .saved-card-overlay strong,
.saved-card.candle-lit .saved-card-overlay span {
    color: #1a1a1a;
    text-shadow: none;
}

.saved-card.candle-lit .saved-card-overlay strong {
    color: #000;
}

/* Selected Saved Card */
.saved-card.selected {
    box-shadow: var(--selected-glow);
    border: 2px solid var(--gold);
    animation: selectedPulse 2s ease-in-out infinite;
}

/* === MAIN CONTENT === */
.main-content {
    position: relative;
    z-index: 10;
    padding-bottom: 100px;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 15px 40px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    transition: left 0.5s;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    background-color: var(--gold);
    color: #000;
    box-shadow: var(--mystical-shadow);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Preface */
.preface {
    max-width: 1400px;
    margin: 80px auto;
    padding: 50px;
    background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--gold-dim);
    border-left: 4px solid var(--gold);
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.preface::before,
.preface::after {
    content: '◆';
    position: absolute;
    color: var(--gold);
    opacity: 0.3;
    font-size: 1.5rem;
}

.preface::before {
    top: 20px;
    left: 20px;
}

.preface::after {
    bottom: 20px;
    right: 20px;
}

.section-title {
    color: var(--gold);
    font-size: 2rem;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 15px;
    margin-bottom: 25px;
    letter-spacing: 3px;
}

.preface p {
    font-size: 1.2rem;
    text-align: justify;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Deck Selection */
.decks-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 80px 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.deck-card {
    width: 180px;
    height: 280px;
    background-color: var(--bg-panel);
    border: 2px solid var(--gold-dim);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.deck-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.4s ease;
    z-index: 1;
}

.deck-card:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.deck-card:hover {
    transform: translateY(-15px) rotate(2deg);
    border-color: var(--gold);
    box-shadow: var(--mystical-shadow);
}

.deck-label {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.3rem;
    letter-spacing: 2px;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Deck Patterns - ЗАМЕНИТЕ URL НА СВОИ ИЗОБРАЖЕНИЯ */
.deck-1 {
    background-image: url('image/card/1/0.jpg');
}

.deck-2 {
    background-image: url('image/card/2/0.jpg');
}

.deck-3 {
    background-image: url('image/card/3/0.jpg');
}

/* Card Grid */
#card-display-area {
    max-width: 1400px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
    padding: 40px;
    display: none;
    position: relative;
    z-index: 10;
}

.tarot-card {
    height: 260px;
    background-color: #000;
    border: 1px solid var(--gray-accent);
    border-radius: 8px;
    position: relative;
    cursor: none;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.tarot-card:hover {
    transform: translateY(-5px);
}

.tarot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.tarot-card:hover img {
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(26,26,26,0.95) 100%);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--gold);
    border-radius: 8px;
}

.tarot-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay strong {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--gold-hover);
}

.card-overlay span {
    font-style: italic;
    line-height: 1.5;
}

/* Checkbox */
.card-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    z-index: 20;
    cursor: pointer;
    display: none;
    accent-color: var(--gold);
}

/* Save Controls */
.save-controls {
    text-align: center;
    margin: 60px 0;
    display: none;
    position: relative;
    z-index: 10;
}

/* Dashboard */
#dashboard {
    max-width: 1200px;
    margin: 80px auto;
    padding: 40px;
    display: none;
    background: var(--bg-panel);
    border: 1px solid var(--gold-dim);
    border-radius: 10px;
    position: relative;
    z-index: 10;
}

.saved-spread-item {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-panel) 100%);
    border: 1px solid var(--gold-dim);
    border-left: 3px solid var(--gold);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.saved-spread-item:hover {
    border-color: var(--gold);
    box-shadow: var(--mystical-shadow);
}

.saved-spread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-accent);
}

.saved-spread-date {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.2rem;
}

.saved-spread-deck {
    color: #888;
    font-style: italic;
}

.saved-spread-info {
    margin-bottom: 20px;
}

.saved-spread-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.saved-spread-info strong {
    color: var(--gold);
    font-family: 'Cinzel', serif;
}

/* Cards in saved spread */
.saved-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
}

.saved-card {
    position: relative;
    height: 180px;
    border: 1px solid var(--gray-accent);
    border-radius: 5px;
    overflow: hidden;
    cursor: none;
    transition: all 0.3s ease;
}

.saved-card:hover {
    transform: scale(1.05);
}

.saved-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.saved-card:hover img {
}

.saved-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--gold);
}

.saved-card:hover .saved-card-overlay {
    opacity: 1;
}

.saved-card-overlay strong {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--gold-hover);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-dark) 100%);
    border: 2px solid var(--gold);
    padding: 50px;
    width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
    border-radius: 10px;
}

.modal-wide {
    width: 600px;
}

.close-modal {
    position: absolute;
    top: 15px; right: 25px;
    color: var(--gold-dim);
    font-size: 32px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--gold);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--gold);
    margin-bottom: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.mystical-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--gray-accent);
    color: var(--text-main);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mystical-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.hint-text {
    font-size: 0.85rem;
    margin-top: 20px;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar-content {
        padding: 0 15px;
    }
    
    .top-bar-logo {
        font-size: 1rem;
    }
    
    .top-bar-controls {
        gap: 8px;
    }
    
    .btn-small {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    #top-bar-welcome {
        display: none;
    }
    
    h1 {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }
    
    h2 {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-large {
        padding: 15px 35px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .header-content {
        min-height: calc(100vh - var(--top-bar-height));
        padding: 30px 15px;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .decks-container {
        gap: 20px;
    }
    
    .deck-card {
        width: 140px;
        height: 220px;
    }
    
    #card-display-area {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
        padding: 20px;
    }
    
    .tarot-card {
        height: 200px;
    }
    
    .modal-content {
        width: 90%;
        padding: 30px;
    }
    
    .candle-cursor {
        transform: translate(-50%, -100%) scale(0.7);
    }
    
    .preface {
        margin: 40px 20px;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .header-symbol {
        font-size: 3rem;
    }
    
    .hero-section {
        min-height: 120vh;
    }
}

/* Card Description Button */
.card-desc-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    border: 1px solid var(--gold);
    color: #000;
    padding: 8px 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 30;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.tarot-card:hover .card-desc-btn,
.saved-card:hover .card-desc-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.card-desc-btn:hover {
    background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold) 100%);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
}

/* Full Description Modal */
.desc-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    cursor: pointer;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.desc-modal.active {
    display: flex;
    animation: descModalFadeIn 0.3s ease;
}

@keyframes descModalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.desc-modal-content {
    background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-dark) 100%);
    border: 2px solid var(--gold);
    padding: 40px 30px;
    max-width: 1400px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    position: relative;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    cursor: default;
    animation: descModalSlideIn 0.3s ease;
    margin: 20px auto;
}

@keyframes descModalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scrollbar styling for modal */
.desc-modal-content::-webkit-scrollbar {
    width: 6px;
}

.desc-modal-content::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 3px;
}

.desc-modal-content::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.desc-modal-card-image {
    width: 160px;
    height: 260px;
    object-fit: cover;
    margin: 0 auto 25px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    display: block;
}

.desc-modal-title {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.desc-modal-meaning {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-main);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

.desc-modal-close-hint {
    color: var(--gold-dim);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gold-dim);
}

.desc-modal-close-hint span {
    color: var(--gold);
}

/* Close button for mobile */
.desc-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--gold);
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s;
}

.desc-modal-close-btn:hover {
    color: var(--gold-hover);
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .desc-modal-content {
        width: 95%;
        padding: 30px 20px;
        max-height: 90vh;
    }
    
    .desc-modal-card-image {
        width: 120px;
        height: 200px;
        margin: 0 auto 20px;
    }
    
    .desc-modal-title {
        font-size: 1.6rem;
    }
    
    .desc-modal-meaning {
        font-size: 1.1rem;
        text-align: left;
    }
    
    .desc-modal-close-btn {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .desc-modal-content {
        width: 98%;
        padding: 25px 15px;
        max-height: 92vh;
    }
    
    .desc-modal-card-image {
        width: 100px;
        height: 170px;
    }
    
    .desc-modal-title {
        font-size: 1.4rem;
    }
    
    .desc-modal-meaning {
        font-size: 1rem;
    }
}