/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
    --bg-primary: #0a0a0d;
    --bg-secondary: #121217;
    --bg-accent: #191922;
    --bg-card: rgba(18, 18, 23, 0.85);
    
    --gold-primary: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --gold-hover: #f1d26f;
    
    --crimson-accent: #920f0f;
    --crimson-glow: rgba(146, 15, 15, 0.45);
    --crimson-hover: #b81e1e;
    
    --text-primary: #f5f5f7;
    --text-secondary: #b5b5c0;
    --text-muted: #757585;
    
    --border-color: rgba(214, 175, 55, 0.15);
    --border-color-glow: rgba(214, 175, 55, 0.3);
    
    --font-heading: 'Cinzel', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --max-width: 1200px;
    --header-height: 80px;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-accent);
    border: 2px solid var(--bg-primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: var(--transition-fast);
}

/* Typography Utility Classes */
.cinzel-font {
    font-family: var(--font-heading);
}

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

.highlight {
    color: var(--gold-primary);
    text-shadow: 0 0 20px var(--gold-glow);
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.relative-z {
    position: relative;
    z-index: 5;
}

/* ==========================================
   BUTTONS & ACTIONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--crimson-accent) 0%, #610404 100%);
    color: var(--text-primary);
    border: 1px solid var(--crimson-hover);
    box-shadow: 0 4px 20px var(--crimson-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--crimson-hover) 0%, var(--crimson-accent) 100%);
    box-shadow: 0 8px 25px var(--crimson-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(214, 175, 55, 0.08);
    border-color: var(--gold-hover);
    color: var(--gold-hover);
    box-shadow: 0 8px 25px var(--gold-glow);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary) 0%, #b3912b 100%);
    color: #0c0c0e;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold-primary) 100%);
    box-shadow: 0 8px 25px var(--gold-glow);
    color: #0c0c0e;
}

.btn-block {
    width: 100%;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.main-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 13, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(10, 10, 13, 0.92);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary);
    position: relative;
}

.logo a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}


.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

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

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

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

.header-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 10px;
}

.nav-links .header-socials a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    padding: 0;
}

.nav-links .header-socials a:hover {
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.nav-links .header-socials a::after {
    display: none !important;
}

.nav-links .header-socials a svg {
    width: 18px !important;
    height: 18px !important;
}

.nav-links .cta-nav {
    border: 1px solid var(--gold-primary);
    padding: 8px 18px;
    border-radius: 4px;
    color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(214, 175, 55, 0.05);
}

.nav-links .cta-nav:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
}

.nav-links .cta-nav::after {
    display: none;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: var(--text-primary);
    font-size: 2rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-nav-links a {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
}

.mobile-nav-links a:hover {
    color: var(--gold-primary);
}

.mobile-nav-links .cta-nav {
    margin-top: 10px;
    border: 1px solid var(--gold-primary);
    padding: 10px 25px;
    border-radius: 4px;
    color: var(--gold-primary);
}

.mobile-socials {
    display: flex;
    gap: 25px;
    margin-top: 45px;
}

.mobile-socials a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.mobile-socials a:hover {
    color: var(--gold-primary);
    transform: translateY(-3px);
}

.mobile-socials a svg {
    width: 24px;
    height: 24px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(146, 15, 15, 0.12) 0%, rgba(214, 175, 55, 0.05) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.category-tag {
    font-size: 0.85rem;
    color: var(--gold-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
    opacity: 0;
    filter: blur(15px);
}

body.start-animation .category-tag {
    animation: fogReveal 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

.book-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 1px;
    opacity: 0;
    filter: blur(15px);
}

body.start-animation .book-title {
    animation: fogReveal 2s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards;
}

.tagline {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.4;
    border-left: 3px solid var(--crimson-accent);
    padding-left: 20px;
}

.synopsis-brief {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.synopsis-brief p {
    margin-bottom: 16px;
}

.synopsis-brief p:last-child {
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* 3D BOOK MOCKUP */
.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    position: relative;
    width: 100%;
}

/* Static book cover next to the 3D mockup */
.static-book-cover {
    width: 200px;
    height: 298px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(214, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease, border-color 0.6s ease;
    z-index: 6;
}

.static-book-cover:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 20px rgba(214, 175, 55, 0.2);
}

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

.book-3d-holder {
    perspective: 1200px;
    z-index: 5;
}

.book-container {
    width: 480px;
    height: 358px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.book-container:hover {
    transform: rotateY(-15deg) rotateX(10deg) scale(1.2);
}

.book-spine {
    position: absolute;
    width: 48px;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, #1c0505 0%, #440a0a 100%);
    transform: rotateY(-90deg);
    transform-origin: left;
    box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.4);
    border-left: 1px solid var(--gold-primary);
}

.book-spine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 20%, rgba(214, 175, 55, 0.1) 40%, transparent 60%);
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: translateZ(24px);
    background: #111;
    overflow: hidden;
    border-radius: 0 4px 4px 0;
    border: 1px solid rgba(214, 175, 55, 0.3);
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Beautiful light glow reflection behind the book */
.glow-effect {
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, var(--crimson-glow) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    z-index: 2;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: var(--gold-primary);
    border-radius: 50%;
    animation: scroll-anim 1.5s infinite;
}

@keyframes scroll-anim {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

@keyframes fogReveal {
    0% {
        opacity: 0;
        filter: blur(15px);
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* ==========================================
   COUNTDOWN SECTION
   ========================================== */
.countdown-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.countdown-item .number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold-primary);
    font-family: var(--font-heading);
    text-shadow: 0 0 25px var(--gold-glow);
    line-height: 1;
    margin-bottom: 10px;
}

.countdown-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.countdown-divider {
    font-size: 2.5rem;
    color: var(--border-color-glow);
    line-height: 1;
    margin-bottom: 30px;
}

/* ==========================================
   SYNOPSIS / WORLD SECTION
   ========================================== */
.synopsis-section {
    background-color: var(--bg-secondary);
}

.synopsis-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.section-tag {
    color: var(--gold-primary);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.synopsis-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.features-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(146, 15, 15, 0.1);
    border: 1px solid rgba(146, 15, 15, 0.4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crimson-accent);
    flex-shrink: 0;
}

.feature-desc h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.feature-desc p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Immersive Quote Box */
.synopsis-visual {
    display: flex;
    justify-content: center;
}

.quote-card {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 50px 40px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    max-width: 450px;
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px dashed rgba(214, 175, 55, 0.15);
    border-radius: 4px;
    pointer-events: none;
}

.quote-icon {
    font-size: 5rem;
    color: rgba(214, 175, 55, 0.08);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.quote-author {
    font-size: 0.9rem;
    color: var(--gold-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ==========================================
   BESTIARY SECTION (INTERACTIVE)
   ========================================== */
.bestiary-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border-color);
}

.bestiary-section .section-title {
    margin-bottom: 50px;
}

.bestiary-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.bestiary-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background: rgba(18, 18, 23, 0.6);
    transition: var(--transition-smooth);
}

.bestiary-tab:hover {
    border-color: var(--gold-primary);
    color: var(--text-primary);
    background: rgba(214, 175, 55, 0.03);
}

.bestiary-tab.active {
    background: var(--gold-primary);
    color: var(--bg-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.bestiary-display-container {
    max-width: 900px;
    margin: 0 auto;
    min-height: 420px;
    position: relative;
}

.creature-card {
    display: none;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

#creature-divoratore, #creature-araldo, #creature-sussurratore {
    grid-template-columns: 1fr;
    gap: 30px;
}

#creature-divoratore .creature-image-holder {
    width: 100%;
    height: auto;
    aspect-ratio: 1002 / 700;
}

#creature-araldo .creature-image-holder {
    width: 100%;
    height: auto;
    aspect-ratio: 1209 / 880;
}

#creature-sussurratore .creature-image-holder {
    width: 100%;
    height: auto;
    aspect-ratio: 1238 / 764;
}

.creature-card.active {
    display: grid;
}

.creature-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--crimson-hover);
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.creature-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.creature-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.creature-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.creature-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.creature-stats .stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.creature-stats .stat-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-accent);
    border-radius: 4px;
    overflow: hidden;
}

.creature-stats .stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--crimson-accent), var(--gold-primary));
    border-radius: 4px;
}

.creature-stats .stat-val {
    font-size: 0.95rem;
    color: var(--gold-primary);
    font-weight: 600;
}

/* Ethereal placeholder illustration styles for monsters */
.creature-image-holder {
    display: flex;
    justify-content: center;
    align-items: center;
}

.creature-placeholder-art {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: 6px;
    border: 1px solid rgba(214, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.creature-placeholder-art .large-icon {
    font-size: 4rem;
    width: 64px;
    height: 64px;
    transition: var(--transition-smooth);
}

.creature-card:hover .large-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Background flavors */
.bg-divoratore {
    background: radial-gradient(circle, rgba(146, 15, 15, 0.2) 0%, #0d0909 100%);
    color: var(--crimson-hover);
}

.bg-araldo {
    background: radial-gradient(circle, rgba(214, 175, 55, 0.15) 0%, #0e0d0a 100%);
    color: var(--gold-primary);
}

.bg-sussurratore {
    background: radial-gradient(circle, rgba(31, 92, 59, 0.15) 0%, #080a09 100%);
    color: #27a75c;
}

/* ==========================================
   AUTHOR SECTION
   ========================================== */
.author-section {
    background-color: var(--bg-primary);
}

.author-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.author-visual {
    display: flex;
    justify-content: center;
}

.author-frame {
    position: relative;
    width: 320px;
    height: 420px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.author-frame::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid var(--border-color-glow);
    border-radius: 12px;
    pointer-events: none;
}

.author-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-secondary) 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.author-decor-icon {
    width: 60px;
    height: 60px;
    color: var(--gold-primary);
    opacity: 0.15;
}

.author-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.author-socials {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.author-socials a {
    width: 45px;
    height: 45px;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.author-socials a:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--gold-glow);
}

/* ==========================================
   GILDA NEWSLETTER SECTION
   ========================================== */
.newsletter-section {
    background: linear-gradient(0deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.newsletter-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(146, 15, 15, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.newsletter-card {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(18, 18, 23, 0.9);
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    padding: 60px 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(214, 175, 55, 0.05);
}

.newsletter-card h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.newsletter-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(214, 175, 55, 0.15);
}

/* Form Success State */
.form-success-msg {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.form-success-msg h4 {
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.form-success-msg p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.hidden {
    display: none !important;
}

/* ==========================================
   FOOTER
   ========================================== */
.main-footer {
    background-color: #050507;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info h3 {
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-info p {
    color: var(--text-secondary);
    max-width: 450px;
}

.footer-links h4 {
    font-size: 1.1rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.footer-socials h4 {
    font-size: 1.1rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--gold-glow);
}

.footer-copy {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   READER MODAL (INTERACTIVE PREVIEW)
   ========================================== */
.reader-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 7, 0.95);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.reader-modal.active {
    opacity: 1;
    visibility: visible;
}

.reader-container {
    width: 90%;
    max-width: 750px;
    margin: auto;
    position: relative;
    z-index: 210;
}

.reader-close {
    position: fixed;
    top: 25px;
    right: 40px;
    color: var(--text-secondary);
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reader-close:hover {
    color: var(--crimson-hover);
    border-color: var(--crimson-hover);
    transform: rotate(90deg);
}

/* Parchment / Medieval Paper Style */
.reader-paper {
    background-color: #f4ebd0; /* Sepia/Warm tone */
    color: #2b2315; /* Dark ink brown */
    padding: 60px 50px;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(43, 35, 21, 0.08);
    border: 12px double #e0d0b0;
    position: relative;
}

.reader-header {
    text-align: center;
    margin-bottom: 40px;
}

.chapter-number {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: #8c7654;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.chapter-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.parchment-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8c7654, transparent);
    margin: 15px auto 0 auto;
}

.reader-body {
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: justify;
}

.reader-body p {
    margin-bottom: 25px;
    text-indent: 20px;
}

/* Dropcap for beautiful starting letter */
.dropcap-p {
    text-indent: 0 !important;
}

.dropcap {
    font-size: 3.8rem;
    float: left;
    line-height: 0.8;
    margin-top: 4px;
    margin-right: 8px;
    color: #920f0f;
    font-weight: 900;
}

.reader-footer {
    border-top: 1px dashed rgba(43, 35, 21, 0.15);
    margin-top: 50px;
    padding-top: 30px;
}

.reader-footer p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-indent: 0;
}

/* ==========================================
   ANIMATIONS & TRANSITIONS (SCROLL REVEAL)
   ========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* CSS Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hero-visual {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tagline {
        border-left: none;
        border-bottom: 2px solid var(--crimson-accent);
        padding-left: 0;
        padding-bottom: 15px;
    }
    
    .synopsis-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .author-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .author-visual {
        order: 2;
    }
    
    .author-text {
        order: 1;
        text-align: center;
    }
    
    .author-socials {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-socials {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .static-book-cover {
        width: 160px;
        height: 239px;
    }
    .main-header {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .book-title {
        font-size: 2.8rem;
    }
    
    .countdown-container {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: 75px;
    }
    
    .countdown-item .number {
        font-size: 2.5rem;
    }
    
    .countdown-divider {
        display: none;
    }
    
    .creature-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .creature-image-holder {
        order: -1;
    }
    
    .newsletter-card {
        padding: 40px 20px;
    }
    
    .newsletter-card h2 {
        font-size: 1.8rem;
    }
    
    .reader-paper {
        padding: 40px 20px;
    }
    
    .reader-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .reader-modal {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .static-book-cover {
        width: 140px;
        height: 209px;
    }
    .book-container {
        width: 260px;
        height: 194px;
    }
    
    .book-title {
        font-size: 2.3rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* ==========================================
   PRIVACY STYLING
   ========================================== */
.privacy-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    margin-bottom: 10px;
}

.privacy-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--gold-primary);
}

.privacy-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    cursor: pointer;
}

.privacy-link {
    color: var(--gold-primary) !important;
    text-decoration: underline;
}

.privacy-link:hover {
    color: var(--text-primary) !important;
}

.privacy-footer-link {
    color: var(--text-muted);
    text-decoration: underline;
    margin-left: 15px;
    display: inline-block;
    transition: var(--transition-fast);
}

.privacy-footer-link:hover {
    color: var(--gold-primary);
}

/* ==========================================
   HERO EMBERS (PARTICLES)
   ========================================== */
.embers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.ember {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) scale(0.6);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-115vh) translateX(var(--drift, 50px)) scale(1.1);
        opacity: 0;
    }
}

/* ==========================================
   GOOGLE TRANSLATE WORKAROUND & CUSTOM DROPDOWN
   ========================================== */

/* Dynamic Translation System Styles (Placeholder/Custom select styling continues below) */

/* Custom Language Selector Container */
.lang-selector-container {
    display: inline-flex;
    align-items: center;
    margin-left: 18px;
}

.lang-selector-container select {
    background-color: rgba(18, 18, 23, 0.85);
    color: var(--gold-primary);
    border: 1px solid rgba(214, 175, 55, 0.4);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.lang-selector-container select:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
    color: var(--text-primary);
}

.lang-selector-container select option {
    background-color: #121217;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px;
}

.lang-selector-container select option:checked {
    color: var(--gold-primary);
    background-color: rgba(214, 175, 55, 0.15);
}

/* Mobile Layout Override */
.lang-selector-container.mobile-lang {
    margin-left: 0;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

.lang-selector-container.mobile-lang select {
    width: 220px;
    padding: 10px 16px;
    font-size: 0.95rem;
    text-align: center;
    text-align-last: center;
}

/* ==========================================
   CUSTOM COOKIE CONSENT BANNER & CCPA
   ========================================== */
.cookie-banner-container {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    width: 90%;
    max-width: 950px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, visibility 0.5s ease;
}

.cookie-banner-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cookie-banner-card {
    background: rgba(18, 18, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(214, 175, 55, 0.3);
    border-radius: 8px;
    padding: 24px 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(214, 175, 55, 0.1);
}

.cookie-banner-content h3 {
    font-size: 1.25rem;
    color: var(--gold-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.cookie-banner-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: left;
}

.cookie-banner-content p a {
    color: var(--gold-primary);
    text-decoration: underline;
}

.cookie-banner-content p a:hover {
    color: var(--text-primary);
}

.ccpa-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition-fast);
    display: block;
    text-align: left;
}

.ccpa-link-btn:hover {
    color: var(--gold-primary);
}

.cookie-banner-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cookie-banner-buttons .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 130px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* Equal prominence buttons to satisfy GDPR */
.cookie-banner-buttons #cookie-accept-btn {
    background: var(--gold-primary);
    color: var(--bg-primary);
    border: 1px solid var(--gold-primary);
    box-shadow: 0 4px 15px rgba(214, 175, 55, 0.2);
}

.cookie-banner-buttons #cookie-accept-btn:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.cookie-banner-buttons #cookie-reject-btn {
    background: rgba(146, 15, 15, 0.15);
    color: var(--text-primary);
    border: 1px solid rgba(146, 15, 15, 0.5);
    box-shadow: 0 4px 15px rgba(146, 15, 15, 0.1);
}

.cookie-banner-buttons #cookie-reject-btn:hover {
    background: var(--crimson-accent);
    border-color: var(--crimson-accent);
    box-shadow: 0 4px 20px var(--crimson-glow);
}

/* CCPA Modal Styling */
.ccpa-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 7, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.ccpa-modal-container.active {
    opacity: 1;
    visibility: visible;
}

.ccpa-modal-card {
    background: rgba(18, 18, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    padding: 40px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(214, 175, 55, 0.15);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ccpa-modal-container.active .ccpa-modal-card {
    transform: scale(1);
}

.ccpa-modal-card h3 {
    font-size: 1.7rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.ccpa-modal-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.privacy-footer-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    text-decoration: underline;
    font-size: 0.85rem;
    margin-left: 15px;
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-fast);
}

.privacy-footer-link-btn:hover {
    color: var(--gold-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-banner-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 24px;
        text-align: center;
    }
    .cookie-banner-buttons {
        justify-content: center;
        width: 100%;
    }
    .cookie-banner-buttons .btn {
        flex: 1;
        min-width: 0;
    }
}

/* ==========================================
   CHARACTERS SECTION (I PROTAGONISTI - 3D COVERFLOW)
   ========================================== */
.characters-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.carousel-stage {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    margin-top: 40px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 280px;
    height: 380px;
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
}

.character-card {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    cursor: pointer;
    user-select: none;
}

.character-card.active {
    border-color: var(--gold-primary);
    box-shadow: 0 15px 50px var(--gold-glow);
}

.character-card:not(.active):hover {
    border-color: var(--border-color-glow);
}

.character-image-holder {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.character-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.character-card.active:hover .character-img {
    transform: scale(1.05);
}

/* Nav Buttons */
.carousel-prev,
.carousel-next {
    position: absolute;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.carousel-prev {
    left: 8%;
}

.carousel-next {
    right: 8%;
}

.carousel-prev:hover,
.carousel-next:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
    background: var(--bg-accent);
}

/* Character Details Panel */
.character-details-panel-holder {
    width: 100%;
    max-width: 600px;
    margin: 20px auto 0 auto;
    min-height: 180px;
    display: flex;
    justify-content: center;
}

.character-details-panel {
    width: 100%;
    padding: 25px 30px;
    background: rgba(18, 18, 23, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 1;
    transform: translateY(0);
}

.character-details-panel.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.panel-role {
    font-size: 0.8rem;
    color: var(--gold-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.panel-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.panel-divider {
    width: 60px;
    height: 2px;
    background: var(--crimson-accent);
    margin: 0 auto 15px auto;
    box-shadow: 0 0 8px var(--crimson-glow);
}

.panel-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   TEASER GALLERY SECTION (GALLERIA TEASER)
   ========================================== */
.gallery-section {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.quotes-slider-container {
    max-width: 900px;
    margin: 50px auto 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    padding: 50px 60px 40px 60px;
    position: relative;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.quotes-slider-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(146, 15, 15, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.quote-slide-wrap {
    position: relative;
    z-index: 2;
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.quote-slide-wrap.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.quote-slide-wrap.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.quote-icon {
    font-size: 6rem;
    line-height: 1;
    color: var(--gold-primary);
    opacity: 0.12;
    position: absolute;
    top: -30px;
    left: 20px;
    user-select: none;
}

.quote-text {
    font-size: 1.45rem;
    line-height: 1.7;
    font-style: italic;
    color: #e2e2e6;
    margin: 0 0 25px 0;
    font-weight: 300;
    max-width: 800px;
}

.quote-source {
    font-size: 1rem;
    color: var(--gold-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    padding-top: 8px;
}

.quotes-slider-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    position: relative;
    z-index: 3;
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--gold-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background: var(--gold-primary);
    color: #0c0c0e;
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.25);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-glow);
    width: 20px;
    border-radius: 4px;
}

/* ==========================================
   RESPONSIVE LAYOUT ADJUSTMENTS
   ========================================== */
@media (max-width: 1024px) {
    .carousel-prev {
        left: 5%;
    }
    .carousel-next {
        right: 5%;
    }
}

@media (max-width: 768px) {
    .quote-slide-wrap {
        height: 280px;
    }
    .quotes-slider-container {
        padding: 40px 30px 30px 30px;
        margin-top: 30px;
    }
    .quote-text {
        font-size: 1.2rem;
        line-height: 1.6;
    }
    .quote-icon {
        font-size: 4rem;
        top: -20px;
        left: 10px;
    }
    .slider-btn {
        width: 38px;
        height: 38px;
    }
    .carousel-stage {
        height: 380px;
    }
    .carousel-container {
        width: 200px;
        height: 270px;
    }
    .carousel-prev {
        left: 3%;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .carousel-next {
        right: 3%;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .panel-name {
        font-size: 1.3rem;
    }
    .panel-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .quote-slide-wrap {
        height: 380px;
    }
    .carousel-stage {
        height: 320px;
    }
    .carousel-container {
        width: 170px;
        height: 230px;
    }
    .carousel-prev,
    .carousel-next {
        display: none; /* Hide buttons on very small screens, swipe or direct click is preferred */
    }
}

/* ==========================================
   HERO RATING SYSTEM
   ========================================== */
.hero-rating-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    position: relative;
}

.rating-stars-interactive {
    display: flex;
    gap: 5px;
}

.star-interactive {
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform var(--transition-fast) ease, color var(--transition-fast) ease;
}

.star-interactive svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: var(--border-color);
    stroke-width: 1.5px;
}

/* Hover and active states for unlocked rating */
.hero-rating-container.unlocked .star-interactive:hover,
.hero-rating-container.unlocked .star-interactive.hovered {
    color: var(--gold-primary);
    transform: scale(1.15);
}

.hero-rating-container.unlocked .star-interactive.active {
    color: var(--gold-primary);
    filter: drop-shadow(0 0 5px var(--gold-glow));
}

/* Locked state styling */
.hero-rating-container.locked .star-interactive {
    cursor: not-allowed;
    opacity: 0.5;
}

.hero-rating-container.locked .star-interactive.active {
    color: var(--gold-primary);
}

/* Voted state styling */
.hero-rating-container.voted .star-interactive {
    cursor: default;
    pointer-events: none;
}

.hero-rating-container.voted .star-interactive.active {
    color: var(--gold-primary);
    filter: drop-shadow(0 0 3px var(--gold-glow));
}

.rating-summary-text {
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Locked Tooltip Styling */
.rating-locked-tooltip {
    position: absolute;
    bottom: -45px;
    left: 0;
    background: rgba(18, 18, 23, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--crimson-accent);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    pointer-events: none;
    max-width: 280px;
    text-align: left;
}

.rating-locked-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 30px;
    border-width: 0 6px 6px;
    border-style: solid;
    border-color: var(--crimson-accent) transparent;
    display: block;
    width: 0;
}

.hero-rating-container.locked .rating-locked-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Highlight glow animation for newsletter card */
@keyframes goldGlowFlash {
    0% {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(214, 175, 55, 0.05);
        border-color: var(--gold-primary);
    }
    50% {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(214, 175, 55, 0.6);
        border-color: #ffffff;
    }
    100% {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(214, 175, 55, 0.05);
        border-color: var(--gold-primary);
    }
}

.newsletter-card.highlight-glow {
    animation: goldGlowFlash 1.5s ease-in-out 3;
}

/* Responsive adjust */
@media (max-width: 1024px) {
    .hero-rating-container {
        justify-content: center;
        margin-top: 20px;
    }
    .rating-locked-tooltip {
        left: 50%;
        transform: translateX(-50%) translateY(5px);
    }
    .rating-locked-tooltip::before {
        left: 50%;
        transform: translateX(-50%);
    }
    .hero-rating-container.locked .rating-locked-tooltip.show {
        transform: translateX(-50%) translateY(0);
    }
}



