:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg-deep: #050505;
  --bg-secondary: #0a0a0a;
  --bg-nav: #0a0a0e;
  --card-bg: #17171d;
  --card-bg-alt: #1c1c22;
  --card-inner: #0b0b0f;
  --card-border: #282834;
  --orange-start: #ff8a00;
  --orange-mid: #ff5a00;
  --red-end: #ff2e00;
  --amber-text: #ffb347;
  --text-white: #ffffff;
  --text-gray: #9a9aa5;
  --green-ok: #00c853;
  --green-surface: rgba(0, 200, 83, 0.13);
  --amber-surface: rgba(255, 138, 0, 0.14);
  --error-red: #ff5252;
  --error-surface: rgba(255, 46, 0, 0.16);
  --radius-card: 20px;
  --radius-btn: 16px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-deep: #f1f3f7;
  --bg-secondary: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.96);
  --card-bg: #ffffff;
  --card-bg-alt: #f8f9fc;
  --card-inner: #f1f3f7;
  --card-border: #e1e5ee;
  --orange-start: #f56a00;
  --orange-mid: #ff5500;
  --red-end: #ff2e00;
  --amber-text: #c24d00;
  --text-white: #14171f;
  --text-gray: #5f6675;
  --green-ok: #009e43;
  --green-surface: rgba(0, 158, 67, 0.12);
  --amber-surface: rgba(245, 106, 0, 0.12);
  --error-red: #d92d20;
  --error-surface: rgba(217, 45, 32, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* Container Mobile-First centralizado (430px máx no desktop, mesmo fundo preto fora) */
.app-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 52%, #050505 100%);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.neon-backdrop {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-top-right {
  position: absolute;
  top: -80px;
  right: -95px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, 0.25) 0%, rgba(255, 46, 0, 0.08) 48%, transparent 72%);
}

.glow-bottom-left {
  position: absolute;
  bottom: 45px;
  left: -100px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.18) 0%, transparent 70%);
}

.diagonal-beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.app-root {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.screen-scroll {
  flex: 1;
  padding: 14px 16px calc(92px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}

.screen-scroll.no-nav {
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

/* Utilitários de cor e texto */
.text-orange {
  color: var(--orange-start);
}

.text-amber {
  color: var(--amber-text);
}

.text-green {
  color: var(--green-ok);
}

.text-gray {
  color: var(--text-gray);
}

.text-red {
  color: #ff453a;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(28, 28, 34, 0.94) 0%, rgba(16, 16, 21, 0.98) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 16px;
}

.card-highlight {
  position: relative;
  background: linear-gradient(180deg, rgba(24, 24, 30, 0.96) 0%, rgba(12, 12, 16, 0.99) 100%);
  border: 1.4px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-card);
}

html[data-theme="light"] .app-shell {
  background: linear-gradient(180deg, #f1f3f7 0%, #e9edf4 55%, #f1f3f7 100%);
}

html[data-theme="light"] .neon-backdrop {
  opacity: 0.28;
}

html[data-theme="light"] .card,
html[data-theme="light"] .card-highlight {
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(16, 20, 30, 0.06);
}

html[data-theme="light"] .circle-icon-btn,
html[data-theme="light"] .wallet-pill,
html[data-theme="light"] .preset-chip,
html[data-theme="light"] .input-box {
  background: #ffffff;
  color: var(--text-white);
  border-color: var(--card-border);
}

html[data-theme="light"] .input-box input,
html[data-theme="light"] .login-title,
html[data-theme="light"] .login-feature-title,
html[data-theme="light"] .link-card-title,
html[data-theme="light"] .benefit-title,
html[data-theme="light"] .section-title,
html[data-theme="light"] .file-title-ellipsis,
html[data-theme="light"] .page-title,
html[data-theme="light"] .wallet-big-amount,
html[data-theme="light"] .stat-value,
html[data-theme="light"] .home-slogan {
  color: var(--text-white);
}

html[data-theme="light"] .drawer-sheet {
  background: #ffffff;
  border-right-color: var(--card-border);
}

html[data-theme="light"] .drawer-nav-btn.active {
  color: var(--orange-start);
}

html[data-theme="light"] .btn-outline-neon {
  background: #fff5ed;
  color: #c24d00;
}

html[data-theme="light"] .toast {
  background: #ffffff;
  color: #14171f;
  box-shadow: 0 10px 26px rgba(16, 20, 30, 0.16);
}

html[data-theme="light"] .alert-error {
  color: #9e1c14;
}

html[data-theme="light"] .alert-warning {
  color: #7a4200;
}

html[data-theme="light"] .alert-success {
  color: #045929;
}

.card-highlight::before {
  content: "";
  position: absolute;
  inset: -1.4px;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(135deg, rgba(255, 138, 0, 0.88), rgba(255, 90, 0, 0.55), rgba(255, 46, 0, 0.85));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-green {
  border-color: rgba(0, 200, 83, 0.45);
}

.card-red {
  border-color: rgba(255, 46, 0, 0.48);
}

/* Botões */
.btn-gradient {
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: var(--radius-btn);
  background: linear-gradient(90deg, var(--orange-start) 0%, var(--orange-mid) 52%, var(--red-end) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 90, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.14s ease, opacity 0.14s ease, filter 0.14s ease;
}

.btn-gradient:active:not(:disabled) {
  transform: scale(0.985);
}

.btn-gradient:disabled {
  background: #23232c;
  color: #7c7c88;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-gradient.btn-success {
  background: linear-gradient(90deg, #00b857 0%, #00c853 100%);
  color: #021d0e;
  box-shadow: 0 8px 20px rgba(0, 200, 83, 0.28);
}

.btn-outline-neon {
  width: 100%;
  min-height: 50px;
  border-radius: var(--radius-btn);
  border: 1.3px solid rgba(255, 138, 0, 0.72);
  background: linear-gradient(90deg, rgba(255, 90, 0, 0.12) 0%, rgba(23, 23, 29, 0.94) 50%, rgba(255, 46, 0, 0.12) 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease;
}

.btn-outline-neon:active:not(:disabled) {
  transform: scale(0.985);
}

/* ==================== TELA 1: LOGIN ==================== */
.login-screen {
  min-height: 100dvh;
  padding: 28px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.login-logo {
  width: 245px;
  max-width: 78%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
}

.login-title {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.login-subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.48;
  color: var(--text-gray);
  max-width: 340px;
}

.login-feature-card {
  width: 100%;
  padding: 16px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.badge-square-amber {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 138, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange-start);
}

.login-feature-title {
  margin: 0 0 3px;
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
}

.login-feature-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-gray);
}

/* ==================== TELA 2: INÍCIO (HOME) ==================== */
.home-topbar {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.circle-icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.home-logo {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  justify-self: center;
  display: block;
}

.wallet-pill {
  height: 40px;
  border-radius: 999px;
  border: 1.3px solid rgba(255, 138, 0, 0.78);
  background: rgba(23, 23, 29, 0.94);
  padding: 0 6px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  cursor: pointer;
}

.wallet-pill-value {
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.wallet-pill-plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-start), var(--red-end));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.home-slogan {
  text-align: center;
  margin: 8px 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
}

/* Hero Banner (fiel ao print da Home) */
.hero-banner {
  position: relative;
  width: 100%;
  height: 162px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(90deg, #050505 0%, #0b0b0f 50%, #2a1104 100%);
  margin-bottom: 16px;
}

.hero-banner-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: top right;
}

.hero-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #050505 0%,
    rgba(5, 5, 5, 0.95) 45%,
    rgba(5, 5, 5, 0.44) 72%,
    rgba(5, 5, 5, 0) 100%
  );
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 72%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-lock-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 138, 0, 0.16);
  border: 1px solid rgba(255, 138, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-start);
  margin-bottom: 10px;
}

.hero-heading-white {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  text-transform: uppercase;
}

.hero-heading-orange {
  margin: 2px 0 6px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--orange-start);
  text-transform: uppercase;
}

.hero-caption {
  margin: 0;
  font-size: 11px;
  color: var(--text-gray);
}

/* Card Link do Vídeo */
.link-card {
  padding: 18px;
  margin-bottom: 16px;
}

.link-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.link-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.link-card-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-gray);
}

.input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(5, 5, 7, 0.78);
  border: 1.2px solid var(--card-border);
  border-radius: 14px;
  min-height: 54px;
  padding: 0 8px 0 14px;
  gap: 10px;
  transition: border-color 0.16s ease;
}

.input-box:focus-within {
  border-color: var(--orange-start);
}

.input-box.input-valid {
  border-color: rgba(0, 200, 83, 0.72);
}

.input-box.input-error {
  border-color: var(--error-red);
}

.input-box input {
  flex: 1;
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
}

.input-box input::placeholder {
  color: rgba(154, 154, 165, 0.55);
}

.input-action-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--amber-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.helper-text {
  margin: 6px 4px 0;
  font-size: 12px;
  color: var(--text-gray);
}

.helper-text.is-error {
  color: var(--error-red);
}

.helper-text.is-valid {
  color: var(--green-ok);
}

.alert-box {
  border-radius: 12px;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 12px;
}

.alert-error {
  background: var(--error-surface);
  border: 1px solid rgba(255, 82, 82, 0.45);
  color: #ffd5d5;
}

.alert-warning {
  background: var(--amber-surface);
  border: 1px solid rgba(255, 138, 0, 0.5);
  color: #ffe3b8;
}

.alert-success {
  background: var(--green-surface);
  border: 1px solid rgba(0, 200, 83, 0.5);
  color: #d7ffe5;
}

/* Benefícios em 3 colunas */
.benefits-card {
  padding: 14px 6px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  margin-bottom: 20px;
}

.benefit-divider {
  width: 1px;
  height: 42px;
  background: var(--card-border);
}

.benefit-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 4px 6px;
  background: transparent;
  border: none;
  color: inherit;
}

.benefit-col.is-clickable {
  cursor: pointer;
  border-radius: 12px;
}

.benefit-col.is-clickable:active {
  background: rgba(255, 138, 0, 0.08);
}

.benefit-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.benefit-sub {
  font-size: 10px;
  color: var(--text-gray);
}

.benefit-col.is-clickable .benefit-sub {
  color: var(--amber-text);
}

/* Seção Downloads Recentes */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.link-more-btn {
  background: transparent;
  border: none;
  color: var(--orange-start);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  cursor: pointer;
}

.recent-card {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.hd-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #281408, #17171d);
  border: 1px solid rgba(255, 138, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hd-badge {
  background: var(--orange-start);
  color: #050505;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 6px;
}

.recent-info {
  flex: 1;
  min-width: 0;
}

.file-title-ellipsis {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-gray);
}

.status-pill-green {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-surface);
  border: 1px solid rgba(0, 200, 83, 0.5);
  color: var(--green-ok);
  font-size: 11px;
  font-weight: 700;
}

.circle-dl-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 138, 0, 0.65);
  background: rgba(255, 138, 0, 0.14);
  color: var(--orange-start);
  cursor: pointer;
}

.circle-dl-btn.green {
  border-color: rgba(0, 200, 83, 0.45);
  background: rgba(0, 200, 83, 0.14);
  color: var(--green-ok);
}

/* ==================== HEADERS INTERNOS ==================== */
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
}

/* ==================== TELA 4: COMPRAS & HISTÓRICO ==================== */
.segmented-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 3px;
  height: 50px;
  margin-bottom: 14px;
}

.segmented-tab-btn {
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  color: var(--text-gray);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}

.segmented-tab-btn.active {
  background: linear-gradient(90deg, rgba(255, 138, 0, 0.34), rgba(255, 90, 0, 0.2));
  border-color: var(--orange-start);
  color: #ffffff;
  font-weight: 700;
}

.purchased-item-card {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 10px;
}

.history-item-card {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.empty-state-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 8px;
}

.empty-folder-img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ==================== TELA 5: CONTA & CARTEIRA ==================== */
.profile-card {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.avatar-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-start), var(--red-end));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.wallet-big-card {
  padding: 20px;
  margin-bottom: 14px;
}

.wallet-big-amount {
  margin: 10px 0 6px;
  font-size: 34px;
  font-weight: 900;
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 14px;
}

.stat-value {
  margin: 6px 0 2px;
  font-size: 23px;
  font-weight: 800;
  color: #ffffff;
}

.tx-row {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tx-badge-amount {
  padding: 5px 8px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* ==================== TELA 6: CONFIGURAÇÕES ==================== */
.settings-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.switch-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #343440;
  border: 1px solid #494957;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.switch-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #c8c8d2;
  transition: transform 0.18s ease, background 0.18s ease;
}

.switch-toggle.on {
  background: var(--orange-start);
  border-color: var(--orange-start);
}

.switch-toggle.on::after {
  transform: translateX(20px);
  background: #ffffff;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  cursor: pointer;
  border-radius: 12px;
}

.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-circle.selected {
  border-color: var(--orange-start);
}

.radio-circle.selected::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange-start);
}

/* ==================== TELA 7: RECARREGAR CRÉDITOS ==================== */
.recharge-balance-row {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.pill-price-tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 138, 0, 0.15);
  border: 1px solid rgba(255, 138, 0, 0.45);
  color: var(--amber-text);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.preset-chip {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(5, 5, 7, 0.72);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.preset-chip.selected {
  border: 1.5px solid var(--orange-start);
  background: rgba(255, 138, 0, 0.22);
  color: var(--amber-text);
}

.payment-option-card {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 10px;
}

.qr-box {
  width: 214px;
  height: 214px;
  border-radius: 18px;
  background: #ffffff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==================== NAVEGAÇÃO INFERIOR ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--bg-nav);
  border-top: 1px solid rgba(255, 138, 0, 0.28);
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 20;
}

.bottom-nav-item {
  border: none;
  background: transparent;
  color: var(--text-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  cursor: pointer;
  min-width: 0;
}

.bottom-nav-pill {
  position: relative;
  padding: 4px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-unread-badge {
  position: absolute;
  top: -2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-start), var(--red-end));
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255, 46, 0, 0.45);
}

.bottom-nav-item.active {
  color: var(--orange-start);
}

.bottom-nav-item.active .bottom-nav-pill {
  background: rgba(255, 138, 0, 0.16);
}

.bottom-nav-label {
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bottom-nav-item.active .bottom-nav-label {
  font-weight: 700;
}

.drawer-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-start), var(--red-end));
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notif-card {
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.notif-card:active {
  transform: scale(0.99);
}

.notif-card.notif-unread {
  border-color: rgba(255, 138, 0, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.2);
}

.notif-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-start), var(--red-end));
  display: inline-block;
  flex-shrink: 0;
}

/* ==================== DRAWER LATERAL ==================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.68);
  z-index: 40;
  display: flex;
}

.drawer-sheet {
  width: 300px;
  max-width: 82%;
  height: 100%;
  background: #0b0b0f;
  border-right: 1px solid var(--card-border);
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: slideInDrawer 0.18s ease-out;
}

@keyframes slideInDrawer {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.drawer-logo {
  width: 185px;
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}

.drawer-nav-btn {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.drawer-nav-btn.active {
  background: rgba(255, 138, 0, 0.16);
  color: #ffffff;
}

.drawer-nav-btn.active svg {
  color: var(--orange-start);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
}

/* ==================== MODAL & TOAST ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.78);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 370px;
  padding: 20px;
}

.toast-container {
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 398px;
  z-index: 80;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: rgba(23, 23, 29, 0.96);
  border: 1px solid rgba(255, 138, 0, 0.58);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.toast.success {
  border-color: rgba(0, 200, 83, 0.65);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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