:root {
    --primary-color: #050505;
    --secondary-color: #4a0000;
    --accent-color: #d4af37;
    --accent-glow: rgba(212, 175, 55, 0.4);
    --text-color: #ffffff;
    --text-dim: #cccccc;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    --aura-color: rgba(74, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 1.5s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--aura-color) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    transition: background 1s ease;
}

/* Canvas Layers */
#star-canvas,
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#star-canvas {
    z-index: 0;
    opacity: 0.4;
}

#particle-canvas {
    z-index: 1;
    opacity: 0.6;
}

/* Custom Cursor */
#custom-cursor,
#cursor-outline {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    border-radius: 50%;
}

#custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    transition: transform 0.1s ease;
}

#cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s;
}

.cursor-hover #cursor-outline {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border-color: #fff;
}

/* Sound Toggle */
.sound-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.2rem;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.sound-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.sound-btn.playing {
    background: var(--accent-color);
    color: #000;
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
}

.social-sidebar a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 1.1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-sidebar a:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateX(10px);
    border-color: var(--accent-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 30px;
    background: transparent;
    border: none;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s;
}

.loader {
    width: 80px;
    height: 80px;
    border: 2px solid var(--glass-border);
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loader::after {
    content: 'DUAL JAZE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    color: var(--accent-color);
    white-space: nowrap;
    letter-spacing: 1px;
}

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

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: 'Cinzel', serif;
    letter-spacing: 4px;
}

.title {
    font-size: 5.5rem;
    background: linear-gradient(90deg, #fff, var(--accent-color), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    line-height: 1.1;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 50px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    flex: 1;
    z-index: 10;
    max-width: 650px;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.hero-book {
    width: 400px;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.9));
    transition: transform 0.3s;
}

.subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    margin-top: 80px;
    display: block;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    font-style: italic;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    transition: var(--transition);
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover {
    background: #fff;
}

/* Sections */
.section {
    padding: 150px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
}

/* Reveal Animation */
.reveal-section {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s ease;
}

.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Story Grid */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.story-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.story-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: block;
}

.story-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-15px);
}

/* Characters Section */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.character-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.character-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.character-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-image i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.character-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.character-role {
    color: var(--accent-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tarot Base */
.tarot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
}

.tarot-card,
.fate-card {
    perspective: 1500px;
}

.tarot-card {
    height: 500px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.tarot-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid var(--accent-color);
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-back {
    background: linear-gradient(135deg, #1a0000, #0a0a0a);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.card-back h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Fate Section */
.fate-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.fate-card {
    width: 260px;
    height: 400px;
    cursor: pointer;
}

.fate-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.fate-card.selected {
    z-index: 100;
}

.fate-card.disabled {
    opacity: 0.4;
    filter: grayscale(1);
    pointer-events: none;
}

.fate-card .card-front {
    background: linear-gradient(135deg, #111, #0a0a0a);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.card-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-conic-gradient(from 0deg, transparent 0% 10%, rgba(212, 175, 55, 0.05) 10% 20%);
    animation: rotatePattern 30s linear infinite;
}

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

.card-logo {
    font-size: 3rem;
    color: var(--accent-color);
    z-index: 5;
    text-shadow: 0 0 20px var(--accent-color);
    font-family: 'Cinzel', serif;
}

.fate-card .card-back i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.fate-card .quote {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.fate-card .character {
    color: var(--accent-color);
    font-weight: 700;
}

.fate-result {
    text-align: center;
    margin-top: 60px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fate-result.visible {
    opacity: 1;
    visibility: visible;
}

.reset-fate {
    cursor: pointer;
}

/* Reviews Section */
.reviews-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scrollbar-width: none;
}

.reviews-carousel::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 350px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    scroll-snap-align: start;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--accent-color);
}

.review-stars {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.review-stars i {
    margin-right: 5px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.review-author {
    color: var(--accent-color);
    font-weight: 600;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: var(--glass);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1rem;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: #000;
}

/* Author Section */
.author-content {
    display: flex;
    align-items: center;
    gap: 80px;
    background: var(--glass);
    padding: 80px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.author-info {
    flex: 2;
}

.author-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.author-info p {
    color: var(--text-dim);
    line-height: 1.8;
}

.author-badge {
    flex: 1;
    text-align: center;
}

.misa-identity {
    font-size: 8rem;
    color: rgba(212, 175, 55, 0.1);
    font-family: 'Cinzel', serif;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: var(--text-dim);
    font-size: 1.5rem;
    margin-right: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, rgba(74, 0, 0, 0.3), transparent);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    margin-bottom: 15px;
}

.newsletter-content p {
    color: var(--text-dim);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 18px 25px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.newsletter-form input::placeholder {
    color: var(--text-dim);
}

/* Footer */
.footer {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.publisher {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 15px;
    letter-spacing: 2px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #0a0a0a, #1a0000);
    border: 1px solid var(--accent-color);
    padding: 60px;
    max-width: 600px;
    width: 90%;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.modal-title {
    margin-bottom: 10px;
}

.modal-role {
    color: var(--accent-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-description {
    color: var(--text-dim);
    line-height: 1.8;
}

/* Book Preview Modal */
.book-preview {
    max-width: 700px;
    padding: 40px;
}

.book-container {
    position: relative;
    min-height: 300px;
}

.book-page {
    display: none;
    padding: 40px;
    background: linear-gradient(135deg, #f5f5dc, #e8d4b8);
    color: #1a1a1a;
    min-height: 280px;
    animation: fadeIn 0.5s ease;
}

.book-page.active {
    display: block;
}

.book-page h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.book-page p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.book-quote {
    font-style: italic;
    font-size: 1.1rem;
}

.book-continue {
    text-align: center;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 30px;
}

.book-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.book-btn {
    width: 45px;
    height: 45px;
    background: var(--glass);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1rem;
    transition: var(--transition);
}

.book-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.page-indicator {
    color: var(--accent-color);
    font-family: 'Cinzel', serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Aura Classes */
.aura-crimson {
    --aura-color: rgba(114, 14, 14, 0.4);
}

.aura-gold {
    --aura-color: rgba(212, 175, 55, 0.2);
}

.aura-black {
    --aura-color: rgba(0, 0, 0, 0);
}

/* Responsive */
@media (max-width: 1200px) {
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 80px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-book {
        width: 300px;
        margin-top: 40px;
    }

    .title {
        font-size: 3rem;
    }

    .cta-group {
        justify-content: center;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .author-content {
        flex-direction: column;
        padding: 40px;
        text-align: center;
    }

    .social-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        padding: 20px 30px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .section {
        padding: 80px 0;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .fate-cards {
        flex-direction: column;
        align-items: center;
    }

    .fate-card {
        width: 280px;
        height: 420px;
    }

    .tarot-gallery {
        grid-template-columns: 1fr;
    }

    .tarot-card {
        height: 450px;
    }

    .review-card {
        min-width: 280px;
        padding: 30px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        min-width: 100%;
    }

    .sound-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.2rem;
    }

    .hero-book {
        width: 250px;
    }

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

    .modal-content {
        padding: 40px 25px;
    }
}

/* Music Popup */
.music-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-popup.active {
    display: flex;
    opacity: 1;
}

.music-popup-content {
    background: linear-gradient(135deg, #0a0a0a, #1a0000);
    border: 2px solid var(--accent-color);
    padding: 50px 60px;
    text-align: center;
    max-width: 400px;
    position: relative;
    animation: popupSlideIn 0.5s ease;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-30px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.music-popup-content i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.music-popup-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    letter-spacing: 5px;
}

.music-popup-content p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.misa-signature {
    display: block;
    font-family: 'Cinzel', serif;
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.6;
}

.music-popup-close {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 40px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-popup-close:hover {
    background: var(--accent-color);
    color: #000;
}

/* Newsletter Success */
.newsletter-success {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.newsletter-success i {
    margin-right: 10px;
}

/* Countdown Timer */
.countdown-container {
    margin: 30px 0;
    text-align: center;
}

.countdown-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.countdown-label {
    color: var(--accent-color);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent-color);
    padding: 15px 20px;
    min-width: 70px;
}

.countdown-item span:first-child {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 700;
}

.countdown-unit {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Buy Dropdown */
.buy-dropdown {
    position: relative;
    display: inline-block;
}

.buy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.buy-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0a0a0a, #1a0000);
    border: 1px solid var(--accent-color);
    min-width: 180px;
    z-index: 1000;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.buy-dropdown:hover .buy-dropdown-content,
.buy-dropdown:focus-within .buy-dropdown-content {
    display: block;
    opacity: 1;
}

.buy-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.buy-dropdown-content a:last-child {
    border-bottom: none;
}

.buy-dropdown-content a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
}

.buy-dropdown-content a i {
    width: 20px;
    color: var(--accent-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9000;
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #fff;
    transform: translateY(-5px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0a0a0a, #1a0000);
    border-top: 2px solid var(--accent-color);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-content i {
    font-size: 2rem;
    color: var(--accent-color);
}

.cookie-content p {
    flex: 1;
    min-width: 200px;
    color: var(--text-dim);
}

.cookie-link {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie {
    padding: 10px 25px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie.accept {
    background: var(--accent-color);
    color: #000;
}

.btn-cookie.accept:hover {
    background: #fff;
}

.btn-cookie.reject {
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
}

.btn-cookie.reject:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: linear-gradient(135deg, #0a0a0a, #1a0000);
    border: 2px solid var(--accent-color);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: popupSlideIn 0.3s ease;
}

.share-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.share-close:hover {
    color: var(--accent-color);
}

.share-modal-content h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.share-quote-text {
    font-style: italic;
    color: var(--text-dim);
    padding: 20px;
    border-left: 3px solid var(--accent-color);
    margin: 20px 0;
    text-align: left;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.facebook {
    background: #4267B2;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.copy {
    background: var(--accent-color);
    color: #000;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Share Quote Button - Inline after text */
.quote-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    margin-left: 10px;
    vertical-align: middle;
}

.quote-share-btn:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.1);
}


/* Mobile adjustments for new features */
@media (max-width: 768px) {
    .countdown-timer {
        gap: 8px;
    }

    .countdown-item {
        padding: 10px 12px;
        min-width: 55px;
    }

    .countdown-item span:first-child {
        font-size: 1.5rem;
    }

    .cookie-content {
        text-align: center;
    }

    .back-to-top {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Milestone Active State */
.milestone-active {
    animation: milestoneGlow 1.5s ease infinite;
    font-size: 1.3rem !important;
}

@keyframes milestoneGlow {

    0%,
    100% {
        text-shadow: 0 0 10px var(--accent-color);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color);
        transform: scale(1.05);
    }
}

/* Countdown Released State */
.countdown-released {
    font-size: 1.5rem !important;
    animation: celebratePulse 1s ease infinite;
}

@keyframes celebratePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Milestone Popup */
.milestone-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.milestone-popup.active {
    opacity: 1;
    visibility: visible;
}

.milestone-popup-content {
    background: linear-gradient(135deg, #0a0a0a, #1a0000);
    border: 3px solid var(--accent-color);
    padding: 50px 60px;
    text-align: center;
    max-width: 400px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.milestone-popup.active .milestone-popup-content {
    transform: scale(1);
}

.milestone-emoji {
    font-size: 5rem;
    display: block;
    margin-bottom: 20px;
    animation: bounceEmoji 0.6s ease;
}

@keyframes bounceEmoji {
    0% {
        transform: scale(0) rotate(-10deg);
    }

    50% {
        transform: scale(1.3) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.milestone-popup-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.milestone-popup-content p {
    color: var(--text-dim);
    margin-bottom: 25px;
}

.milestone-close {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 12px 40px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.milestone-close:hover {
    background: #fff;
    transform: translateY(-3px);
}