/* ── TICKER DE NOTIFICAÇÕES ── */
.ticker-wrapper {
  position: absolute;
  top: 110px;
  left: 0; right: 0;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ticker-row {
  display: flex;
  width: max-content;
  gap: 12px;
  will-change: transform;
}
.ticker-row.row-1 { animation: tickerLeft 22s linear infinite; }
.ticker-row.row-2 { animation: tickerRight 18s linear infinite; }
@keyframes tickerLeft  { 0% { transform: translateX(-50%); } 100% { transform: translateX(0%); } }
@keyframes tickerRight { 0% { transform: translateX(0%); }  100% { transform: translateX(-50%); } }
.ticker-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(10,10,18,0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  white-space: nowrap;
  font-size: 13px; font-weight: 600; color: #e0e0e0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.ticker-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  flex-shrink: 0; border: 1.5px solid rgba(255,255,255,0.2);
  background: #333; overflow: hidden;
}
.ticker-amount { color: #f5a623; font-weight: 800; }

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700;900&family=Playfair+Display:wght@700&display=swap');

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface2: #1c1c28;
  --border: #2a2a3a;
  --accent: #f5a623;
  --accent2: #e74c3c;
  --text: #f0f0f0;
  --text-muted: #888;
  --pink: #ff6b9d;
  --tab-active: #f5a623;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans', sans-serif;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 70px;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  background: linear-gradient(to bottom, rgba(10,10,15,0.55), rgba(10,10,15,0.75));
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  pointer-events: none;
}

body > * { position: relative; z-index: 10; }

.top-bar,
.category-tabs {
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

#saldo-display {
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  margin-left: 10px;
  color: #422E1F;
}

.coins-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.coins-pill:hover { opacity: .9; transform: translateY(-1px); }
.coins-pill:active { transform: translateY(0); }

.coins-pill.coins-bg {
  background-image: url("https://i.postimg.cc/g0NDW7yY/Design-sem-nome-(9).png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateX(30px) scale(2.38);
}

.coins-pill.coins-bg { position: relative; overflow: visible; }
.coins-pill.coins-bg::before {
  content: '';
  position: absolute;
  top: 22%; left: -1%;
  width: 98%; height: 45%;
  border: 1px solid rgba(255,220,140,.6);
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  animation: pulseBorder 1.8s ease-in-out infinite;
}
@keyframes pulseBorder {
  0%   { opacity: .4; transform: scale(1); }
  50%  { opacity: 1;  transform: scale(1.06); }
  100% { opacity: .4; transform: scale(1); }
}

.promo-banner {
  flex: 0.7;
  margin-left: -5px;
  padding: -3px -3px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  position: relative;
  overflow: visible;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 99;
}
.category-tabs::-webkit-scrollbar { display: none; }

.tab {
  font-size: 13px; font-weight: 600;
  color: #DADADA;
  cursor: pointer;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  flex-shrink: 0;
}
.tab.active { color: var(--tab-active); border-bottom-color: var(--tab-active); }
.tab-search { margin-left: auto; color: var(--text-muted); cursor: pointer; font-size: 16px; flex-shrink: 0; }

.hero-section { padding: 12px 16px; position: relative; overflow: hidden; }
.hero-carousel { display: flex; gap: 8px; align-items: center; }
.hero-card-side { flex: 0 0 80px; height: 130px; border-radius: 10px; overflow: hidden; opacity: .5; cursor: pointer; transition: opacity .3s; }
.hero-card-side:hover { opacity: .7; }
.hero-card-side img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-main { flex: 1; height: 200px; border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; box-shadow: 0 8px 32px rgba(0,0,0,.6); }
.hero-card-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hero-card-main:hover img { transform: scale(1.03); }

.hero-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.5);
  transition: all .2s;
}
.hero-play-btn:hover { background: rgba(255,255,255,.3); transform: translate(-50%,-50%) scale(1.1); }
.hero-play-btn svg { fill: white; width: 20px; height: 20px; margin-left: 3px; }

.hero-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-size: 13px; font-weight: 700; font-style: italic;
  line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
}

.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 8px; }
.video-card { border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; transition: transform .2s; position: relative; aspect-ratio: 2/3; }
.video-card:hover { transform: scale(.98); }
.video-card .video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-muted); text-align: center; padding: 10px; flex-direction: column; gap: 8px; }
.video-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,.82)); z-index: 2; }
.video-title { font-size: 13px; font-weight: 800; line-height: 1.3; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.video-meta  { font-size: 10px; color: rgba(255,255,255,.65); margin-top: 2px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.video-card:hover .play-overlay { background: rgba(0,0,0,.25); }
.play-icon { width: 36px; height: 36px; background: rgba(255,255,255,.15); backdrop-filter: blur(6px); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; border: 1.5px solid rgba(255,255,255,.4); }
.video-card:hover .play-icon { opacity: 1; }
.play-icon svg { fill: white; width: 14px; height: 14px; margin-left: 2px; }

.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.h-scroll { display: flex; gap: 10px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-card { flex: 0 0 130px; border-radius: 10px; overflow: hidden; background: var(--surface); cursor: pointer; transition: transform .2s; }
.h-card:hover { transform: scale(.97); }
.h-thumb-placeholder { width: 100%; height: 170px; background: linear-gradient(135deg, #1c1c2e, #2a1a2e); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 11px; text-align: center; padding: 8px; }
.h-card-info { padding: 6px 8px 8px; font-size: 11px; font-weight: 700; color: var(--text); line-height: 1.3; }

.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; background: var(--surface); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-around; padding: 10px 0 18px; z-index: 200; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; flex: 1; color: var(--text-muted); font-size: 10px; font-weight: 600; transition: color .2s; }
.nav-item.active { color: var(--accent); }
.nav-item svg { width: 22px; height: 22px; fill: currentColor; }
.nav-badge { position: relative; }
.badge-dot { position: absolute; top: -2px; right: -5px; background: var(--accent2); color: white; font-size: 9px; font-weight: 900; width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--surface); }

.video-modal { display: none; position: fixed; inset: 0; background: #000; z-index: 9999; width: 100vw; left: 0; transform: none; overflow: hidden; }
.video-modal.open { display: block; }
#main-player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: #000; }

.upload-hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; color: #ccc; text-align: center; padding: 30px; background: #111; }
.upload-hint svg { width: 52px; height: 52px; fill: #888; margin-bottom: 14px; }
.upload-hint p  { font-size: 14px; color: #888; margin-top: 6px; }
.upload-btn { margin-top: 18px; background: var(--accent); color: #000; border: none; border-radius: 24px; padding: 12px 28px; font-size: 14px; font-weight: 800; cursor: pointer; }

.player-top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 14px 14px 40px; background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent); pointer-events: none; }
.player-top > * { pointer-events: auto; }
.player-top-row1 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.player-top-row2 { display: flex; align-items: center; gap: 10px; }
.player-back-btn { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.player-ep-label { font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.player-toggle { margin-left: auto; width: 44px; height: 24px; background: #22c55e; border-radius: 12px; position: relative; cursor: pointer; box-shadow: 0 0 8px rgba(34,197,94,.4); flex-shrink: 0; }
.player-toggle::after { content: ''; position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.3); }

.player-sidebar { position: absolute; right: 14px; bottom: 130px; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.player-daily { position: relative; width: 56px; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.player-daily-inner { width: 56px; height: 56px; background: rgba(20,20,30,.8); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; backdrop-filter: blur(4px); }
.player-daily-label { margin-top: 6px; background: var(--accent); color: #000; font-size: 9px; font-weight: 900; border-radius: 8px; padding: 1px 7px; white-space: nowrap; }

.player-action { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: #fff; }
.player-action svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); transition: all .2s; }
.player-action.liked svg { fill: #ff4d6d; stroke: #ff4d6d; }
.player-action-count { font-size: 11px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.7); }

.player-ep-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: #fff; }
.player-ep-btn svg { width: 28px; height: 28px; fill: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.player-ep-btn span { font-size: 11px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.7); }

.player-controls { position: absolute; bottom: 0; left: 0; right: 0; z-index: 10; padding: 60px 16px 28px; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; transition: opacity .3s; }
.player-controls > * { pointer-events: auto; }
.player-progress-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.player-time { font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; min-width: 36px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.player-scrubber { flex: 1; -webkit-appearance: none; appearance: none; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); cursor: pointer; outline: none; }
.player-scrubber::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #e74c3c; box-shadow: 0 0 6px rgba(231,76,60,.5); cursor: pointer; }
.player-row { display: flex; align-items: center; gap: 14px; }
.play-pause-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; }
.play-pause-btn svg { width: 28px; height: 28px; fill: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.ctrl-btn { background: none; border: none; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 3px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.ctrl-btn svg { width: 20px; height: 20px; fill: #fff; }

.ep-drawer { position: absolute; bottom: 0; left: 0; right: 0; z-index: 20; background: rgba(10,10,15,.97); border-radius: 20px 20px 0 0; padding: 16px; transform: translateY(100%); transition: transform .35s cubic-bezier(.25,.8,.25,1); max-height: 60vh; overflow-y: auto; }
.ep-drawer.open { transform: translateY(0); }
.ep-drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ep-drawer-title  { font-size: 15px; font-weight: 800; }
.ep-drawer-close  { background: var(--surface2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ep-drawer-grid   { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.ep-drawer-btn    { background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px 4px; font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; transition: all .2s; }
.ep-drawer-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
.ep-drawer-btn.has-video { border-color: #22c55e; }
.ep-drawer-backdrop { display: none; position: absolute; inset: 0; z-index: 19; background: rgba(0,0,0,.5); }
.ep-drawer-backdrop.open { display: block; }

.add-video-section { padding: 12px 16px; background: var(--surface2); border-radius: 14px; margin: 12px 16px; border: 2px dashed var(--border); text-align: center; }
.add-video-section p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.add-btn { background: linear-gradient(135deg, var(--accent), #e67e22); color: #000; border: none; border-radius: 20px; padding: 10px 28px; font-size: 13px; font-weight: 800; cursor: pointer; letter-spacing: .5px; }

@keyframes slideInRight { from { transform: translateX(60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInLeft  { from { transform: translateX(-60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.hero-card-main.slide-in-right { animation: slideInRight .4s cubic-bezier(.25,.8,.25,1) both; }
.hero-card-main.slide-in-left  { animation: slideInLeft  .4s cubic-bezier(.25,.8,.25,1) both; }

.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: all .3s; cursor: pointer; }
.dot.active { background: var(--accent); width: 18px; border-radius: 3px; }

@keyframes saldoPulse { 0% { transform: scale(1); } 50% { transform: scale(1.12); color: #f5a623; } 100% { transform: scale(1); } }
.saldo-updated { animation: saldoPulse .5s ease; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.video-card, .h-card, .hero-card-main { animation: fadeUp .4s ease both; }
.video-card:nth-child(2) { animation-delay: .05s; }
.video-card:nth-child(3) { animation-delay: .1s; }
.video-card:nth-child(4) { animation-delay: .15s; }

.grad-1 { background: linear-gradient(135deg,#1a0a2e,#3d1a4a); }
.grad-2 { background: linear-gradient(135deg,#0a1a2e,#1a3a5a); }
.grad-3 { background: linear-gradient(135deg,#1a1a0a,#3a2a0a); }
.grad-4 { background: linear-gradient(135deg,#0a2e1a,#1a4a2a); }
.grad-5 { background: linear-gradient(135deg,#2e0a0a,#5a1a1a); }
.grad-6 { background: linear-gradient(135deg,#1a0a1a,#4a0a2e); }

.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px); background: #222; color: #fff; padding: 10px 20px; border-radius: 24px; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transition: all .3s; z-index: 9999; pointer-events: none; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

input[type="file"] { display: none; }

.upload-progress { position: fixed; bottom: 90px; right: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; min-width: 200px; z-index: 9998; display: none; }
.upload-progress.show { display: block; }
.upload-progress p { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s; width: 0%; }

.player-top-row1 { display: flex; align-items: center; gap: 10px; }
.player-top-row1 .coins-pill { flex-shrink: 0; transform: scale(1.4); transform-origin: left center; }
.player-top-row1 .promo-banner { flex: 1; margin-left: 30px; padding: 6px 10px; font-size: 11px; }
#player-saldo-display { margin-left: 18px; color: #422E1F; font-size: 12px; font-weight: 700; line-height: 1; }
.player-daily-inner img { width: 70%; height: 70%; object-fit: contain; display: block; }

/* ══════════════════════════════════════════════
   KWAI REWARD ANIMATION SYSTEM
══════════════════════════════════════════════ */


/* ═══════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════ */
@keyframes kwaiSpin        { to { transform: rotate(360deg); } }
@keyframes kwaiSpinReverse { to { transform: rotate(-360deg); } }
@keyframes kwaiGlow {
  0%, 100% { transform: scale(1);    opacity: 0.3; }
  50%       { transform: scale(1.10); opacity: 0.8; }
}
@keyframes sparkOrbit {
  0%   { transform: rotate(0deg)   translateX(0) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(0) rotate(-360deg); }
}
@keyframes moneyPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  70%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}
@keyframes badgePulse {
  0%   { transform: translateX(-50%) scale(1); }
  30%  { transform: translateX(-50%) scale(1.45); box-shadow: 0 0 18px rgba(245,166,35,0.9); }
  60%  { transform: translateX(-50%) scale(0.9); }
  100% { transform: translateX(-50%) scale(1); }
}
@keyframes rewardFloat {
  0%   { opacity: 1;   transform: translateX(-50%) translateY(0px)   scale(1); }
  20%  { opacity: 1;   transform: translateX(-50%) translateY(-8px)  scale(1.1); }
  70%  { opacity: 0.8; transform: translateX(-50%) translateY(-32px) scale(1); }
  100% { opacity: 0;   transform: translateX(-50%) translateY(-52px) scale(0.85); }
}
/* ═══════════════════════════════════════════
   DRAMABOX — ABA PERFIL  (perfil.css)
   Tema: Luxury Gold / Dark Royal
   ═══════════════════════════════════════════ */

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

/* ── VARIÁVEIS ── */
:root {
  --bg:           #0c0906;
  --surface:      #1a1308;
  --surface2:     #231a08;
  --border:       rgba(180,130,40,0.25);
  --gold:         #c8922a;
  --gold-light:   #f0c060;
  --gold-bright:  #ffe48a;
  --gold-dim:     #7a5818;
  --text:         #f2e8cc;
  --text-muted:   #9a8860;
  --accent-red:   #e74c3c;
  --vip-bg:       linear-gradient(135deg,#2a1a04,#3d2608 40%,#2a1a04);
  --btn-gold:     linear-gradient(180deg,#e8b840 0%,#c07820 50%,#a06010 100%);
  --btn-gold-h:   linear-gradient(180deg,#f0c850 0%,#d08830 50%,#b07020 100%);
}

/* ── RESET + BASE ── */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}

/* ── WRAPPER DA ABA ── */
#perfil-tab {
  display: none;
  min-height: 100vh;
  background: var(--bg);
  font-family: 'Noto Sans', sans-serif;
  color: var(--text);
  padding-bottom: 80px;
  position: relative;
  overflow-x: hidden;
}
#perfil-tab.active { display: block; }

/* ══════════════════════════════════════════
   FUNDO BRILHANTE — partículas douradas
══════════════════════════════════════════ */
.perf-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.perf-star {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0;
  animation: starTwinkle var(--sd, 4s) ease-in-out var(--ss, 0s) infinite;
}
@keyframes starTwinkle {
  0%,100%{ opacity:0; transform:scale(0.4) }
  50%    { opacity:var(--so,0.7); transform:scale(1) }
}

/* Curva dourada decorativa sob o header */
.perf-arc {
  position: absolute;
  left: -10%;
  width: 120%;
  bottom: -1px;
  height: 50px;
  z-index: 1;
}

/* ══════════════════════════════════════════
   HEADER DO PERFIL
══════════════════════════════════════════ */
.perf-header {
  position: relative;
  background: linear-gradient(180deg,#1e1408 0%,#120e06 80%,#0c0906 100%);
  padding: 20px 16px 0;
  z-index: 1;
}

/* Linha superior: avatar + nome + botões */
.perf-top-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Avatar */
.perf-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.perf-avatar {
  width: 800px;
  height: 800px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--gold);
  background: #2a1a08;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  overflow: hidden;
}
.perf-vip-badge {
  position: absolute;
  bottom: -12px; /* mais pra baixo */
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg,#b07010,#f0c040,#b07010);
  color: #1a0a00;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(200,140,0,.5);
}

/* Info */
.perf-info {
  flex: 1;
  padding-top: 4px;
}
.perf-name {
  font-size: 18px;
  font-weight: 800;
  color: #FFECCB;
  line-height: 1.1;
}
.perf-id {
  font-weight: 800;
  font-size: 12px;
  color: #FFECCB;
  margin-top: 2px;
}
.perf-link-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.link-img {
  height: 30px;
  width: auto;
  display: block;
  margin-left: -6px; /* move pra esquerda */
}

/* Botões depósito / saque */
.perf-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  padding-top: 2px;
}
.perf-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform .2s;
}
.perf-action-btn:hover { transform: translateY(-2px); }
.perf-action-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg,#3a2808,#251808);
  border: 1.5px solid rgba(200,146,42,0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,.5), 0 0 0 1px rgba(200,146,42,.15) inset;
}
.perf-action-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Linha de ações (depósito + saque) lado a lado no topo */
.perf-header-actions {
  display: flex;
  gap: 16px;
}
.perf-action-btn2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform .2s;
}
.perf-action-icon2 img {
  width: 20px;
  height: 20px;
  object-fit: contain;

  transform: translateX(-20px); /* move pra esquerda */
}

.perf-action-label2 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Linha horizontal — separador arco dourado */
.perf-divider-arc {
  width: 100%;
  height: 36px;
  margin-top: 12px;
  position: relative;
}
.perf-divider-arc::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
  transform: translateY(-50%);
}
/* bolinha central */
.perf-divider-arc::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px var(--gold);
}
/* bolinhas laterais */
.arc-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
}
.arc-dot.left  { left: 10px; }
.arc-dot.right { right: 10px; }

/* ══════════════════════════════════════════
   CARD VIP
══════════════════════════════════════════ */
.perf-vip-section {
  position: relative;
  margin: 0 12px;
  z-index: 1;
}

/* Setas laterais decorativas */
.vip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 80px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vip-arrow.left  { left: -14px; }
.vip-arrow.right { right: -14px; }
.vip-arrow svg { width: 32px; height: 80px; }

.perf-vip-card {
  background: linear-gradient(160deg,#2c1c06 0%,#3d2808 30%,#2c1c06 60%,#1e1204 100%);
  border: 1.5px solid rgba(200,146,42,0.5);
  border-radius: 18px;
  padding: 16px 14px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.6), 0 0 0 1px rgba(240,192,96,.08) inset;
}

/* Faixa "Valor R$100" no canto */
.vip-corner-tag {
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(135deg,#e74c3c,#c0392b);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 18px 4px 10px;
  clip-path: polygon(0 0,100% 0,100% 100%,20% 100%);
  letter-spacing: .5px;
}

/* Título VIP */
.vip-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.vip-crown { font-size: 32px; filter: drop-shadow(0 2px 6px rgba(240,192,60,.6)); }
.vip-title-text {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(200,146,42,.5);
}

/* Cards de benefício */
.vip-benefits {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.vip-benefit {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(200,146,42,.25);
  border-radius: 12px;
  padding: 10px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.vip-benefit-tag {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg,#e0501a,#f07030);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(220,80,30,.4);
}
.vip-benefit-icon { font-size: 40px; margin-top: 6px; }
.vip-benefit-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
}

/* Saldo saque */
.perf-saldo-section {
  position: relative;
  z-index: 1;
  margin: -150px 12px 0; /* sobe */
  background: linear-gradient(180deg, rgba(180,120,20,0.08), rgba(180,120,20,0.04));
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 18px 18px;
  padding: 16px 16px 20px;
}
.perf-saldo-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.perf-saldo-label::before,
.perf-saldo-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,146,42,0.4));
}
.perf-saldo-label::after { transform: scaleX(-1); }

.perf-saldo-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.perf-saldo-icon { font-size: 34px; }
.perf-saldo-number {
  font-size: 30px;
    margin-left: 30px; /* move só o texto pra direita */
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: -1px;
  text-shadow: 0 2px 12px rgba(200,146,42,.4);
}
.perf-saldo-number{

}
.perf-sacar-btn {
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  outline: none;
}
.vip-full-img {
  width: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
}
.perf-sacar-btn:hover,
.perf-sacar-btn:active,
.perf-sacar-btn:focus {
  background: transparent;
  box-shadow: none;
  transform: none;
  outline: none;
}

.sacar-img{
  height: 42px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
}
@keyframes shineMove{
  0%   { left:-120%; opacity: 0; }
  15%  { opacity: 1; }
  45%  { left:130%; opacity: 1; }
  100% { left:130%; opacity: 0; }
}
@keyframes pulseSacar {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
} 
/* ══════════════════════════════════════════
   MENU DE OPÇÕES
══════════════════════════════════════════ */
.perf-menu {
  margin: -8px 0 0; /* sobe */
  background: var(--bg);
}
.perf-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  transition: background .2s;
  position: relative;
}
.perf-menu-item:hover { background: rgba(200,146,42,.05); }
.perf-menu-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.perf-menu-label {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #FFEAD0;
}
.perf-menu-arrow {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 300;
}

/* Seção Histórico */
.perf-historico-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px 10px;
  border-bottom: none;
}
.perf-historico-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* Scroll horizontal de dramas do histórico */
.perf-hist-scroll {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.perf-hist-scroll::-webkit-scrollbar { display: none; }
.perf-hist-card {
  flex: 0 0 100px;
  cursor: pointer;
  transition: transform .2s;
}
.perf-hist-card:hover { transform: scale(0.97); }
.perf-hist-thumb {
  width: 100px;
  height: 136px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #2a1a08;
}
.perf-hist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.perf-hist-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
/* Badge laranja de "continuar" */
.perf-hist-continue {
  position: absolute;
  left: 0; top: 40%;
  background: #f5a623;
  color: #000;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 6px;
  border-radius: 0 4px 4px 0;
}
.perf-hist-ep {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Separador de seção */
.perf-section-sep {
  height: 8px;
  background: rgba(255,255,255,.03);
}

/* ══════════════════════════════════════════
   BOTTOM NAV (compartilhado)
══════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #13131a;
  border-top: 1px solid #2a2a3a;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0 18px;
  z-index: 200;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex: 1;
  color: #888;
  font-size: 10px;
  font-weight: 600;
  transition: color .2s;
  font-family: 'Noto Sans', sans-serif;
}
.nav-item.active { color: #f5a623; }
.nav-item svg { width: 22px; height: 22px; fill: currentColor; }
.nav-badge { position: relative; }
.badge-dot {
  position: absolute;
  top: -2px; right: -5px;
  background: #e74c3c;
  color: white;
  font-size: 9px;
  font-weight: 900;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #13131a;
}

/* ══════════════════════════════════════════
   ANIMAÇÕES DE ENTRADA
══════════════════════════════════════════ */
@keyframes fadeSlideUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
.perf-header   { animation: fadeSlideUp .4s ease both; }
.perf-vip-section  { animation: fadeSlideUp .4s .08s ease both; }
.perf-saldo-section{ animation: fadeSlideUp .4s .14s ease both; }
.perf-menu     { animation: fadeSlideUp .4s .22s ease both; }

/* ══════════════════════════════════════════
   ABA POPULAR
══════════════════════════════════════════ */
#tab-popular {
  min-height: calc(100vh - 70px);
  background: #0c0906;
  padding-bottom: 80px;
}

.popular-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 6px;
  background: #0c0906;
  position: sticky;
  top: 0;
  z-index: 10;
}

.popular-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.popular-filters {
  display: flex;
  gap: 8px;
}

.pop-filter-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #aaa;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.pop-filter-btn.active {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
}

/* Player de scroll vertical (TikTok style) */
.popular-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  height: calc(100vh - 120px);
}

.popular-item {
  position: relative;
  scroll-snap-align: start;
  min-height: calc(100vh - 120px);
  background: #111;
  overflow: hidden;
  cursor: pointer;
}

.popular-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popular-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 64px;
  gap: 12px;
}

.popular-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.popular-item-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.popular-item-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.popular-item-ep-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.popular-item-ep-icon {
  width: 28px;
  height: 28px;
  fill: #f5c518;
}

.popular-item-ep-label {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  flex: 1;
}

.popular-item-ep-arrow {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
}

/* sidebar do item popular */
.popular-item-sidebar {
  position: absolute;
  right: 12px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pop-side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.pop-side-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.pop-side-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.pop-side-label {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}

/* ── Badge Dia N — estilo da imagem ── */
.pop-reward-badge {
  position: absolute;
  top: 62px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  z-index: 5;
  cursor: default;
}

.pop-reward-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #7a1a1a, #3a0808);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Anel amarelo espesso com sombra brilhante */
  box-shadow:
    0 0 0 5px #f5c800,
    0 0 0 6px rgba(245,200,0,0.3),
    0 0 16px rgba(245,180,0,0.6),
    inset 0 2px 8px rgba(0,0,0,0.5);
}

.pop-reward-circle img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

.pop-reward-circle-label {
  position: static;
  display: block;
  background: linear-gradient(135deg, #f5c800, #e8a800);
  color: #1a0800;
  font-size: 11px;
  font-weight: 900;
  border-radius: 0 0 8px 8px;
  padding: 3px 0;
  white-space: nowrap;
  width: 60px;
  text-align: center;
  margin-top: -2px;
  box-shadow: 0 3px 8px rgba(200,150,0,0.5);
  letter-spacing: 0.3px;
}

.pop-reward-day {
  font-size: 11px;
  color: #f5c518;
  font-weight: 600;
}

/* coins pill no popular */
.popular-coins-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  pointer-events: none;
}

.popular-coins-bar > * {
  pointer-events: all;
}

/* ══════════════════════════════════════════
   ABA VANTAGEM
══════════════════════════════════════════ */
#tab-vantagem {
  min-height: 100vh;
  background: #0c0906;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.vantagem-stars-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.vantagem-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: vantStarPulse var(--sd, 3s) ease-in-out var(--ss, 0s) infinite alternate;
  opacity: var(--so, 0.4);
}

@keyframes vantStarPulse {
  from { opacity: var(--so, 0.4); transform: scale(1); }
  to   { opacity: calc(var(--so, 0.4) * 0.3); transform: scale(0.6); }
}

.vantagem-content {
  position: relative;
  z-index: 1;
}

/* Banner topo */
.vantagem-banner {
  background: linear-gradient(180deg, rgba(200,146,42,0.15) 0%, transparent 100%);
  border-bottom: 1px solid rgba(200,146,42,0.2);
  padding: 12px 16px 10px;
  text-align: center;
  font-size: 13px;
  color: #f5c518;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Cards de vantagem */
.vantagem-list {
  padding: 14px 14px 0;
  display: flex;
  flex-direction: column;
}


.vantagem-card:active { background: rgba(255,255,255,0.09); }

.vantagem-card-thumb {
  width: 70px;
  min-width: 70px;
  height: 70px;
  border-radius: 10px;
  background: rgba(200,146,42,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(200,146,42,0.3);
  overflow: hidden;
  position: relative;
}

.vantagem-card-thumb-label {
  font-size: 9px;
  color: #aaa;
  text-align: center;
  line-height: 1.2;
  padding: 0 2px;
}

.vantagem-card-money-icon {
  font-size: 28px;
}

.vantagem-card-value {
  font-size: 14px;
  font-weight: 800;
  color: #f5c518;
  letter-spacing: 0.2px;
}

.vantagem-card-body {
  flex: 1;
  min-width: 0;
}

.vantagem-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vantagem-card-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.vantagem-card-progress {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

.vantagem-card-action {
  min-width: max-content;
}

.vantagem-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(100,80,40,0.5);
  border: 1px solid rgba(200,146,42,0.4);
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  white-space: nowrap;
}

.vantagem-action-btn svg {
  width: 14px;
  height: 14px;
  fill: #c8922a;
  flex-shrink: 0;
}

.vantagem-action-btn.timed {
  flex-direction: column;
  gap: 2px;
  align-items: center;
  font-size: 11px;
}

.vantagem-action-btn.timed .timer-text {
  color: rgba(255,255,255,0.5);
  font-size: 10px;
}

/* Seção de membros */
.vantagem-members-section {
  margin: 20px 14px 0;
  text-align: center;
}

.vantagem-members-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}

.vantagem-members-count {
  font-size: 22px;
  font-weight: 800;
  color: #f5c518;
  letter-spacing: 0.5px;
}

.vantagem-members-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* pix icon */
.pix-badge {
  background: #32bcad;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 4px;
  letter-spacing: 0.5px;
  display: inline-block;
}
/* ════════════════════════════════════════════════════════════════
   vincular.css  —  Modal "Vincular Conta" + Banner Visitante
   Coloque em: assets/css/vincular.css
   ════════════════════════════════════════════════════════════════ */

/* ── Backdrop ─────────────────────────────────────────────────── */
.vincular-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.vincular-backdrop.open { display: block; }

/* ── Modal container ──────────────────────────────────────────── */
.vincular-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.90);
  z-index: 9001;
  width: min(93vw, 430px);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  padding: 28px 22px 26px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 0 2px #f5a623;
  transition:
    transform 0.28s cubic-bezier(.34, 1.56, .64, 1),
    opacity 0.2s ease;
  opacity: 0;
  /* scrollbar fino */
  scrollbar-width: thin;
  scrollbar-color: #f5a623 #f0f0f0;
}
.vincular-modal::-webkit-scrollbar { width: 4px; }
.vincular-modal::-webkit-scrollbar-thumb { background: #f5a623; border-radius: 4px; }
.vincular-modal.open {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── Botão fechar ─────────────────────────────────────────────── */
.vincular-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  z-index: 1;
}
.vincular-close:hover { background: #f5f5f5; color: #555; }

/* ── Título ───────────────────────────────────────────────────── */
.vincular-title {
  text-align: center;
  font-size: 23px;
  font-weight: 800;
  color: #e67e22;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}

/* ── Info box ─────────────────────────────────────────────────── */
.vincular-info-box {
  background: #fffbf0;
  border: 1px solid #f5c518;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 13px;
  color: #7a5a10;
  margin-bottom: 14px;
  line-height: 1.55;
  text-align: center;
}

/* ── ID do visitante ──────────────────────────────────────────── */
.vincular-guest-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f4f4f4;
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 18px;
}
.vincular-guest-label {
  font-size: 12px;
  color: #888;
}
.vincular-guest-value {
  font-weight: 800;
  color: #333;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.8px;
  background: #e8e8e8;
  padding: 2px 8px;
  border-radius: 6px;
}

/* ── Campo de formulário ──────────────────────────────────────── */
.vincular-field-group { margin-bottom: 14px; }

.vincular-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
}

/* ── Wrapper do input ─────────────────────────────────────────── */
.vincular-input-wrap {
  display: flex;
  align-items: center;
  border: 1.8px solid #e0c87a;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vincular-input-wrap:focus-within {
  border-color: #f5a623;
  box-shadow: 0 0 0 3.5px rgba(245, 166, 35, 0.18);
}

/* ícone à esquerda */
.vincular-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0 10px 0 12px;
  fill: #c8922a;
  opacity: 0.75;
}

/* input */
.vincular-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #222;
  padding: 13px 6px 13px 0;
  background: transparent;
  min-width: 0;
}
.vincular-input::placeholder { color: #bbb; }

/* botão olho (mostrar/ocultar senha) */
.vincular-eye {
  background: none;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.vincular-eye svg {
  width: 18px;
  height: 18px;
  fill: #bbb;
  transition: fill 0.15s;
}
.vincular-eye:hover svg { fill: #888; }

/* ── Notice de saldo preservado ──────────────────────────────── */
.vincular-saldo-notice {
  display: none;           /* JS mostra quando saldo > 0 */
  align-items: center;
  gap: 9px;
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.14), rgba(245, 166, 35, 0.08));
  border: 1px solid rgba(245, 197, 24, 0.45);
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 13px;
  color: #7a5a10;
  margin-bottom: 14px;
  line-height: 1.45;
}

/* ── Mensagem de erro ─────────────────────────────────────────── */
.vincular-error {
  display: none;          /* JS mostra quando há erro */
  background: #fff0f0;
  border: 1px solid #ffb3b3;
  border-radius: 10px;
  color: #c0392b;
  font-size: 13px;
  padding: 11px 14px;
  margin-bottom: 14px;
  line-height: 1.45;
}

/* ── Botão principal ──────────────────────────────────────────── */
.vincular-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #f5a623 0%, #e67e22 100%);
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.45);
}
.vincular-btn:hover  { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 9px 24px rgba(245,166,35,0.5); }
.vincular-btn:active { opacity: 0.86; transform: translateY(0); }
.vincular-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Spinner ──────────────────────────────────────────────────── */
.vincular-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vincSpin 0.65s linear infinite;
}
@keyframes vincSpin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════
   BANNER DE VISITANTE (na aba Perfil)
   ════════════════════════════════════════════════════════════════ */
.guest-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.18) 0%, rgba(200, 146, 42, 0.12) 100%);
  border: 1.5px solid rgba(245, 166, 35, 0.45);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 14px 18px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.guest-banner:active { transform: scale(0.98); }

.guest-banner-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}

.guest-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.guest-banner-text strong {
  font-size: 14px;
  font-weight: 800;
  color: #f5c518;
  line-height: 1.3;
}
.guest-banner-text span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.guest-banner-arrow {
  font-size: 22px;
  color: #f5c518;
  flex-shrink: 0;
  font-weight: 700;
}

/* ── Perfil: botão "conta vinculada" ─────────────────────────── */
.perf-link-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #4caf50 !important;
  cursor: default !important;
  pointer-events: none;
}
.perf-link-verified svg {
  fill: #4caf50;
  width: 14px;
  height: 14px;
}

/* ════════════════════════════════════════════════════════════════
   ESTILOS DA ABA POPULAR (TikTok-style feed)
   ════════════════════════════════════════════════════════════════ */
#tab-popular {
  min-height: calc(100vh - 70px);
  background: #000;
  position: relative;
}

.popular-feed {
  height: calc(100vh - 60px);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.popular-item {
  position: relative;
  height: calc(100vh - 60px);
  scroll-snap-align: start;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.popular-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popular-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

/* barra topo interna ao item */
.popular-coins-bar-inner {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 4;
}
.popular-coins-bar-inner > * { pointer-events: all; }


/* Label "Dia 1" abaixo, colado no círculo */

.pop-reward-day {
  display: none; /* agora o label é .pop-reward-circle-label */
}

/* sidebar direita */
.popular-item-sidebar {
  position: absolute;
  right: 12px;
  bottom: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 5;
}
.pop-side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.pop-side-icon {
  width: 44px; height: 44px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.pop-side-icon svg { width: 22px; height: 22px; fill: #fff; }
.pop-side-label { font-size: 11px; color: rgba(255,255,255,0.85); }

/* overlay inferior */
.popular-item-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 60px 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  z-index: 4;
}
.popular-item-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.popular-item-meta  { font-size: 12px; color: rgba(255,255,255,0.65); margin-bottom: 10px; }
.popular-item-ep-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.45);
  border-radius: 8px;
  padding: 8px 12px;
  width: fit-content;
}
.popular-item-ep-icon  { width: 20px; height: 20px; fill: #f5c518; flex-shrink: 0; }
.popular-item-ep-label { font-size: 13px; color: #fff; font-weight: 600; }
.popular-item-ep-arrow { color: rgba(255,255,255,0.55); font-size: 16px; }

/* ════════════════════════════════════════════════════════════════
   ABA VANTAGEM
   ════════════════════════════════════════════════════════════════ */
#tab-vantagem {
  min-height: 100vh;
  background: #0c0906;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.vantagem-stars-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}
.vantagem-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: vantStarPulse var(--sd, 3s) ease-in-out var(--ss, 0s) infinite alternate;
  opacity: var(--so, 0.4);
}
@keyframes vantStarPulse {
  from { opacity: var(--so, 0.4); transform: scale(1); }
  to   { opacity: calc(var(--so, 0.4) * 0.3); transform: scale(0.6); }
}
.vantagem-content { position: relative; z-index: 1; }
.vantagem-banner {
  background: linear-gradient(180deg, rgba(200,146,42,0.15) 0%, transparent 100%);
  border-bottom: 1px solid rgba(200,146,42,0.2);
  padding: 14px 16px 12px;
  text-align: center;
  font-size: 13px;
  color: #f5c518;
  font-weight: 500;
}
.vantagem-list {
  padding: 14px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vantagem-card {
  border-radius: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.vantagem-card-thumb {
  width: 70px; min-width: 70px; height: 70px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200,146,42,0.25);
}
.vantagem-card-thumb-label { font-size: 8px; color: #aaa; text-align: center; }
.vantagem-card-money-icon  { font-size: 26px; }
.vantagem-card-value { font-size: 13px; font-weight: 800; color: #f5c518; }
.vantagem-card-body { flex: 1; min-width: 0; }
.vantagem-card-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 3px; line-height: 1.3; }
.vantagem-card-desc { font-size: 12px; color: rgba(255,255,255,0.5); }
.vantagem-card-progress { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 5px; }
.vantagem-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 7px 11px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.vantagem-action-btn svg { width: 13px; height: 13px; fill: #c8922a; flex-shrink: 0; }
.vantagem-action-btn.timed { flex-direction: column; gap: 1px; align-items: center; }
.vantagem-action-btn.timed .timer-text { color: rgba(255,255,255,0.45); font-size: 10px; }
.vantagem-members-section { margin: 22px 14px 0; text-align: center; }
.vantagem-members-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 5px; }
.vantagem-members-count { font-size: 20px; font-weight: 800; color: #f5c518; }
.pix-badge {
  background: #32bcad;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  border-radius: 3px;
  padding: 1px 3px;
  letter-spacing: 0.3px;
  display: inline-block;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVIDADE — telas muito pequenas (< 360px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .vincular-modal { padding: 22px 16px 20px; }
  .vincular-title { font-size: 20px; }
  .vincular-input { font-size: 13px; }
  .vincular-btn   { font-size: 15px; padding: 14px; }
}
