/* ========================================================================
   MedCert — Sistema de design "playful minimal"
   Off-white quente, tipografia massiva, um acento vivo, MUITA animacao.
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
    --bg:           #F6F5F2;
    --bg-2:         #EDEAE3;
    --surface:      #FFFFFF;
    --ink:          #0E0F14;
    --ink-2:        #4A4B55;
    --ink-3:        #888894;
    --line:         #E1DED5;
    --line-strong:  #0E0F14;

    /* Acento principal — azul vivo */
    --pop:          #0070E1;   /* uso como fundo de CTAs, status, brand-mark */
    --pop-deep:     #0058B0;   /* uso em hover de texto e elementos medio-claros */
    --pop-text:     #004B96;   /* uso como TEXTO sobre fundo claro (contraste 7.5:1) */
    --on-pop:       #FFFFFF;   /* texto sobre fundo azul (contraste 4.5:1 AA) */

    /* Acentos secundarios decorativos */
    --hot:          #FF4D2E;
    --sky:          #6B8AFF;
    --blush:        #FFB7C8;
    --sun:          #FFD23F;

    --ok:           #16A34A;
    --bad:          #DC2626;

    --f-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --f-body:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --f-mono:    'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;

    --r-sm:  10px;
    --r-md:  18px;
    --r-lg:  28px;
    --r-xl:  40px;

    --max-w: 1280px;
    --gutter: 1.5rem;

    --t-fast: .2s;
    --t-mid:  .35s;
    --t-slow: .6s;
    --ease:   cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-body);
    position: relative;
    overflow-x: hidden;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* Cursor custom (blob verde) so nas paginas publicas — admin usa cursor do sistema */
@media (pointer: fine) {
    body:not(.admin) { cursor: none; }
    body:not(.admin) a,
    body:not(.admin) button,
    body:not(.admin) input,
    body:not(.admin) select,
    body:not(.admin) textarea,
    body:not(.admin) label { cursor: none; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--pop); color: var(--on-pop); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ===================== Tipografia ===================== */
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); margin: 0 0 .5em; letter-spacing: -.025em; line-height: 1; font-weight: 700; }
h1 { font-size: clamp(3rem, 10vw, 8.5rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -.03em; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-2); max-width: 60ch; }
.lead { font-size: 1.18rem; line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--f-mono); font-size: .82rem;
    font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink);
    padding: .5rem 1rem;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 99px;
}
.eyebrow .dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--pop);
    box-shadow: 0 0 0 3px rgba(0,112,225,.15);
    animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.mono { font-family: var(--f-mono); }

/* ===================== Cursor custom ===================== */
.cursor {
    position: fixed; top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
    transition: width var(--t-mid) var(--ease), height var(--t-mid) var(--ease),
                background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease),
                opacity var(--t-mid);
    mix-blend-mode: difference;
    display: none;
}
.cursor.show { display: block; }
.cursor.over-link { background: var(--pop); border-color: var(--pop); width: 64px; height: 64px; mix-blend-mode: normal; }
.cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate3d(-50%, -50%, 0);
    display: none;
}
.cursor-dot.show { display: block; }
@media (pointer: coarse) {
    .cursor, .cursor-dot { display: none !important; }
}

/* ===================== Topbar ===================== */
.topbar {
    position: sticky; top: .75rem; z-index: 50;
    margin: .75rem auto 0;
    max-width: 1280px;
    padding: 0 var(--gutter);
}
.topbar-inner {
    max-width: 1280px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    /* padding-left = 1.75rem garante que brand alinhe com conteudo (gutter 1.5 + 1.75 = 3.25rem == container padding) */
    padding: .35rem .4rem .35rem 1.75rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border: 1px solid var(--line);
    border-radius: 99px;
}

.brand {
    display: inline-flex; align-items: baseline; gap: .05rem;
    font-family: var(--f-display); font-weight: 800;
    font-size: 1.1rem; color: var(--ink); letter-spacing: -.04em;
    line-height: 1;
}
.brand-plus {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.05em; height: 1.05em;
    background: var(--pop);
    color: var(--on-pop);
    border-radius: 6px;
    margin-left: .12em;
    font-size: .9em;
    font-weight: 700;
    transform: rotate(0deg);
    transition: transform .4s var(--ease), background .25s;
    align-self: center;
    line-height: 0;
}
.brand:hover .brand-plus { transform: rotate(90deg); background: var(--ink); color: var(--pop); }

/* Hero plus pulse decorativo */
@keyframes plusSpin {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.main-nav {
    display: flex; align-items: center; justify-content: center;
    gap: .15rem;
    font-size: .82rem;
    justify-self: center;
}
.brand { justify-self: start; }
.nav-actions { justify-self: end; }
.main-nav a {
    color: var(--ink-2);
    padding: .4rem .8rem;
    border-radius: 99px;
    font-weight: 500;
    position: relative;
    transition: color var(--t-fast), background var(--t-fast);
}
.main-nav a:hover { color: var(--ink); background: var(--bg-2); }

/* Dropdown do menu principal */
.nav-dd { position: relative; }
.nav-dd-trigger {
    display: inline-flex; align-items: center; gap: .3rem;
    color: var(--ink-2);
    padding: .4rem .8rem;
    border-radius: 99px;
    font-weight: 500; font-size: .82rem;
    background: transparent; border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: color .15s, background .15s;
}
.nav-dd-trigger:hover,
.nav-dd:hover .nav-dd-trigger,
.nav-dd:focus-within .nav-dd-trigger {
    color: var(--ink); background: var(--bg-2);
}
.nav-chev {
    transition: transform .2s var(--ease);
    opacity: .6;
}
.nav-dd:hover .nav-chev,
.nav-dd:focus-within .nav-chev { transform: rotate(180deg); opacity: 1; }

.nav-dd-menu {
    position: absolute; top: calc(100% + .35rem); left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .4rem;
    box-shadow: 0 12px 32px rgba(14,15,20,.08);
    opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    z-index: 60;
    display: flex; flex-direction: column; gap: .1rem;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dd-menu a {
    padding: .55rem .85rem !important;
    border-radius: 10px !important;
    color: var(--ink-2) !important;
    font-size: .9rem;
    white-space: nowrap;
}
.nav-dd-menu a:hover {
    background: var(--bg-2) !important;
    color: var(--pop) !important;
}

/* ============================================================
   MEGAMENU — dropdowns ricos com cards (Extensao / Pesquisa)
============================================================ */
.nav-dd-menu.mega {
    min-width: 480px;
    padding: 14px;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(11, 20, 40, .14);
    border-color: rgba(11, 20, 40, .08);
}
.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.mega-grid.one-col { grid-template-columns: 1fr; }

.mega-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 14px !important;
    background: #FFFFFF;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .15s;
    white-space: normal !important;
    position: relative;
}
.mega-card:hover {
    background: #F6F9FE !important;
    border-color: rgba(0, 112, 225, .2);
    transform: translateY(-1px);
}
.mega-card.featured {
    background: linear-gradient(135deg, rgba(0, 112, 225, .04), rgba(108, 79, 224, .04));
    border-color: rgba(0, 112, 225, .15);
}

.mega-card-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--pop-text);
    background: rgba(0, 112, 225, .1);
}
.mega-card-ico.tone-blue   { color: var(--pop-text); background: rgba(0, 112, 225, .12); }
.mega-card-ico.tone-purple { color: #5538C8;        background: rgba(108, 79, 224, .12); }
.mega-card-ico.tone-green  { color: #0E7E3F;        background: rgba(24, 169, 87, .14); }
.mega-card-ico.tone-amber  { color: #8A5B00;        background: rgba(255, 184, 28, .18); }

.mega-card-body { flex: 1; min-width: 0; }
.mega-card-title {
    font-weight: 600 !important;
    color: var(--ink) !important;
    font-size: .98rem !important;
    line-height: 1.2;
    margin-bottom: 3px;
}
.mega-card:hover .mega-card-title { color: var(--pop-text) !important; }
.mega-card-desc {
    color: var(--ink-2) !important;
    font-size: .82rem;
    line-height: 1.4;
    font-weight: 400;
}

.mega-card-arrow {
    color: var(--ink-2);
    align-self: center;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s, transform .2s, color .2s;
}
.mega-card:hover .mega-card-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--pop);
}

.mega-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 6px 4px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
}
.mega-footer-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--pop-text) !important;
    font-weight: 600 !important;
    font-size: .85rem !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
}
.mega-footer-link:hover { color: var(--pop) !important; background: rgba(0, 112, 225, .08) !important; }
.mega-footer-link .arrow { color: currentColor; }

@media (max-width: 720px) {
    .nav-dd-menu.mega { min-width: 280px; }
    .mega-grid { grid-template-columns: 1fr; }
}

.nav-actions { display: inline-flex; align-items: center; gap: .5rem; }

/* ===================== Botoes ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .75rem 1.4rem;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 99px;
    font-family: var(--f-body); font-weight: 600; font-size: .92rem;
    letter-spacing: -.005em;
    text-decoration: none;
    transition: transform var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
    will-change: transform;
}
.btn:hover { background: var(--bg-2); }
.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--ink); color: var(--bg);
    border-color: var(--ink);
}
.btn-primary:hover { background: #1d1f29; }

.btn-pop {
    background: var(--pop); color: var(--on-pop);
    border-color: var(--pop);
    box-shadow: 0 0 0 0 rgba(0,112,225,0);
}
.btn-pop:hover { background: var(--pop); box-shadow: 0 0 0 8px rgba(0,112,225,.25); }

.btn-ghost { background: transparent; }
.btn-danger { background: var(--bad); color: #fff; border-color: var(--bad); }

.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn-xl { padding: 1.25rem 2.25rem; font-size: 1.1rem; border-radius: 99px; }
.btn-block { width: 100%; }
/* .arrow funciona em qualquer contexto (botoes, back-links, listas, etc) */
.arrow { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.arrow-up { transform: rotate(-45deg); }
.btn:hover .arrow-up { transform: rotate(-45deg) translateX(4px); }

.link-button { background: none; border: 0; padding: 0; cursor: pointer; }
.inline-form { display: inline-flex; }

.tlink {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--ink); font-weight: 600;
    border-bottom: 1.5px solid var(--ink);
    padding-bottom: 2px;
    transition: color var(--t-fast), border-color var(--t-fast), gap var(--t-fast);
}
.tlink:hover { color: var(--pop-deep); border-color: var(--pop-deep); gap: .75rem; }

/* Magnetic effect placeholder (JS adiciona transform) */
.magnetic { display: inline-flex; transition: transform var(--t-mid) var(--ease); }

/* ===================== Alerts ===================== */
.alert {
    padding: .9rem 1.1rem;
    border-radius: var(--r-md);
    margin-bottom: 1rem;
    font-size: .93rem;
    display: flex; align-items: center; gap: .75rem;
}
.alert-success { background: #DCFCE7; color: #14532D; }
.alert-error   { background: #FEE2E2; color: #7F1D1D; }
.alert-info    { background: var(--bg-2); color: var(--ink); }

/* ===================== Hero =====================
   Puxado pra cima com margin-top negativo: a hero estende-se atras do
   topbar floating (que tem backdrop-blur e flutua sobre o conteudo).
   O padding-top !important garante que conteudo nao colida com topbar
   mesmo em views que sobrescrevem padding inline. */
.hero {
    padding: 9rem 0 4rem;
    padding-top: 9rem !important;
    margin-top: -5rem;
    position: relative;
    overflow: hidden;
}
.hero > .container { max-width: 1480px; padding-left: 3rem; padding-right: 3rem; position: relative; z-index: 1; }
@media (max-width: 720px) {
    .hero > .container { padding-left: 1.25rem; padding-right: 1.25rem; }
    .hero { padding-top: 7rem !important; margin-top: -3.5rem; }
}

/* Manchas decorativas animadas (blobs) */
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: .55;
    pointer-events: none;
    z-index: 0;
}
.blob-1 { width: 320px; height: 320px; background: var(--pop); top: -60px; right: 10%; animation: drift1 14s ease-in-out infinite; }
.blob-2 { width: 240px; height: 240px; background: var(--blush); top: 30%; left: -40px; animation: drift2 18s ease-in-out infinite; }
.blob-3 { width: 200px; height: 200px; background: var(--sky); bottom: -30px; right: 30%; animation: drift3 16s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(-30px,40px) scale(1.1);} }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(40px,-30px) scale(.9);} }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(-50px,-40px) scale(1.05);} }

.hero-inner { position: relative; z-index: 1; }
.hero-tag-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-tag-row .right { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    line-height: 1;
    margin: 0 0 2rem;
    letter-spacing: -.03em;
    font-weight: 600;
}

/* Typer — palavras verdes com efeito digitar/apagar (JS-driven) */
/* Cor identica ao "+" da logo (var(--pop)) */
.typer {
    color: var(--pop);
    font-style: italic;
    font-weight: 600;
    display: inline-block;
    min-width: 0;
    white-space: nowrap;
    /* Stroke proporcional ao tamanho da fonte (escala bem em qualquer viewport) */
    -webkit-text-stroke: 0.016em var(--ink);
    paint-order: stroke fill;
}
.typer::after {
    content: "";
    display: inline-block;
    width: .12em;
    height: .85em;
    background: var(--pop);
    border: 0.04em solid var(--ink);
    margin-left: .1em;
    vertical-align: -.05em;
    animation: caret 1s steps(2, jump-none) infinite;
}
@keyframes caret {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

/* Hero bottom — stats em pill */
.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem; margin-top: 5rem;
}
.hero-stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    transition: transform var(--t-mid) var(--ease), border-color var(--t-mid);
}
.hero-stat:hover { transform: translateY(-4px); border-color: var(--ink); }
.hero-stat .k {
    font-family: var(--f-mono); font-size: .72rem;
    color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-stat .v {
    font-family: var(--f-display); font-size: clamp(2.5rem, 4vw, 3.6rem);
    font-weight: 800; line-height: 1; letter-spacing: -.04em;
    display: flex; align-items: baseline; gap: .25rem;
}
.hero-stat .v .suffix { font-size: .5em; color: var(--ink-2); }
.hero-stat .l { margin-top: .65rem; color: var(--ink-2); font-size: .9rem; }

/* ===================== Marquee ===================== */
.marquee {
    background: var(--ink); color: var(--bg);
    padding: 1.2rem 0; margin: 0;
    overflow: hidden;
    border-radius: var(--r-xl);
    margin: 4rem var(--gutter);
}
@media (min-width: 1280px) {
    .marquee { margin-left: auto; margin-right: auto; max-width: var(--max-w); }
}
.marquee-track {
    display: flex; gap: 3rem;
    white-space: nowrap;
    font-family: var(--f-display); font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 600;
    animation: scroll 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 1.5rem; }
.marquee-track .star { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--pop); }
@keyframes scroll { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ===================== Section / heads ===================== */
.section { padding: 7rem 0; position: relative; }
.section-tight { padding: 4rem 0; }
.section-head { margin-bottom: 4rem; max-width: 800px; }
.section-head h2 { margin-top: 1rem; }
.section-bg-2 { background: var(--bg-2); }

/* ===================== Bento grid (features) ===================== */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1rem;
}
.bento .cell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    position: relative; overflow: hidden;
    transition: transform var(--t-mid) var(--ease), border-color var(--t-mid);
    display: flex; flex-direction: column; justify-content: space-between;
}
.bento .cell:hover { transform: translateY(-4px); border-color: var(--ink); }
.bento .cell-2col { grid-column: span 2; }
.bento .cell-2row { grid-row: span 2; }
.bento .cell h3 { font-size: 1.65rem; margin: 0 0 .65rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
.bento .cell p  { font-size: .98rem; margin: 0; line-height: 1.5; }

.bento .cell.pop { background: var(--pop); border-color: var(--pop); color: #fff; position: relative; overflow: hidden; }
.bento .cell.pop p { color: rgba(255,255,255,.85); }
.bento .cell.pop h3 { color: #fff; }
.bento .cell.ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bento .cell.ink p { color: rgba(246,245,242,.7); }
.bento .cell.ink h3 { color: var(--pop); }
.bento .cell.blush { background: var(--blush); border-color: var(--blush); }
.bento .cell.sky { background: var(--sky); border-color: var(--sky); color: #fff; }
.bento .cell.sky p { color: rgba(255,255,255,.8); }
.bento .cell.sky h3 { color: #fff; }
/* variante: branco com titulo azul */
.bento .cell.white-pop { background: var(--surface); border-color: var(--line); }
.bento .cell.white-pop h3 { color: var(--pop); }
/* variante: cinza claro */
.bento .cell.grey { background: #F4F5F8; border-color: #E8EAF1; }

/* Icone circular no fim da celula */
.cell-ico-circle {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 1.5rem; flex-shrink: 0;
    background: rgba(255,255,255,.18); color: #fff;
}
.cell-ico-circle svg { width: 22px; height: 22px; }
.bento .cell:not(.pop):not(.sky):not(.ink) .cell-ico-circle {
    background: var(--bg-2); color: var(--pop);
}
.bento .cell.grey .cell-ico-circle {
    background: rgba(0,0,0,.06); color: var(--ink-2);
}

/* Onda decorativa nos cards azul/escuros */
.cell-wave {
    position: absolute; bottom: -10px; right: -20px;
    width: 70%; max-width: 320px; height: auto;
    pointer-events: none; opacity: .35;
    color: rgba(255,255,255,.5);
}
.bento .cell.white-pop .cell-wave,
.bento .cell:not(.pop):not(.sky):not(.ink):not(.grey) .cell-wave {
    color: var(--pop); opacity: .08;
}

.bento .cell .ico {
    width: 32px; height: 32px;
    color: currentColor;
    margin-bottom: 1rem;
}
.bento .cell .num {
    font-family: var(--f-mono); font-size: .72rem;
    color: inherit; opacity: .55;
    letter-spacing: .14em; text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.bento .cell .big {
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: .9; letter-spacing: -.04em;
    margin: 0;
}
.bento .cell .deco {
    position: absolute; right: -20px; bottom: -20px;
    width: 140px; height: 140px;
    opacity: .35;
    animation: spin 24s linear infinite;
}
.bento .cell.pop .deco { opacity: .15; color: var(--on-pop); }
@keyframes spin { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }

/* ===================== Course cards (com hover glow) ===================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.course-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    transition: transform var(--t-mid) var(--ease), border-color var(--t-mid);
}
.course-card::before {
    content: ""; position: absolute; inset: -2px;
    background: linear-gradient(135deg, var(--pop), var(--sky));
    border-radius: var(--r-lg);
    opacity: 0; z-index: -1;
    transition: opacity var(--t-mid);
}
.course-card:hover { transform: translateY(-6px); border-color: transparent; }
.course-card:hover::before { opacity: 1; }
.course-cover {
    aspect-ratio: 5 / 3;
    background: var(--ink);
    position: relative; overflow: hidden;
    display: flex; align-items: flex-end; padding: 1.25rem;
}
.course-cover.tone-pop   { background: var(--pop); color: var(--on-pop); }
.course-cover.tone-ink   { background: var(--ink); color: var(--bg); }
.course-cover.tone-sky   { background: var(--sky); color: #fff; }
.course-cover.tone-blush { background: var(--blush); color: var(--ink); }
.course-cover.tone-hot   { background: var(--hot); color: #fff; }
.course-cover.tone-sun   { background: var(--sun); color: var(--ink); }
.course-cover .cover-num {
    font-family: var(--f-mono); font-size: .72rem;
    opacity: .85; letter-spacing: .14em; text-transform: uppercase;
}
.course-cover .cover-blob {
    position: absolute; right: -40px; top: -40px;
    width: 180px; height: 180px;
    border-radius: 50%; background: currentColor; opacity: .15;
    transition: transform var(--t-slow) var(--ease);
}
.course-card:hover .cover-blob { transform: scale(1.4); }

/* Quando o curso tem cover_image real: usa <img> cobrindo todo o cover */
.course-cover.has-image { background: var(--ink); }
.course-cover.has-image > img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--t-slow) var(--ease);
}
.course-card:hover .course-cover.has-image > img { transform: scale(1.05); }
/* Cover-num continua visivel sobre a imagem, com leve gradiente pra contraste */
.course-cover.has-image .cover-num {
    position: relative; z-index: 1;
    background: linear-gradient(135deg, rgba(0,0,0,.5), rgba(0,0,0,0));
    padding: .25rem .55rem; border-radius: 99px;
    color: #fff; backdrop-filter: blur(4px);
}
.course-cover.has-image::after {
    /* Vinheta inferior pra cover-num e legibilidade */
    content: ""; position: absolute; inset: auto 0 0 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35));
    pointer-events: none;
}
.course-body { padding: 1.25rem 1.25rem 1.5rem; background: var(--surface); position: relative; }
.course-badge {
    display: inline-block; font-family: var(--f-mono);
    font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-3); margin-bottom: .65rem;
}
.course-title {
    font-family: var(--f-display); font-weight: 700;
    font-size: 1.15rem; line-height: 1.2; letter-spacing: -.02em;
    margin: 0 0 .85rem;
}
.course-title a { color: inherit; transition: color var(--t-fast); }
.course-card:hover .course-title a { color: var(--ink); }
.course-author { font-size: .82rem; color: var(--ink-3); margin-bottom: 1rem; }
.course-price { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.course-price strong {
    display: block;
    font-family: var(--f-display); font-weight: 700;
    font-size: 1.5rem; color: var(--ink); line-height: 1; letter-spacing: -.02em;
}
.course-price small { display: block; color: var(--ink-3); font-size: .8rem; margin-top: .25rem; }
.course-cta { margin-top: 1.25rem; }

/* ===================== Specialists ===================== */
.specialists {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.specialist {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    transition: transform var(--t-mid) var(--ease), border-color var(--t-mid);
}
.specialist:hover { transform: translateY(-4px); border-color: var(--ink); }
.specialist .ph {
    aspect-ratio: 1/1;
    background: var(--ink); color: var(--pop);
    border-radius: var(--r-md);
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 1rem; margin-bottom: 1rem;
    font-family: var(--f-display); font-size: 3.5rem; font-weight: 800; line-height: 1; letter-spacing: -.05em;
    position: relative; overflow: hidden;
}
.specialist .ph::after {
    content: ""; position: absolute; right: -20px; top: -20px;
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--pop); opacity: .2;
    transition: transform var(--t-slow) var(--ease);
}
.specialist:hover .ph::after { transform: scale(1.8); }
.specialist.alt .ph { background: var(--pop); color: var(--ink); }
.specialist.alt .ph::after { background: var(--ink); }
.specialist.alt2 .ph { background: var(--sky); color: #fff; }
.specialist.alt3 .ph { background: var(--blush); color: var(--ink); }
.specialist h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.specialist p  { font-size: .82rem; color: var(--ink-3); margin: 0; }

/* ===================== CTA grande ===================== */
.cta {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 6rem 2rem;
    text-align: center;
    margin: 4rem var(--gutter);
    position: relative; overflow: hidden;
}
@media (min-width: 1280px) {
    .cta { margin: 4rem auto; max-width: var(--max-w); }
}
.cta h2 {
    font-size: clamp(2.5rem, 7vw, 6rem); color: var(--ink);
    max-width: 16ch; margin: 0 auto 1.5rem; letter-spacing: -.04em;
    font-weight: 800;
}
.cta h2 .accent { color: var(--pop-deep); font-style: normal; }
.cta p { color: var(--ink-2); max-width: 50ch; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: .55;
}
.cta-orb-1 { width: 300px; height: 300px; background: var(--pop); top: -100px; left: -50px; animation: drift1 18s ease-in-out infinite; }
.cta-orb-2 { width: 240px; height: 240px; background: var(--blush); bottom: -80px; right: -40px; animation: drift2 22s ease-in-out infinite; }

/* ===================== Filtros ===================== */
.filters { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 3rem; }
.chip {
    padding: .55rem 1.1rem;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 99px;
    color: var(--ink-2); font-weight: 500; font-size: .9rem;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { background: var(--bg-2); color: var(--ink); }
.chip-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-on:hover { background: var(--ink); color: var(--bg); }

.filter-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: .75rem; margin-bottom: 3rem;
}
.filter-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: .85rem 1.1rem;
    position: relative;
    transition: border-color var(--t-fast);
}
.filter-item:focus-within { border-color: var(--ink); }
.filter-item label {
    display: block;
    font-family: var(--f-mono); font-size: .68rem;
    color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase;
    margin-bottom: .25rem;
}
.filter-item select {
    width: 100%; border: 0; background: transparent;
    font-size: .95rem; font-weight: 500; color: var(--ink);
    appearance: none; -webkit-appearance: none;
}

/* ===================== Footer ===================== */
.footer {
    background: var(--bg-2);
    color: var(--ink-2);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    margin: 0 var(--gutter);
    padding: 5rem 2rem 2rem;
    position: relative; overflow: hidden;
}
@media (min-width: 1280px) {
    .footer { margin: 0 auto; max-width: var(--max-w); }
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem; padding-bottom: 3rem;
    border-bottom: 1px solid var(--line);
}
.footer .brand { color: var(--ink); margin-bottom: 1rem; font-size: 1.4rem; }
.footer h4 {
    font-family: var(--f-mono); font-size: .72rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--ink-3);
    margin: 0 0 1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer a { color: var(--ink-2); transition: color var(--t-fast); }
.footer a:hover { color: var(--pop-deep); }
.footer p { color: var(--ink-2); }
.footer-bottom {
    padding-top: 1.5rem; display: grid; grid-template-columns: 1fr auto;
    font-family: var(--f-mono); font-size: .72rem;
    color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase;
}
.footer-big {
    position: absolute; bottom: -3rem; left: 50%; transform: translateX(-50%);
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(8rem, 25vw, 24rem); color: rgba(14,15,20,.05);
    letter-spacing: -.05em; line-height: 1;
    pointer-events: none; user-select: none;
}

/* ===================== Forms ===================== */
.form-stack { display: flex; flex-direction: column; gap: 1.1rem; }
.form-narrow { max-width: 460px; }
.form-stack label {
    display: flex; flex-direction: column; gap: .4rem;
    font-family: var(--f-mono); font-size: .68rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-3);
}
.form-stack label.check { flex-direction: row; align-items: center; font-family: var(--f-body); font-size: .9rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.form-stack input[type=text], .form-stack input[type=email], .form-stack input[type=password],
.form-stack input[type=number], .form-stack input[type=search], .form-stack select, .form-stack textarea {
    font-family: var(--f-body); font-size: 1rem; color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: .9rem 1.1rem;
    letter-spacing: 0; text-transform: none; font-weight: 400;
    transition: border-color var(--t-fast), background var(--t-fast);
}
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus {
    outline: none; border-color: var(--ink);
}
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row > label { flex: 1; min-width: 180px; }
.form-row > label.grow { flex: 2; }

/* Auth */
.auth-body { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }

/* Coluna esquerda: grid 3 linhas (brand topo, conteudo centro, meta rodape) */
.auth-side {
    background: var(--ink); color: var(--bg);
    padding: 2.5rem 3rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    position: relative; overflow: hidden;
    min-height: 100vh;
}
.auth-side .blob { position: absolute; z-index: 0; }
.auth-side .blob-1 { top: -100px; left: -60px; opacity: .35; }
.auth-side .blob-2 { bottom: -80px; right: -40px; opacity: .35; }
/* Apenas os filhos NAO-blob entram no fluxo do grid */
.auth-side > *:not(.blob) { position: relative; z-index: 1; }

.auth-side .brand { color: var(--bg); }

/* Conteudo principal: centralizado vertical e horizontal na linha 1fr */
.auth-side-content {
    align-self: center;
    justify-self: center;
    max-width: 38ch;
    width: 100%;
}
.auth-side h2 {
    color: var(--bg); font-size: clamp(2.2rem, 3.4vw, 3.4rem);
    line-height: .98; max-width: 14ch; font-weight: 800; letter-spacing: -.04em;
    margin: 1.25rem 0;
}
.auth-side h2 .accent { color: var(--pop); }
.auth-side p { color: rgba(246,245,242,.8); max-width: 36ch; font-size: 1.05rem; }

.auth-highlight {
    margin-top: 2.25rem; padding-top: 1.75rem;
    border-top: 1px solid rgba(246,245,242,.12);
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.auth-highlight .hi-stat .n {
    font-family: var(--f-display); font-weight: 800;
    font-size: 2rem; line-height: 1; letter-spacing: -.03em;
    color: var(--pop);
}
.auth-highlight .hi-stat .l {
    font-family: var(--f-mono); font-size: .68rem;
    color: rgba(246,245,242,.55); letter-spacing: .14em; text-transform: uppercase;
    margin-top: .5rem;
}

.auth-meta {
    align-self: end;
    font-family: var(--f-mono); font-size: .72rem;
    color: rgba(246,245,242,.5);
    letter-spacing: .14em; text-transform: uppercase;
    display: flex; justify-content: space-between; align-items: center;
}

.auth-card-wrap { display: flex; align-items: center; justify-content: center; padding: 3rem; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .brand { margin-bottom: 2rem; }

@media (max-width: 1024px) {
    .auth-side { min-height: auto; padding: 2.5rem 2rem 3rem; grid-template-rows: auto auto auto; gap: 2rem; }
}

/* Tables */
.table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md); overflow: hidden;
    margin: 1.5rem 0; font-size: .92rem;
}
.table th, .table td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--bg-2); font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 500; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-2); }

.status {
    display: inline-block; padding: .25rem .65rem;
    font-family: var(--f-mono); font-size: .68rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .12em; border-radius: 99px;
}
.status-active, .status-published { background: var(--pop); color: var(--on-pop); }
.status-pending_payment, .status-pending, .status-draft { background: var(--sun); color: var(--ink); }
.status-completed { background: var(--sky); color: #fff; }
.status-cancelled, .status-archived, .status-blocked { background: var(--hot); color: #fff; }
.status-admin   { background: var(--ink); color: var(--pop); }
.status-student { background: var(--bg-2); color: var(--ink); }

/* Headers de pagina genericos */
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.page-header h1 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); }
.back-link { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--f-mono); font-size: .75rem; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem; transition: color var(--t-fast); }
.back-link:hover { color: var(--ink); }
.empty { padding: 2.5rem; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--ink-3); }

.pagination { display: flex; justify-content: center; gap: .35rem; margin-top: 3rem; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 1rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    font-family: var(--f-mono); font-size: .85rem; font-weight: 500; color: var(--ink);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.pagination a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination .on { background: var(--ink); color: var(--pop); border-color: var(--ink); }

/* Curso detalhe */
.course-detail .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.course-info-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem;
    margin: 2rem 0;
}
.info-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 1.25rem 1.5rem;
}
.info-card .k { font-family: var(--f-mono); font-size: .68rem; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .35rem; }
.info-card .v { font-family: var(--f-display); font-size: 1.8rem; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.02em; }

.course-description {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 2rem; color: var(--ink-2);
}
.modules-list { list-style: none; padding: 0; counter-reset: m; display: flex; flex-direction: column; gap: .65rem; }
.modules-list li {
    counter-increment: m;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 1.25rem 1.5rem;
    display: grid; grid-template-columns: 60px 1fr; gap: 1rem;
    transition: border-color var(--t-fast), transform var(--t-fast) var(--ease);
}
.modules-list li:hover { border-color: var(--ink); transform: translateX(4px); }
.modules-list li::before {
    content: counter(m, decimal-leading-zero);
    font-family: var(--f-mono); font-size: .8rem;
    color: var(--ink-3); letter-spacing: .14em;
}
.modules-list strong { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.modules-list p { font-size: .9rem; color: var(--ink-2); margin: .35rem 0 0; }

/* Dashboard / learn */
.progress-info {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    margin-bottom: 2.5rem;
}
.module-row { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.module-content { background: var(--surface); padding: 2.5rem; border: 1px solid var(--line); border-radius: var(--r-md); line-height: 1.75; margin-bottom: 2rem; color: var(--ink-2); }
.module-content h1, .module-content h2, .module-content h3 { color: var(--ink); }

.activities-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.activities-list li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color var(--t-fast); }
.activities-list li:hover { border-color: var(--ink); }

.quiz-form { display: flex; flex-direction: column; gap: 1.25rem; }
.question { background: var(--surface); padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--r-md); }
.question h3 { margin-top: 0; }
.option { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: .5rem; transition: border-color var(--t-fast), background var(--t-fast); }
.option:hover { border-color: var(--ink); background: var(--bg-2); }
.instructions { background: var(--bg-2); border: 1px solid var(--line); padding: 1rem 1.25rem; border-radius: var(--r-md); margin-bottom: 1.5rem; color: var(--ink-2); }

.badge-ok { font-family: var(--f-mono); font-size: .68rem; color: var(--ok); background: #DCFCE7; padding: .15rem .55rem; letter-spacing: .12em; text-transform: uppercase; margin-left: .5rem; border-radius: 99px; }

/* Certificate */
.cert-display { background: var(--surface); padding: 4rem 3rem; border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center; }
.status-pill { display: inline-block; padding: .5rem 1.2rem; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; border-radius: 99px; }
.status-pill-ok { background: var(--pop); color: var(--on-pop); }
.status-pill-bad { background: var(--hot); color: #fff; }
.cert-display h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 1rem 0 .5rem; }
.cert-display h2 { color: var(--ink-2); font-weight: 600; }
.cert-meta { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; margin: 2rem auto; max-width: 600px; text-align: left; }
.cert-meta > div { background: var(--bg-2); padding: 1rem 1.25rem; border-radius: var(--r-md); }

.checkout { background: var(--surface); padding: 2.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); max-width: 540px; margin: 0 auto; text-align: center; }

/* Admin */
.admin-wrap { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: var(--bg); padding: 2rem 1rem; }
.admin-side .brand { color: var(--bg); display: flex; margin-bottom: 2rem; padding: 0 .85rem; }
.admin-side nav { display: flex; flex-direction: column; gap: .15rem; }
.admin-side nav a { color: rgba(246,245,242,.7); padding: .65rem .85rem; border-radius: var(--r-sm); font-size: .9rem; transition: background var(--t-fast), color var(--t-fast); }
.admin-side nav a:hover { color: var(--ink); background: var(--pop); }
.admin-side hr { border: 0; border-top: 1px solid rgba(246,245,242,.1); margin: 1rem 0; }
.admin-side .link-button { color: rgba(246,245,242,.7); padding: .65rem .85rem; text-align: left; width: 100%; }
.admin-side .link-button:hover { background: var(--pop); color: var(--ink); border-radius: var(--r-sm); }
.admin-main { padding: 3rem 2.5rem; max-width: 1100px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; gap: .35rem; }
.stat-n { font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.actions { display: flex; gap: .65rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

.question-card { background: var(--bg-2); border: 1px solid var(--line); padding: 1rem; margin-bottom: .75rem; border-radius: var(--r-md); }
.question-fieldset { border: 1px solid var(--line); padding: 1rem; margin-bottom: 1rem; border-radius: var(--r-md); }
.option-row { display: flex; gap: .5rem; align-items: center; margin-bottom: .35rem; }
.option-row input[type=text] { flex: 1; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: .08s; }
.reveal-2 { transition-delay: .16s; }
.reveal-3 { transition-delay: .24s; }
.reveal-4 { transition-delay: .32s; }
.reveal-5 { transition-delay: .4s; }
.reveal-6 { transition-delay: .48s; }

/* Char-by-char reveal */
.char-reveal { display: inline-block; }
.char-reveal .ch { display: inline-block; opacity: 0; transform: translateY(50%); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.char-reveal.in .ch { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.in { opacity: 1; transform: none; }
    .char-reveal .ch { opacity: 1; transform: none; }
    .blob, .marquee-track, .swap-list, .deco, .brand-mark::after, .eyebrow .dot { animation: none; }
}

/* Responsivo */
@media (max-width: 1024px) {
    .hero h1 { font-size: clamp(2.8rem, 14vw, 5rem); }
    .hero-stats { grid-template-columns: 1fr; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento .cell-2col { grid-column: span 2; }
    .specialists { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .auth-body { grid-template-columns: 1fr; }
    .filter-row { grid-template-columns: 1fr; }
    .progress-info { grid-template-columns: 1fr; }
    .course-info-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .topbar { margin: .5rem var(--gutter) 0; }
    .topbar-inner { grid-template-columns: 1fr auto; padding: .5rem .5rem .5rem 1.25rem; }
    .main-nav { display: none; }
    .nav-actions .btn-ghost { display: none; }
    .section { padding: 4rem 0; }
    .hero { padding: 2.5rem 0 3rem; }
    .bento { grid-template-columns: 1fr; }
    .bento .cell-2col, .bento .cell-2row { grid-column: auto; grid-row: auto; }
    .specialists { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .admin-wrap { grid-template-columns: 1fr; }
    .admin-main { padding: 1.5rem; }
    .page-header { flex-direction: column; align-items: flex-start; }
    body { cursor: auto; }
    body a, body button { cursor: pointer; }
}

/* ============================================================================
   RESEARCH DASHBOARD (Iniciacao Cientifica)
   Sidebar contextual dark + main + sidebar direita
============================================================================ */

body.research-body { background: #F4F5F8; cursor: auto; }
body.research-body a, body.research-body button { cursor: pointer; }

.research-shell {
    display: grid;
    grid-template-columns: 264px 1fr;
    min-height: 100vh;
}

/* ===================== Sidebar contextual ===================== */
.research-side {
    background: #161A2E;
    color: #C9CEE0;
    padding: 1.5rem 1rem 1rem;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
}
.rs-brand {
    display: flex; align-items: flex-start; gap: .8rem;
    padding: 0 .5rem 1.25rem; margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.rs-brand-icon { color: var(--pop); flex-shrink: 0; }
.rs-cat {
    font-family: var(--f-mono); font-size: .65rem; font-weight: 600;
    color: rgba(255,255,255,.55); letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: .25rem;
}
.rs-name {
    font-family: var(--f-display); font-weight: 700;
    color: #fff; font-size: 1rem; line-height: 1.15;
    letter-spacing: -.01em;
}

.rs-nav { display: flex; flex-direction: column; gap: .15rem; }
.rs-nav-item {
    display: flex; align-items: center; gap: .8rem;
    padding: .65rem .8rem;
    border-radius: 10px;
    color: #C9CEE0; font-size: .92rem; font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.rs-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.rs-nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.rs-nav-item.active {
    background: var(--pop); color: #fff;
}
.rs-nav-item.active svg { opacity: 1; }

/* Bloco da turma no rodape da sidebar */
.rs-class {
    margin-top: 1.5rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 1rem;
}
.rs-class-label {
    font-family: var(--f-mono); font-size: .65rem;
    color: rgba(255,255,255,.5); letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: .5rem;
}
.rs-class-name { color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.25; margin-bottom: .65rem; }
.rs-class-meta { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; color: rgba(255,255,255,.65); }
.rs-class-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.rs-class-cta {
    display: block; text-align: center; margin-top: .75rem;
    background: rgba(255,255,255,.08); color: #fff;
    padding: .55rem; border-radius: 8px; font-size: .85rem; font-weight: 500;
    transition: background .15s;
}
.rs-class-cta:hover { background: rgba(255,255,255,.14); }

/* Perfil no rodape */
.rs-profile {
    margin-top: auto;
    display: grid; grid-template-columns: 36px 1fr auto; gap: .65rem;
    align-items: center;
    padding: .65rem .5rem;
    border-top: 1px solid rgba(255,255,255,.07);
    margin-left: -.5rem; margin-right: -.5rem;
    padding-left: 1rem; padding-right: 1rem;
}
.rs-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--pop); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; overflow: hidden;
    text-transform: uppercase;
}
.rs-avatar.small { width: 32px; height: 32px; font-size: .85rem; }
.rs-avatar.tiny  { width: 24px; height: 24px; font-size: .7rem; }
.rs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rs-profile-name { color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.15; }
.rs-profile-role { color: rgba(255,255,255,.55); font-size: .75rem; }
.rs-profile-out {
    background: none; border: 0; color: rgba(255,255,255,.55); padding: .35rem; cursor: pointer; border-radius: 6px;
}
.rs-profile-out:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ===================== Topbar ===================== */
.research-main { background: #F4F5F8; min-width: 0; }
.research-topbar {
    background: #fff;
    display: grid; grid-template-columns: 1fr auto; gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #E8EAF1;
}
.research-topbar h1 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; margin: 0; color: var(--ink); }
.research-topbar p { margin: .15rem 0 0; }
.research-theme-line { color: var(--ink-2); font-size: .92rem; margin-top: .15rem !important; }
.research-topbar-actions { display: flex; align-items: center; gap: .85rem; }
.rt-icon {
    background: #F4F5F8; border: 0; border-radius: 10px; padding: .55rem;
    color: var(--ink-2); position: relative; cursor: pointer; transition: background .15s;
}
.rt-icon:hover { background: #E8EAF1; color: var(--ink); }
.rt-icon svg { width: 20px; height: 20px; display: block; }
.rt-badge {
    position: absolute; top: -2px; right: -2px;
    background: var(--pop); color: #fff;
    font-size: .65rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.rt-profile {
    display: flex; align-items: center; gap: .55rem;
    background: #F4F5F8; padding: .35rem .85rem .35rem .35rem;
    border-radius: 99px; cursor: pointer; transition: background .15s;
}
.rt-profile:hover { background: #E8EAF1; }
.rt-profile span { font-weight: 600; font-size: .9rem; color: var(--ink); }

/* ===================== Content area ===================== */
.research-content { padding: 1.75rem 2rem 3rem; max-width: 1480px; }

/* ===================== Hero do grupo ===================== */
.r-group-hero {
    display: grid; grid-template-columns: 88px 1fr auto; gap: 2rem; align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
}
.rgh-image {
    width: 88px; height: 88px; border-radius: 12px;
    background: linear-gradient(135deg, #1B1F38, #3B2F5C);
    color: var(--pop);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.rgh-image img { width: 100%; height: 100%; object-fit: cover; }
.rgh-eyebrow {
    font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3);
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: .25rem;
}
.rgh-name {
    font-family: var(--f-display); font-size: 1.4rem; font-weight: 700;
    margin: 0 0 .4rem; color: var(--ink); letter-spacing: -.01em;
}
.rgh-advisor { color: var(--ink-2); font-size: .92rem; }
.rgh-stats { display: flex; align-items: center; gap: 2rem; }
.rgh-stat { display: flex; align-items: center; gap: .8rem; }
.rgh-divider { width: 1px; height: 50px; background: #E8EAF1; }
.rgh-stat-n {
    font-family: var(--f-display); font-size: 1.6rem; font-weight: 800;
    line-height: 1; color: var(--ink); letter-spacing: -.02em;
}
.rgh-stat-l { font-size: .82rem; color: var(--ink-2); margin-top: .15rem; max-width: 16ch; }
.rgh-bar {
    margin-top: .5rem; width: 120px; height: 5px;
    background: #E8EAF1; border-radius: 99px; overflow: hidden;
}
.rgh-bar span { display: block; height: 100%; background: var(--pop); border-radius: 99px; transition: width .6s var(--ease); }

/* ===================== Layout 2 colunas ===================== */
.r-layout {
    display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem;
    align-items: start;
}
.r-col-main, .r-col-side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

/* ===================== Cards genericos ===================== */
.r-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
}
.r-card-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    margin-bottom: 1.25rem;
}
.r-card-head h3 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--ink); }
.r-card-head p  { margin: .25rem 0 0; }
.r-link {
    display: inline-flex; align-items: center; gap: .35rem;
    color: var(--pop); font-weight: 600; font-size: .88rem;
    text-decoration: none;
}
.r-link:hover { text-decoration: underline; }
.r-link.small { font-size: .82rem; }

/* ===================== Stage cards ===================== */
.r-stages {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    position: relative;
}
.r-stages::before {
    content: "";
    position: absolute;
    top: 28px; left: 5%; right: 5%;
    height: 1px; border-top: 1px dashed #D6D9E4;
    z-index: 0;
}
.r-stage {
    background: #fff;
    border: 1px solid #E8EAF1;
    border-radius: 12px;
    padding: 1rem 1.1rem 1.1rem;
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: .6rem;
}
.r-stage-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .25rem; }
.r-stage-num {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-weight: 700; font-size: .85rem;
    background: #E8EAF1; color: var(--ink-2);
}
.r-stage.tone-green  .r-stage-num { background: #16A34A; color: #fff; }
.r-stage.tone-sky    .r-stage-num { background: var(--pop); color: #fff; }
.r-stage.tone-amber  .r-stage-num { background: #F5C033; color: #563400; }
.r-stage.tone-grey   .r-stage-num { background: #E8EAF1; color: var(--ink-3); }
.r-stage-title { font-family: var(--f-display); font-size: .95rem; font-weight: 600; margin: 0; line-height: 1.2; color: var(--ink); }
.r-stage-resp { margin-top: .15rem; }
.r-resp-label { font-family: var(--f-mono); font-size: .65rem; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .35rem; }
.r-resp-user { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink); }
.r-stage-pill {
    align-self: flex-start;
    padding: .25rem .65rem; border-radius: 99px;
    font-size: .72rem; font-weight: 600;
    background: #E8EAF1; color: var(--ink-2);
}
.r-stage.tone-green .r-stage-pill { background: #DCFCE7; color: #166534; }
.r-stage.tone-sky   .r-stage-pill { background: #DBE7FF; color: #0E3A8A; }
.r-stage.tone-amber .r-stage-pill { background: #FEF3C7; color: #92400E; }
.r-stage.tone-grey  .r-stage-pill { background: #E8EAF1; color: var(--ink-3); }
.r-stage-bar { height: 4px; background: #E8EAF1; border-radius: 99px; overflow: hidden; }
.r-stage-bar span { display: block; height: 100%; background: var(--pop); border-radius: 99px; transition: width .6s var(--ease); }
.r-stage.tone-green .r-stage-bar span { background: #16A34A; }
.r-stage.tone-amber .r-stage-bar span { background: #F5C033; }
.r-stage-pct { font-size: .78rem; color: var(--ink-3); margin-top: -.15rem; }

.r-status-legend {
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid #E8EAF1;
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    font-size: .82rem; color: var(--ink-2);
}
.r-status-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.r-status-legend i.dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block; font-style: normal;
}
i.dot.tone-green { background: #16A34A; }
i.dot.tone-sky   { background: var(--pop); }
i.dot.tone-amber { background: #F5C033; }
i.dot.tone-grey  { background: #C7CAD6; }

/* ===================== Table de feedbacks ===================== */
.r-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.r-table th, .r-table td { padding: .85rem .25rem; text-align: left; border-bottom: 1px solid #EEF0F5; }
.r-table th {
    font-family: var(--f-mono); font-size: .68rem; font-weight: 600;
    color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase;
    border-bottom: 1px solid #D6D9E4;
}
.r-table tr:last-child td { border-bottom: 0; }
.r-table td { color: var(--ink); vertical-align: middle; }
.r-pill {
    display: inline-block; padding: .2rem .65rem;
    font-size: .72rem; font-weight: 600; border-radius: 99px;
    background: #E8EAF1; color: var(--ink-2);
}
.r-pill.tone-green { background: #DCFCE7; color: #166534; }
.r-pill.tone-sky   { background: #DBE7FF; color: #0E3A8A; }
.r-pill.tone-amber { background: #FEF3C7; color: #92400E; }
.r-pill.tone-grey  { background: #E8EAF1; color: var(--ink-3); }

/* ===================== Atividades recentes ===================== */
.r-activity-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.r-activity-list li {
    display: grid; grid-template-columns: 32px 1fr auto;
    gap: .85rem; align-items: center;
    padding: .85rem .25rem;
    border-bottom: 1px solid #EEF0F5;
}
.r-activity-list li:last-child { border-bottom: 0; }
.r-activity-ico {
    width: 32px; height: 32px; border-radius: 8px;
    background: #F4F5F8; color: var(--ink-2);
    display: inline-flex; align-items: center; justify-content: center;
}
.r-activity-text { color: var(--ink); font-size: .92rem; }
.r-activity-time { white-space: nowrap; }

/* ===================== Sidebar direita ===================== */
.r-side-card { padding: 1.25rem 1.4rem; }
.r-side-head {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    margin-bottom: .85rem;
}
.r-side-head h4 { font-family: var(--f-display); font-size: .98rem; font-weight: 700; margin: 0; color: var(--ink); display: flex; align-items: center; gap: .5rem; }

.r-deadline-name { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-top: .25rem; }
.r-deadline-desc { margin: .25rem 0 .5rem !important; }
.r-deadline-date { color: var(--pop); font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; }

.r-fb { display: grid; grid-template-columns: 30px 1fr; gap: .65rem; }
.r-fb-ico {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--pop); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
}
.r-fb-stage { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.r-fb-body { font-size: .87rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 .35rem; background: #F4F5F8; padding: .65rem .8rem; border-radius: 8px; }
.r-fb-meta { font-size: .75rem !important; }

.r-material-list, .r-article-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.r-material-list li, .r-article-list li {
    display: grid; grid-template-columns: 32px 1fr; gap: .75rem; align-items: center;
}
.r-mat-ico, .r-art-ico {
    width: 32px; height: 32px; border-radius: 8px;
    background: #FFE4E1; color: #C53030;
    display: inline-flex; align-items: center; justify-content: center;
}
.r-art-ico { background: #E0E7FF; color: #4338CA; }
.r-mat-title, .r-art-title {
    color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.25;
    text-decoration: none; display: block;
}
.r-mat-title:hover, .r-art-title:hover { color: var(--pop); }

/* Empty state */
.r-empty-state {
    background: #fff; border-radius: 14px;
    padding: 4rem 2rem; text-align: center;
    max-width: 600px; margin: 3rem auto;
}
.r-empty-ico { margin-bottom: 1.5rem; }
.r-empty-state h2 { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 1rem; }
.r-empty-state p { color: var(--ink-2); margin-bottom: 1rem; }

/* ===================== Responsive ===================== */
@media (max-width: 1280px) {
    .r-stages { grid-template-columns: repeat(2, 1fr); }
    .r-stages::before { display: none; }
}
@media (max-width: 1024px) {
    .research-shell { grid-template-columns: 80px 1fr; }
    .rs-name, .rs-cat, .rs-nav-item span, .rs-class, .rs-profile-info { display: none; }
    .rs-nav-item { justify-content: center; padding: .65rem; }
    .rs-brand { justify-content: center; }
    .r-layout { grid-template-columns: 1fr; }
    .rgh-stats { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .rgh-divider { display: none; }
}
@media (max-width: 720px) {
    .research-shell { grid-template-columns: 1fr; }
    .research-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
    .rs-nav { flex-direction: row; flex-wrap: wrap; }
    .research-topbar { padding: 1rem; flex-direction: column; align-items: flex-start; }
    .research-content { padding: 1rem; }
    .r-group-hero { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
    .r-stages { grid-template-columns: 1fr; }
    .r-card { padding: 1.25rem; }
}

/* ============================================================================
   LIGA ACADEMICA DASHBOARD (Image 2)
   Mesmo shell que research, mas componentes especificos.
============================================================================ */

body.liga-body { background: #F4F5F8; cursor: auto; }
body.liga-body a, body.liga-body button { cursor: pointer; }

.liga-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

/* ===================== Sidebar ===================== */
.liga-side {
    background: #161A2E;
    color: #C9CEE0;
    padding: 1.5rem 1rem 1rem;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
}
.ls-brand {
    display: flex; align-items: flex-start; gap: .8rem;
    padding: 0 .5rem 1.25rem; margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.ls-brand-icon { color: var(--pop); flex-shrink: 0; }
.ls-name {
    font-family: var(--f-display); font-weight: 700;
    color: #fff; font-size: 1rem; line-height: 1.15;
    letter-spacing: -.01em;
}

/* Brand Med+ no topo da sidebar (research + liga) */
.ls-platform-brand {
    display: inline-flex; align-items: center;
    padding: 0 .5rem .85rem;
    font-family: var(--f-display); font-weight: 700;
    font-size: 1.35rem; color: #fff;
    text-decoration: none; letter-spacing: -.03em; line-height: 1;
}
.ls-platform-brand .ls-brand-plus {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.05em; height: 1.05em;
    background: var(--pop); color: #fff;
    border-radius: 6px;
    margin-left: .12em;
    font-size: .9em; font-weight: 700;
    line-height: 0;
    transition: transform .4s var(--ease), background .25s;
}
.ls-platform-brand:hover .ls-brand-plus { transform: rotate(90deg); }

/* Contexto do curso (abaixo do brand) */
.ls-context {
    padding: 0 .5rem 1.25rem; margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.ls-context-label {
    font-family: var(--f-mono); font-size: .62rem;
    color: rgba(255,255,255,.45); letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: .35rem;
}
.ls-context-name {
    color: rgba(255,255,255,.95);
    font-weight: 600; font-size: .82rem; line-height: 1.3;
}

.ls-nav { display: flex; flex-direction: column; gap: .15rem; }
.ls-nav-item {
    display: flex; align-items: center; gap: .8rem;
    padding: .65rem .8rem;
    border-radius: 10px;
    color: #C9CEE0; font-size: .92rem; font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.ls-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.ls-nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.ls-nav-item.active { background: var(--pop); color: #fff; }
.ls-nav-item.active svg { opacity: 1; }

/* Bloco proximo evento */
.ls-event {
    margin-top: 1.5rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 1rem;
}
.ls-event-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .65rem;
}
.ls-event-label {
    font-family: var(--f-mono); font-size: .68rem;
    color: rgba(255,255,255,.55); letter-spacing: .12em; text-transform: uppercase;
}
.ls-event-cal {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(0,112,225,.18); color: var(--pop);
    display: inline-flex; align-items: center; justify-content: center;
}
.ls-event-kind {
    font-family: var(--f-mono); font-size: .68rem;
    color: rgba(255,255,255,.5); letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: .35rem;
}
.ls-event-title {
    color: #fff; font-weight: 600; font-size: .9rem;
    line-height: 1.3; margin-bottom: .55rem;
}
.ls-event-time {
    display: inline-flex; align-items: center; gap: .35rem;
    color: rgba(255,255,255,.7); font-size: .78rem;
    margin-bottom: .85rem;
}
.ls-event-cta {
    display: block; text-align: center;
    background: var(--pop); color: #fff;
    padding: .55rem; border-radius: 8px;
    font-size: .85rem; font-weight: 600;
    transition: background .15s;
}
.ls-event-cta:hover { background: #0058B0; }

/* Perfil (mesmo padrao do research) */
.ls-profile {
    margin-top: auto;
    display: grid; grid-template-columns: 36px 1fr auto; gap: .65rem;
    align-items: center;
    padding: .65rem .5rem;
    border-top: 1px solid rgba(255,255,255,.07);
    margin-left: -.5rem; margin-right: -.5rem;
    padding-left: 1rem; padding-right: 1rem;
}
.ls-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--pop); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; overflow: hidden;
    text-transform: uppercase;
}
.ls-avatar.small { width: 38px; height: 38px; font-size: .85rem; }
.ls-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ls-profile-name { color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.15; }
.ls-profile-role { color: rgba(255,255,255,.55); font-size: .75rem; }
.ls-profile-out {
    background: none; border: 0; color: rgba(255,255,255,.55); padding: .35rem; cursor: pointer; border-radius: 6px;
}

/* ===================== Topbar ===================== */
.liga-main { background: #F4F5F8; min-width: 0; }
.liga-topbar {
    display: grid; grid-template-columns: 1fr auto; gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 2rem 1rem;
}
.liga-topbar h1 {
    font-family: var(--f-display); font-size: 1.8rem; font-weight: 700;
    margin: 0; color: var(--ink); letter-spacing: -.02em;
}
.liga-topbar p { margin: .25rem 0 0; color: var(--ink-2); }
.liga-topbar-actions { display: flex; align-items: center; gap: .85rem; }
.lt-icon {
    background: #fff; border: 1px solid #E8EAF1; border-radius: 12px; padding: .65rem;
    color: var(--ink-2); position: relative; cursor: pointer; transition: background .15s, color .15s;
}
.lt-icon:hover { background: #F4F5F8; color: var(--ink); }
.lt-icon svg { width: 20px; height: 20px; display: block; }
.lt-badge {
    position: absolute; top: -3px; right: -3px;
    background: var(--pop); color: #fff;
    font-size: .65rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #F4F5F8;
}
.lt-profile {
    display: flex; align-items: center; gap: .65rem;
    background: #fff; padding: .35rem 1rem .35rem .35rem;
    border: 1px solid #E8EAF1; border-radius: 99px;
    cursor: pointer; transition: background .15s;
}
.lt-profile:hover { background: #F4F5F8; }
.lt-profile-text { display: flex; flex-direction: column; line-height: 1.2; }
.lt-profile-text span { font-weight: 600; font-size: .88rem; color: var(--ink); }
.lt-profile-text small { font-size: .7rem; color: var(--ink-3); }

.liga-content { padding: .5rem 2rem 3rem; }

/* ===================== Banner ===================== */
.l-banner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
    background: linear-gradient(135deg, #161A2E 0%, #1E2745 60%, #2F3666 100%);
    color: #fff;
    border-radius: 18px;
    padding: 2.5rem 3rem;
    margin-bottom: 1.5rem;
    align-items: center;
    overflow: hidden;
}
.l-banner-text { display: flex; flex-direction: column; gap: .85rem; }
.l-banner-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: rgba(0,112,225,.2);
    color: var(--pop);
    display: flex; align-items: center; justify-content: center;
}
.l-banner h2 {
    color: #fff; font-family: var(--f-display); font-size: 2.2rem; font-weight: 700;
    margin: 0; line-height: 1.1; letter-spacing: -.02em;
}
.l-banner p { color: rgba(255,255,255,.75); margin: 0; max-width: 40ch; font-size: 1rem; }
.l-banner-art { display: flex; align-items: center; justify-content: center; max-height: 240px; }

/* ===================== Stat cards ===================== */
.l-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    margin-bottom: 1.5rem;
}
.l-stat-card {
    background: #fff; border-radius: 14px;
    padding: 1.5rem; display: block;
    text-decoration: none; color: var(--ink);
    transition: transform .2s var(--ease), box-shadow .2s;
}
.l-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(14,15,20,.06);
}
.l-stat-ico {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.l-stat-ico svg { width: 22px; height: 22px; }
.l-stat-ico-purple { background: #F1ECFE; color: #6B4FE8; }
.l-stat-ico-blue   { background: #E3EFFE; color: var(--pop); }
.l-stat-ico-green  { background: #DEF5E5; color: #18A957; }
.l-stat-ico-amber  { background: #FDF1DC; color: #C9871E; }
.l-stat-ico-sky    { background: #DBE7FF; color: var(--pop); }
.l-stat-ico-grey   { background: #EEF0F5; color: var(--ink-2); }
.l-stat-title { color: var(--ink-2); font-size: .95rem; margin-bottom: 1rem; }
.l-stat-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.l-stat-n {
    font-family: var(--f-display); font-size: 2.4rem; font-weight: 800;
    line-height: 1; color: var(--ink); letter-spacing: -.03em;
}
.l-stat-arrow {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1.5px solid currentColor;
    display: inline-flex; align-items: center; justify-content: center;
}
.l-stat-arrow svg { width: 16px; height: 16px; }
.l-stat-arrow-purple { color: #6B4FE8; }
.l-stat-arrow-blue   { color: var(--pop); }
.l-stat-arrow-green  { color: #18A957; }
.l-stat-arrow-amber  { color: #C9871E; }
.l-stat-l { color: var(--ink-3); font-size: .85rem; }

/* ===================== Card generico ===================== */
.l-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
}
.l-card-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; margin-bottom: 1.25rem;
}
.l-card-head h3 {
    font-family: var(--f-display); font-size: 1.15rem; font-weight: 700;
    margin: 0; color: var(--ink);
}
.l-link {
    color: var(--pop); font-weight: 600; font-size: .88rem;
    text-decoration: none;
}
.l-link:hover { text-decoration: underline; }

/* ===================== Row 2 colunas ===================== */
.l-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }

/* ===================== Continue de onde parou ===================== */
.l-resume {
    display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem;
    align-items: center;
}
.l-resume-cover {
    aspect-ratio: 4 / 3; border-radius: 12px;
    background: linear-gradient(135deg, #2F3666, #6B4FE8);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.l-resume-cover img { width: 100%; height: 100%; object-fit: cover; }
.l-resume-cover svg { width: 60%; height: 60%; }
.l-resume-info { min-width: 0; }
.l-resume-tag {
    display: inline-block; background: #E3EFFE; color: var(--pop);
    font-family: var(--f-mono); font-size: .7rem; font-weight: 600;
    padding: .25rem .65rem; border-radius: 99px;
    letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: .65rem;
}
.l-resume-info h4 {
    font-family: var(--f-display); font-size: 1.2rem; font-weight: 700;
    margin: 0 0 .35rem; color: var(--ink); line-height: 1.25;
}
.l-resume-info p { margin: 0 0 .85rem; }
.l-resume-progress { margin: .85rem 0 1rem; }
.l-progress-pct { font-size: .82rem; color: var(--ink-2); margin-bottom: .35rem; }
.l-progress-bar { height: 6px; background: #EEF0F5; border-radius: 99px; overflow: hidden; }
.l-progress-bar span {
    display: block; height: 100%; background: var(--pop); border-radius: 99px;
    transition: width .6s var(--ease);
}

/* ===================== Avisos importantes ===================== */
.l-announce-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.l-announce-list li {
    display: grid; grid-template-columns: 36px 1fr auto;
    gap: .85rem; align-items: center;
    padding: .85rem 0;
    border-bottom: 1px solid #EEF0F5;
}
.l-announce-list li:last-child { border-bottom: 0; }
.l-announce-ico {
    width: 36px; height: 36px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
}
.l-announce-ico svg { width: 18px; height: 18px; }
.l-announce-title { font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .15rem; }
.l-announce-body { line-height: 1.4; }
.l-announce-date { white-space: nowrap; }

/* ===================== Lista de eventos ===================== */
.l-event-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.l-event-list li {
    display: grid; grid-template-columns: 64px 1fr auto;
    gap: 1.25rem; align-items: center;
    padding-bottom: 1rem; border-bottom: 1px solid #EEF0F5;
}
.l-event-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.l-event-date {
    width: 64px; aspect-ratio: 1/1;
    background: #F4F5F8; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.l-event-month {
    font-family: var(--f-mono); font-size: .68rem; font-weight: 700;
    color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase;
}
.l-event-day {
    font-family: var(--f-display); font-size: 1.5rem; font-weight: 800;
    color: var(--ink); line-height: 1; letter-spacing: -.02em;
}
.l-event-kind {
    display: inline-block; background: #E3EFFE; color: var(--pop);
    font-family: var(--f-mono); font-size: .68rem; font-weight: 600;
    padding: .2rem .6rem; border-radius: 99px;
    letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: .35rem;
}
.l-event-info h4 {
    font-family: var(--f-display); font-size: 1.05rem; font-weight: 700;
    margin: 0 0 .25rem; color: var(--ink); line-height: 1.25;
}

/* ===================== Empty state ===================== */
.l-card .empty {
    padding: 2.5rem 1.5rem; background: transparent; border: 1px dashed #E8EAF1;
    border-radius: 12px; color: var(--ink-3); text-align: center;
}
.l-card .empty p { margin: 0 0 1rem; }

/* ===================== Responsive ===================== */
@media (max-width: 1280px) {
    .l-stats { grid-template-columns: repeat(2, 1fr); }
    .l-row { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .liga-shell { grid-template-columns: 80px 1fr; }
    .ls-name, .ls-nav-item span, .ls-event, .ls-profile-info { display: none; }
    .ls-nav-item { justify-content: center; padding: .65rem; }
    .ls-nav-item svg { opacity: 1; }
    .ls-brand { justify-content: center; }
    .l-banner { grid-template-columns: 1fr; padding: 2rem; }
    .l-banner-art { display: none; }
    .l-resume { grid-template-columns: 1fr; }
    .l-resume-cover { max-width: 240px; }
}
@media (max-width: 720px) {
    .liga-shell { grid-template-columns: 1fr; }
    .liga-side {
        position: static; height: auto;
        flex-direction: row; flex-wrap: wrap;
        padding: 1rem;
    }
    .liga-topbar { padding: 1rem; flex-direction: column; align-items: flex-start; }
    .liga-content { padding: 1rem; }
    .l-stats { grid-template-columns: 1fr; }
    .l-card { padding: 1.25rem; }
    .l-event-list li { grid-template-columns: 56px 1fr; }
    .l-event-list li > a { grid-column: 1 / -1; justify-self: end; margin-top: .5rem; }
}

/* ============================================================================
   FASE 3 — Notificacoes + Mensagens
============================================================================ */

/* Dropdown do sino */
.nbell { position: relative; }
.nbell-menu {
    position: absolute; top: calc(100% + .65rem); right: 0;
    width: 340px; max-width: 90vw;
    background: #fff;
    border: 1px solid #E8EAF1;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(14,15,20,.10);
    z-index: 100;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nbell.open .nbell-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nbell-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; border-bottom: 1px solid #EEF0F5;
}
.nbell-head h4 { font-family: var(--f-display); font-size: 1rem; margin: 0; color: var(--ink); }
.nbell-mark {
    background: none; border: 0; color: var(--pop);
    font-size: .82rem; font-weight: 600; cursor: pointer; padding: 0;
}
.nbell-mark:hover { text-decoration: underline; }
.nbell-empty { padding: 2.5rem 1.25rem; text-align: center; color: var(--ink-3); font-size: .92rem; }
.nbell-list { list-style: none; padding: 0; margin: 0; max-height: 340px; overflow-y: auto; }
.nbell-list li { border-bottom: 1px solid #EEF0F5; }
.nbell-list li:last-child { border-bottom: 0; }
.nbell-list li a {
    display: block; padding: .85rem 1.25rem;
    color: var(--ink); text-decoration: none;
    transition: background .15s;
}
.nbell-list li a:hover { background: #F4F5F8; }
.nbell-list li.unread a { background: rgba(0,112,225,.04); }
.nbell-list li.unread a::before {
    content: ""; display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--pop); margin-right: .5rem;
    vertical-align: middle;
}
.nbell-list strong { display: block; font-size: .88rem; font-weight: 600; line-height: 1.3; margin-bottom: .15rem; }
.nbell-list small { font-size: .75rem; }
.nbell-footer {
    display: block; padding: .85rem 1.25rem; text-align: center;
    border-top: 1px solid #EEF0F5;
    color: var(--pop); font-weight: 600; font-size: .85rem;
    text-decoration: none;
}
.nbell-footer:hover { background: #F4F5F8; }

/* Pagina /notificacoes */
.notif-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.notif-item {
    display: grid; grid-template-columns: 44px 1fr auto;
    gap: 1rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--line);
    padding: 1.1rem 1.25rem; border-radius: var(--r-md);
    transition: border-color .15s;
}
.notif-item:hover { border-color: var(--ink); }
.notif-item.unread { background: rgba(0,112,225,.04); border-color: rgba(0,112,225,.25); }
.notif-ico {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
}
.notif-ico.tone-sky    { background: #DBE7FF; color: var(--pop); }
.notif-ico.tone-amber  { background: #FEF3C7; color: #92400E; }
.notif-ico.tone-green  { background: #DCFCE7; color: #166534; }
.notif-ico.tone-grey   { background: #EEF0F5; color: var(--ink-2); }
.notif-title { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; display: block; line-height: 1.3; }
.notif-title:hover { color: var(--pop); }
.notif-text { margin: .35rem 0 .5rem !important; line-height: 1.4; }
.notif-meta { font-size: .8rem !important; }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pop); align-self: center; }

/* Caixa de mensagens (/mensagens) */
.thread-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.thread-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .15s; }
.thread-item:hover { border-color: var(--ink); }
.thread-item.unread { background: rgba(0,112,225,.04); border-color: rgba(0,112,225,.25); }
.thread-item a {
    display: grid; grid-template-columns: 44px 1fr auto;
    gap: 1rem; align-items: center;
    padding: 1.1rem 1.25rem; text-decoration: none; color: var(--ink);
}
.thread-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--pop); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; text-transform: uppercase;
}
.thread-head { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.thread-author { font-size: .95rem; }
.thread-time { margin-left: auto; }
.thread-snippet { margin: .35rem 0 0 !important; line-height: 1.4; }
.thread-badge {
    background: var(--pop); color: #fff;
    font-size: .72rem; font-weight: 700;
    padding: .15rem .55rem; border-radius: 99px;
    min-width: 22px; text-align: center;
}

/* Thread view (/mensagens/{id}) */
.msg-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
.msg-sidebar {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 1rem;
    position: sticky; top: 1.5rem;
}
.msg-sidebar h4 {
    font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3);
    letter-spacing: .12em; text-transform: uppercase; margin: 0 .5rem .65rem;
}
.msg-sidebar ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.msg-sidebar li a {
    display: block; padding: .65rem .8rem; border-radius: var(--r-sm);
    text-decoration: none; color: var(--ink-2); transition: background .15s;
}
.msg-sidebar li a:hover { background: var(--bg-2); }
.msg-sidebar li.active a { background: var(--pop); color: #fff; }
.msg-sidebar li.active a small { color: rgba(255,255,255,.8); }
.msg-sidebar li strong { display: block; font-size: .9rem; }
.msg-sidebar li small { font-size: .8rem; }

.msg-main {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 1.5rem;
    display: flex; flex-direction: column;
    min-height: 60vh;
}
.msg-list {
    display: flex; flex-direction: column; gap: 1rem;
    flex: 1; overflow-y: auto;
    padding-bottom: 1rem;
}
.msg-bubble { display: flex; gap: .75rem; max-width: 80%; }
.msg-bubble.own { margin-left: auto; flex-direction: row-reverse; }
.msg-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--pop); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; text-transform: uppercase;
    flex-shrink: 0;
}
.msg-content { min-width: 0; }
.msg-author { font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .25rem; }
.msg-text {
    background: var(--bg-2); padding: .85rem 1rem; border-radius: var(--r-md);
    font-size: .95rem; color: var(--ink); line-height: 1.45;
    border-top-left-radius: 4px;
}
.msg-bubble.own .msg-text {
    background: var(--pop); color: #fff;
    border-top-left-radius: var(--r-md);
    border-top-right-radius: 4px;
    margin-left: auto;
}
.msg-time { margin-top: .35rem; font-size: .72rem; }
.msg-bubble.own .msg-time { text-align: right; }

.msg-form {
    display: flex; gap: .65rem; align-items: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.msg-form textarea {
    flex: 1; resize: vertical; min-height: 56px;
    padding: .85rem 1rem;
    border: 1px solid var(--line); border-radius: var(--r-md);
    font: inherit; color: var(--ink);
    background: #fff;
}
.msg-form textarea:focus { outline: none; border-color: var(--ink); }

@media (max-width: 720px) {
    .msg-layout { grid-template-columns: 1fr; }
    .msg-sidebar { position: static; }
    .nbell-menu { width: calc(100vw - 2rem); right: -1rem; }
}

/* ============================================================================
   FASE 4+5 — Forum, Cronograma, Perfil
============================================================================ */

/* ===================== Forum (lista de topicos) ===================== */
.forum-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.forum-item {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-md); transition: border-color .15s, transform .15s var(--ease);
}
.forum-item:hover { border-color: var(--ink); transform: translateY(-2px); }
.forum-link {
    display: grid; grid-template-columns: 44px 1fr auto;
    gap: 1rem; align-items: center;
    padding: 1.1rem 1.25rem; text-decoration: none; color: var(--ink);
}
.forum-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--pop); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; text-transform: uppercase; font-size: 1rem;
}
.forum-title { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 .25rem; line-height: 1.3; }
.forum-pin { font-size: .85rem; }
.forum-meta { font-size: .82rem !important; }
.forum-stats {
    display: flex; gap: 1.5rem; align-items: center;
    text-align: center;
}
.forum-stat { min-width: 56px; }
.forum-stat-n { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1; }
.forum-stat-l { font-size: .7rem; color: var(--ink-3); margin-top: .15rem; }
.forum-last { min-width: 140px; text-align: right; font-size: .82rem; color: var(--ink-2); }

@media (max-width: 720px) {
    .forum-link { grid-template-columns: 44px 1fr; }
    .forum-stats { display: none; }
}

/* ===================== Forum (tópico aberto) ===================== */
.post-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.post-item {
    display: grid; grid-template-columns: 44px 1fr;
    gap: 1rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 1.25rem;
}
.post-item.post-original { background: rgba(0,112,225,.04); border-color: rgba(0,112,225,.2); }
.post-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--pop); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; text-transform: uppercase; font-size: 1rem;
    flex-shrink: 0;
}
.post-content { min-width: 0; }
.post-head {
    display: flex; align-items: baseline; gap: .65rem;
    margin-bottom: .65rem; flex-wrap: wrap;
}
.post-head strong { font-size: .95rem; color: var(--ink); }
.post-badge {
    font-family: var(--f-mono); font-size: .65rem; font-weight: 600;
    background: var(--pop); color: #fff;
    padding: .15rem .55rem; border-radius: 99px;
    letter-spacing: .1em; text-transform: uppercase;
}
.post-body { color: var(--ink); line-height: 1.6; }

/* ===================== Cronograma (timeline) ===================== */
.timeline { display: flex; flex-direction: column; gap: 2.5rem; }
.timeline-month-head {
    font-family: var(--f-display); font-weight: 700;
    font-size: 1.4rem; color: var(--ink);
    display: flex; align-items: baseline; gap: .75rem;
    margin: 0 0 1rem;
    padding-bottom: .65rem;
    border-bottom: 2px solid var(--ink);
}
.timeline-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.timeline-item {
    display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 1.25rem 1.5rem;
    transition: border-color .15s;
}
.timeline-item:hover { border-color: var(--ink); }
.timeline-item.past { opacity: .65; }
.timeline-date {
    text-align: center;
    background: var(--bg-2); border-radius: var(--r-md);
    padding: .85rem .5rem;
    display: flex; flex-direction: column; gap: .15rem; justify-content: center;
}
.timeline-day {
    font-family: var(--f-display); font-size: 1.8rem; font-weight: 800;
    color: var(--ink); line-height: 1; letter-spacing: -.02em;
}
.timeline-month-abbr {
    font-family: var(--f-mono); font-size: .68rem; font-weight: 700;
    color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase;
}
.timeline-time { margin-top: .15rem; }
.timeline-content h4 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; margin: .25rem 0 .35rem; color: var(--ink); }
.timeline-kind {
    display: inline-block; font-family: var(--f-mono); font-size: .68rem; font-weight: 600;
    padding: .2rem .6rem; border-radius: 99px;
    letter-spacing: .1em; text-transform: uppercase;
}
.timeline-kind.tone-amber { background: #FEF3C7; color: #92400E; }
.timeline-kind.tone-sky { background: #DBE7FF; color: var(--pop); }

/* ===================== Perfil ===================== */
.profile-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 2rem; }
.profile-avatar-row {
    display: grid; grid-template-columns: 100px 1fr; gap: 1.5rem;
    align-items: center; padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line); margin-bottom: 1.5rem;
}
.profile-avatar-preview {
    width: 100px; height: 100px; border-radius: 50%;
    background: var(--pop); color: #fff;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    font-family: var(--f-display); font-size: 2.5rem; font-weight: 800;
    text-transform: uppercase;
}
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-actions .btn { cursor: pointer; }

/* ============================================================================
   FASE 6 — Paginas internas da Liga (conteudos, eventos, avisos, membros)
============================================================================ */

/* Header da secao + tabs */
.l-section-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.l-section-head h1 {
    font-family: var(--f-display); font-size: clamp(1.6rem,2.8vw,2.2rem);
    font-weight: 700; margin: .5rem 0 0; color: var(--ink); letter-spacing: -.02em;
}
.l-tabs {
    display: flex; gap: .35rem; background: #fff;
    padding: .25rem; border-radius: 99px; border: 1px solid var(--line);
}
.l-tab {
    padding: .5rem 1rem; border-radius: 99px; font-size: .85rem; font-weight: 500;
    color: var(--ink-2); text-decoration: none; transition: background .15s, color .15s;
}
.l-tab:hover { background: var(--bg-2); color: var(--ink); }
.l-tab.active { background: var(--pop); color: #fff; }

/* Grid de conteudos */
.l-content-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.l-content-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .2s var(--ease), box-shadow .2s;
}
.l-content-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(14,15,20,.06); }
.l-content-cover {
    aspect-ratio: 5/3; position: relative;
    background: linear-gradient(135deg, #2F3666, #6B4FE8);
    color: #fff; display: flex; align-items: center; justify-content: center;
}
.l-content-cover img { width: 100%; height: 100%; object-fit: cover; }
.l-content-cover svg { width: 45%; height: 45%; }
.l-content-kind {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0,0,0,.4); color: #fff;
    font-family: var(--f-mono); font-size: .65rem; font-weight: 600;
    padding: .25rem .65rem; border-radius: 99px;
    letter-spacing: .1em; text-transform: uppercase;
}
.l-content-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.l-content-body h3 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 .35rem; line-height: 1.25; color: var(--ink); }
.l-content-body .btn { margin-top: auto; align-self: flex-start; }

/* Lista de eventos (full) */
.l-event-list-full { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.l-event-row {
    display: grid; grid-template-columns: 76px 1fr auto;
    gap: 1.5rem; align-items: center;
    background: #fff; border-radius: 14px; padding: 1.25rem 1.5rem;
    transition: transform .15s var(--ease), box-shadow .15s;
    border: 1px solid transparent;
}
.l-event-row:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(14,15,20,.05); }
.l-event-row.past { opacity: .55; }
.l-event-row .l-event-date {
    width: 76px; aspect-ratio: 1/1;
    background: var(--bg-2); border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.l-event-row .l-event-day { font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.l-event-row .l-event-month { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }
.l-event-row .l-event-info h4 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; margin: .25rem 0 0; color: var(--ink); }

/* Lista de avisos (full) */
.l-announce-full {
    display: grid; grid-template-columns: 44px 1fr auto;
    gap: 1rem; align-items: flex-start;
    background: #fff; border-radius: 14px; padding: 1.25rem 1.5rem;
    margin-bottom: .75rem;
}

/* Grid de membros */
.l-member-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.l-member-card {
    background: #fff; border-radius: 14px; padding: 1.5rem;
    text-align: center;
    transition: transform .2s var(--ease), box-shadow .2s;
}
.l-member-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(14,15,20,.06); }
.l-member-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--pop); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-size: 2rem; font-weight: 800;
    margin: 0 auto 1rem; overflow: hidden;
    text-transform: uppercase;
}
.l-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.l-member-card h4 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 .15rem; color: var(--ink); }

@media (max-width: 720px) {
    .l-tabs { width: 100%; overflow-x: auto; }
    .l-event-row { grid-template-columns: 64px 1fr; }
    .l-event-row > a { grid-column: 1 / -1; justify-self: end; margin-top: .5rem; }
    .l-section-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================================
   FASE 7.1 — ADMIN reformulado (sidebar dark + topbar + content rico)
============================================================================ */

body.admin { background: #F4F5F8; cursor: auto; }
body.admin a, body.admin button, body.admin input, body.admin select, body.admin textarea { cursor: auto; }
body.admin a, body.admin button { cursor: pointer; }

.adm-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

/* ===================== Sidebar ===================== */
.adm-side {
    background: #161A2E;
    color: #C9CEE0;
    padding: 1.5rem 1rem 1rem;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
}
.adm-brand {
    display: inline-flex; align-items: center; gap: .65rem;
    padding: 0 .5rem 1.25rem; margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-family: var(--f-display); font-weight: 700; font-size: 1.4rem;
    color: #fff; text-decoration: none; letter-spacing: -.03em; line-height: 1;
}
.adm-brand-plus {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.05em; height: 1.05em;
    background: var(--pop); color: #fff;
    border-radius: 6px; font-size: .9em; font-weight: 700; line-height: 0;
    transition: transform .4s var(--ease);
}
.adm-brand:hover .adm-brand-plus { transform: rotate(90deg); }
.adm-brand-badge {
    font-family: var(--f-mono); font-size: .6rem; font-weight: 600;
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
    padding: .25rem .5rem; border-radius: 99px;
    letter-spacing: .14em; text-transform: uppercase;
    margin-left: auto;
}

.adm-nav { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.adm-nav-section {
    font-family: var(--f-mono); font-size: .62rem;
    color: rgba(255,255,255,.4); letter-spacing: .14em; text-transform: uppercase;
    padding: 1rem .85rem .35rem;
}
.adm-nav-section:first-child { padding-top: .35rem; }
.adm-nav-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem .85rem; border-radius: 10px;
    color: #C9CEE0; font-size: .92rem; font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.adm-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.adm-nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.adm-nav-item.active { background: var(--pop); color: #fff; }
.adm-nav-item.active svg { opacity: 1; }

.adm-back {
    display: inline-flex; align-items: center; gap: .5rem;
    margin: 1rem 0 1rem;
    padding: .55rem .85rem;
    color: rgba(255,255,255,.55); font-size: .82rem;
    background: rgba(255,255,255,.04);
    border-radius: 8px; text-decoration: none;
    transition: background .15s, color .15s;
}
.adm-back:hover { background: rgba(255,255,255,.08); color: #fff; }

.adm-profile {
    margin-top: auto;
    display: grid; grid-template-columns: 36px 1fr auto; gap: .65rem;
    align-items: center;
    padding: .85rem .5rem;
    border-top: 1px solid rgba(255,255,255,.07);
    margin-left: -.5rem; margin-right: -.5rem;
    padding-left: 1rem; padding-right: 1rem;
}
.adm-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--pop); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; overflow: hidden;
    text-transform: uppercase;
}
.adm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.adm-profile-name { color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.15; }
.adm-profile-role { color: rgba(255,255,255,.55); font-size: .75rem; }
.adm-profile-out {
    background: none; border: 0; color: rgba(255,255,255,.55); padding: .35rem;
    cursor: pointer; border-radius: 6px;
}
.adm-profile-out:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ===================== Main + Topbar ===================== */
.adm-main { background: #F4F5F8; min-width: 0; }
.adm-topbar {
    background: #fff;
    display: grid; grid-template-columns: 1fr auto; gap: 1.5rem;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #E8EAF1;
}
.adm-topbar-search {
    display: flex; align-items: center; gap: .65rem;
    background: #F4F5F8; border-radius: 99px;
    padding: .55rem 1.1rem;
    max-width: 520px;
}
.adm-topbar-search svg { color: var(--ink-3); flex-shrink: 0; }
.adm-topbar-search input {
    flex: 1; border: 0; background: transparent; outline: 0;
    font: inherit; color: var(--ink); font-size: .92rem;
}
.adm-topbar-search input::placeholder { color: var(--ink-3); }

.adm-topbar-actions { display: flex; align-items: center; gap: .65rem; }
.adm-icon {
    position: relative;
    background: #F4F5F8; border: 0; border-radius: 10px; padding: .55rem;
    color: var(--ink-2); text-decoration: none;
    display: inline-flex;
    transition: background .15s, color .15s;
}
.adm-icon:hover { background: #E8EAF1; color: var(--ink); }
.adm-icon svg { width: 20px; height: 20px; display: block; }
.adm-badge {
    position: absolute; top: -2px; right: -2px;
    background: var(--pop); color: #fff;
    font-size: .65rem; font-weight: 700;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 99px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

.adm-content { padding: 1.75rem 2rem 3rem; max-width: 1480px; }

/* ===================== Header da pagina ===================== */
.adm-page-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 1.5rem; flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.adm-eyebrow {
    display: inline-block;
    font-family: var(--f-mono); font-size: .7rem; font-weight: 600;
    color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase;
    margin-bottom: .35rem;
}
.adm-page-head h1 {
    font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700; margin: 0 0 .25rem; color: var(--ink); letter-spacing: -.02em;
}
.adm-page-head p { margin: 0; }
.adm-page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ===================== KPI cards ===================== */
.adm-kpi-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    margin-bottom: 1.5rem;
}
.adm-kpi {
    background: #fff; border-radius: 14px; padding: 1.5rem;
    display: block; text-decoration: none; color: var(--ink);
    transition: transform .2s var(--ease), box-shadow .2s;
}
.adm-kpi:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(14,15,20,.06); }
.adm-kpi-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.adm-kpi-ico {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
}
.adm-kpi-ico svg { width: 22px; height: 22px; }
.adm-kpi-ico.tone-purple { background: #F1ECFE; color: #6B4FE8; }
.adm-kpi-ico.tone-blue   { background: #E3EFFE; color: var(--pop); }
.adm-kpi-ico.tone-green  { background: #DEF5E5; color: #18A957; }
.adm-kpi-ico.tone-amber  { background: #FDF1DC; color: #C9871E; }
.adm-kpi-arrow {
    width: 24px; height: 24px;
    color: var(--ink-3); opacity: .5;
    transition: transform .2s var(--ease), opacity .2s;
}
.adm-kpi:hover .adm-kpi-arrow { transform: translateX(4px); opacity: 1; }
.adm-kpi-n {
    font-family: var(--f-display); font-size: 2.4rem; font-weight: 800;
    line-height: 1; letter-spacing: -.03em; color: var(--ink);
    margin-bottom: .25rem;
}
.adm-kpi-l { font-size: .92rem; color: var(--ink-2); }
.adm-kpi-sub { font-size: .8rem; color: var(--ink-3); margin-top: .5rem; }

/* ===================== Rows ===================== */
.adm-row   { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.adm-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ===================== Card generico ===================== */
.adm-card {
    background: #fff; border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
}
.adm-card:last-child { margin-bottom: 0; }
/* Quando dentro de .adm-row ou .adm-row-3, o grid ja gerencia o gap */
.adm-row > .adm-card,
.adm-row-3 > .adm-card { margin-bottom: 0; }
.adm-card-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; margin-bottom: 1.25rem;
}
.adm-card-head h3 {
    font-family: var(--f-display); font-size: 1.05rem; font-weight: 700;
    margin: 0; color: var(--ink);
}
.adm-card-head p { margin: .15rem 0 0; }
.adm-link {
    color: var(--pop); font-weight: 600; font-size: .85rem;
    text-decoration: none;
}
.adm-link:hover { text-decoration: underline; }

/* ===================== Mini chart (matriculas 7 dias) ===================== */
.adm-card-chart { min-height: 280px; }
.adm-chart {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: .65rem;
    align-items: end;
    height: 200px;
    padding-top: 1rem;
}
.adm-chart-bar {
    display: flex; flex-direction: column; align-items: center;
    height: 100%; position: relative;
}
.adm-chart-fill {
    width: 100%; max-width: 32px; min-height: 4px;
    background: linear-gradient(180deg, var(--pop), #0058B0);
    border-radius: 6px 6px 0 0;
    margin-top: auto;
    transition: opacity .15s;
}
.adm-chart-bar:hover .adm-chart-fill { opacity: .8; }
.adm-chart-n {
    font-family: var(--f-mono); font-size: .72rem; font-weight: 600;
    color: var(--ink); margin: .35rem 0 .15rem;
}
.adm-chart-l {
    font-family: var(--f-mono); font-size: .65rem;
    color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em;
}

/* ===================== Rank (top cursos) ===================== */
.adm-rank { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.adm-rank li {
    display: grid; grid-template-columns: 36px 1fr auto;
    gap: 1rem; align-items: center;
    padding: .65rem .35rem;
    border-bottom: 1px solid #EEF0F5;
}
.adm-rank li:last-child { border-bottom: 0; }
.adm-rank-pos {
    font-family: var(--f-mono); font-size: .8rem; font-weight: 700;
    color: var(--ink-3); letter-spacing: .1em;
}
.adm-rank-info a { color: var(--ink); text-decoration: none; }
.adm-rank-info a:hover { color: var(--pop); }
.adm-rank-info strong { font-size: .92rem; }
.adm-rank-n {
    font-family: var(--f-display); font-size: 1.4rem; font-weight: 800;
    color: var(--pop); line-height: 1; letter-spacing: -.02em;
}

/* ===================== Feed (atividade recente) ===================== */
.adm-feed { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.adm-feed li {
    display: grid; grid-template-columns: 34px 1fr;
    gap: .85rem; align-items: flex-start;
    padding: .75rem 0; border-bottom: 1px solid #EEF0F5;
}
.adm-feed li:last-child { border-bottom: 0; }
.adm-feed-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--pop); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem; text-transform: uppercase;
}
.adm-feed-avatar.tone-amber { background: #FDF1DC; color: #C9871E; }
.adm-feed-text strong { display: block; font-size: .9rem; color: var(--ink); margin-bottom: .15rem; }
.adm-feed-text strong a { color: inherit; text-decoration: none; }
.adm-feed-text strong a:hover { color: var(--pop); }

/* ===================== Responsive ===================== */
@media (max-width: 1280px) {
    .adm-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .adm-row { grid-template-columns: 1fr; }
    .adm-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .adm-shell { grid-template-columns: 80px 1fr; }
    .adm-brand-badge, .adm-nav-section, .adm-nav-item span, .adm-profile-info, .adm-back { display: none; }
    .adm-nav-item { justify-content: center; padding: .65rem; }
    .adm-nav-item svg { opacity: 1; }
    .adm-brand { justify-content: center; gap: 0; }
    .adm-topbar-search { display: none; }
}
@media (max-width: 720px) {
    .adm-shell { grid-template-columns: 1fr; }
    .adm-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 1rem; }
    .adm-topbar { padding: 1rem; }
    .adm-content { padding: 1rem; }
    .adm-kpi-grid { grid-template-columns: 1fr; }
    .adm-page-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   FASE 7.2 — Usuarios + Matriculas (admin)
============================================================ */

.adm-mini-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 0 0 22px;
}
.adm-mini {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    transition: transform .18s, box-shadow .18s;
}
.adm-mini:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(11,20,40,.06); }
.adm-mini-n {
    font-family: var(--font-display, "Inter Tight", sans-serif);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}
.adm-mini-l {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-2);
    margin-top: 6px;
    font-weight: 500;
}

.adm-filterbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    margin: 0 0 18px;
}
.adm-filterbar select,
.adm-filterbar .btn { height: 38px; font-size: .9rem; }
.adm-filterbar select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    background: #F8FAFD;
    color: var(--ink);
    min-width: 160px;
}
.adm-search {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F1F5FB;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    height: 38px;
    color: var(--ink-2);
}
.adm-search input {
    flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink);
}

.adm-card-flush { padding: 0; overflow: hidden; }
.adm-card-flush .empty { padding: 40px 20px; text-align: center; color: var(--ink-2); }

.adm-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.adm-table thead th {
    background: #F8FAFD;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--ink-2);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.adm-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    color: var(--ink);
}
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover { background: #FAFBFE; }
.adm-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.adm-row-actions { text-align: right; white-space: nowrap; }
.adm-row-actions .btn + .btn { margin-left: 4px; }

.adm-user-cell { display: flex; align-items: center; gap: 10px; }
.adm-user-cell .adm-feed-avatar { width: 36px; height: 36px; font-size: .85rem; }
.adm-user-cell strong { color: var(--ink); }

.adm-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    background: #EEF1F7;
    color: var(--ink-2);
    text-transform: lowercase;
    letter-spacing: .02em;
}
.adm-chip.chip-admin            { background: rgba(108, 79, 224, .12); color: #5538C8; }
.adm-chip.chip-student          { background: rgba(0, 112, 225, .10); color: var(--pop-text); }
.adm-chip.chip-active           { background: rgba(24, 169, 87, .12); color: #0E7E3F; }
.adm-chip.chip-completed        { background: rgba(24, 169, 87, .12); color: #0E7E3F; }
.adm-chip.chip-pending          { background: rgba(201, 135, 30, .14); color: #946018; }
.adm-chip.chip-pending_payment  { background: rgba(201, 135, 30, .14); color: #946018; }
.adm-chip.chip-blocked          { background: rgba(220, 53, 69, .12); color: #B02230; }
.adm-chip.chip-cancelled        { background: rgba(220, 53, 69, .12); color: #B02230; }
.adm-chip.chip-amber            { background: rgba(255, 184, 28, .18); color: #8A5B00; }
.adm-chip.chip-novo             { background: rgba(0, 112, 225, .10); color: var(--pop-text); }
.adm-chip.chip-em_analise       { background: rgba(201, 135, 30, .14); color: #946018; }
.adm-chip.chip-aprovado         { background: rgba(24, 169, 87, .12); color: #0E7E3F; }
.adm-chip.chip-recusado         { background: rgba(220, 53, 69, .12); color: #B02230; }
.adm-chip.chip-paid             { background: rgba(24, 169, 87, .12); color: #0E7E3F; }
.adm-chip.chip-failed           { background: rgba(220, 53, 69, .12); color: #B02230; }
.adm-chip.chip-refunded         { background: rgba(0, 112, 225, .10); color: var(--pop-text); }

.adm-list { list-style: none; padding: 0; margin: 0; }
.adm-list-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.adm-list-item:last-child { border-bottom: 0; }
.adm-list-item .adm-list-main { flex: 1; min-width: 0; }
.adm-list-item .adm-list-side { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }

.adm-progress-bar {
    background: #EEF1F7;
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
    margin: 6px 0 4px;
}
.adm-progress-bar.lg { height: 10px; }
.adm-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--pop), var(--pop-deep));
    border-radius: 999px;
    transition: width .4s;
}

.adm-keyvals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 24px;
}
.adm-keyvals > div { display: flex; flex-direction: column; gap: 2px; }
.adm-kv-l {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-2);
    font-weight: 600;
}
.adm-keyvals > div > a,
.adm-keyvals > div > span { color: var(--ink); font-weight: 500; }

.adm-timeline { list-style: none; padding: 0; margin: 0; }
.adm-timeline li {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    position: relative;
}
.adm-timeline li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 22px;
    bottom: -10px;
    width: 2px;
    background: var(--line);
}
.adm-timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pop);
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0, 112, 225, .15);
}
.adm-timeline-body strong { color: var(--ink); }

.adm-form { display: flex; flex-direction: column; gap: 16px; }
.adm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.adm-field { display: flex; flex-direction: column; gap: 6px; }
.adm-field > span {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.adm-field > span small { text-transform: none; letter-spacing: 0; }
.adm-field input,
.adm-field select,
.adm-field textarea {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
    background: #FFFFFF;
    transition: border-color .15s, box-shadow .15s;
}
.adm-field input:focus,
.adm-field select:focus,
.adm-field textarea:focus {
    outline: 0;
    border-color: var(--pop);
    box-shadow: 0 0 0 3px rgba(0, 112, 225, .15);
}
.adm-field input:disabled {
    background: #F1F5FB;
    color: var(--ink-2);
    cursor: not-allowed;
}
.adm-field-narrow { max-width: 100px; }
.adm-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}
.adm-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .92rem;
    color: var(--ink);
    cursor: pointer;
}
.adm-check input { width: 16px; height: 16px; accent-color: var(--pop); }
.adm-form textarea {
    min-height: 90px;
    resize: vertical;
    font-family: var(--font-mono, "JetBrains Mono", monospace);
    font-size: .88rem;
    line-height: 1.5;
}

.btn-danger {
    background: #DC3545;
    color: #FFFFFF;
    border: 1px solid #DC3545;
}
.btn-danger:hover { background: #B02230; border-color: #B02230; }

.adm-card-danger {
    border-color: rgba(220, 53, 69, .25);
    background: linear-gradient(180deg, #FFFFFF, #FEF6F7);
}
.adm-card-danger h3 { color: #B02230; }

/* Lista numerada explicativa (ex.: passo-a-passo do sorteio) */
.adm-steps {
    margin: 0;
    padding: 0 0 0 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--ink);
    line-height: 1.55;
}
.adm-steps li { padding-left: 4px; }
.adm-steps strong { color: var(--pop-text); }
.adm-steps em { font-style: italic; color: var(--ink-2); }

/* Grid de pessoas (lista de alunos elegiveis no sorteio) */
.adm-people-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.adm-people-grid li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #FFFFFF;
    transition: border-color .15s, transform .15s;
}
.adm-people-grid li:hover { border-color: rgba(0, 112, 225, .4); transform: translateY(-1px); }
.adm-people-grid .adm-feed-avatar { width: 34px; height: 34px; font-size: .8rem; flex-shrink: 0; }
.adm-people-info { min-width: 0; overflow: hidden; }
.adm-people-info strong { display: block; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   Member picker (checkbox cards) — usado no novo grupo de IC
============================================================ */
.member-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.member-pick { cursor: pointer; }
.member-pick input { position: absolute; opacity: 0; pointer-events: none; }
.member-pick-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #FFFFFF;
    transition: border-color .15s, background .15s, transform .15s;
    position: relative;
}
.member-pick-card:hover {
    border-color: rgba(0, 112, 225, .4);
    transform: translateY(-1px);
}
.member-pick input:checked + .member-pick-card {
    border-color: var(--pop);
    background: linear-gradient(135deg, rgba(0, 112, 225, .06), rgba(0, 112, 225, .02));
}
.member-pick input:focus-visible + .member-pick-card {
    box-shadow: 0 0 0 3px rgba(0, 112, 225, .15);
}
.member-pick-card .adm-feed-avatar {
    width: 38px; height: 38px; font-size: .9rem; flex-shrink: 0;
}
.member-pick-info {
    min-width: 0;
    flex: 1;
}
.member-pick-info strong {
    display: block;
    color: var(--ink);
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.member-pick-info small {
    display: block;
    font-size: .72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.member-pick-check {
    color: var(--pop);
    opacity: 0;
    transition: opacity .15s, transform .15s;
    transform: scale(.6);
    flex-shrink: 0;
}
.member-pick input:checked ~ .member-pick-card .member-pick-check,
.member-pick input:checked + .member-pick-card .member-pick-check {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   IC: pagina de detalhe da etapa + scroll suave nas ancoras
============================================================ */
html { scroll-behavior: smooth; }
.research-content { scroll-margin-top: 80px; }
.research-content section[id] { scroll-margin-top: 80px; }

.rs-stage-bignum {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display, "Inter Tight", sans-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--pop-text);
    background: rgba(0, 112, 225, .12);
    border: 2px solid rgba(0, 112, 225, .25);
}
.rs-stage-bignum.tone-green { color: #0E7E3F; background: rgba(24, 169, 87, .12); border-color: rgba(24, 169, 87, .25); }
.rs-stage-bignum.tone-amber { color: #946018; background: rgba(201, 135, 30, .14); border-color: rgba(201, 135, 30, .3); }
.rs-stage-bignum.tone-sky   { color: var(--pop-text); }
.rs-stage-bignum.tone-grey  { color: var(--ink-2); background: #EEF1F7; border-color: var(--line); }

/* ============================================================
   Topbar publico (main layout) — afirmacao de usuario logado
============================================================ */

/* Icone redondo do topbar (sino, mensagens) */
.nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    transition: border-color .15s, transform .15s, background .15s;
    text-decoration: none;
}
.nav-icon svg { width: 15px; height: 15px; }
.nav-icon:hover { border-color: rgba(0, 112, 225, .4); color: var(--pop-text); transform: translateY(-1px); }
.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--pop);
    color: #FFFFFF;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1;
    border: 2px solid #FFFFFF;
    min-width: 18px;
    text-align: center;
}

/* Pill do usuario logado (avatar + nome + chev) */
.user-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px 3px 3px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: border-color .15s, transform .15s, box-shadow .15s;
    user-select: none;
}
.user-pill:hover { border-color: rgba(0, 112, 225, .4); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(11,20,40,.05); }
.user-pill.open { border-color: var(--pop); box-shadow: 0 0 0 3px rgba(0, 112, 225, .12); }

.user-pill-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pop);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .8rem;
    overflow: hidden;
    flex-shrink: 0;
}
.user-pill-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-pill-avatar.lg { width: 44px; height: 44px; font-size: 1.1rem; }

.user-pill-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.user-pill-name {
    font-weight: 600;
    color: var(--ink);
    font-size: .8rem;
    white-space: nowrap;
}
.user-pill-role {
    font-size: .6rem;
    color: var(--pop-text);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}
.user-pill-chev {
    color: var(--ink-2);
    transition: transform .2s;
    flex-shrink: 0;
}
.user-pill.open .user-pill-chev { transform: rotate(180deg); color: var(--pop); }

/* Menu dropdown do usuario */
.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(11, 20, 40, .12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, visibility .2s, transform .2s;
    z-index: 100;
}
.user-pill.open .user-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}
.user-menu-name {
    font-weight: 600;
    color: var(--ink);
    font-size: .95rem;
    line-height: 1.2;
}
.user-menu-email {
    word-break: break-all;
    font-size: .78rem;
}
.user-menu a,
.user-menu-out {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--ink);
    font-size: .92rem;
    text-decoration: none;
    transition: background .15s, color .15s;
    cursor: pointer;
    width: 100%;
    background: transparent;
    border: 0;
    font: inherit;
    text-align: left;
}
.user-menu a:hover { background: rgba(0, 112, 225, .08); color: var(--pop-text); }
.user-menu a svg { color: var(--ink-2); flex-shrink: 0; }
.user-menu a:hover svg { color: var(--pop); }
.user-menu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.user-menu-out { color: #B02230; }
.user-menu-out:hover { background: rgba(220, 53, 69, .08); }
.user-menu-out svg { color: #B02230; }

/* Esconde texto do user-pill em mobile (so avatar) */
@media (max-width: 720px) {
    .user-pill-info { display: none; }
    .user-pill { padding: 4px; }
    .user-pill-chev { display: none; }
    .user-menu { right: -1rem; width: calc(100vw - 2rem); }
}

@media (max-width: 1100px) {
    .adm-mini-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .adm-mini-grid { grid-template-columns: repeat(2, 1fr); }
    .adm-table thead { display: none; }
    .adm-table tbody td { display: block; padding: 8px 16px; border: 0; }
    .adm-table tbody tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; }
    .adm-row-actions { text-align: left; padding-top: 10px !important; }
    .adm-filterbar { flex-direction: column; align-items: stretch; }
    .adm-filterbar select, .adm-search { width: 100%; }
}

/* ============================================================
   Formulario publico de candidatura a professor
============================================================ */
.section-form { padding: 4rem 0 6rem; }

.apply-shell {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    margin-top: 2rem;
    align-items: start;
}
.apply-form {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 12px 32px rgba(11, 20, 40, .04);
}
.apply-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.apply-row > .apply-field { flex: 1; min-width: 180px; }
.apply-field { display: flex; flex-direction: column; gap: 6px; }
.apply-field > span {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.apply-field input,
.apply-field textarea,
.apply-field select {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
    background: #FFFFFF;
    transition: border-color .15s, box-shadow .15s;
}
.apply-field input:focus,
.apply-field textarea:focus,
.apply-field select:focus {
    outline: 0;
    border-color: var(--pop);
    box-shadow: 0 0 0 4px rgba(0, 112, 225, .12);
}
.apply-field textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
    font-family: inherit;
}
.apply-field-narrow { max-width: 90px; flex: 0 0 auto !important; }

.apply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* Sidebar com "o que esperar" */
.apply-side {
    background: linear-gradient(180deg, #F6F9FE, #FFFFFF);
    border: 1px solid rgba(0, 112, 225, .15);
    border-radius: 22px;
    padding: 28px;
    position: sticky;
    top: 100px;
}
.apply-side h3 {
    font-family: var(--font-display, "Inter Tight", sans-serif);
    font-size: 1.4rem;
    margin: 0 0 16px;
    color: var(--ink);
}
.apply-side h4 {
    font-size: 1rem;
    margin: 0 0 8px;
    color: var(--ink);
}
.apply-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.apply-steps li {
    display: flex;
    gap: 10px;
    color: var(--ink);
    line-height: 1.5;
    font-size: .95rem;
}
.apply-steps li strong {
    color: var(--pop);
    font-family: var(--font-display, "Inter Tight", sans-serif);
    font-size: 1.05rem;
    flex-shrink: 0;
}
.apply-side-divider {
    height: 1px;
    background: var(--line);
    margin: 20px 0;
}
.apply-side a { color: var(--pop-text); text-decoration: underline; }

@media (max-width: 920px) {
    .apply-shell { grid-template-columns: 1fr; }
    .apply-side { position: static; }
}
@media (max-width: 540px) {
    .apply-form { padding: 20px; }
    .apply-row { flex-direction: column; gap: 14px; }
    .apply-actions { flex-direction: column; align-items: stretch; }
    .apply-actions .magnetic { width: 100%; }
    .apply-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   RESPONSIVO 100% — pass final de mobile
============================================================ */

/* Curso detalhe: stack em coluna unica no mobile (inline style usa class) */
@media (max-width: 920px) {
    .course-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .course-detail-grid aside {
        position: static !important;
    }
}

/* ============================================================
   ADMIN MOBILE — sidebar vira drawer (hamburger) abaixo de 1024px
============================================================ */
@media (max-width: 1024px) {
    /* Em vez de colapsar pra 80px no tablet, deixa ela como drawer escondido */
    .adm-shell { grid-template-columns: 1fr; position: relative; }
    .adm-side {
        position: fixed; top: 0; left: 0; bottom: 0;
        width: 260px; height: 100vh;
        transform: translateX(-100%);
        transition: transform .3s var(--ease);
        z-index: 200;
        box-shadow: 0 0 40px rgba(0,0,0,.3);
        flex-direction: column;
        padding: 1.5rem 1rem 1rem;
        flex-wrap: nowrap;
    }
    body.adm-drawer-open .adm-side { transform: translateX(0); }
    /* Reverte estilos do antigo breakpoint */
    .adm-brand-badge, .adm-nav-section, .adm-nav-item span,
    .adm-profile-info, .adm-back { display: revert; }
    .adm-nav-item { justify-content: flex-start; padding: .6rem .85rem; }
    .adm-brand { justify-content: flex-start; gap: .65rem; }
    .adm-topbar-search { display: flex; }

    /* Overlay quando drawer aberto */
    body.adm-drawer-open::after {
        content: "";
        position: fixed; inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 150;
    }

    /* Botao hamburger no topbar */
    .adm-burger {
        display: inline-flex !important;
        align-items: center; justify-content: center;
        width: 40px; height: 40px;
        background: #F4F5F8;
        border: 0; border-radius: 10px;
        color: var(--ink); cursor: pointer;
        margin-right: .65rem;
    }
    .adm-burger svg { width: 22px; height: 22px; }

    /* Topbar adapta */
    .adm-topbar { padding: 1rem 1.25rem; grid-template-columns: auto 1fr auto; gap: .75rem; }
    .adm-topbar-search { flex: 1; max-width: none; }
}

/* Hamburger so existe em mobile */
.adm-burger { display: none; }

@media (max-width: 720px) {
    /* Reverte mais coisas pra layout natural */
    .adm-shell { grid-template-columns: 1fr; }
    .adm-topbar { padding: .85rem 1rem; grid-template-columns: auto auto 1fr auto; gap: .5rem; }
    .adm-topbar-search { display: none; }
    .adm-content { padding: 1rem; }
    .adm-page-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .adm-page-head h1 { font-size: 1.5rem; }
    .adm-page-actions { width: 100%; }
    .adm-page-actions .btn { flex: 1; justify-content: center; }
    .adm-kpi-grid { grid-template-columns: 1fr; gap: 10px; }
    .adm-mini-grid { grid-template-columns: repeat(2, 1fr); }
    .adm-row, .adm-row-3 { grid-template-columns: 1fr; gap: 1rem; }
    .adm-card { padding: 1.25rem; border-radius: 12px; }
    .adm-card-head { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .adm-form-row { grid-template-columns: 1fr; }
    .adm-form-actions { flex-direction: column-reverse; }
    .adm-form-actions .btn { width: 100%; }
    .adm-keyvals { grid-template-columns: 1fr; gap: 10px 0; }
    .member-picker { grid-template-columns: 1fr; }
    .adm-people-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PUBLICO MOBILE — hero e secoes ajustados pra telas pequenas
============================================================ */
@media (max-width: 720px) {
    /* Hero h1 menor */
    .hero h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
    .hero { padding-top: 6rem !important; margin-top: -3rem; }
    .hero-tag-row { margin-bottom: 1.5rem; }
    .hero-stats { grid-template-columns: 1fr; margin-top: 2.5rem; gap: .75rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn,
    .hero-actions .magnetic { width: 100%; }
    .hero-actions .magnetic .btn { width: 100%; justify-content: center; }

    /* Section paddings menores */
    .section { padding: 3rem 0; }
    .section-head { margin-bottom: 2rem; }
    .section-head h2 { font-size: 1.8rem !important; }

    /* Buttons full-width na maioria dos contextos mobile */
    .btn-xl { padding: 1rem 1.5rem; font-size: 1rem; }

    /* Tabelas viram cards stackados */
    .table thead { display: none; }
    .table tbody tr {
        display: block;
        margin-bottom: .75rem;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--r-md);
    }
    .table tbody td {
        display: block; padding: .65rem 1rem;
        border-bottom: 1px solid var(--line);
    }
    .table tbody td:last-child { border-bottom: 0; }
    .table { border: 0; background: transparent; }

    /* CTA grande encolhe */
    .cta { padding: 3rem 1.5rem; }
    .cta h2 { font-size: clamp(1.8rem, 7vw, 3rem); }

    /* Footer empilha */
    .footer { padding: 3rem 1.5rem 2rem; margin: 0 .75rem; }
    .footer-bottom { grid-template-columns: 1fr; gap: .5rem; text-align: center; }

    /* Bento cards stack */
    .bento { grid-template-columns: 1fr; gap: .75rem; }
    .bento .cell { padding: 1.25rem; }
    .bento .cell h3 { font-size: 1.25rem; }
}

/* Mobile bem pequeno (<480px): ajustes finais */
@media (max-width: 480px) {
    :root { --gutter: 1rem; }
    .topbar { margin: .35rem var(--gutter) 0; }
    .topbar-inner { padding: .4rem .4rem .4rem 1rem; }
    .brand { font-size: 1.1rem; }
    .hero h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    .hero { padding: 5rem 0 2.5rem !important; margin-top: -2.5rem; }
    .container { padding: 0 var(--gutter); }
}

/* ============================================================
   Image picker — campo com preview + upload (reusable partial)
============================================================ */
.img-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.img-picker-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.img-picker-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: start;
}
.img-picker-preview {
    width: 160px;
    height: 120px;
    background: #F1F5FB;
    border: 1.5px dashed var(--line);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-picker-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.img-picker-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px;
    color: var(--ink-3);
    font-size: .8rem;
    text-align: center;
    padding: 12px;
}
.img-picker-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.img-picker-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    align-self: flex-start;
}
.img-picker-clear-wrap {
    margin-top: 4px;
    font-size: .82rem;
}
@media (max-width: 540px) {
    .img-picker-row { grid-template-columns: 1fr; }
    .img-picker-preview { width: 100%; height: 160px; }
}

/* ========================================================================
   Curriculo IA — componentes do produto de analise de curriculo
   Reutiliza os tokens (var(--*)) do design system "playful minimal".
   ======================================================================== */

/* Grade de cards (editais / itens) */
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

/* Card de edital */
.cv-card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    transition: transform var(--t-mid) var(--ease), border-color var(--t-mid), box-shadow var(--t-mid);
    position: relative;
}
.cv-card:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: 0 18px 50px -30px rgba(14,15,20,.4); }
.cv-card-eyebrow { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cv-card h3 { font-size: 1.35rem; margin: .85rem 0 .4rem; letter-spacing: -.02em; }
.cv-card p { font-size: .95rem; color: var(--ink-2); margin: 0 0 1.25rem; }
.cv-card-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.cv-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.cv-price { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; color: var(--ink); }
.cv-price .free { color: var(--ok); }

/* Tag pequena */
.cv-tag { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.cv-tag.req { background: #FEF3C7; color: #92400E; border-color: transparent; }
.cv-tag.opt { background: var(--bg-2); color: var(--ink-3); }

/* Barra de progresso */
.cv-progress { display: flex; align-items: center; gap: 1rem; }
.cv-progress-bar { flex: 1; height: 10px; background: var(--bg-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.cv-progress-fill { height: 100%; background: var(--pop); border-radius: 99px; transition: width .6s var(--ease); }
.cv-progress-num { font-family: var(--f-mono); font-size: .85rem; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Stepper — itens do edital */
.cv-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.cv-step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.6rem;
    transition: border-color var(--t-fast), box-shadow var(--t-mid);
    scroll-margin-top: 100px;
}
.cv-step.is-done { border-color: var(--ok); }
.cv-step.is-missing { border-color: var(--sun); }
.cv-step-head { display: flex; align-items: flex-start; gap: 1rem; }
.cv-step-num {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-weight: 800; font-size: 1.05rem;
    background: var(--bg-2); color: var(--ink); border: 1px solid var(--line);
}
.cv-step.is-done .cv-step-num { background: var(--ok); color: #fff; border-color: transparent; }
.cv-step-title { flex: 1; }
.cv-step-title h3 { font-size: 1.15rem; margin: 0 0 .25rem; line-height: 1.25; }
.cv-step-title p { font-size: .9rem; color: var(--ink-2); margin: 0; max-width: 62ch; }
.cv-step-flag { flex: 0 0 auto; }

/* Documentos anexados */
.cv-files { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-direction: column; gap: .55rem; }
.cv-file { display: flex; align-items: center; gap: .75rem; padding: .65rem .85rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); }
.cv-file-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; background: var(--bg-2); display: inline-flex; align-items: center; justify-content: center; color: var(--pop-text); }
.cv-file-info { flex: 1; min-width: 0; }
.cv-file-name { font-weight: 600; font-size: .9rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-file-meta { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); }
.cv-file-del { flex: 0 0 auto; background: none; border: none; color: var(--ink-3); font-size: .8rem; cursor: pointer; padding: .3rem .5rem; border-radius: 6px; transition: color var(--t-fast), background var(--t-fast); }
.cv-file-del:hover { color: var(--bad); background: #FEE2E2; }

/* Dropzone / upload */
.cv-drop { margin-top: 1.1rem; }
.cv-drop label {
    display: flex; align-items: center; gap: .85rem;
    border: 1.5px dashed var(--line); border-radius: var(--r-md);
    padding: .9rem 1.1rem; cursor: pointer; color: var(--ink-2);
    transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
    background: var(--bg);
}
.cv-drop label:hover { border-color: var(--pop); color: var(--ink); background: var(--surface); }
.cv-drop input[type=file] { display: none; }
.cv-drop-ico { color: var(--pop-text); }
.cv-drop-text { flex: 1; font-size: .9rem; }
.cv-drop-text b { color: var(--ink); }
.cv-drop-name { font-family: var(--f-mono); font-size: .8rem; color: var(--pop-text); }

/* Barra fixa de envio */
.cv-submit-bar {
    position: sticky; bottom: 0; z-index: 5;
    display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
    background: var(--ink); color: var(--bg);
    border-radius: var(--r-lg); padding: 1.25rem 1.6rem; margin-top: 2rem;
    box-shadow: 0 20px 50px -25px rgba(14,15,20,.6);
}
.cv-submit-bar .cv-submit-info { font-size: .92rem; }
.cv-submit-bar .cv-submit-info b { color: #fff; }
.cv-submit-bar .cv-progress-bar { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.15); min-width: 160px; }

/* ===== Relatorio da analise ===== */
.cv-report-hero { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: center; }
.cv-score-ring {
    width: 180px; height: 180px; border-radius: 50%;
    display: grid; place-items: center; position: relative;
    background: conic-gradient(var(--pop) calc(var(--pct) * 1%), var(--bg-2) 0);
}
.cv-score-ring::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.cv-score-inner { position: relative; z-index: 1; text-align: center; }
.cv-score-inner .n { font-family: var(--f-display); font-weight: 800; font-size: 2.8rem; line-height: 1; letter-spacing: -.04em; }
.cv-score-inner .l { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: .25rem; }

.cv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cv-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.6rem; }
.cv-panel h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.cv-panel h3 .dot-ico { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; }
.cv-panel ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.cv-panel li { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.cv-panel li svg { flex: 0 0 auto; margin-top: .15rem; }
.cv-tone-bad .dot-ico { background: #FEE2E2; color: var(--bad); }
.cv-tone-do  .dot-ico { background: #DBEAFE; color: var(--pop-text); }
.cv-tone-ok  .dot-ico { background: #DCFCE7; color: var(--ok); }

/* Item da analise */
.cv-item-analysis { background: var(--surface); border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r-md); padding: 1.25rem 1.4rem; }
.cv-item-analysis.s-completo   { border-left-color: var(--ok); }
.cv-item-analysis.s-incompleto { border-left-color: var(--sun); }
.cv-item-analysis.s-faltando   { border-left-color: var(--bad); }
.cv-item-analysis .cv-ia-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cv-item-analysis h4 { font-size: 1.02rem; margin: 0; }
.cv-item-analysis .cv-ia-body { color: var(--ink-2); font-size: .93rem; margin: .6rem 0 0; }
.cv-item-analysis .cv-ia-recs { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .9rem; }
.cv-item-analysis .cv-ia-recs li { margin-bottom: .3rem; }

.st-badge { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .28rem .7rem; border-radius: 99px; font-weight: 600; }
.st-completo   { background: #DCFCE7; color: #14532D; }
.st-incompleto { background: #FEF3C7; color: #92400E; }
.st-faltando   { background: #FEE2E2; color: #7F1D1D; }

.cv-engine-note { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

@media (max-width: 760px) {
    .cv-cols { grid-template-columns: 1fr; }
    .cv-report-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .cv-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   Curriculo IA — Rubrica / screening (atingido X de Y por criterio)
   ======================================================================== */

.cv-rubric { display: flex; flex-direction: column; gap: 2rem; }

/* Grupo (Criterio 7, 8...) */
.cv-group { }
.cv-group-head { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--ink); }
.cv-group-code { font-family: var(--f-mono); font-size: .85rem; font-weight: 600; color: var(--pop-text); }
.cv-group-title { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin: 0; flex: 1; }
.cv-group-score { font-family: var(--f-mono); font-size: .9rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cv-group-rule { font-size: .85rem; color: var(--ink-3); width: 100%; margin-top: -.4rem; }

/* Linha de criterio (folha) */
.cv-crit {
    background: var(--surface); border: 1px solid var(--line); border-left-width: 4px;
    border-left-color: var(--line); border-radius: var(--r-md);
    padding: 1.25rem 1.4rem; margin-bottom: 1rem; scroll-margin-top: 100px;
    transition: border-color var(--t-fast);
}
.cv-crit.s-completo   { border-left-color: var(--ok); }
.cv-crit.s-parcial    { border-left-color: var(--sun); }
.cv-crit.s-incompleto { border-left-color: var(--line); }
.cv-crit.s-faltando   { border-left-color: var(--bad); }

.cv-crit-top { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.cv-crit-main { flex: 1; min-width: 240px; }
.cv-crit-code { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); letter-spacing: .08em; }
.cv-crit-title { font-size: 1.08rem; font-weight: 600; margin: .1rem 0 .35rem; color: var(--ink); line-height: 1.25; }
.cv-crit-rule { font-size: .88rem; color: var(--ink-2); margin: 0 0 .5rem; }
.cv-crit-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .25rem; }
.cv-crit-instr { font-size: .82rem; color: var(--ink-3); margin: .5rem 0 0; }

/* Bloco de pontuacao do criterio */
.cv-crit-score { flex: 0 0 auto; text-align: right; min-width: 150px; }
.cv-crit-points { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; line-height: 1; }
.cv-crit-points .of { color: var(--ink-3); font-weight: 600; font-size: .8em; }
.cv-crit-note { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: .25rem; }
.cv-mini-bar { height: 7px; width: 150px; background: var(--bg-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); margin-top: .5rem; margin-left: auto; }
.cv-mini-fill { height: 100%; border-radius: 99px; background: var(--pop); transition: width .5s var(--ease); }
.cv-crit.s-completo .cv-mini-fill { background: var(--ok); }
.cv-crit.s-parcial  .cv-mini-fill { background: var(--sun); }

/* Barra de resumo (topo do pedido / relatorio) */
.cv-scorecard {
    display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 1.5rem 1.75rem;
}
.cv-scorecard-big { font-family: var(--f-display); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.cv-scorecard-big .of { color: var(--ink-3); font-size: .5em; font-weight: 700; }
.cv-scorecard-l { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

@media (max-width: 640px) {
    .cv-crit-score { text-align: left; min-width: 0; width: 100%; }
    .cv-mini-bar { margin-left: 0; width: 100%; }
    .cv-scorecard { grid-template-columns: 1fr; text-align: center; }
}

/* ========================================================================
   Curriculo IA — CLEAN + MOBILE v2 (camada final; sobrescreve o necessario)
   ======================================================================== */

/* ---- Ritmo mais clean no desktop ---- */
.hero h1 { letter-spacing: -.035em; }
.footer-big { opacity: .04; }              /* palavra gigante do rodape mais discreta */
.blob { opacity: .55; }                     /* blobs menos "sujos" */

/* ---- Split responsivo (conteudo + lateral) ---- */
.cv-split { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.cv-split.sm { grid-template-columns: 1fr 320px; gap: 1.5rem; }
.cv-side { position: sticky; top: 100px; }

@media (max-width: 900px) {
    .cv-split, .cv-split.sm { grid-template-columns: 1fr; gap: 1.5rem; }
    .cv-side { position: static; top: 0; }
}

/* ---- Topbar mobile: nav some, fica brand + acoes ---- */
@media (max-width: 820px) {
    .main-nav { display: none; }
    .topbar-inner { grid-template-columns: 1fr auto; padding: .3rem .35rem .3rem 1.1rem; gap: .5rem; }
    .topbar { top: .5rem; margin-top: .5rem; }
    .user-pill { padding: .3rem .35rem; }
    .user-pill-role { display: none; }
}
@media (max-width: 480px) {
    .user-pill-info { display: none; }      /* so o avatar no celular */
    .nav-actions .btn-sm { padding: .5rem .85rem; font-size: .82rem; }
}

/* ---- Componentes cv-* no mobile ---- */
@media (max-width: 720px) {
    .cv-grid { grid-template-columns: 1fr; gap: 1rem; }
    .cv-card { padding: 1.25rem; }

    .cv-rubric { gap: 1.25rem; }
    .cv-group-head { border-bottom-width: 1px; }
    .cv-group-title { font-size: 1.1rem; }
    .cv-crit { padding: 1rem 1.1rem; }
    .cv-crit-top { flex-direction: column; gap: .5rem; }
    .cv-crit-main { min-width: 0; }
    .cv-crit-score { text-align: left; min-width: 0; width: 100%; }
    .cv-crit-points { font-size: 1.25rem; }
    .cv-mini-bar { margin-left: 0; width: 100%; }

    .cv-scorecard { grid-template-columns: 1fr; text-align: left; gap: 1rem; padding: 1.25rem 1.35rem; }
    .cv-report-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 1.25rem; }
    .cv-score-ring { width: 150px; height: 150px; }
    .cv-cols { grid-template-columns: 1fr; }

    .cv-submit-bar { flex-direction: column; align-items: stretch; gap: 1rem; text-align: center; position: static; }
    .cv-submit-bar form, .cv-submit-bar .btn { width: 100%; justify-content: center; }
    .cv-submit-bar .cv-progress { max-width: none; }

    .checkout { padding: 1.5rem; }
    .cv-price { font-size: 2rem !important; }

    /* uploads / arquivos */
    .cv-file { flex-wrap: wrap; }
    .cv-drop label { padding: .85rem 1rem; }

    /* forms empilham */
    .form-row { flex-direction: column; gap: .75rem; }
    .form-row > label, .form-row > label.grow { width: 100%; min-width: 0; flex: 1 1 auto; }

    /* tabelas admin rolam lateralmente */
    .adm-card-flush { overflow-x: auto; }
    .adm-table { min-width: 560px; }
}

/* Botao de submit no rodape do pedido nao gruda no mobile (evita cobrir conteudo) */
@media (max-width: 720px) {
    .cv-submit-bar { border-radius: var(--r-lg); }
}

/* ===== Wizard de etapas (1 tópico por vez) ===== */
.cv-wizsteps { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.cv-wizstep {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--f-mono); font-size: .8rem; font-weight: 600;
    background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
    transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.cv-wizstep:hover { border-color: var(--ink); color: var(--ink); }
.cv-wizstep.is-done { border-color: var(--ok); color: var(--ok); }
.cv-wizstep.is-current { background: var(--pop); color: #fff; border-color: var(--pop); transform: scale(1.08); }
.cv-wizstep.is-current.is-done { background: var(--pop); color: #fff; }

.cv-wiznav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.cv-wiznav > form { margin: 0; }
@media (max-width: 520px) {
    .cv-wiznav .btn { padding: .8rem 1.1rem; font-size: .9rem; }
    .cv-wizstep { width: 30px; height: 30px; font-size: .72rem; }
}
