/* ============================================================
   crowncoins-sweepstakescasino.ca — CSS Design System
   Palette: Deep Teal + Emerald + Gold
   Fonts: Syne (headers) + DM Sans (body)
   Layout: Sticky top-nav + content columns
   ============================================================ */
:root {
    --bg: #0A1A16;
    --bg2: #0D2019;
    --bg3: #122920;
    --bg4: #0F2318;
    --card: #132B22;
    --card2: #183524;
    --border: rgba(0, 184, 149, 0.15);
    --border2: rgba(240, 180, 41, 0.2);

    --teal: #00B895;
    --teal-l: #00D4AC;
    --teal-d: #009478;
    --gold: #F0B429;
    --gold-l: #F5C84A;
    --emerald: #10D66E;
    --red: #FF4757;
    --white: #E8F5F2;
    --text2: #9EC8BE;
    --text3: #5A8A80;

    --font-h: 'Syne', sans-serif;
    --font-b: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;

    --r: 12px;
    --r2: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow2: 0 8px 40px rgba(0, 184, 149, 0.12);
    --glow-teal: 0 0 32px rgba(0, 184, 149, 0.25);
    --glow-gold: 0 0 32px rgba(240, 180, 41, 0.2);

    --max-w: 1240px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-b);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg2);
}

::-webkit-scrollbar-thumb {
    background: var(--teal-d);
    border-radius: 3px;
}

/* SKIP LINK */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 9999;
    background: var(--teal);
    color: var(--bg);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
}

.skip-link:focus {
    left: 8px;
}

/* CONTAINERS */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 26, 22, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 68px;
    position: relative;
}

.nav-logo img {
    display: block;
}

.nav-logo {
    margin-right: 40px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
}

.nav-menu a {
    color: var(--text2);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
    transition: var(--transition);
    font-family: var(--font-h);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--teal-l);
    background: rgba(0, 184, 149, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding-left: 16px;
}

.nav-badge {
    background: var(--teal);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 99px;
    font-family: var(--font-h);
    letter-spacing: 0.5px;
}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text2);
    border-radius: 2px;
    transition: var(--transition);
}

.burger:hover span {
    background: var(--teal-l);
}

/* MOBILE NAV */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 16px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    color: var(--text2);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-h);
    transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--teal-l);
    background: rgba(0, 184, 149, 0.08);
}

.mobile-cta {
    margin-top: 12px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--r);
    border: none;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-teal {
    background: var(--teal);
    color: var(--bg);
    box-shadow: var(--glow-teal);
}

.btn-teal:hover {
    background: var(--teal-l);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 100%);
    color: #1a0800;
    box-shadow: var(--glow-gold);
}

.btn-gold:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 1.5px solid var(--teal);
}

.btn-outline:hover {
    background: rgba(0, 184, 149, 0.1);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text2);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(0, 184, 149, 0.08);
    color: var(--teal-l);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(0, 184, 149, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(240, 180, 41, 0.06) 0%, transparent 60%),
        var(--bg);
}

.hero-grid-line {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 184, 149, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 184, 149, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 80px 0;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 184, 149, 0.12);
    border: 1px solid rgba(0, 184, 149, 0.3);
    border-radius: 99px;
    padding: 6px 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--teal-l);
    font-family: var(--font-h);
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--teal-l);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

h1 {
    font-family: var(--font-h);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--white);
    margin-bottom: 20px;
}

h1 .teal {
    color: var(--teal-l);
}

h1 .gold {
    color: var(--gold);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text2);
    margin-bottom: 28px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-proof {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hp-item {
    display: flex;
    flex-direction: column;
}

.hp-val {
    font-family: var(--font-h);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
}

.hp-lbl {
    font-size: 0.75rem;
    color: var(--text3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual {
    position: relative;
}

.hero-img-wrap {
    border-radius: var(--r2);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow2), var(--glow-teal);
}

.hero-img-wrap img {
    width: 100%;
    display: block;
}

.hero-badge-float {
    position: absolute;
    top: -16px;
    right: -16px;
    background: var(--gold);
    color: #1a0800;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 8px 14px;
    border-radius: var(--r);
    box-shadow: var(--glow-gold);
}

/* ========== SECTIONS ========== */
.section {
    padding: 80px 0;
}

.section-sm {
    padding: 48px 0;
}

.section-dark {
    background: var(--bg2);
}

.section-alt {
    background: var(--bg3);
}

.section-teal-line {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

h2 {
    font-family: var(--font-h);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

h2 .teal {
    color: var(--teal-l);
}

h2 .gold {
    color: var(--gold);
}

.section-desc {
    color: var(--text2);
    max-width: 600px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-h);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.eyebrow-gold {
    color: var(--gold);
}

/* ========== SCORECARD ROW ========== */
.score-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.score-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition);
}

.score-box:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
}

.score-num {
    font-family: var(--font-h);
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal-l);
    line-height: 1;
}

.score-denom {
    font-size: 0.85rem;
    color: var(--text3);
}

.score-lbl {
    font-size: 0.8125rem;
    color: var(--text2);
    margin-top: 6px;
}

.score-bar {
    height: 4px;
    background: rgba(0, 184, 149, 0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    border-radius: 2px;
    transition: width 1s ease;
}

/* ========== FEATURE GRID ========== */
.feat-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feat-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r2);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    opacity: 0;
    transition: var(--transition);
}

.feat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 184, 149, 0.3);
    box-shadow: var(--shadow2);
}

.feat-card:hover::before {
    opacity: 1;
}

.feat-ico {
    width: 48px;
    height: 48px;
    border-radius: var(--r);
    background: rgba(0, 184, 149, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 184, 149, 0.2);
}

.feat-card h3 {
    font-family: var(--font-h);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.feat-card p {
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.6;
}

/* ========== RATING TABLE ========== */
.rating-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.rating-main {}

.rating-sidebar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r2);
    padding: 24px;
    position: sticky;
    top: 88px;
}

.rating-total {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.rating-num {
    font-family: var(--font-h);
    font-size: 4rem;
    font-weight: 800;
    color: var(--teal-l);
    line-height: 1;
}

.rating-max {
    font-size: 1rem;
    color: var(--text3);
}

.rating-stars {
    font-size: 1.25rem;
    color: var(--gold);
    margin: 8px 0;
}

.rating-reviews {
    font-size: 0.8rem;
    color: var(--text3);
}

.cat-scores {}

.cat-item {
    margin-bottom: 16px;
}

.cat-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    margin-bottom: 6px;
}

.cat-name {
    color: var(--text2);
    font-weight: 500;
}

.cat-val {
    color: var(--teal-l);
    font-weight: 700;
    font-family: var(--font-h);
}

.cat-bar {
    height: 5px;
    background: rgba(0, 184, 149, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.cat-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.2s ease;
}

.cta-sidebar {
    margin-top: 20px;
    text-align: center;
}

/* ========== TABLES ========== */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--r2);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

caption {
    font-size: 0.75rem;
    color: var(--text3);
    padding: 12px;
    text-align: left;
    font-style: italic;
}

th {
    background: var(--card2);
    color: var(--teal-l);
    font-family: var(--font-h);
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: left;
    padding: 14px 16px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

th.th-gold {
    color: var(--gold);
}

td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(0, 184, 149, 0.06);
    color: var(--text2);
    vertical-align: middle;
}

tr:hover td {
    background: rgba(0, 184, 149, 0.04);
}

tr:last-child td {
    border-bottom: none;
}

.td-best {
    color: var(--teal-l);
    font-weight: 700;
}

.td-gold {
    color: var(--gold);
    font-weight: 700;
}

.td-ok {
    color: var(--emerald);
    font-weight: 600;
}

.td-warn {
    color: var(--gold);
}

/* ========== COINS DIAGRAM ========== */
.coins-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: stretch;
}

.coin-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r2);
    padding: 28px;
}

.coin-panel.gc-panel {
    border-top: 3px solid var(--gold);
}

.coin-panel.sc-panel {
    border-top: 3px solid var(--teal);
}

.coin-icon-big {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
}

.gc-icon {
    background: rgba(240, 180, 41, 0.15);
    border: 1px solid rgba(240, 180, 41, 0.3);
}

.sc-icon {
    background: rgba(0, 184, 149, 0.15);
    border: 1px solid rgba(0, 184, 149, 0.3);
}

.coin-panel h3 {
    font-family: var(--font-h);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.coin-panel .sub {
    font-size: 0.8125rem;
    color: var(--text3);
    text-align: center;
    margin-bottom: 16px;
}

.coin-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card2);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--text3);
}

.coin-list {
    list-style: none;
    font-size: 0.875rem;
}

.coin-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text2);
}

.coin-list li:last-child {
    border-bottom: none;
}

.coin-list li::before {
    content: '\2713';
    color: var(--emerald);
    font-weight: 700;
    flex-shrink: 0;
    width: 16px;
}

.coin-list li.no::before {
    content: '\2717';
    color: var(--red);
}

/* ========== PROVINCES GRID ========== */
.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.prov-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px;
    text-align: center;
    transition: var(--transition);
}

.prov-card:hover {
    border-color: var(--teal);
}

.prov-name {
    font-size: 0.8125rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 6px;
}

.prov-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(16, 214, 110, 0.12);
    color: var(--emerald);
    border: 1px solid rgba(16, 214, 110, 0.25);
    border-radius: 99px;
    padding: 3px 10px;
}

/* ========== HOW-TO STEPS ========== */
.steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-v {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 32px;
}

.step-v::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 44px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--teal), transparent);
}

.step-v:last-child::after {
    display: none;
}

.step-v:last-child {
    padding-bottom: 0;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--teal);
    color: var(--bg);
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-teal);
    z-index: 1;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-family: var(--font-h);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    margin-top: 8px;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text2);
}

/* ========== FAQ ========== */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 18px 0;
    text-align: left;
    gap: 16px;
    font-family: var(--font-h);
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--teal-l);
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(0, 184, 149, 0.1);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--teal);
    transition: var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
    background: var(--teal);
    color: var(--bg);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer.open {
    max-height: 400px;
}

.faq-answer p {
    padding: 0 0 18px;
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.7;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 184, 149, 0.1) 0%, rgba(240, 180, 41, 0.05) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 72px 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--text2);
    margin-bottom: 28px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ========== SEO ARTICLE ========== */
.seo-article {
    max-width: 720px;
    margin: 0 auto;
}

.seo-article h2 {
    font-size: 1.5rem;
    margin: 36px 0 12px;
    text-align: left;
}

.seo-article h3 {
    font-family: var(--font-h);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--teal-l);
    margin: 24px 0 8px;
}

.seo-article p {
    color: var(--text2);
    margin-bottom: 14px;
}

.seo-article ul {
    list-style: none;
    margin: 0 0 14px;
}

.seo-article ul li {
    padding: 4px 0 4px 22px;
    position: relative;
    color: var(--text2);
    font-size: 0.9rem;
}

.seo-article ul li::before {
    content: '\25B8';
    color: var(--teal);
    position: absolute;
    left: 0;
}

/* ========== NOTICE ========== */
.notice {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--r);
    margin: 20px 0;
    font-size: 0.875rem;
}

.notice.info {
    background: rgba(0, 184, 149, 0.08);
    border: 1px solid rgba(0, 184, 149, 0.2);
}

.notice.warn {
    background: rgba(240, 180, 41, 0.08);
    border: 1px solid rgba(240, 180, 41, 0.2);
}

.notice-ico {
    font-size: 1.1rem;
    flex-shrink: 0;
    padding-top: 1px;
}

.notice p {
    color: var(--text2);
    margin: 0;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    font-size: 0.8125rem;
    color: var(--text3);
    margin-top: 14px;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-h);
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--teal-l);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: var(--text3);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--teal-l);
}

.footer-warning {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px 0;
    font-size: 0.8rem;
    color: var(--text3);
}

.fw-badge {
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 0.875rem;
    padding: 4px 10px;
    border-radius: 8px;
    flex-shrink: 0;
}

.footer-warning a {
    color: var(--teal-l);
    text-decoration: none;
}

.footer-warning a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text3);
}

.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    background: var(--card2);
    border: 1px solid var(--border);
    color: var(--text3);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    font-family: var(--font-h);
}

/* ========== FADE IN ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== PAGE HERO ========== */
.page-hero {
    padding: 64px 0 48px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 184, 149, 0.08) 0%, transparent 70%), var(--bg);
    border-bottom: 1px solid var(--border);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text3);
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: var(--text3);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--teal-l);
}

.breadcrumbs .sep {
    color: var(--text3);
    opacity: 0.4;
}

.breadcrumbs .current {
    color: var(--text2);
}

.page-eyebrow {
    display: inline-block;
    font-family: var(--font-h);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--teal);
    margin-bottom: 12px;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 16px;
}

.page-hero-desc {
    font-size: 1rem;
    color: var(--text2);
    max-width: 640px;
}

/* ========== UTILITY ========== */
.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

.text-center {
    text-align: center;
}

.text-teal {
    color: var(--teal-l);
}

.text-gold {
    color: var(--gold);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .score-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .feat-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .rating-layout {
        grid-template-columns: 1fr;
    }

    .rating-sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-visual {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .burger {
        display: flex;
    }

    .feat-grid-3 {
        grid-template-columns: 1fr;
    }

    .feat-grid-2 {
        grid-template-columns: 1fr;
    }

    .score-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .coins-split {
        grid-template-columns: 1fr;
    }

    .coin-vs {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .score-row {
        grid-template-columns: 1fr 1fr;
    }

    .province-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== TABLE & MOBILE FIX v4 ========== */

/* Table wrapper: always scrollable */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.table-wrap table {
    min-width: 500px; /* allow scroll, don't squish */
    width: 100%;
    border: none;
    border-radius: 0;
}

/* Global overflow prevention */
html, body, main {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
}

img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-break: break-word;
}

p, li, td, th, span, a {
    overflow-wrap: break-word;
}

/* -------- 768px -------- */
@media (max-width: 768px) {

    .container {
        padding: 0 16px !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Rating layout: MUST be 1 col */
    .rating-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .rating-sidebar {
        position: static !important;
        order: -1; /* put sidebar above main */
    }

    /* Tables: ALL tables scrollable */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.82rem;
        max-width: 100%;
    }

    .table-wrap {
        max-width: calc(100vw - 32px);
    }

    /* Logo: smaller */
    .nav-logo img {
        width: 130px !important;
        height: auto !important;
        max-width: 130px !important;
    }

    /* Nav */
    .nav-menu, .nav-actions { display: none !important; }
    .burger { display: flex !important; order: 3; }

    .nav-inner {
        height: 58px;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .nav-logo { order: 1; flex: 0 0 auto; }

    .mobile-reg-btn {
        display: inline-flex !important;
        order: 2;
        flex: 0 0 auto;
        align-items: center;
        gap: 3px;
        background: linear-gradient(135deg, #b8860b, #d4af37);
        color: #000 !important;
        font-weight: 700;
        font-size: 0.72rem;
        border-radius: 6px;
        padding: 5px 10px;
        text-decoration: none;
        white-space: nowrap;
    }

    /* Sections: force 100% width */
    section, .section, .page-hero {
        overflow-x: hidden;
        max-width: 100% !important;
    }

    section[style],
    div[style*="max-width"] {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        overflow-x: hidden !important;
    }

    /* Grids: all 1 column */
    .hero-inner,
    .feat-grid-3,
    .feat-grid-2,
    .coins-split {
        grid-template-columns: 1fr !important;
    }

    .hero-visual { display: none; }
    .coin-vs { display: none; }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .score-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 20px; }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .page-hero { padding: 24px 0 16px; }
    .page-hero h1 { font-size: clamp(1.2rem, 5.5vw, 1.7rem); }
    .section { padding: 32px 0; }
}

/* -------- 480px -------- */
@media (max-width: 480px) {
    h1 { font-size: clamp(1.1rem, 6vw, 1.5rem) !important; }
    h2 { font-size: clamp(1rem, 5vw, 1.3rem) !important; }

    .container { padding: 0 12px !important; }

    .table-wrap { max-width: calc(100vw - 24px); }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-btns .btn { width: 100%; text-align: center; }

    .btn { font-size: 0.82rem; padding: 9px 14px; }
}

/* ========== UTILITY ========== */
@media (max-width: 600px) {
    /* Hide Key Finding column in scoring table */
    .hide-mobile {
        display: none !important;
    }

    /* Also hide by nth-child for tables without class */
    table.score-table th:nth-child(4),
    table.score-table td:nth-child(4) {
        display: none;
    }
}


/* Tech pages hidden in desktop nav */
.nav-desktop-hide { display: none !important; }
@media (max-width: 768px) {
  .nav-desktop-hide { display: inline-block !important; }
}

/* ── MOBILE FIX v2 (targeted) ────────────────── */
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    min-width: 0;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    body > * {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .section,
    section {
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .feat-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .feat-grid-3,
    .feat-grid-2 {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
    
    .score-row {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
    }
    
    .hero-inner {
        grid-template-columns: 1fr !important;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    table {
        display: block !important;
        overflow-x: auto !important;
        max-width: 100% !important;
    }
    
    #sec-autorin > div {
        flex-direction: column !important;
        text-align: center;
    }
    
    h1 {
        font-size: clamp(1.5rem, 7vw, 2.5rem) !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    
    h2 {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    
    p, li, span, a {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}
