/* =========================================================
   VYRA — Rede Social (Fã / Hate)
   Design mobile-first, escuro, com gradientes e animações
   ========================================================= */

:root {
    --vh100: 100vh;
    --bg: #0d0b14;
    --bg-elevated: #16131f;
    --card: #1b1826;
    --border: #2a2536;
    --text: #f1eef7;
    --text-muted: #9a93ab;
    --primary: #7c3aed;
    --primary-2: #ec4899;
    --gold: #f59e0b;
    --fan: #ec4899;
    --hate: #4b5563;
    --hate-active: #e11d48;
    --radius: 18px;
    --gradient: linear-gradient(135deg, var(--primary), var(--primary-2));
    --gradient-gold: linear-gradient(135deg, var(--primary), var(--primary-2), var(--gold));
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

@supports (height: 100dvh) {
    :root { --vh100: 100dvh; }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
    position: relative;
}

/* ---------- Fundo animado global ----------
   Substitui o antigo gradiente radial estatico (que criava aquelas faixas
   visiveis / banding em telas grandes). Duas camadas fixas:
   1) bg-aurora - blobs grandes e desfocados que derivam bem devagar
   2) bg-grain - ruido sutilissimo em cima, so pra quebrar o degrade
      e impedir o banding, sem ficar visivel como "textura" */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}
.bg-aurora::before,
.bg-aurora::after {
    content: '';
    position: absolute;
    width: 70vmax;
    height: 70vmax;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    will-change: transform;
}
.bg-aurora::before {
    top: -20vmax;
    left: -15vmax;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: auroraDrift1 22s ease-in-out infinite;
}
.bg-aurora::after {
    bottom: -25vmax;
    right: -20vmax;
    background: radial-gradient(circle, var(--primary-2) 0%, transparent 70%);
    animation: auroraDrift2 26s ease-in-out infinite;
}
.bg-aurora-extra {
    position: absolute;
    width: 55vmax;
    height: 55vmax;
    top: 30%;
    left: 50%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold) 0%, transparent 72%);
    filter: blur(100px);
    opacity: 0.22;
    animation: auroraDrift3 30s ease-in-out infinite;
}
@keyframes auroraDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8vw, 6vh) scale(1.15); }
}
@keyframes auroraDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-6vw, -8vh) scale(1.1); }
}
@keyframes auroraDrift3 {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    50% { transform: translate(-46%, -10vh) scale(1.2); }
}
.bg-grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce) {
    .bg-aurora::before, .bg-aurora::after, .bg-aurora-extra { animation: none; }
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
input, textarea { font-family: inherit; }

.muted { color: var(--text-muted); }
.small { font-size: 12.5px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* ---------- Animações ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }
.fade-in { animation: fadeIn .45s ease both; }

@keyframes pop { 0% { transform: scale(1);} 40% { transform: scale(1.35);} 100% { transform: scale(1);} }
.pop { animation: pop .35s ease; }

@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes floatGlow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(236,72,153,.6)); }
    50% { filter: drop-shadow(0 0 7px rgba(124,58,237,.9)); }
}
@keyframes spinRing { to { transform: rotate(360deg); } }
@keyframes blob {
    0%, 100% { border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%; }
    50% { border-radius: 60% 40% 30% 70% / 55% 60% 40% 45%; }
}

/* ---------- Topbar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 40;
    padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
    background: rgba(13,11,20,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
    font-family: 'Unbounded', 'Segoe UI', sans-serif;
    font-size: 21px; font-weight: 800; letter-spacing: 0.2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 30%, var(--gold) 50%, var(--primary-2) 70%, var(--primary) 100%);
    background-size: 250% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 6s linear infinite;
    filter: drop-shadow(0 0 8px rgba(124,58,237,0.3));
}
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { display: flex; align-items: center; justify-content: center; color: var(--text); opacity: 0.9; }
.avatar-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-2); }

.app-main { max-width: 620px; margin: 0 auto; padding: 12px 14px 20px; }
.app-main.with-nav { padding-bottom: 92px; }

/* ---------- Bottom nav (mobile-first) ---------- */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    display: flex; justify-content: stretch; align-items: center;
    background: rgba(17,14,26,0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10.5px; color: var(--text-muted); padding: 4px 10px; border-radius: 12px;
    transition: color .2s, transform .2s;
    flex: 1 1 0; min-width: 0;
}
.nav-item.active { color: var(--primary-2); }
.nav-item:active { transform: scale(0.9); }
.nav-item-create { margin-top: -22px; }
.create-circle {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--gradient); display: flex; align-items: center; justify-content: center;
    color: #fff; box-shadow: 0 6px 18px rgba(124,58,237,0.5);
    transition: transform .2s;
}
.nav-item-create:active .create-circle { transform: scale(0.88) rotate(90deg); }

/* ---------- Auth pages ---------- */
.auth-body {
    min-height: var(--vh100); display: flex; align-items: center; justify-content: center;
    background: var(--bg); position: relative; overflow: hidden; padding: 20px;
}
.auth-bg-shape {
    position: absolute; filter: blur(60px); opacity: 0.55;
    animation: blob 9s ease-in-out infinite;
}
.shape-1 { width: 320px; height: 320px; background: var(--primary); top: -80px; left: -80px; }
.shape-2 { width: 280px; height: 280px; background: var(--primary-2); bottom: -60px; right: -60px; animation-delay: 2s; }
.auth-wrapper { position: relative; z-index: 2; width: 100%; max-width: 400px; }
.auth-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 24px; padding: 34px 28px; box-shadow: var(--shadow);
}
.auth-logo {
    text-align: center; font-size: 36px; margin: 0 0 4px;
    font-family: 'Unbounded', 'Segoe UI', sans-serif; font-weight: 800; letter-spacing: 0.3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 30%, var(--gold) 50%, var(--primary-2) 70%, var(--primary) 100%);
    background-size: 250% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 6s linear infinite;
    filter: drop-shadow(0 0 10px rgba(124,58,237,0.35));
}
.auth-sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--text-muted); }
.label-with-icon { display: flex; align-items: center; gap: 6px; }
.field-hint { font-size: 11.5px; color: var(--text-muted); margin-top: -4px; }

.profile-music { margin: 4px 0 14px; border-radius: 14px; overflow: hidden; }
.profile-music iframe { border-radius: 14px; display: block; }
.profile-music-yt { aspect-ratio: 16/9; height: auto; }
.profile-music-yt iframe { width: 100%; height: 100%; }
.field input, .create-form textarea, .create-form input[type=text] {
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px;
    padding: 13px 14px; color: var(--text); font-size: 15px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .create-form textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(236,72,153,0.15); }
.btn-primary {
    background: var(--gradient); color: #fff; border: none; border-radius: 14px;
    padding: 14px; font-size: 15.5px; font-weight: 700; margin-top: 6px;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 8px 20px rgba(124,58,237,0.35);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 26px rgba(124,58,237,0.45); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    text-align: center; background: var(--bg-elevated); border: 1px solid var(--border);
    color: var(--text); border-radius: 14px; padding: 12px; font-weight: 600; margin-top: 14px;
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.btn-secondary:hover { border-color: var(--primary-2); background: rgba(236,72,153,0.08); }
.btn-secondary:active { transform: scale(0.98); }
.btn-secondary.full { width: 100%; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--primary-2); font-weight: 600; }

.alert { padding: 11px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 16px; }
.alert-error { background: rgba(225,29,72,0.12); color: #fca5b1; border: 1px solid rgba(225,29,72,0.35); }
.alert-success { background: rgba(16,185,129,0.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.35); }

/* ---------- Stories bar ---------- */
.stories-bar {
    display: flex; gap: 14px; overflow-x: auto; padding: 14px 6px 20px;
    scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar { display: none; }
.story-item { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; }
.story-item small { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 64px; }
.story-ring {
    width: 62px; height: 62px; border-radius: 50%; padding: 3px;
    background: var(--gradient-gold);
    display: flex; align-items: center; justify-content: center;
    animation: floatGlow 3s ease-in-out infinite;
}
.story-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); }
.add-story { position: relative; }
.story-ring-add { background: var(--border); animation: none; }
.story-ring-mine { background: var(--gradient-gold); }
.plus-badge {
    position: absolute; bottom: 16px; right: 2px; background: var(--gradient); color: #fff;
    width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; border: 2px solid var(--bg);
}

/* ---------- Feed / Posts ---------- */
.feed { display: flex; flex-direction: column; gap: 16px; }
.post-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px; box-shadow: var(--shadow);
}
.post-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.post-user { display: flex; align-items: center; gap: 10px; }
.post-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.post-username { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14.5px; }
.post-time { color: var(--text-muted); font-size: 12px; }
.post-content { font-size: 14.5px; line-height: 1.5; margin: 6px 0 10px; white-space: pre-wrap; }
.post-image-wrap {
    border-radius: 14px; overflow: hidden; margin-bottom: 10px; max-height: 70vh;
    background: #000; display: flex; align-items: center; justify-content: center;
}
.post-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.post-video-wrap {
    position: relative; max-height: 70vh; background: #000 center / contain no-repeat;
    display: flex; align-items: center; justify-content: center; border-radius: 14px;
    overflow: hidden; margin-bottom: 10px; cursor: pointer; aspect-ratio: 4/5;
}
.post-video-wrap video { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.video-sound-btn {
    position: absolute; bottom: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
    color: #fff; display: flex; align-items: center; justify-content: center; z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35); transition: transform .15s, background .2s;
}
.video-sound-btn svg { width: 16px; height: 16px; }
.video-sound-btn:hover { background: rgba(0,0,0,0.65); }
.video-sound-btn:active { transform: scale(0.88); }

.video-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.25); background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4); transition: opacity .2s ease, transform .2s ease;
    opacity: 1; pointer-events: auto;
}
.video-play-btn.hidden-playing { opacity: 0; pointer-events: none; }
.video-play-btn:active { transform: translate(-50%, -50%) scale(0.9); }
.video-play-icon { display: flex; align-items: center; justify-content: center; }
.video-play-icon svg { width: 26px; height: 26px; fill: #fff; }
.post-actions { display: flex; gap: 22px; align-items: center; padding-top: 4px; }
.like-btn, .comment-toggle, .fanzei-btn, .forward-post-btn {
    display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text-muted);
    font-size: 13.5px; padding: 4px; transition: color .2s;
}
.like-btn.liked { color: var(--fan); }
.like-btn.liked svg { animation: pop .35s ease; }
.fanzei-btn.active { color: var(--gold); }
.fanzei-btn.active svg { animation: pop .35s ease; fill: currentColor; }
.forward-post-btn { background: none; border: none; }
.post-actions .forward-post-btn { margin-left: auto; }
.forward-post-btn:hover { color: var(--primary-2); }

/* ---------- Lista de Fãs no modal "Encaminhar postagem" ---------- */
.forward-fan-list { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.forward-fan-item {
    display: flex; align-items: center; gap: 12px; background: none; border: none; width: 100%;
    padding: 9px 6px; border-radius: 12px; color: var(--text); text-align: left; transition: background .2s;
}
.forward-fan-item:hover { background: rgba(255,255,255,0.05); }
.forward-fan-item:active { transform: scale(0.98); }
.forward-fan-item img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.forward-fan-item span { font-size: 14px; font-weight: 600; }
.forward-fan-item.sent { color: var(--fan); pointer-events: none; }
.repost-tag {
    font-size: 12px; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.repost-tag svg { flex-shrink: 0; color: var(--gold); }
.repost-tag a { color: var(--text); font-weight: 700; }
.comments-box { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.comments-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; max-height: 260px; overflow-y: auto; }
.comment-item { display: flex; gap: 8px; font-size: 13px; }
.comment-item img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.comment-item p { margin: 2px 0 0; color: var(--text-muted); }
.comment-item.comment-reply { margin-left: 30px; }
.comment-item.comment-reply img { width: 22px; height: 22px; }
.comment-reply-to { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; }
.comment-reply-btn {
    background: none; border: none; padding: 0; margin-top: 3px; font-size: 11.5px;
    font-weight: 700; color: var(--text-muted);
}
.comment-reply-btn:hover { color: var(--text); }
.comment-reply-bar {
    display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted);
    background: var(--bg-elevated); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px;
}
.comment-reply-bar[hidden] { display: none; }
.comment-reply-bar strong { color: var(--text); font-weight: 700; }
.comment-reply-cancel { margin-left: auto; background: none; border: none; color: var(--text-muted); font-size: 13px; line-height: 1; padding: 2px; }
.comment-reply-cancel:hover { color: var(--text); }
.comment-form { display: flex; gap: 8px; }
.comment-form input {
    flex: 1; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 20px;
    padding: 9px 14px; color: var(--text); font-size: 13.5px; outline: none;
}
.comment-form button { background: var(--gradient); color: #fff; border: none; border-radius: 20px; padding: 9px 16px; font-size: 13px; font-weight: 700; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

.feed-loading {
    text-align: center; padding: 18px 0; color: var(--text-muted); font-size: 13px;
}
.feed-loading::before {
    content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 8px;
    border: 2px solid var(--border); border-top-color: var(--primary-2); border-radius: 50%;
    vertical-align: -2px; animation: spinRing .7s linear infinite;
}
.role-loading {
    height: var(--vh100); display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.85); font-size: 13px; scroll-snap-align: start;
}
.role-loading::before {
    content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 8px;
    border: 2px solid rgba(255,255,255,0.25); border-top-color: #fff; border-radius: 50%;
    vertical-align: -2px; animation: spinRing .7s linear infinite;
}

.section-divider { display: flex; align-items: center; gap: 10px; margin: 22px 2px 14px; }
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-divider span { font-size: 12.5px; color: var(--text-muted); font-weight: 700; white-space: nowrap; }

.post-header-right { display: flex; align-items: center; gap: 8px; }
.post-delete-btn {
    display: flex; align-items: center; justify-content: center; background: none; border: none;
    color: var(--text-muted); padding: 4px; border-radius: 8px; transition: color .2s, background .2s;
}
.post-delete-btn:hover, .post-delete-btn:active { color: var(--hate-active); background: rgba(225,29,72,0.1); }
.role-delete-btn {
    position: absolute; top: 20px; right: 60px; z-index: 6; width: 34px; height: 34px;
    background: rgba(0,0,0,0.4); border: none; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: #fff;
}
.suggestion-tag {
    font-size: 10.5px; font-weight: 700; color: #fff; background: var(--gradient);
    padding: 3px 8px; border-radius: 20px; letter-spacing: 0.3px;
}
.post-link-area { display: block; }

.single-post { max-width: 620px; }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--text-muted); font-size: 14px; }

.nav-icon-wrap { position: relative; display: inline-flex; }
.nav-badge {
    position: absolute; top: -6px; right: -10px; background: var(--hate-active); color: #fff;
    font-size: 9.5px; font-weight: 800; min-width: 15px; height: 15px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ---------- Verified badge (exclusivo, NÃO é o azul padrão) ---------- */
.verified-badge {
    display: inline-flex; vertical-align: middle; color: var(--primary-2);
    animation: floatGlow 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(236,72,153,.5));
}

/* ---------- Profile page ---------- */
.profile-top { display: flex; align-items: center; gap: 16px; }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); }
.profile-avatar.ring-verified { border: 3px solid transparent; background: var(--gradient-gold); background-clip: padding-box, border-box; }
.profile-info h1 { font-size: 19px; margin: 0 0 2px; display: flex; align-items: center; gap: 6px; }
.profile-username { color: var(--text-muted); font-size: 13.5px; margin: 0; }
.lock-tag { font-size: 11.5px; }
.mutual-tag { color: var(--gold); font-size: 12.5px; margin-top: 4px; }
.profile-bio { font-size: 14px; margin: 14px 0; line-height: 1.5; }
.profile-stats { display: flex; justify-content: space-around; text-align: center; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 14px 0; }
.stat strong { display: block; font-size: 18px; }
.stat span { font-size: 12px; color: var(--text-muted); }
.stat-fan strong { color: var(--fan); }
.stat-hate strong { color: var(--hate-active); }

.profile-buttons { display: flex; gap: 10px; margin-top: 14px; }
.btn-fan, .btn-hate {
    flex: 1; padding: 12px; border-radius: 14px; border: 1px solid var(--border);
    background: var(--bg-elevated); color: var(--text); font-weight: 700; font-size: 14px;
    transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn-fan.active { background: linear-gradient(135deg, var(--fan), var(--primary)); border-color: transparent; color: #fff; }
.btn-hate.active { background: linear-gradient(135deg, #374151, var(--hate-active)); border-color: transparent; color: #fff; }
.btn-fan, .btn-hate { display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-fan.active svg, .btn-hate.active svg { fill: currentColor; }
.btn-fan:active, .btn-hate:active { transform: scale(0.95); }
.btn-message {
    width: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 14px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
}

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.grid-item { aspect-ratio: 1/1; overflow: hidden; border-radius: 6px; background: var(--bg-elevated); display: block; position: relative; }
.grid-item img, .grid-item video { width: 100%; height: 100%; object-fit: cover; }
.grid-text { display: flex; align-items: center; padding: 8px; }
.grid-text p { font-size: 11px; color: var(--text-muted); margin: 0; }
.grid-video-icon { position: absolute; top: 5px; right: 6px; font-size: 13px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }

.profile-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.profile-tab {
    flex: 1; text-align: center; padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 700;
    color: var(--text-muted); background: var(--bg-elevated); border: 1px solid var(--border);
}
.profile-tab.active { background: var(--gradient); color: #fff; border-color: transparent; }

/* ---------- Create post / story / edit profile ---------- */
.create-page h1 { font-size: 20px; margin-bottom: 16px; }
.create-form { display: flex; flex-direction: column; gap: 14px; }
.create-form textarea { resize: vertical; min-height: 90px; }
.media-type-toggle { display: flex; gap: 8px; }
.media-type-option {
    flex: 1; text-align: center; padding: 10px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--bg-elevated); font-size: 13.5px; font-weight: 600; color: var(--text-muted);
    cursor: pointer; transition: all .2s;
}
.media-type-option input { display: none; }
.media-type-option.active { background: var(--gradient); color: #fff; border-color: transparent; }
.upload-box {
    display: flex; align-items: center; justify-content: center; text-align: center;
    border: 2px dashed var(--border); border-radius: 16px; padding: 26px; color: var(--text-muted);
    cursor: pointer; transition: border-color .2s, background .2s; font-size: 14px;
}
.upload-box:active { background: var(--bg-elevated); }
.upload-box input { display: none; }
.upload-box.small { padding: 10px 16px; font-size: 12.5px; }
.preview-img { border-radius: 16px; max-height: 320px; object-fit: cover; width: 100%; }
.multi-video-preview {
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px;
    padding: 14px; font-size: 13.5px; color: var(--text-muted); text-align: center;
}
.avatar-edit-wrap { display: flex; align-items: center; gap: 16px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 6px 2px; }
.switch-row input { display: none; }
.switch-slider {
    width: 44px; height: 24px; background: var(--border); border-radius: 20px; position: relative;
    transition: background .2s; flex-shrink: 0; margin-left: 10px;
}
.switch-slider::before {
    content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff;
    top: 3px; left: 3px; transition: transform .2s;
}
.switch-row input:checked + .switch-slider { background: var(--gradient); }
.switch-row input:checked + .switch-slider::before { transform: translateX(20px); }

/* ---------- Search ---------- */
.search-form { display: flex; gap: 8px; margin-bottom: 16px; }
.search-form input {
    flex: 1; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px;
    padding: 12px 14px; color: var(--text); font-size: 14.5px; outline: none;
}
.search-form button { background: var(--gradient); border: none; color: #fff; border-radius: 14px; padding: 0 16px; }
.search-results { display: flex; flex-direction: column; gap: 4px; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; transition: background .2s; }
.search-item:active { background: var(--bg-elevated); }
.search-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.search-item strong { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.search-item span { display: block; font-size: 12.5px; color: var(--text-muted); }

/* ---------- Admin ---------- */
.admin-page h1 { font-size: 20px; margin-bottom: 4px; }
.admin-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.admin-item {
    display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: 10px 12px;
}
.admin-item img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.admin-item-info { flex: 1; display: flex; flex-direction: column; }
.admin-item-info strong { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.admin-item-info span { font-size: 12px; color: var(--text-muted); }
.admin-tag { color: var(--gold); font-size: 11px; font-weight: 700; }
.btn-verify-toggle {
    background: var(--gradient-gold); border: none; color: #fff; font-size: 12.5px; font-weight: 700;
    padding: 9px 12px; border-radius: 12px; white-space: nowrap;
}
.btn-verify-toggle.active { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted); }

/* ---------- Stories viewer (fullscreen) ---------- */
.story-body { margin: 0; background: #000; height: var(--vh100); overflow: hidden; }
.story-empty { height: var(--vh100); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; padding: 20px; text-align: center; }
.story-empty-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.story-empty .btn-secondary { color: #fff; }

.story-viewer { position: relative; width: 100%; height: var(--vh100); background: #000; overflow: hidden; }
.story-progress-row { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 4px; z-index: 4; }
.story-progress { flex: 1; height: 3px; background: rgba(255,255,255,0.3); border-radius: 3px; overflow: hidden; }
.story-progress-fill { height: 100%; width: 0%; background: #fff; }
.story-progress-fill.done { width: 100% !important; }

.story-header { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; z-index: 4; color: #fff; }
.story-header img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.story-header-text { display: flex; flex-direction: column; line-height: 1.25; }
.story-header-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.story-header-time { font-size: 11.5px; color: rgba(255,255,255,0.75); }
.own-story-tag {
    font-size: 10px; font-weight: 700; background: var(--gradient-gold); padding: 2px 8px;
    border-radius: 20px; margin-left: 2px;
}
.story-close {
    flex-shrink: 0; font-size: 18px; color: #fff; width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
}
.story-close:hover { background: rgba(0,0,0,0.55); }

.story-slides { width: 100%; height: 100%; }
.story-slide { width: 100%; height: 100%; align-items: center; justify-content: center; position: relative; }
.story-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: blur(35px) brightness(0.55) saturate(1.2); transform: scale(1.15);
}
.story-fg { position: relative; z-index: 1; max-height: var(--vh100); max-width: 100vw; object-fit: contain; margin: 0 auto; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }

.story-nav { position: absolute; inset: 0; display: flex; z-index: 2; }
.story-nav-prev, .story-nav-next { flex: 1; }

.story-viewer-own .story-progress-fill { background: var(--gradient-gold); }
.story-viewer-own .story-header img { border-color: var(--gold); }

.story-add-btn {
    position: fixed; top: 18px; right: 14px; z-index: 30; color: #fff;
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.4); border-radius: 50%; backdrop-filter: blur(6px);
}

.story-pause-toggle {
    margin-left: auto; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center;
    transition: transform .15s, background .2s;
}
.story-pause-toggle:hover { background: rgba(0,0,0,0.55); }
.story-pause-toggle:active { transform: scale(0.9); }
.story-pause-toggle .icon-play { margin-left: 2px; }

.story-options { position: relative; flex-shrink: 0; }
.story-options-toggle {
    width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center;
    transition: transform .15s, background .2s;
}
.story-options-toggle:hover { background: rgba(0,0,0,0.55); }
.story-options-toggle:active { transform: scale(0.9); }
.story-options-menu {
    position: absolute; top: 40px; right: 0; z-index: 10; min-width: 190px;
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45); overflow: hidden; display: flex; flex-direction: column;
}
/* Sem isso, o atributo "hidden" do menu era ignorado (o display:flex acima
   tem a mesma prioridade e "ganhava"), então o menu de apagar aparecia
   já aberto assim que a memória era carregada. */
.story-options-menu[hidden] { display: none; }
.story-options-menu button {
    padding: 12px 14px; text-align: left; font-size: 13.5px; color: var(--text); background: none; border: none;
}
.story-options-menu button:not(:last-child) { border-bottom: 1px solid var(--border); }
.story-options-menu button:hover { background: var(--card); }
.story-options-menu button.danger { color: #ff5a6e; }

.story-reply-bar {
    position: absolute; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 6;
    display: flex; align-items: center; gap: 8px;
}
.story-reply-bar input {
    flex: 1; background: rgba(20,17,28,0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 24px; padding: 12px 16px; color: #fff; font-size: 14px; outline: none;
}
.story-reply-bar input::placeholder { color: rgba(255,255,255,0.65); }
.story-reply-bar button {
    width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--gradient);
    color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- Visualizações do story (dono) ---------- */
.story-viewers-bar {
    position: absolute; left: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 6;
    display: flex; align-items: center; gap: 7px; background: rgba(20,17,28,0.6); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25); border-radius: 24px; padding: 10px 16px; color: #fff; font-size: 13px;
}
.story-viewers-label { color: rgba(255,255,255,0.75); }
.story-viewer-list {
    display: flex; flex-direction: column; gap: 2px; overflow-y: auto; max-height: 50vh;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.story-viewer-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-radius: 10px; transition: background .2s; }
.story-viewer-row:active, .story-viewer-row:hover { background: var(--bg-elevated); }
.story-viewer-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.story-viewer-row-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.story-viewer-row-info strong { font-size: 13.5px; }
.story-viewer-row-info span { font-size: 12px; color: var(--text-muted); }
.story-viewer-row-time { font-size: 11.5px; color: var(--text-muted); flex-shrink: 0; }

/* ---------- Notificações ---------- */
.notifications-page h1 { font-size: 20px; margin-bottom: 16px; }
.notification-list { display: flex; flex-direction: column; gap: 2px; }
.notification-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 12px;
    transition: background .2s; position: relative;
}
.notification-item:active, .notification-item:hover { background: var(--bg-elevated); }
.notification-item.unread { background: rgba(124,58,237,0.08); }
.notification-item.unread::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 60%; border-radius: 4px; background: var(--gradient);
}
.notification-icon-wrap {
    width: 34px; height: 34px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.notification-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.notification-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notification-text span { font-size: 13.5px; line-height: 1.4; color: var(--text); }
.notification-text small { font-size: 11.5px; color: var(--text-muted); }
.messages-page h1 { font-size: 20px; margin-bottom: 16px; }
.conversation-list { display: flex; flex-direction: column; gap: 4px; }
.conversation-item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; transition: background .2s; }
.conversation-item:active { background: var(--bg-elevated); }
.conversation-item img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.conversation-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conversation-info strong { display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
.conversation-preview { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.conversation-time { font-size: 11px; color: var(--text-muted); }
.conversation-badge { position: static; }

/* ---------- Chat ---------- */
.chat-body { margin: 0; height: var(--vh100); overflow: hidden; background: var(--bg); }
.chat-desktop-shell { height: var(--vh100); width: 100%; }
.chat-page { display: flex; flex-direction: column; height: var(--vh100); width: 100%; }
/* No celular a lista lateral e a navegação ficam escondidas — só existem no layout de PC */
.chat-side-list { display: none; }
.chat-body .bottom-nav { display: none; }
.chat-header-actions { display: none; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--border); background: var(--bg-elevated); flex-shrink: 0; }
.chat-header .back-link { margin: 0; display: flex; align-items: center; color: var(--text); }
.chat-header-user { display: flex; align-items: center; gap: 10px; }
.chat-header-user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.chat-header-user span { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.chat-header-actions { align-items: center; gap: 8px; margin-left: auto; }
.chat-header-actions .icon-btn { padding: 8px; border-radius: 50%; transition: background .2s, color .2s; }
.chat-header-actions .icon-btn:hover { background: rgba(255,255,255,0.06); color: var(--primary-2); }

.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.chat-bubble { max-width: 72%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.4; }
.chat-bubble p { margin: 0; }
.chat-bubble.theirs { align-self: flex-start; background: var(--card); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-bubble.mine { align-self: flex-end; background: var(--gradient); color: #fff; border-bottom-right-radius: 4px; }
.chat-image { max-width: 220px; border-radius: 12px; display: block; }
.chat-bubble audio { max-width: 220px; }

.chat-input-bar {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border); background: var(--bg-elevated); flex-shrink: 0;
}
.chat-attach, .chat-audio-btn, .chat-send-btn {
    display: flex; align-items: center; justify-content: center; color: var(--text-muted);
    background: none; border: none; flex-shrink: 0; padding: 6px;
}
.chat-send-btn { color: var(--primary-2); }
.chat-audio-btn.recording { color: var(--hate-active); animation: pop .6s ease infinite; }
.chat-input-bar input[type=text] {
    flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
    padding: 10px 16px; color: var(--text); font-size: 14px; outline: none;
}

.post-picker-overlay {
    position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.6);
    display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(2px);
}
.post-picker-sheet {
    background: var(--bg-elevated); width: 100%; max-width: 480px; max-height: 72vh;
    border-radius: 20px 20px 0 0; padding: 16px; display: flex; flex-direction: column; gap: 12px;
    border: 1px solid var(--border); border-bottom: none;
}
.post-picker-header { display: flex; align-items: center; justify-content: space-between; }
.post-picker-header h3 { margin: 0; font-size: 15px; }
.post-picker-close { background: none; border: none; color: var(--text-muted); font-size: 18px; padding: 4px 8px; }
.post-picker-hint { font-size: 12.5px; color: var(--text-muted); margin: -6px 0 0; }
.post-picker-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent; padding-bottom: 4px;
}
.post-picker-item {
    aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--card);
    border: 1px solid var(--border); position: relative; display: flex; align-items: center;
    justify-content: center; padding: 6px; text-align: center; transition: transform .15s, border-color .2s;
}
.post-picker-item:active { transform: scale(0.94); border-color: var(--primary-2); }
.post-picker-item img, .post-picker-item video { width: 100%; height: 100%; object-fit: cover; }
.post-picker-item p { font-size: 10.5px; color: var(--text-muted); margin: 0; }
.post-picker-empty { text-align: center; color: var(--text-muted); font-size: 13.5px; padding: 30px 10px; }

/* ---------- Bolha de postagem compartilhada dentro do chat ---------- */
.chat-shared-post {
    display: block; width: 220px; max-width: 100%; border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.15); text-decoration: none;
}
.chat-shared-post-media { width: 100%; aspect-ratio: 4/5; background: #000; overflow: hidden; }
.chat-shared-post-media img, .chat-shared-post-media video { width: 100%; height: 100%; object-fit: cover; }
.chat-shared-post-caption { padding: 8px 10px; font-size: 12.5px; line-height: 1.35; }
.chat-shared-post-tag {
    display: flex; align-items: center; gap: 5px; font-size: 11px; padding: 7px 10px 0;
    color: rgba(255,255,255,0.75);
}
.chat-bubble.mine .chat-shared-post-tag { color: rgba(255,255,255,0.85); }
/* ---------- Rolês (feed vertical de vídeos) ---------- */
.roles-body { margin: 0; background: #000; height: var(--vh100); overflow: hidden; }
.roles-back, .roles-add {
    position: fixed; top: calc(18px + env(safe-area-inset-top)); z-index: 20; color: #fff;
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35); transition: transform .15s, background .2s;
}
.roles-back:hover, .roles-add:hover { background: rgba(0,0,0,0.6); }
.roles-back:active, .roles-add:active { transform: scale(0.9); }
.roles-back { left: 14px; }
.roles-add { right: 14px; }

.roles-container { height: var(--vh100); overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; }
.roles-container::-webkit-scrollbar { display: none; }

.role-slide {
    height: var(--vh100); width: 100%; scroll-snap-align: start; position: relative;
    display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden;
}
.role-slide::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: calc(120px + env(safe-area-inset-top)); z-index: 4;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent); pointer-events: none;
}
.role-slide video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.role-mute-icon {
    position: absolute; top: calc(64px + env(safe-area-inset-top)); right: 17px; z-index: 7; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
    padding: 0; width: 34px; height: 34px; color: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35); transition: transform .15s, background .2s;
}
.role-mute-icon svg { width: 17px; height: 17px; }
.role-mute-icon:hover { background: rgba(0,0,0,0.65); }
.role-mute-icon:active, .role-slide:active .role-mute-icon { transform: scale(0.85); }

.role-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 20px 90px 24px 16px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 45%, transparent 100%);
    color: #fff;
}
.role-user { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.role-user-link { display: flex; align-items: center; gap: 8px; }
.role-user-link img {
    width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--bg); box-shadow: 0 0 0 2px var(--primary-2), 0 0 10px rgba(236,72,153,0.55);
}
.role-user-link span { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.role-time { font-size: 11.5px; color: rgba(255,255,255,0.7); }
.role-caption { font-size: 13.5px; line-height: 1.4; margin: 0; }

.role-actions {
    position: absolute; right: 12px; bottom: 110px; z-index: 6;
    display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.role-action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: none; border: none; color: #fff; font-size: 11.5px; font-weight: 700;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5)); transition: transform .15s, color .2s;
}
.role-action-btn:active { transform: scale(0.82); }
.role-action-btn.liked, .role-action-btn.fanzei-btn.active { color: var(--gold); }

.role-comments-box {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; max-height: 55vh;
    background: var(--card); border-radius: 20px 20px 0 0; padding: 16px; margin: 0; border-top: 1px solid var(--border);
}
.role-comments-box .comments-list { max-height: 34vh; }

/* =========================================================
   RESPONSIVO — Desktop (identifica telas largas e reorganiza)
   ========================================================= */
@media (min-width: 900px) {
    /* Reserva o espaço da sidebar só nas páginas com navegação (app-shell).
       Usamos flex aqui (em vez de confiar só em margin:auto) pra garantir que
       o conteúdo realmente ocupe e centralize no espaço restante. */
    .app-shell {
        padding-left: 88px;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: var(--vh100);
    }

    /* Barra superior vira uma faixa de topo mais respirada. O fundo/borda continuam
       ocupando 100% da largura, mas o conteúdo (logo + ícones) fica alinhado com
       a mesma coluna central do feed, senão a barra parece "torta" em relação
       aos posts/vídeos centralizados logo abaixo. */
    .topbar {
        padding: calc(14px + env(safe-area-inset-top)) 28px 14px;
        width: 100%;
    }
    .topbar-inner {
        width: 100%;
        max-width: 630px;
        margin: 0 auto;
    }
    .topbar-actions { gap: 20px; }

    /* Área principal fica centralizada no espaço restante (depois da sidebar) */
    .app-main {
        width: 100%;
        max-width: 630px;
        margin: 0 auto;
        padding: 24px 20px 40px;
        flex: 1;
    }
    .app-main.with-nav {
        margin: 0 auto;
    }

    /* Barra inferior mobile vira sidebar fixa à esquerda no desktop */
    .bottom-nav {
        top: 0; bottom: 0; right: auto; left: 0;
        width: 88px; height: 100vh; height: var(--vh100);
        flex-direction: column; justify-content: flex-start; align-items: center;
        gap: 6px; padding: 26px 8px; border-top: none; border-right: 1px solid var(--border);
        background: var(--bg-elevated);
    }
    .nav-item { flex: 0 0 auto; flex-direction: column; font-size: 10.5px; padding: 10px 6px; width: 100%; border-radius: 14px; }
    .nav-item:hover { background: rgba(255,255,255,0.05); }
    .nav-item-create { margin-top: 6px; order: -1; }
    .create-circle { width: 50px; height: 50px; }

    /* Cartões e formulários ganham mais espaço interno */
    .post-card { padding: 18px; }
    .auth-card { padding: 48px 44px; }
    .stories-bar { gap: 18px; }

    /* Chat em tela cheia vira uma área preenchida e confortável, tipo app de mensagens de verdade */
    .chat-body { display: flex; }
    .chat-body .bottom-nav { display: flex; }
    .chat-desktop-shell {
        display: flex;
        width: 100%;
        margin-left: 88px;
        height: 100vh;
        height: var(--vh100);
    }
    .chat-page {
        max-width: none;
        width: 100%;
        flex: 1;
        min-width: 0;
        margin: 0;
        border-right: 1px solid var(--border);
    }
    .chat-header { padding: calc(14px + env(safe-area-inset-top)) 24px 14px; }
    .chat-header-actions { display: flex; }
    .chat-messages { padding: 24px 32px; }
    .chat-bubble { max-width: 60%; font-size: 14.5px; }
    .chat-input-bar { padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); }

    /* Lista de conversas do lado direito do chat, tipo Instagram Direct */
    .chat-side-list {
        display: flex;
        flex-direction: column;
        width: 360px;
        flex-shrink: 0;
        height: 100%;
    }
    .chat-side-list-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 18px 18px 14px; font-weight: 800; font-size: 16px;
        border-bottom: 1px solid var(--border);
    }
    .chat-side-list-home { color: var(--text-muted); display: flex; }
    .chat-side-list-home:hover { color: var(--text); }
    .chat-side-list-items {
        flex: 1; overflow-y: auto; padding: 6px 8px;
        scrollbar-width: thin; scrollbar-color: var(--border) transparent;
    }
    .chat-side-list-items::-webkit-scrollbar { width: 8px; }
    .chat-side-list-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 20px; }
    .chat-side-list-empty { color: var(--text-muted); font-size: 13.5px; text-align: center; padding: 30px 12px; }
    .chat-side-list .conversation-item { padding: 10px; border-radius: 14px; }
    .chat-side-list .conversation-item:hover { background: rgba(255,255,255,0.05); }
    .chat-side-list .conversation-item.active { background: rgba(124,58,237,0.16); }
    .chat-side-list .conversation-item strong { display: flex; align-items: center; gap: 4px; }

    /* Página de mensagens ganha mais largura e "respiro" no desktop */
    .messages-page { max-width: 720px; }
    .conversation-item { padding: 12px 10px; }

    /* Scroll bonito (fino, discreto, com a cor do tema) em vez do scrollbar feio do SO */
    .chat-messages,
    .comments-list,
    .messages-page,
    .role-comments-box .comments-list {
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
    }
    .chat-messages::-webkit-scrollbar,
    .comments-list::-webkit-scrollbar,
    .messages-page::-webkit-scrollbar {
        width: 8px;
    }
    .chat-messages::-webkit-scrollbar-track,
    .comments-list::-webkit-scrollbar-track,
    .messages-page::-webkit-scrollbar-track {
        background: transparent;
    }
    .chat-messages::-webkit-scrollbar-thumb,
    .comments-list::-webkit-scrollbar-thumb,
    .messages-page::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 20px;
    }
    .chat-messages::-webkit-scrollbar-thumb:hover,
    .comments-list::-webkit-scrollbar-thumb:hover,
    .messages-page::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }

    /* Rolês ganha proporção de celular centralizada, em vez de esticar a tela toda */
    .roles-container { max-width: 460px; margin: 0 auto; }
    .role-slide { max-width: 460px; margin: 0 auto; border-radius: 0; }
}

@media (min-width: 1200px) {
    .app-main { max-width: 680px; }
    .topbar-inner { max-width: 680px; }
}

/* =========================================================
   RESPONSIVO — Mobile (telas pequenas, ajustes finos)
   ========================================================= */
@media (max-width: 420px) {
    .profile-buttons { flex-wrap: wrap; }
    .btn-message { width: 100%; order: 3; }
    .role-actions { right: 6px; gap: 16px; }
    .story-header { top: calc(16px + env(safe-area-inset-top)); }
}

@media (min-width: 700px) and (max-width: 899px) {
    .app-main { padding-top: 20px; }
    .auth-card { padding: 44px 40px; }
}

/* =========================================================
   ATUALIZAÇÕES — XP/Níveis, Temas, Nome Colorido/Animado,
   Mood do Dia e Animações Extras
   ========================================================= */

/* ---------- Animações extras de login/cadastro ---------- */
.auth-card { animation: authCardIn .55s cubic-bezier(.2,.9,.25,1) both; }
@keyframes authCardIn {
    0% { opacity: 0; transform: translateY(26px) scale(.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-form input:focus { animation: inputGlow 1.2s ease infinite; }
@keyframes inputGlow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(236,72,153,0.15); }
    50% { box-shadow: 0 0 0 5px rgba(124,58,237,0.22); }
}
.btn-primary { transition: transform .15s, box-shadow .25s; }
.btn-primary:active { box-shadow: 0 0 0 6px rgba(124,58,237,0.18); }

/* ---------- Avatar com badge de mood ---------- */
.post-avatar-wrap, .profile-avatar-wrap { position: relative; display: inline-block; }
.mood-badge {
    position: absolute; right: -3px; bottom: -3px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%; color: #fff;
    background: var(--gradient); border: 2px solid var(--bg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    animation: moodPop .4s ease both;
}
.mood-badge svg { width: 60%; height: 60%; }
.mood-badge-lg { right: -2px; bottom: -2px; width: 32px; height: 32px; border-width: 2.5px; }
@keyframes moodPop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- Nome colorido / animado ---------- */
.uname { transition: color .2s; }
.uname-fx-gradiente {
    background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--gold));
    background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 4s linear infinite;
}
.uname-fx-arcoiris {
    background: linear-gradient(90deg, #f87171, #fb923c, #f5d90a, #34d399, #38bdf8, #a855f7, #f87171);
    background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: rainbowMove 3s linear infinite;
}
@keyframes rainbowMove { 0% { background-position: 0% center; } 100% { background-position: -300% center; } }
.uname-fx-brilho {
    color: #38bdf8; animation: nameGlow 1.8s ease-in-out infinite;
}
@keyframes nameGlow {
    0%, 100% { text-shadow: 0 0 4px rgba(56,189,248,.5), 0 0 10px rgba(56,189,248,.3); }
    50% { text-shadow: 0 0 9px rgba(56,189,248,.95), 0 0 18px rgba(56,189,248,.6); }
}
.uname-fx-fogo {
    color: #fb923c; animation: nameFire 1.1s ease-in-out infinite;
}
@keyframes nameFire {
    0%, 100% { text-shadow: 0 0 4px #f59e0b, 0 0 10px #ef4444; color: #fbbf24; }
    35% { text-shadow: 0 0 8px #ef4444, 0 0 16px #f59e0b; color: #fb923c; }
    70% { text-shadow: 0 0 6px #f97316, 0 0 12px #ef4444; color: #f87171; }
}

/* ---------- Temas de perfil ---------- */
.profile-page { position: relative; border-radius: 20px; padding: 4px; overflow: hidden; }
.profile-theme-bg {
    position: absolute; inset: 0; z-index: -1; border-radius: 20px;
    opacity: .38;
    background: radial-gradient(circle at 25% 15%, var(--primary) 0%, transparent 55%),
                radial-gradient(circle at 80% 75%, var(--primary-2) 0%, transparent 55%);
    background-size: 200% 200%, 200% 200%;
    animation: themeDrift 14s ease-in-out infinite;
}
.theme-oceano .profile-theme-bg {
    opacity: .55; background: linear-gradient(120deg, #0ea5e9, #0d0b14 60%, #22d3ee);
    background-size: 220% 220%; animation: themeDrift 10s ease-in-out infinite;
}
.theme-sunset .profile-theme-bg {
    opacity: .55; background: linear-gradient(120deg, #f97316, #ec4899 55%, #0d0b14);
    background-size: 220% 220%; animation: themeDrift 10s ease-in-out infinite;
}
.theme-neon .profile-theme-bg {
    opacity: .6; background: radial-gradient(circle at 30% 20%, #a855f7, #0d0b14 60%), radial-gradient(circle at 80% 80%, #ec4899, transparent 55%);
    animation: neonPulse 3s ease-in-out infinite;
}
.theme-floresta .profile-theme-bg {
    opacity: .5; background: linear-gradient(120deg, #059669, #0d0b14 60%, #34d399);
    background-size: 220% 220%; animation: themeDrift 12s ease-in-out infinite;
}
.theme-galaxia .profile-theme-bg {
    opacity: .7;
    background:
        radial-gradient(1px 1px at 15% 25%, #fff 100%, transparent), radial-gradient(1px 1px at 65% 65%, #fff 100%, transparent),
        radial-gradient(1.5px 1.5px at 40% 80%, #fff 100%, transparent), radial-gradient(1px 1px at 85% 15%, #fff 100%, transparent),
        linear-gradient(135deg, #1e1b4b, #0d0b14 60%, #4c1d95);
    background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%, 260% 260%;
    animation: themeDrift 16s ease-in-out infinite;
}
.theme-dourado .profile-theme-bg {
    opacity: .55; background: linear-gradient(120deg, #b45309, #0d0b14 55%, #f59e0b, #0d0b14);
    background-size: 260% 260%; animation: themeDrift 8s ease-in-out infinite;
}
.theme-arcoiris .profile-theme-bg {
    opacity: .5; background: linear-gradient(90deg, #f87171, #fb923c, #f5d90a, #34d399, #38bdf8, #a855f7, #f87171);
    background-size: 300% 100%; animation: rainbowMove 6s linear infinite;
}
@keyframes themeDrift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}
@keyframes neonPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.35); }
}

/* ---------- Nível / XP ---------- */
.profile-level-tag { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; }
.level-pill {
    font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
    background: var(--gradient); color: #fff; white-space: nowrap;
}
.xp-bar-mini { flex: 1; max-width: 110px; height: 6px; border-radius: 6px; background: var(--bg-elevated); overflow: hidden; }
.xp-bar-mini-fill { display: block; height: 100%; background: var(--gradient-gold); transition: width .5s ease; }
.xp-bar-full { width: 100%; height: 10px; border-radius: 8px; background: var(--bg-elevated); overflow: hidden; margin-top: 10px; }
.xp-bar-full-fill { display: block; height: 100%; background: var(--gradient-gold); background-size: 200% auto; animation: shine 3s linear infinite; transition: width .6s ease; }
.xp-bar-label { margin: 6px 0 0; }
.profile-me-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-mood-open {
    background: linear-gradient(180deg, rgba(124,58,237,0.14), rgba(236,72,153,0.08));
    border-color: rgba(236,72,153,0.35);
}
.btn-mood-open:hover { border-color: var(--primary-2); }
.mood-open-emoji {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%; color: #fff;
    background: var(--gradient);
}

/* ---------- Seção Aparência ---------- */
.appearance-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.appearance-section h2 { font-size: 17px; margin: 0 0 4px; }
.appearance-form { margin-top: 14px; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.swatch {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 8px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg-elevated);
    cursor: pointer; transition: border-color .2s, transform .15s;
    text-align: center;
}
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch.selected { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(236,72,153,0.18); }
.swatch:active { transform: scale(0.96); }
.swatch.locked { opacity: .45; cursor: not-allowed; }
.swatch-emoji { font-size: 22px; }
.swatch-label { font-size: 11.5px; color: var(--text-muted); }
.swatch-lock { font-size: 10px; color: var(--gold); }
.color-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); }
.color-dot-default { background: var(--text-muted); }
.theme-preview-oceano { background: linear-gradient(120deg, rgba(14,165,233,.25), transparent); }
.theme-preview-sunset { background: linear-gradient(120deg, rgba(249,115,22,.25), transparent); }
.theme-preview-neon { background: radial-gradient(circle at 30% 30%, rgba(168,85,247,.3), transparent 70%); }
.theme-preview-floresta { background: linear-gradient(120deg, rgba(5,150,105,.25), transparent); }
.theme-preview-galaxia { background: radial-gradient(circle at 40% 40%, rgba(76,29,149,.35), transparent 70%); }
.theme-preview-dourado { background: linear-gradient(120deg, rgba(245,158,11,.3), transparent); }
.theme-preview-arcoiris { background: linear-gradient(90deg, rgba(248,113,113,.25), rgba(56,189,248,.25), rgba(168,85,247,.25)); }

/* ---------- Modal de Mood ---------- */
.mood-modal-overlay {
    position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end;
    background: rgba(5,4,10,0); backdrop-filter: blur(0px);
    transition: background .25s ease, backdrop-filter .25s ease;
    /* Enquanto fechado, não pode interceptar cliques do resto do site
       (era essa a causa do "primeiro clique não funciona"). */
    pointer-events: none;
}
/* [hidden] tem que vencer o display:flex acima, senão o overlay continua
   ocupando a tela inteira (invisível) mesmo com o atributo hidden presente. */
.mood-modal-overlay[hidden] { display: none; }
.mood-modal-overlay.open { background: rgba(5,4,10,0.65); backdrop-filter: blur(3px); pointer-events: auto; }
.mood-modal {
    width: 100%; max-width: 480px; margin: 0 auto; background: var(--card); border: 1px solid var(--border);
    border-radius: 22px 22px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.9,.25,1);
}
.mood-modal-overlay.open .mood-modal { transform: translateY(0); }
.mood-modal h2 { margin: 0 0 4px; font-size: 18px; }
.mood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 16px 0; }
.mood-option {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px;
    border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg-elevated); color: var(--text);
    transition: transform .15s, border-color .2s;
}
.mood-option:active { transform: scale(0.94); }
.mood-option.selected { border-color: var(--gold); animation: pop .35s ease; }
.mood-emoji { display: flex; align-items: center; justify-content: center; color: var(--primary-2); }
.mood-label { font-size: 10.5px; color: var(--text-muted); text-align: center; }
.mood-modal-close { width: 100%; padding: 12px; border-radius: 14px; background: none; border: none; color: var(--text-muted); font-weight: 600; }

/* ---------- Toast de XP ---------- */
.xp-toast {
    position: fixed; left: 50%; top: 18px; z-index: 95; transform: translateX(-50%) translateY(-30px);
    background: var(--gradient); color: #fff; padding: 10px 18px; border-radius: 30px;
    font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow); opacity: 0;
    transition: transform .35s cubic-bezier(.2,.9,.25,1), opacity .35s ease;
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.xp-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.xp-toast-levelup { background: var(--gradient-gold); }
.xp-toast span { font-weight: 600; opacity: .95; }

/* ---------- Corações flutuantes ---------- */
.floating-heart {
    position: fixed; z-index: 80; color: var(--fan); font-size: 18px; pointer-events: none;
    animation: heartFloat 1s ease-out forwards;
}
@keyframes heartFloat {
    0% { transform: translate(0,0) scale(0.6); opacity: 1; }
    100% { transform: translate(var(--dx), -80px) scale(1.2); opacity: 0; }
}

/* ============================================================
   WoozChat — camada de estilos adicionada em cima do SukSuk.
   Paleta inspirada no Woozworld: roxo elétrico + rosa neon + turquesa,
   com bastante brilho e cantos arredondados.
   ============================================================ */
:root {
    --wooz-purple: #7c3aed;
    --wooz-pink: #ec4899;
    --wooz-cyan: #22d3ee;
    --wooz-gold: #fbbf24;
    --wooz-grad: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #22d3ee 100%);
    --wooz-grad-warm: linear-gradient(135deg, #fbbf24 0%, #ec4899 60%, #7c3aed 100%);
}

/* Logo mais WoozChat */
.topbar .logo {
    background: var(--wooz-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -.5px;
}

/* Selo Premium (coroa) — pequeno, alinha com o texto */
.premium-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -2px;
    filter: drop-shadow(0 0 6px rgba(251,191,36,.55));
}

/* Link Premium no topo — vira dourado piscante */
.icon-btn.premium-link { color: var(--wooz-gold); animation: premiumPulse 2.5s ease-in-out infinite; }
@keyframes premiumPulse {
    0%,100% { filter: drop-shadow(0 0 3px rgba(251,191,36,.4)); }
    50%     { filter: drop-shadow(0 0 12px rgba(251,191,36,.9)); }
}

/* --------- Bazar PIX --------- */
.bazar-page { padding: 12px 14px 100px; max-width: 940px; margin: 0 auto; }
.bazar-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.bazar-header h1 {
    font-size: 26px; margin: 0 0 4px; letter-spacing: -.4px;
    background: var(--wooz-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bazar-add-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-weight: 700; }
.bazar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.bazar-card {
    display: flex; flex-direction: column;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bazar-card:hover { transform: translateY(-2px); border-color: rgba(236,72,153,.4); box-shadow: 0 10px 30px -10px rgba(124,58,237,.4); }
.bazar-card-media {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(236,72,153,.1));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.bazar-card-media img { width: 100%; height: 100%; object-fit: cover; }
.bazar-noimg { font-size: 42px; opacity: .6; }
.bazar-noimg.large { font-size: 88px; }
.bazar-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.bazar-card-title { font-size: 14px; line-height: 1.25; }
.bazar-card-price {
    font-weight: 800; font-size: 16px;
    background: var(--wooz-grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bazar-card-user { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; margin-top: 4px; }
.bazar-card-user img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

.bazar-item-page { padding: 12px 14px 100px; max-width: 780px; margin: 0 auto; }
.bazar-item-card {
    display: grid; grid-template-columns: 1fr; gap: 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px; padding: 14px; margin-top: 8px;
}
@media (min-width: 720px) {
    .bazar-item-card { grid-template-columns: 1fr 1fr; }
}
.bazar-item-media {
    position: relative; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden;
    background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(34,211,238,.1));
    display: flex; align-items: center; justify-content: center;
}
.bazar-item-media img { width: 100%; height: 100%; object-fit: cover; }
.bazar-status-tag { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.55); padding: 4px 10px; border-radius: 999px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.bazar-item-info h1 { font-size: 22px; margin: 4px 0 6px; }
.bazar-item-price {
    font-size: 30px; font-weight: 800; margin: 0 0 10px;
    background: var(--wooz-grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bazar-item-desc { white-space: pre-line; line-height: 1.5; opacity: .9; }
.bazar-item-seller {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 14px 0;
    border-radius: 14px; background: rgba(255,255,255,.04); text-decoration: none; color: inherit;
}
.bazar-item-seller img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.bazar-item-seller span { display: block; font-size: 12px; opacity: .7; }
.bazar-item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-whatsapp {
    flex: 1; min-width: 200px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 18px; border-radius: 14px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff; font-weight: 700; text-decoration: none; border: none;
    box-shadow: 0 8px 24px -10px rgba(37,211,102,.6);
    transition: transform .15s ease;
}
.btn-whatsapp:hover { transform: translateY(-1px); }
.inline-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; color: inherit; opacity: .8; text-decoration: none; }

/* --------- Premium page --------- */
.premium-page { padding: 20px 16px 120px; max-width: 780px; margin: 0 auto; text-align: center; }
.premium-hero { padding: 24px 8px; }
.premium-hero-icon { display: inline-block; margin-bottom: 10px; filter: drop-shadow(0 0 24px rgba(251,191,36,.5)); }
.premium-hero h1 {
    font-size: 34px; margin: 4px 0; letter-spacing: -.5px;
    background: var(--wooz-grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.premium-sub { opacity: .8; max-width: 480px; margin: 6px auto 16px; line-height: 1.5; }
.premium-status-card {
    display: inline-flex; flex-direction: column; gap: 4px;
    background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35);
    padding: 12px 22px; border-radius: 14px; margin-top: 8px;
}
.premium-status-card strong { color: var(--wooz-gold); }
.premium-status-card span { font-size: 13px; opacity: .8; }
.premium-perks {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px; margin: 22px 0;
}
.perk {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    padding: 18px 14px; border-radius: 18px; text-align: left;
}
.perk h3 { margin: 8px 0 4px; font-size: 15px; }
.perk p { font-size: 13px; opacity: .8; line-height: 1.45; margin: 0; }
.perk-icon { font-size: 26px; }
.premium-plans {
    display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 6px;
}
@media (min-width: 640px) { .premium-plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px; padding: 22px 14px;
    position: relative;
}
.plan-highlight {
    border-color: rgba(251,191,36,.55);
    background: linear-gradient(180deg, rgba(251,191,36,.09), rgba(124,58,237,.06));
    box-shadow: 0 12px 32px -14px rgba(251,191,36,.55);
}
.plan-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .75; }
.plan-price {
    font-size: 42px; font-weight: 800; line-height: 1;
    background: var(--wooz-grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan-price small { font-size: 16px; font-weight: 600; opacity: .8; -webkit-text-fill-color: initial; background: none; color: currentColor; margin: 0 2px; }
.plan-per { font-size: 12px; opacity: .7; margin-bottom: 10px; }
.plan .btn-primary { width: 100%; text-align: center; }
.premium-note { margin-top: 18px; }

/* --------- Admin extras --------- */
.admin-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.btn-premium-toggle {
    padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(251,191,36,.4);
    background: rgba(251,191,36,.08); color: inherit; font-weight: 600; cursor: pointer; font-size: 13px;
    white-space: nowrap;
}
.btn-premium-toggle.active { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1300; border-color: transparent; }
.btn-premium-toggle:disabled { opacity: .5; cursor: wait; }
.admin-tag-premium { background: rgba(251,191,36,.15); color: var(--wooz-gold); border: 1px solid rgba(251,191,36,.4); }

/* Responsividade extra: garante que a bottom-nav com 5 itens não estoura */
.bottom-nav { overflow-x: auto; }
.bottom-nav .nav-item { flex: 1 1 auto; min-width: 60px; }

/* Barra de busca padrão (fallback caso ainda não tenha nas páginas antigas) */
.search-form { display: flex; gap: 8px; margin: 10px 0 6px; }
.search-form input { flex: 1; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: inherit; }
.search-form button { padding: 10px 16px; border-radius: 12px; border: none; background: var(--wooz-grad); color: white; font-weight: 700; cursor: pointer; }
