/* =========================================================
   Indavero — Midnight Aurora template
   Deep navy dark, cyan→violet aurora accent, Space Grotesk
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #0a0e1a;
    --bg-2: #121a2e;
    --panel: #141d33;
    --ink: #eef2ff;
    --text: #eef2ff;
    --muted: #94a3c4;
    --faint: #64708c;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --coral: #22d3ee;
    --coral-2: #38bdf8;
    --coral-soft: rgba(34, 211, 238, 0.12);
    --tangerine: #8b5cf6;
    --grad: linear-gradient(120deg, #22d3ee 0%, #8b5cf6 100%);
    --grad-soft: linear-gradient(140deg, rgba(34,211,238,0.16), rgba(139,92,246,0.16));
    --danger: #f87171;
    --charcoal: #060912;
    --display: 'Space Grotesk', system-ui, sans-serif;
    --sans: 'Inter', system-ui, sans-serif;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 26px 56px -28px rgba(0, 0, 0, 0.85);
    --shadow-sm: 0 16px 36px -22px rgba(0, 0, 0, 0.75);
    --shadow-glow: 0 18px 44px -16px rgba(34, 211, 238, 0.5);
    --container: 1180px;
    --nav-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
    font-family: var(--sans);
    background: var(--bg);
    background-image: radial-gradient(900px 520px at 82% -8%, rgba(139,92,246,0.16), transparent 60%),
                      radial-gradient(760px 460px at 10% 4%, rgba(34,211,238,0.10), transparent 60%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.14; letter-spacing: -0.02em; color: var(--ink); }
a { color: var(--coral-2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--coral); }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 26px; }
::selection { background: rgba(34,211,238,0.28); color: #04121a; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--coral); border-radius: 20px; border: 3px solid var(--bg-2); }

/* =========================================================
   HEADER
   ========================================================= */
header {
    position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(10, 14, 26, 0.72);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
header .container { width: 100%; }
.header-content { display: flex; align-items: center; justify-content: center; position: relative; }
.header-logo { height: 46px; width: auto; }

/* =========================================================
   BACK BUTTON
   ========================================================= */
.back-button {
    position: fixed; left: 20px; bottom: 20px; z-index: 900;
    width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%;
    background: var(--panel); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
    transition: transform 0.25s, background 0.25s;
}
.back-button::before { content: "\2190"; font-size: 1.4rem; color: var(--coral); }
.back-button:hover { transform: translateY(-3px); background: var(--grad); }
.back-button:hover::before { color: #04121a; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; text-align: center; padding: calc(var(--nav-h) + 30px) 0 46px; overflow: hidden; }
.hero .container { max-width: 880px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); margin-bottom: 22px; }
.hero h1 br { display: none; }
.hero h1::after { content: ""; display: block; width: 90px; height: 4px; margin: 22px auto 0; background: var(--grad); border-radius: 4px; }
.hero p { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 720px; margin: 0 auto; }
.animated-background { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.animated-background .circle { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: float 18s ease-in-out infinite; }
.animated-background .circle:nth-child(1){ width:300px;height:300px;top:-70px;left:6%;background:radial-gradient(circle,var(--coral),transparent 65%);}
.animated-background .circle:nth-child(2){ width:200px;height:200px;top:24%;right:5%;background:radial-gradient(circle,var(--tangerine),transparent 65%);animation-delay:-5s;}
.animated-background .circle:nth-child(3){ width:150px;height:150px;bottom:6%;left:16%;background:radial-gradient(circle,var(--coral),transparent 65%);animation-delay:-9s;}
.animated-background .circle:nth-child(n+4){ display:none; }
@keyframes float { 0%,100%{transform:translate(0,0);} 50%{transform:translate(14px,-22px);} }

.section-title { font-family: var(--display); text-align: center; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; margin: 0 auto 40px; color: var(--ink); }

/* =========================================================
   CASINO RANKING
   ========================================================= */
.casino-ranking { padding: 34px 0 30px; }
.casino-ranking .container { display: flex; flex-direction: column; gap: 22px; }

.casino-card {
    position: relative; display: grid; grid-template-columns: 60px 130px 1fr auto; align-items: center; gap: 28px;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 32px;
    box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.casino-card:hover { transform: translateY(-4px); box-shadow: var(--shadow), var(--shadow-glow); border-color: rgba(34,211,238,0.45); }
.casino-ranking .casino-card:first-of-type { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral) inset, var(--shadow-sm); }

.ranking-number { font-family: var(--display); font-size: 2.5rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-align: center; line-height: 1; }
.casino-logo-link { display: block; }
.casino-logo { width: 130px; height: 80px; display: grid; place-items: center; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--border); font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--coral); transition: transform 0.3s var(--ease); }
.casino-logo-link:hover .casino-logo { transform: scale(1.04); }
.casino-info { min-width: 0; }
.casino-title { font-family: var(--display); font-size: 1.32rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.verified-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--coral); background: var(--coral-soft); border: 1px solid rgba(34,211,238,0.3); padding: 3px 11px; border-radius: 999px; }
.offer-text { color: var(--ink); font-size: 1.05rem; font-weight: 500; margin-bottom: 14px; }
.pwr-score { margin-bottom: 14px; max-width: 340px; }
.pwr-label { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral-2); font-weight: 700; margin-bottom: 6px; }
.progress-bar { height: 8px; background: rgba(255,255,255,0.10); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width 1.1s var(--ease); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tag { font-size: 0.78rem; color: var(--muted); background: var(--bg-2); border: 1px solid var(--border); padding: 6px 13px; border-radius: 999px; }
.casino-cta { padding: 14px 30px; border-radius: 999px; font-family: var(--display); font-weight: 700; color: #04121a !important; background: var(--grad); white-space: nowrap; box-shadow: 0 12px 28px -12px rgba(34,211,238,0.6); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.casino-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(139,92,246,0.7); }

/* =========================================================
   CONTENT PANELS (regulation / about / responsible)
   ========================================================= */
.regulation-section, .about-section, .responsible-section { padding: 52px 0; }
.regulation-card, .about-intro {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 46px; box-shadow: var(--shadow-sm); max-width: 920px; margin: 0 auto;
}
.regulation-card h2, .about-intro h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 18px; color: var(--ink); }
.regulation-card h2::after, .about-intro h2::after { content: ""; display: block; width: 60px; height: 4px; margin-top: 14px; background: var(--grad); border-radius: 4px; }
.regulation-card h3, .about-intro h3 { font-family: var(--display); font-size: 1.28rem; margin: 26px 0 10px; color: var(--coral-2); }
.regulation-card p, .about-intro p { color: var(--muted); margin-bottom: 15px; }
.regulation-card ul, .about-intro ul { list-style: none; margin: 8px 0 20px; }
.regulation-card li, .about-intro li { position: relative; padding-left: 28px; margin-bottom: 13px; color: var(--muted); }
.regulation-card li::before, .about-intro li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.regulation-card a, .about-intro a, .responsible-section a, .final-reminder a { color: var(--coral-2) !important; text-decoration: underline; text-underline-offset: 3px; }
.regulation-card strong, .about-intro strong { color: var(--ink); }
.policy-last-updated { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--coral-2); background: var(--coral-soft); border: 1px solid rgba(34,211,238,0.28); padding: 8px 18px; border-radius: 999px; margin-bottom: 24px; }

.responsible-intro { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.intro-icon, .feature-icon { flex-shrink: 0; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--border); color: var(--coral); font-size: 1.3rem; }
.responsible-features { display: grid; gap: 22px; }
.feature-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.feature-card h3 { font-family: var(--display); margin: 14px 0 10px; color: var(--coral-2); }
.warning-card { border-color: rgba(248,113,113,0.32); }
.warning-card .feature-icon { color: var(--danger); background: rgba(248,113,113,0.12); }
.warning-list li::before { background: var(--danger); }
.help-card { border-color: rgba(34,211,238,0.34); }
.commitment-card { border-color: var(--border-strong); }
.tips-list { display: grid; gap: 12px; margin-top: 14px; }
.tip-item { background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--coral); padding: 14px 18px; border-radius: 12px; color: var(--muted); box-shadow: var(--shadow-sm); }
.final-reminder { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-section { padding: 56px 0; }
.faq-section .container { max-width: 860px; }
.faq-item { max-width: 860px; margin: 0 auto 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s; }
.faq-item.active { border-color: var(--coral); box-shadow: var(--shadow-sm); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.04rem; color: var(--ink); }
.faq-toggle { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--coral-soft); color: var(--coral); font-size: 1.3rem; font-weight: 700; transition: transform 0.3s var(--ease); }
.faq-item.active .faq-toggle { transform: rotate(45deg); background: var(--grad); color: #04121a; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-item.active .faq-answer { max-height: 600px; }
.faq-answer p { padding: 0 24px 22px; color: var(--muted); }

/* =========================================================
   DISCLAIMER
   ========================================================= */
.responsible-gaming { padding: 20px 0 52px; }
.legal-disclaimer { max-width: 920px; margin: 0 auto; padding: 26px 30px; background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--coral); border-radius: var(--radius); color: var(--muted); font-size: 0.9rem; text-align: center; box-shadow: var(--shadow-sm); }
.legal-disclaimer a { color: var(--coral-2) !important; }

/* =========================================================
   FOOTER (near-black)
   ========================================================= */
footer { background: var(--charcoal); color: #b8c2dc; padding: 52px 0 30px; margin-top: 58px; border-top: 1px solid var(--border); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer-middle { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; width: 100%; }
.footer-links-section, .footer-partners-section { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.footer-column ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
.footer-column a { color: #a6b2cf; font-size: 0.92rem; }
.footer-column a:hover { color: var(--coral); }
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.partner-logo { height: 44px; width: auto; opacity: 0.8; filter: grayscale(0.3) brightness(1.5); transition: 0.25s; }
.partner-logo:hover { opacity: 1; filter: brightness(1.5); }
.footer-bottom { display: flex; flex-direction: column; gap: 14px; align-items: center; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; width: 100%; }
.trustpilot { color: #b8c2dc; font-weight: 600; }
.trustpilot span { color: var(--coral); letter-spacing: 1px; }
.footer-logo-section p, .footer-bottom p { color: #6d7896; font-size: 0.82rem; max-width: 900px; margin: 0 auto; line-height: 1.7; }
.copyright { color: #6d7896; font-size: 0.82rem; }

/* =========================================================
   POPUPS (age / cookie) — JS toggles .active
   ========================================================= */
.popup-overlay, #cookieConsentPopup { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(3, 6, 14, 0.7); backdrop-filter: blur(5px); }
.popup-overlay.active, #cookieConsentPopup.active { display: flex; }
#cookieConsentPopup { align-items: flex-end; background: transparent; backdrop-filter: none; pointer-events: none; }
#cookieConsentPopup .popup-content { pointer-events: auto; max-width: 560px; margin-bottom: 22px; }
.popup-content { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); animation: popIn 0.35s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.popup-header h3 { font-family: var(--display); font-size: 1.35rem; margin-bottom: 14px; color: var(--ink); }
.popup-body { color: var(--muted); margin-bottom: 22px; }
.popup-body a { color: var(--coral-2); }
.age-icon { width: 78px; height: 78px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: #04121a; background: var(--grad); box-shadow: var(--shadow-glow); }
.popup-footer { display: flex; gap: 12px; flex-wrap: wrap; }
.popup-btn { flex: 1; min-width: 140px; padding: 13px 18px; border-radius: 999px; font-family: var(--display); font-weight: 700; cursor: pointer; border: none; transition: transform 0.2s; }
.popup-btn:hover { transform: translateY(-2px); }
.popup-btn.primary { background: var(--grad); color: #04121a; }
.popup-btn.secondary { background: var(--bg-2); color: var(--ink); border: 1px solid var(--border-strong); }

/* =========================================================
   FORMS (contact / unsubscribe)
   ========================================================= */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 15px; font-size: 1rem; font-family: var(--sans); background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 12px; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.form-group select option { background: var(--panel); color: var(--ink); }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); margin-bottom: 18px; }
.checkbox-group input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--coral); }
.button-group { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.btn-cancel, .btn-keep { padding: 13px 28px; border-radius: 999px; font-family: var(--display); font-weight: 700; cursor: pointer; border: none; transition: transform 0.25s var(--ease); }
.btn-cancel { background: rgba(248,113,113,0.14); color: var(--danger); border: 1px solid rgba(248,113,113,0.4); }
.btn-keep { background: var(--grad); color: #04121a; }
.btn-cancel:hover, .btn-keep:hover { transform: translateY(-3px); }
.unsubscribe-header { text-align: center; margin-bottom: 22px; }
.cancel-icon { font-size: 2.6rem; margin-bottom: 10px; }

/* =========================================================
   SCROLL PROGRESS + REVEAL
   ========================================================= */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1100; background: var(--grad); box-shadow: 0 0 12px rgba(34,211,238,0.6); transition: width 0.08s linear; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
    .casino-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; padding: 30px 22px; }
    .casino-title { justify-content: center; }
    .feature-tags { justify-content: center; }
    .pwr-score { max-width: 100%; width: 100%; }
    .casino-cta { width: 100%; }
}
@media (max-width: 768px) {
    .regulation-card, .about-intro { padding: 30px 22px; }
    .hero { padding: calc(var(--nav-h) + 20px) 0 36px; }
    .footer-middle { gap: 24px; }
    .back-button { width: 44px; height: 44px; left: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1; transform: none; }
    #scroll-progress { display: none; }
}
