:root {
  --bg: #070709;
  --panel: #0c0c0e;
  --panel-2: #111116;
  --line: rgba(255,255,255,0.06);
  --line-strong: rgba(255,85,0,0.24);
  --accent: #FF5500;
  --accent-soft: rgba(255,85,0,0.1);
  --text: #fff;
  --muted: #8c8c96;
  --faint: #555560;
  --ok: #00ff66;
  --danger: #ff3333;
  --warn: #ffaa00;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.bg-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 45% 0%, rgba(255, 85, 0, 0.05) 0%, transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.018) 0%, transparent 28%);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(16px, 4vw, 40px);
  background: rgba(7,7,9,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.nav-links a { color: #888; text-decoration: none; transition: .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links .active-link { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.account-nav {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px clamp(16px, 4vw, 46px);
  background:
    linear-gradient(180deg, rgba(13,13,18,.88), rgba(5,5,8,.78)),
    rgba(7,7,9,.86);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.account-nav .brand {
  min-height: 46px;
  padding: 0 4px;
  font-size: 1.32rem;
  letter-spacing: 2px;
}
.account-tabs {
  justify-self: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}
.account-tabs a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .4px;
}
.account-tabs a:hover {
  color: #fff;
  background: rgba(255,255,255,.045);
}
.account-tabs .active-link {
  color: #fff;
  background: rgba(255,85,0,.16);
  box-shadow: 0 10px 28px rgba(255,85,0,.13);
}
.account-actions { justify-content: flex-end; }
.account-buy {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .7px;
  box-shadow: 0 12px 30px rgba(255,85,0,.24);
}
.account-buy:hover { background: #ff6a1a; }
.account-pill {
  min-height: 42px;
  max-width: min(24vw, 240px);
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.1);
  color: #fff;
}
.profile-pill {
  max-width: min(42vw, 260px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(90deg, rgba(255,85,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
  border: 1px solid rgba(255,85,0,0.2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 800;
}
.profile-pill.account-pill {
  min-height: 42px;
  max-width: min(24vw, 240px);
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.1);
  color: #fff;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-size: 1.25rem;
}
.mobile-menu-btn { display: none; }

.app-shell {
  width: min(1320px, 100%);
  margin: 28px auto;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 24px;
  padding: 0 clamp(14px, 3vw, 26px);
}
.sidebar {
  align-self: start;
  position: sticky;
  top: 92px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.profile-header { padding: 24px 18px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.avatar-wrapper { position: relative; width: 72px; height: 72px; margin: 0 auto 14px; }
.avatar { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--accent); padding: 2px; }
.status-dot { position: absolute; bottom: 5px; right: 5px; width: 14px; height: 14px; background: var(--ok); border-radius: 50%; border: 3px solid var(--panel); }
.username { font-size: 0.98rem; font-weight: 800; text-transform: uppercase; overflow-wrap: anywhere; }
.profile-email { color: var(--muted); font-size: 0.76rem; margin-top: 4px; overflow-wrap: anywhere; }
.level-info { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 0.65rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.level-info.compact { margin-top: 5px; color: #fff; }
.level-val { color: #FFD700; }
.progress-bg { height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-top: 8px; position: relative; overflow: hidden; }
.progress-fill { height: 100%; width: 100%; background: #FFD700; border-radius: 4px; box-shadow: 0 0 10px rgba(255,215,0,0.5); }
.progress-txt { font-size: 0.62rem; color: #666; text-align: right; margin-top: 5px; font-weight: 800; }
.menu-section { padding: 18px 14px; }
.menu-section.border-top { border-top: 1px solid var(--line); }
.menu-title { font-size: 0.64rem; color: #555; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; padding-left: 8px; letter-spacing: 1px; }
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  color: #888;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 5px;
  transition: .2s;
}
.menu-item:hover, .menu-item.active { background: rgba(255,85,0,0.08); border-color: rgba(255,85,0,0.2); color: #fff; }
.menu-left { display: flex; align-items: center; gap: 12px; }
.menu-left i { width: 16px; text-align: center; color: currentColor; }

.content { min-width: 0; }
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.eyebrow { color: var(--accent); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
h1 { font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1.05; }
h2 { font-size: 1rem; }
.muted { color: var(--muted); font-size: .8rem; }
.btn-action {
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px 15px;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(255,85,0,.18);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}
.btn-action:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,85,0,.22); }
.btn-action.secondary { background: rgba(255,255,255,.04); border-color: var(--line); }
.btn-action.danger { background: rgba(255,50,50,.12); color: #ff7777; border-color: rgba(255,50,50,.25); }
.btn-action:disabled { opacity: .45; cursor: not-allowed; }
.primary-wide { width: 100%; min-height: 48px; }
.compact-action { min-height: 36px; padding: 8px 12px; font-size: .72rem; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-box {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  overflow: hidden;
}
.stat-header { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; }
.stat-number { font-size: clamp(1.7rem, 5vw, 2.1rem); font-weight: 800; line-height: 1; }
.stat-desc { color: var(--faint); font-size: .78rem; margin-top: 7px; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }

.toolbar, .section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  border: 1px solid var(--line);
  color: #888;
  background: transparent;
  min-height: 36px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}
.filter-btn.active { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.search-input {
  width: min(340px, 100%);
  min-height: 40px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  padding: 0 14px;
  outline: none;
}
.search-input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(255,85,0,.08); }
.admin-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(160px, 1fr) minmax(120px, .6fr) minmax(120px, .6fr) auto;
  gap: 10px;
  align-items: center;
}
.generated-key {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255,85,0,.08);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.panel-section {
  background: rgba(12,12,14,.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}
.license-list, .activity-list { display: grid; gap: 10px; }
.item-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  transition: .2s;
}
.item-card:hover { border-color: rgba(255,255,255,0.12); transform: translateX(3px); }
.item-left { min-width: 0; display: flex; align-items: center; gap: 14px; }
.game-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: #ffaa00;
  border-radius: 10px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .78rem;
  box-shadow: 0 0 15px rgba(255,170,0,.18);
}
.item-title { font-weight: 800; font-size: .94rem; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.item-date { color: var(--muted); font-size: .78rem; font-weight: 600; }
.item-subtitle { color: var(--muted); font-size: .78rem; font-weight: 600; display: flex; gap: 9px; flex-wrap: wrap; }
.item-price { color: var(--ok); }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mini-btn {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.03);
  color: #fff;
  min-height: 34px;
  padding: 7px 10px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.mini-btn:hover { border-color: var(--line-strong); }
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  gap: 7px;
  font-size: .72rem;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: .5px;
  white-space: nowrap;
}
.status-active, .status-ok { background: rgba(0,255,100,.06); color: var(--ok); border: 1px solid rgba(0,255,100,.18); }
.status-expired, .status-revoked, .status-exp { background: rgba(255,50,50,.06); color: var(--danger); border: 1px solid rgba(255,50,50,.18); }
.status-pending { background: rgba(255,170,0,.06); color: var(--warn); border: 1px solid rgba(255,170,0,.2); }

.activity-item {
  display: grid;
  grid-template-columns: 12px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: .8rem;
}
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(255,85,0,.5); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.65);
}
.modal.open { display: flex; }
.modal-card {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  background: #0c0c0e;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 70px rgba(0,0,0,.6);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 16px; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.detail-item { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.detail-label { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.detail-value { font-size: .9rem; font-weight: 700; overflow-wrap: anywhere; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.help-text { min-height: 18px; color: var(--muted); font-size: .78rem; margin-top: 12px; }
.checkout-page {
  background:
    radial-gradient(circle at 20% -10%, rgba(255,85,0,.14), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(255,170,0,.08), transparent 28%),
    var(--bg);
}
.checkout-nav { position: sticky; }
.checkout-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #ccc;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.checkout-back-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.checkout-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 30px) clamp(14px, 3vw, 26px) 38px;
}
.checkout-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}
.checkout-hero h1 {
  max-width: 780px;
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1.02;
}
.checkout-subtitle {
  max-width: 680px;
  color: var(--muted);
  margin-top: 10px;
  font-size: clamp(.9rem, 1.7vw, 1rem);
  line-height: 1.55;
}
.checkout-status-card {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,85,0,.12), rgba(255,255,255,.035));
}
.checkout-status-card strong,
.checkout-status-card span:not(.status-dot-pulse) {
  display: block;
}
.checkout-status-card strong { font-size: .92rem; text-transform: uppercase; }
.checkout-status-card span:not(.status-dot-pulse) { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.status-dot-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(255,85,0,.12), 0 0 20px rgba(255,85,0,.5);
  flex: 0 0 auto;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: 18px;
  align-items: start;
}
.checkout-left,
.checkout-right {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.checkout-right { position: sticky; top: 90px; }
.checkout-panel {
  min-width: 0;
  background: linear-gradient(180deg, rgba(17,17,22,.88), rgba(10,10,13,.88));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(14px, 2vw, 18px);
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
}
.plan-summary-panel { border-color: rgba(255,85,0,.16); }
.selected-plan-card {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,85,0,.08);
  border: 1px solid rgba(255,85,0,.18);
}
.selected-plan-card strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}
.selected-price {
  color: #fff;
  font-weight: 900;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  white-space: nowrap;
}
.checkout-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.checkout-plan-card {
  appearance: none;
  width: 100%;
  text-align: left;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.checkout-plan-card:hover,
.checkout-plan-card.selected {
  border-color: rgba(255,85,0,.52);
  background:
    linear-gradient(180deg, rgba(255,85,0,.13), rgba(255,255,255,.025)),
    var(--panel);
  transform: translateY(-2px);
}
.checkout-plan-card.selected { box-shadow: 0 18px 42px rgba(255,85,0,.12); }
.checkout-plan-card h3 {
  font-size: 1.02rem;
  line-height: 1.2;
}
.checkout-plan-card p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}
.plan-card-top,
.plan-meta-row,
.payment-head,
.pix-copy-head,
.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-chip {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255,85,0,.12);
  color: var(--accent);
  border: 1px solid rgba(255,85,0,.18);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .5px;
}
.plan-duration,
.plan-meta-row {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}
.checkout-price {
  margin: 12px 0;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0;
}
.payment-panel { border-color: rgba(255,170,0,.12); }
.payment-head { align-items: flex-start; margin-bottom: 16px; }
.pre-pix-state {
  display: grid;
  gap: 12px;
  justify-items: stretch;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  border: 1px dashed rgba(255,255,255,.12);
}
.pix-illustration {
  width: 84px;
  height: 84px;
  margin: 4px auto;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,85,0,.24), rgba(255,170,0,.12));
  color: #fff;
  font-weight: 900;
  letter-spacing: 2px;
  border: 1px solid rgba(255,85,0,.28);
}
.pre-pix-state p {
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  font-size: .88rem;
}
.pix-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255,85,0,.06);
}
.checkout-pix-box {
  margin-top: 0;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255,85,0,.09), rgba(255,255,255,.025));
}
.pix-preview {
  width: min(100%, 250px);
  aspect-ratio: 1 / 1;
  min-height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}
.pix-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pix-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  background: #111;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 2px;
}
.pix-copy { min-width: 0; display: flex; flex-direction: column; }
.pix-copy-head {
  align-items: flex-start;
  flex-direction: column;
  margin-bottom: 10px;
  font-size: .82rem;
}
.pix-copy-head span { color: var(--muted); font-size: .72rem; }
.pix-code {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  background: rgba(0,0,0,.34);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  padding: 12px;
  outline: none;
  font: 0.78rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
.pix-code:focus { border-color: var(--line-strong); }
.pix-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
.payment-feedback {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 46px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}
.feedback-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 16px rgba(255,170,0,.35);
  flex: 0 0 auto;
}
.payment-feedback[data-tone="success"] .feedback-dot { background: var(--ok); box-shadow: 0 0 16px rgba(0,255,100,.35); }
.payment-feedback[data-tone="danger"] .feedback-dot { background: var(--danger); box-shadow: 0 0 16px rgba(255,50,50,.35); }
.order-summary { background: rgba(255,255,255,.025); }
.summary-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}
.summary-line strong {
  color: #fff;
  text-align: right;
  overflow-wrap: anywhere;
}
.summary-line.total {
  border-bottom: 0;
  margin-top: 4px;
  color: #fff;
  font-size: 1rem;
}
.summary-line.total strong {
  color: var(--accent);
  font-size: 1.25rem;
}
.summary-line.discount strong {
  color: var(--ok);
}
.summary-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}
.checkout-help {
  text-align: center;
  min-height: 22px;
}
.coupon-panel {
  border-color: rgba(0,255,100,.12);
}
.coupon-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}
.coupon-input {
  width: 100%;
  text-transform: uppercase;
}
.coupon-feedback {
  margin-top: 10px;
}
.coupon-feedback[data-tone="success"] {
  color: var(--ok);
}
.coupon-feedback[data-tone="danger"] {
  color: #ff7777;
}
.selected-price-discount {
  display: grid;
  gap: 3px;
  justify-items: end;
}
.selected-price-discount span {
  color: var(--muted);
  font-size: .82rem;
  text-decoration: line-through;
}

.mobile-backdrop { display: none; }

/* ========================= */
/* DASHBOARD BOTTOM NAV      */
/* ========================= */
.dash-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(7, 7, 9, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
}
.dash-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: #555;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 0;
  min-width: 50px;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.dash-bnav-item svg { transition: transform 0.2s ease; }
.dash-bnav-item.active { color: var(--accent); }
.dash-bnav-item:active { color: var(--accent); }
.dash-bnav-item.active svg { transform: scale(1.1); }

.dash-bnav-cta { position: relative; }
.dash-bnav-cta-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--accent), #ff2a00);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-top: -20px;
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.45);
  transition: transform 0.2s ease;
}
.dash-bnav-cta-icon svg { color: #fff; }
.dash-bnav-cta:active .dash-bnav-cta-icon { transform: scale(0.93); }
.dash-bnav-cta span { color: var(--accent); font-weight: 700; }

/* ========================= */
/* DOWNLOAD CARD             */
/* ========================= */
.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,85,0,0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,85,0,0.25);
  box-shadow: 0 8px 32px rgba(255,85,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(255,85,0,0.14);
}
.download-icon {
  font-size: 2.2rem;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,85,0,0.15);
  border-radius: 14px;
  border: 1px solid rgba(255,85,0,0.2);
}
.download-info { flex: 1; min-width: 0; }
.download-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 5px;
}
.download-subtitle {
  font-size: .82rem;
  color: var(--muted);
}
.download-meta {
  min-height: 18px;
  margin-top: 6px;
  color: var(--faint);
  font-size: .74rem;
  overflow-wrap: anywhere;
}


/* ========================= */
@media (max-width: 1080px) {
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-right { position: static; }
  .checkout-plan-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
}

/* ========================= */
/* RESPONSIVE — MOBILE       */
/* ========================= */
@media (max-width: 860px) {
  body { padding-bottom: 68px; }

  /* Top nav: clean minimal — just logo + compact buy */
  .account-nav {
    grid-template-columns: auto auto;
    min-height: 50px;
    padding: 8px 14px;
  }
  .account-tabs { display: none !important; }
  .account-actions { justify-self: end; gap: 8px; }
  .brand { font-size: 1.1rem; letter-spacing: 1px; gap: 8px; }
  .brand svg { width: 20px; height: 20px; }

  /* Hide desktop sidebar, show bottom nav */
  .sidebar { display: none !important; }
  .mobile-backdrop { display: none !important; }
  .dash-bottom-nav { display: flex; }

  /* Full-width content */
  .app-shell {
    display: block;
    margin-top: 14px;
    padding: 0 14px;
  }

  /* FORCE hide profile pill on mobile */
  .profile-pill,
  .profile-pill.account-pill,
  .account-pill { display: none !important; }
  .account-buy { min-height: 34px; padding: 0 12px; font-size: 0.7rem; border-radius: 8px; letter-spacing: 0.5px; }

  /* Page header */
  .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }
  .eyebrow { font-size: 0.68rem; }
  h1 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .card-actions .btn-action { width: 100%; min-height: 40px; font-size: 0.76rem; padding: 8px 12px; }

  /* Stats — 2x2 grid */
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }
  .stat-box {
    padding: 14px;
    border-radius: 12px;
  }
  .stat-header { font-size: 0.62rem; margin-bottom: 8px; }
  .stat-number { font-size: 1.6rem; }
  .stat-desc { font-size: 0.72rem; margin-top: 4px; }

  /* Toolbar / Filters */
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .filter-group { gap: 6px; }
  .filter-btn { min-height: 34px; padding: 6px 12px; font-size: 0.7rem; }
  .search-input { width: 100%; min-height: 38px; font-size: 0.85rem; border-radius: 10px; }

  /* Panel sections */
  .panel-section {
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .section-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 10px;
  }
  .section-row h2 { font-size: 0.92rem; }
  .download-card {
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }
  .download-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    font-size: 1.35rem;
  }
  .download-card .btn-action {
    align-self: center;
    min-width: 112px;
    padding: 8px 12px;
    font-size: .72rem;
  }

  /* License cards */
  .item-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px;
    border-radius: 12px;
    gap: 10px;
  }
  .item-card:hover { transform: none; }
  .item-left { gap: 10px; }
  .game-icon {
    width: 38px; height: 38px; flex: 0 0 38px;
    border-radius: 8px; font-size: 0.7rem;
  }
  .item-title { font-size: 0.88rem; gap: 6px; }
  .item-date { font-size: 0.72rem; }
  .item-subtitle { font-size: 0.72rem; gap: 6px; }
  .card-actions { grid-template-columns: 1fr 1fr 1fr; }
  .mini-btn {
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.66rem;
    border-radius: 8px;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }

  /* Activity */
  .activity-item {
    grid-template-columns: 8px minmax(0,1fr);
    font-size: 0.74rem;
    padding: 10px;
    border-radius: 10px;
  }
  .activity-item > span:last-child { display: none; /* hide date on mobile for clean look */ }
  .activity-dot { width: 6px; height: 6px; }

  /* Modal */
  .modal { padding: 12px; }
  .modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 16px;
    padding: 16px;
  }
  .modal-head h2 { font-size: 1.1rem; }
  .detail-grid { grid-template-columns: 1fr; gap: 8px; }
  .detail-item { padding: 10px; border-radius: 10px; }
  .detail-label { font-size: 0.62rem; margin-bottom: 4px; }
  .detail-value { font-size: 0.82rem; }
  .modal-actions { flex-direction: column; gap: 8px; }
  .modal-actions .btn-action { width: 100%; }
  .help-text { font-size: 0.72rem; }

  /* ========== CHECKOUT MOBILE — CLEAN & MINIMAL ========== */

  /* Top nav */
  .checkout-page .top-nav { min-height: 50px; padding: 8px 14px; }
  .checkout-page .nav-links { display: none !important; }
  .checkout-page .brand { font-size: 1.1rem; gap: 8px; }
  .checkout-page .brand svg { width: 20px; height: 20px; }
  .checkout-back-btn { padding: 6px 12px; font-size: 0.7rem; border-radius: 8px; }

  /* Hero — centered, clean */
  .checkout-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  .checkout-hero h1 { font-size: clamp(1.4rem, 7vw, 1.9rem); line-height: 1.1; }
  .checkout-subtitle { font-size: 0.85rem; margin-top: 6px; max-width: 100%; color: #888; }

  /* Hide status card on mobile — redundant with hero */
  .checkout-status-card { display: none; }

  /* Shell & grid */
  .checkout-shell { padding: 14px 14px 40px; }
  .checkout-grid { grid-template-columns: 1fr; gap: 12px; }
  .checkout-right { position: static; }

  /* Panels — centered text */
  .checkout-panel {
    border-radius: 14px;
    padding: 16px;
    text-align: center;
  }
  .checkout-panel .section-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .checkout-panel .eyebrow { text-align: center; }
  .checkout-panel h2 { text-align: center; }

  /* Hide "Seu plano" section on mobile — it's redundant, info is in plan cards */
  .plan-summary-panel { display: none; }

  /* Plan grid — single column, centered */
  .checkout-plan-grid { grid-template-columns: 1fr; gap: 10px; }
  .checkout-plan-card {
    min-height: auto;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
  }
  .checkout-plan-card h3 { font-size: 1.05rem; margin-top: 4px; }
  /* Hide extra text on mobile to reduce clutter */
  .checkout-plan-card p { display: none; }
  .plan-meta-row { display: none; }
  .checkout-price { font-size: 1.6rem; margin: 4px 0 0; }
  .plan-card-top { justify-content: center; margin-bottom: 6px; }
  .plan-chip { font-size: 0.65rem; padding: 4px 8px; }
  .plan-duration { text-align: center; }

  /* Payment panel — centered */
  .payment-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 14px;
  }
  .pre-pix-state {
    padding: 20px 14px;
    border-radius: 12px;
    text-align: center;
  }
  .pre-pix-state p { font-size: 0.82rem; color: #888; }
  .pix-illustration { width: 56px; height: 56px; border-radius: 14px; font-size: 0.85rem; margin: 0 auto; }
  .primary-wide { min-height: 46px; border-radius: 12px; font-size: 0.85rem; }

  /* PIX box */
  .pix-box { grid-template-columns: 1fr; padding: 14px; border-radius: 12px; }
  .pix-preview { width: min(100%, 200px); margin: 0 auto; }
  .pix-copy-head { text-align: center; align-items: center; }
  .pix-code { min-height: 80px; font-size: 0.68rem; border-radius: 10px; }
  .pix-actions { grid-template-columns: 1fr; gap: 8px; }
  .pix-actions .btn-action { min-height: 44px; border-radius: 10px; }

  /* Feedback */
  .payment-feedback { padding: 10px; border-radius: 10px; font-size: 0.78rem; justify-content: center; }

  /* Order summary — centered */
  .order-summary { text-align: center; }
  .order-summary .eyebrow { margin-bottom: 6px; }
  .summary-line { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 4px;
    padding: 12px 0; 
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }
  .summary-line strong { font-size: 1.05rem; }
  .summary-line:last-of-type { border-bottom: none; }
  .summary-line.total { padding-top: 16px; margin-top: 8px; border-top: 1px dashed rgba(255,255,255,0.1); }
  .summary-line.total strong { font-size: 1.3rem; color: var(--accent); }
  .summary-note { font-size: 0.72rem; color: #666; }
  .coupon-form { grid-template-columns: 1fr; }
  .coupon-form .btn-action { width: 100%; }
  .selected-price-discount { justify-items: center; }
}

/* ========================= */
/* RESPONSIVE — SMALL PHONES */
/* ========================= */
@media (max-width: 420px) {
  .app-shell { padding: 0 10px; }
  .account-nav { padding: 10px 12px; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .profile-pill { display: none; }
  .account-buy { min-height: 34px; padding: 0 12px; font-size: 0.68rem; }

  .stats-row { gap: 8px; }
  .stat-box { padding: 12px; }
  .stat-number { font-size: 1.4rem; }

  .card-actions { grid-template-columns: 1fr 1fr; }
  .mini-btn { font-size: 0.62rem; }

  .checkout-shell { padding: 14px 10px 80px; }
  .checkout-plan-grid { grid-template-columns: 1fr; }
  .checkout-plan-card { min-height: auto; padding: 14px; }
  .selected-plan-card { align-items: flex-start; flex-direction: column; }
  .selected-price { font-size: 1.4rem; }
  .payment-head, .pix-copy-head { align-items: stretch; flex-direction: column; }
  .pix-box { padding: 12px; }
  .pix-preview { width: min(100%, 240px); }
  .pix-code { min-height: 100px; font-size: 0.7rem; }
  .pix-actions { grid-template-columns: 1fr; }
  .pix-actions .btn-action { min-height: 44px; }
}


/* Melhorias de UI dos itens da licenca */
.item-subtitle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}
.sub-item i {
  color: var(--accent);
  width: 16px;
  text-align: center;
}
.sub-item strong, .sub-item .item-price {
  color: #fff;
  font-weight: 600;
  margin-left: auto;
}

/* Modern Stat Rows */
.item-subtitle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  width: 100%;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.stat-label i {
  color: var(--accent);
  opacity: 0.8;
  width: 16px;
  text-align: center;
}
.stat-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat-value.highlight {
  color: var(--ok);
}
.stat-value.mono {
  font-family: 'Courier New', Courier, monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* ===== NOVO CARD DE LICENCA - CLEAN & PROFESSIONAL ===== */
.lic-card {
  background: linear-gradient(145deg, rgba(15,15,20,0.95), rgba(10,10,13,0.95));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.lic-card:hover {
  border-color: rgba(255,85,0,0.3);
  transform: translateY(-1px);
}

/* Header do card: icon + name + badge */
.lic-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lic-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background: linear-gradient(135deg, #ff8800, #ff5500);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  color: #fff;
  box-shadow: 0 4px 18px rgba(255,85,0,0.3);
}
.lic-title-block {
  flex: 1;
  min-width: 0;
}
.lic-name {
  font-weight: 800;
  font-size: 0.97rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lic-key {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'Courier New', monospace;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Grid de infos 2 colunas, full-width quando necessario */
.lic-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lic-info-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lic-info-full {
  grid-column: span 2;
}
.lic-info-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.lic-info-value {
  font-size: 0.87rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lic-info-value.val-used {
  color: var(--ok);
}
.lic-info-value.lic-mono {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #bbb;
}

/* Botoes de acao */
.lic-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lic-btn {
  flex: 1;
  min-height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  color: #ccc;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.2s;
  white-space: nowrap;
  padding: 0 10px;
}
.lic-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.09);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.lic-btn.lic-btn-danger {
  color: #ff7777;
  border-color: rgba(255,50,50,0.2);
  background: rgba(255,50,50,0.05);
}
.lic-btn.lic-btn-danger:hover:not(:disabled) {
  background: rgba(255,50,50,0.12);
  border-color: rgba(255,50,50,0.35);
}
.lic-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .lic-header { gap: 10px; }
  .lic-icon { width: 38px; height: 38px; flex: 0 0 38px; font-size: 0.68rem; }
  .lic-name { font-size: 0.88rem; }
  .lic-info { grid-template-columns: 1fr 1fr; }
  .lic-btn { font-size: 0.7rem; min-height: 34px; }
}

/* ===== MOBILE CENTERING FIX ===== */
@media (max-width: 860px) {
  .lic-card {
    padding: 16px;
  }
  .lic-header {
    justify-content: flex-start;
    gap: 12px;
  }
  .lic-info {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .lic-info-item {
    padding: 9px 11px;
    text-align: center;
    align-items: center;
  }
  .lic-info-full {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .lic-info-full .lic-info-value {
    text-align: right;
  }
  .lic-actions {
    gap: 6px;
  }
  .lic-btn {
    font-size: 0.68rem;
    min-height: 34px;
    padding: 0 6px;
  }
  .panel-section {
    padding: 12px;
  }
}

/* ===== MOBILE FULL CENTER FIX ===== */
@media (max-width: 860px) {
  .lic-info-full {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .lic-info-full .lic-info-value {
    text-align: center !important;
  }
  .lic-info-item {
    text-align: center !important;
    align-items: center !important;
  }
  .lic-info-label {
    text-align: center !important;
  }
  .lic-header {
    justify-content: center !important;
    flex-wrap: wrap;
    text-align: center;
  }
  .lic-title-block {
    text-align: center;
  }
  .lic-name, .lic-key {
    text-align: center;
  }
  .lic-actions {
    justify-content: center;
  }
}
