/* ══════════════════════════════════════════════════════════════
   Fui de Oferta 🏷️ — Style Sheet v2
   Tema escuro · Preto + Ouro + Branco · Glassmorphism com propósito
   Design system: tokens → composição → micro-interações
   ══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Cor base */
    --bg-primary: #0a0a0a;
    --bg-elevated: #101010;
    --bg-soft: #161616;

    /* Ouro (tokens de marca) */
    --gold: #FFD700;
    --gold-soft: #FFE066;
    --gold-deep: #C9A500;
    --gold-glow: rgba(255, 215, 0, 0.14);
    --gold-glow-strong: rgba(255, 215, 0, 0.28);

    /* Superfícies */
    --bg-card: rgba(255, 255, 255, 0.045);
    --bg-card-hover: rgba(255, 255, 255, 0.075);
    --bg-input: rgba(0, 0, 0, 0.35);

    /* Texto */
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #8a8a8a;

    /* Bordas */
    --border: rgba(255, 215, 0, 0.14);
    --border-soft: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 215, 0, 0.38);

    /* Estado */
    --danger: #ff5c5c;
    --danger-bg: rgba(255, 92, 92, 0.14);
    --success: #4ade80;
    --success-bg: rgba(74, 222, 128, 0.14);
    --warning: #ffb84d;
    --warning-bg: rgba(255, 184, 77, 0.14);
    --info: #6ea8ff;
    --info-bg: rgba(110, 168, 255, 0.14);

    /* Telegram */
    --tg: #2AABEE;
    --tg-deep: #1d8ec9;
    --wa: #25D366;
    --wa-deep: #1DA851;

    /* Geometria */
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    /* Elevação */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
    --shadow-gold: 0 10px 34px rgba(255, 215, 0, 0.08);

    /* Layout */
    --sidebar-width: 248px;
    --content-max: 1240px;

    /* Tipografia */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.28s;
}

html { scroll-behavior: smooth; }

/* ─── Tipografia ───────────────────────────────────────────── */
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    letter-spacing: -0.011em;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.18;
    text-wrap: balance;
    letter-spacing: -0.02em;
}

p { max-width: 70ch; }
p + p { margin-top: 1rem; }
code { font-size: 0.875em; }

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
a:hover { color: var(--gold-soft); }

img { max-width: 100%; display: block; }

::selection { background: rgba(255, 215, 0, 0.25); color: #fff; }

/* Scrollbar customizada */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 215, 0, 0.35); }

/* Focus visível para acessibilidade */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* ─── Glassmorphism com propósito ──────────────────────────── */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    transition:
        transform var(--dur) var(--ease),
        background var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}
.glass:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold);
}
/* Glass mais sutil para cartões de segundo nível */
.glass-subtle {
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}

/* ─── Utilities ────────────────────────────────────────────── */
.gold { color: var(--gold); }
.gold-soft { color: var(--gold-soft); }
.text-muted { color: var(--text-secondary); }
.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 2.75rem;
    text-align: center;
}
.text-center { text-align: center; }

/* Pills / badges */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: var(--gold-glow);
    border: 1px solid rgba(255, 215, 0, 0.22);
    color: var(--gold-soft);
}

/* ─── Navbar ───────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border-soft);
}
.nav-container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    letter-spacing: -0.02em;
}
.logo-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 12px var(--gold-glow));
}
.logo-icon-img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    filter: drop-shadow(0 0 12px var(--gold-glow));
}
.logo-text { letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 0.6rem; align-items: center; }

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
    color: var(--text-primary) !important;
    border: 1px solid transparent;
}
.nav-btn:hover { transform: translateY(-1px); }
.btn-telegram { background: rgba(42, 171, 238, 0.14); border-color: rgba(42, 171, 238, 0.32); }
.btn-telegram:hover { background: rgba(42, 171, 238, 0.26); }
.btn-admin {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}
.btn-admin:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 215, 0, 0.4); }
.btn-logout { background: var(--danger-bg); border-color: rgba(255, 92, 92, 0.32); }
.btn-logout:hover { background: rgba(255, 92, 92, 0.24); }

/* ─── Flash Messages ───────────────────────────────────────── */
.flash-container {
    max-width: 800px;
    margin: 0 auto 1.75rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.flash-message {
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    animation: flashIn 0.4s var(--ease);
}
@keyframes flashIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.flash-success { background: var(--success-bg); border: 1px solid rgba(74, 222, 128, 0.28); color: #b5f5c8; }
.flash-danger  { background: var(--danger-bg);  border: 1px solid rgba(255, 92, 92, 0.28);  color: #ffb3b3; }
.flash-warning { background: var(--warning-bg); border: 1px solid rgba(255, 184, 77, 0.28); color: #ffd9a3; }
.flash-info    { background: var(--info-bg);    border: 1px solid rgba(110, 168, 255, 0.28); color: #c2d9ff; }
.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0 0.25rem;
    opacity: 0.55;
    transition: opacity 0.2s;
}
.flash-close:hover { opacity: 1; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 1.5rem 4.5rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 18% 42%, rgba(255, 215, 0, 0.075) 0%, transparent 52%),
        radial-gradient(ellipse at 82% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 48%),
        radial-gradient(ellipse at 50% 110%, rgba(255, 215, 0, 0.04) 0%, transparent 60%),
        var(--bg-primary);
}
.hero-content {
    max-width: var(--content-max);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3.5rem;
    position: relative;
    z-index: 1;
}
.hero-text { flex: 1; max-width: 620px; }
.hero-visual {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 44%;
}
.hero-logo {
    width: 100%;
    height: auto;
    max-width: 480px;
    filter: drop-shadow(0 0 46px var(--gold-glow));
    animation: heroFloat 7s ease-in-out infinite, heroFadeIn 0.9s var(--ease);
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: scale(0.94) translateX(24px); }
    to   { opacity: 1; transform: scale(1) translateX(0); }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 1.05rem;
    border-radius: 999px;
    background: var(--gold-glow);
    border: 1px solid rgba(255, 215, 0, 0.24);
    color: var(--gold-soft);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: heroFadeIn 0.8s var(--ease) both;
}
.hero-title {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.06;
    margin-bottom: 1.5rem;
    letter-spacing: -0.035em;
    animation: heroFadeIn 0.8s var(--ease) 0.08s both;
}
.hero-title .gold {
    color: var(--gold);
}
.hero-title .text-tg {
    color: var(--tg);
}
.hero-title .text-wa {
    color: var(--wa);
}
.hero-subtitle {
    font-size: clamp(0.98rem, 1.4vw, 1.12rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.75;
    max-width: 56ch;
    animation: heroFadeIn 0.8s var(--ease) 0.16s both;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: heroFadeIn 0.8s var(--ease) 0.24s both;
}

.cta-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.12rem;
    line-height: 1.75;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Botões ───────────────────────────────────────────────── */
.btn-telegram-large {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2.1rem;
    background: linear-gradient(135deg, var(--tg), var(--tg-deep));
    color: #fff !important;
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 700;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
    box-shadow: 0 6px 22px rgba(42, 171, 238, 0.3);
}
.btn-telegram-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(42, 171, 238, 0.45);
    filter: brightness(1.06);
    color: #fff !important;
}

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2.1rem;
    background: linear-gradient(135deg, var(--wa), var(--wa-deep));
    color: #fff !important;
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 700;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.45);
    filter: brightness(1.06);
    color: #fff !important;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2.1rem;
    background: linear-gradient(135deg, var(--gold-deep), var(--gold));
    color: #1a1400 !important;
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 800;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
    box-shadow: 0 6px 22px var(--gold-glow);
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px var(--gold-glow-strong);
    filter: brightness(1.05);
    color: #1a1400 !important;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 2rem;
    background: transparent;
    color: var(--text-primary) !important;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 600;
    transition: all var(--dur) var(--ease);
}
.btn-outline:hover {
    border-color: var(--gold);
    background: var(--gold-glow);
    transform: translateY(-2px);
    color: var(--gold-soft) !important;
}

/* ─── Stats (público, se usado) ────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}
.stat-card { text-align: center; padding: 2.25rem 1.5rem; }
.stat-icon { font-size: 2.4rem; margin-bottom: 0.85rem; }
.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}
.stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem; }

/* ─── Steps ────────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}
.step-card {
    padding: 2.25rem 1.75rem;
    position: relative;
    overflow: hidden;
}
.step-card:hover { transform: translateY(-4px); }
.step-number {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold-deep), var(--gold));
    color: #1a1400;
    font-size: 1.1rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.1rem;
    box-shadow: 0 6px 18px var(--gold-glow);
}
.step-card h3 { margin-bottom: 0.6rem; font-size: 1.08rem; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.75; margin: 0; }

/* ─── Offers List ──────────────────────────────────────────── */
.offers-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.offer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.offer-card:hover {
    transform: translateX(4px);
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: 0 6px 22px var(--gold-glow);
}
.offer-thumb {
    width: 84px;
    height: 84px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-soft);
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-soft));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.offer-card:hover .offer-thumb {
    border-color: rgba(255, 215, 0, 0.35);
    transform: scale(1.04);
}
.offer-info { flex: 1; min-width: 0; }
.offer-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.offer-meta { display: flex; gap: 0.75rem; font-size: 0.8rem; align-items: center; }
.offer-store { color: var(--text-secondary); }
.offer-discount {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.76rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--gold-glow);
    border: 1px solid rgba(255, 215, 0, 0.22);
}
.offer-prices { text-align: right; white-space: nowrap; flex-shrink: 0; }
.old-price { color: var(--text-muted); text-decoration: line-through; font-size: 0.82rem; display: block; }
.new-price {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.empty-state { text-align: center; color: var(--text-secondary); padding: 2.5rem 1rem; }

/* ─── CTA Section ──────────────────────────────────────────── */
.cta-section { text-align: center; padding: 5.5rem 0; position: relative; }
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, var(--gold-glow) 0%, transparent 65%);
    pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
    text-align: left;
    padding: 3.5rem 1.5rem 2rem;
    border-top: 1px solid var(--border-soft);
    color: var(--text-secondary);
    font-size: 0.86rem;
    background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.03));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-logo { margin-bottom: 1rem; }
.footer-desc {
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 40ch;
    margin-top: 0.9rem;
}
.footer-title {
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.1rem;
}
.footer-col-center { text-align: center; }
.footer-col-center .footer-title { text-align: center; }
.footer-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.footer-btn {
    padding: 0.72rem 1.5rem;
    font-size: 0.92rem;
}
.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-list a {
    color: var(--text-secondary);
    transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer-list a:hover { color: var(--gold-soft); }
.footer-bottom {
    border-top: 1px solid var(--border-soft);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-bottom p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}
.footer-bottom p + p { margin-top: 0.35rem; }
.footer-copy .text-tg { color: var(--tg); }
.footer-copy .text-wa { color: var(--wa); }

/* ══════════════════════════════════════════════════════════════
   ADMIN LAYOUT
   ══════════════════════════════════════════════════════════════ */

body.admin { background: var(--bg-primary); }

/* ─── Sidebar ──────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    z-index: 50;
}
.sidebar-header {
    padding: 1.4rem 1.4rem 1.1rem;
    border-bottom: 1px solid var(--border-soft);
}
.sidebar-logo {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.02em;
}
.sidebar-logo .logo-icon {
    font-size: 1.45rem;
    filter: drop-shadow(0 0 12px var(--gold-glow));
}
.sidebar-nav {
    flex: 1;
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow-y: auto;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.72rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary) !important;
    transform: translateX(2px);
}
.sidebar-link.active {
    background: var(--gold-glow);
    color: var(--gold-soft) !important;
    font-weight: 600;
}
/* Indicador de item ativo no topo (anti-pattern side-tab evitado) */
.sidebar-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.9rem;
    right: 0.9rem;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold));
    opacity: 0.8;
}
.sidebar-divider {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: 0.6rem 0;
}
.sidebar-footer {
    padding: 1.1rem 1.4rem;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}
.sidebar-user {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-logout {
    color: var(--danger) !important;
    font-weight: 600;
    transition: color var(--dur) var(--ease);
}
.sidebar-logout:hover { color: #ff8080 !important; }

/* ─── Admin Main ───────────────────────────────────────────── */
.admin-main {
    margin-left: var(--sidebar-width);
    padding: 2.25rem 2.5rem 3rem;
    min-height: 100vh;
    max-width: var(--content-max);
}

.page-header { margin-bottom: 2.25rem; }
.page-header h1 {
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.page-subtitle { color: var(--text-secondary); margin-top: 0.3rem; font-size: 0.95rem; }

/* ─── Metric Cards ─────────────────────────────────────────── */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 1.1rem;
    margin-bottom: 2.25rem;
}
.metric-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.35rem 1.35rem;
    position: relative;
    overflow: hidden;
}
/* Glow de canto sutil em hover */
.metric-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -40%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
    pointer-events: none;
}
.metric-card:hover::after { opacity: 1; }
.metric-icon {
    font-size: 1.9rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--gold-glow);
    border: 1px solid rgba(255, 215, 0, 0.18);
    flex-shrink: 0;
}
.metric-body { min-width: 0; }
.metric-value {
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 900;
    color: var(--gold);
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Valores monetários longos (R$ 236.783) — fonte menor p/ caber no card */
.metric-value.money {
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    letter-spacing: -0.02em;
}
.metric-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
    font-weight: 500;
}

/* ─── Dashboard Header + Seletor de Período ────────────────── */
.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.period-selector {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 0.25rem;
}
.period-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.period-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 0.6rem 2.4rem 0.6rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FFD700' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.period-select:hover { border-color: rgba(255, 215, 0, 0.28); }
.period-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background-color: rgba(0, 0, 0, 0.55);
}
.period-select option {
    background: #141414;
    color: var(--text-primary);
}

/* Rótulo de seção (Hoje / Período) */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.section-label .pill { font-size: 0.72rem; }

/* ─── Charts ───────────────────────────────────────────────── */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.chart-card { padding: 1.6rem 1.6rem 1.4rem; }
.chart-card.full-width { grid-column: 1 / -1; }
.chart-title {
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.chart-container { position: relative; height: 290px; }
.chart-container canvas { max-height: 100%; max-width: 100%; }

/* ─── Config Form ──────────────────────────────────────────── */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.75rem;
}
.config-field {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.config-field label {
    font-size: 0.87rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.config-input {
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
    width: 100%;
}
.config-input:hover { border-color: rgba(255, 215, 0, 0.28); }
.config-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background: rgba(0, 0, 0, 0.45);
}
.config-tipo {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.form-actions { margin-top: 1.1rem; }

.btn-primary {
    padding: 0.75rem 1.6rem;
    background: linear-gradient(135deg, var(--gold-deep), var(--gold));
    color: #1a1400;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
    font-family: var(--font);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gold-glow);
    filter: brightness(1.05);
}

/* ─── Categorias ───────────────────────────────────────────── */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.categoria-card {
    text-align: center;
    padding: 1.4rem 1rem;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.categoria-card:hover { transform: translateY(-3px); }
.categoria-card.inativa { opacity: 0.45; }
.categoria-emoji { font-size: 2.1rem; margin-bottom: 0.6rem; }
.categoria-nome { font-weight: 700; margin-bottom: 0.25rem; font-size: 0.95rem; }
.categoria-status { font-size: 0.78rem; color: var(--text-secondary); }

/* ─── Users ────────────────────────────────────────────────── */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
}
.user-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 1.35rem;
}
.user-card:hover { transform: translateX(3px); }
.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-deep), var(--gold));
    color: #1a1400;
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px var(--gold-glow);
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-weight: 700; }
.user-username { color: var(--text-secondary); font-size: 0.85rem; }
.user-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    flex-wrap: wrap;
}
.user-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.user-status {
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.user-status.ativo { background: var(--success-bg); color: #9df0b5; }
.user-status.inativo { background: var(--danger-bg); color: #ffb3b3; }
.user-badge {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 700;
}
.btn-small {
    padding: 0.38rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid;
    font-family: var(--font);
    transition: all var(--dur) var(--ease);
}
.btn-small:hover { transform: translateY(-1px); }
.btn-danger { background: var(--danger-bg); border-color: rgba(255, 92, 92, 0.32); color: #ffb3b3; }
.btn-danger:hover { background: rgba(255, 92, 92, 0.26); }
.btn-success { background: var(--success-bg); border-color: rgba(74, 222, 128, 0.32); color: #9df0b5; }
.btn-success:hover { background: rgba(74, 222, 128, 0.26); }

/* ─── User Form ────────────────────────────────────────────── */
.user-form { padding: 1.75rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; }
.form-group-btn { display: flex; align-items: end; }
.form-input {
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font);
    width: 100%;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.form-input:hover { border-color: rgba(255, 215, 0, 0.28); }
.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background: rgba(0, 0, 0, 0.45);
}

/* ─── Login Page ───────────────────────────────────────────── */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 80%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
        var(--bg-primary);
}
.login-container {
    width: 100%;
    max-width: 410px;
    padding: 1rem;
}
.login-card {
    padding: 2.75rem 2.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.login-header { margin-bottom: 1.75rem; }
.login-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 18px var(--gold-glow));
}
.login-header h1 { font-size: 1.75rem; letter-spacing: -0.03em; }
.login-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.35rem; }
.login-form { text-align: left; }
.login-form .form-group { margin-bottom: 1.1rem; }
.login-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}
.login-form input {
    width: 100%;
    padding: 0.75rem 0.95rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.login-form input:hover { border-color: rgba(255, 215, 0, 0.28); }
.login-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
    background: rgba(0, 0, 0, 0.45);
}
.btn-login {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--gold-deep), var(--gold));
    color: #1a1400;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 0.6rem;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
    font-family: var(--font);
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px var(--gold-glow);
    filter: brightness(1.05);
}
.login-footer { margin-top: 1.75rem; font-size: 0.9rem; }
.login-footer a { color: var(--text-secondary); }
.login-footer a:hover { color: var(--gold); }

/* ─── Afiliados Table ──────────────────────────────────────── */
.aff-table-wrap {
    padding: 1.75rem;
    overflow-x: auto;
}
.aff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.aff-table th {
    text-align: left;
    padding: 0.8rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    font-weight: 700;
}
.aff-table th.num,
.aff-table td.num {
    text-align: right;
    white-space: nowrap;
}
.aff-table td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: top;
}
.aff-table tbody tr { transition: background var(--dur) var(--ease); }
.aff-table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
.aff-table tbody tr:last-child td { border-bottom: none; }
.aff-loja {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-weight: 700;
}
.aff-badge {
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: var(--success-bg);
    color: #9df0b5;
    text-transform: uppercase;
}
.aff-domain {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}
.aff-domain + .aff-domain { margin-top: 0.15rem; }
.aff-param {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-secondary);
    word-break: break-all;
    line-height: 1.5;
}
.aff-param + .aff-param { margin-top: 0.15rem; }
.aff-num {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.aff-num.aff-clicks { color: var(--text-primary); }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar { padding: 0; }
    .nav-container { padding: 0.65rem 1rem; }
    .nav-links { gap: 0.4rem; }
    .nav-btn { font-size: 0.8rem; padding: 0.42rem 0.75rem; }

    .hero { min-height: auto; padding: 5.5rem 1rem 3.5rem; }
    .hero-content { flex-direction: column; text-align: center; gap: 2.25rem; }
    .hero-text { max-width: 100%; }
    .hero-visual { max-width: 72%; }
    .hero-cta { justify-content: center; }
    .hero-logo { max-width: 340px; }
    .hero-title { font-size: clamp(1.85rem, 8vw, 2.5rem); }

    .footer { text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-desc { max-width: 100%; }
    .footer-buttons { align-items: center; }
    .footer-list { align-items: center; }

    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
    }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; padding: 0.6rem; gap: 0.25rem; }
    .sidebar-link { font-size: 0.8rem; padding: 0.5rem 0.7rem; }
    .sidebar-link:hover { transform: none; }
    .sidebar-footer { display: none; }
    .admin-main {
        margin-left: 0;
        padding: 1.25rem 1rem 2rem;
    }
    .stats-cards { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
    .charts-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .config-grid { grid-template-columns: 1fr; }

    .section { padding: 3rem 0; }
    .section-title { font-size: 1.5rem; }
    .stat-value { font-size: 2rem; }
    .metric-value { font-size: 1.5rem; }
    .metric-card { padding: 1.1rem; gap: 0.85rem; }
    .offer-card { flex-wrap: wrap; }
    .offer-prices { text-align: left; }
}

/* ─── Cupons (admin) ──────────────────────────────────────── */
.chart-wrap { padding: 1.3rem 1.4rem 1rem; }
.chart-wrap canvas { max-height: 100%; }

.status-pill {
    display: inline-block;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.status-nova { background: rgba(255, 215, 0, 0.14); color: #FFD700; border: 1px solid rgba(255, 215, 0, 0.35); }
.status-publicada { background: rgba(76, 175, 80, 0.14); color: #4CAF50; border: 1px solid rgba(76, 175, 80, 0.35); }
.status-expirada { background: rgba(244, 67, 54, 0.14); color: #F44336; border: 1px solid rgba(244, 67, 54, 0.35); }

.top-list { display: flex; flex-direction: column; gap: 0.7rem; }
.top-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}
.top-rank {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--gold);
    min-width: 2rem;
    text-align: center;
}
.top-info { flex: 1; min-width: 0; }
.top-title { font-size: 0.88rem; font-weight: 700; }
.top-title code { color: var(--gold); }
.top-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-clicks { font-size: 0.85rem; font-weight: 800; color: #FFD700; white-space: nowrap; }

/* ─── Abas (Ofertas | Cupons) ──────────────────────────────── */
.tab-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-soft);
}
.tab-btn {
    background: transparent;
    border: 1px solid var(--border-soft);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.3rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tab-btn:hover { color: #ffffff; background: rgba(255, 255, 255, 0.04); }
.tab-btn.active {
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
    border-color: rgba(255, 215, 0, 0.4);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Botão postar cupom (dashboard) */
.inline-form { margin: 0; }
.btn-postar {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-postar:hover { background: rgba(255, 215, 0, 0.25); transform: translateY(-1px); }

/* ─── Acessibilidade: movimento reduzido ───────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
