:root {
    --bg-main: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    --bg-elevated: #F8FAFC;
    --bg-glass: rgba(255, 255, 255, 0.92);

    /* Bright light-theme gaming & sports accents */
    --brazil-green: #059669;
    --brazil-green-glow: rgba(5, 150, 105, 0.2);
    --brazil-green-dark: #047857;
    --brazil-yellow: #D97706;
    --brazil-yellow-glow: rgba(217, 119, 6, 0.2);
    --brazil-blue: #2563EB;
    --brazil-blue-glow: rgba(37, 99, 235, 0.16);

    /* Typography colors (High contrast on white) */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;

    /* Borders & dividers */
    --border-subtle: #E2E8F0;
    --border-hover: rgba(5, 150, 105, 0.45);
    --border-accent: rgba(217, 119, 6, 0.35);

    /* Radius & shadows */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --shadow-card: 0 2px 12px rgba(15, 23, 42, 0.05);
    --shadow-glow: 0 4px 18px var(--brazil-green-glow);

    /* Fonts */
    --font-heading: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "DM Mono", monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* Subtle light background aura */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 25%, rgba(37, 99, 235, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 50% 75%, rgba(245, 158, 11, 0.04) 0%, transparent 50%),
        #FFFFFF;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* =========================================================
   HEADER / NAVBAR (Light Sticky Bar)
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
    height: 60px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .site-header {
        height: 68px;
    }
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 1;
}

.brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .brand {
        font-size: 20px;
        gap: 10px;
    }
}

.brand-badge {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #059669, #10B981);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 2px 8px var(--brazil-green-glow);
    flex-shrink: 0;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .brand-badge {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }
}

.main-nav {
    display: none;
    align-items: center;
    gap: 16px;
}

@media (min-width: 900px) {
    .main-nav {
        display: flex;
    }
}

.main-nav a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.main-nav a:hover {
    color: var(--brazil-green-dark);
    background: #ECFDF5;
}

.header-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #059669, #10B981);
    color: #FFFFFF;
    box-shadow: 0 3px 10px var(--brazil-green-glow);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .header-action {
        gap: 8px;
        padding: 10px 18px;
        font-size: 13px;
    }
}

.header-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(5, 150, 105, 0.3);
}

.header-action svg {
    width: 14px;
    height: 14px;
}

/* =========================================================
   HERO BANNER (Light Mode)
   ========================================================= */
.hero {
    position: relative;
    padding: 24px 0 20px;
}

@media (min-width: 768px) {
    .hero {
        padding: 50px 0 36px;
    }
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: var(--brazil-green-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
}

.hero-pill span.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brazil-green);
    box-shadow: 0 0 8px var(--brazil-green);
    display: inline-block;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 6.5vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 12px;
    max-width: 760px;
}

.hero-title span.highlight {
    background: linear-gradient(135deg, #059669, #D97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-copy {
    color: var(--text-secondary);
    font-size: clamp(14px, 2.2vw, 17px);
    line-height: 1.5;
    max-width: 620px;
    margin-bottom: 20px;
}

.hero-actions-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .hero {
        padding: 16px 0 12px;
    }

    .hero-pill {
        margin-bottom: 8px;
        padding: 4px 10px;
        font-size: 10px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .hero-copy {
        display: -webkit-box;
        margin-bottom: 12px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .hero-actions-group {
        flex-wrap: nowrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .hero-actions-group a,
    .hero-actions-group button {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }

    .hero-metrics-grid {
        gap: 8px;
        margin-top: 12px;
    }

    .hero-metrics-grid .metric-card:nth-child(n + 3) {
        display: none;
    }

    .metric-card {
        padding: 10px 12px;
    }

    .metric-card strong {
        font-size: 18px;
    }

    .trust-strip {
        display: none;
    }
}

.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 20px;
    max-width: 800px;
}

@media (min-width: 640px) {
    .hero-metrics-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

.metric-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.metric-card strong {
    font-family: var(--font-heading);
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 800;
    color: var(--brazil-green);
    line-height: 1.1;
    margin-bottom: 3px;
}

.metric-card span {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* =========================================================
   TRUST BANNER (Light Strip)
   ========================================================= */
.trust-strip {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin: 16px 0 28px;
    padding: 12px 0;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
    align-items: center;
}

@media (min-width: 768px) {
    .trust-items {
        grid-template-columns: repeat(4, 1fr);
        padding: 4px 0;
    }
}

.trust-items p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .trust-items p {
        font-size: 13px;
        gap: 10px;
    }
}

.trust-items p svg {
    color: var(--brazil-green);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .trust-items p svg {
        width: 18px;
        height: 18px;
    }
}

/* =========================================================
   CONTROLS & SEARCH / FILTERS (Mobile-Optimized)
   ========================================================= */
.section-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

main > #ranking {
    padding-top: 14px;
}

@media (min-width: 768px) {
    main > #ranking {
        padding-top: 32px;
    }

    .section-heading {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 14px;
    }
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 4.5vw, 34px);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.section-eyebrow {
    color: var(--brazil-green);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-eyebrow svg {
    width: 14px;
    height: 14px;
}

.ranking-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.ranking-page-meta,
.ranking-meta .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ranking-page-meta svg {
    width: 15px;
    height: 15px;
}

.ranking-meta .live-badge {
    color: var(--brazil-green);
    font-weight: 800;
}

.ranking-meta .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brazil-green);
    display: inline-block;
}

.finder-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.ranking-controls {
    margin-bottom: 12px;
}

.ranking-controls summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.ranking-controls summary::-webkit-details-marker {
    display: none;
}

.ranking-controls summary svg {
    width: 15px;
    height: 15px;
    color: var(--brazil-green);
}

.ranking-controls summary svg:last-child {
    margin-left: auto;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.ranking-controls[open] summary {
    margin-bottom: 8px;
}

.ranking-controls[open] summary svg:last-child {
    transform: rotate(180deg);
}

@media (min-width: 900px) {
    .ranking-controls {
        margin-bottom: 14px;
    }

    .ranking-controls summary {
        display: none;
    }

    .finder-box {
        flex-direction: row;
        align-items: center;
        padding: 8px 10px;
        gap: 8px;
    }
}

.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
}

.search-field:focus-within {
    border-color: var(--brazil-green);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.search-field svg {
    color: var(--text-muted);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.search-field input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    font-size: 13px;
}

.search-field input::placeholder {
    color: var(--text-muted);
}

.search-submit {
    align-items: center;
    background: var(--brazil-green);
    border: 0;
    border-radius: 6px;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    gap: 0.3rem;
    padding: 0.45rem 0.7rem;
}

.search-submit svg {
    color: inherit;
    height: 0.9rem;
    width: 0.9rem;
}

.search-submit:hover {
    background: var(--brazil-green-dark);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 7px 10px;
    border-radius: var(--radius-full);
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.filter-chip:hover {
    color: var(--text-primary);
    border-color: var(--brazil-green);
    background: #ECFDF5;
}

.filter-chip.is-active {
    background: var(--brazil-green);
    color: #FFFFFF;
    border-color: var(--brazil-green);
    font-weight: 800;
    box-shadow: 0 2px 8px var(--brazil-green-glow);
}

.sort-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

@media (min-width: 900px) {
    .sort-field {
        white-space: nowrap;
        justify-content: flex-start;
    }
}

.sort-field select {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    outline: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    max-width: 160px;
}

.result-count-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding: 0 2px;
}

.result-count-bar span.live-badge {
    color: var(--brazil-green);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =========================================================
   CASINO RANKING CARDS (Light Theme + Ultra-Fluid Mobile)
   ========================================================= */
.casino-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .casino-list {
        gap: 16px;
    }
}

.casino-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .casino-card {
        padding: 18px;
        border-radius: var(--radius-lg);
        gap: 14px;
    }
}

.casino-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.casino-card.is-special-recommended {
    border-color: rgba(5, 150, 105, 0.45);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.06) 0%, #FFFFFF 35%);
}

.casino-card.is-special-recommended:hover {
    border-color: var(--brazil-green);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, #F8FAFC 35%);
}

.special-recommendation-label {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #A7F3D0;
    border-radius: var(--radius-sm);
    background: #ECFDF5;
    color: var(--brazil-green);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    flex-shrink: 0;
}

.special-recommendation-label svg {
    width: 11px;
    height: 11px;
}

/* Card Header on Mobile: Rank + Logo + Brand Info + Score */
.card-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    flex-shrink: 0;
}

.casino-card[data-rank="1"] .rank-badge {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #B45309;
}

.casino-card[data-rank="2"] .rank-badge {
    background: #E0F2FE;
    border-color: #38BDF8;
    color: #0369A1;
}

.casino-card[data-rank="3"] .rank-badge {
    background: #FFEDD5;
    border-color: #FB923C;
    color: #C2410C;
}

.casino-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    color: var(--brazil-green);
    flex-shrink: 0;
    overflow: hidden;
}

.casino-avatar.coral { background: #FFF1F2; color: #E11D48; border-color: #FECDD3; }
.casino-avatar.navy { background: #EFF6FF; color: #2563EB; border-color: #BFDBFE; }
.casino-avatar.mint { background: #ECFDF5; color: #059669; border-color: #A7F3D0; }
.casino-avatar.gold { background: #FFFBEB; color: #D97706; border-color: #FDE68A; }

.casino-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    background: #FFFFFF;
}

.card-title-group {
    flex: 1;
    min-width: 0;
}

.card-brand-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.card-brand-name span.name-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.casino-status-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.casino-status-icon svg {
    width: 12px;
    height: 12px;
}

.casino-status-icon.is-safe {
    border-color: #A7F3D0;
    background: #ECFDF5;
    color: #059669;
}

.casino-status-icon.is-hot {
    border-color: #FED7AA;
    background: #FFF7ED;
    color: #EA580C;
}

.verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #047857;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    flex-shrink: 0;
}

.verified-tag svg {
    width: 10px;
    height: 10px;
}

.features-text {
    color: var(--text-secondary);
    font-size: 11px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-score-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.card-score-num {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    color: var(--brazil-yellow);
}

.card-score-num span.scale {
    font-size: 10px;
    color: var(--text-muted);
}

.card-score-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Card Body: Bonus Box */
.card-bonus-box {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bonus-label-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bonus-caption {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--brazil-green-dark);
    display: flex;
    align-items: center;
    gap: 4px;
}

.bonus-caption svg {
    width: 12px;
    height: 12px;
}

.bonus-highlight {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bonus-extra {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badges for Payouts & Speed */
.card-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pix-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: #F0FDFA;
    border: 1px solid #99F6E4;
    color: #0F766E;
    font-size: 10px;
    font-weight: 800;
}

.pix-pill svg {
    width: 11px;
    height: 11px;
}

.speed-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: #F8FAFC;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
}

/* Card Action Buttons */
.card-actions-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 8px;
}

.btn-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #059669, #10B981);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 10px var(--brazil-green-glow);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-visit:hover {
    background: var(--brazil-green-dark);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.32);
}

.btn-visit svg {
    width: 14px;
    height: 14px;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 12px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-details:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
}

.btn-details svg {
    width: 14px;
    height: 14px;
}

/* =========================================================
   DESKTOP COMPACT ROW VIEW FOR CASINO CARDS
   ========================================================= */
@media (min-width: 900px) {
    .casino-list .casino-card {
        display: grid;
        grid-template-columns: 36px 46px minmax(180px, 1.4fr) 120px minmax(180px, 1fr) 170px;
        align-items: center;
        gap: 16px;
        padding: 16px 20px;
        border-radius: var(--radius-lg);
    }

    .casino-list .card-header-row {
        display: contents;
    }

    .casino-list .card-title-group {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .casino-list .card-bonus-box {
        background: transparent;
        border: none;
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .casino-list .card-score-pill {
        align-items: center;
        padding: 0 10px;
        border-left: 1px solid var(--border-subtle);
        border-right: 1px solid var(--border-subtle);
    }

    .casino-list .card-actions-row {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .casino-list .btn-visit {
        padding: 9px 12px;
        font-size: 11px;
    }

    .casino-list .btn-details {
        padding: 6px 10px;
        font-size: 11px;
    }

    .casino-list .card-pills-row {
        display: none;
    }
}

/* =========================================================
   MOBILE FIRST-SCREEN TOP 3 OPTIMIZATION (Matches Theme One)
   ========================================================= */
@media (max-width: 767px) {
    .site-header {
        height: 54px;
    }

    .nav-wrap {
        gap: 8px;
    }

    .brand {
        font-size: 15px;
        gap: 6px;
    }

    .brand-badge {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .brand-logo {
        width: 30px;
        height: 30px;
    }

    main > #ranking {
        padding-top: 10px;
    }

    .section-heading {
        gap: 4px;
        margin-bottom: 8px;
    }

    .section-title {
        font-size: 20px;
        line-height: 1.15;
    }

    .ranking-controls {
        margin-bottom: 8px;
    }

    .ranking-controls summary {
        min-height: 34px;
    }

    .casino-list {
        gap: 8px;
    }

    .casino-list .casino-card {
        padding: 9px 10px;
        gap: 6px;
    }

    .casino-list .card-header-row {
        gap: 8px;
    }

    .casino-list .rank-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .casino-list .casino-avatar {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .casino-list .card-brand-name {
        font-size: 15px;
    }

    .casino-list .features-text,
    .casino-list .card-score-label,
    .casino-list .card-pills-row {
        display: none;
    }

    .casino-list .card-bonus-box {
        min-height: 30px;
        padding: 4px 8px;
    }

    .casino-list .bonus-label-group {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .casino-list .bonus-caption {
        font-size: 8px;
        letter-spacing: 0.2px;
    }

    .casino-list .bonus-caption svg {
        width: 10px;
        height: 10px;
    }

    .casino-list .bonus-highlight {
        font-size: 13px;
    }

    .casino-list .btn-visit,
    .casino-list .btn-details {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* =========================================================
   PAGINATION (Touch-friendly Light Mode)
   ========================================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 28px 0;
    flex-wrap: wrap;
}

.pagination a {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.pagination a:hover {
    color: var(--brazil-green-dark);
    border-color: var(--brazil-green);
    background: #ECFDF5;
}

.pagination a.is-current {
    background: var(--brazil-green);
    color: #FFFFFF;
    border-color: var(--brazil-green);
    font-weight: 900;
}

/* =========================================================
   COMMUNITY SCORE & REVIEWS SECTION
   ========================================================= */
.review-section {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 36px 0;
    margin: 32px 0;
}

@media (min-width: 900px) {
    .review-section {
        padding: 50px 0;
        margin: 44px 0;
    }
}

.review-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 900px) {
    .review-layout {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 56px;
        align-items: center;
    }
}

.score-panel {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .score-panel {
        padding: 24px;
        border-radius: var(--radius-lg);
    }
}

.score-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.score-total strong {
    font-family: var(--font-heading);
    font-size: clamp(42px, 8vw, 60px);
    font-weight: 900;
    color: var(--brazil-yellow);
    line-height: 1;
}

.score-total span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
}

.score-stars {
    display: flex;
    gap: 3px;
    color: var(--brazil-yellow);
    margin: 8px 0 4px;
}

.score-stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.score-breakdown span {
    display: grid;
    grid-template-columns: 20px 18px 1fr 36px;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.score-breakdown b {
    height: 6px;
    border-radius: var(--radius-full);
    background: #E2E8F0;
    overflow: hidden;
    position: relative;
}

.score-breakdown b::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--width);
    background: linear-gradient(90deg, var(--brazil-green), #F59E0B);
    border-radius: var(--radius-full);
}

.score-breakdown em {
    font-style: normal;
    text-align: right;
    color: var(--text-primary);
}

/* =========================================================
   CRITERIA CARDS
   ========================================================= */
.criteria-section {
    padding: 24px 0 40px;
}

.criteria-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
}

@media (min-width: 600px) {
    .criteria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .criteria-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.criteria-grid article {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .criteria-grid article {
        border-radius: var(--radius-lg);
        padding: 22px;
        gap: 12px;
    }
}

.criteria-grid article > svg {
    width: 26px;
    height: 26px;
    color: var(--brazil-green);
}

.criteria-grid h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.criteria-grid p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    flex: 1;
}

.criteria-grid span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brazil-green);
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* =========================================================
   RESPONSIBLE GAMING STRIP (18+)
   ========================================================= */
.responsible {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    padding: 24px 0;
}

.responsible-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .responsible-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.responsible-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #E11D48;
    color: #E11D48;
    background: #FFF1F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 900;
    flex-shrink: 0;
}

.responsible-text-box {
    flex: 1;
}

.responsible-text-box p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

.responsible-text-box strong {
    color: var(--text-primary);
}

/* =========================================================
   FOOTER & FEEDBACK CHANNEL (Light Mode)
   ========================================================= */
.site-footer {
    background: #F8FAFC;
    border-top: 1px solid var(--border-subtle);
    padding: 36px 0 28px;
}

.footer-feedback-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
    .footer-feedback-card {
        grid-template-columns: 0.95fr 1.25fr;
        align-items: center;
        padding: 24px 28px;
        gap: 28px;
    }
}

.footer-feedback-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 4px 0 8px;
}

.footer-feedback-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.footer-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-feedback-form-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-feedback-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--brazil-green);
}

.footer-feedback-user svg {
    width: 15px;
    height: 15px;
}

.footer-feedback-form select {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

.footer-feedback-form textarea {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
    resize: vertical;
}

.footer-feedback-form textarea:focus,
.footer-feedback-form select:focus {
    border-color: var(--brazil-green);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.footer-feedback-form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-feedback-locked {
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-feedback-locked-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ECFDF5;
    color: var(--brazil-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-feedback-locked-icon svg {
    width: 20px;
    height: 20px;
}

.footer-feedback-locked-text {
    flex: 1;
    min-width: 200px;
}

.footer-feedback-locked-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 3px;
}

.footer-feedback-locked-text p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-inner p {
    color: var(--text-muted);
    font-size: 11px;
}

/* =========================================================
   MOBILE BOTTOM DOCK / NAVIGATION BAR (Light Mode)
   ========================================================= */
.mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
}

@media (min-width: 992px) {
    .mobile-bottom-dock {
        display: none;
    }
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    padding: 6px 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.dock-item svg {
    width: 18px;
    height: 18px;
}

.dock-item.is-active,
.dock-item:hover {
    color: var(--brazil-green);
}

.dock-action-btn {
    background: linear-gradient(135deg, #059669, #10B981);
    color: #FFFFFF !important;
    border-radius: var(--radius-full);
    padding: 6px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-weight: 800;
    font-size: 11px;
    box-shadow: 0 2px 10px var(--brazil-green-glow);
}

.dock-action-btn svg {
    width: 15px;
    height: 15px;
}

/* =========================================================
   MODAL / REVIEW DIALOG (Light Mode)
   ========================================================= */
.review-dialog {
    width: min(520px, calc(100% - 24px));
    margin: auto;
    padding: 22px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    color: var(--text-primary);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

@media (max-width: 600px) {
    .review-dialog {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding: 20px 16px;
    }
}

.review-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.review-dialog form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dialog-close {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dialog-close:hover {
    background: #F1F5F9;
    color: var(--text-primary);
}

.dialog-close svg {
    width: 16px;
    height: 16px;
}

.review-dialog h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
}

.review-dialog label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.review-dialog select,
.review-dialog textarea {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 12px;
    outline: none;
    font-size: 13px;
}

.review-dialog textarea:focus {
    border-color: var(--brazil-green);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.star-picker {
    border: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.star-picker legend {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

#star-picker-buttons,
#inline-star-picker-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

#star-picker-buttons button,
#inline-star-picker-buttons button {
    background: transparent !important;
    border: none !important;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, color 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
}

#star-picker-buttons button:hover,
#inline-star-picker-buttons button:hover {
    transform: scale(1.18);
    color: var(--brazil-yellow) !important;
}

#star-picker-buttons button.is-selected,
#inline-star-picker-buttons button.is-selected {
    color: var(--brazil-yellow) !important;
}

#star-picker-buttons button svg,
#inline-star-picker-buttons button svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: transparent;
    transition: fill 0.15s ease, stroke 0.15s ease;
    pointer-events: none;
}

#star-picker-buttons button.is-selected svg,
#inline-star-picker-buttons button.is-selected svg,
#star-picker-buttons button.is-hovered svg,
#inline-star-picker-buttons button.is-hovered svg {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.star-score-hint {
    font-size: 13px;
    font-weight: 800;
    color: var(--brazil-yellow);
    margin-left: 6px;
    letter-spacing: 0.3px;
}

.form-feedback {
    font-size: 12px;
    font-weight: 700;
    color: var(--brazil-green);
    min-height: 18px;
}

.form-submit {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #059669, #10B981);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.empty-state {
    text-align: center;
    padding: 36px 16px;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px dashed #CBD5E1;
}

/* =========================================================
   GOOGLE AUTH & USER PROFILE BADGES (Light Mode)
   ========================================================= */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.header-auth-box {
    display: flex;
    align-items: center;
}

#google-header-signin-btn {
    min-height: 40px;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

#google-review-dialog-signin-btn,
#google-inline-card-signin-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px 0;
    width: 100%;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 5px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-full);
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.user-pill:hover {
    border-color: var(--brazil-green);
    background: #ECFDF5;
}

.user-pill-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--brazil-green);
    flex-shrink: 0;
}

.user-pill-avatar-fallback {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ECFDF5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brazil-green);
    border: 1.5px solid var(--brazil-green);
    flex-shrink: 0;
}

.user-pill-avatar-fallback svg {
    width: 15px;
    height: 15px;
}

.user-pill-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-pill-logout {
    background: #FFF1F2;
    border: 1px solid #FECDD3;
    color: #E11D48;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.user-pill-logout:hover {
    background: #FFE4E6;
    border-color: #FB7185;
    color: #BE123C;
}

.user-pill-logout svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    #google-header-signin-btn {
        min-height: 34px;
        min-width: 0;
    }

    .user-pill {
        gap: 5px;
        padding: 3px 5px 3px 4px;
    }

    .user-pill-avatar,
    .user-pill-avatar-fallback {
        width: 24px;
        height: 24px;
    }

    .user-pill-avatar-fallback svg {
        width: 13px;
        height: 13px;
    }

    .user-pill-name {
        max-width: 64px;
        font-size: 11px;
    }

    .user-pill-logout {
        padding: 3px 8px;
        font-size: 10px;
        gap: 3px;
    }

    .user-pill-logout svg {
        width: 11px;
        height: 11px;
    }
}

/* =========================================================
   REVIEWS & DETAILS PAGES (Responsive Light Mode)
   ========================================================= */
.page-main {
    padding-top: 28px;
    padding-bottom: 52px;
}

.reviews-page-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviews-page-lead {
    color: var(--text-secondary);
    max-width: 740px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.reviews-filter-bar {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.reviews-filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.reviews-filter-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--brazil-green);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.reviews-filter-label svg {
    width: 15px;
    height: 15px;
}

.reviews-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 220px;
    min-width: 0;
    max-width: 360px;
}

.reviews-filter-form select {
    width: 100%;
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

.reviews-filter-form select:focus {
    border-color: var(--brazil-green);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.reviews-filter-detail-btn {
    padding: 8px 14px;
    font-size: 12px;
}

.reviews-card-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-feed-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.review-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.review-feed-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.review-feed-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--brazil-green);
    flex-shrink: 0;
}

.review-feed-avatar-fallback {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(5, 150, 105, 0.12);
    color: var(--brazil-green);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.review-feed-author-meta {
    min-width: 0;
    flex: 1;
}

.review-feed-author-meta strong {
    display: block;
    color: var(--text-primary);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-feed-author-meta span {
    color: var(--text-muted);
    font-size: 11px;
    display: block;
    margin-top: 2px;
}

.review-feed-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--brazil-yellow);
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.review-feed-stars {
    display: flex;
    gap: 2px;
}

.review-platform-bar {
    background: var(--bg-elevated);
    border: 1px solid rgba(5, 150, 105, 0.22);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.review-platform-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 200px;
}

.review-platform-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.review-feed-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* Details Page Profile Card */
.details-profile-card {
    padding: 24px;
    margin-bottom: 32px;
    border-color: rgba(5, 150, 105, 0.35);
}

.details-header-row {
    flex-wrap: wrap;
}

.details-rank-badge {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.details-avatar {
    width: 56px;
    height: 56px;
    font-size: 26px;
}

.details-brand-name {
    font-size: 24px;
}

.details-score-num {
    font-size: 28px;
}

.details-bonus-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

.details-bonus-highlight {
    font-size: 20px;
}

.details-cta-wrap {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

@media (max-width: 767px) {
    .page-main {
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .reviews-page-meta {
        font-size: 12px;
    }

    .reviews-page-lead {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .reviews-filter-bar {
        padding: 10px 12px;
        margin-bottom: 14px;
    }

    .reviews-filter-form {
        max-width: none;
    }

    .reviews-filter-detail-btn {
        width: 100%;
        justify-content: center;
    }

    .review-feed-card {
        padding: 14px;
    }

    .review-platform-bar {
        padding: 10px;
    }

    .review-platform-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .details-profile-card {
        padding: 16px;
        margin-bottom: 20px;
    }

    .details-rank-badge {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .details-avatar {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .details-brand-name {
        font-size: 18px;
    }

    .details-score-num {
        font-size: 22px;
    }

    .details-bonus-highlight {
        font-size: 16px;
    }

    .footer-feedback-locked .btn-visit,
    .footer-feedback-form-bottom .btn-visit {
        width: 100%;
    }
}

/* Auth Dialog (Google Only - Light Mode) */
.auth-dialog {
    width: min(440px, calc(100% - 28px));
    margin: auto;
    padding: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    color: var(--text-primary);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.auth-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.auth-dialog-card {
    position: relative;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.auth-dialog-icon {
    font-size: 32px;
    display: inline-block;
    margin-bottom: -4px;
}

.auth-dialog-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-dialog-desc {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    max-width: 320px;
}

.google-auth-wrapper {
    margin: 12px 0 6px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.auth-dialog-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
    width: 100%;
}

.auth-dialog-footer p {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.4;
}

/* Review dialog user indicator */
.review-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: var(--radius-sm);
}

.review-author-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--brazil-green);
}

.review-author-info strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
}

.review-author-info small {
    display: block;
    font-size: 11px;
    color: var(--brazil-green-dark);
}

/* Cloudflare Turnstile Container */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65px;
    margin: 8px 0;
    width: 100%;
}

.turnstile-wrapper iframe {
    max-width: 100%;
}

/* Review Target Platform Box */
.review-target-platform-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.review-target-platform-box .target-platform-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.review-target-platform-box .platform-caption {
    font-size: 11px;
    color: var(--brazil-green);
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.review-target-platform-box .platform-caption svg {
    width: 14px;
    height: 14px;
}

.review-target-platform-box .platform-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}