@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
  --bg-0: #030508;
  --bg-1: #070b12;
  --bg-2: #0c1220;
  --cyan: #00e8ff;
  --cyan-dim: #00a8bc;
  --cyan-glow: rgba(0, 232, 255, 0.45);
  --silver: #d7e6ef;
  --muted: #7a8fa3;
  --danger: #ff4d6d;
  --ok: #3dff9a;
  --line: rgba(0, 232, 255, 0.18);
  --font-display: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--silver);
  background: var(--bg-0);
  line-height: 1.45;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 120, 160, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(0, 80, 120, 0.15), transparent 50%),
    linear-gradient(180deg, #020406 0%, #050a12 40%, #020306 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 232, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 232, 255, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

a {
  color: var(--cyan);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- SHELL / SIDEBAR ---------- */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 12, 22, 0.98), rgba(2, 4, 8, 0.98));
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 60;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  filter: drop-shadow(0 0 12px var(--cyan-glow));
}

.sidebar-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar-brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nav-label {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0.7rem 0.4rem 0.35rem;
}

.sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: transparent;
  color: var(--silver);
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: 0.2s ease;
}

.sidebar-nav button:hover,
.sidebar-nav button.active {
  border-color: var(--cyan);
  color: #fff;
  background: rgba(0, 232, 255, 0.08);
  box-shadow: 0 0 18px rgba(0, 232, 255, 0.12);
}

.nav-ico {
  color: var(--cyan);
  width: 1.1rem;
  text-align: center;
}

.sidebar-foot {
  padding: 0.9rem;
  border-top: 1px solid var(--line);
}

.side-user strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.side-user span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.side-logout {
  width: 100%;
  margin-bottom: 0.55rem;
}

.side-login {
  width: 100%;
  margin-bottom: 0.55rem;
}

.side-trust {
  font-family: var(--font-display);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: var(--cyan-dim);
  text-transform: uppercase;
  text-align: center;
}

.main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(14px);
  background: rgba(3, 5, 8, 0.78);
  border-bottom: 1px solid var(--line);
}

.top-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  flex: 1;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pill {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--ok);
  border: 1px solid rgba(61, 255, 154, 0.35);
  background: rgba(61, 255, 154, 0.08);
  padding: 0.35rem 0.65rem;
}

.menu-btn {
  display: none;
}

.main-content {
  flex: 1;
  padding: 0 0.25rem;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--silver);
  padding: 0.65rem 1rem;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: 0.2s ease;
}

.btn:hover {
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 18px var(--cyan-glow), inset 0 0 12px rgba(0, 232, 255, 0.08);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(0, 232, 255, 0.25), rgba(0, 100, 130, 0.35));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 22px rgba(0, 232, 255, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(180deg, rgba(0, 232, 255, 0.4), rgba(0, 120, 150, 0.5));
}

.btn-ghost {
  background: transparent;
}

.muted {
  color: var(--muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 960px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.55);
  }

  .sidebar.open {
    transform: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 55;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- ADMIN STAGE ---------- */
.admin-hero-head h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

.admin-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.2rem 1.15rem 1.35rem;
  border: 1px solid rgba(0, 232, 255, 0.16);
  background:
    radial-gradient(ellipse 65% 50% at 8% 0%, rgba(0, 232, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(0, 140, 180, 0.07), transparent 50%),
    linear-gradient(165deg, rgba(8, 16, 28, 0.92), rgba(2, 6, 12, 0.88));
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  overflow: hidden;
}

.admin-stage::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 16px var(--cyan-glow);
}

.admin-stat {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(0, 232, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.admin-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-display);
}

.admin-stat b {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--cyan);
  line-height: 1;
  text-shadow: 0 0 18px rgba(0, 232, 255, 0.25);
}

.admin-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-tab {
  appearance: none;
  border: 1px solid rgba(0, 232, 255, 0.2);
  background: rgba(0, 10, 16, 0.55);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: 0.2s ease;
}

.admin-tab:hover {
  color: #dffcff;
  border-color: rgba(0, 232, 255, 0.45);
}

.admin-tab.active {
  color: #031018;
  background: linear-gradient(135deg, #9ff6ff, var(--cyan));
  border-color: transparent;
  box-shadow: 0 0 22px rgba(0, 232, 255, 0.32);
}

.admin-tab-panel {
  display: none;
  position: relative;
  z-index: 1;
  animation: shopIn 0.35s ease both;
}

.admin-tab-panel.active {
  display: block;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 280px;
  overflow: auto;
}

.admin-mini-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(0, 232, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.admin-mini-item strong {
  font-size: 0.9rem;
  color: #e8ffff;
}

.admin-mini-item span {
  font-size: 0.82rem;
  color: var(--cyan);
}

.admin-mini-item small {
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1rem;
  align-items: start;
}

.admin-card {
  padding: 1.1rem 1.05rem 1.15rem;
  border: 1px solid rgba(0, 232, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(0, 232, 255, 0.05), transparent 45%),
    rgba(0, 0, 0, 0.28);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.admin-card-grow {
  min-width: 0;
}

.admin-card-narrow {
  max-width: 520px;
}

.admin-card-head {
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-card-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.admin-card-head p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-form label {
  display: block;
  margin: 0.55rem 0 0.28rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-form input,
.admin-form select {
  width: 100%;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.admin-table-wrap {
  margin-top: 0.15rem;
  max-height: 420px;
  overflow: auto;
}

.admin-users-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mongo-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(0, 232, 255, 0.22);
  background: rgba(0, 12, 18, 0.55);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.mongo-chip.ok,
#mongoStatus.ok {
  color: var(--ok);
  border-color: rgba(61, 255, 154, 0.35);
  background: rgba(61, 255, 154, 0.08);
}

@media (max-width: 980px) {
  .admin-split {
    grid-template-columns: 1fr;
  }
  .admin-form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- HERO ---------- */
.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem 3rem;
  position: relative;
}

.hero-stage {
  width: min(920px, 100%);
  text-align: center;
  animation: rise 0.9s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-logo {
  width: min(560px, 92vw);
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 0 40px rgba(0, 232, 255, 0.35));
  animation: pulse-glow 3.2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 28px rgba(0, 232, 255, 0.28));
  }
  50% {
    filter: drop-shadow(0 0 52px rgba(0, 232, 255, 0.55));
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 10%, #9fefff 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}

.hero p {
  max-width: 520px;
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-bar {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--cyan-dim);
  text-transform: uppercase;
}

.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-bar span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: rotate(45deg);
}

/* ---------- PANELS ---------- */
.panel {
  display: none;
  padding: 1.5rem 1.25rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  animation: rise 0.45s ease both;
}

.panel.active {
  display: block;
}

.panel-head {
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--cyan);
  padding-left: 0.9rem;
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.panel-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.surface {
  background: linear-gradient(160deg, rgba(10, 18, 32, 0.95), rgba(5, 8, 14, 0.98));
  border: 1px solid var(--line);
  padding: 1.25rem;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow: 0 0 0 1px rgba(0, 232, 255, 0.04), 0 20px 50px rgba(0, 0, 0, 0.45);
}

.surface::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-top: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
  opacity: 0.7;
}

.surface h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--cyan);
}

label {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  margin-bottom: 0.9rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.75rem 0.85rem;
  outline: none;
  transition: 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 232, 255, 0.35), 0 0 18px rgba(0, 232, 255, 0.12);
}

textarea {
  min-height: 160px;
  resize: vertical;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.stat {
  padding: 0.85rem 0.6rem;
  border: 1px solid var(--line);
  background: rgba(0, 232, 255, 0.03);
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cyan);
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-box {
  margin-top: 1rem;
  max-height: 360px;
  overflow: auto;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  white-space: pre-wrap;
  color: #b7d7e6;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  padding: 0.85rem;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  padding: 0.85rem 1.1rem;
  background: #0a1520;
  border: 1px solid var(--cyan);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 24px var(--cyan-glow);
  transform: translateY(120%);
  opacity: 0;
  transition: 0.3s ease;
  max-width: min(360px, 90vw);
}

.toast.show {
  transform: none;
  opacity: 1;
}

.toast.error {
  border-color: var(--danger);
  box-shadow: 0 0 24px rgba(255, 77, 109, 0.35);
}

.plans-list {
  display: grid;
  gap: 0.75rem;
}

.plan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(0, 232, 255, 0.03);
}

.plan-item strong {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #fff;
}

.plan-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-item em {
  font-style: normal;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.auth-wrap {
  display: grid;
  place-items: start center;
}

.auth-card {
  width: min(480px, 100%);
}

.auth-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.auth-tabs button {
  flex: 1;
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 4, 10, 0.72);
  backdrop-filter: blur(6px);
}

.modal-card {
  width: min(640px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  padding: 1.1rem 1.15rem 1.25rem;
  border: 1px solid rgba(0, 232, 255, 0.28);
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(0, 232, 255, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(8, 16, 28, 0.98), rgba(2, 6, 12, 0.96));
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--cyan);
}

.admin-users-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.admin-users-head h3 {
  margin: 0;
}

#mongoStatus.ok {
  color: var(--ok);
}

.user-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.75rem;
}

.user-edit-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-edit-grid .feat-check {
  flex-direction: row;
  align-items: center;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  margin-top: 1.1rem;
}

@media (max-width: 640px) {
  .user-edit-grid {
    grid-template-columns: 1fr;
  }
}

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 3px
  );
  opacity: 0.25;
  mix-blend-mode: overlay;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer .brand-mini {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  color: var(--cyan);
  font-size: 0.7rem;
  margin-bottom: 0.35rem;
}

/* ---------- AIRDROP JOBS ---------- */
.upload-surface,
.jobs-surface,
.fail-surface {
  margin-bottom: 1.1rem;
}

.jobs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.jobs-head h3 {
  margin: 0;
}

.upload-row {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.file-drop {
  flex: 1;
  min-width: min(100%, 280px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  border: 1px dashed rgba(0, 232, 255, 0.35);
  background: rgba(0, 232, 255, 0.04);
  cursor: pointer;
  transition: 0.2s;
}

.file-drop:hover,
.file-drop.drag {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 232, 255, 0.15);
}

.file-drop strong {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

.file-drop span {
  color: var(--muted);
  font-size: 0.95rem;
}

.jobs-table-wrap {
  overflow-x: auto;
}

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.jobs-table th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--line);
}

.jobs-table td {
  padding: 1rem 0.65rem;
  border-bottom: 1px solid rgba(0, 232, 255, 0.08);
  vertical-align: middle;
  font-size: 1rem;
}

.jobs-table tr:hover td {
  background: rgba(0, 232, 255, 0.03);
}

.jobs-table .empty-row td {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0.65rem;
}

.file-cell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.file-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.file-cell strong {
  display: block;
  color: #fff;
  font-weight: 600;
}

.file-cell small {
  color: var(--muted);
  font-size: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-ok {
  color: #9dffc4;
  background: rgba(61, 255, 154, 0.1);
  border-color: rgba(61, 255, 154, 0.35);
}

.badge-run {
  color: #9eefff;
  background: rgba(0, 232, 255, 0.1);
  border-color: rgba(0, 232, 255, 0.35);
}

.badge-err {
  color: #ffb0bf;
  background: rgba(255, 77, 109, 0.1);
  border-color: rgba(255, 77, 109, 0.35);
}

.progress-wrap {
  min-width: 140px;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.progress-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #dff7ff, var(--cyan));
  box-shadow: 0 0 12px var(--cyan-glow);
  transition: width 0.25s ease;
}

.progress-meta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.progress-current {
  margin-top: 0.28rem;
  font-size: 0.72rem;
  color: var(--cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.progress-eta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #9fdfff;
  font-weight: 600;
}

.progress-current b {
  font-family: var(--font-display, monospace);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.job-row-live td {
  background: rgba(0, 229, 255, 0.03);
}

.fail-item-live {
  border-color: rgba(0, 229, 255, 0.35) !important;
  background: rgba(0, 229, 255, 0.06);
}

.fail-uid {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.fail-uid strong {
  font-family: var(--font-display, monospace);
  letter-spacing: 0.02em;
}

.fail-uid small {
  color: var(--muted);
  font-size: 0.78rem;
}

.fail-item-rich {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  gap: 0.45rem;
  grid-template-columns: none !important;
}

.fail-item-rich span:last-child {
  color: inherit;
  text-align: inherit;
}

.fail-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
}

.fail-uid-text {
  font-family: var(--font-display, monospace);
  letter-spacing: 0.02em;
  color: #fff;
}

.fail-nick {
  color: var(--cyan);
  font-size: 0.85rem;
}

.fail-status {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.85rem;
}

.fail-meta-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 0.35rem 1rem;
  font-size: 0.8rem;
  color: #c8d6e0;
}

.fail-name {
  grid-column: 1 / -1;
}

.fail-desc-full {
  grid-column: 1 / -1;
}

.fail-meta-grid em {
  font-style: normal;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  margin-right: 0.35rem;
}

.fail-desc {
  min-width: 0;
  word-break: break-word;
}

@media (max-width: 700px) {
  .fail-meta-grid {
    grid-template-columns: 1fr;
  }
  .fail-status {
    margin-left: 0;
  }
}

.count-ok {
  color: var(--ok);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.count-fail {
  color: var(--danger);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.job-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.job-actions .btn {
  padding: 0.5rem 0.7rem;
  font-size: 0.58rem;
}

.btn-danger-soft {
  border-color: rgba(255, 90, 90, 0.45) !important;
  color: #ff8f8f !important;
  background: rgba(255, 60, 60, 0.1) !important;
}

.btn-danger-soft:hover {
  border-color: rgba(255, 90, 90, 0.7) !important;
  background: rgba(255, 60, 60, 0.18) !important;
}

.fail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.result-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.fail-head h3 {
  margin: 0;
}

.fail-list {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.fail-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(0, 232, 255, 0.08);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
}

.fail-item:last-child {
  border-bottom: none;
}

.fail-item span:last-child {
  color: var(--danger);
  text-align: right;
}

@media (max-width: 700px) {
  .fail-item {
    grid-template-columns: 1fr;
  }
  .fail-item span:last-child {
    text-align: left;
  }
}

/* ---------- PREMIUM UI OVERRIDES ---------- */
:root {
  --bg-0: #02050a;
  --bg-1: #060d16;
  --bg-2: #0a1624;
  --cyan: #00e5ff;
  --cyan-soft: #74f4ff;
  --violet: #586cff;
  --line: rgba(74, 229, 255, 0.14);
  --line-strong: rgba(74, 229, 255, 0.35);
  --muted: #89a0b5;
}

body {
  font-size: 17px;
  background: #02050a;
}

body::before {
  background:
    radial-gradient(circle at 72% 3%, rgba(0, 229, 255, 0.12), transparent 28%),
    radial-gradient(circle at 18% 90%, rgba(53, 93, 255, 0.09), transparent 32%),
    linear-gradient(145deg, #02050a 0%, #06101b 52%, #02050a 100%);
}

.sidebar {
  width: 286px;
  background:
    linear-gradient(180deg, rgba(8, 17, 29, 0.98), rgba(2, 6, 12, 0.99));
  border-right-color: rgba(0, 229, 255, 0.2);
  box-shadow: 18px 0 55px rgba(0, 0, 0, 0.28);
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 34%;
  background: linear-gradient(transparent, var(--cyan), transparent);
  box-shadow: 0 0 18px var(--cyan);
  opacity: 0.65;
}

.sidebar-brand {
  min-height: 92px;
  padding: 1rem 1.15rem;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.05), transparent);
}

.sidebar-brand img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
}

.sidebar-brand strong {
  font-size: 0.94rem;
  letter-spacing: 0.16em;
}

.sidebar-brand small {
  font-size: 0.86rem;
}

.sidebar-nav {
  padding: 1rem 0.8rem;
  gap: 0.42rem;
}

.nav-label {
  font-size: 0.61rem;
  margin-top: 1rem;
  color: #60798e;
}

.sidebar-nav button {
  min-height: 48px;
  padding: 0.78rem 0.9rem;
  font-size: 0.72rem;
  border-radius: 10px;
  clip-path: none;
}

.sidebar-nav button::after {
  content: "";
  width: 3px;
  height: 0;
  margin-left: auto;
  border-radius: 99px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  transition: height 0.2s ease;
}

.sidebar-nav button.active::after {
  height: 22px;
}

.sidebar-nav button:hover,
.sidebar-nav button.active {
  border-color: rgba(0, 229, 255, 0.3);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.13), rgba(0, 229, 255, 0.035));
}

.nav-ico {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(0, 229, 255, 0.08);
  font-size: 0.78rem;
}

.sidebar-foot {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.18);
}

.side-user {
  padding: 0.85rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(0, 229, 255, 0.08), transparent 55%),
    rgba(0, 229, 255, 0.03);
}

.side-user-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.side-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.18), rgba(0, 80, 120, 0.2));
  color: #e9fbff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.12);
}

.side-user strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  font-family: var(--font-display);
}

.side-user span {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.side-access {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 229, 255, 0.1);
  color: #ffb0bf;
  font-size: 0.82rem;
  font-weight: 600;
}

.side-access.ok {
  color: #9dffc4;
}

.access-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.side-logout,
.side-login {
  width: 100%;
  margin-bottom: 0.55rem;
}

.nav-gated {
  animation: rise 0.35s ease both;
}

.topbar {
  min-height: 70px;
  padding: 0.85rem 2rem;
  background: rgba(3, 8, 14, 0.78);
  border-bottom-color: rgba(0, 229, 255, 0.13);
}

.top-title {
  font-size: 0.9rem;
}

.pill {
  position: relative;
  padding: 0.46rem 0.8rem 0.46rem 1.55rem;
  border-radius: 99px;
  font-size: 0.58rem;
}

.pill::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  transform: translateY(-50%);
  animation: online-pulse 1.8s infinite;
}

@keyframes online-pulse {
  50% { opacity: 0.45; }
}

.main-content {
  padding: 0 1rem;
}

.panel {
  max-width: 1380px;
  padding: 2.4rem clamp(1rem, 3vw, 3rem) 4rem;
}

.panel-head {
  position: relative;
  margin-bottom: 2rem;
  padding: 0.2rem 0 0.2rem 1.15rem;
  border-left-width: 4px;
}

.panel-head::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -10px;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.panel-head h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: 0.1em;
}

.panel-head p {
  margin-top: 0.32rem;
  font-size: 1.08rem;
}

.grid-2 {
  gap: 1.5rem;
}

.surface {
  padding: clamp(1.25rem, 2.4vw, 2rem);
  clip-path: none;
  border-radius: 18px;
  border-color: rgba(79, 224, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(13, 27, 44, 0.88), rgba(5, 12, 22, 0.94));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.surface:hover {
  border-color: rgba(0, 229, 255, 0.27);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(0, 229, 255, 0.045);
}

.surface::before {
  width: 70px;
  height: 2px;
  top: -1px;
  right: 24px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px var(--cyan);
}

.surface h3 {
  font-size: 0.86rem;
  margin-bottom: 1.3rem;
}

.btn {
  min-height: 43px;
  padding: 0.7rem 1.1rem;
  border-radius: 9px;
  clip-path: none;
  font-size: 0.7rem;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, #007f98, #00bcd4);
  border-color: #32e9ff;
  box-shadow: 0 8px 26px rgba(0, 200, 225, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #009bb8, #00ddf6);
  box-shadow: 0 12px 32px rgba(0, 229, 255, 0.3);
}

label {
  margin-bottom: 0.48rem;
  color: #a8bbcb;
  font-size: 1rem;
}

input,
textarea,
select {
  min-height: 48px;
  margin-bottom: 1.1rem;
  padding: 0.78rem 0.95rem;
  border-radius: 9px;
  border-color: rgba(127, 207, 224, 0.18);
  background: rgba(1, 5, 10, 0.66);
  font-size: 1.04rem;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(0, 229, 255, 0.3);
}

.stats {
  gap: 0.9rem;
}

.stat {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border-radius: 14px;
  border-color: rgba(0, 229, 255, 0.15);
  background:
    radial-gradient(circle at 50% 0, rgba(0, 229, 255, 0.1), transparent 65%),
    rgba(0, 229, 255, 0.025);
}

.stat b {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(1.05rem, 2vw, 1.48rem);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.32);
}

.stat span {
  margin-top: 0.35rem;
  font-size: 0.72rem;
}

.auth-tabs {
  padding: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.2);
}

.auth-tabs .btn {
  border: 0;
}

.result-box,
.fail-list {
  border-radius: 12px;
}

.upload-surface,
.jobs-surface,
.fail-surface {
  margin-bottom: 1.5rem;
}

.file-drop {
  min-height: 120px;
  padding: 1.5rem;
  border-radius: 14px;
  border-width: 2px;
  background:
    radial-gradient(circle at 30% 0, rgba(0, 229, 255, 0.08), transparent 55%),
    rgba(0, 229, 255, 0.025);
}

.file-drop strong {
  font-size: 0.82rem;
}

.jobs-table-wrap {
  border: 1px solid rgba(0, 229, 255, 0.09);
  border-radius: 12px;
}

.jobs-table th {
  padding: 1rem 0.85rem;
  background: rgba(0, 229, 255, 0.035);
  font-size: 0.65rem;
}

.jobs-table td {
  padding: 1.1rem 0.85rem;
}

.badge {
  border-radius: 99px;
  padding: 0.42rem 0.72rem;
}

.progress-bar {
  height: 9px;
  border-radius: 99px;
}

.progress-bar > i {
  border-radius: inherit;
}

.hero {
  min-height: calc(100vh - 70px);
}

.hero-stage {
  position: relative;
}

.hero-kicker {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 auto 0.75rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(61, 255, 154, 0.22);
  border-radius: 99px;
  background: rgba(61, 255, 154, 0.045);
  color: #a4ffc9;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.hero-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 42%;
  width: min(650px, 85vw);
  height: min(650px, 85vw);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08), transparent 68%);
  transform: translate(-50%, -50%);
}

.hero-logo {
  width: min(520px, 78vw);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero p {
  max-width: 680px;
  font-size: 1.25rem;
}

.hero-features {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2.3rem auto 0;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(0, 229, 255, 0.13);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(11, 25, 40, 0.72), rgba(3, 9, 16, 0.82));
  text-align: left;
  backdrop-filter: blur(12px);
}

.hero-feature > b {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 10px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.65rem;
  background: rgba(0, 229, 255, 0.06);
}

.hero-feature strong,
.hero-feature span {
  display: block;
}

.hero-feature strong {
  color: #eefcff;
  font-size: 1rem;
}

.hero-feature span {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.toast {
  border-radius: 12px;
  font-size: 0.72rem;
}

footer {
  background: rgba(2, 6, 11, 0.55);
}

/* ---------- LOJA PLANOS / PIX ---------- */
.shop-hero-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.shop-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(0, 229, 255, 0.1), transparent 55%),
    rgba(6, 14, 22, 0.72);
}

.shop-wallet strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: #e8fbff;
  font-size: 0.95rem;
}

.shop-wallet span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.shop-wallet em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  color: var(--cyan);
  white-space: nowrap;
}

.shop-wallet.guest {
  opacity: 0.9;
}

.shop-price-hint.shop-price-save {
  color: #7dffb3;
}

.shop-stage {
  position: relative;
  margin-bottom: 1.35rem;
  padding: 1.25rem 1.15rem 1.4rem;
  border: 1px solid rgba(0, 232, 255, 0.16);
  background:
    radial-gradient(ellipse 70% 55% at 15% 0%, rgba(0, 232, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 100%, rgba(0, 160, 120, 0.08), transparent 50%),
    linear-gradient(165deg, rgba(8, 16, 28, 0.92), rgba(2, 6, 12, 0.88));
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  overflow: hidden;
}

.shop-stage::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 16px var(--cyan-glow);
}

.shop-catalog {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: relative;
  z-index: 1;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.shop-filter {
  appearance: none;
  border: 1px solid rgba(0, 232, 255, 0.2);
  background: rgba(0, 10, 16, 0.55);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: 0.2s ease;
}

.shop-filter:hover {
  color: #dffcff;
  border-color: rgba(0, 232, 255, 0.45);
}

.shop-filter.active {
  color: #031018;
  background: linear-gradient(135deg, #9ff6ff, var(--cyan));
  border-color: transparent;
  box-shadow: 0 0 22px rgba(0, 232, 255, 0.35);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.shop-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  margin: 0.5rem 0;
}

.shop-card {
  --accent: var(--cyan);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.15rem 1.15rem;
  min-height: 100%;
  border: 1px solid rgba(0, 232, 255, 0.16);
  background:
    linear-gradient(160deg, rgba(0, 232, 255, 0.06), transparent 42%),
    rgba(0, 0, 0, 0.35);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: shopIn 0.45s ease both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

.shop-tone-air { --accent: #38bdf8; }
.shop-tone-lvl { --accent: #34d399; }
.shop-tone-both { --accent: #00e8ff; }

@keyframes shopIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 70%, white 10%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 28px color-mix(in srgb, var(--accent) 25%, transparent);
}

.shop-card-featured {
  border-color: rgba(0, 232, 255, 0.42);
  background:
    radial-gradient(circle at 80% -10%, rgba(0, 232, 255, 0.22), transparent 45%),
    linear-gradient(160deg, rgba(0, 232, 255, 0.1), transparent 50%),
    rgba(0, 8, 14, 0.55);
  box-shadow: 0 0 36px rgba(0, 232, 255, 0.12);
}

.shop-ribbon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.28rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #031018;
  background: linear-gradient(135deg, #ffe08a, #f5c84a);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.shop-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding-right: 5.5rem;
}

.shop-card-head strong {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: #fff;
}

.shop-tag {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.shop-period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.shop-period-tab {
  appearance: none;
  border: 1px solid rgba(0, 232, 255, 0.22);
  background: rgba(0, 8, 14, 0.65);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: 0.18s ease;
}

.shop-period-tab:hover {
  color: #e8ffff;
  border-color: rgba(0, 232, 255, 0.45);
}

.shop-period-tab.active {
  color: #031018;
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent);
}

.shop-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.shop-price {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  color: var(--accent);
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 35%, transparent);
  line-height: 1;
}

.shop-price-hint {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shop-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.15rem 0 0.35rem;
  flex: 1;
}

.shop-feats li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--silver);
}

.shop-feats li.soft {
  color: var(--muted);
  font-size: 0.88rem;
}

.shop-feats li.off {
  color: rgba(122, 143, 163, 0.45);
  text-decoration: line-through;
}

.shop-feats i {
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent);
}

.shop-feats li.off i {
  background: rgba(122, 143, 163, 0.35);
  box-shadow: none;
}

.shop-buy {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}

.shop-extra {
  margin-top: 0.25rem;
}

.shop-extra-card h3 {
  margin-bottom: 0.65rem;
}

@media (max-width: 980px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .shop-card-head {
    padding-right: 0;
  }
  .shop-ribbon {
    position: static;
    align-self: flex-start;
    margin-bottom: -0.2rem;
  }
}

/* legado select (admin / fallback) */
.shop-period-wrap {
  display: block;
  margin: 0;
  flex-shrink: 0;
}

.shop-period {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  min-width: 9.5rem;
  max-width: 12rem;
  padding: 0.35rem 1.7rem 0.35rem 0.65rem;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%) calc(100% - 14px) calc(50% - 3px) / 5px 5px no-repeat,
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%) calc(100% - 9px) calc(50% - 3px) / 5px 5px no-repeat,
    rgba(0, 12, 18, 0.85);
  color: #e8ffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.feat-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.feat-check input {
  width: auto;
  margin: 0;
}

.feat-new {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: flex-end;
}

.feat-new > span {
  font-size: 0.78rem;
  color: var(--muted);
}

.pix-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.1rem;
  align-items: start;
}

.pix-qr-wrap {
  width: 220px;
  height: 220px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pix-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pix-qr-ph {
  color: #777;
  font-family: var(--font-display);
  font-size: 0.8rem;
}

.pix-copy-wrap textarea {
  min-height: 110px;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .pix-layout {
    grid-template-columns: 1fr;
  }
  .pix-qr-wrap {
    margin: 0 auto;
  }
}

/* ---------- ADMIN: PLANOS & OFERTAS ---------- */
.plans-admin {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.6rem;
}

.plan-block {
  border: 1px solid rgba(0, 229, 255, 0.16);
  background:
    linear-gradient(160deg, rgba(0, 232, 255, 0.04), transparent 50%),
    rgba(0, 0, 0, 0.28);
  padding: 1rem;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.plan-block.plan-off {
  opacity: 0.6;
}

.plan-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.plan-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem;
}

.plan-fields label {
  display: flex;
  flex-direction: column;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7fa;
  gap: 0.2rem;
}

.plan-fields input {
  width: 108px;
  margin: 0;
}

.plan-fields .pl-name {
  width: 150px;
  font-weight: 600;
}

.plan-slug {
  align-self: center;
  font-family: var(--font-display, monospace);
  font-size: 0.72rem;
  color: #6ad;
  padding-bottom: 0.35rem;
}

.plan-acts,
.offer-acts {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.plan-acts .btn,
.offer-acts .btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.offers-wrap {
  margin-top: 0.8rem;
  border-top: 1px dashed rgba(0, 229, 255, 0.12);
  padding-top: 0.6rem;
}

.offer-head,
.offer-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 0.7fr 0.7fr 1.6fr;
  gap: 0.5rem;
  align-items: center;
}

.offer-head {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7fa;
  padding: 0 0.1rem 0.35rem;
}

.offer-row {
  padding: 0.35rem 0;
}

.offer-row input {
  margin: 0;
  width: 100%;
}

.offer-new {
  margin-top: 0.4rem;
  border-top: 1px dashed rgba(0, 229, 255, 0.1);
  padding-top: 0.6rem;
}

.plan-new {
  margin-top: 1.1rem;
  border-top: 1px dashed rgba(0, 229, 255, 0.14);
  padding-top: 0.9rem;
}

.plan-new h4 {
  margin: 0 0 0.6rem;
}

.plan-new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
}

.plan-new-grid label {
  font-size: 0.68rem;
  color: #7fa;
}

@media (max-width: 900px) {
  .offer-head {
    display: none;
  }
  .offer-row {
    grid-template-columns: 1fr 1fr;
  }
  .offer-acts {
    grid-column: 1 / -1;
  }
}

/* ---------- AFILIADOS ---------- */
.affiliate-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.4rem) !important;
}

.affiliate-glow {
  position: absolute;
  inset: auto auto -40% -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.affiliate-badge {
  width: max-content;
  margin-bottom: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  border: 1px solid rgba(61, 255, 154, 0.28);
  background: rgba(61, 255, 154, 0.06);
  color: #a8ffcb;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.affiliate-hero h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  color: #fff;
}

.affiliate-desc {
  max-width: 720px;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.affiliate-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.affiliate-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.1rem;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.affiliate-label {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dim);
}

.affiliate-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(0, 229, 255, 0.35);
}

.affiliate-card input {
  margin: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92rem;
  color: #d7f7ff;
}

.affiliate-card .btn {
  width: max-content;
}

.affiliate-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.affiliate-perk {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.12);
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.06), rgba(0, 0, 0, 0.15));
}

.affiliate-perk b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.06em;
}

.affiliate-perk span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .affiliate-grid,
  .affiliate-perks {
    grid-template-columns: 1fr;
  }

  .affiliate-card .btn {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .sidebar {
    width: min(310px, 86vw);
  }

  .topbar {
    padding: 0.75rem 1rem;
  }

  .main-content {
    padding: 0;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .panel {
    padding: 1.4rem 0.75rem 3rem;
  }

  .surface {
    padding: 1.15rem;
    border-radius: 14px;
  }

  .stats,
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    min-height: 92px;
  }

  .upload-row > .btn {
    width: 100%;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }
}
