:root {
    --bg-main: #0B0F19;
    --bg-card: #131B2E;
    --bg-card-hover: #19243C;
    --bg-elevated: #1E293B;
    --bg-glass: rgba(19, 27, 46, 0.85);
    
    /* Vibrant Brazilian sports & gaming accents */
    --brazil-green: #00E676;
    --brazil-green-glow: rgba(0, 230, 118, 0.25);
    --brazil-green-dark: #00B359;
    --brazil-yellow: #FFD600;
    --brazil-yellow-glow: rgba(255, 214, 0, 0.25);
    --brazil-blue: #2979FF;
    --brazil-blue-glow: rgba(41, 121, 255, 0.2);
    
    /* Typography colors */
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    /* Borders & dividers */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 230, 118, 0.35);
    --border-accent: rgba(255, 214, 0, 0.3);

    /* Radius & shadows */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 25px 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;
}

body[data-theme="white"] {
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --bg-elevated: #E2E8F0;
    --bg-glass: rgba(255, 255, 255, 0.92);
    --brazil-green: #008A5A;
    --brazil-green-glow: rgba(0, 138, 90, 0.18);
    --brazil-green-dark: #006B46;
    --brazil-yellow: #E3A008;
    --brazil-yellow-glow: rgba(227, 160, 8, 0.18);
    --brazil-blue: #0B70C9;
    --brazil-blue-glow: rgba(11, 112, 201, 0.15);
    --text-primary: #172033;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border-subtle: rgba(23, 32, 51, 0.12);
    --border-hover: rgba(0, 138, 90, 0.38);
    --border-accent: rgba(227, 160, 8, 0.35);
    --shadow-card: 0 4px 18px rgba(23, 32, 51, 0.10);
}

*, *::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)); /* Safe space for mobile bottom dock */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* Subtle background aura */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: 
        radial-gradient(circle at 15% 10%, rgba(0, 230, 118, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 25%, rgba(41, 121, 255, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 75%, rgba(255, 214, 0, 0.03) 0%, transparent 50%),
        #0B0F19;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

body[data-theme="white"]::before {
    background:
        radial-gradient(circle at 15% 10%, rgba(0, 138, 90, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 25%, rgba(11, 112, 201, 0.06) 0%, transparent 45%),
        #F8FAFC;
}

body[data-theme="white"]::after {
    background-image:
        linear-gradient(rgba(23, 32, 51, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 32, 51, 0.035) 1px, transparent 1px);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.15s;
}

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
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    height: 60px;
    display: flex;
    align-items: center;
}

body[data-theme="white"] .site-header {
    background: rgba(255, 255, 255, 0.92);
}

@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, var(--brazil-green), var(--brazil-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 0 12px 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: 20px;
}

@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(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.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, var(--brazil-green), #00C853);
    color: #05140B;
    box-shadow: 0 3px 12px 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(-2px);
    box-shadow: 0 5px 18px rgba(0, 230, 118, 0.4);
}

.header-action svg {
    width: 14px;
    height: 14px;
}

/* =========================================================
   HERO BANNER (Optimized for Mobile Screens)
   ========================================================= */
.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: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: var(--brazil-green);
    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, var(--brazil-green), var(--brazil-yellow));
    -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-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

.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 (PIX, REGULAMENTADO, SEGURO)
   ========================================================= */
.trust-strip {
    background: rgba(19, 27, 46, 0.6);
    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: 10px;
    margin-bottom: 14px;
}

main > #ranking {
    padding-top: 24px;
}

@media (min-width: 768px) {
    main > #ranking {
        padding-top: 32px;
    }
}

@media (min-width: 768px) {
    .section-heading {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.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-card);
    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: 14px;
}

.ranking-controls summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    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: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}

.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: #00150d;
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    gap: 0.3rem;
    padding: 0.45rem 0.65rem;
}

.search-submit svg {
    color: inherit;
    height: 0.9rem;
    width: 0.9rem;
}

.search-submit:hover {
    background: #1cf08d;
}

.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 var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    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);
    background: rgba(255, 255, 255, 0.08);
}

.filter-chip.is-active {
    background: var(--brazil-green);
    color: #000;
    border-color: var(--brazil-green);
    font-weight: 800;
    box-shadow: 0 0 10px 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: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    outline: none;
    font-size: 12px;
    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 (Ultra-fluid mobile-first layout)
   ========================================================= */
.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;
}

@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);
}

.casino-card.is-special-recommended {
    border-color: rgba(0, 230, 118, 0.55);
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.07) 0%, var(--bg-card) 35%);
}

.casino-card.is-special-recommended:hover {
    border-color: var(--brazil-green);
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.1) 0%, var(--bg-card-hover) 35%);
}

.special-recommendation-label {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(0, 230, 118, 0.1);
    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: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    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-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border: 1px solid rgba(255, 255, 255, 0.12);
    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;
}

.casino-avatar.coral { color: #FF5252; border-color: rgba(255, 82, 82, 0.3); }
.casino-avatar.navy { color: #448AFF; border-color: rgba(68, 138, 255, 0.3); }
.casino-avatar.mint { color: #00E676; border-color: rgba(0, 230, 118, 0.3); }
.casino-avatar.gold { color: #FFD600; border-color: rgba(255, 214, 0, 0.3); }

.casino-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.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: rgba(0, 230, 118, 0.35);
    background: rgba(0, 230, 118, 0.1);
    color: var(--brazil-green);
}

.casino-status-icon.is-hot {
    border-color: rgba(255, 145, 0, 0.4);
    background: rgba(255, 145, 0, 0.1);
    color: #ffab40;
}

.verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--brazil-green);
    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: rgba(11, 15, 25, 0.65);
    border: 1px solid var(--border-subtle);
    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);
    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 PIX & 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: rgba(50, 188, 173, 0.12);
    border: 1px solid rgba(50, 188, 173, 0.35);
    color: #32BCAD;
    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: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
}

/* Card Action Buttons (Big full-width finger-friendly 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, var(--brazil-green), #00C853);
    color: #05140B;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px var(--brazil-green-glow);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-visit:hover {
    box-shadow: 0 4px 16px rgba(0, 230, 118, 0.45);
}

.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: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 12px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-details:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-details svg {
    width: 14px;
    height: 14px;
}

/* =========================================================
   DESKTOP COMPACT ROW VIEW FOR CASINO CARDS
   ========================================================= */
@media (min-width: 900px) {
    .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);
    }

    .card-header-row {
        display: contents;
    }

    .card-title-group {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .card-bonus-box {
        background: transparent;
        border: none;
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .card-score-pill {
        align-items: center;
        padding: 0 10px;
        border-left: 1px solid var(--border-subtle);
        border-right: 1px solid var(--border-subtle);
    }

    .card-actions-row {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .btn-visit {
        padding: 9px 12px;
        font-size: 11px;
    }

    .btn-details {
        padding: 6px 10px;
        font-size: 11px;
    }

    .card-pills-row {
        display: none;
    }
}

@media (max-width: 767px) {
    .casino-list {
        gap: 8px;
    }

    .casino-card {
        padding: 10px;
        gap: 8px;
    }

    .card-header-row {
        gap: 8px;
    }

    .casino-avatar {
        width: 36px;
        height: 36px;
    }

    .card-brand-name {
        font-size: 15px;
    }

    .features-text,
    .card-score-label,
    .card-pills-row {
        display: none;
    }

    .card-bonus-box {
        min-height: 34px;
        padding: 6px 8px;
    }

    .bonus-label-group {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .bonus-caption {
        font-size: 8px;
        letter-spacing: 0.2px;
    }

    .bonus-caption svg {
        width: 10px;
        height: 10px;
    }

    .bonus-highlight {
        font-size: 14px;
    }

    .btn-visit,
    .btn-details {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* =========================================================
   PAGINATION (Touch-friendly)
   ========================================================= */
.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: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.pagination a:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.pagination a.is-current {
    background: var(--brazil-green);
    color: #000;
    border-color: var(--brazil-green);
    font-weight: 900;
}

/* =========================================================
   COMMUNITY SCORE & REVIEWS SECTION
   ========================================================= */
.review-section {
    background: var(--bg-card);
    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: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
}

@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: rgba(255, 255, 255, 0.08);
    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), var(--brazil-yellow));
    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;
}

@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+ BRASIL)
   ========================================================= */
.responsible {
    background: #080D16;
    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 #FF5252;
    color: #FF5252;
    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
   ========================================================= */
.site-footer {
    background: #060910;
    border-top: 1px solid var(--border-subtle);
    padding: 36px 0 28px;
}

.footer-feedback-card {
    background: var(--bg-card);
    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: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    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: var(--bg-main);
    border: 1px solid var(--border-subtle);
    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);
}

.footer-feedback-form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-feedback-locked {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-subtle);
    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: rgba(0, 230, 118, 0.12);
    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 (APP EXPERIENCE)
   ========================================================= */
.mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
}

@media (min-width: 992px) {
    .mobile-bottom-dock {
        display: none;
    }
}

.dock-item {

    .search-field {
        flex: 1 1 300px;
        width: auto;
    }
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.dock-item svg {
    width: 18px;
    height: 18px;
}

.dock-item.is-active, .dock-item:hover {
    color: var(--brazil-green);
}

.dock-action-btn {
    background: var(--brazil-green);
    color: #000;
    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 0 12px var(--brazil-green-glow);
}

.dock-action-btn svg {
    width: 15px;
    height: 15px;
}

/* =========================================================
   MODAL / REVIEW DIALOG (Mobile Bottom-Sheet Style on Mobile)
   ========================================================= */
.review-dialog {
    width: min(520px, calc(100% - 24px));
    margin: auto;
    padding: 22px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
}

@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(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}

.review-dialog form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dialog-close {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.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: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 12px;
    outline: none;
    font-size: 13px;
}

.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, var(--brazil-green), #00C853);
    color: #05140B;
    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-card);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-subtle);
}

/* =========================================================
   GOOGLE AUTH & USER PROFILE BADGES (Google-Only Login)
   ========================================================= */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.header-auth-box {
    display: flex;
    align-items: center;
}

#google-header-signin-btn {
    min-height: 40px;
    min-width: 160px;
    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%;
}

.btn-top-google-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-top-google-login:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--brazil-green);
    color: var(--text-primary);
    box-shadow: 0 0 12px var(--brazil-green-glow);
}

.btn-top-google-login svg {
    flex-shrink: 0;
}

@media (max-width: 500px) {
    .btn-top-google-login {
        padding: 6px 10px;
        font-size: 12px;
        gap: 6px;
    }
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.user-pill:hover {
    border-color: rgba(0, 230, 118, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.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: var(--bg-elevated);
    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: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.25);
    color: #FF8A80;
    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: rgba(255, 82, 82, 0.2);
    border-color: #FF5252;
    color: #FF5252;
}

.user-pill-logout svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .brand {
        font-size: 15px;
        gap: 6px;
    }

    .brand-badge {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    #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-name {
        max-width: 68px;
        font-size: 11px;
    }

    .user-pill-logout {
        padding: 3px 8px;
        font-size: 10px;
        gap: 3px;
    }
}

/* Auth Dialog (Google Only) */
.auth-dialog {
    width: min(440px, calc(100% - 28px));
    margin: auto;
    padding: 0;
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 230, 118, 0.1);
}

.auth-dialog::backdrop {
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(8px);
}

.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;
    filter: drop-shadow(0 0 10px rgba(255, 214, 0, 0.6));
    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: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.25);
    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);
}

.review-google-prompt {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
    align-items: center;
}

.review-google-prompt span {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-review-google-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: #FFFFFF;
    color: #1F1F1F;
    border-radius: var(--radius-full);
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-review-google-login:hover {
    opacity: 0.9;
}

/* 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 (Fixed Badge - No select needed) */
.review-target-platform-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    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);
}
