  :root {
    --bg: #ffffff;
    --soft: #f7f7f8;
    --fg: #0b0b0b;
    --muted: #666;
    --border: #e6e8ec;
    --primary: #800000;
    --primary-soft: rgba(128, 0, 0, .08);
    --dark: #0b0b0b;
    --dark-2: #1a1a1a;
    --dark-border: #262626;
    --on-dark: #ffffff;
    --on-dark-soft: rgba(255, 255, 255, .6);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 16px -4px rgba(0, 0, 0, .07);
    --shadow-elev: 0 8px 32px -8px rgba(0, 0, 0, .18);
    --transition: all .25s cubic-bezier(.4, 0, .2, 1);
    --g-blue: #4285F4;
    --g-red: #EA4335;
    --g-yellow: #FBBC05;
    --g-green: #34A853;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--soft);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -.02em;
}

p {
    margin: 0;
}

.icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.75;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── HEADER (same as jornal) ── */
.site-header {
    background: var(--dark);
    color: var(--on-dark);
}

.header-inner {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--dark);
    border-bottom: 1px solid var(--dark-border);
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
    height: 64px;
}

.logo-mark {
    width: 220px;
    height: 130px;
    display: grid;
    place-items: center;
}

.logo-text {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .05em;
}

.main-nav {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.main-nav a {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    color: var(--on-dark-soft);
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav a:hover {
    background: var(--dark-2);
    color: var(--on-dark);
}

.main-nav a.active {
    background: var(--primary);
    color: var(--on-dark);
}

.header-search {
    position: relative;
    flex: 1;
    max-width: 420px;
    margin: 0 auto;
}

.header-search .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--on-dark-soft);
    width: 16px;
    height: 16px;
}

.header-search input {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    background: var(--dark-2);
    border: 1px solid var(--dark-border);
    color: var(--on-dark);
    padding: 0 12px 0 36px;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, .4);
}

.header-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, .2);
}

/* ── HERO ── */
.hero-wrapper {
    background: var(--dark);
    padding: 32px 24px 0;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    top: 1px;
}

.hero-text {
    padding-bottom: 28px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 99px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 12px;
}

.google-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot.blue {
    background: var(--g-blue);
}

.dot.red {
    background: var(--g-red);
}

.dot.yellow {
    background: var(--g-yellow);
}

.dot.green {
    background: var(--g-green);
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--on-dark);
    line-height: 1.2;
    margin-bottom: 6px;
}

.hero-sub {
    font-size: 13px;
    color: var(--on-dark-soft);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 12px;
    padding-bottom: 28px;
}

.hero-stat {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    padding: 14px 20px;
    text-align: center;
    min-width: 110px;
}

.hero-stat .val {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-stat .lbl {
    font-size: 11px;
    color: var(--on-dark-soft);
    margin-top: 4px;
    font-weight: 500;
}

/* ── PAGE ── */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── PODIUM TOP 3 ── */
.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.podium-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.podium-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elev);
}

.podium-card.p1 {
    border-top: 4px solid var(--g-green);
}

.podium-card.p2 {
    border-top: 4px solid var(--g-blue);
}

.podium-card.p3 {
    border-top: 4px solid var(--g-yellow);
}

.podium-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
}

.p1 .podium-medal {
    background: rgba(52, 168, 83, .12);
    color: var(--g-green);
}

.p2 .podium-medal {
    background: rgba(66, 133, 244, .12);
    color: var(--g-blue);
}

.p3 .podium-medal {
    background: rgba(251, 188, 5, .15);
    color: #c89000;
}

.podium-store {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.podium-count {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.podium-label {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ── TABLE SECTION ── */
.table-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.table-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.table-card-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-card-head-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.table-card-head-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.table-card-title {
    font-size: 15px;
    font-weight: 700;
}

.table-card-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}

.period-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg);
    flex-shrink: 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: var(--soft);
    padding: 11px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 13px 20px;
    font-size: 13px;
    border-bottom: 1px solid #f2f2f4;
    color: var(--fg);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover td {
    background: var(--soft);
}

td.rank {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    width: 40px;
    text-align: center;
}

td.store-name {
    font-weight: 500;
}

.text-center {
    text-align: center;
}

/* Score badges */
.badge-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}

.score-high {
    background: #e8f5e9;
    color: #2e7d32;
}

.score-mid {
    background: #fffde7;
    color: #c88a00;
}

.score-low {
    background: #fff0f0;
    color: #b71c1c;
}

.score-neg {
    background: #fce4ec;
    color: #880e4f;
}

.negative-val {
    color: #d32f2f;
    font-weight: 700;
}

.google-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 13px;
    color: #c89000;
}

/* Row highlight classes */
tbody tr.row-1st td {
    background: rgba(52, 168, 83, .04);
}

tbody tr.row-2nd td {
    background: rgba(66, 133, 244, .03);
}

tbody tr.row-3rd td {
    background: rgba(251, 188, 5, .04);
}

/* ── FOOTER ── */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, .6);
    padding: 24px;
    font-size: 12px;
    line-height: 1.8;
    border-top: 1px solid var(--dark-border);
    text-align: center;
}

.footer strong {
    color: rgba(255, 255, 255, .9);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .main-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .podium-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        display: none;
    }

    .page {
        padding: 20px 16px 40px;
    }

    thead th,
    tbody td {
        padding: 10px 14px;
    }
}

/* Remove espaço do body injetado pelo WordPress */
body.page-template-default,
body.wp-singular {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--soft) !important;
}

/* Remove qualquer wrapper do tema */
.wp-site-blocks,
.wp-block-group,
#page,
#content,
#primary,
#main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.aval-page {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 32px 24px 48px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
