/* ==========================================================================
   BROCÔ — DESIGN SYSTEM
   Dark premium · mobile-first · sem dependências externas
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */

:root {
    /* Superfícies */
    --bg: #050509;
    --bg-2: #0B0B12;
    --card: #111118;
    --card-2: #171720;
    --card-3: #1E1E2A;

    /* Marca */
    --violet: #8B5CF6;
    --violet-dark: #6D3EF0;
    --magenta: #EC4899;
    --pink: #FF3EA5;
    --gold: #F5B942;
    --cyan: #22D3EE;
    --green: #22C55E;
    --red: #EF4444;

    /* Texto */
    --text: #F8FAFC;
    --text-2: #A1A1AA;
    --text-3: #6B6B76;

    /* Bordas e vidro */
    --border: rgba(255, 255, 255, .07);
    --border-2: rgba(255, 255, 255, .12);
    --glass: rgba(17, 17, 24, .72);
    --glass-strong: rgba(11, 11, 18, .92);

    /* Gradientes */
    --grad-brand: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 55%, var(--pink) 100%);
    --grad-gold: linear-gradient(135deg, #FFD98A 0%, var(--gold) 100%);
    --grad-dark: linear-gradient(180deg, rgba(5, 5, 9, 0) 0%, rgba(5, 5, 9, .55) 45%, rgba(5, 5, 9, .96) 100%);

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, .55);
    --glow-violet: 0 0 0 1px rgba(139, 92, 246, .35), 0 8px 32px rgba(139, 92, 246, .25);
    --glow-pink: 0 0 24px rgba(255, 62, 165, .35);

    /* Raios */
    --r-sm: 10px;
    --r: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
    --r-full: 999px;

    /* Espaçamento */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;

    /* Tipografia */
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Layout */
    --header-h: 60px;
    --nav-h: 64px;
    --max-w: 1240px;
    --gutter: 16px;

    /* Movimento */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --fast: .16s;
    --normal: .26s;
    --slow: .4s;

    /* Área segura (iPhone com notch / gesture bar) */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

/* ------------------------------------------------------------- 2. RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100dvh;
    overflow-x: hidden;
    /* Evita que o conteúdo fique atrás da bottom nav no mobile */
    padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
    /* iOS: evita o cinza de highlight ao tocar */
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5 {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: var(--violet);
    color: #fff;
}

/* Scrollbar discreta no desktop */
@media (pointer: fine) {
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: var(--bg-2); }
    ::-webkit-scrollbar-thumb { background: var(--card-3); border-radius: var(--r-full); border: 2px solid var(--bg-2); }
    ::-webkit-scrollbar-thumb:hover { background: #2b2b3a; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ------------------------------------------------------- 3. UTILITÁRIOS */

.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: max(var(--gutter), var(--safe-left));
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: var(--sp-4);
    z-index: 999;
    padding: var(--sp-3) var(--sp-4);
    background: var(--violet);
    color: #fff;
    border-radius: var(--r-sm);
    font-weight: 700;
    transition: top var(--fast) var(--ease);
}

.skip-link:focus {
    top: calc(var(--safe-top) + var(--sp-2));
}

.text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tiny  { font-size: 12px; }
.bold  { font-weight: 700; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

.stack    { display: flex; flex-direction: column; gap: var(--sp-4); }
.row      { display: flex; align-items: center; gap: var(--sp-3); }
.row-wrap { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.between  { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.grow     { flex: 1 1 auto; min-width: 0; }

/* --------------------------------------------------------- 4. CABEÇALHO */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: var(--safe-top);
    background: var(--glass-strong);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid var(--border);
    transition: transform var(--normal) var(--ease);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.logo img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 14px rgba(255, 62, 165, .28));
}

@media (min-width: 900px) {
    .logo img { height: 42px; }
}

/* Ícones da marca (PNG com transparência, do catálogo oficial) */
.broco-icon {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
}

/* A nav inferior usa opacidade para diferenciar ativo/inativo,
   preservando as cores originais do ícone. */
.bottom-nav__item .broco-icon {
    opacity: .48;
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.bottom-nav__item.is-active .broco-icon {
    opacity: 1;
    transform: translateY(-1px);
    filter: drop-shadow(0 3px 10px rgba(139, 92, 246, .55));
}

.icon-btn .broco-icon { opacity: .72; transition: opacity var(--fast) var(--ease); }
.icon-btn:hover .broco-icon,
.icon-btn:active .broco-icon { opacity: 1; }

.chip .broco-icon { margin-right: -2px; }

.header__search {
    flex: 1 1 auto;
    min-width: 0;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
}

/* Ícone-botão com alvo de toque confortável (>= 44px) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-full);
    color: var(--text-2);
    position: relative;
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.icon-btn:hover,
.icon-btn:active {
    background: var(--card-2);
    color: var(--text);
}

.icon-btn__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: var(--pink);
    border-radius: var(--r-full);
    border: 2px solid var(--bg-2);
}

/* ------------------------------------------------------------ 5. BOTÕES */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 46px;
    padding: 0 var(--sp-5);
    border-radius: var(--r-full);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--fast) var(--ease),
                box-shadow var(--fast) var(--ease),
                background var(--fast) var(--ease),
                opacity var(--fast) var(--ease);
    user-select: none;
}

.btn:active { transform: scale(.97); }

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: .5;
    pointer-events: none;
}

.btn--primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 6px 20px rgba(139, 92, 246, .32);
}

.btn--primary:hover { box-shadow: 0 10px 28px rgba(236, 72, 153, .4); }

.btn--ghost {
    background: var(--card-2);
    color: var(--text);
    border: 1px solid var(--border-2);
}

.btn--ghost:hover { background: var(--card-3); }

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--border-2);
    color: var(--text);
}

.btn--gold {
    background: var(--grad-gold);
    color: #26200C;
    box-shadow: 0 6px 20px rgba(245, 185, 66, .28);
}

.btn--green {
    background: var(--green);
    color: #04210F;
}

.btn--danger {
    background: rgba(239, 68, 68, .14);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, .3);
}

.btn--sm { min-height: 38px; padding: 0 var(--sp-4); font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 var(--sp-8); font-size: 16px; }
.btn--block { display: flex; width: 100%; }

.btn__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.btn.is-loading { pointer-events: none; opacity: .75; }

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

/* ------------------------------------------------------------- 6. CHIPS */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 var(--sp-4);
    border-radius: var(--r-full);
    background: var(--card-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--fast) var(--ease);
}

.chip:hover { border-color: var(--border-2); color: var(--text); }

.chip.is-active {
    background: rgba(139, 92, 246, .16);
    border-color: rgba(139, 92, 246, .5);
    color: #DDD2FF;
}

.chip--remove { padding-right: var(--sp-2); }

.chip__x {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    font-size: 11px;
}

/* Faixa rolável horizontal (padrão mobile) */
.scroller {
    display: flex;
    gap: var(--sp-2);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-block: var(--sp-1);
    /* Sangria até a borda da tela, mantendo o alinhamento do container */
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
}

.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex-shrink: 0; }

/* ------------------------------------------------------------ 7. BADGES */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge--available { background: rgba(34, 197, 94, .2);  color: #6EE7A0; border: 1px solid rgba(34, 197, 94, .38); }
.badge--verified  { background: rgba(34, 211, 238, .16); color: #7DE4F5; border: 1px solid rgba(34, 211, 238, .34); }
.badge--premium   { background: rgba(245, 185, 66, .18); color: #FFD98A; border: 1px solid rgba(245, 185, 66, .38); }
.badge--new       { background: rgba(139, 92, 246, .2);  color: #C9B6FF; border: 1px solid rgba(139, 92, 246, .4); }
.badge--trending  { background: rgba(255, 62, 165, .18); color: #FF9BCF; border: 1px solid rgba(255, 62, 165, .38); }
.badge--sponsored { background: rgba(255, 255, 255, .1); color: var(--text-2); border: 1px solid var(--border-2); }
.badge--black     { background: #000; color: var(--gold); border: 1px solid rgba(245, 185, 66, .5); }
.badge--danger    { background: rgba(239, 68, 68, .16); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, .34); }

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.dot--pulse { animation: pulse 2s var(--ease) infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .45; transform: scale(.82); }
}

/* --------------------------------------------------- 8. CARD DE PERFIL */

.card {
    position: relative;
    display: block;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    transition: transform var(--normal) var(--ease),
                border-color var(--normal) var(--ease),
                box-shadow var(--normal) var(--ease);
    isolation: isolate;
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-4px);
        border-color: rgba(139, 92, 246, .4);
        box-shadow: var(--shadow-lg);
    }
    .card:hover .card__img { transform: scale(1.05); }
}

.card:active { transform: scale(.985); }

.card__media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--card-2), var(--card-3));
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--slow) var(--ease);
}

.card__overlay {
    position: absolute;
    inset: 0;
    background: var(--grad-dark);
    pointer-events: none;
}

.card__top {
    position: absolute;
    top: var(--sp-3);
    left: var(--sp-3);
    right: var(--sp-3);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-2);
    z-index: 2;
}

.card__badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.card__fav {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-full);
    background: rgba(5, 5, 9, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-2);
    color: var(--text-2);
    flex-shrink: 0;
    transition: all var(--fast) var(--ease);
}

.card__fav:active { transform: scale(.88); }
.card__fav.is-active { color: var(--pink); background: rgba(255, 62, 165, .18); border-color: rgba(255, 62, 165, .45); }
.card__fav svg { width: 19px; height: 19px; }

.card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--sp-4);
    z-index: 2;
}

.card__name {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.card__age {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
}

.card__location {
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card__meta {
    margin-top: var(--sp-3);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: 12.5px;
    font-weight: 700;
}

.card__score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--cyan);
}

.card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--gold);
}

.card--sponsored { border-color: rgba(245, 185, 66, .28); }

/* Card compacto para listas horizontais */
.card--compact .card__media { aspect-ratio: 4 / 5; }

/* --------------------------------------------------------- 9. SEÇÕES */

.section {
    margin-top: var(--sp-8);
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
}

.section__title {
    font-size: 19px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.section__subtitle {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 2px;
}

.section__link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--violet);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-height: 44px;
}

/* Grade responsiva: 2 colunas no celular, cresce sozinha */
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
}

@media (min-width: 600px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); } }
@media (min-width: 900px)  { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Trilha horizontal para as seções da home */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    gap: var(--sp-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: var(--sp-2);
}

.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

@media (min-width: 600px)  { .rail { grid-auto-columns: 30%; gap: var(--sp-4); } }
@media (min-width: 900px)  { .rail { grid-auto-columns: 23%; } }
@media (min-width: 1200px) { .rail { grid-auto-columns: 18.5%; } }

/* ----------------------------------------------------------- 10. HERO */

.hero {
    position: relative;
    padding: var(--sp-10) 0 var(--sp-8);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    height: 380px;
    background: radial-gradient(closest-side, rgba(139, 92, 246, .28), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(closest-side, rgba(255, 62, 165, .2), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 var(--sp-3);
    border-radius: var(--r-full);
    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(139, 92, 246, .28);
    color: #C9B6FF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.hero__title {
    margin-top: var(--sp-4);
    font-size: clamp(34px, 10vw, 60px);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.hero__subtitle {
    margin-top: var(--sp-4);
    font-size: clamp(15px, 4vw, 18px);
    color: var(--text-2);
    max-width: 30ch;
}

.hero__actions {
    margin-top: var(--sp-6);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

.hero__stats {
    margin-top: var(--sp-8);
    display: flex;
    gap: var(--sp-6);
}

.hero__stat-value {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.hero__stat-label {
    font-size: 12px;
    color: var(--text-2);
}

@media (min-width: 900px) {
    .hero { padding: var(--sp-16) 0 var(--sp-12); }
    .hero__subtitle { max-width: 46ch; }
}

/* ------------------------------------------------------ 11. FORMULÁRIOS */

.field { margin-bottom: var(--sp-4); }

.label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

.hint {
    margin-top: 5px;
    font-size: 12.5px;
    color: var(--text-3);
}

.input,
.textarea,
.select {
    width: 100%;
    min-height: 50px;
    padding: 13px var(--sp-4);
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: var(--r);
    color: var(--text);
    /* 16px evita o zoom automático do iOS ao focar o campo */
    font-size: 16px;
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
    appearance: none;
    -webkit-appearance: none;
}

.input::placeholder,
.textarea::placeholder { color: var(--text-3); }

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
}

.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--sp-4) center;
    padding-right: var(--sp-10);
}

.error-text {
    margin-top: 6px;
    font-size: 12.5px;
    color: #FCA5A5;
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-group { position: relative; }

.input-group .input { padding-left: 46px; }

.input-group__icon {
    position: absolute;
    left: var(--sp-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    pointer-events: none;
    display: flex;
}

/* Interruptor acessível */
.switch {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    cursor: pointer;
    min-height: 44px;
}

.switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.switch__track {
    width: 48px;
    height: 28px;
    border-radius: var(--r-full);
    background: var(--card-3);
    border: 1px solid var(--border-2);
    position: relative;
    transition: background var(--fast) var(--ease);
    flex-shrink: 0;
}

.switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-2);
    transition: transform var(--normal) var(--ease), background var(--fast) var(--ease);
}

.switch input:checked + .switch__track { background: var(--violet); border-color: var(--violet); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--violet); outline-offset: 2px; }

/* Caixa de seleção como bloco tocável */
.check-tile {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border-radius: var(--r);
    background: var(--card);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all var(--fast) var(--ease);
    min-height: 56px;
}

.check-tile:has(input:checked) {
    border-color: var(--violet);
    background: rgba(139, 92, 246, .1);
}

.check-tile input { accent-color: var(--violet); width: 20px; height: 20px; flex-shrink: 0; }

/* ------------------------------------------------------- 12. NAV INFERIOR */

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--glass-strong);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-top: 1px solid var(--border);
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-3);
    font-size: 10.5px;
    font-weight: 600;
    position: relative;
    transition: color var(--fast) var(--ease);
}

.bottom-nav__item svg { width: 22px; height: 22px; }

.bottom-nav__item.is-active { color: var(--text); }

.bottom-nav__item.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--grad-brand);
}

.bottom-nav__item.is-active svg { filter: drop-shadow(0 0 8px rgba(139, 92, 246, .55)); }

.bottom-nav__badge {
    position: absolute;
    top: 8px;
    right: calc(50% - 18px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    font-size: 9.5px;
    font-weight: 800;
    color: #fff;
    background: var(--pink);
    border-radius: var(--r-full);
}

/* No desktop a navegação sobe para o topo */
@media (min-width: 900px) {
    body { padding-bottom: 0; }
    .bottom-nav { display: none; }
    .desktop-nav { display: flex !important; }
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: var(--sp-1);
}

.desktop-nav__item {
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-full);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-2);
    transition: all var(--fast) var(--ease);
}

.desktop-nav__item:hover { color: var(--text); background: var(--card-2); }
.desktop-nav__item.is-active { color: var(--text); background: var(--card-2); }

/* -------------------------------------------------------- 13. ESQUELETOS */

.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--card-2);
    border-radius: var(--r);
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent);
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer { to { transform: translateX(100%); } }

.skeleton--card { aspect-ratio: 3 / 4; border-radius: var(--r-lg); }
.skeleton--line { height: 12px; border-radius: var(--r-full); }
.skeleton--title { height: 20px; width: 60%; border-radius: var(--r-full); }

/* ------------------------------------------------------ 14. ESTADO VAZIO */

.empty {
    text-align: center;
    padding: var(--sp-12) var(--sp-5);
    border-radius: var(--r-lg);
    background: var(--card);
    border: 1px dashed var(--border-2);
}

.empty__emoji {
    font-size: 44px;
    line-height: 1;
    margin-bottom: var(--sp-4);
    filter: grayscale(.2);
}

.empty__title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: var(--sp-2);
}

.empty__text {
    font-size: 14px;
    color: var(--text-2);
    max-width: 36ch;
    margin: 0 auto var(--sp-5);
}

/* ----------------------------------------------------------- 15. TOASTS */

.toasts {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(var(--nav-h) + var(--safe-bottom) + var(--sp-4));
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    width: min(440px, calc(100vw - var(--sp-8)));
    pointer-events: none;
}

@media (min-width: 900px) {
    .toasts { bottom: var(--sp-6); }
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border-radius: var(--r);
    background: var(--glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 600;
    pointer-events: auto;
    animation: toast-in var(--normal) var(--ease);
}

.toast.is-leaving { animation: toast-out var(--normal) var(--ease) forwards; }

.toast--success { border-color: rgba(34, 197, 94, .4); }
.toast--error   { border-color: rgba(239, 68, 68, .4); }
.toast--info    { border-color: rgba(34, 211, 238, .4); }

.toast__icon { flex-shrink: 0; display: flex; }
.toast--success .toast__icon { color: var(--green); }
.toast--error .toast__icon   { color: var(--red); }
.toast--info .toast__icon    { color: var(--cyan); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(10px) scale(.96); }
}

/* ------------------------------------------------------ 16. MODAL / SHEET */

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(5, 5, 9, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fade-in var(--normal) var(--ease);
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* No celular vira bottom sheet; no desktop, modal central */
.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 301;
    max-height: 88dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--sp-5);
    padding-bottom: calc(var(--sp-5) + var(--safe-bottom));
    background: var(--bg-2);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-top: 1px solid var(--border-2);
    box-shadow: var(--shadow-lg);
    animation: sheet-up var(--normal) var(--ease);
}

@keyframes sheet-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.sheet__handle {
    width: 40px;
    height: 4px;
    border-radius: var(--r-full);
    background: var(--card-3);
    margin: 0 auto var(--sp-4);
}

.sheet__title {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: var(--sp-2);
}

@media (min-width: 700px) {
    .sheet {
        left: 50%;
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%);
        width: min(520px, calc(100vw - var(--sp-8)));
        border-radius: var(--r-xl);
        border: 1px solid var(--border-2);
        animation: modal-in var(--normal) var(--ease);
    }

    @keyframes modal-in {
        from { opacity: 0; transform: translate(-50%, -46%) scale(.97); }
        to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }

    .sheet__handle { display: none; }
}

/* -------------------------------------------------------- 17. GATE 18+ */

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-items: center;
    padding: var(--sp-5);
    background: rgba(5, 5, 9, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.age-gate__box {
    width: min(440px, 100%);
    padding: var(--sp-8) var(--sp-6);
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border-2);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
}

.age-gate__seal {
    width: 68px;
    height: 68px;
    margin: 0 auto var(--sp-5);
    display: grid;
    place-items: center;
    border-radius: var(--r-full);
    background: var(--grad-brand);
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    box-shadow: var(--glow-pink);
}

/* ------------------------------------------------------- 18. INSTALL PWA */

.install-prompt {
    position: fixed;
    left: var(--sp-4);
    right: var(--sp-4);
    bottom: calc(var(--nav-h) + var(--safe-bottom) + var(--sp-3));
    z-index: 350;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border-radius: var(--r-lg);
    background: var(--glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, .35);
    box-shadow: var(--shadow-lg), var(--glow-violet);
    animation: install-in var(--slow) var(--ease);
}

@keyframes install-in {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.install-prompt__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    object-fit: cover;
    background: var(--bg);
    border: 1px solid var(--border-2);
    flex-shrink: 0;
}

.install-prompt__title { font-size: 14.5px; font-weight: 800; }
.install-prompt__text  { font-size: 12.5px; color: var(--text-2); }

.install-prompt__close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--r-full);
    color: var(--text-3);
    flex-shrink: 0;
}

@media (min-width: 900px) {
    .install-prompt { left: auto; right: var(--sp-6); bottom: var(--sp-6); width: 380px; }
}

/* ---------------------------------------------------------- 19. RODAPÉ */

.footer {
    margin-top: var(--sp-16);
    padding: var(--sp-10) 0 var(--sp-8);
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
}

@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }

.footer__title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-3);
    margin-bottom: var(--sp-3);
}

.footer__link {
    display: block;
    padding: 7px 0;
    font-size: 13.5px;
    color: var(--text-2);
    transition: color var(--fast) var(--ease);
}

.footer__link:hover { color: var(--text); }

.footer__bottom {
    margin-top: var(--sp-8);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-3);
}

/* --------------------------------------------------------- 20. DIVERSOS */

.divider {
    height: 1px;
    background: var(--border);
    margin: var(--sp-6) 0;
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
}

.panel--glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.alert {
    display: flex;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border-radius: var(--r);
    font-size: 13.5px;
    line-height: 1.5;
}

.alert--info    { background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .22); color: #A5EEF8; }
.alert--warn    { background: rgba(245, 185, 66, .08); border: 1px solid rgba(245, 185, 66, .24); color: #FFDFA0; }
.alert--danger  { background: rgba(239, 68, 68, .08);  border: 1px solid rgba(239, 68, 68, .24);  color: #FCA5A5; }
.alert--success { background: rgba(34, 197, 94, .08);  border: 1px solid rgba(34, 197, 94, .24);  color: #A7F3C4; }

/* Barra de progresso */
.progress {
    height: 8px;
    border-radius: var(--r-full);
    background: var(--card-3);
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    border-radius: var(--r-full);
    background: var(--grad-brand);
    transition: width var(--slow) var(--ease);
}

/* Anel do BROCÔ SCORE */
.score-ring {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.score-ring svg { transform: rotate(-90deg); }

.score-ring__track { stroke: var(--card-3); }
.score-ring__fill  { stroke: url(#scoreGradient); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }

.score-ring__value {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.03em;
}

/* Avatar */
.avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--r-full);
    object-fit: cover;
    background: var(--card-3);
    flex-shrink: 0;
}

.avatar--sm { width: 34px; height: 34px; }
.avatar--lg { width: 64px; height: 64px; }

.avatar-fallback {
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    background: var(--grad-brand);
}

/* Tabs */
.tabs {
    display: flex;
    gap: var(--sp-1);
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
    position: relative;
    padding: var(--sp-3) var(--sp-4);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-3);
    white-space: nowrap;
    min-height: 48px;
    transition: color var(--fast) var(--ease);
}

.tab.is-active { color: var(--text); }

.tab.is-active::after {
    content: "";
    position: absolute;
    left: var(--sp-4);
    right: var(--sp-4);
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
}

/* Heatmap do BROCÔ MAP */
.heat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border-radius: var(--r);
    background: var(--card);
    border: 1px solid var(--border);
    transition: all var(--fast) var(--ease);
    min-height: 60px;
}

.heat-item:hover { border-color: rgba(255, 62, 165, .35); transform: translateX(2px); }

.heat-item__flames { font-size: 14px; letter-spacing: -2px; }
.heat-item__count  { font-size: 13px; font-weight: 700; color: var(--green); }

/* Linha do feed "Agora" */
.feed-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--border);
}

.feed-item:last-child { border-bottom: 0; }

.feed-item__text { font-size: 14px; line-height: 1.45; }
.feed-item__time { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* Impede rolagem do fundo quando há sheet/gate aberto */
body.is-locked { overflow: hidden; }

/* ------------------------------------------------- 21. CONTATO DIRETO */

/*
   WhatsApp e Telegram lado a lado, com os ícones redondos originais.
   O pulso são dois anéis expandindo a partir do ícone, na cor da marca —
   feito com box-shadow, então não ocupa espaço nem desalinha nada.
*/

.contact-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: var(--sp-3);
}

.contact-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    min-height: 64px;
    padding: 0 var(--sp-4);
    border-radius: var(--r-lg);
    background: var(--contact-bg);
    border: 1px solid var(--contact-border);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--text);
    transition: transform var(--fast) var(--ease),
                border-color var(--fast) var(--ease),
                background var(--fast) var(--ease);
}

.contact-btn:active { transform: scale(.97); }

.contact-btn__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    /* O anel do pulso nasce daqui */
    animation: contact-ring 2.4s var(--ease) infinite;
}

.contact-btn__label {
    line-height: 1.1;
    text-align: left;
}

/* Segundo anel, defasado, para o pulso ter profundidade */
.contact-btn__pulse {
    position: absolute;
    left: var(--sp-4);
    top: 50%;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border-radius: 50%;
    pointer-events: none;
    animation: contact-ring 2.4s var(--ease) infinite;
    animation-delay: .8s;
}

@keyframes contact-ring {
    0%   { box-shadow: 0 0 0 0 var(--contact-ring); }
    70%  { box-shadow: 0 0 0 16px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* Cores oficiais de cada marca */
.contact-btn--whatsapp {
    --contact-ring: rgba(37, 211, 102, .55);
    --contact-bg: linear-gradient(135deg, rgba(37, 211, 102, .16), rgba(37, 211, 102, .06));
    --contact-border: rgba(37, 211, 102, .34);
}

.contact-btn--telegram {
    --contact-ring: rgba(42, 171, 238, .55);
    --contact-bg: linear-gradient(135deg, rgba(42, 171, 238, .16), rgba(42, 171, 238, .06));
    --contact-border: rgba(42, 171, 238, .34);
}

@media (hover: hover) {
    .contact-btn--whatsapp:hover {
        --contact-bg: linear-gradient(135deg, rgba(37, 211, 102, .26), rgba(37, 211, 102, .1));
        --contact-border: rgba(37, 211, 102, .6);
    }

    .contact-btn--telegram:hover {
        --contact-bg: linear-gradient(135deg, rgba(42, 171, 238, .26), rgba(42, 171, 238, .1));
        --contact-border: rgba(42, 171, 238, .6);
    }
}

/* Telas bem estreitas: mantém lado a lado, encolhendo o rótulo */
@media (max-width: 400px) {
    .contact-btn { gap: var(--sp-2); padding: 0 var(--sp-3); font-size: 14px; }
    .contact-btn__icon { width: 38px; height: 38px; }
    .contact-btn__pulse { width: 38px; height: 38px; margin-top: -19px; left: var(--sp-3); }
}

/* Variante compacta: só os ícones redondos, centralizados */
.contact-actions--compact {
    display: flex;
    justify-content: center;
    gap: var(--sp-5);
}

.contact-actions--compact .contact-btn {
    width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
}

.contact-actions--compact .contact-btn__icon { width: 46px; height: 46px; }

.contact-actions--compact .contact-btn__pulse {
    left: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
}

/* Quem prefere menos movimento não vê o pulso */
@media (prefers-reduced-motion: reduce) {
    .contact-btn__icon,
    .contact-btn__pulse { animation: none; }
}
