:root {
    /* Paleta vibrante rosa/roxo inspirada em revistas de fofoca modernas */
    --paper: #fff5fa;          /* fundo bem claro com tom rosado */
    --paper-dark: #ffe4ed;     /* rosa pálido pra contraste suave */
    --paper-pop: #ffd3e1;      /* rosa choque suave */
    --ink: #1a0a1f;            /* roxo escuro (quase preto) — texto principal */
    --ink-soft: #3d1f4a;       /* roxo médio */
    --ink-muted: #7a5e85;      /* roxo acinzentado para legendas */
    --rule: #2a0f3d;
    --accent-up: #d6178f;      /* rosa choque vibrante (era "alta" verde) */
    --accent-down: #8b1aa8;    /* roxo magenta (era "baixa" vermelha) */
    --gold: #ff9eb5;           /* rosa claro */
    --tag-blue: #4a148c;       /* roxo profundo */
    --hot: #ff2d92;            /* rosa neon — alertas/destaques */
    --neon: #c026d3;           /* roxo neon */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Barlow', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 36px;
    position: relative;
}

/* ============ TICKER NO TOPO ============ */
.ticker-bar {
    background: linear-gradient(90deg, #1a0a1f 0%, #2a0f3d 100%);
    color: var(--paper);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--accent-up);
    position: relative;
}

.ticker-label {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--hot) 0%, var(--neon) 100%);
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    flex-shrink: 0;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 4px 0 12px rgba(214, 23, 143, 0.4);
}

.ticker-track {
    display: flex;
    gap: 32px;
    animation: ticker-scroll 60s linear infinite;
    white-space: nowrap;
    padding-left: 32px;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ticker-item .symbol {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
}

.ticker-item .value {
    color: rgba(255, 211, 225, 0.7);
    font-size: 11px;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.ticker-item .delta-up,
.ticker-item .delta-down {
    color: var(--gold);
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(255, 158, 181, 0.5));
}

/* ============ MASTHEAD ============ */
header.masthead {
    background: var(--paper);
    border-bottom: none;
    padding: 0;
}

/* ── LINHA 1: Menu | Logo centralizado | Conta + Busca ── */
.top-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 0 12px;
    border-bottom: 1px solid #e8e8e8;
}

.top-bar .left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar .right {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
}

/* Ícone menu (tabuleiro) */
.menu-grid-icon {
    display: grid;
    grid-template-columns: repeat(3, 5px);
    gap: 3px;
    cursor: pointer;
    padding: 4px;
}
.menu-grid-icon span {
    width: 5px; height: 5px;
    background: #333;
    border-radius: 1px;
    display: block;
}

.menu-label {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}
.menu-label:hover { color: #000; }

/* Botões direita */
.globo-nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.globo-nav-btn:hover { color: #000; }

.globo-nav-btn svg {
    width: 20px; height: 20px;
    stroke: #333;
}

/* ── LINHA 2: Editorias coloridas ── */
.globo-editorias-bar {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #e8e8e8;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.globo-editorias-bar::-webkit-scrollbar { display: none; }

.globo-editoria-link {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 20px;
    white-space: nowrap;
    transition: opacity .15s;
}
.globo-editoria-link:hover { opacity: .7; }

/* ── LINHA 3: Clima ── */
.globo-clima-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid #e8e8e8;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 12px;
    color: #555;
}
.globo-clima-bar a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}
.globo-clima-bar a:hover { text-decoration: underline; }
.globo-clima-chevron {
    font-size: 10px;
    color: #888;
    cursor: pointer;
}

.live-dot {
    width: 8px; height: 8px;
    background: var(--hot);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(255, 45, 146, 0.6);
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 45, 146, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(255, 45, 146, 0); }
}

/* ── MASTHEAD ESTILO GLOBO ── */
.globo-masthead-logo { display: none; }

h1.logo {
    font-family: 'Barlow', 'Inter', sans-serif;
    color: var(--ink);
    line-height: 1;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 3px;
    margin: 0;
}

h1.logo .logo-prefix {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 20px;
    color: var(--accent-up);
    line-height: 1;
    transform: rotate(-3deg);
    display: inline-block;
}

h1.logo .logo-main {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 34px;
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(135deg, var(--ink) 0%, var(--accent-down) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Banner de patrocínio centralizado */
.sponsor-banner-wrap {
    width: 100%;
    padding: 0;
    margin: 0;
    background: #000;
    overflow: hidden;
}

.title-block { display: none; }
.title-left { display: none; }

h1.logo .dot-accent {
    color: var(--hot);
    display: inline-block;
    width: 0.14em;
    height: 0.14em;
    border-radius: 50%;
    background: var(--hot);
    margin: 0 0.04em 0.18em;
    vertical-align: middle;
    box-shadow: 0 0 16px var(--hot), 0 0 32px rgba(255, 45, 146, 0.5);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

/* ============ CARROSSEL DE PATROCINADORES (banner estilo Globo — leaderboard fino) ============ */
.sponsor-area {
    position: relative;
    aspect-ratio: 16 / 3;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #000;
    border: none;
    overflow: hidden;
    border-radius: 0;
    display: block;
}

.sponsor-label {
    position: absolute;
    top: 4px;
    right: 6px;
    left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    z-index: 5;
    background: transparent;
    padding: 1px 4px;
}

.sponsor-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.sponsor-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.sponsor-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Slide com imagem cheia (banner pronto do patrocinador) */
.sponsor-slide.image-slide {
    padding: 0;
}

.sponsor-slide.image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.sponsor-slide.image-slide a,
.sponsor-slide.image-slide > div {
    display: block;
    width: 100%;
    height: 100%;
}

.sponsor-slide .sponsor-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-down);
    margin-bottom: 6px;
    padding: 3px 8px;
    border: 1px solid var(--accent-down);
}

.sponsor-slide .sponsor-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(18px, 1.8vw, 26px);
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 4px;
}

.sponsor-slide .sponsor-sub {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(11px, 0.9vw, 13px);
    color: var(--ink-muted);
    line-height: 1.35;
    margin-bottom: 8px;
    max-width: 90%;
}

.sponsor-slide .sponsor-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--ink);
    padding: 7px 16px;
    text-decoration: none;
    transition: background 0.2s;
    font-weight: 500;
    display: inline-block;
}

.sponsor-slide .sponsor-cta:hover {
    background: var(--accent-down);
}

/* dots indicators — ultra-sutis no banner fino */
.sponsor-dots {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 4;
}

.sponsor-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.sponsor-dot.active {
    opacity: 1;
    background: rgba(255,255,255,0.85);
    width: 12px;
    border-radius: 2px;
}

.subline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 3px double var(--ink);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.subline .center {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-muted);
    font-weight: 400;
}

.subline .right { text-align: right; }

#refresh-btn {
    background: var(--ink);
    border: 1px solid var(--ink);
    color: var(--paper);
    padding: 7px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

#refresh-btn:hover {
    background: var(--accent-down);
    border-color: var(--accent-down);
}

#refresh-btn:active { transform: scale(0.97); }

/* ============ STATUS BAR ============ */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink-muted);
    margin-bottom: 36px;
}

.status-bar .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--ink);
    color: var(--paper);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

.loading-state {
    text-align: center;
    padding: 100px 20px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 24px;
    color: var(--ink-muted);
}

.loading-state .spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid var(--ink-muted);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 14px;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ BARRA DE CATEGORIAS (igual globo.com) ============ */
.cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 32px;
    padding-bottom: 0;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }

.cat-btn {
    background: transparent;
    border: none;
    padding: 14px 22px 14px 0;
    margin-right: 24px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: rgba(26, 10, 31, 0.55);
    cursor: pointer;
    text-transform: lowercase;
    transition: color 0.15s;
    position: relative;
    flex-shrink: 0;
}

.cat-btn:hover { color: var(--cat-color); }

.cat-btn.active {
    color: var(--cat-color);
}

.cat-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 24px;
    height: 3px;
    background: var(--cat-color);
}

/* ============ TOPO DO PORTAL: hero esquerda + side cards direita ============ */
/* Hero ocupa largura total */
.portal-hero-full { display: none; }
.portal-grid { display: none; }

/* ══════════════════════════════════════════════
   LAYOUT ESTILO GLOBO.COM
══════════════════════════════════════════════ */

/* Barra de categorias */
.cat-bar {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 12px;
}

.cat-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #555;
    cursor: pointer;
    border-radius: 2px;
    transition: all .15s;
}
.cat-btn:hover { color: var(--cat-color, #333); }
.cat-btn.active {
    color: var(--cat-color, #333);
    border-bottom: 3px solid var(--cat-color, #333);
}

/* Editoria (categoria colorida) */
.globo-editoria-badge {
    display: inline-block;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.globo-editoria {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    display: block;
    margin-bottom: 8px;
}

/* Meta (fonte · tempo) */
.globo-meta {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 11px;
    color: #888;
    margin-top: 8px;
}

/* ══════════════════════════════════════════════
   LAYOUT IDÊNTICO AO GLOBO.COM
   Fonte arredondada, sem linhas, cores fortes
══════════════════════════════════════════════ */

/* Editoria colorida */
.globo-editoria {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: block;
    margin-bottom: 6px;
}

/* Meta */
.globo-meta {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 11px;
    color: #888;
    margin-top: 6px;
}

/* ── BLOCO TOPO ── */
.globo-top {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 12px;
    padding: 24px 0 28px;
    align-items: start;
}

.globo-top-main { min-width: 0; }

/* HERO com imagem de fundo + texto overlay — estilo Globo.com */
.globo-hero {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/8.31;
    background: #111;
}

.globo-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transition: transform .4s ease;
}

.globo-hero:hover .globo-hero-bg { transform: scale(1.03); }

.globo-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
}

.globo-hero-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 24px 22px;
}

.globo-hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.globo-hero-link:hover .globo-hero-title { opacity: .85; }

/* COLUNA LATERAL: 2×2 grid de cards pequenos */
.globo-top-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.globo-side {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
}

.globo-side-img-link { display: block; }

.globo-side-img {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    transition: opacity .3s;
}

.globo-side:hover .globo-side-img { opacity: .9; }

.globo-side-body {
    padding: 8px 10px 10px;
}

.globo-hero-title {
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 900;
    line-height: 1.08;
    margin: 0 0 0;
    letter-spacing: -.01em;
    text-transform: none;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.globo-hero-desc {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 18px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 16px;
    font-weight: 400;
}

/* Bullets do hero */
.globo-hero-subbullet {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}
.globo-hero-subbullet a {
    color: #fff;
    text-decoration: none;
    opacity: .9;
}
.globo-hero-subbullet a:hover { opacity: 1; text-decoration: underline; }
.bullet-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.globo-hero-bullets {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.globo-hero-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 14px;
    color: #222;
    line-height: 1.4;
}
.globo-hero-bullets li::before {
    content: '•';
    color: #e8001e;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}
.globo-hero-bullets li a {
    color: inherit;
    text-decoration: none;
}
.globo-hero-bullets li a:hover { text-decoration: underline; }

/* ── SIDE CARDS: imagem + título colorido — grade 2×2 ── */
.globo-side { border-radius: 4px; overflow: hidden; background: #fff; }

.globo-side-img-link { display: block; text-decoration: none; }

.globo-side-img {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center top;
    background-color: #eee;
}

.globo-side-body { padding: 8px 4px 4px; }

.globo-side-title {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    text-decoration: none !important;
    display: block;
    letter-spacing: -.01em;
}
.globo-side-title:hover { opacity: .8; text-decoration: none !important; }

/* garantir sem sublinhado em todos os links dos cards */
.globo-side a, .globo-side a:visited, .globo-side a:hover {
    text-decoration: none !important;
}

/* Bullets dos side cards */
.globo-side-bullets {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.globo-side-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 1.3;
}
.globo-side-bullets li::before {
    content: '•';
    color: #888;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.globo-side-bullets li a {
    color: inherit;
    text-decoration: none;
}
.globo-side-bullets li a:hover { text-decoration: underline; }

/* ── DIVISOR ── */
.globo-divider {
    height: 3px;
    background: #111;
    margin: 4px 0 24px;
}

/* ── GRID 4 COLUNAS ── */
.globo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
}

.globo-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}
.globo-card a:hover .globo-card-title { opacity: .75; }

.globo-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    margin-bottom: 10px;
    transition: opacity .15s;
}

.globo-card-body { padding: 0; }

.globo-card-title {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    margin: 0;
    letter-spacing: -.01em;
}

/* Responsivo */
@media (max-width: 1100px) {
    .globo-grid { grid-template-columns: repeat(3, 1fr); }
    .globo-top { grid-template-columns: 1fr; }
    .globo-hero-title { font-size: 68px; }
}
@media (max-width: 768px) {
    /* globo-top full width */
    .globo-top-side { border-left: none; padding-left: 0; border-top: 1px solid #e5e5e5; padding-top: 20px; }
    .globo-grid { grid-template-columns: repeat(2, 1fr); }
    .globo-hero-title { font-size: 52px; }
}
@media (max-width: 480px) {
    .globo-grid { grid-template-columns: 1fr; }
    .globo-hero-title { font-size: 44px; }
}

/* ============ HERO ARTICLE (manchete gigante esquerda) ============ */
.hero-article {
    margin: 0;
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
    animation-delay: 0.05s;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--paper-pop);
    overflow: hidden;
    transition: transform 0.3s;
}

.hero-link:hover .hero-image {
    transform: scale(1.005);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 35%,
        rgba(0,0,0,0.25) 60%,
        rgba(0,0,0,0.85) 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px 26px;
    color: #fff;
}

.hero-cat {
    display: inline-block;
    padding: 4px 12px 5px;
    color: #fff;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-title {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 2.6vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #fff;
    text-wrap: balance;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    margin-bottom: 12px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Source Serif 4', serif;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

.hero-meta em {
    font-style: italic;
    font-weight: 400;
}

.hero-meta .dot-sep { opacity: 0.6; }

/* Sub-itens da hero (faixa colorida abaixo da imagem) */
.hero-subitems {
    background: var(--accent-down);
    color: #fff;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.hero-subitem {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 18px 18px;
    color: #fff;
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,0.18);
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
    transition: background 0.15s;
    min-width: 0;
}

.hero-subitem:last-child { border-right: none; }
.hero-subitem:hover { background: rgba(0,0,0,0.15); }

.subitem-bullet {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.subitem-title {
    font-weight: 600;
}

a:visited.hero-subitem .subitem-title { opacity: 0.7; }

/* ============ SIDE CARD (coluna direita) ============ */
.side-card {
    opacity: 0;
    animation: fadeUp 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.side-card:nth-child(1) { animation-delay: 0.1s; }
.side-card:nth-child(2) { animation-delay: 0.18s; }
.side-card:nth-child(3) { animation-delay: 0.26s; }
.side-card:nth-child(4) { animation-delay: 0.34s; }

.side-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.side-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--paper-pop);
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
}

.side-cat {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 3px 9px 4px;
    color: #fff;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 2px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.side-title {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
    margin-bottom: 8px;
    text-wrap: balance;
    /* limita a 3 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-card:hover .side-title { text-decoration: underline; text-underline-offset: 3px; }

.side-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Source Serif 4', serif;
    font-size: 11px;
    color: var(--ink-muted);
}

.side-meta em { font-style: italic; }
.side-meta .dot-sep { color: var(--accent-up); font-weight: 700; }

a:visited .side-title,
a:visited .grid-title { opacity: 0.7; }

/* ============ DIVIDER + GRID INFERIOR ============ */
.portal-divider {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 12px 0 32px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
}



.grid-card {
    opacity: 0;
    animation: fadeUp 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.grid-card:nth-child(odd) { animation-delay: 0.05s; }
.grid-card:nth-child(even) { animation-delay: 0.12s; }

.grid-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.grid-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--paper-pop);
    margin-bottom: 10px;
    border-radius: 3px;
    overflow: hidden;
    transition: transform 0.2s;
}

.grid-card:hover .grid-image { transform: scale(1.01); }

.grid-cat {
    display: block;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.grid-title {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 8px;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grid-card:hover .grid-title { text-decoration: underline; text-underline-offset: 3px; }

.grid-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Source Serif 4', serif;
    font-size: 10.5px;
    color: var(--ink-muted);
    flex-wrap: wrap;
}

.grid-meta em { font-style: italic; }
.grid-meta .dot-sep { color: var(--accent-up); }

/* ============ RESPONSIVO ============ */
@media (max-width: 980px) {
    .portal-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .portal-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 720px) {
    .cat-btn { font-size: 13px; padding: 12px 0; margin-right: 18px; }

    .hero-image { aspect-ratio: 3 / 2; }
    .hero-content { padding: 18px 18px 16px; }
    .hero-title { font-size: 20px; line-height: 1.15; }
    .hero-cat { font-size: 9px; padding: 3px 8px; margin-bottom: 10px; }

    .hero-subitems { grid-template-columns: 1fr; }
    .hero-subitem {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.18);
        padding: 12px 16px;
        font-size: 12.5px;
    }
    .hero-subitem:last-child { border-bottom: none; }

    .portal-right {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .side-title { font-size: 14px; -webkit-line-clamp: 4; }
    .side-meta { font-size: 10px; }

    .portal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 14px;
    }
    .grid-title { font-size: 13px; }
}

@media (max-width: 420px) {
    .portal-right { grid-template-columns: 1fr; }
    .portal-grid { grid-template-columns: 1fr; }
}


/* ============ ERROR STATE ============ */
.error-state {
    padding: 28px;
    background: rgba(198, 61, 40, 0.05);
    border: 1px solid rgba(198, 61, 40, 0.25);
    border-left: 4px solid var(--accent-down);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-down);
    font-size: 16px;
}

/* ============ FOOTER ============ */
footer {
    margin-top: 80px;
    padding: 36px 0 28px;
    border-top: 4px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    margin-left: -36px;
    margin-right: -36px;
    padding-left: 36px;
    padding-right: 36px;
}

footer .inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

footer .inner .center {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--gold);
}

footer .inner .right {
    text-align: right;
    color: rgba(255, 241, 229, 0.5);
}

/* ============ RESPONSIVE ============ */
/* ============ RESPONSIVIDADE ============ */

/* Tablet e abaixo: empilha logo e carrossel */
/* ============ SISTEMA DE LOGIN / USUÁRIO ============ */
.user-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn {
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
    padding: 6px 14px 6px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.login-btn:hover {
    background: var(--ink);
    color: var(--paper);
}

.login-btn .icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Avatar do usuário logado */
.user-avatar {
    background: var(--ink);
    color: var(--paper);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.user-avatar:hover {
    background: var(--accent-down);
}

.user-avatar.is-admin {
    background: var(--accent-up);
    box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--accent-up);
}

.user-avatar.is-admin:hover {
    background: var(--ink);
    box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink);
}

/* Dropdown do usuário */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--paper);
    border: 1px solid var(--ink);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.2s ease;
}

.user-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.user-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ink);
    background: var(--paper-dark);
}

.user-dropdown-header .name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 2px;
    word-break: break-word;
}

.user-dropdown-header .role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.user-dropdown-header .role.admin {
    color: var(--accent-up);
    font-weight: 600;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 13px;
    color: var(--ink);
    text-align: left;
    transition: background 0.15s;
    text-decoration: none;
}

.user-dropdown-item:last-child { border-bottom: none; }
.user-dropdown-item:hover { background: var(--paper-dark); }

.user-dropdown-item.danger { color: var(--accent-down); }
.user-dropdown-item .icon { width: 14px; height: 14px; opacity: 0.7; }

/* ===== Dropdown em cascata (painel admin) — abre no hover, flutua à direita ===== */
.dropdown-cascade {
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.dropdown-cascade .cascade-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s;
    text-transform: lowercase;
}

.dropdown-cascade .cascade-header:hover {
    background: var(--paper-dark);
}

.dropdown-cascade .cascade-header .icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    color: var(--ink);
}

.dropdown-cascade:hover .cascade-header .icon {
    opacity: 1;
    color: var(--accent-up);
}

.dropdown-cascade .cascade-header .cascade-arrow {
    margin-left: auto;
    width: 11px;
    height: 11px;
    opacity: 0.4;
    transition: transform 0.2s, opacity 0.2s;
}

.dropdown-cascade:hover .cascade-header .cascade-arrow {
    opacity: 1;
    color: var(--accent-up);
}

/* Submenu flutuante (escondido por padrão) */
.dropdown-cascade .cascade-children {
    position: absolute;
    top: 0;
    right: 100%;
    min-width: 200px;
    background: var(--paper);
    border: 1px solid var(--ink);
    box-shadow: -4px 4px 0 rgba(0,0,0,0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    z-index: 1100;
    margin-right: 2px;
}

/* Aparece quando passa o mouse no item pai */
.dropdown-cascade:hover .cascade-children,
.dropdown-cascade:focus-within .cascade-children {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.dropdown-cascade .cascade-child {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 13px;
    color: var(--ink);
    text-align: left;
    transition: all 0.15s;
}

.dropdown-cascade .cascade-child:last-child { border-bottom: none; }

.dropdown-cascade .cascade-child:hover {
    background: rgba(0, 134, 125, 0.08);
    color: var(--accent-up);
    padding-left: 20px;
}

.dropdown-cascade .cascade-child .icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.dropdown-cascade .cascade-child:hover .icon { opacity: 1; }

/* Em telas pequenas (mobile), submenu vira inline ao invés de flutuante (não cabe ao lado) */
@media (max-width: 720px) {
    .dropdown-cascade .cascade-children {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px dotted var(--ink-muted);
        background: rgba(0,134,125,0.04);
        margin-left: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .dropdown-cascade:hover .cascade-children,
    .dropdown-cascade.mobile-open .cascade-children {
        max-height: 200px;
    }
    .dropdown-cascade .cascade-child {
        padding-left: 32px;
        font-size: 12.5px;
    }
}

/* ============ MODAIS DE LOGIN E CADASTRO ============ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 12px));
    background: var(--paper);
    border: 1px solid var(--ink);
    width: min(440px, calc(100% - 32px));
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.modal-header {
    padding: 24px 28px 18px;
    border-bottom: 1px solid var(--ink);
    position: relative;
}

.modal-header .modal-super {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-down);
    margin-bottom: 6px;
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 32px;
    letter-spacing: -0.025em;
    color: var(--ink);
    line-height: 1;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: var(--ink-muted);
    font-size: 20px;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.modal-close:hover { color: var(--accent-down); }

.modal-body {
    padding: 24px 28px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ink);
    background: var(--paper);
    font-family: 'Source Serif 4', serif;
    font-size: 15px;
    color: var(--ink);
    transition: border-color 0.15s, background 0.15s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-down);
    background: #fff;
}

.form-group input::placeholder { color: var(--ink-muted); opacity: 0.5; }

.form-submit {
    width: 100%;
    padding: 12px 20px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.form-submit:hover { background: var(--accent-down); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-footer {
    padding: 16px 28px 24px;
    text-align: center;
    font-family: 'Source Serif 4', serif;
    font-size: 14px;
    color: var(--ink-muted);
    border-top: 1px dotted var(--ink-muted);
}

.modal-footer a {
    color: var(--accent-down);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.form-message {
    padding: 12px 14px;
    margin-bottom: 16px;
    font-family: 'Source Serif 4', serif;
    font-size: 14px;
    border-left: 3px solid;
    display: none;
}

.form-message.error {
    background: rgba(198, 61, 40, 0.08);
    border-color: var(--accent-down);
    color: var(--accent-down);
}

.form-message.success {
    background: rgba(0, 134, 125, 0.08);
    border-color: var(--accent-up);
    color: var(--accent-up);
}

.form-message.show { display: block; }

/* user-area position context */
.top-bar .right { position: relative; }

/* ============ PAINEL ADMIN (overlay full-screen) ============ */
.admin-panel {
    position: fixed;
    inset: 0;
    background: var(--paper);
    z-index: 9000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.admin-panel.open {
    display: flex;
    animation: adminFadeIn 0.3s ease;
}

@keyframes adminFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Topo do painel admin */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: var(--ink);
    color: var(--paper);
    border-bottom: 3px solid var(--accent-up);
    flex-shrink: 0;
}

.admin-header .left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header .admin-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--paper);
}

.admin-header .admin-logo .accent {
    color: var(--accent-up);
    font-style: italic;
    font-weight: 400;
    margin-right: 4px;
}

.admin-header .admin-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-up);
    padding: 3px 10px;
    border: 1px solid var(--accent-up);
}

.admin-header .right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-back-btn {
    background: transparent;
    border: 1px solid var(--paper);
    color: var(--paper);
    padding: 7px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-back-btn:hover {
    background: var(--paper);
    color: var(--ink);
}

/* Layout principal: sidebar + conteúdo */
.admin-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 260px 1fr;
    overflow: hidden;
}

/* Sidebar */
.admin-sidebar {
    background: var(--paper-dark);
    border-right: 1px solid var(--ink);
    overflow-y: auto;
    padding: 16px 0;
}

.admin-menu-section {
    padding: 10px 20px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 600;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    transition: all 0.15s;
    border-left: 3px solid transparent;
    position: relative;
}

.admin-menu-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.admin-menu-item.active {
    background: var(--paper);
    border-left-color: var(--accent-down);
    font-weight: 600;
}

.admin-menu-item .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.admin-menu-item.active .icon { opacity: 1; }

.admin-menu-item .arrow {
    margin-left: auto;
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
    opacity: 0.5;
}

.admin-menu-item.expanded .arrow {
    transform: rotate(90deg);
}

/* Submenu em cascata */
.admin-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.03);
}

.admin-submenu.open {
    max-height: 300px;
}

.admin-submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px 9px 50px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 13px;
    color: var(--ink-soft);
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.admin-submenu-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--ink);
}

.admin-submenu-item.active {
    background: var(--paper);
    border-left-color: var(--accent-up);
    color: var(--ink);
    font-weight: 600;
}

.admin-submenu-item .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ink-muted);
    flex-shrink: 0;
    opacity: 0.4;
}

.admin-submenu-item.active .dot {
    background: var(--accent-up);
    opacity: 1;
}

/* Conteúdo principal */
.admin-content {
    overflow-y: auto;
    padding: 32px 36px;
    background: var(--paper);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: sectionFadeIn 0.3s ease;
}

@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--ink);
}

.admin-section-header .title-area .super {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-down);
    margin-bottom: 4px;
}

.admin-section-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 36px;
    letter-spacing: -0.025em;
    color: var(--ink);
    line-height: 1;
}

.admin-section-header .actions {
    display: flex;
    gap: 8px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-btn:hover { background: var(--accent-down); }

.admin-btn.secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}

.admin-btn.secondary:hover { background: var(--ink); color: var(--paper); }

.admin-btn.success { background: var(--accent-up); }
.admin-btn.success:hover { background: var(--ink); }

.admin-btn .icon { width: 12px; height: 12px; }

/* ============ AGENDA — CALENDÁRIO ============ */
.agenda-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #2545e8 0%, #4f6ff5 100%);
    color: var(--paper);
    border-radius: 6px;
    flex-wrap: wrap;
}

.agenda-toolbar .agenda-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agenda-toolbar .title-block-toolbar {
    flex: 1;
    min-width: 200px;
}

.agenda-toolbar .agenda-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--paper);
    line-height: 1;
    margin-bottom: 2px;
}

.agenda-toolbar .agenda-subtitle {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255,241,229,0.8);
    text-transform: lowercase;
}

.view-switcher {
    display: flex;
    background: rgba(255,255,255,0.12);
    padding: 3px;
    border-radius: 24px;
    gap: 2px;
}

.view-switcher button {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.75);
    padding: 6px 14px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
    text-transform: capitalize;
}

.view-switcher button:hover { color: white; }

.view-switcher button.active {
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
}

.agenda-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--paper);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.nav-btn:hover { background: rgba(255,255,255,0.28); }

.today-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    color: var(--paper);
    padding: 7px 18px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: background 0.2s;
}

.today-btn:hover { background: rgba(255,255,255,0.25); }

.new-btn {
    background: var(--paper);
    border: none;
    color: var(--ink);
    padding: 8px 18px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.new-btn:hover {
    background: var(--accent-up);
    color: var(--paper);
}

/* Container do calendário */
.calendar {
    background: var(--paper);
    border: 1px solid var(--ink);
    overflow: hidden;
    position: relative;
}

/* ========== VIEW: SEMANA ========== */
.calendar-week {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    border-bottom: 1px solid var(--ink);
}

.week-header-cell {
    padding: 14px 4px;
    text-align: center;
    border-right: 1px solid rgba(0,0,0,0.07);
    font-family: 'Barlow', 'Inter', sans-serif;
    background: var(--paper);
}

.week-header-cell:last-child { border-right: none; }
.week-header-cell.spacer { background: var(--paper-dark); }

.week-header-cell .day-name {
    font-size: 11px;
    color: var(--ink-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.week-header-cell .day-num {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
}

.week-header-cell.is-today .day-num {
    background: #2545e8;
    color: var(--paper);
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    display: inline-block;
}

.week-header-cell.is-today { background: rgba(37, 69, 232, 0.06); }

/* Grid de horas */
.calendar-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    position: relative;
}

.hour-label {
    padding: 8px 8px 0 0;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-muted);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    height: 60px;
}

.hour-cell {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-right: 1px solid rgba(0,0,0,0.08);
    height: 60px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.hour-cell:hover { background: rgba(37, 69, 232, 0.04); }
.hour-cell.is-today-col { background: rgba(37, 69, 232, 0.025); }
.hour-cell.is-today-col:hover { background: rgba(37, 69, 232, 0.07); }

/* Eventos sobrepostos no calendário */
/* ── SEMANA: event-block estilo Monday ── */
.event-block {
    position: absolute;
    left: 3px;
    right: 3px;
    background: #eef1fe;
    color: #1a1a2e;
    padding: 4px 6px 4px 9px;
    border-radius: 6px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.15s;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-left: 3px solid #4f6ff5;
}

.event-block:hover {
    box-shadow: 0 3px 10px rgba(79,111,245,0.2);
    z-index: 5;
    background: #dde3fd;
}

.event-block .ev-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    color: #1a1a2e;
}

.event-block .ev-time {
    font-size: 9px;
    opacity: 0.65;
    margin-top: 1px;
    font-family: 'JetBrains Mono', monospace;
    color: #4f6ff5;
}

.event-block.status-concluido {
    background: #e0f5f3;
    border-left-color: #00a887;
}
.event-block.status-concluido .ev-time { color: #00a887; }

.event-block.status-cancelado {
    background: #f0f0f0;
    border-left-color: #999;
    text-decoration: line-through;
    opacity: 0.6;
}

.event-block.status-em_andamento {
    background: #fff4e0;
    border-left-color: #f5a623;
}
.event-block.status-em_andamento .ev-time { color: #f5a623; }

/* ========== VIEW: DIA ========== */
.calendar-day {
    display: grid;
    grid-template-columns: 60px 1fr;
}

.calendar-day .day-header {
    grid-column: 1 / -1;
    padding: 18px;
    text-align: center;
    background: var(--paper-dark);
    border-bottom: 1px solid var(--ink);
}

.calendar-day .day-header .day-name {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 12px;
    color: var(--ink-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.calendar-day .day-header .day-num {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 38px;
    color: var(--ink);
    line-height: 1;
    margin-top: 4px;
}

.calendar-day .day-header.is-today .day-num {
    color: #2545e8;
}

.day-grid {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-column: 1 / -1;
    position: relative;
}

.day-grid .day-hour-cell {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    height: 60px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.day-grid .day-hour-cell:hover { background: rgba(37, 69, 232, 0.04); }

.day-event-block { display: none; } /* substituído pelo estilo Monday */

/* ═══════════════════════════════════════
   AGENDA — ESTILO MONDAY.COM
═══════════════════════════════════════ */
.monday-day { padding: 0; }

.monday-day-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px 16px;
    border-bottom: 2px solid var(--border);
    background: var(--paper);
}

.monday-day-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.monday-day-name {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-muted);
}

.monday-day-num {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.monday-day-num.is-today-num {
    background: #4f6ff5;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.monday-day-count {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ink-muted);
    background: var(--paper-pop);
    padding: 4px 12px;
    border-radius: 20px;
}

.monday-add-btn {
    background: #4f6ff5;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.monday-add-btn:hover { background: #2545e8; transform: translateY(-1px); }

/* Lista de eventos */
.monday-events-list {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.monday-group-label {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-muted);
    padding: 16px 0 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

/* Card do evento — estilo Monday */
.monday-event-card {
    display: flex;
    align-items: stretch;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.15s;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.monday-event-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: var(--ev-color, #4f6ff5);
}

.monday-card-bar {
    width: 5px;
    min-height: 100%;
    flex-shrink: 0;
}

.monday-card-body {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.monday-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.monday-card-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--ev-color, #4f6ff5);
}

.monday-card-dur {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink-muted);
}

.monday-card-tag {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
}

.monday-card-title {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.monday-card-location {
    font-size: 12px;
    color: var(--ink-muted);
}

.monday-card-desc {
    font-size: 12px;
    color: var(--ink-muted);
    font-style: italic;
    line-height: 1.4;
}

.monday-card-arrow {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 20px;
    color: var(--ink-muted);
    opacity: 0;
    transition: opacity 0.15s;
}
.monday-event-card:hover .monday-card-arrow { opacity: 1; }

/* Estado vazio */
.monday-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    gap: 12px;
    color: var(--ink-muted);
    text-align: center;
}
.monday-empty-icon { font-size: 48px; }
.monday-empty-text { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 600; }
.monday-empty-btn {
    margin-top: 8px;
    background: transparent;
    border: 2px solid #4f6ff5;
    color: #4f6ff5;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.monday-empty-btn:hover { background: #4f6ff5; color: white; }

/* Status concluído */
.monday-event-card.status-concluido .monday-card-title {
    text-decoration: line-through;
    opacity: 0.6;
}

.day-event-block.status-concluido {
    background: linear-gradient(135deg, #1aaa9b 0%, #00867d 100%);
}

.day-event-block.status-cancelado {
    background: linear-gradient(135deg, #999 0%, #666 100%);
    text-decoration: line-through;
    opacity: 0.7;
}

/* ========== VIEW: MÊS ========== */
.calendar-month {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.month-header-row {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    background: var(--paper);
    border-bottom: 2px solid rgba(0,0,0,0.08);
}

.month-header-cell {
    padding: 12px 8px;
    text-align: center;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 11px;
    color: var(--ink-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    border-right: 1px solid rgba(0,0,0,0.07);
}

.month-header-cell:last-child { border-right: none; }

.month-day-cell {
    min-height: 120px;
    padding: 10px 8px 8px;
    border-right: 1px solid rgba(0,0,0,0.07);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.month-day-cell:hover { background: rgba(37, 69, 232, 0.04); }
.month-day-cell.other-month { background: rgba(0,0,0,0.02); opacity: 0.55; }
.month-day-cell.is-today { background: rgba(37, 69, 232, 0.06); }

.month-day-cell .month-day-num {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 4px;
}

.month-day-cell.is-today .month-day-num {
    background: #2545e8;
    color: var(--paper);
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
}

.month-event-mini {
    background: #eef1fe;
    color: #1a1a2e;
    padding: 2px 6px 2px 8px;
    border-radius: 4px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    border-left: 3px solid #4f6ff5;
    transition: all 0.12s;
}
.month-event-mini:hover { background: #dde3fd; }

.month-event-mini.status-concluido {
    background: #e0f5f3;
    border-left-color: #00a887;
}
.month-event-mini.status-cancelado {
    background: #f0f0f0;
    border-left-color: #999;
    text-decoration: line-through;
    opacity: 0.6;
}
.month-event-mini.status-em_andamento {
    background: #fff4e0;
    border-left-color: #f5a623;
}

.month-event-more {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 10px;
    color: var(--ink-muted);
    margin-top: 3px;
    font-weight: 500;
}

/* ========== MODAL DE EDIÇÃO LATERAL (estilo do exemplo) ========== */
.event-side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: var(--paper);
    border-left: 1px solid var(--ink);
    z-index: 9700;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.event-side-panel.open { transform: translateX(0); }

.event-panel-header {
    padding: 24px 28px 18px;
    border-bottom: 1px solid var(--ink);
    position: relative;
}

.event-panel-header .super {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-down);
    margin-bottom: 6px;
}

.event-panel-header h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 26px;
    letter-spacing: -0.025em;
    color: var(--ink);
    line-height: 1.05;
}

.event-panel-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    width: 28px; height: 28px;
    cursor: pointer;
    color: var(--ink-muted);
    font-size: 22px;
    line-height: 1;
}

.event-panel-close:hover { color: var(--accent-down); }

.event-panel-body { padding: 22px 28px; }

.event-panel-body .form-group { margin-bottom: 14px; }

.event-panel-body input,
.event-panel-body select,
.event-panel-body textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ink);
    background: var(--paper);
    font-family: 'Source Serif 4', serif;
    font-size: 14px;
    color: var(--ink);
    font-feature-settings: 'tnum';
}

.event-panel-body textarea {
    resize: vertical;
    min-height: 70px;
    font-family: 'Source Serif 4', serif;
}

.event-panel-body input:focus,
.event-panel-body select:focus,
.event-panel-body textarea:focus {
    outline: none;
    border-color: #2545e8;
}

.event-panel-actions {
    display: flex;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dotted var(--ink-muted);
}

.event-panel-actions button { flex: 1; }

.event-panel-actions .btn-delete {
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid var(--accent-down);
    color: var(--accent-down);
    padding: 10px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.event-panel-actions .btn-delete:hover {
    background: var(--accent-down);
    color: var(--paper);
}

/* Responsivo da agenda */
@media (max-width: 800px) {
    .agenda-toolbar { gap: 8px; }
    .agenda-toolbar .title-block-toolbar { flex: 1 1 100%; order: -1; }
    .view-switcher button { padding: 5px 10px; font-size: 11px; }
    .calendar-week, .calendar-grid { grid-template-columns: 48px repeat(7, 1fr); }
    .week-header-cell .day-name { font-size: 9px; }
    .week-header-cell .day-num { font-size: 16px; }
    .month-day-cell { min-height: 70px; padding: 4px; }
    .event-side-panel { width: 100vw; }
    .event-block { font-size: 9px; padding: 2px 4px; border-left-width: 2px; }
    .event-block .ev-time { display: none; }
}


/* ============ CAIXA — FLUXO ============ */
.cash-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.cash-card {
    background: var(--paper-dark);
    border: 1px solid var(--ink);
    padding: 18px 20px;
    border-top: 4px solid;
}

.cash-card[data-type="entrada"] { border-top-color: var(--accent-up); }
.cash-card[data-type="saida"] { border-top-color: var(--accent-down); }
.cash-card[data-type="saldo"] { border-top-color: var(--ink); background: var(--ink); color: var(--paper); }

.cash-card .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.cash-card[data-type="saldo"] .label {
    color: rgba(255,241,229,0.6);
}

.cash-card .value {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 30px;
    letter-spacing: -0.025em;
    color: var(--ink);
    line-height: 1;
}

.cash-card[data-type="entrada"] .value { color: var(--accent-up); }
.cash-card[data-type="saida"] .value { color: var(--accent-down); }
.cash-card[data-type="saldo"] .value { color: var(--paper); }

.cash-card .sub {
    margin-top: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--ink-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cash-card[data-type="saldo"] .sub { color: rgba(255,241,229,0.5); }

/* Lista de transações */
.cash-table {
    background: var(--paper);
    border: 1px solid var(--ink);
}

.cash-table-header {
    display: grid;
    grid-template-columns: 100px 80px 1fr 120px 140px 40px;
    gap: 12px;
    padding: 12px 18px;
    background: var(--ink);
    color: var(--paper);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    align-items: center;
}

.cash-row {
    display: grid;
    grid-template-columns: 100px 80px 1fr 120px 140px 40px;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px dotted var(--ink-muted);
    align-items: center;
    transition: background 0.15s;
}

.cash-row:hover { background: var(--paper-dark); }
.cash-row:last-child { border-bottom: none; }

.cash-row .date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ink-muted);
}

.cash-row .type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 3px 7px;
    text-align: center;
    font-weight: 600;
    width: fit-content;
}

.cash-row .type.entrada { background: rgba(0,134,125,0.1); color: var(--accent-up); border: 1px solid var(--accent-up); }
.cash-row .type.saida { background: rgba(198,61,40,0.1); color: var(--accent-down); border: 1px solid var(--accent-down); }

.cash-row .description {
    font-family: 'Source Serif 4', serif;
    font-size: 14px;
    color: var(--ink);
}

.cash-row .category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-muted);
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

.cash-row .amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.cash-row .amount.entrada { color: var(--accent-up); }
.cash-row .amount.saida { color: var(--accent-down); }

.cash-row .delete-btn {
    background: transparent;
    border: none;
    color: var(--ink-muted);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    line-height: 1;
}

.cash-row .delete-btn:hover { color: var(--accent-down); }

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--ink-muted);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 18px;
}

/* ============ PATROCÍNIOS — GRID + UPLOAD ============ */

/* ----- Estatísticas no topo ----- */
.sponsors-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform 0.15s;
}

.stat-card:hover { transform: translate(-1px, -1px); }

.stat-card.stat-active { border-color: #2e7d32; box-shadow: 3px 3px 0 #2e7d32; }
.stat-card.stat-pending { border-color: #f57f17; box-shadow: 3px 3px 0 #f57f17; }
.stat-card.stat-inactive { border-color: var(--ink-muted); box-shadow: 3px 3px 0 var(--ink-muted); opacity: 0.85; }

.stat-card .stat-emoji {
    font-size: 28px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.stat-card .stat-num {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 22px;
    line-height: 1;
    color: var(--ink);
}

.stat-card .stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 2px;
}

/* ----- Lista de patrocinadores (linhas) ----- */
.sponsors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sponsor-row {
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: auto 120px 1fr auto;
    gap: 16px;
    align-items: center;
    transition: all 0.15s;
    box-shadow: 3px 3px 0 rgba(26, 10, 31, 0.15);
    position: relative;
}

.sponsor-row:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--accent-up);
    border-color: var(--accent-up);
}

/* Borda lateral colorida por status */
.sponsor-row[data-status="ativo"] {
    border-left: 5px solid #2e7d32;
}
.sponsor-row[data-status="pendente"] {
    border-left: 5px solid #f57f17;
}
.sponsor-row[data-status="inativo"] {
    border-left: 5px solid var(--ink-muted);
    opacity: 0.75;
}

.sponsor-row-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-up);
    background: var(--paper-pop);
    padding: 4px 8px;
    border-radius: 3px;
}

.sponsor-row-img {
    width: 120px;
    aspect-ratio: 3.5 / 1;
    background: var(--paper-dark);
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    border: 1px solid var(--ink-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sponsor-row-img.no-image {
    background: linear-gradient(135deg, var(--paper-pop), var(--paper-dark));
}

.sponsor-row-info {
    min-width: 0;
    overflow: hidden;
}

.sponsor-row-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.sponsor-row-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
}

.sponsor-row-status.status-ativo {
    background: rgba(46, 125, 50, 0.15);
    color: #2e7d32;
}
.sponsor-row-status.status-pendente {
    background: rgba(245, 127, 23, 0.15);
    color: #f57f17;
}
.sponsor-row-status.status-inativo {
    background: rgba(120, 100, 130, 0.15);
    color: var(--ink-muted);
}

.sponsor-row-client {
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
}

.sponsor-row-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sponsor-row-desc {
    font-family: 'Source Serif 4', serif;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sponsor-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--ink-muted);
    align-items: center;
}

.sponsor-row-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.sponsor-row-link {
    color: var(--accent-up) !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}
.sponsor-row-link:hover { color: var(--hot) !important; text-decoration: underline; }

/* ----- Botões de ação (editar / pausar / excluir) ----- */
.sponsor-row-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    font-family: 'Barlow', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s;
    min-width: 95px;
    justify-content: flex-start;
}

.action-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 var(--ink);
}

.action-btn .action-emoji {
    font-size: 14px;
    line-height: 1;
}

.action-btn .action-label {
    font-size: 11px;
    text-transform: lowercase;
    letter-spacing: 0.03em;
}

.action-btn.action-edit:hover {
    background: var(--paper-pop);
    border-color: var(--accent-up);
    color: var(--accent-up);
    box-shadow: 2px 2px 0 var(--accent-up);
}

.action-btn.action-toggle:hover {
    background: rgba(245, 127, 23, 0.1);
    border-color: #f57f17;
    color: #f57f17;
    box-shadow: 2px 2px 0 #f57f17;
}

.action-btn.action-delete:hover {
    background: rgba(213, 0, 0, 0.08);
    border-color: #d50000;
    color: #d50000;
    box-shadow: 2px 2px 0 #d50000;
}

/* ----- Responsivo ----- */
@media (max-width: 900px) {
    .sponsor-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .sponsor-row-num {
        position: absolute;
        top: 10px;
        right: 14px;
    }
    .sponsor-row-img {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .sponsor-row-actions {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .action-btn {
        min-width: auto;
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sponsors-stats {
        grid-template-columns: 1fr 1fr;
    }
    .stat-card .stat-num { font-size: 18px; }
    .action-btn .action-label { display: none; }
    .action-btn { min-width: 40px; padding: 8px; }
}

/* ----- (CSS antigo dos cards mantido como fallback, não é mais usado) ----- */

.sponsor-info-box {
    background: linear-gradient(135deg, rgba(0,134,125,0.06), rgba(0,134,125,0.02));
    border: 1px solid var(--accent-up);
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 4px;
    border-left-width: 4px;
}

.sponsor-info-box .info-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--accent-up);
    margin-bottom: 10px;
}

.sponsor-info-box .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px 20px;
    font-family: 'Source Serif 4', serif;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 8px;
}

.sponsor-info-box .info-grid strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-right: 6px;
    font-weight: 500;
}

.sponsor-info-box .info-tip {
    font-family: 'Source Serif 4', serif;
    font-size: 13px;
    color: var(--ink-muted);
    font-style: italic;
    padding-top: 8px;
    border-top: 1px dotted var(--accent-up);
    margin-top: 6px;
}

.sponsor-info-box .info-tip em {
    color: var(--accent-down);
    font-style: italic;
    font-weight: 600;
}

/* Grid de cards */
.sponsors-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sponsor-card {
    background: var(--paper);
    border: 1px solid var(--ink);
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--ink);
}

.sponsor-card .sponsor-img {
    width: 100%;
    aspect-ratio: 3.5 / 1;
    background: var(--paper-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--ink);
    position: relative;
}

.sponsor-card .sponsor-img.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 13px;
}

.sponsor-card .status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 9px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 2px;
}

.sponsor-card .status-badge.ativo {
    background: var(--accent-up);
    color: var(--paper);
}
.sponsor-card .status-badge.pendente {
    background: var(--gold);
    color: var(--ink);
}
.sponsor-card .status-badge.inativo {
    background: var(--ink-muted);
    color: var(--paper);
}

.sponsor-card .sponsor-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sponsor-card .sponsor-client {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 4px;
}

.sponsor-card .sponsor-card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 6px;
}

.sponsor-card .sponsor-meta {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dotted var(--ink-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-muted);
}

.sponsor-card .sponsor-meta .amount {
    color: var(--accent-up);
    font-weight: 600;
    font-size: 12px;
}

.sponsor-card .edit-btn {
    background: transparent;
    border: none;
    color: var(--ink);
    cursor: pointer;
    padding: 4px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sponsor-card .edit-btn:hover { color: var(--accent-down); }

/* Área de upload de imagem */
.image-upload-area {
    margin-bottom: 4px;
}

.image-preview {
    width: 100%;
    aspect-ratio: 3.5 / 1;
    background: var(--paper-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px dashed var(--ink-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    overflow: hidden;
}

.image-preview:hover {
    border-color: var(--accent-up);
    background-color: rgba(0,134,125,0.04);
}

.image-preview.has-image {
    border-style: solid;
    border-color: var(--ink);
}

.image-preview .upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--ink-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.image-preview.has-image .upload-placeholder { display: none; }

/* Responsivo do admin */
@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--ink);
        max-height: 240px;
    }
    .admin-content { padding: 20px 18px; }
    .admin-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .admin-section-header h2 { font-size: 26px; }
    .kanban { grid-template-columns: 1fr; }
    .cash-summary { grid-template-columns: 1fr; }
    .cash-table-header { display: none; }
    .cash-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px 16px;
    }
}



/* Tablet e abaixo: empilha logo e carrossel */
@media (max-width: 980px) {
    .title-block {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 14px 0;
    }
    .title-left { text-align: center; }
    h1.logo { align-items: center; }
}

/* Mobile (até 720px): ajustes de container e tipografia */
@media (max-width: 720px) {
    .container { padding: 0 18px; }

    /* Top bar empilha verticalmente */
    .top-bar {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: center;
        font-size: 9px;
    }
    .top-bar .left, .top-bar .right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Subline empilha */
    .subline {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
        padding: 12px 0;
    }
    .subline .right { text-align: center; }
    .subline .center { font-size: 13px; }

    /* Status bar */
    .status-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 14px 0;
        margin-bottom: 24px;
    }

    /* Ticker */
    .ticker-bar { height: 32px; }
    .ticker-label { font-size: 8px; padding: 0 10px; letter-spacing: 0.15em; }
    .ticker-item { font-size: 11px; gap: 6px; }
    .ticker-track { gap: 24px; padding-left: 24px; }

    /* Footer */
    footer {
        margin-left: -18px;
        margin-right: -18px;
        padding: 28px 18px 24px;
    }
    footer .inner {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
        font-size: 9px;
    }
    footer .inner .right { text-align: center; }
    footer .inner .center { font-size: 12px; }

    /* Carrossel de patrocínio: ajusta proporção */
    .sponsor-area { aspect-ratio: 16 / 6; }
    .sponsor-slide { padding: 16px 18px 22px; }
    .sponsor-slide .sponsor-headline { font-size: 17px; }
    .sponsor-slide .sponsor-sub { font-size: 11px; margin-bottom: 6px; }
    .sponsor-slide .sponsor-cta { padding: 6px 12px; font-size: 9px; }

    /* Botão refresh */
    #refresh-btn { padding: 6px 14px; font-size: 9px; }

    /* Logo em mobile */
    h1.logo .logo-prefix { font-size: 18px; }
    h1.logo .logo-main { font-size: 56px; }

    /* H-date mobile */
    .h-date { font-size: 9px; padding: 2px 6px; margin-top: 8px; }
    .h-date-inline { font-size: 9px; }
    .today-badge { font-size: 8px; padding: 1px 5px; }
}

/* Mobile pequeno (até 420px): ajustes finais */
@media (max-width: 420px) {
    .container { padding: 0 14px; }

    h1.logo .logo-prefix { font-size: 16px; }
    h1.logo .logo-main { font-size: 48px; }

    .title-block .super { font-size: 13px; }

    .sponsor-area { aspect-ratio: 16 / 7; }
    .sponsor-slide .sponsor-headline { font-size: 15px; }
    .sponsor-slide .sponsor-tag { font-size: 8px; padding: 2px 6px; }

    .top-bar .left, .top-bar .right { gap: 6px; }
    .top-bar { font-size: 8px; }
}

/* ══════════════════════════════════════════════
   CONTAS A RECEBER — estilo Monday.com
══════════════════════════════════════════════ */
.cr-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.cr-filters { display:flex; gap:6px; flex-wrap:wrap; }
.cr-filter-btn {
    padding:5px 14px; border-radius:20px; border:1.5px solid #e0e0e0;
    background:#fff; font-size:12px; font-weight:600; cursor:pointer;
    color:#555; font-family:'Barlow','Inter',sans-serif; transition:.2s;
}
.cr-filter-btn:hover { border-color:#9333ea; color:#9333ea; }
.cr-filter-btn.active { background:#9333ea; border-color:#9333ea; color:#fff; }
.cr-add-btn {
    padding:8px 18px; border-radius:6px; border:none;
    background: linear-gradient(135deg,#1a56db,#9333ea);
    color:#fff; font-weight:700; font-size:13px; cursor:pointer;
    font-family:'Barlow','Inter',sans-serif; display:flex; align-items:center; gap:6px;
}
.cr-add-btn:hover { opacity:.9; }
.cr-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:20px; }
.cr-card {
    border-radius:10px; padding:16px 18px; border-top:3px solid #ccc;
    background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.07);
}
.cr-card.total   { border-color:#9333ea; }
.cr-card.pendente{ border-color:#f59e0b; }
.cr-card.vencido { border-color:#ef4444; }
.cr-card.recebido{ border-color:#22c55e; }
.cr-card .cr-label { font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#888; margin-bottom:8px; font-family:'Barlow','Inter',sans-serif; }
.cr-card .cr-value { font-size:22px; font-weight:900; font-family:'Barlow Condensed','Barlow',sans-serif; }
.cr-card.total    .cr-value { color:#9333ea; }
.cr-card.pendente .cr-value { color:#f59e0b; }
.cr-card.vencido  .cr-value { color:#ef4444; }
.cr-card.recebido .cr-value { color:#22c55e; }
.cr-card .cr-sub { font-size:11px; color:#aaa; margin-top:4px; font-family:'Inter',sans-serif; }

/* Board/tabela */
.cr-board { border-radius:10px; overflow:hidden; border:1px solid #eee; background:#fff; }
.cr-board-header {
    display:grid;
    grid-template-columns: 2fr 1.5fr 100px 110px 120px 80px;
    background:#f8f8fc; border-bottom:2px solid #eee;
    padding:10px 16px; gap:8px;
}
.cr-board-header span {
    font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
    color:#888; font-family:'Barlow','Inter',sans-serif;
}
.cr-row {
    display:grid;
    grid-template-columns: 2fr 1.5fr 100px 110px 120px 80px;
    padding:12px 16px; gap:8px; border-bottom:1px solid #f0f0f0;
    align-items:center; transition:background .15s;
}
.cr-row:hover { background:#f9f5ff; }
.cr-row:last-child { border-bottom:none; }
.cr-row .cr-cliente { font-weight:700; font-size:14px; color:#1a1a2e; font-family:'Barlow','Inter',sans-serif; }
.cr-row .cr-desc { font-size:13px; color:#666; font-family:'Inter',sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cr-row .cr-valor { font-weight:800; font-size:14px; color:#1a1a2e; font-family:'Barlow Condensed','Barlow',sans-serif; }
.cr-row .cr-venc { font-size:12px; color:#555; font-family:'Inter',sans-serif; }
.cr-row .cr-venc.vencido-date { color:#ef4444; font-weight:700; }
.cr-status-badge {
    display:inline-flex; align-items:center; gap:5px;
    padding:4px 10px; border-radius:20px; font-size:11px; font-weight:700;
    letter-spacing:.04em; font-family:'Barlow','Inter',sans-serif;
}
.cr-status-badge.pendente { background:#fef3c7; color:#92400e; }
.cr-status-badge.recebido { background:#dcfce7; color:#166534; }
.cr-status-badge.vencido  { background:#fee2e2; color:#991b1b; }
.cr-status-badge.parcial  { background:#dbeafe; color:#1e40af; }
.cr-actions { display:flex; gap:6px; justify-content:flex-end; }
.cr-action-btn {
    width:28px; height:28px; border-radius:6px; border:1px solid #eee;
    background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;
    color:#888; transition:.2s;
}
.cr-action-btn:hover { background:#f3f0ff; color:#9333ea; border-color:#9333ea; }
.cr-empty {
    padding:48px; text-align:center; color:#aaa;
    font-family:'Inter',sans-serif; font-size:14px;
}
.cr-empty svg { width:48px; height:48px; stroke:#ddd; margin-bottom:12px; }

/* ── Modais CR/CP — estilo Monday.com ─────────────────────────── */
#modal-cr, #modal-cp {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.10) !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: min(540px, calc(100% - 24px)) !important;
}
.monday-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 18px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.monday-modal-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.monday-modal-icon.green  { background: #dcfce7; }
.monday-modal-icon.red    { background: #fee2e2; }
.monday-modal-title-wrap { flex: 1; }
.monday-modal-super {
    font-size: 10px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: #9ca3af;
    font-family: 'Inter', sans-serif; margin-bottom: 2px;
}
.monday-modal-title {
    font-size: 18px; font-weight: 800; color: #111827;
    font-family: 'Barlow', 'Inter', sans-serif; line-height: 1.1;
}
.monday-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 30px; height: 30px; border-radius: 6px;
    background: transparent; border: none; cursor: pointer;
    color: #9ca3af; font-size: 18px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.monday-modal-close:hover { background: #f3f4f6; color: #374151; }

.monday-modal-body { padding: 20px 24px 24px; }

.cr-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cr-modal-full { grid-column: 1 / -1; }

/* Fields */
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-label {
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: #6b7280;
    font-family: 'Inter', sans-serif;
}
.field-label .req { color: #ef4444; margin-left: 2px; }
.field-input {
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px; font-weight: 500; color: #111827;
    font-family: 'Inter', sans-serif;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
}
.field-input:focus {
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147,51,234,.12);
}
#modal-cp .field-input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
select.field-input { cursor: pointer; padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}

/* Caixa toggle box */
.monday-caixa-box {
    display: flex; align-items: flex-start; gap: 10px;
    background: #f9fafb; border: 1.5px solid #e5e7eb;
    border-radius: 10px; padding: 12px 14px;
    cursor: pointer; transition: border-color .15s, background .15s;
}
.monday-caixa-box:hover { border-color: #9333ea; background: #faf5ff; }
#modal-cp .monday-caixa-box:hover { border-color: #ef4444; background: #fff1f2; }
.monday-caixa-box input[type=checkbox] {
    width: 18px; height: 18px; margin-top: 1px;
    accent-color: #9333ea; flex-shrink: 0; cursor: pointer;
}
#modal-cp .monday-caixa-box input[type=checkbox] { accent-color: #ef4444; }
.monday-caixa-text { flex: 1; }
.monday-caixa-text strong { display: block; font-size: 13px; font-weight: 700; color: #374151; font-family: 'Inter', sans-serif; }
.monday-caixa-text span { display: block; font-size: 11px; color: #9ca3af; margin-top: 2px; font-family: 'Inter', sans-serif; }

/* Message */
.monday-msg {
    display: none; margin-top: 14px; padding: 10px 14px;
    border-radius: 8px; font-size: 13px; font-weight: 600;
    font-family: 'Inter', sans-serif; border: 1.5px solid;
}
.monday-msg.ok   { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.monday-msg.erro { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* Footer */
.monday-modal-footer {
    display: flex; gap: 10px; justify-content: flex-end;
    margin-top: 22px; padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}
.monday-btn {
    height: 38px; padding: 0 20px; border-radius: 8px;
    font-size: 13px; font-weight: 700; font-family: 'Barlow', 'Inter', sans-serif;
    border: 1.5px solid; cursor: pointer; letter-spacing: .02em;
    transition: opacity .15s, transform .1s;
    display: flex; align-items: center; gap: 6px;
}
.monday-btn:hover { opacity: .88; transform: translateY(-1px); }
.monday-btn.cancel { background: #fff; border-color: #e5e7eb; color: #6b7280; }
.monday-btn.save-green { background: linear-gradient(135deg,#22c55e,#16a34a); border-color: transparent; color: #fff; }
.monday-btn.save-red   { background: linear-gradient(135deg,#ef4444,#dc2626); border-color: transparent; color: #fff; }
/* ── Botão EFETIVADO no painel de evento ────────────────────── */
.event-panel-actions .btn-efetivar {
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none; color: #fff;
    padding: 10px 14px; border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
}
.event-panel-actions .btn-efetivar:hover { opacity: .88; transform: translateY(-1px); }

/* ── Seção Histórico de Efetivados ──────────────────────────── */
.hist-filters {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 12px; margin-bottom: 16px;
    padding: 14px 16px; background: #f9fafb;
    border: 1px solid #e5e7eb; border-radius: 10px;
}
.hist-period-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.hist-period-btn {
    height: 32px; padding: 0 14px; border-radius: 6px;
    border: 1.5px solid #e5e7eb; background: #fff;
    font-size: 12px; font-weight: 600; color: #6b7280;
    font-family: 'Inter', sans-serif; cursor: pointer;
    transition: all .15s;
}
.hist-period-btn:hover  { border-color: #9333ea; color: #9333ea; }
.hist-period-btn.active { background: #9333ea; border-color: #9333ea; color: #fff; }
.hist-custom-range { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hist-date-group { display: flex; align-items: center; gap: 6px; }
.hist-date-group label {
    font-size: 11px; font-weight: 700; color: #6b7280;
    font-family: 'Inter', sans-serif; text-transform: uppercase;
}
.hist-date-group input[type=date] {
    height: 32px; padding: 0 10px;
    border: 1.5px solid #e5e7eb; border-radius: 6px;
    font-size: 13px; font-family: 'Inter', sans-serif;
    color: #374151; background: #fff; outline: none;
}
.hist-date-group input[type=date]:focus { border-color: #9333ea; box-shadow: 0 0 0 3px rgba(147,51,234,.12); }
.hist-search-wrap {
    display: flex; align-items: center; gap: 8px;
    flex: 1; min-width: 200px;
    background: #fff; border: 1.5px solid #e5e7eb;
    border-radius: 6px; padding: 0 12px; height: 32px;
}
.hist-search-wrap svg { flex-shrink: 0; color: #9ca3af; }
.hist-search-wrap input {
    flex: 1; border: none; outline: none;
    font-size: 13px; font-family: 'Inter', sans-serif;
    color: #374151; background: transparent;
}
.hist-count {
    font-size: 12px; font-weight: 600; color: #9ca3af;
    font-family: 'Inter', sans-serif; margin-bottom: 10px;
    letter-spacing: .04em;
}
.hist-table-wrap {
    border-radius: 10px; overflow: hidden;
    border: 1px solid #e5e7eb; background: #fff;
    overflow-x: auto;
}
.hist-table { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; }
.hist-table thead th {
    padding: 11px 14px; text-align: left;
    font-size: 10px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: #6b7280;
    background: #f9fafb; border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}
.hist-table tbody tr { border-bottom: 1px solid #f3f4f6; transition: background .12s; }
.hist-table tbody tr:last-child { border-bottom: none; }
.hist-table tbody tr:hover { background: #faf5ff; }
.hist-table td { padding: 10px 14px; font-size: 13px; color: #374151; vertical-align: top; }
.hist-table td.hist-date  { font-weight: 700; color: #111827; white-space: nowrap; }
.hist-table td.hist-time  { color: #6b7280; white-space: nowrap; font-size: 12px; }
.hist-table td.hist-title { font-weight: 700; color: #1a1a2e; min-width: 160px; }
.hist-table td.hist-local { color: #6b7280; font-size: 12px; white-space: nowrap; }
.hist-table td.hist-desc  { color: #6b7280; font-size: 12px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 999px;
    font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    white-space: nowrap;
}
.hist-badge.efetivado { background: #dcfce7; color: #15803d; }
.hist-badge.concluido { background: #dbeafe; color: #1e40af; }
.hist-empty { padding: 40px; text-align: center; color: #9ca3af; font-size: 14px; }
@media (max-width: 700px) {
    .hist-table th:nth-child(5), .hist-table td:nth-child(5),
    .hist-table th:nth-child(4), .hist-table td:nth-child(4) { display: none; }
}

/* ── Filtro de categoria na barra de editorias ── */
.edit-cat-active {
    font-weight: 800 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}
