:root {
  --bg: #05080F;
  --bg-1: #0B1220;
  --bg-2: #111A2E;
  --bg-3: #172238;
  --line: rgba(120, 160, 220, 0.08);
  --line-2: rgba(120, 160, 220, 0.16);
  --text: #E6EDF7;
  --muted: #8A96AC;
  --dim: #5C6A83;
  --primary: #1E90FF;
  --primary-soft: #4DA8FF;
  --primary-dim: rgba(30, 144, 255, 0.12);
  --primary-dim-2: rgba(30, 144, 255, 0.22);
  --accent: #00D9FF;
  --success: #22C55E;
  --warn: #F5B544;
  --danger: #F65B6B;

  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120,160,220,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120,160,220,0.25); }

/* ============ LAYOUT ============ */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-shell {
  max-width: none;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ============ HOME (v2) ============ */
.home-v2 {
  padding-bottom: 24px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 40px;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.home-hero .home-grid {
  display: none;
}

.home-hero-inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 38px 32px 86px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.home-hero-left {
  transform: translateY(-48px);
}

/* garante que todo conteúdo da página fique acima do grid fixo */
.app > *:not(.home-v2) {
  position: relative;
  z-index: 1;
}
.home-v2 section {
  position: relative;
  z-index: 1;
}

.home-hero-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.02;
}

.home-hero-sub {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.home-hero-cta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-hero-chip {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(5,8,15,0.45);
  border: 1px solid rgba(120,160,220,0.12);
  color: rgba(77,168,255,0.95);
  font-weight: 800;
  font-size: 13px;
  width: fit-content;
  backdrop-filter: blur(14px);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.home-hero-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(30,144,255,0.24);
  background: rgba(11,18,32,0.62);
}

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(77,168,255,1), rgba(30,144,255,0.92));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 14px 30px -18px rgba(30,144,255,0.75), inset 0 1px 0 rgba(255,255,255,0.16);
  font-weight: 800;
  color: #fff;
  transition: transform .12s ease, filter .12s ease;
}
.home-hero-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }

.home-hero-right {
  display: flex;
  justify-content: flex-end;
}

.home-hero-illu {
  width: min(520px, 100%);
  aspect-ratio: 680 / 520;
  border-radius: 22px;
  position: relative;
  background: radial-gradient(ellipse 80% 70% at 50% 35%, rgba(30,144,255,0.16), transparent 60%);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
}

.home-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: saturate(1.05);
}

.home-scroll {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(11,18,32,0.6);
  border: 1px solid rgba(120,160,220,0.14);
  color: rgba(230,237,247,0.9);
  backdrop-filter: blur(14px);
  transition: transform .12s ease, border-color .12s ease, background .12s ease, opacity .3s ease;
  animation: home-bounce 1.9s ease-in-out infinite;
  z-index: 10;
}
.home-scroll:hover {
  transform: translateX(-50%) translateY(-1px);
  border-color: rgba(30,144,255,0.26);
  background: rgba(11,18,32,0.75);
}

.home-screen-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(92px, 11vh, 148px);
  padding-bottom: clamp(92px, 11vh, 148px);
}

.scroll-cascade .cascade-item {
  opacity: 0;
  transform: translate3d(0, 56px, 0) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--cascade-index, 0) * 140ms);
}

.scroll-cascade.is-visible .cascade-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@keyframes home-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.home-benefits {
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
}

.home-benefits::before {
  content: 'COMECE EM POUCOS PASSOS';
  position: absolute;
  top: clamp(18px, 3vh, 34px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.07);
  white-space: nowrap;
  pointer-events: none;
}

.home-benefits-inner {
  width: 100%;
}

.home-benefits .home-section-head h2 {
  font-size: 0;
  line-height: 0;
  margin: 10px 0 10px;
}

.home-benefits .home-section-head h2::before {
  content: 'Comece em poucos passos';
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #f8fbff;
}

.home-benefits .home-section-head p {
  font-size: 0;
  line-height: 0;
  max-width: 820px;
}

.home-benefits .home-section-head p::before {
  content: 'Escolha o pacote certo, entre com Discord e ative tudo sem fricção. A ideia aqui é vender o fluxo, não só listar benefícios.';
  display: block;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.home-benefit-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 34px;
  align-items: start;
}

.home-benefit-grid::before {
  content: '';
  position: absolute;
  top: 138px;
  left: 22%;
  right: 22%;
  height: 74px;
  border-top: 2px dashed rgba(30,144,255,0.42);
  border-radius: 999px;
  opacity: 0.8;
  pointer-events: none;
}

.home-benefit-card {
  position: relative;
  min-height: 430px;
  background:
    linear-gradient(180deg, rgba(8,13,24,0.42), rgba(8,13,24,0.78)),
    radial-gradient(circle at 18% 18%, rgba(0,217,255,0.14), transparent 34%),
    linear-gradient(135deg, rgba(11,18,32,0.92), rgba(15,24,42,0.78));
  border: 1px solid rgba(120,160,220,0.14);
  border-radius: 24px;
  padding: 32px 28px 28px;
  box-shadow: 0 36px 70px -42px rgba(0,0,0,0.88);
  overflow: hidden;
  transform-origin: center center;
}

.home-benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(30,144,255,0.18), transparent 30%);
  pointer-events: none;
}

.home-benefit-card:nth-child(1) {
  transform: rotate(-4deg) translateY(58px);
}

.home-benefit-card:nth-child(2) {
  transform: rotate(3.5deg) translateY(-18px);
  background:
    linear-gradient(180deg, rgba(0,159,255,0.28), rgba(8,13,24,0.38)),
    radial-gradient(circle at 16% 18%, rgba(0,217,255,0.24), transparent 36%),
    linear-gradient(135deg, rgba(18,142,214,0.95), rgba(16,93,168,0.82));
  border-color: rgba(92,189,255,0.38);
}

.home-benefit-card:nth-child(3) {
  transform: rotate(-2.75deg) translateY(26px);
}

.home-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: rgba(77,168,255,0.95);
  background: rgba(9,15,26,0.42);
  border: 1px solid rgba(30,144,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.home-benefit-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #1fd6ff;
  margin-bottom: 18px;
}

.home-benefit-hero {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 52px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #f7fbff;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.home-benefit-copy {
  position: relative;
  z-index: 1;
  color: rgba(236,243,255,0.88);
  font-size: 18px;
  line-height: 1.32;
  max-width: 34ch;
  margin-bottom: 28px;
}

.home-benefit-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 174px;
  min-height: 64px;
  padding: 0 24px;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.home-benefit-action:hover {
  transform: translateY(-2px);
}

.home-benefit-action-outline {
  background: rgba(8,13,24,0.58);
  border: 2px solid rgba(39,213,255,0.8);
  color: #27d5ff;
}

.home-benefit-action-solid {
  background: rgba(7,12,22,0.88);
  border: 2px solid rgba(12,18,29,0.8);
  color: #fff;
}

.home-benefit-sub {
  display: none;
}

.home-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 26px;
}

.home-section-head h2 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
}
.home-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(30,144,255,0.10);
  border: 1px solid rgba(30,144,255,0.18);
  color: rgba(77,168,255,0.95);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.home-feedbacks {
  padding-top: 0;
  padding-bottom: 0;
  flex-direction: column;
}

.home-feedbacks .page-shell {
  width: 100%;
}

.home-marquee {
  position: relative;
  margin-top: 24px;
  padding: 14px 0 42px;
  width: 100%;
  opacity: 0;
  transform: translate3d(0, 64px, 0);
  filter: blur(12px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 180ms,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) 180ms,
    filter 1s cubic-bezier(0.22, 1, 0.36, 1) 180ms;
}

.home-feedbacks.is-visible .home-marquee {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.home-marquee-row {
  overflow: hidden;
  padding: 6px 0;
}

.home-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 8px 18px;
  will-change: transform;
  animation: home-marquee 46s linear infinite;
}

.home-marquee-row-right .home-marquee-track {
  animation-duration: 58s;
  animation-direction: reverse;
}

.home-marquee-row:has(.home-feedback-card:hover) .home-marquee-track {
  animation-play-state: paused;
}

@keyframes home-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-marquee-mask {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.home-marquee-mask-left {
  left: 0;
  background: linear-gradient(90deg, rgba(5,8,15,1), rgba(5,8,15,0));
}
.home-marquee-mask-right {
  right: 0;
  background: linear-gradient(270deg, rgba(5,8,15,1), rgba(5,8,15,0));
}

.home-feedback-card {
  width: 360px;
  max-width: 360px;
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(11,18,32,0.70), rgba(11,18,32,0.52));
  border: 1px solid rgba(120,160,220,0.10);
  border-radius: 18px;
  padding: 18px 18px;
  box-shadow: 0 18px 50px -40px rgba(0,0,0,0.8);
  backdrop-filter: blur(16px);
}

.home-feedback-card-dim {
  opacity: 0.55;
  filter: blur(0.45px);
}

.home-feedback-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.home-feedback-avatar {
  position: relative;
  overflow: hidden;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  background: rgba(30,144,255,0.14);
  border: 1px solid rgba(30,144,255,0.22);
  color: rgba(77,168,255,0.98);
}

.home-feedback-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 2;
}

.home-feedback-avatar span {
  position: relative;
  z-index: 1;
}

.home-feedback-name {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.home-feedback-text {
  color: rgba(230,237,247,0.84);
  font-size: 13px;
  line-height: 1.65;
  min-height: 64px;
}

.home-feedback-stars {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}

.home-feedback-empty {
  display: flex;
  justify-content: center;
  padding: 24px 18px 12px;
}

.home-feedback-empty-card {
  width: min(760px, calc(100% - 36px));
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid rgba(120,160,220,0.12);
  background: linear-gradient(180deg, rgba(11,18,32,0.8), rgba(11,18,32,0.58));
  text-align: center;
  box-shadow: 0 18px 50px -40px rgba(0,0,0,0.8);
}

.home-feedback-empty-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-feedback-empty-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-star {
  width: 14px;
  height: 14px;
  clip-path: polygon(50% 0%, 62% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 38% 35%);
  background: rgba(77,168,255,0.95);
  filter: drop-shadow(0 0 10px rgba(30,144,255,0.25));
}

.home-rankings {
  padding-top: 0;
  padding-bottom: 0;
}

.home-rankings-shell {
  width: 100%;
}

.home-rankings-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
  align-items: start;
  transition: grid-template-columns .35s cubic-bezier(.22,1,.36,1), gap .35s cubic-bezier(.22,1,.36,1);
}

.home-rankings-shell.is-focused .home-rankings-grid {
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 18px;
}

.home-ranking-card {
  min-width: 0;
  border-radius: 20px;
  border: 1px solid rgba(120,160,220,0.12);
  background: linear-gradient(180deg, rgba(11,18,32,0.78), rgba(11,18,32,0.56));
  box-shadow: 0 18px 50px -40px rgba(0,0,0,0.8);
  backdrop-filter: blur(16px);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.home-rankings-shell.is-focused .home-ranking-card {
  display: none;
}

.home-rankings-shell.is-focused .home-ranking-card.is-active {
  display: block;
  grid-column: 1;
  min-height: 100%;
  animation: home-ranking-focus-card .28s ease;
}

.home-ranking-card:hover,
.home-ranking-card:focus-visible,
.home-ranking-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(30,144,255,0.34);
  box-shadow: 0 24px 54px -34px rgba(7, 123, 255, 0.42);
  background: linear-gradient(180deg, rgba(13,22,40,0.9), rgba(9,15,28,0.74));
  outline: none;
}

.home-ranking-card-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(120,160,220,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-ranking-card-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #F3F7FD;
  text-align: left;
}

.home-ranking-card-toggle {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #7fb5ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-ranking-history-panel {
  display: block;
  grid-column: 1 / -1;
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(120,160,220,0.12);
  background: linear-gradient(180deg, rgba(11,18,32,0.78), rgba(11,18,32,0.56));
  box-shadow: 0 18px 50px -40px rgba(0,0,0,0.8);
  backdrop-filter: blur(16px);
  padding: 12px 18px 16px;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  animation: home-ranking-focus-panel .28s ease;
}

.home-rankings-shell.is-focused .home-ranking-history-panel {
  grid-column: 2;
  margin-top: 0;
  min-height: 100%;
}

.home-ranking-history-panel[hidden] {
  display: none !important;
}

.home-ranking-history-panel-head {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}

.home-ranking-history-close {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(120,160,220,0.14);
  background: rgba(255,255,255,0.03);
  color: #d6e4f9;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.home-ranking-history-close:hover {
  border-color: rgba(246,91,107,0.32);
  background: rgba(246,91,107,0.1);
  color: #fff;
}

.home-ranking-history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-ranking-history-window {
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(120,160,220,0.08);
  background: rgba(5,9,18,0.4);
  padding: 10px 12px;
}

.home-ranking-history-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(120,160,220,0.06);
}

.home-ranking-history-window-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #78b5ff;
}

.home-ranking-history-inherited {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(30,144,255,0.14);
  color: #78b5ff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 18px;
  cursor: help;
}

.home-ranking-history-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.home-ranking-history-window .home-ranking-row {
  padding: 6px 0;
  font-size: 12px;
}

.home-ranking-history-window .home-ranking-pos {
  font-size: 12px;
  min-width: 22px;
}

.home-ranking-history-window .home-ranking-name {
  font-size: 12px;
}

.home-ranking-history-window .home-ranking-value {
  font-size: 12px;
}

.home-ranking-history-empty {
  padding: 16px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(120,160,220,0.18);
  background: rgba(8,14,24,0.4);
  color: #8ea1bb;
  text-align: center;
  font-size: 12px;
}

@keyframes home-ranking-focus-panel {
  from {
    opacity: 0;
    transform: translateX(-28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes home-ranking-focus-card {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.home-ranking-list {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.home-ranking-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px 0 0;
  border-radius: 12px;
  background: rgba(8,14,24,0.58);
  border: 1px solid rgba(120,160,220,0.08);
}

.home-ranking-row.is-online {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 46px;
}

.home-ranking-pos {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 44px;
  border-radius: 11px;
  background: rgba(255,255,255,0.03);
  color: #DCE6F5;
  font-weight: 800;
  font-size: 14px;
}

.home-ranking-pos.is-top-1 { color: #FACC15; }
.home-ranking-pos.is-top-2 { color: #E5E7EB; }
.home-ranking-pos.is-top-3 { color: #FB923C; }

.home-ranking-name,
.home-ranking-value {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #E6EDF7;
}

.home-ranking-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-ranking-value {
  color: #B9C7DB;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.home-ranking-value.is-online {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.home-ranking-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 18px;
  text-align: center;
}

.home-ranking-empty strong {
  font-size: 15px;
  color: #F3F7FD;
}

.home-ranking-empty span {
  color: #8A96AC;
  font-size: 13px;
  line-height: 1.6;
}

.home-rankings-foot {
  margin-top: 18px;
  text-align: center;
  color: #93A4BD;
  font-size: 13px;
}

.home-faq {
  padding-top: 0;
  padding-bottom: 0;
}

.home-faq-inner {
  width: 100%;
}

.home-faq-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.home-faq-item {
  background: linear-gradient(180deg, rgba(11,18,32,0.65), rgba(11,18,32,0.52));
  border: 1px solid rgba(120,160,220,0.10);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
}

.home-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 800;
}
.home-faq-q::-webkit-details-marker { display: none; }
.home-faq-item[open] .home-faq-q i { transform: rotate(180deg); }
.home-faq-q i { transition: transform .18s ease; color: rgba(138,150,172,0.9); }

.home-faq-a {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 20px; padding-bottom: 72px; }
  .home-hero-left { transform: none; }
  .home-hero-right { justify-content: flex-start; }
  .home-screen-section {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .home-benefit-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .home-benefits::before { display: none; }
  .home-benefit-grid::before { display: none; }
  .home-benefit-card:nth-child(1),
  .home-benefit-card:nth-child(2),
  .home-benefit-card:nth-child(3) {
    transform: none;
  }
  .home-benefit-card {
    min-height: auto;
    border-radius: 20px;
    padding: 24px 22px 22px;
  }
  .home-benefit-hero {
    font-size: clamp(28px, 8vw, 40px);
  }
  .home-benefit-copy {
    font-size: 16px;
    max-width: none;
  }
  .home-benefit-action {
    min-width: 148px;
    min-height: 54px;
    font-size: 16px;
  }
  .home-feedback-card { width: 320px; max-width: 320px; }
  .home-marquee-mask { width: 72px; }
  .home-rankings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-rankings-shell.is-focused .home-rankings-grid { grid-template-columns: 1fr; }
  .home-rankings-shell.is-focused .home-ranking-history-panel { grid-column: 1; margin-top: 18px; }
  .home-ranking-history-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .home-rankings-grid { grid-template-columns: 1fr; }
  .home-ranking-history-panel {
    padding: 18px;
  }
  .home-ranking-history-summary {
    grid-template-columns: 1fr;
  }
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 17, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(120, 160, 220, 0.06);
}
.nav-inner {
  max-width: none;
  margin: 0 auto;
  padding: 12px 26px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1E90FF 0%, #0057B8 100%);
  position: relative;
  box-shadow: 0 0 0 1px rgba(30,144,255,0.22), 0 8px 18px -10px rgba(30,144,255,0.45);
  display: grid;
  place-items: center;
}
.nav-logo-mark::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
}
.nav-logo-mark svg { position: relative; z-index: 1; }
.nav-verified {
  color: var(--primary);
  font-size: 13px;
  display: inline-flex;
}

.nav-menu {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-menu button {
  padding: 9px 13px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 10px;
  transition: color .15s, background .15s, border-color .15s;
  font-weight: 500;
  border: 1px solid transparent;
}
.nav-menu button:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-menu button.active {
  color: var(--text);
  background: rgba(30, 144, 255, 0.12);
  border-color: rgba(75, 149, 255, 0.16);
}

.nav-search {
  flex: 0 1 380px;
  width: 100%;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  background: rgba(18, 22, 34, 0.92);
  border: 1px solid rgba(86, 131, 204, 0.26);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.nav-search:hover {
  background: rgba(20, 25, 39, 0.98);
  border-color: rgba(105, 152, 230, 0.34);
}
.nav-search:focus-within {
  border-color: rgba(105, 168, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.06);
}
.nav-search svg {
  width: 13px;
  height: 13px;
  color: rgba(234, 240, 255, 0.58);
  flex-shrink: 0;
}
.nav-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 12.5px; width: 100%;
}
.nav-search input::placeholder { color: rgba(210, 220, 245, 0.42); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-user {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px;
  padding: 6px 12px 6px 6px;
  background: rgba(18, 22, 34, 0.92);
  border: 1px solid rgba(86, 131, 204, 0.18);
  border-radius: 100px;
  font-size: 13px;
  transition: border-color .15s, background .15s;
}
.nav-user:hover {
  border-color: rgba(105, 152, 230, 0.34);
  background: rgba(20, 25, 39, 0.98);
}
.nav-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #1E90FF, #0057B8);
  display: grid; place-items: center;
  font-weight: 600; font-size: 11px;
  color: #fff;
}
.nav-logout {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--dim);
  border-radius: 999px;
  transition: color .15s, background .15s, border-color .15s;
  border: 1px solid transparent;
}
.nav-logout:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: rgba(105, 152, 230, 0.18);
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  background: rgba(18, 22, 34, 0.92);
  border: 1px solid rgba(86, 131, 204, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.nav-login:hover {
  border-color: rgba(105, 152, 230, 0.34);
  background: rgba(20, 25, 39, 0.98);
}

.btn-cart {
  display: flex; align-items: center; gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  transition: transform .1s, box-shadow .15s, background .15s;
  box-shadow: 0 6px 18px -8px rgba(30,144,255,0.5), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-cart:hover {
  transform: translateY(-1px);
  background: #2f98ff;
  box-shadow: 0 8px 22px -8px rgba(30,144,255,0.6), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-cart .cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid var(--bg);
}

@media (max-width: 1180px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-search {
    order: 4;
    flex-basis: 100%;
    max-width: none;
    margin-left: 0;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform .1s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(30,144,255,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover { background: #2E9DFF; transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-1);
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-secondary:hover { background: var(--bg-2); border-color: rgba(120,160,220,0.25); }
.btn-ghost {
  color: var(--muted);
  padding: 9px 14px;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.btn-danger {
  color: var(--danger);
}
.btn-danger:hover { background: rgba(246,91,107,0.08); }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 14px 22px; font-size: 14px; border-radius: 12px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,144,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,144,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black, transparent 70%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(30,144,255,0.15), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-dim-2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-soft);
  margin-bottom: 20px;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-soft);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.hero-title .accent {
  background: linear-gradient(135deg, #1E90FF 0%, #00D9FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 0 32px;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 48px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hero-stat-lbl {
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #051833 0%, #0B1220 100%);
  border: 1px solid var(--line-2);
}
.hero-visual-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 120%, rgba(30,144,255,0.45), transparent 60%),
    radial-gradient(circle at 20% 30%, rgba(0,217,255,0.2), transparent 40%);
}
.hero-visual-sun {
  position: absolute;
  top: 20%; left: 50%; transform: translateX(-50%);
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.4), rgba(30,144,255,0.2) 40%, transparent 70%);
  filter: blur(4px);
}
.hero-visual-grid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background:
    linear-gradient(transparent, rgba(0,217,255,0.08)),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(5% - 1px),
      rgba(0,217,255,0.3) calc(5% - 1px),
      rgba(0,217,255,0.3) 5%
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(12% - 1px),
      rgba(0,217,255,0.25) calc(12% - 1px),
      rgba(0,217,255,0.25) 12%
    );
  transform: perspective(600px) rotateX(60deg);
  transform-origin: top;
  mask-image: linear-gradient(transparent, black 30%);
  -webkit-mask-image: linear-gradient(transparent, black 30%);
}
.hero-visual-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 88px;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 0 40px rgba(30,144,255,0.8), 0 0 80px rgba(0,217,255,0.4);
  margin-bottom: -12px;
}
.hero-visual-tagline {
  position: relative;
  z-index: 2;
  font-style: italic;
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0,217,255,0.6);
  letter-spacing: -0.01em;
}
.hero-visual-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============ SECTIONS ============ */
.section { padding: 72px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 32px;
}
.section-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-soft);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.section-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
  margin: 0;
}

/* ============ CARDS / GRID ============ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  transition: border-color .2s, transform .15s, background .15s;
  cursor: pointer;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.cat-card:hover {
  border-color: var(--primary-dim-2);
  transform: translateY(-2px);
  background: var(--bg-2);
}
.cat-card:hover::before { opacity: 1; }
.cat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-dim-2);
  display: grid; place-items: center;
  color: var(--primary-soft);
  margin-bottom: 16px;
}
.cat-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.cat-count {
  font-size: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.cat-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--primary-soft);
  font-weight: 500;
}

/* ============ PRODUCT CARDS ============ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.prod-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, transform .15s;
  display: flex;
  flex-direction: column;
}
.prod-open {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.prod-card:hover {
  border-color: var(--primary-dim-2);
  transform: translateY(-2px);
}
.prod-img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.prod-img-placeholder {
  width: 100%; height: 100%;
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(30,144,255,0.04) 0,
      rgba(30,144,255,0.04) 8px,
      transparent 8px,
      transparent 16px
    );
  display: grid;
  place-items: center;
}
.prod-img-icon {
  width: 72px; height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30,144,255,0.15), rgba(0,217,255,0.08));
  border: 1px solid var(--primary-dim-2);
  display: grid; place-items: center;
  color: var(--primary-soft);
  box-shadow: 0 8px 24px -8px rgba(30,144,255,0.4);
}
.prod-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(30,144,255,0.4);
}
.prod-badge-discount {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(34,197,94,0.15);
  color: var(--success);
  border: 1px solid rgba(34,197,94,0.3);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.prod-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.prod-cat {
  font-size: 10.5px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.prod-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.prod-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}
.prod-price-old {
  font-size: 12px;
  color: var(--dim);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.prod-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.prod-pay {
  font-size: 11px;
  color: var(--dim);
  margin-top: -4px;
}
.prod-buy {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  z-index: 3;
}
.prod-buy:hover { background: #2E9DFF; }
.p2-body {
  padding: 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p2-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.p2-cat {
  font-size: 10.5px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.p2-pill {
  font-size: 10px;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 999px;
  color: var(--warn);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
}
.p2-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
.p2-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.p2-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.p2-price-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.p2-old {
  font-size: 13px;
  color: var(--dim);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.p2-discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 8px;
  color: #8ec5ff;
  background: rgba(32, 102, 189, 0.16);
  border: 1px solid rgba(68, 140, 255, 0.24);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.p2-price {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.p2-sub {
  font-size: 11.5px;
  color: var(--muted);
}
.p2-pix-badge {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #57d8c4;
  background: linear-gradient(180deg, rgba(27, 60, 65, 0.88), rgba(14, 38, 42, 0.95));
  border: 1px solid rgba(87, 216, 196, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.p2-cta {
  margin-top: 4px;
}
.p2-cta .prod-buy {
  min-height: 38px;
  border-radius: 9px;
  font-weight: 700;
}

/* ============ FEATURES ============ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feat {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
}
.feat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-dim);
  color: var(--primary-soft);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feat-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}
.feat-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ============ TESTIMONIALS ============ */
.testim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testim {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.testim-stars {
  color: var(--primary-soft);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testim-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 18px;
}
.testim-author { display: flex; align-items: center; gap: 10px; }
.testim-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
}
.testim-name { font-weight: 600; font-size: 13px; }
.testim-role { font-size: 11.5px; color: var(--dim); }

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item.open { border-color: var(--primary-dim-2); }
.faq-q {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
.faq-q svg { color: var(--muted); transition: transform .2s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--primary-soft); }
.faq-a {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ============ FOOTER ============ */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
  background: linear-gradient(180deg, rgba(11,18,32,0.92), rgba(5,8,15,0.96));
}
.footer-shell {
  max-width: none;
  width: 100%;
  padding: 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 64px;
  margin-bottom: 32px;
  align-items: start;
}
.footer-about p { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 340px; margin: 12px 0 16px; }
.footer-email { font-size: 13px; color: var(--muted); }
.footer-email strong { color: var(--text); font-family: var(--font-mono); }
.footer-links { justify-self: end; text-align: right; }
.footer-links-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(230,237,247,0.95);
  margin: 2px 0 14px;
}
.footer-links a { display: block; color: var(--muted); font-size: 13px; padding: 5px 0; transition: color .15s; }
.footer-links a:hover { color: var(--primary-soft); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(11,18,32,0.75);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  padding: 0;
  transition: color .15s, border-color .15s;
}
.footer-social a:hover { color: var(--primary-soft); border-color: var(--primary-dim-2); }
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}
.footer-bottom-left { display: flex; flex-direction: column; gap: 6px; }
.footer-copy { font-size: 12px; color: var(--dim); }
.footer-powered { font-size: 12px; color: rgba(138,150,172,0.95); display: flex; align-items: center; gap: 8px; }
.footer-cc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(120,160,220,0.12);
  color: rgba(230,237,247,0.90);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.footer-cc-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34,197,94,0.95), rgba(0,217,255,0.9));
  box-shadow: 0 0 14px rgba(34,197,94,0.18);
}

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr; gap: 18px; }
  .footer-links { justify-self: start; text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ PRODUCTS PAGE ============ */
.products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 40px 0;
}
.filter-panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.filter-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  font-weight: 600;
  margin: 0 0 14px;
}
.filter-group + .filter-group { margin-top: 22px; }
.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.filter-item:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.filter-item.active {
  background: var(--primary-dim);
  color: var(--primary-soft);
  font-weight: 500;
}
.filter-item-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
}
.filter-item.active .filter-item-count { background: var(--primary-dim-2); color: var(--primary-soft); }
.price-range { padding: 0 4px; }
.price-range input { width: 100%; accent-color: var(--primary); }
.price-range-values {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--muted);
  margin-top: 8px;
  font-family: var(--font-mono);
}

.products-main { min-width: 0; }
.products-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}
.products-count {
  font-size: 13px;
  color: var(--muted);
}
.products-count strong { color: var(--text); }
.sort-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.sort-select {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 40px 9px 14px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.sort-select-icon {
  position: absolute;
  right: 14px;
  color: var(--muted);
  pointer-events: none;
}

.page-head {
  padding: 32px 0 16px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 12px;
}
.breadcrumb a:hover { color: var(--primary-soft); }
.breadcrumb span.sep { color: rgba(255,255,255,0.2); }
.page-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ============ PROFILE ============ */
.profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 40px 0;
}
.profile-page .page-head {
  padding: 18px 0 8px;
}
.profile-page .breadcrumb {
  margin-bottom: 0;
}
.profile-page .profile-layout {
  padding: 12px 0 40px;
}
.profile-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.profile-banner {
  height: 104px;
  margin: -24px -24px 16px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(30,144,255,0.22), rgba(0,87,184,0.14)),
    radial-gradient(circle at top right, rgba(77,168,255,0.26), transparent 42%),
    rgba(17,26,46,0.9);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.profile-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,8,15,0.08), rgba(5,8,15,0.34));
  pointer-events: none;
}
.profile-banner.has-banner::after {
  background: linear-gradient(180deg, rgba(5,8,15,0.05), rgba(5,8,15,0.42));
}
.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-header {
  text-align: center;
  padding: 0 0 4px;
  margin-top: -58px;
  position: relative;
  z-index: 1;
}
.profile-avatar-lg {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E90FF, #0057B8);
  display: grid; place-items: center;
  margin: 0 auto 14px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(30,144,255,0.12), 0 8px 24px -8px rgba(30,144,255,0.5);
  position: relative;
}
.profile-status {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 16px; height: 16px;
  background: var(--success);
  border: 3px solid var(--bg-1);
  border-radius: 50%;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-email {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin: 0 0 4px;
  max-width: 100%;
}
.profile-email-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-email-toggle {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(120,160,220,0.18);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--dim);
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.profile-email-toggle:hover {
  color: var(--text);
  background: rgba(30,144,255,0.1);
  border-color: rgba(30,144,255,0.32);
}
.profile-email-toggle .profile-email-eye-show { display: block; }
.profile-email-toggle .profile-email-eye-hide { display: none; }
.profile-email-toggle.is-visible .profile-email-eye-show { display: none; }
.profile-email-toggle.is-visible .profile-email-eye-hide { display: block; }
.profile-since {
  font-size: 11px;
  color: var(--dim);
}
.profile-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.profile-stat:last-child { border-bottom: none; }
.profile-stat-lbl {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.profile-stat-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg-2);
  display: grid; place-items: center;
  color: var(--primary-soft);
}
.profile-stat-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.profile-stat-val.money { color: var(--success); }

.profile-main { min-width: 0; }
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tab {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary-soft); }
.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}
.new-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(30,144,255,0.16);
  border: 1px solid rgba(30,144,255,0.28);
  color: var(--primary-soft);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ============ STAFF APPLICATION ============ */
.staff-alert {
  margin-bottom: 16px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.staff-alert.success { color: #a7f3d0; border-color: rgba(34,197,94,0.26); background: rgba(34,197,94,0.1); }
.staff-alert.error { color: #fecdd3; border-color: rgba(246,91,107,0.26); background: rgba(246,91,107,0.1); }

.push-permission-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 22px;
  background: rgba(3, 7, 18, 0.48);
  backdrop-filter: blur(8px);
}

.push-permission-card {
  width: min(100%, 440px);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(30, 144, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 13, 24, 0.96);
  color: #e5edf8;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.push-permission-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--primary-soft);
  background: rgba(30, 144, 255, 0.12);
  border: 1px solid rgba(30, 144, 255, 0.22);
}

.push-permission-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.push-permission-body strong {
  font-size: 15px;
  line-height: 1.25;
}

.push-permission-body span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.push-permission-actions {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.push-permission-actions button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.push-permission-actions button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.push-permission-secondary {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.push-permission-primary {
  border: 1px solid rgba(30, 144, 255, 0.45);
  background: var(--primary);
  color: #fff;
}

@media (max-width: 560px) {
  .push-permission-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .push-permission-card {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .push-permission-icon {
    width: 36px;
    height: 36px;
  }

  .push-permission-actions {
    grid-column: 1 / -1;
  }
}
.staff-hero {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(30,144,255,0.15), rgba(10,18,32,0.92));
  border: 1px solid rgba(30,144,255,0.22);
  border-radius: 16px;
}
.staff-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.staff-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(34,197,94,0.8);
}
.staff-hero h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 8px;
}
.staff-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.staff-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.staff-meta span,
.staff-tags span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 11.5px;
}
.staff-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.staff-question {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.staff-question-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.staff-question-num {
  display: inline-flex;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary-soft);
}
.staff-question h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
}
.staff-question h3 b { color: var(--primary-soft); margin-left: 4px; }
.staff-question p,
.staff-help {
  margin: 5px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
}
.staff-question em {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--dim);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.staff-input,
.staff-textarea,
.staff-answer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-2);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  font: inherit;
}
.staff-input:focus,
.staff-textarea:focus,
.staff-answer textarea:focus {
  border-color: var(--primary);
  background: var(--bg-3);
}
.staff-textarea {
  min-height: 130px;
  resize: vertical;
}
.staff-choices {
  display: grid;
  gap: 8px;
}
.staff-choice {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.staff-choice input {
  position: absolute;
  opacity: 0;
}
.staff-choice span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
}
.staff-choice input[type="checkbox"] + span { border-radius: 5px; }
.staff-choice:has(input:checked) {
  border-color: rgba(30,144,255,0.38);
  color: var(--text);
  background: rgba(30,144,255,0.09);
}
.staff-choice:has(input:checked) span {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 4px var(--bg-2);
}
.staff-scale {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.staff-scale input {
  position: absolute;
  opacity: 0;
}
.staff-scale span {
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  cursor: pointer;
}
.staff-scale input:checked + span {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}
.staff-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--dim);
  font-size: 11px;
}
.staff-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
  padding: 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.staff-foot strong,
.staff-foot span {
  display: block;
}
.staff-foot span {
  color: var(--dim);
  font-size: 12px;
  margin-top: 2px;
}
.staff-application-state {
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 22px;
  border-color: rgba(30,144,255,0.26);
  background:
    radial-gradient(circle at 12% 0%, rgba(30,144,255,0.18), transparent 34%),
    linear-gradient(135deg, rgba(30,144,255,0.10), rgba(6,10,18,0.86)),
    var(--bg-1);
}
.staff-application-state::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(135deg, rgba(0,0,0,0.55), transparent 70%);
}
.staff-application-state.is-approved {
  border-color: rgba(34,197,94,0.25);
  background:
    radial-gradient(circle at 12% 0%, rgba(34,197,94,0.14), transparent 34%),
    linear-gradient(135deg, rgba(34,197,94,0.09), rgba(6,10,18,0.86)),
    var(--bg-1);
}
.staff-application-state-head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 0;
}
.staff-state-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(30,144,255,0.28);
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 38px rgba(30,144,255,0.24);
  flex: 0 0 auto;
}
.staff-application-state.is-approved .staff-state-icon {
  background: var(--success);
  border-color: rgba(34,197,94,0.28);
  box-shadow: 0 16px 38px rgba(34,197,94,0.2);
}
.staff-application-state-head small {
  display: block;
  margin-bottom: 7px;
  color: var(--primary-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.staff-application-state.is-approved .staff-application-state-head small { color: #86efac; }
.staff-application-state-head h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
}
.staff-application-state-head p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}
.staff-state-summary {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.staff-state-summary div {
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 13px;
  background: rgba(5,8,15,0.36);
}
.staff-state-summary span,
.staff-state-summary strong {
  display: block;
}
.staff-state-summary span {
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 11px;
}
.staff-state-summary strong {
  color: var(--text);
  font-size: 14px;
}
.staff-state-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.staff-state-step {
  min-height: 132px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(10,18,32,0.76);
}
.staff-state-step span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
}
.staff-state-step.is-current,
.staff-state-step.is-done {
  border-color: rgba(30,144,255,0.28);
}
.staff-state-step.is-done span {
  color: #dbeafe;
  background: rgba(30,144,255,0.18);
}
.staff-application-state.is-approved .staff-state-step.is-done {
  border-color: rgba(34,197,94,0.24);
}
.staff-application-state.is-approved .staff-state-step.is-done span {
  color: #dcfce7;
  background: rgba(34,197,94,0.16);
}
.staff-state-step strong,
.staff-state-step small {
  display: block;
}
.staff-state-step strong {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
}
.staff-state-step small {
  color: var(--dim);
  line-height: 1.45;
}
.staff-state-link {
  color: var(--primary-soft);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
.staff-state-link:hover {
  color: var(--primary);
}
.staff-state-note {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid rgba(30,144,255,0.18);
  border-radius: 13px;
  background: rgba(30,144,255,0.08);
}
.staff-application-state.is-approved .staff-state-note {
  border-color: rgba(34,197,94,0.18);
  background: rgba(34,197,94,0.08);
}
.staff-state-note strong {
  color: var(--text);
  font-size: 13px;
}
.staff-state-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

/* ============ ORDER LIST ============ */
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-item {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  transition: border-color .15s;
}
.order-item:hover { border-color: var(--primary-dim-2); }
.order-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--primary-soft);
}
.order-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.order-product {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-meta {
  font-size: 12px;
  color: var(--dim);
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
}
.order-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-soft);
  font-variant-numeric: tabular-nums;
}
.order-status {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status-delivered { background: rgba(34,197,94,0.12); color: var(--success); border: 1px solid rgba(34,197,94,0.25); }
.status-processing { background: rgba(245,181,68,0.12); color: var(--warn); border: 1px solid rgba(245,181,68,0.25); }
.status-pending { background: rgba(30,144,255,0.12); color: var(--primary-soft); border: 1px solid rgba(30,144,255,0.25); }

.review-panel {
  background: linear-gradient(180deg, rgba(11,18,32,0.74), rgba(11,18,32,0.56));
  border: 1px solid rgba(120,160,220,0.12);
  border-radius: 14px;
  padding: 16px;
}

.review-panel summary {
  cursor: pointer;
}

.review-panel summary::-webkit-details-marker {
  display: none;
}

.review-panel + .review-panel {
  margin-top: 16px;
}

.review-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.review-panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.review-panel-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.review-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(30,144,255,0.24);
  background: rgba(30,144,255,0.12);
  color: var(--primary-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.review-select,
.review-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(120,160,220,0.14);
  background: rgba(5,8,15,0.58);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.review-select:focus,
.review-textarea:focus {
  border-color: rgba(30,144,255,0.38);
  box-shadow: 0 0 0 2px rgba(30,144,255,0.08);
}

.review-textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.6;
}

.review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.review-help {
  color: var(--dim);
  font-size: 12px;
}

.review-alert {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
}

.review-alert-success {
  border: 1px solid rgba(34,197,94,0.26);
  background: rgba(34,197,94,0.12);
  color: #a7f3d0;
}

.review-alert-error {
  border: 1px solid rgba(246,91,107,0.26);
  background: rgba(246,91,107,0.12);
  color: #fecdd3;
}

.review-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(120,160,220,0.12);
  background: rgba(5,8,15,0.42);
}

.review-summary-stars {
  display: flex;
  gap: 4px;
}

.review-summary-star {
  width: 12px;
  height: 12px;
  clip-path: polygon(50% 0%, 62% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 38% 35%);
  background: rgba(77,168,255,0.95);
}

.review-summary-text {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 820px) {
  .order-item {
    grid-template-columns: 56px 1fr;
  }

  .order-price,
  .order-status {
    grid-column: 2;
  }

  .review-actions {
    align-items: stretch;
  }
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  background: var(--bg-1);
  border: 1px dashed var(--line-2);
  border-radius: 16px;
}
.empty-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--bg-2);
  display: grid; place-items: center;
  margin: 0 auto 16px;
  color: var(--primary-soft);
}

/* ============ PROFILE — responsivo ============ */
@media (max-width: 980px) {
  .profile-layout,
  .profile-page .profile-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0 32px;
  }
  .profile-side { gap: 12px; }
  .profile-main { width: 100%; }
  .staff-hero,
  .staff-review-grid,
  .staff-question-workspace {
    grid-template-columns: 1fr;
  }
  .staff-question-editor-grid {
    grid-template-columns: 1fr;
  }
  .staff-review-top-tabs {
    flex-direction: column;
  }
  .staff-review-top-tabs a,
  .staff-review-top-tabs .staff-review-tab-disabled {
    flex: 1 1 auto;
    justify-content: flex-start;
    min-height: 52px;
    border-right: 0;
    border-bottom: 1px solid rgba(120,160,220,0.12);
  }
  .staff-review-top-tabs a:last-child,
  .staff-review-top-tabs .staff-review-tab-disabled:last-child {
    border-bottom: 0;
  }
  .staff-state-steps {
    grid-template-columns: 1fr;
  }
  .staff-state-summary {
    grid-template-columns: 1fr;
  }
  .staff-state-note {
    align-items: flex-start;
    flex-direction: column;
  }
  .staff-state-note span {
    text-align: left;
  }
  .staff-review-head {
    align-items: flex-start;
  }
  .staff-question-new-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .profile-card { padding: 18px; }
  .profile-banner {
    height: 88px;
    margin: -18px -18px 14px;
    border-radius: 16px 16px 0 0;
  }
  .profile-header { margin-top: -52px; }
  .profile-avatar-lg,
  .profile-avatar-lg img,
  .profile-avatar-lg > div {
    width: 72px !important;
    height: 72px !important;
  }
  .profile-name { font-size: 16px; }
  .profile-email { font-size: 12px; word-break: break-all; }
  .profile-stat { padding: 12px 0; }
  .profile-stat-lbl { font-size: 12.5px; gap: 8px; }
  .profile-stat-icon { width: 28px; height: 28px; }
  .profile-stat-val { font-size: 14px; }

  .tabs {
    gap: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 18px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .staff-hero {
    padding: 18px;
  }
  .staff-hero h2 {
    font-size: 22px;
  }
  .staff-question-head,
  .staff-application-state-head,
  .staff-foot,
  .staff-detail-head {
    flex-direction: column;
    align-items: stretch;
  }
  .staff-application-state-head {
    grid-template-columns: 1fr;
  }
  .staff-detail-status {
    margin-left: 0;
    align-self: flex-start;
  }
  .staff-scale {
    grid-template-columns: repeat(5, 1fr);
  }
  .staff-question-editor-large summary {
    grid-template-columns: auto auto minmax(0, 1fr);
  }
  .staff-question-editor-large summary em,
  .staff-question-editor-large summary b {
    grid-column: 3;
    justify-self: start;
  }
  .staff-question-form-actions {
    justify-content: flex-start;
  }
  .staff-app-row {
    grid-template-columns: 38px 1fr;
  }
  .staff-app-row em {
    grid-column: 2;
    justify-self: start;
  }
  .tab {
    padding: 11px 14px;
    font-size: 12.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .panel { padding: 16px; }

  .acc-info-head { gap: 10px; padding-bottom: 14px; margin-bottom: 14px; }
  .acc-info-status { padding: 5px 10px; font-size: 11px; }
  .acc-info-title { font-size: 15px; }

  #order-pagination {
    flex-wrap: wrap;
    justify-content: center !important;
  }
  #order-pagination #page-info {
    order: -1;
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .profile-page .profile-layout { padding: 12px 0 28px; }
  .profile-card { padding: 16px; }
  .profile-banner { margin: -16px -16px 12px; height: 80px; }
  .profile-header { margin-top: -48px; }

  .order-item {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
    padding: 12px;
  }
  .order-thumb {
    grid-column: 1;
    grid-row: 1 / span 2;
    aspect-ratio: 1;
  }
  .order-thumb svg { width: 18px; height: 18px; }
  .order-info {
    grid-column: 2;
    grid-row: 1;
  }
  .order-product { font-size: 13.5px; }
  .order-meta { font-size: 11px; gap: 8px; flex-wrap: wrap; }
  .order-price {
    grid-column: 2;
    grid-row: 2;
    font-size: 15px;
  }
  .order-status {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
  }
}

/* ============ ADMIN ============ */
.admin-app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.admin-side {
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 10px 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.admin-brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1E90FF 0%, #0057B8 100%);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(30,144,255,0.3), 0 4px 12px -4px rgba(30,144,255,0.5);
  flex-shrink: 0;
  overflow: hidden;
}
.admin-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-brand-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; white-space: nowrap; }
.admin-brand-sub { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; }
.admin-nav-section { margin-top: 16px; }
.admin-nav-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  font-weight: 600;
  padding: 0 10px;
  margin-bottom: 6px;
}
.admin-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--muted);
  transition: background .15s, color .15s;
  text-align: left;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.admin-nav-item.active {
  background: var(--primary-dim);
  color: var(--primary-soft);
  font-weight: 500;
}
.admin-nav-badge {
  margin-left: auto;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  padding: 1px 6px;
  border-radius: 5px;
}
.admin-user {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-user-info { flex: 1; min-width: 0; }
.admin-user-name { font-size: 13px; font-weight: 600; }
.admin-user-role { font-size: 11px; color: var(--primary-soft); }

.admin-main {
  padding: 32px 40px;
  min-width: 0;
  overflow-x: hidden;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 16px;
}
.admin-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.admin-sub {
  color: var(--muted);
  font-size: 13.5px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.kpi {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg-2);
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.kpi-delta {
  font-size: 11px;
  margin-top: 6px;
  font-family: var(--font-mono);
}
.kpi-delta.up { color: var(--success); }
.kpi-delta.down { color: var(--danger); }
.kpi-revenue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kpi-revenue-text {
  display: inline-block;
}
.kpi-revenue-toggle {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(120,160,220,0.22);
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  color: var(--dim);
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.kpi-revenue-toggle:hover {
  color: var(--text);
  background: rgba(30,144,255,0.12);
  border-color: rgba(30,144,255,0.4);
}
.kpi-revenue-toggle .kpi-revenue-eye-show { display: block; }
.kpi-revenue-toggle .kpi-revenue-eye-hide { display: none; }
.kpi-revenue-toggle.is-visible .kpi-revenue-eye-show { display: none; }
.kpi-revenue-toggle.is-visible .kpi-revenue-eye-hide { display: block; }
.kpi-accent-blue { color: var(--primary-soft); }
.kpi-accent-green { color: var(--success); }
.kpi-accent-amber { color: var(--warn); }
.kpi-accent-cyan { color: var(--accent); }

.admin-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.admin-grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.staff-review-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.staff-review-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(30,144,255,0.12), transparent 34%),
    linear-gradient(180deg, rgba(8,14,26,0.84), rgba(5,8,15,0.98));
}
.staff-review-page::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(120,160,220,0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(120,160,220,0.028) 1px, transparent 1px);
  background-size: 92px 92px;
  opacity: 0.42;
}
.staff-review-head {
  align-items: center;
  margin-bottom: 34px;
}
.staff-review-head .admin-title {
  font-size: 29px;
}
.staff-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #b7c7df;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.staff-profile-link:hover {
  color: var(--text);
  border-color: rgba(120,160,220,0.18);
  background: rgba(255,255,255,0.035);
}
.staff-review-top-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(120,160,220,0.16);
  border-radius: 13px;
  background: rgba(8,14,26,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 18px 50px rgba(0,0,0,0.18);
  backdrop-filter: blur(14px);
}
.staff-review-top-tabs a,
.staff-review-top-tabs .staff-review-tab-disabled {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 14px;
  color: #93a4bd;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid rgba(120,160,220,0.12);
  transition: color .15s, background .15s;
}
.staff-review-top-tabs a > span,
.staff-review-top-tabs .staff-review-tab-disabled > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.staff-review-top-tabs svg {
  flex-shrink: 0;
}
.staff-review-top-tabs a:last-child,
.staff-review-top-tabs .staff-review-tab-disabled:last-child { border-right: 0; }
.staff-review-top-tabs a:hover {
  color: var(--text);
  background: rgba(30,144,255,0.06);
}
.staff-review-top-tabs a:focus { outline: none; }
.staff-review-top-tabs a:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(30,144,255,0.45);
}
.staff-review-top-tabs a.active {
  color: var(--text);
  background: rgba(30,144,255,0.13);
}
.staff-review-top-tabs a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}
.staff-review-top-tabs .staff-review-tab-disabled {
  cursor: not-allowed;
  opacity: 0.48;
  user-select: none;
}
.staff-review-top-tabs .staff-review-tab-disabled:hover {
  color: #93a4bd;
  background: transparent;
}
.staff-review-top-tabs svg { color: #4da8ff; }
.staff-review-top-tabs .staff-review-tab-disabled svg { color: #64748b; }

.staff-history-empty {
  text-align: center;
  padding: 48px 24px;
}
.staff-history-empty strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 6px;
}
.staff-history-empty span {
  color: var(--dim);
  font-size: 13px;
}
.staff-history-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.staff-history-group {
  background: rgba(8,14,26,0.72);
  border: 1px solid rgba(120,160,220,0.16);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.staff-history-group.is-open { border-color: rgba(30,144,255,0.32); }
.staff-history-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}
.staff-history-group-head:hover { background: rgba(30,144,255,0.04); }
.staff-history-date-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(30,144,255,0.12);
  color: #4DA8FF;
  border: 1px solid rgba(30,144,255,0.22);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.staff-history-group-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}
.staff-history-group-name {
  color: var(--text);
  font-weight: 700;
  font-size: 14.5px;
  text-transform: capitalize;
}
.staff-history-group-counts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.staff-history-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.staff-history-count.approved {
  background: rgba(34,197,94,0.12);
  color: #2DF59D;
  border: 1px solid rgba(34,197,94,0.28);
}
.staff-history-count.rejected {
  background: rgba(246,91,107,0.1);
  color: #F65B6B;
  border: 1px solid rgba(246,91,107,0.28);
}
.staff-history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4DA8FF;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.staff-history-toggle .chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.staff-history-group.is-open .staff-history-toggle .chev { transform: rotate(-135deg); }
.staff-history-group-body {
  display: none;
  border-top: 1px solid rgba(120,160,220,0.08);
  padding: 8px;
  background: linear-gradient(180deg, rgba(30,144,255,0.04), transparent 40%), rgba(11,18,32,0.4);
}
.staff-history-group.is-open .staff-history-group-body { display: block; }
.staff-history-entry {
  display: grid;
  grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1.2fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  transition: background .15s;
}
.staff-history-entry + .staff-history-entry { margin-top: 2px; }
.staff-history-entry:hover { background: rgba(30,144,255,0.05); }
.staff-history-entry-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.staff-history-entry-main strong {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-history-entry-main span {
  color: var(--dim);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-history-entry-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.staff-history-entry-time {
  font-family: var(--font-mono);
  color: var(--dim);
  font-size: 11.5px;
}
.staff-history-reviewer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 12.5px;
}
.staff-history-reviewer-avatar {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(30,144,255,0.15);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.staff-history-reviewer-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.staff-history-reviewer-avatar span {
  font-size: 9px;
  font-weight: 700;
  color: var(--primary-soft);
}
.staff-history-unknown {
  color: var(--dim);
  font-style: italic;
  font-size: 12px;
}
.staff-history-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: normal;
  flex-shrink: 0;
}
.staff-history-status.approved {
  background: rgba(34,197,94,0.12);
  color: #2DF59D;
  border: 1px solid rgba(34,197,94,0.28);
}
.staff-history-status.rejected {
  background: rgba(246,91,107,0.1);
  color: #F65B6B;
  border: 1px solid rgba(246,91,107,0.28);
}
@media (max-width: 900px) {
  .staff-history-entry {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
  .staff-history-entry-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-left: 54px;
  }
  .staff-history-group-head { flex-wrap: wrap; }
}
.staff-question-admin {
  margin-bottom: 20px;
  border-color: rgba(120,160,220,0.14);
  background: rgba(8,14,26,0.72);
  backdrop-filter: blur(12px);
}
.staff-question-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.staff-question-admin-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
}
.staff-question-admin-head p {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 12.5px;
}
.staff-question-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
.staff-question-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.staff-question-editor {
  border: 1px solid rgba(120,160,220,0.12);
  border-radius: 13px;
  background: rgba(10,18,32,0.64);
  overflow: hidden;
}
.staff-question-editor[open] {
  border-color: rgba(30,144,255,0.28);
}
.staff-question-editor.is-dragging {
  opacity: .48;
}
.staff-question-editor summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  transition: background .18s ease;
}
.staff-question-editor summary:hover {
  background: rgba(30,144,255,0.04);
}
.staff-question-editor[open] summary {
  border-bottom: 1px solid rgba(120,160,220,0.1);
  background: rgba(30,144,255,0.05);
}
.staff-question-editor summary::-webkit-details-marker { display: none; }
.staff-question-drag {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  cursor: grab;
  transition: color .15s, background .15s;
}
.staff-question-drag:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.staff-question-order {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(30,144,255,0.12);
  color: var(--primary-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.staff-question-editor summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.staff-question-editor summary em,
.staff-question-editor summary b {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.staff-question-editor summary b {
  color: var(--danger);
  background: rgba(246,91,107,0.1);
}
.staff-question-edit-form {
  padding: 0 14px 14px;
}
.staff-options-textarea {
  min-height: 82px;
}
.staff-options-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.staff-options-editor .staff-options-textarea {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}
.staff-options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(120,160,220,0.12);
  border-radius: 12px;
  background: rgba(8,14,26,0.48);
}
.staff-options-list:empty {
  display: none;
}
.staff-option-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
}
.staff-option-grip {
  display: inline-grid;
  place-items: center;
  height: 36px;
  border-radius: 6px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: grab;
  transition: color .15s, background .15s;
}
.staff-option-grip:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.staff-option-input {
  min-height: 36px;
}
.staff-option-remove,
.staff-option-add {
  border: 1px solid rgba(120,160,220,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  color: #b7c7df;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.staff-option-remove {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
}
.staff-option-remove:hover {
  color: var(--danger);
  border-color: rgba(246,91,107,0.34);
  background: rgba(246,91,107,0.08);
}
.staff-option-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}
.staff-option-add:hover {
  color: var(--text);
  border-color: rgba(30,144,255,0.32);
  background: rgba(30,144,255,0.1);
}
.staff-options-editor.is-disabled {
  opacity: .58;
}
.staff-options-editor.is-disabled .staff-options-list {
  display: none;
}
.staff-options-editor.is-disabled .staff-option-add {
  display: none;
}
.staff-options-editor.is-disabled::before {
  content: 'Este tipo de pergunta nao usa opcoes.';
  display: block;
  padding: 12px;
  border: 1px dashed rgba(120,160,220,0.16);
  border-radius: 12px;
  color: var(--dim);
  font-size: 12px;
  background: rgba(8,14,26,0.35);
}
.staff-question-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(120,160,220,0.1);
}
.staff-question-form-actions .form-check {
  margin-right: 4px;
}
.staff-question-form-actions .btn {
  min-height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.staff-question-form-actions .btn-primary {
  margin-left: 0;
}
.staff-question-form-actions .staff-question-delete-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(246,91,107,0.28);
  color: var(--danger);
  transition: background .15s, border-color .15s, color .15s;
}
.staff-question-form-actions .staff-question-delete-btn:hover {
  background: rgba(246,91,107,0.1);
  border-color: rgba(246,91,107,0.5);
  color: var(--danger);
}
.staff-question-delete-form {
  display: none;
}
.staff-question-new {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(120,160,220,0.12);
  border-radius: 13px;
  background: rgba(10,18,32,0.64);
}
.staff-question-new h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
}
.staff-question-new h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
}
.staff-questions-page .staff-review-head {
  margin-bottom: 24px;
}
.staff-question-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.staff-question-list-large {
  gap: 12px;
}
.staff-question-editor-large {
  border-radius: 12px;
}
.staff-question-editor-large summary {
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  min-height: 70px;
  padding: 16px 18px;
}
.staff-question-summary-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.staff-question-summary-text strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
}
.staff-question-summary-text small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dim);
  font-size: 11.5px;
}
.staff-question-editor-large .staff-question-edit-form {
  padding: 18px 18px 18px;
}
.staff-question-form-grid {
  gap: 14px;
}
.staff-question-new-advanced {
  gap: 12px;
}
.staff-question-edit-form .is-field-hidden,
.staff-question-new .is-field-hidden {
  display: none;
}
.staff-question-new-panel {
  position: sticky;
  top: 22px;
  border-color: rgba(120,160,220,0.14);
  background: rgba(8,14,26,0.7);
  backdrop-filter: blur(14px);
}
.staff-question-new-panel .staff-question-new {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.staff-question-new-panel .btn {
  width: 100%;
  justify-content: center;
}
.staff-questions-page .tbl-reorder-feedback {
  margin-top: 2px;
}
.staff-review-grid {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.staff-review-list,
.staff-review-detail {
  min-width: 0;
  border-color: rgba(120,160,220,0.14);
  background: rgba(8,14,26,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 18px 46px rgba(0,0,0,0.16);
  backdrop-filter: blur(14px);
}
.staff-review-list {
  padding: 16px;
}
.staff-review-detail {
  padding: 20px;
}
.staff-review-detail-item.is-hidden,
.staff-app-row.is-hidden {
  display: none;
}
.staff-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 14px;
}
.staff-list-head strong,
.staff-list-head span {
  display: block;
}
.staff-list-head strong {
  font-family: var(--font-display);
  font-size: 14px;
}
.staff-list-head span {
  margin-top: 2px;
  color: var(--dim);
  font-size: 11.5px;
}
.staff-app-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.staff-app-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(120,160,220,0.12);
  border-radius: 13px;
  background: rgba(10,18,32,0.62);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.staff-app-row:hover,
.staff-app-row.active {
  border-color: rgba(30,144,255,0.58);
  background: rgba(30,144,255,0.12);
  transform: translateY(-1px);
}
.staff-app-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2f9bff, #0064d8);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(30,144,255,0.18);
  overflow: hidden;
}
.staff-app-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  grid-area: 1 / 1;
}
.staff-app-avatar span {
  grid-area: 1 / 1;
}
.staff-app-avatar img + span {
  display: none;
}
.staff-app-avatar.lg {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  font-size: 16px;
}
.staff-app-row strong {
  display: block;
  font-size: 13.5px;
}
.staff-app-row span {
  display: block;
  margin-top: 2px;
  color: #8191aa;
  font-size: 11.5px;
}
.staff-app-row em {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  color: var(--dim);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.staff-app-row em.pending { color: var(--warn); }
.staff-app-row em.review { color: var(--primary-soft); }
.staff-app-row em.approved { color: var(--success); }
.staff-app-row em.rejected { color: var(--danger); }
.staff-empty {
  padding: 34px 16px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}
.staff-result-preview {
  text-align: left;
  color: var(--text);
}
.staff-result-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.staff-result-preview-head strong,
.staff-result-preview-head span {
  display: block;
}
.staff-result-preview-head strong {
  font-family: var(--font-display);
  font-size: 16px;
}
.staff-result-preview-head span {
  margin-top: 3px;
  color: var(--dim);
  font-size: 12px;
}
.staff-result-preview pre {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(120,160,220,0.12);
  border-radius: 12px;
  background: rgba(5,8,15,0.42);
  color: #dbe8ff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
}
.staff-result-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.staff-result-wait {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(245,181,68,0.2);
  border-radius: 10px;
  color: var(--warn);
  background: rgba(245,181,68,0.08);
  font-size: 12px;
}
.staff-detail-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(120,160,220,0.12);
  margin-bottom: 16px;
}
.staff-detail-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
}
.staff-detail-head p {
  margin: 4px 0 0;
  color: #8191aa;
  font-size: 12px;
}
.staff-detail-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
}
.staff-detail-status.pending { color: var(--warn); background: rgba(245,181,68,0.1); }
.staff-detail-status.review { color: var(--primary-soft); background: rgba(30,144,255,0.11); }
.staff-detail-status.approved { color: var(--success); background: rgba(34,197,94,0.1); }
.staff-detail-status.rejected { color: var(--danger); background: rgba(246,91,107,0.1); }
.staff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.staff-correction-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.staff-answer {
  border: 1px solid rgba(120,160,220,0.12);
  border-radius: 12px;
  background: rgba(13,24,43,0.66);
  padding: 14px;
  transition: border-color .15s, background .15s;
}
.staff-answer:hover {
  border-color: rgba(120,160,220,0.22);
  background: rgba(16,29,52,0.72);
}
.staff-answer-q {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.staff-answer-q span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  border-radius: 7px;
  background: rgba(30,144,255,0.11);
  color: var(--primary-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}
.staff-answer-q strong {
  font-size: 13px;
}
.staff-answer-a {
  white-space: pre-wrap;
  color: #b7c7df;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 10px;
  background: rgba(5,8,15,0.32);
  padding: 12px;
}
.staff-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
  gap: 8px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid rgba(120,160,220,0.12);
}
.staff-review-actions label {
  width: 92px;
  color: var(--dim);
  font-size: 11px;
}
.staff-danger-action:hover {
  color: var(--danger);
  border-color: rgba(246,91,107,0.34);
  background: rgba(246,91,107,0.08);
}
.panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.panel-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin: 0; }
.panel-link { font-size: 12px; color: var(--primary-soft); font-weight: 500; }

/* Chart */
.chart {
  height: 200px;
  position: relative;
  padding: 12px 0;
}
.chart-svg { width: 100%; height: 100%; }
.chart-grid line { stroke: var(--line); stroke-dasharray: 2 4; }
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  margin-top: 8px;
}

/* Table */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl thead th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.tbl tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(30,144,255,0.03); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl-row-sortable { cursor: grab; }
.tbl-row-sortable.is-dragging {
  opacity: 0.42;
  background: rgba(30,144,255,0.08);
}
.tbl-row-sortable.is-drop-target td {
  border-top: 1px solid rgba(30,144,255,0.42);
}
.tbl-drag-col {
  width: 62px;
  white-space: nowrap;
}
.tbl-drag-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tbl-drag-handle {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--dim);
  cursor: grab;
  transition: all .15s;
}
.tbl-drag-handle:hover {
  color: var(--primary-soft);
  border-color: var(--primary-dim-2);
  background: var(--primary-dim);
}
.tbl-row-sortable.is-dragging .tbl-drag-handle { cursor: grabbing; }
.tbl-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
}
.tbl-product {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.tbl-thumb {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--primary-soft);
  flex-shrink: 0;
  overflow: hidden;
}
.tbl-prod-info { min-width: 0; }
.tbl-prod-name { font-weight: 600; font-size: 13px; }
.tbl-prod-desc { font-size: 11.5px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.tbl-chip {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
}
.tbl-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-soft);
  font-variant-numeric: tabular-nums;
}
.tbl-actions { display: flex; gap: 4px; justify-content: flex-end; }
.admin-role-picker {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  align-items: center;
  padding: 3px;
  gap: 3px;
  border: 1px solid rgba(120,160,220,0.14);
  border-radius: 9px;
  background: rgba(6,12,24,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}
.admin-role-option {
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.admin-role-option:hover {
  color: var(--text);
  background: rgba(255,255,255,0.045);
}
.admin-role-option.active {
  color: var(--text);
  background: rgba(148,163,184,0.14);
  box-shadow: 0 6px 16px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.05);
}
.admin-role-option.active.reviewer {
  color: #d8ecff;
  background: linear-gradient(180deg, rgba(30,144,255,0.3), rgba(30,144,255,0.15));
  box-shadow: 0 8px 20px rgba(30,144,255,0.12), inset 0 1px 0 rgba(255,255,255,0.08);
}
.admin-role-locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid rgba(34,197,94,0.18);
  background: rgba(34,197,94,0.08);
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.tbl-reorder-feedback {
  display: none;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.tbl-reorder-feedback[data-status="saving"] { color: var(--primary-soft); }
.tbl-reorder-feedback[data-status="success"] { color: var(--success); }
.tbl-reorder-feedback[data-status="error"] { color: var(--danger); }
.icon-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  transition: all .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn.danger:hover { color: var(--danger); border-color: rgba(246,91,107,0.3); background: rgba(246,91,107,0.05); }
.icon-btn.primary:hover { color: var(--primary-soft); border-color: var(--primary-dim-2); background: var(--primary-dim); }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.form-label .req { color: var(--primary-soft); }
.form-input, .form-select, .form-textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color .15s, background .15s;
  font-family: inherit;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: var(--bg-3);
}
.form-input::placeholder { color: var(--dim); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: 11px; color: var(--dim); }
.form-check { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.form-check input { accent-color: var(--primary); width: 15px; height: 15px; }
.rich-editor {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.rich-editor-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color .15s, background .15s, color .15s;
}
.rich-editor-btn:hover {
  border-color: var(--primary-dim-2);
  background: rgba(30,144,255,0.08);
  color: var(--primary-soft);
}
.rich-editor-btn.active {
  border-color: var(--primary-dim-2);
  background: rgba(30,144,255,0.16);
  color: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(30,144,255,0.1);
}
.rich-editor-surface {
  min-height: 220px;
  border: none;
  border-radius: 0;
  resize: none;
  overflow-y: auto;
  line-height: 1.6;
}
.rich-editor-surface:focus {
  border: none;
  background: var(--bg-3);
}
.rich-editor-surface[data-empty="true"]::before {
  content: attr(data-placeholder);
  color: var(--dim);
}
.rich-editor-surface h1,
.rich-editor-surface h2,
.rich-editor-surface p,
.rich-editor-surface ul,
.rich-editor-surface ol,
.rich-editor-surface blockquote {
  margin: 0 0 12px;
}
.rich-editor-surface h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}
.rich-editor-surface h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.rich-editor-surface strong {
  font-weight: 800;
  color: var(--text);
}
.rich-editor-surface em {
  font-style: italic;
}
.rich-editor-surface u {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rich-editor-surface ul,
.rich-editor-surface ol {
  padding-left: 20px;
}
.rich-editor-surface li + li {
  margin-top: 4px;
}
.rich-editor-surface blockquote {
  padding-left: 12px;
  border-left: 2px solid var(--primary);
  color: var(--muted);
}
.rich-editor-surface a {
  color: var(--primary-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rich-editor-surface a:hover {
  color: #72b7ff;
}
.rich-editor-input {
  display: none;
}

/* Filter toggles */
.ftoggle-label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; padding: 8px 2px; user-select: none; }
.ftoggle-label:hover { color: var(--text); }
.ftoggle-wrap { position: relative; flex-shrink: 0; }
.ftoggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.ftoggle-track {
  display: block; width: 36px; height: 20px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(120,160,220,0.2);
  transition: background 0.2s, border-color 0.2s; position: relative;
}
.ftoggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(180,200,230,0.35);
  transition: transform 0.2s, background 0.2s;
}
.ftoggle-input:checked ~ .ftoggle-track { background: var(--primary); border-color: var(--primary); }
.ftoggle-input:checked ~ .ftoggle-track .ftoggle-thumb { transform: translateX(16px); background: #fff; }

.status-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
}
.status-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px currentColor;
}
.status-dot.active { color: var(--success); }
.status-dot.inactive { color: var(--dim); }
.status-dot.inactive::before { background: var(--dim); box-shadow: none; }

/* Coupon */
.coupon-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  margin-bottom: 10px;
}
.coupon-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-soft);
  letter-spacing: 0.03em;
}
.category-manage-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
}
.coupon-meta { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.coupon-uses {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.coupon-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}

.coupon-scope-grid-products {
  grid-template-columns: 1fr;
  max-height: 260px;
}

.coupon-scope-option {
  align-items: flex-start;
  min-width: 0;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255,255,255,0.025);
}

.coupon-scope-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.coupon-scope-option em {
  color: var(--dim);
  font-size: 11px;
  font-style: normal;
}

.coupon-scope-option.is-muted {
  opacity: 0.62;
}

.goal-panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
}
.goal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.goal-title-row { display: flex; align-items: center; gap: 10px; }
.goal-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 0; }
.goal-sub { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.goal-bar {
  height: 8px;
  background: var(--bg-2);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}
.goal-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  position: relative;
}
.goal-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.goal-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-family: var(--font-mono);
}

/* Modal */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade .2s;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .25s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(30,144,255,0.1);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 0; }
.modal-body { padding: 24px; }
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ============ CART PAGE ============ */
.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  padding-bottom: 64px;
  align-items: start;
}
.cart-left { display: flex; flex-direction: column; gap: 12px; }
.cart-panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}
.cart-panel + .cart-panel { margin-top: 14px; }
.cart-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.cart-panel-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; margin: 0;
}
.cart-panel-title .count { color: var(--muted); font-weight: 500; font-family: var(--font-mono); font-size: 13px; margin-left: 4px; }
.btn-clear {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font-size: 12.5px; color: var(--muted);
  border-radius: 7px;
  transition: color .15s, background .15s;
}
.btn-clear:hover { color: var(--danger); background: rgba(246,91,107,0.06); }

.cart-items { display: flex; flex-direction: column; }
.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: none; padding-bottom: 4px; }
.cart-item-thumb {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30,144,255,0.14), rgba(0,217,255,0.08));
  border: 1px solid var(--primary-dim-2);
  display: grid; place-items: center;
  color: var(--primary-soft);
}
.cart-item-info { min-width: 0; }
.cart-item-name {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  margin: 0 0 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-meta { font-size: 12px; color: var(--dim); font-family: var(--font-mono); }
.qty-ctrl {
  display: inline-flex; align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 2px;
}
.qty-ctrl button {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--muted);
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.qty-ctrl button:hover { color: var(--text); background: var(--bg-3); }
.qty-ctrl button:disabled { color: var(--dim); opacity: 0.4; cursor: not-allowed; }
.qty-val {
  min-width: 30px; text-align: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
}
.cart-item-price {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--primary-soft);
  font-variant-numeric: tabular-nums;
  min-width: 90px; text-align: right;
}
.cart-icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  transition: all .15s;
}
.cart-icon-btn:hover { color: var(--danger); border-color: rgba(246,91,107,0.3); background: rgba(246,91,107,0.06); }

.cart-empty {
  padding: 60px 20px; text-align: center;
}
.cart-empty-icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  display: grid; place-items: center;
  color: var(--primary-soft);
}
.cart-empty h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.cart-empty p { color: var(--muted); font-size: 13.5px; margin: 0 0 24px; }

.continue-btn {
  width: 100%; padding: 14px 18px;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px;
  color: var(--text); font-size: 13.5px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .15s, background .15s, color .15s;
}
.continue-btn:hover { border-color: var(--primary-dim-2); color: var(--primary-soft); }

/* Summary (right column) */
.cart-summary { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.summary-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25);
  color: var(--success); font-size: 11.5px; font-weight: 600; border-radius: 100px;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; font-size: 13.5px;
}
.summary-row.muted { color: var(--muted); }
.summary-row .sval { font-variant-numeric: tabular-nums; font-family: var(--font-display); font-weight: 600; }
.summary-row.discount .sval { color: var(--success); }
.summary-divider { height: 1px; background: var(--line); margin: 4px 0; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0 6px;
  border-top: 1px dashed var(--line-2); margin-top: 4px;
}
.summary-total-label { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.summary-total-note { font-size: 11.5px; color: var(--dim); font-family: var(--font-mono); margin-top: 2px; }
.summary-total-value {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: var(--primary-soft); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}

/* Coupon */
.coupon-box { margin: 4px 0 12px; display: flex; gap: 8px; }
.coupon-input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; color: var(--text); font-size: 13px; outline: none;
  transition: border-color .15s; font-family: var(--font-mono);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.coupon-input::placeholder { color: var(--dim); letter-spacing: 0; text-transform: none; font-family: var(--font-ui); }
.coupon-input:focus { border-color: var(--primary-dim-2); }
.btn-apply {
  padding: 10px 16px; background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: 10px; color: var(--text); font-size: 13px; font-weight: 600;
  transition: background .15s, border-color .15s;
}
.btn-apply:hover { border-color: var(--primary-dim-2); color: var(--primary-soft); }
.coupon-applied-box {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25);
  border-radius: 10px; margin-bottom: 12px;
}
.coupon-applied-box .ca-code { font-family: var(--font-mono); font-weight: 700; color: var(--success); font-size: 13px; }
.coupon-applied-box .ca-label { color: var(--success); font-size: 12px; }
.coupon-applied-box button { margin-left: auto; color: var(--success); opacity: 0.7; padding: 2px; }
.coupon-applied-box button:hover { opacity: 1; }
.coupon-error { font-size: 11.5px; color: var(--danger); margin: -4px 0 10px; }

/* Payment */
.pay-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.pay-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 11px; cursor: pointer; transition: border-color .15s, background .15s;
}
.pay-option:hover { border-color: var(--line-2); }
.pay-option.active { border-color: var(--primary); background: var(--primary-dim); }
.pay-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--dim);
  transition: border-color .15s; position: relative; flex-shrink: 0;
}
.pay-option.active .pay-radio { border-color: var(--primary); }
.pay-option.active .pay-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary);
}
.pay-icon {
  width: 36px; height: 36px; border-radius: 9px; background: var(--bg-3);
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--primary-soft); flex-shrink: 0;
}
.pay-option.active .pay-icon { background: rgba(30,144,255,0.15); border-color: var(--primary-dim-2); }
.pay-option-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pay-option-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pay-tag {
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  background: rgba(34,197,94,0.15); color: var(--success); border-radius: 4px; letter-spacing: 0.05em;
}

/* Buyer */
.cart-buyer {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px;
}
.cart-buyer-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #1E90FF, #0057B8);
  display: grid; place-items: center; font-weight: 600; font-size: 10px; color: #fff;
  flex-shrink: 0;
}
.cart-buyer strong { color: var(--text); font-weight: 600; }

/* Checkout btn */
.btn-checkout {
  width: 100%; padding: 15px 18px; background: var(--primary); color: #fff;
  border-radius: 12px; font-size: 14.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s, background .15s, box-shadow .15s;
  box-shadow: 0 6px 20px -6px rgba(30,144,255,0.6), inset 0 1px 0 rgba(255,255,255,0.15);
  text-decoration: none;
}
.btn-checkout:hover { background: #2E9DFF; transform: translateY(-1px); }

.cart-guarantee {
  display: flex; gap: 14px; justify-content: center;
  margin-top: 14px; font-size: 11px; color: var(--dim);
}
.cart-guarantee span { display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 44px 1fr auto auto; }
  .cart-item-price { min-width: unset; font-size: 14px; }
}

/* Utils */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-mono { font-family: var(--font-mono); }
.text-dim { color: var(--dim); }
.text-muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-primary { color: var(--primary-soft); }

/* ============ CART DRAWER ============ */
#cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 220;
  pointer-events: none;
}

#cart-drawer.cart-drawer-open {
  pointer-events: auto;
}

.cart-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.cart-drawer-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 100vw;
  background: linear-gradient(180deg, rgba(11,18,32,0.98), rgba(7,10,17,0.99));
  border-left: 1px solid var(--line);
  z-index: 201; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -24px 0 60px -28px rgba(0,0,0,0.85);
}
.cart-drawer-open .cart-drawer-overlay { opacity: 1; pointer-events: auto; }
.cart-drawer-open .cart-drawer-panel { transform: translateX(0); }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-drawer-header h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0; }
.cart-drawer-close {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 8px; color: var(--muted); transition: color .15s, background .15s;
}
.cart-drawer-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.cart-drawer-items { flex: 1; overflow-y: auto; padding: 8px 0; }
.cart-drawer-item {
  display: grid; grid-template-columns: 52px 1fr auto auto;
  align-items: center; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.cart-drawer-item:last-child { border-bottom: none; }
.cart-drawer-item:hover { background: rgba(255,255,255,0.02); }
.cart-drawer-thumb {
  width: 52px; height: 52px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(30,144,255,0.14), rgba(0,217,255,0.08));
  border: 1px solid var(--primary-dim-2);
  display: grid; place-items: center; color: var(--primary-soft); flex-shrink: 0;
}
.cart-drawer-info { min-width: 0; }
.cart-drawer-name { font-size: 13.5px; font-weight: 600; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-drawer-price { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--primary-soft); }
.cart-drawer-rm {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: rgba(246,91,107,0.08); border: 1px solid rgba(246,91,107,0.2);
  border-radius: 7px; color: var(--danger); flex-shrink: 0;
  transition: background .15s;
}
.cart-drawer-rm:hover { background: rgba(246,91,107,0.18); }

.cart-drawer-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center; color: var(--muted);
}
.cart-drawer-empty svg { color: var(--dim); margin-bottom: 14px; }
.cart-drawer-empty p { font-size: 13px; margin: 0; }

.cart-drawer-footer {
  padding: 16px 20px; border-top: 1px solid var(--line); flex-shrink: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.cart-drawer-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}
.cart-drawer-total span:first-child { color: var(--muted); }
.cart-drawer-total-value { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); }
.cart-drawer-go {
  display: block; width: 100%; padding: 14px;
  background: var(--primary); color: #fff;
  border-radius: 12px; font-size: 14px; font-weight: 600;
  text-align: center; text-decoration: none;
  transition: background .15s, transform .1s;
  box-shadow: 0 6px 20px -6px rgba(30,144,255,0.55), inset 0 1px 0 rgba(255,255,255,0.15);
}
.cart-drawer-go:hover { background: #2E9DFF; transform: translateY(-1px); }

/* ============ TOASTIFY ============ */
.toastify {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(120,160,220,0.18);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,0.7);
  font-weight: 600;
  z-index: 260 !important;
}

/* ============ CHECKOUT PAGE (novo carrinho) ============ */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 24px; align-items: start; padding-bottom: 64px;
}
.checkout-section {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
}
.checkout-section-head {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
}
.checkout-section-body { padding: 18px 22px; }
.checkout-section-body + .checkout-section { margin-top: 16px; }

/* Payment options */
.co-pay-list { display: flex; flex-direction: column; gap: 10px; }
.co-pay-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-2);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.co-pay-option:hover { border-color: var(--line-2); }
.co-pay-option.active { border-color: var(--primary); background: var(--primary-dim); }
.co-pay-option.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.co-pay-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--dim);
  flex-shrink: 0; position: relative; transition: border-color .15s;
}
.co-pay-option.active .co-pay-radio { border-color: var(--primary); }
.co-pay-option.active .co-pay-radio::after { content:''; position:absolute; inset:3px; border-radius:50%; background:var(--primary); }
.co-pay-logo {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--bg-3); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--primary-soft); flex-shrink: 0;
}
.co-pay-option.active .co-pay-logo { background: rgba(30,144,255,0.15); border-color: var(--primary-dim-2); }
.co-pay-name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.co-pay-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.co-pay-tag {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  background: rgba(34,197,94,0.15); color: var(--success); border-radius: 4px;
}
.co-pay-tag-blue {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  background: var(--primary-dim); color: var(--primary-soft); border-radius: 4px;
}

/* Contact inputs */
.co-input {
  width: 100%; padding: 12px 14px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font-size: 13.5px;
  outline: none; transition: border-color .15s;
}
.co-input:focus { border-color: var(--primary-dim-2); }
.co-input::placeholder { color: var(--dim); }
.co-inputs { display: flex; flex-direction: column; gap: 10px; }

/* Terms + Pay */
.co-terms { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.co-terms a { color: var(--text); font-weight: 600; }
.co-terms a:hover { color: var(--primary-soft); }
.co-terms-check { position: relative; flex-shrink: 0; }
.co-terms-input { position: absolute; opacity: 0; width: 0; height: 0; }
.co-terms-box {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid rgba(120,160,220,0.25);
  background: rgba(255,255,255,0.04);
  transition: border-color 0.2s, background 0.2s;
}
.co-terms-tick { opacity: 0; transition: opacity 0.15s; color: #fff; }
.co-terms-input:checked ~ .co-terms-box { background: var(--primary); border-color: var(--primary); }
.co-terms-input:checked ~ .co-terms-box .co-terms-tick { opacity: 1; }
.co-pay-btn {
  width: 100%; padding: 16px; background: var(--primary); color: #fff;
  border-radius: 12px; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, transform .1s;
  box-shadow: 0 8px 24px -6px rgba(30,144,255,0.6), inset 0 1px 0 rgba(255,255,255,0.15);
  border: none; cursor: pointer; font-family: inherit;
}
.co-pay-btn:hover { background: #2E9DFF; transform: translateY(-1px); }
.co-pay-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Order summary (right) */
.co-summary { position: sticky; top: 80px; }
.co-summary-head {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.co-summary-head h2 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin: 0; }
.co-secure-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25); color: var(--success);
  font-size: 11px; font-weight: 600; border-radius: 100px;
}
.co-items { padding: 8px 0; }
.co-item {
  display: grid; grid-template-columns: 44px 1fr auto auto auto;
  align-items: center; gap: 10px;
  padding: 12px 22px; border-bottom: 1px solid var(--line);
}
.co-item:last-child { border-bottom: none; }
.co-item-thumb {
  width: 44px; height: 44px; border-radius: 9px;
  background: linear-gradient(135deg, rgba(30,144,255,0.14), rgba(0,217,255,0.08));
  border: 1px solid var(--primary-dim-2);
  display: grid; place-items: center; color: var(--primary-soft);
}
.co-item-info { min-width: 0; }
.co-item-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-item-unit { font-size: 11.5px; color: var(--dim); font-family: var(--font-mono); margin-top: 2px; }
.co-qty {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
}
.co-qty button {
  width: 28px; height: 28px; display: grid; place-items: center;
  color: var(--muted); border-radius: 7px; transition: color .15s, background .15s;
}
.co-qty button:hover { color: var(--text); background: var(--bg-3); }
.co-qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.co-qty-val { min-width: 28px; text-align: center; font-family: var(--font-mono); font-weight: 600; font-size: 13px; }
.co-item-rm {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: rgba(246,91,107,0.08); border: 1px solid rgba(246,91,107,0.2);
  border-radius: 7px; color: var(--danger); transition: background .15s;
}
.co-item-rm:hover { background: rgba(246,91,107,0.18); }
.co-item-price { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--primary-soft); min-width: 72px; text-align: right; font-variant-numeric: tabular-nums; }

/* Coupon */
.co-coupon { display: flex; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); }
.co-coupon-input {
  flex: 1; padding: 11px 14px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-size: 13px; outline: none;
  transition: border-color .15s;
}
.co-coupon-input:focus { border-color: var(--primary-dim-2); }
.co-coupon-input::placeholder { color: var(--dim); }
.co-coupon-btn {
  padding: 11px 16px; background: var(--primary); color: #fff;
  border-radius: 10px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s; white-space: nowrap;
}
.co-coupon-btn:hover { background: #2E9DFF; }
/* Totals */
.co-totals { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.co-total-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.co-total-row .co-val { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.co-total-final { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.co-total-final span:first-child { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.co-total-final-val { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--primary-soft); font-variant-numeric: tabular-nums; }

/* ============================================================
   ============   CONTA MTA TAB (perfil)            ============
   ============================================================ */
.mta-shell { display: block; }
.mta-crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--dim);
  margin-bottom: 14px;
}
.mta-crumb .sep { color: rgba(255,255,255,0.18); }
.mta-crumb .here { color: var(--text); }

.mta-page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 24px;
}
.mta-page-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.mta-page-title .badge-mta {
  font-size: 10px; font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(30,144,255,0.18), rgba(0,217,255,0.10));
  border: 1px solid var(--primary-dim-2);
  color: var(--primary-soft);
}
.mta-page-sub {
  font-size: 13.5px; color: var(--muted);
  margin: 0; max-width: 640px;
}
.mta-head-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px; font-weight: 600;
  border: 1px solid;
}
.mta-head-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
  animation: mta-pulse 1.6s ease-in-out infinite;
}
.mta-head-status-ok { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25); color: var(--success); }
.mta-head-status-ok .dot { background: var(--success); box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
.mta-head-status-warn { background: rgba(245,181,68,0.08); border-color: rgba(245,181,68,0.25); color: var(--warn); }
.mta-head-status-warn .dot { background: var(--warn); box-shadow: 0 0 0 3px rgba(245,181,68,0.18); }
.mta-head-status-err { background: rgba(246,91,107,0.08); border-color: rgba(246,91,107,0.25); color: var(--danger); }
.mta-head-status-err .dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(246,91,107,0.18); }
@keyframes mta-pulse {
  0%, 100% { box-shadow: 0 0 0 3px currentColor; opacity: 0.18; }
  50% { box-shadow: 0 0 0 6px currentColor; opacity: 0.05; }
}

/* MTA buttons (não conflitam com .btn do projeto) */
.btn-mta {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s, background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-mta-ghost { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); }
.btn-mta-ghost:hover { border-color: rgba(120,160,220,0.32); background: var(--bg-3); }
.btn-mta-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(30,144,255,0.55), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-mta-primary:hover:not(:disabled) {
  background: #2E9DFF;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(30,144,255,0.65), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-mta-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-mta-lg { padding: 13px 22px; font-size: 14px; border-radius: 12px; }

/* ===== ACCOUNT CARD ===== */
.acc-card {
  position: relative;
  background: linear-gradient(180deg, rgba(30,144,255,0.06), transparent 60%), var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
  overflow: hidden;
}
.acc-card::before {
  content: '';
  position: absolute;
  top: -1px; right: -1px; width: 320px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.acc-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px; align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.acc-avatar {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1E90FF 0%, #0057B8 100%);
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  box-shadow: 0 0 0 1px rgba(30,144,255,0.4), 0 12px 28px -10px rgba(30,144,255,0.55);
  position: relative;
}
.acc-avatar::after {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}
.acc-avatar-check {
  position: absolute;
  bottom: -4px; right: -4px;
  width: 22px; height: 22px;
  background: var(--bg);
  border-radius: 50%;
  display: grid; place-items: center;
  z-index: 1;
}
.acc-meta { min-width: 0; }
.acc-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  margin: 0;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.acc-name .verify { color: var(--primary); display: inline-flex; }
.acc-handle {
  font-family: var(--font-mono);
  font-size: 12.5px; color: var(--muted);
  margin-top: 4px;
  word-break: break-all;
}
.acc-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.acc-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 11px;
  color: var(--muted);
}
.acc-tag.discord {
  border-color: rgba(88,101,242,0.25);
  background: rgba(88,101,242,0.08);
  color: #A5ADF6;
}

/* ===== INFO HEAD (mirror do pass-head) ===== */
.acc-info-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.acc-info-head-text { min-width: 0; flex: 1; }
.acc-info-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.acc-info-title-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-dim-2);
  display: grid; place-items: center;
  color: var(--primary-soft);
  flex-shrink: 0;
}
.acc-info-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  max-width: 540px;
  line-height: 1.55;
}
.acc-info-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--success);
  flex-shrink: 0;
  white-space: nowrap;
}
.acc-info-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
  animation: mta-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

/* ===== INFO GRID ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.info-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .15s;
}
.info-row:hover { border-color: var(--line-2); }
.info-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--primary-soft);
}
.info-content { min-width: 0; }
.info-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  font-weight: 600;
  margin-bottom: 3px;
}
.info-value {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
}
.info-value.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }
.info-value.empty { color: var(--dim); font-style: italic; }
.info-copy {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px;
  color: var(--dim);
  transition: color .15s, background .15s;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.info-copy:hover { color: var(--primary-soft); background: var(--bg-3); }
.info-copy.ok { color: var(--success); }

/* ===== PASSWORD CARD ===== */
.pass-card {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  overflow: hidden;
}
.pass-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
}
.pass-head-text { min-width: 0; flex: 1; }
.pass-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  margin: 0 0 4px;
  display: flex; align-items: center; gap: 10px;
}
.pass-title-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-dim-2);
  display: grid; place-items: center;
  color: var(--primary-soft);
}
.pass-sub {
  font-size: 12.5px; color: var(--muted);
  margin: 0; max-width: 540px; line-height: 1.55;
}
.pass-last {
  font-size: 11px; color: var(--dim);
  text-align: right; flex-shrink: 0;
}
.pass-last strong { color: var(--muted); display: block; font-weight: 500; margin-top: 2px; }

.pass-body {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.pass-fields { display: flex; flex-direction: column; gap: 16px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: space-between;
}
.field-label .helper { font-weight: 400; color: var(--dim); font-size: 11px; font-family: var(--font-mono); }
.field-input {
  display: flex; align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field-input:focus-within {
  border-color: var(--primary);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(30,144,255,0.14);
}
.field-input.error { border-color: var(--danger); }
.field-input.error:focus-within { box-shadow: 0 0 0 3px rgba(246,91,107,0.14); }
.field-input.ok { border-color: rgba(34,197,94,0.45); }
.field-input.ok:focus-within { box-shadow: 0 0 0 3px rgba(34,197,94,0.14); }
.field-input .lead {
  padding: 0 6px 0 14px;
  color: var(--dim);
  display: flex; align-items: center;
}
.field-input input {
  flex: 1;
  background: none; border: none; outline: none;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  min-width: 0;
}
.field-input input::placeholder { color: var(--dim); letter-spacing: normal; font-family: var(--font-ui, 'Inter', sans-serif); }
.field-eye {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--dim);
  margin-right: 4px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  background: none;
  border: none;
  cursor: pointer;
}
.field-eye:hover { color: var(--primary-soft); background: rgba(255,255,255,0.04); }

.strength {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; color: var(--muted);
}
.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.strength-bar-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  background: var(--bg-3);
  transition: width .25s ease, background .25s ease;
}
.strength-label { font-weight: 600; min-width: 60px; text-align: right; font-size: 11px; }

/* ===== RULES (do form de senha) ===== */
.rules {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  align-self: start;
}
.rules-head {
  font-size: 11.5px; font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.rules-head svg { color: var(--primary-soft); }
.rule {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 0;
  font-size: 12.5px;
  color: var(--muted);
  transition: color .15s;
}
.rule .check {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--dim);
  flex-shrink: 0;
  transition: all .15s;
}
.rule .check .dotty {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.rule.met { color: var(--text); }
.rule.met .check {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.35);
  color: var(--success);
}
.rule.bad { color: var(--danger); }
.rule.bad .check {
  background: rgba(246,91,107,0.12);
  border-color: rgba(246,91,107,0.35);
  color: var(--danger);
}

.pass-feedback {
  margin: 0 22px 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid transparent;
}
.pass-feedback.is-ok { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25); color: #86efac; }
.pass-feedback.is-err { background: rgba(246,91,107,0.08); border-color: rgba(246,91,107,0.25); color: #fca5a5; }

.pass-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: rgba(11,18,32,0.6);
  flex-wrap: wrap;
  gap: 12px;
}
.pass-foot-info {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}
.pass-foot-info svg { color: var(--primary-soft); flex-shrink: 0; }
.pass-foot-actions { display: flex; gap: 8px; }

.pass-warning {
  margin: 14px 22px 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(246,91,107,0.06);
  border: 1px solid rgba(246,91,107,0.22);
  color: #fca5a5;
  font-size: 12.5px;
}

/* ===== EMPTY STATE (sem vinculação) ===== */
.empty-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(30,144,255,0.05), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 42px 36px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 16px;
}
.empty-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 20%; width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.empty-card::after {
  content: '';
  position: absolute;
  top: 50%; right: -180px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,144,255,0.18), transparent 60%);
  transform: translateY(-50%);
  pointer-events: none;
}
.empty-left { position: relative; z-index: 1; }
.empty-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-dim-2);
  border-radius: 100px;
  font-size: 11px; font-weight: 700;
  color: var(--primary-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.empty-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(245,181,68,0.18);
}
.empty-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.15;
}
.empty-desc {
  font-size: 14px; color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 0 22px;
}
.empty-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.empty-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.empty-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
}
.empty-meta-item svg { color: var(--primary-soft); }

/* terminal mock */
.empty-right { position: relative; z-index: 1; }
.term {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(30,144,255,0.06);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}
.term-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-3); }
.term-dot.r { background: #F65B6B; }
.term-dot.y { background: #F5B544; }
.term-dot.g { background: #22C55E; }
.term-bar-title { margin-left: 10px; flex: 1; }
.term-body {
  padding: 18px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.term-line { display: flex; gap: 8px; }
.term-line .prompt { color: var(--primary-soft); }
.term-line .cmd { color: var(--text); }
.term-line .ok { color: var(--success); }
.term-cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--primary);
  vertical-align: middle;
  margin-left: 4px;
  animation: mta-blink 1.1s infinite;
}
@keyframes mta-blink { 50% { opacity: 0; } }

/* ===== STEPS ===== */
.steps {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 24px;
}
.steps-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap; gap: 12px;
}
.steps-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  margin: 0;
}
.steps-sub { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  transition: border-color .15s, transform .15s;
}
.step:hover { border-color: var(--primary-dim-2); transform: translateY(-2px); }
.step-num {
  position: absolute;
  top: -10px; left: 16px;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--primary-dim-2);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--primary-soft);
}
.step-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-dim-2);
  display: grid; place-items: center;
  color: var(--primary-soft);
  margin: 8px 0 14px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 600;
  margin: 0 0 6px;
}
.step-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }

.banner {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: rgba(30,144,255,0.06);
  border: 1px solid var(--primary-dim-2);
  border-radius: 12px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}
.banner svg { color: var(--primary-soft); flex-shrink: 0; margin-top: 2px; }
.banner strong { color: var(--primary-soft); font-weight: 600; }
.banner a { color: var(--primary-soft); text-decoration: underline; text-underline-offset: 2px; }

/* ===== Conta MTA — responsivo ===== */
@media (max-width: 880px) {
  .info-grid { grid-template-columns: 1fr; }
  .pass-body { grid-template-columns: 1fr; }
  .acc-hero { grid-template-columns: auto 1fr; }
  .empty-card { grid-template-columns: 1fr; padding: 32px 22px; gap: 24px; }
  .empty-card::after { display: none; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .mta-page-title { font-size: 22px; }
  .empty-title { font-size: 22px; }
  .pass-head { padding: 18px 18px 14px; }
  .pass-body { padding: 18px; }
  .pass-foot { padding: 14px 18px; }
  .pass-feedback, .pass-warning { margin-left: 18px; margin-right: 18px; }
  .acc-card { padding: 18px; }
}
@media (max-width: 540px) {
  .steps-grid { grid-template-columns: 1fr; }
  .pass-foot { flex-direction: column; align-items: stretch; }
  .pass-foot-actions { width: 100%; }
  .pass-foot-actions .btn-mta { flex: 1; }
  .pass-last { text-align: left; }
  .info-row { grid-template-columns: 30px 1fr auto; gap: 10px; padding: 12px; }
  .info-icon { width: 30px; height: 30px; }
}

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .co-summary { position: static; }
  .cart-drawer-panel { width: 100vw; }
}

/* ============================================================
   ============   MOBILE REDESIGN (>= 1024px hidden)   ========
   ============================================================ */

/* Defaults: hide all mobile-only elements on desktop */
.nav-burger,
.nav-mobile-drawer,
.admin-mobile-bar,
.admin-side-overlay,
.products-mobile-bar,
.filter-panel-overlay,
.filter-panel-head,
.filter-panel-apply { display: none; }

/* ---------- NAV: collapse menu into drawer ---------- */
@media (max-width: 880px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
  }
  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    flex-shrink: 0;
    background: rgba(18, 22, 34, 0.92);
    border: 1px solid rgba(86, 131, 204, 0.18);
    border-radius: 10px;
    color: var(--text);
  }
  .nav-burger:hover { border-color: rgba(105,152,230,0.34); }
  .nav-burger { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .nav-burger > svg, .nav-burger > svg * { pointer-events: none; }
  .nav-menu { display: none; }
  .nav-logo span:not(.nav-verified) { font-size: 13px; }
  .nav-logo img { width: 28px !important; height: 28px !important; }
  .nav-search {
    order: 99;
    flex-basis: 100%;
    margin-left: 0;
    min-height: 38px;
  }
  .nav-right { gap: 6px; margin-left: auto; }
  .nav-user { padding: 4px 8px 4px 4px; min-height: 38px; font-size: 12px; }
  .nav-user span:nth-of-type(2) {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .btn-cart { padding: 0 12px; min-height: 38px; }
  .btn-cart .btn-cart-label { display: none; }
  .nav-login { padding: 0 12px; min-height: 38px; font-size: 12px; }
  .nav-login span { display: none; }
  .nav-logout { width: 36px; height: 36px; }
}

@media (max-width: 540px) {
  .nav-inner { padding: 9px 12px; gap: 8px; }
  .nav-search { display: none; }
  .nav-logo span:not(.nav-verified) { display: none; }
  .nav-verified { display: none; }
}

/* Mobile drawer (always rendered, only shown when open) */
.nav-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overscroll-behavior: contain;
}
.nav-mobile-drawer.is-open {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-mobile-overlay {
  position: absolute; inset: 0;
  z-index: 0;
  background: rgba(3, 7, 15, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s;
}
.nav-mobile-drawer.is-open .nav-mobile-overlay { opacity: 1; }
.nav-mobile-panel {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  z-index: 1;
  width: min(82vw, 320px);
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 1), rgba(7, 10, 17, 1)),
    #08111f;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow-y: auto;
  pointer-events: auto;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 24px 0 60px -28px rgba(0,0,0,0.85);
}
.nav-mobile-drawer.is-open .nav-mobile-panel { transform: translateX(0); }
@media (max-width: 880px) {
  .nav-mobile-drawer { display: block; }
}
.nav-mobile-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.nav-mobile-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.nav-mobile-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
}
.nav-mobile-close:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.nav-mobile-list {
  display: flex; flex-direction: column;
  padding: 14px 12px;
  gap: 4px;
}
.nav-mobile-list a {
  display: flex; align-items: center;
  padding: 13px 14px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-mobile-list a:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-mobile-list a.active {
  background: var(--primary-dim);
  color: var(--primary-soft);
  border: 1px solid rgba(75, 149, 255, 0.2);
}
.nav-mobile-foot {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.nav-mobile-user {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none; color: var(--text);
}
.nav-mobile-user-name { font-size: 13.5px; font-weight: 600; }
.nav-mobile-user-sub { font-size: 11.5px; color: var(--primary-soft); }
.nav-mobile-logout {
  text-align: center;
  padding: 11px;
  border-radius: 10px;
  background: rgba(246,91,107,0.08);
  border: 1px solid rgba(246,91,107,0.2);
  color: var(--danger);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.nav-mobile-login {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 20px -6px rgba(30,144,255,0.55);
}

/* ---------- HOME: tighten hero / sections on mobile ---------- */
@media (max-width: 720px) {
  .home-hero-inner { padding: 24px 0 60px !important; }
  .home-hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem) !important; }
  .home-hero-sub { font-size: 14px !important; }
  .hero-features {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .hero-feature { padding: 10px 12px; }
  .server-widget { padding: 0.85rem 0.9rem; }
  .server-widget-stats { gap: 0; }
  .server-stat-col { padding: 0 0.25rem; }
  .server-stat-value { font-size: 0.78rem; }
  .server-stat-col[onclick] .server-stat-value {
    font-size: 0.62rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .server-stat-divider { height: 42px; }
  .server-stat-icon { width: 30px; height: 30px; }
  .home-scroll { display: none; }
  .home-screen-section { padding-top: 56px !important; padding-bottom: 56px !important; }
  .home-section-head h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .home-section-head p { font-size: 14px; }
  .home-benefit-card { padding: 22px 18px 20px; }
  .home-benefit-hero { font-size: clamp(26px, 7vw, 36px); line-height: 1; }
  .home-benefit-copy { font-size: 14px; }
  .home-benefit-action { min-width: 0; width: 100%; min-height: 48px; font-size: 14px; }
  .home-feedback-card { width: 280px; max-width: 280px; padding: 18px; }
  .home-feedback-text { font-size: 13.5px; }
  .home-marquee-mask { width: 48px; }

  /* Rankings: empilhar vertical pra garantir visibilidade */
  .home-rankings-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-top: 18px;
  }
  /* Cascade: secoes altas no mobile nao atingem o threshold do IntersectionObserver,
     entao garantimos visibilidade fixa para nao ficarem transparentes */
  .scroll-cascade .cascade-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .home-ranking-card { min-width: 0; }
  .home-rankings-shell.is-focused .home-rankings-grid {
    grid-template-columns: 1fr !important;
  }
  .home-ranking-card-head h3 { font-size: 15px; }
  .home-faq-q { font-size: 14px; padding: 16px 18px; }
  .home-faq-a { font-size: 13.5px; padding: 0 18px 16px; }
}

@media (max-width: 540px) {
  .home-hero-right { display: none; }
  .home-hero-inner { padding-bottom: 40px !important; }
}

/* ---------- PRODUCTS: filter drawer + responsive grid ---------- */
@media (max-width: 980px) {
  .products-mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 12px;
  }
  .products-mobile-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-1);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
  }
  .products-mobile-filters:hover { border-color: var(--primary-dim-2); }

  .products-layout {
    display: block;
    padding: 8px 0 32px;
  }
  .products-topbar { display: none; }

  /* Sidebar becomes a slide-up drawer */
  .filter-panel {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    height: auto;
  }
  .filter-panel-overlay {
    display: block !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 240;
  }
  .filter-panel-inner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-height: 86vh;
    background: linear-gradient(180deg, rgba(11,18,32,0.99), rgba(7,10,17,0.99));
    border-top: 1px solid var(--line);
    border-radius: 22px 22px 0 0;
    padding: 14px 18px 18px;
    transform: translateY(110%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 -24px 60px -28px rgba(0,0,0,0.85);
    z-index: 241;
  }
  .filter-panel-inner::before {
    content: '';
    display: block;
    width: 44px; height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    margin: 0 auto 12px;
  }
  .filter-panel.is-open .filter-panel-overlay { opacity: 1; visibility: visible; }
  .filter-panel.is-open .filter-panel-inner { transform: translateY(0); }
  .filter-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
  }
  .filter-panel-close {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255,255,255,0.04);
  }
  .filter-panel-close:hover { color: var(--text); background: rgba(255,255,255,0.08); }
  .filter-panel-apply {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 20px -6px rgba(30,144,255,0.55);
  }

  /* Product grid: 2 columns */
  .prod-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
}

@media (max-width: 480px) {
  .prod-grid { gap: 10px; }
  .p2-name { font-size: 14px; }
  .p2-price { font-size: 16px; }
  .p2-old { font-size: 11px; }
  .p2-cat { font-size: 10.5px; }
  .p2-body { padding: 12px; }
  .p2-cta { margin-top: 10px; }
  .prod-buy { font-size: 12px; padding: 10px 12px; }
}

/* ---------- ADMIN: drawer sidebar + stacked layout ---------- */
@media (max-width: 980px) {
  .admin-mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(7, 10, 17, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 60;
  }
  .admin-burger {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    color: var(--text);
  }
  .admin-burger:hover { border-color: var(--primary-dim-2); }
  .admin-mobile-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 14px;
  }
  .admin-mobile-brand-mark {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1E90FF 0%, #0057B8 100%);
    display: grid; place-items: center;
    overflow: hidden;
  }
  .admin-mobile-brand-mark img { width: 100%; height: 100%; object-fit: cover; }
  .admin-mobile-store {
    margin-left: auto;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 9px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
  }
  .admin-mobile-store:hover { color: var(--text); border-color: var(--primary-dim-2); }

  .admin-app {
    display: block;
    grid-template-columns: 1fr;
  }
  .admin-side {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(82vw, 300px);
    height: 100vh;
    z-index: 250;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 24px 0 60px -28px rgba(0,0,0,0.85);
  }
  .admin-side-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 240;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  .admin-app.admin-side-open .admin-side { transform: translateX(0); }
  .admin-app.admin-side-open .admin-side-overlay { opacity: 1; pointer-events: auto; }

  .admin-main { padding: 20px 16px 40px; }
  .admin-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 20px;
  }
  .admin-title { font-size: 22px; }
  .admin-sub { font-size: 13px; }
  .admin-head .btn { width: 100%; justify-content: center; }

  /* KPI grid: 2 columns on tablet */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 22px; }
  .kpi-label { font-size: 11.5px; }

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

  /* Tables → horizontal scroll inside panels */
  .panel { padding: 16px; overflow-x: auto; }
  .panel-head { flex-wrap: wrap; gap: 8px; }
  .tbl { min-width: 560px; font-size: 12.5px; }
  .tbl thead th, .tbl tbody td { padding: 10px 12px; }
}

@media (max-width: 540px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 12px; }
  .kpi-value { font-size: 20px; }
  .kpi-icon { width: 24px; height: 24px; }
  .kpi-delta { font-size: 10px; }
  .admin-title { font-size: 20px; }
}

/* Hide mobile bar on desktop admin */
@media (min-width: 981px) {
  .admin-mobile-bar { display: none; }
  .admin-side-overlay { display: none; }
}

/* Better breadcrumb / page-shell padding on small screens */
@media (max-width: 540px) {
  .page-shell { padding-left: 14px !important; padding-right: 14px !important; }
  .breadcrumb { font-size: 12px; }
}

/* Profile mobile repair */
.profile-page,
.profile-page * {
  min-width: 0;
}

.profile-page {
  overflow-x: hidden;
}

.profile-page .profile-card,
.profile-page .panel,
.profile-page .acc-card,
.profile-page .pass-card,
.profile-page .empty-card,
.profile-page .steps {
  max-width: 100%;
}

@media (max-width: 1100px) {
  .profile-page .profile-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    gap: 16px;
  }

  .profile-page .profile-side {
    display: contents;
  }

  .profile-page .profile-side > .profile-card {
    order: 1;
  }

  .profile-page .profile-main {
    order: 2;
  }

  .profile-page .profile-actions-card {
    order: 3;
  }

  .profile-page .profile-side,
  .profile-page .profile-main {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .profile-page.page-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .profile-page .page-head {
    padding-top: 14px;
  }

  .profile-page .profile-layout {
    padding-top: 8px;
  }

  .profile-page .profile-card,
  .profile-page .panel,
  .profile-page .acc-card,
  .profile-page .pass-card,
  .profile-page .steps {
    border-radius: 14px;
  }

  .profile-page .tabs {
    width: 100%;
    max-width: calc(100vw - 28px);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1px;
    overscroll-behavior-x: contain;
  }

  .profile-page .tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .profile-page .order-list,
  .profile-page .mta-shell,
  .profile-page .pass-card form {
    width: 100%;
  }

  .profile-page .order-item {
    width: 100%;
  }

  .profile-page .acc-info-head,
  .profile-page .pass-head,
  .profile-page .steps-head {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-page .acc-info-status {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }

  .profile-page .info-grid,
  .profile-page .pass-body,
  .profile-page .steps-grid,
  .profile-page .empty-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .profile-page .empty-right,
  .profile-page .empty-card::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .profile-page.page-shell {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .profile-page .profile-layout {
    gap: 12px;
    padding-bottom: 24px;
  }

  .profile-page .profile-card,
  .profile-page .panel,
  .profile-page .acc-card,
  .profile-page .pass-card,
  .profile-page .steps {
    border-radius: 12px;
  }

  .profile-page .profile-card,
  .profile-page .acc-card,
  .profile-page .steps {
    padding: 14px;
  }

  .profile-page .profile-banner {
    margin: -14px -14px 12px;
    height: 78px;
    border-radius: 12px 12px 0 0;
  }

  .profile-page .tabs {
    max-width: calc(100vw - 24px);
    margin-bottom: 14px;
  }

  .profile-page .tab {
    padding: 10px 12px;
    font-size: 12px;
  }

  .profile-page .profile-stat {
    gap: 12px;
  }

  .profile-page .profile-stat-lbl {
    flex: 1 1 auto;
  }

  .profile-page .profile-stat-val {
    flex: 0 0 auto;
  }

  .profile-page .info-row {
    grid-template-columns: 28px minmax(0, 1fr) 30px;
    gap: 9px;
    padding: 11px;
  }

  .profile-page .info-icon,
  .profile-page .info-copy {
    width: 28px;
    height: 28px;
  }

  .profile-page .pass-head,
  .profile-page .pass-body,
  .profile-page .pass-foot {
    padding-left: 14px;
    padding-right: 14px;
  }

  .profile-page .pass-feedback,
  .profile-page .pass-warning {
    margin-left: 14px;
    margin-right: 14px;
  }

  .profile-page .field-input input {
    font-size: 13px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .profile-page .rules {
    padding: 14px;
  }
}

/* === Staff intro (perfil "Seja STAFF") === */
.staff-intro {
  position: relative;
  padding: 28px 30px;
  border: 1px solid rgba(120,160,220,0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(30,144,255,0.06), rgba(8,14,26,0.7));
  backdrop-filter: blur(12px);
  margin-bottom: 18px;
}
.staff-intro-content {
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.65;
}
.staff-intro-content h1,
.staff-intro-content h2,
.staff-intro-content h3 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  color: var(--text);
}
.staff-intro-content h2 { font-size: 19px; }
.staff-intro-content h3 { font-size: 15.5px; color: var(--primary-soft); }
.staff-intro-content > *:first-child { margin-top: 0; }
.staff-intro-content p { margin: 8px 0; color: var(--muted); }
.staff-intro-content ul,
.staff-intro-content ol { margin: 8px 0; padding-left: 22px; }
.staff-intro-content li { margin: 4px 0; color: var(--muted); }
.staff-intro-content a { color: var(--primary-soft); text-decoration: underline; }
.staff-intro-content blockquote {
  margin: 10px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--primary-soft);
  background: rgba(30,144,255,0.06);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
}
.staff-intro-cta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(120,160,220,0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.staff-intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(30,144,255,0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.staff-intro-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(30,144,255,0.36);
}
.staff-intro-note {
  margin: 0;
  color: var(--dim);
  font-size: 12.5px;
}
.staff-form.is-hidden-until-start { display: none; }

/* === Staff config (admin) === */
.staff-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}
.staff-config-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
}
.staff-config-section h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 16px;
}
.staff-config-section .form-hint { margin-bottom: 12px; }
.staff-config-cta-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.staff-config-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(120,160,220,0.1);
}
.staff-config-restore-form { display: none; }
.staff-config-preview {
  position: sticky;
  top: 22px;
  padding: 18px;
}
.staff-config-preview h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 15px;
}
.staff-intro-preview {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(120,160,220,0.14);
  border-radius: 14px;
  background: rgba(8,14,26,0.5);
  max-height: 520px;
  overflow-y: auto;
}
.staff-intro-preview-content {
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}
.staff-intro-preview-content h1,
.staff-intro-preview-content h2,
.staff-intro-preview-content h3 {
  margin: 12px 0 6px;
  font-family: var(--font-display);
}
.staff-intro-preview-content h2 { font-size: 16px; }
.staff-intro-preview-content h3 { font-size: 13.5px; color: var(--primary-soft); }
.staff-intro-preview-content ul,
.staff-intro-preview-content ol { padding-left: 20px; }
.staff-intro-preview-content li { color: var(--muted); }
.staff-intro-preview-cta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(120,160,220,0.16);
}
.staff-intro-preview-cta .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 6px;
  cursor: default;
}
.staff-intro-preview-cta p {
  margin: 0;
  color: var(--dim);
  font-size: 11.5px;
}
@media (max-width: 980px) {
  .staff-config-grid { grid-template-columns: 1fr; }
  .staff-config-preview { position: static; }
  .staff-config-cta-grid { grid-template-columns: 1fr; }
  .staff-intro { padding: 22px 20px; }
}
