/* ==========================================================================
   CSS STYLESHEET - FISH SLOT SOCIAL CASINO PLATFORM
   ========================================================================== */

/* 1. BASE OCEAN SYSTEM & VARS */
:root {
    --deep-sea-blue: #071826;
    --ocean-abyss: #0B2233;
    --reef-shadow: #102F44;
    
    --coral-gold: #F4C542;
    --aqua-glow: #3CCFCF;
    --deep-teal: #1C8C8C;
    --treasure-orange: #FF9F43;
    
    --text-primary: #F5F7FA;
    --text-secondary: #B8C6D1;
    --text-muted: #7D8A99;

    --font-stack: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. RESET & DEFAULTS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-stack);
    background-color: var(--deep-sea-blue);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Interactive Cursor Rules */
a, button, iframe, .reward-card, .btn, input, label {
    cursor: pointer;
}
.reward-card:active, .btn:active {
    cursor: grabbing;
}

/* 3. TYPOGRAPHY SYSTEM */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(28px, 4vw, 36px);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(20px, 3vw, 24px);
}

p {
    font-size: 16px;
    color: var(--text-secondary);
}

.glow-cyan {
    color: var(--aqua-glow);
    text-shadow: 0 0 15px rgba(60, 207, 207, 0.4);
}

.gold-text {
    color: var(--coral-gold);
}

/* 3.5 TOP ANNOUNCEMENT BAR */
.disclaimer-bar {
    background: linear-gradient(90deg, #0b2233 0%, #102f44 50%, #0b2233 100%);
    border-bottom: 1px solid rgba(60, 207, 207, 0.25);
    padding: 12px 24px;
    text-align: center;
    position: relative;
    z-index: 1001;
}

.disclaimer-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--coral-gold);
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(244, 197, 66, 0.2);
    margin: 0;
}

/* 4. NAVIGATION BAR (Glassmorphism Ocean Nav) */
.ocean-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(7, 24, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(60, 207, 207, 0.15);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--aqua-glow);
}

/* Aqua Underline Sweep Hover Effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--aqua-glow);
    box-shadow: 0 0 8px var(--aqua-glow);
    transition: width 0.3s ease-out;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge-18 {
    background: transparent;
    color: #FF5A5F;
    border: 2px solid #FF5A5F;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

/* 5. BUTTON COMPONENT LIBRARY */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    transition: var(--transition-smooth);
    border: none;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-primary-glow {
    background: linear-gradient(135deg, var(--coral-gold) 0%, var(--treasure-orange) 100%);
    color: var(--deep-sea-blue);
    box-shadow: 0 4px 15px rgba(244, 197, 66, 0.3);
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(244, 197, 66, 0.5);
    filter: brightness(1.1);
}

/* 6. HERO SECTION & CORE SLOT COMPONENT */
.hero-section {
    position: relative;
    padding: 60px 24px 80px 24px;
    background: radial-gradient(circle at center top, var(--ocean-abyss) 0%, var(--deep-sea-blue) 100%);
    overflow: hidden;
}

/* Subtle Floating Bubble Motion BG (Maximum performance/No-Lag) */
.bubbles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    background: rgba(60, 207, 207, 0.08);
    border: 1px solid rgba(60, 207, 207, 0.15);
    border-radius: 50%;
    animation: bubbleFloat 20s infinite linear;
    bottom: -50px;
}

.bubble-1 { width: 40px; height: 40px; left: 10%; animation-duration: 25s; }
.bubble-2 { width: 80px; height: 80px; left: 25%; animation-duration: 35s; animation-delay: 2s; }
.bubble-3 { width: 30px; height: 30px; left: 55%; animation-duration: 18s; animation-delay: 5s; }
.bubble-4 { width: 60px; height: 60px; left: 75%; animation-duration: 28s; animation-delay: 1s; }
.bubble-5 { width: 50px; height: 50px; left: 90%; animation-duration: 22s; animation-delay: 4s; }

@keyframes bubbleFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50% { opacity: 0.4; }
    100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.disclosure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(28, 140, 140, 0.2);
    border: 1px solid rgba(60, 207, 207, 0.3);
    color: var(--aqua-glow);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--aqua-glow);
    border-radius: 50%;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

.hero-title {
    margin-bottom: 16px;
}

.hero-subtitle {
    max-width: 800px;
    margin: 0 auto 48px auto;
    font-size: 18px;
    color: var(--text-secondary);
}

/* CORE COMPONENT: Wide Cinematic Slot Frame Bezel Styling */
.game-wrapper-frame {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 64px auto;
    background: linear-gradient(135deg, var(--ocean-abyss) 0%, var(--deep-sea-blue) 100%);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(60, 207, 207, 0.15);
    border: 3px solid rgba(60, 207, 207, 0.3);
    position: relative;
}

.frame-bezel {
    background: #040d14;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--deep-teal);
}

.frame-header-bar {
    background: #081a26;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(60, 207, 207, 0.2);
}

.bar-status-lights {
    display: flex;
    gap: 8px;
}

.light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.light.red { background: #ff5f56; }
.light.yellow { background: #ffbd2e; }
.light.green { background: #27c93f; }

.bar-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.bar-tag {
    background: #ff5f56;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

.iframe-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    position: relative;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.frame-footer-glow {
    background: rgba(7, 24, 38, 0.9);
    padding: 16px;
    border-top: 1px solid rgba(60, 207, 207, 0.2);
}

.glow-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--coral-gold);
    text-shadow: 0 0 10px rgba(244, 197, 66, 0.4);
    letter-spacing: 0.05em;
}

/* Compliance Disclosures Layout */
.compliance-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
    margin-top: 48px;
    border-top: 1px solid rgba(184, 198, 209, 0.1);
    padding-top: 40px;
}

.compliance-item {
    background: rgba(16, 47, 68, 0.4);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(184, 198, 209, 0.15);
}

.compliance-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
}

.compliance-item p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.compliance-item p strong {
    color: var(--text-primary);
}

/* 7. OCEAN REWARDS SECTION */
.rewards-section {
    padding: 100px 24px;
    background: var(--ocean-abyss);
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.section-tag {
    color: var(--aqua-glow);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Floating Underwater Style Cards */
.reward-card {
    position: relative;
    background: linear-gradient(135deg, var(--reef-shadow) 0%, rgba(16, 47, 68, 0.2) 100%);
    border-radius: var(--border-radius);
    padding: 40px 32px;
    border: 1px solid rgba(60, 207, 207, 0.1);
    transition: var(--transition-smooth);
    overflow: hidden;
}

/* Soft Glow Edges */
.reward-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(60, 207, 207, 0.1), transparent 70%);
    pointer-events: none;
}

.card-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(60, 207, 207, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(60, 207, 207, 0.25);
}

.reward-icon {
    width: 32px;
    height: 32px;
}

.card-title {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-description {
    font-size: 15px;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.card-footer-info {
    font-size: 13px;
    font-weight: 600;
    color: var(--coral-gold);
    display: inline-block;
    padding-top: 12px;
    border-top: 1px solid rgba(184, 198, 209, 0.1);
    width: 100%;
}

/* Hover variation: scale, soft lift, highlight intensify */
.reward-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(60, 207, 207, 0.4);
    box-shadow: 0 12px 30px rgba(7, 24, 38, 0.6), 0 0 20px rgba(60, 207, 207, 0.1);
}

.reward-card.highlight {
    border-color: rgba(244, 197, 66, 0.3);
}

.reward-card.highlight::before {
    background: radial-gradient(circle at top right, rgba(244, 197, 66, 0.15), transparent 70%);
}

.reward-card.highlight:hover {
    border-color: var(--coral-gold);
    box-shadow: 0 12px 30px rgba(7, 24, 38, 0.6), 0 0 25px rgba(244, 197, 66, 0.15);
}

/* 8. DETAILED FEATURES BLOCK */
.features-section {
    padding: 100px 24px;
    background: var(--deep-sea-blue);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* High end CSS representational visual */
.artistic-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1.1;
    background: radial-gradient(circle at center, var(--reef-shadow) 0%, var(--deep-sea-blue) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(60, 207, 207, 0.15);
    overflow: hidden;
}

.visual-glow-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: transparent;
    border: 3px dashed rgba(60, 207, 207, 0.3);
    animation: rotateRing 30s infinite linear;
}

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

.visual-depth-box {
    position: relative;
    z-index: 2;
    width: 200px;
}

.visual-card {
    background: rgba(11, 34, 51, 0.9);
    border: 2px solid var(--aqua-glow);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.visual-card-hdr {
    font-size: 11px;
    font-weight: 800;
    color: var(--aqua-glow);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.glowing-fish-symbol {
    font-size: 64px;
    margin: 12px 0;
    display: inline-block;
    animation: hoverFish 3s ease-in-out infinite alternate;
}

@keyframes hoverFish {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.glowing-multiplier {
    font-size: 12px;
    font-weight: 700;
    color: var(--coral-gold);
}

.feature-checklist {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-checklist li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--deep-teal);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
}

/* 9. HOW IT WORKS SECTION */
.how-it-works {
    padding: 100px 24px;
    background: var(--ocean-abyss);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--deep-sea-blue);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(184, 198, 209, 0.1);
    position: relative;
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    color: rgba(60, 207, 207, 0.15);
    position: absolute;
    top: 20px;
    right: 32px;
}

.step-title {
    margin-bottom: 16px;
    font-size: 20px;
}

.step-body {
    font-size: 15px;
    color: var(--text-secondary);
}

/* 10. STATS SYSTEM */
.stats-section {
    padding: 80px 24px;
    background: var(--deep-sea-blue);
    border-top: 1px solid rgba(184, 198, 209, 0.1);
    border-bottom: 1px solid rgba(184, 198, 209, 0.1);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--coral-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* 11. FAQ ACCORDION LAYOUT */
.faq-section {
    padding: 100px 24px;
    background: var(--ocean-abyss);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--deep-sea-blue);
    padding: 28px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(60, 207, 207, 0.1);
}

.faq-question {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* 12. OCEAN FOOTER SYSTEM */
.ocean-footer {
    background: #040d14;
    padding: 80px 24px 40px 24px;
    border-top: 2px solid var(--deep-teal);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.footer-intro-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.badge-18-large {
    border: 2px solid #ff5f56;
    color: #ff5f56;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.05em;
    cursor: default;
}

.footer-heading {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--aqua-glow);
    padding-left: 4px;
}

/* Compliance Text Box */
.footer-legal-box {
    background: rgba(11, 34, 51, 0.5);
    border: 1px solid rgba(184, 198, 209, 0.1);
    padding: 32px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.legal-box-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--coral-gold);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.legal-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-text:last-of-type {
    margin-bottom: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(184, 198, 209, 0.15);
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text {
    font-size: 13px;
    color: var(--text-muted);
}

.cookie-trigger-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: underline;
    transition: var(--transition-smooth);
}

.cookie-trigger-btn:hover {
    color: var(--aqua-glow);
}

/* 13. COOKIE CONSENT BANNER & MODAL (PROPERLY REDESIGNED & VISIBLE) */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 420px;
    max-width: calc(100vw - 48px);
    background: rgba(11, 34, 51, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(60, 207, 207, 0.4);
    border-radius: var(--border-radius);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(60, 207, 207, 0.15);
    z-index: 10000;
    padding: 28px;
    transform: translateY(150%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cookie-banner.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-alert-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 8px rgba(60, 207, 207, 0.4));
}

.cookie-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.cookie-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cookie-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.cookie-buttons .btn-cookie.settings {
    grid-column: span 2;
    text-align: center;
    background: rgba(60, 207, 207, 0.1);
    color: var(--aqua-glow);
    text-decoration: none;
    border: 1px dashed rgba(60, 207, 207, 0.3);
    margin-top: 4px;
}

.cookie-buttons .btn-cookie.settings:hover {
    background: rgba(60, 207, 207, 0.2);
    border-color: var(--aqua-glow);
    text-decoration: none;
}

.btn-cookie {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cookie.accept {
    background: linear-gradient(135deg, var(--coral-gold) 0%, var(--treasure-orange) 100%);
    color: var(--deep-sea-blue);
    box-shadow: 0 4px 12px rgba(244, 197, 66, 0.2);
}

.btn-cookie.accept:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(244, 197, 66, 0.35);
}

.btn-cookie.reject {
    background: rgba(184, 198, 209, 0.12);
    color: var(--text-primary);
    border: 1px solid rgba(184, 198, 209, 0.2);
}

.btn-cookie.reject:hover {
    background: rgba(184, 198, 209, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 13, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.cookie-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-box {
    background: radial-gradient(circle at center top, var(--ocean-abyss) 0%, var(--deep-sea-blue) 100%);
    border: 2px solid var(--aqua-glow);
    width: 100%;
    max-width: 520px;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(60, 207, 207, 0.2);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-modal.active .cookie-modal-box {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(60, 207, 207, 0.2);
    padding-bottom: 16px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--coral-gold);
    letter-spacing: -0.01em;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 36px;
    line-height: 1;
    transition: var(--transition-smooth);
    padding: 4px;
}

.close-modal-btn:hover {
    color: #ff5f56;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.setting-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(184, 198, 209, 0.1);
    padding-bottom: 16px;
    gap: 20px;
}

.setting-toggle-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.toggle-info {
    flex: 1;
}

.toggle-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toggle-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.active-badge {
    background: var(--deep-teal);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* Switch styling improvements */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(184, 198, 209, 0.2);
    transition: .3s;
    border-radius: 34px;
    border: 1px solid rgba(184, 198, 209, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

input:checked + .slider {
    background-color: var(--aqua-glow);
    box-shadow: 0 0 10px rgba(60, 207, 207, 0.3);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: var(--deep-sea-blue);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(184, 198, 209, 0.1);
    padding-top: 24px;
}

/* 15. DYNAMIC CODEX PAGE MODALS */
.page-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 24, 38, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 20px;
}

.page-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.page-modal-box {
    background: radial-gradient(circle at center top, var(--ocean-abyss) 0%, var(--deep-sea-blue) 100%);
    border: 2px solid var(--aqua-glow);
    width: 100%;
    max-width: 650px;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(60, 207, 207, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.page-modal.active .page-modal-box {
    transform: translateY(0);
}

.page-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(60, 207, 207, 0.2);
    padding-bottom: 16px;
}

.page-modal-header h3 {
    color: var(--coral-gold);
    font-size: 24px;
    font-weight: 800;
}

.close-page-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 36px;
    line-height: 1;
    transition: var(--transition-smooth);
}

.close-page-modal-btn:hover {
    color: var(--aqua-glow);
    transform: rotate(90deg);
}

.page-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.page-modal-body h4 {
    color: var(--text-primary);
    margin: 20px 0 10px 0;
    font-size: 16px;
}

.page-modal-body p {
    margin-bottom: 16px;
}

.page-modal-body ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.page-modal-body li {
    margin-bottom: 8px;
}

/* Webkit Scrollbar Customization for dynamic content box */
.page-modal-body::-webkit-scrollbar {
    width: 6px;
}
.page-modal-body::-webkit-scrollbar-track {
    background: rgba(7, 24, 38, 0.5);
}
.page-modal-body::-webkit-scrollbar-thumb {
    background: var(--deep-teal);
    border-radius: 3px;
}

/* 16. MOBILE RESPONSIVENESS (Grid & Spacing Adapter) */
@media (max-width: 1024px) {
    .nav-links {
        display: none; /* Keep mobile clean, focus navigation on direct scrolling and primary visual flows */
    }

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

    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .rewards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .compliance-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 560px) {
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        padding: 20px;
    }
    
    .cookie-buttons {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons .btn-cookie.settings {
        grid-column: span 1;
    }
    
    .cookie-modal-box {
        padding: 24px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
}