/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:    #8b2fd4;
  --purple-dk: #5a1a8a;
  --green:     #22c55e;
  --green-dk:  #16a34a;
  --gold:      #f5c518;
  --blue:      #3b82f6;
  --red:       #ef4444;
  --surface:   rgba(15,5,35,0.75);
  --card-bg:   rgba(18,6,40,0.88);
  --text:      #fff;
  --radius:    20px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background: #1e0840;
}

/* ===== BACKGROUND SCENE ===== */
#bgScene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#bgImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ===== DECORATIVE BUBBLES ===== */
.deco-bubble {
  position: fixed;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatDeco 5s ease-in-out infinite;
  transition: opacity .3s;
}

/* Glass highlight overlay */
.deco-bubble::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,0.55) 0%, transparent 55%);
  pointer-events: none;
}

/* Star shape inside bubble */
.bstar {
  width: 46%;
  height: 46%;
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  background: rgba(255,255,255,0.88);
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.9));
}
.bcoin {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
  font-size: 38%;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* Bubble colors */
.b-purple {
  background: radial-gradient(circle at 38% 30%, #c89aff 0%, #8b2fd4 45%, #3d0e80 100%);
  box-shadow: 0 6px 28px rgba(139,47,212,0.55), 0 0 50px rgba(139,47,212,0.25), inset -5px -8px 18px rgba(0,0,0,0.45);
  border: 1.5px solid rgba(200,154,255,0.35);
}
.b-green {
  background: radial-gradient(circle at 38% 30%, #a8ffb0 0%, #22c55e 45%, #0a5c20 100%);
  box-shadow: 0 6px 28px rgba(34,197,94,0.55), 0 0 50px rgba(34,197,94,0.2), inset -5px -8px 18px rgba(0,0,0,0.45);
  border: 1.5px solid rgba(168,255,176,0.3);
}
.b-blue {
  background: radial-gradient(circle at 38% 30%, #b0d8ff 0%, #3b82f6 45%, #0a2a80 100%);
  box-shadow: 0 6px 28px rgba(59,130,246,0.55), 0 0 50px rgba(59,130,246,0.2), inset -5px -8px 18px rgba(0,0,0,0.45);
  border: 1.5px solid rgba(176,216,255,0.3);
}
.b-gold {
  background: radial-gradient(circle at 38% 30%, #fff0a0 0%, #d4a012 45%, #6e4800 100%);
  box-shadow: 0 6px 28px rgba(212,160,18,0.55), 0 0 50px rgba(212,160,18,0.2), inset -5px -8px 18px rgba(0,0,0,0.45);
  border: 1.5px solid rgba(255,240,160,0.3);
}
.b-red {
  background: radial-gradient(circle at 38% 30%, #ffa080 0%, #e74c3c 45%, #700808 100%);
  box-shadow: 0 6px 28px rgba(231,76,60,0.55), 0 0 50px rgba(231,76,60,0.2), inset -5px -8px 18px rgba(0,0,0,0.45);
  border: 1.5px solid rgba(255,160,128,0.3);
}

@keyframes floatDeco {
  0%   { transform: translateY(0)    rotate(0deg)   scale(1); }
  25%  { transform: translateY(-16px) rotate(5deg)   scale(1.04); }
  50%  { transform: translateY(-7px)  rotate(-3deg)  scale(0.97); }
  75%  { transform: translateY(-20px) rotate(4deg)   scale(1.02); }
  100% { transform: translateY(0)    rotate(0deg)   scale(1); }
}

/* ===== VIEWS ===== */
.view {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10,2,28,0.3);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 20;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.logo-img.big {
  height: 64px;
}

.nav-btns { display: flex; gap: 10px; }
.btn-nav-login {
  padding: 8px 22px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.btn-nav-login:hover { background: rgba(255,255,255,0.1); }
.btn-nav-register {
  padding: 8px 22px;
  border: 2px solid var(--purple);
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.btn-nav-register:hover { background: var(--purple-dk); }

/* ===== HERO ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 80px;
  text-align: center;
}

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 56px);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 1px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.8);
  margin-bottom: 24px;
  color: #fff;
  white-space: nowrap;
}
.t-yellow { color: var(--gold); }
.t-green  { color: var(--green); }

/* ===== PHONE MOCKUP ===== */
.phone-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(10,2,28,0.65);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
}
.odot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.phone-mockup {
  background: #0a0218;
  border-radius: 40px;
  border: 3px solid rgba(160,100,240,0.7);
  box-shadow:
    0 0 0 6px rgba(120,60,200,0.2),
    0 0 60px rgba(140,50,220,0.65),
    0 20px 80px rgba(0,0,0,0.7);
  overflow: hidden;
  padding: 6px;
  width: 306px;
}
.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: #0a0218;
  /* Force compositing layer so canvas/video clips correctly inside border-radius */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  isolation: isolate;
}

#previewVideo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9/16;
  object-fit: fill;
}

.prize-tabs {
  display: flex;
  background: rgba(0,0,0,0.5);
  padding: 6px 8px;
  gap: 4px;
}
.ptab {
  flex: 1;
  padding: 7px 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.ptab.active {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 14px rgba(245,197,24,0.65);
}

#previewCanvas { display: block; width: 294px; height: 430px; }
.phone-sound-btn {
  position: absolute;
  bottom: 9px; right: 9px;
  font-size: 16px;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ===== PLAY BUTTON ===== */
.btn-play-hero {
  width: 100%;
  max-width: 380px;
  padding: 18px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #28df6e 0%, var(--green) 50%, var(--green-dk) 100%);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(34,197,94,0.55), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform .15s, box-shadow .15s;
  margin-bottom: 16px;
}
.btn-play-hero:hover  { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(34,197,94,0.7); }
.btn-play-hero:active { transform: translateY(1px); }

.trust-strip {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  opacity: 0.65;
}

/* ===== AUTH VIEW ===== */
#viewAuth {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(30,8,70,0.6) 0%, rgba(15,4,40,0.4) 100%);
}

.auth-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  width: 100%;
  max-width: 500px;
}

.auth-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-card {
  width: 100%;
  background: rgba(12,4,32,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 32px 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 80px rgba(90,26,138,0.3);
}

.auth-title {
  font-family: 'Nunito', sans-serif;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 22px;
}

.auth-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 12px;
  outline: none;
  transition: border .2s;
}
.auth-input:focus { border-color: var(--purple); background: rgba(255,255,255,0.1); }
.auth-input::placeholder { color: rgba(255,255,255,0.35); }

.pass-field { position: relative; margin-bottom: 12px; }
.pass-field .auth-input { margin-bottom: 0; padding-right: 48px; }
.eye-btn {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.6;
  transition: opacity .2s;
}
.eye-btn:hover { opacity: 1; }

.auth-error {
  color: #f87171;
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 10px;
}

.btn-auth-submit {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #9b59b6 0%, var(--purple) 50%, var(--purple-dk) 100%);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(139,47,212,0.5);
  transition: transform .15s;
  margin-bottom: 16px;
}
.btn-auth-submit:hover { transform: translateY(-1px); }

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.auth-switch a { color: var(--purple); text-decoration: none; font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

.btn-back-landing {
  margin-top: 18px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  cursor: pointer;
  transition: color .2s;
}
.btn-back-landing:hover { color: #fff; }

/* ===== GAME VIEW ===== */
.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(10,2,28,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.gtb-back {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.gtb-name    { display: block; font-size: 15px; font-weight: 700; }
.gtb-balance { font-size: 18px; font-weight: 800; color: var(--gold); }
.gtb-deposit {
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#viewGame {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #0d0820;
  z-index: 20;
  overflow-y: auto;
}
.game-layout {
  padding: 80px 16px 76px;
  text-align: center;
}

/* BET CHIPS (used inside go-card) */
.bchip {
  padding: 10px 8px;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  text-align: center;
}
.bchip:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.1); }
.bchip.active { border-color: var(--gold); background: rgba(245,197,24,0.18); color: var(--gold); }

/* GAME CANVAS */
.game-canvas-wrap {
  position: relative;
  display: inline-block;
  width: 100%; max-width: 380px;
  margin-bottom: 10px;
  text-align: left;
  vertical-align: top;
}
#gameCanvas {
  display: block; width: 100%; height: auto;
  border-radius: 20px;
  background: #080118;
  border: 2px solid rgba(139,47,212,0.5);
  box-shadow: 0 0 40px rgba(139,47,212,0.35);
}

.game-over-overlay {
  position: absolute; inset: 0;
  background: #08011a;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.go-card { padding: 22px 20px; width: 100%; }
.go-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; text-align: center; }
.go-card p  { font-size: 13px; opacity: .65; margin-bottom: 18px; text-align: center; }
.go-field { margin-bottom: 16px; }
.go-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.go-bet-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.go-meta-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 0 14px;
}
.go-meta-wrap:focus-within { border-color: var(--purple); }
.go-prefix { font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.5); margin-right: 6px; }
.go-meta-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: 18px; font-weight: 700; padding: 11px 0;
  font-family: 'Poppins', sans-serif;
}
.go-meta-wrap input::-webkit-outer-spin-button,
.go-meta-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-start-game {
  width: 100%; padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-dk));
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(34,197,94,0.5);
  transition: transform .15s;
}
.btn-start-game:hover { transform: translateY(-2px); }

.win-splash {
  position: absolute; inset: 0;
  background: rgba(8,1,24,0.9);
  border-radius: 20px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn { from { opacity:0; transform:scale(.7); } to { opacity:1; transform:scale(1); } }
.ws-emoji  { font-size: 50px; margin-bottom: 6px; }
.ws-label  { font-family:'Nunito',sans-serif; font-weight:900; font-size:26px; letter-spacing:2px; }
.ws-amount { font-family:'Nunito',sans-serif; font-weight:900; font-size:52px; color:var(--gold); text-shadow:0 0 30px rgba(245,197,24,0.7); }

/* GAME STATS */
.game-stats-row { display: flex; gap: 10px; }
.gstat {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 11px 14px;
  text-align: center;
}
.gstat-l { display: block; font-size: 10px; opacity: .55; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.gstat-v { font-size: 18px; font-weight: 800; }
.green   { color: var(--green); }

/* BOTTOM TABS */
.bottom-tabs {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: rgba(8,1,24,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 50;
}
.btab {
  flex: 1;
  padding: 12px 4px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s;
}
.btab.active { color: var(--purple); }

/* TAB PANELS */
.tab-panel { padding: 14px 16px; padding-bottom: 80px; }
.active-panel { display: block; }

.panel-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
}
.panel-card h3 { font-size: 18px; margin-bottom: 14px; }
.panel-sub { font-size: 14px; opacity: .7; margin-bottom: 14px; }

.panel-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  transition: border .2s;
  font-family: 'Poppins', sans-serif;
}
.panel-input:focus { border-color: var(--purple); }
.panel-error { color: #f87171; font-size: 13px; min-height: 18px; margin-bottom: 8px; }

.btn-panel {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-dk));
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(34,197,94,0.4);
  transition: transform .15s;
}
.btn-panel:hover { transform: translateY(-1px); }

/* HISTORY */
.hist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}
.hist-date { font-size: 12px; opacity: .5; display: block; margin-bottom: 2px; }
.hist-win  { color: var(--green); font-weight: 800; }
.hist-lose { color: #f87171; font-weight: 800; }

/* PROFILE */
.prof-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}
.prof-val { font-weight: 700; }
.tx-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
.tx-pos { color: var(--green); font-weight: 700; }
.tx-neg { color: #f87171; font-weight: 700; }
.tx-pnd { color: var(--gold); }

/* ===== DEPOSIT MODAL ===== */
.dmodal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  backdrop-filter: blur(6px);
}
.dmodal-wrap {
  position: relative;
  width: 100%; max-width: 420px;
}
.dmodal-box {
  position: relative;
  background: #16082e;
  border-radius: 24px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.85);
}
/* Banner top */
.dep-banner {
  position: relative;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  line-height: 0;
}
.dep-banner-img {
  width: 100%; display: block;
  border-radius: 24px 24px 0 0;
}
.dep-online-badge {
  position: absolute; top: 14px; right: 14px;
  background: #22c55e; color: #fff; font-weight: 800;
  font-size: 12px; padding: 4px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 5px; line-height: 1.4;
}
.dep-online-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; flex-shrink: 0; }
/* Body */
.dep-body { padding: 20px 20px 22px; }
.dep-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  color: rgba(255,255,255,0.5); text-transform: uppercase;
  margin-bottom: 12px;
}
.dep-quick {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 14px;
}
.dq {
  padding: 12px 8px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all .18s;
  text-align: center;
  position: relative;
}
.dq-bonus { padding-bottom: 22px; }
.dq-bonus-tag {
  position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 800; white-space: nowrap;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  color: #000; padding: 1px 6px; border-radius: 20px;
  letter-spacing: 0.3px; line-height: 1.6;
}
.dq:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); }
.dq.active {
  border-color: #a78bfa;
  background: rgba(124,58,237,0.35);
  color: #c4b5fd;
}
/* R$ prefix input */
.dep-input-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 0 16px;
  margin-bottom: 14px;
  transition: border .2s;
}
.dep-input-wrap:focus-within { border-color: #7c3aed; }
.dep-input-prefix {
  font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.6);
  margin-right: 8px; user-select: none;
}
.dep-input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: 18px; font-weight: 700;
  padding: 13px 0;
  font-family: 'Poppins', sans-serif;
  width: 0;
}
.dep-input-wrap input::-webkit-outer-spin-button,
.dep-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.dep-cpf-wrap input { font-size: 14px; font-weight: 500; }
.dep-cpf-wrap .dep-input-prefix { font-size: 12px; font-weight: 800; letter-spacing: 0.5px; }
/* Reward box */
.dep-reward-box {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 16px;
}
.dep-reward-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.dep-reward-val { font-family: 'Nunito', sans-serif; font-size: 28px; font-weight: 900; color: var(--gold); }
/* CTA button */
.dep-cta-btn {
  width: 100%; padding: 15px;
  border: none; border-radius: 50px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  color: #fff; font-weight: 800; font-size: 16px;
  cursor: pointer; letter-spacing: .5px;
  box-shadow: 0 6px 24px rgba(34,197,94,0.45);
  transition: transform .15s, box-shadow .15s;
}
.dep-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(34,197,94,0.55); }
.dep-cta-btn:active { transform: translateY(0); }
.panel-error { color: #f87171; font-size: 13px; min-height: 18px; margin-bottom: 8px; }
/* floating X close button */
.dep-x-close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 10;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 2px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 16px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.dep-x-close:hover { background: rgba(0,0,0,0.8); }
/* PIX section */
.pix-tip { font-size: 14px; margin: 14px 0 10px; opacity: .85; }
#pixQRImg { width: 190px; height: 190px; display: block; margin: 0 auto 14px; border-radius: 12px; background: #fff; }
.pix-copy-row { display: flex; gap: 8px; margin-bottom: 12px; }
.pix-copy-row input {
  flex: 1; padding: 9px 12px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.15);
  -webkit-user-select: all; user-select: all;
  background: rgba(255,255,255,0.07);
  color: #fff; font-size: 12px; outline: none;
}
#btnCopyPix {
  padding: 9px 16px; border: none; border-radius: 10px;
  background: var(--purple); color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.pix-wait { font-size: 13px; opacity: .65; text-align: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .navbar { padding: 12px 16px; }
  .hero-title { white-space: normal; font-size: clamp(24px, 8vw, 36px); }
  .phone-mockup { width: 280px; }
  #previewCanvas { width: 268px; height: 400px; }
  .phone-screen canvas { width: 268px !important; height: 400px !important; }
  .deco-bubble { display: none; }
  /* Show only a few small ones on mobile */
  .deco-bubble:nth-child(1),
  .deco-bubble:nth-child(3),
  .deco-bubble:nth-child(4) { display: flex; }
}

/* RESGATAR button */
.resgatar-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; max-width: 380px; padding: 13px; margin: 0 auto;
  border: none; border-radius: 12px;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #fff; font-weight: 900; font-size: 16px; cursor: pointer;
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 4px 18px rgba(245,158,11,0.55);
  animation: pulseGold 1.5s ease-in-out infinite;
  margin-bottom: 10px;
}
@keyframes pulseGold {
  0%,100% { box-shadow: 0 4px 18px rgba(245,158,11,0.55); }
  50%      { box-shadow: 0 4px 28px rgba(245,158,11,0.85); }
}

/* Earnings display in game */
.earn-bar {
  background: #0e0720;
  padding: 10px 14px 12px;
  width: 100%; max-width: 380px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.earn-bar-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.earn-label { font-size: 11px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: .5px; }
.earn-value { font-size: 18px; font-weight: 900; color: #22c55e; font-family: 'Nunito', sans-serif; }
.earn-goal { font-size: 12px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.earn-progress-track {
  height: 14px; border-radius: 999px;
  background: rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.earn-progress-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #16a34a, #22c55e, #86efac);
  transition: width 0.45s cubic-bezier(.4,0,.2,1);
}
.earn-progress-pct {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 9px; font-weight: 800; color: #fff; letter-spacing: .5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7); pointer-events: none;
}

/* ===== LANDING PAGE SECTIONS ===== */
.lp-section {
  background: #0d0820;
  padding: 60px 24px;
  text-align: center;
}
.lp-section-icon { font-size: 28px; margin-bottom: 6px; }
.lp-section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
.lp-section-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 36px;
}

/* Steps grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.step-card {
  background: #160830;
  border: 1px solid rgba(140,60,220,0.25);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
}
.step-banner {
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #0a0218;
  line-height: 0;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.step-banner-canvas {
  height: 140px !important;
  background: #10042a;
}
.step-banner-canvas canvas {
  width: 100%;
  height: 110px;
  display: block;
  margin-top: 15px;
}
.step-num {
  position: absolute;
  top: 8px;
  right: 10px;
  background: var(--green);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 15px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(34,197,94,0.6);
}
.step-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 12px 14px 6px;
}
.step-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin: 0 14px 14px;
  line-height: 1.5;
}

/* Testimonials */
#secTestimonials { background: #0a0618; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.testi-card {
  background: #160830;
  border: 1px solid rgba(140,60,220,0.2);
  border-radius: 14px;
  padding: 20px;
  text-align: left;
}
.testi-stars { color: #facc15; font-size: 18px; margin-bottom: 10px; }
.testi-quote {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0 0 16px;
}
.testi-footer { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testi-name { font-size: 13px; font-weight: 700; color: #fff; }
.testi-verified { font-size: 11px; color: var(--green); margin-top: 2px; }

/* CTA Section */
.lp-cta {
  background: linear-gradient(180deg, #0a0618 0%, #12083a 100%);
  padding: 70px 24px;
  text-align: center;
}
.lp-cta-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #fff;
  margin: 0 0 10px;
}
.lp-cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 30px;
}

/* Footer */
.lp-footer {
  background: #060312;
  padding: 36px 24px;
  text-align: center;
  border-top: 1px solid rgba(140,60,220,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 6px;
}
.footer-resp {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

@media (min-width: 768px) {
  .hero { padding-top: 40px; }
  .phone-mockup { width: 340px; }
  .btn-play-hero { font-size: 22px; max-width: 460px; }
  .lp-section-title { font-size: 34px; }
  .lp-cta-title { font-size: 36px; }
}
