.cab-body {
  font-family: "Manrope", var(--font);
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(from 120deg at 30% 20%, rgba(77,184,255,0.18), transparent 40%, rgba(110,240,208,0.12), transparent 70%),
    radial-gradient(50% 40% at 70% 80%, rgba(255,215,106,0.08), transparent);
  filter: blur(40px);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  from { transform: translate3d(-2%, 0, 0) rotate(0deg); }
  to { transform: translate3d(3%, 2%, 0) rotate(8deg); }
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

.cab-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: calc(10px + var(--safe-top)) 14px 10px;
  border-radius: 0 0 18px 18px;
}
.cab-top .back { justify-self: start; color: var(--accent); font-weight: 700; }
.cab-top strong { justify-self: center; letter-spacing: 0.01em; }
.cab-top .brand-mark {
  justify-self: end;
  width: 34px; height: 34px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--glass-border), 0 0 18px rgba(77,184,255,0.35);
}
.cab-top .brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.cab {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 14px calc(36px + var(--safe-bot));
  display: grid;
  gap: 14px;
}

.reveal {
  animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reveal:nth-child(2) { animation-delay: 0.05s; }
.reveal:nth-child(3) { animation-delay: 0.1s; }
.reveal:nth-child(4) { animation-delay: 0.15s; }
.reveal:nth-child(5) { animation-delay: 0.2s; }
.reveal:nth-child(6) { animation-delay: 0.25s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "avatar meta"
    "bal bal";
  gap: 12px 16px;
  padding: 18px;
  border-radius: 28px;
}
.hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 140%;
  background: radial-gradient(circle at 30% 20%, rgba(77,184,255,0.35), transparent 55%);
  pointer-events: none;
  animation: glow-pulse 4.5s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.avatar-wrap {
  grid-area: avatar;
  position: relative;
  width: 84px; height: 84px;
}
.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 26px;
  background: conic-gradient(from 0deg, #4db8ff, #6ef0d0, #ffd76a, #4db8ff);
  animation: spin 6s linear infinite;
  opacity: 0.9;
  filter: blur(0.2px);
}
@keyframes spin { to { transform: rotate(360deg); } }
.profile-char {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid rgba(5,8,20,0.7);
  z-index: 1;
}
.online-dot {
  position: absolute;
  right: 4px; bottom: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #4dffb5;
  border: 2px solid #050814;
  z-index: 2;
  box-shadow: 0 0 12px rgba(77,255,181,0.8);
}
.hero-meta { grid-area: meta; align-self: center; position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 700;
}
.hero-meta h1 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.bal-hero {
  grid-area: bal;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(255,215,106,0.12), rgba(77,184,255,0.08)),
    rgba(0,0,0,0.2);
  border: 1px solid rgba(255,215,106,0.28);
  z-index: 1;
}
.bal-hero > span { grid-column: 1; }
.bal-hero strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--warn);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(255,215,106,0.35);
}
.bal-hero em {
  grid-column: 1;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}
.bal-orbit {
  position: absolute;
  right: -20px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px dashed rgba(255,215,106,0.35);
  animation: spin 20s linear infinite;
  pointer-events: none;
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tile {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font: inherit;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.tile:active { transform: scale(0.98); }
.tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  filter: saturate(1.2) brightness(0.85);
  transform: scale(1.05);
  transition: transform 0.45s ease, opacity 0.3s ease;
}
.tile:hover .tile-bg { transform: scale(1.12); opacity: 0.5; }
.tile-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 10%, rgba(5,8,20,0.82) 75%);
}
.tile-chat .tile-bg { background-image: url("../assets/brand/character.jpg"); }
.tile-video .tile-bg {
  background-image:
    linear-gradient(135deg, rgba(77,184,255,0.35), rgba(110,240,208,0.2)),
    url("../assets/brand/hero-bg.jpg");
}
.tile-topup .tile-bg {
  background-image:
    linear-gradient(135deg, rgba(255,215,106,0.4), rgba(77,184,255,0.15)),
    url("../assets/brand/logo.jpg");
  background-size: cover, 140%;
}
.tile-label, .tile-sub { position: relative; z-index: 1; }
.tile-label { font-weight: 800; font-size: 0.92rem; }
.tile-sub { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

.panel {
  border-radius: 24px;
  padding: 16px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.panel h2 { margin: 0; font-size: 1.12rem; font-weight: 800; }
.small { font-size: 0.84rem; margin: 4px 0 0; }

.period-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
}
.period-pills button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.period-pills button.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(77,184,255,0.35), rgba(110,240,208,0.22));
  box-shadow: 0 0 16px rgba(77,184,255,0.25);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.kpi {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
}
.kpi::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(77,184,255,0.2), transparent 70%);
  pointer-events: none;
}
.kpi-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 6px;
}
.kpi strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.kpi-foot {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--muted);
}

.chart-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--glass-border);
  margin-bottom: 12px;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.72rem; }
.spark {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  align-items: end;
  height: 72px;
}
.spark i {
  display: block;
  border-radius: 6px 6px 3px 3px;
  min-height: 4px;
  background: linear-gradient(180deg, #6ef0d0, #3aa0ff);
  box-shadow: 0 0 12px rgba(77,184,255,0.35);
  transition: height 0.4s ease;
}

.mix-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  margin-bottom: 10px;
}
.mix-bar span { display: block; height: 100%; }
.mix-bar .k-agent { background: #4db8ff; }
.mix-bar .k-image { background: #6ef0d0; }
.mix-bar .k-video { background: #ffd76a; }
.mix-bar .k-other { background: #9aabc8; }
.mix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.78rem;
  color: var(--muted);
}
.mix-legend b { color: var(--text); font-weight: 700; }
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.models { display: grid; gap: 10px; }
.model-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(120deg, rgba(77,184,255,0.08), transparent 55%),
    rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}
.model-card::after {
  content: "";
  position: absolute;
  right: -30px; top: -40px;
  width: 120px; height: 120px;
  background: url("../assets/brand/hero-bg.jpg") center/cover;
  opacity: 0.12;
  border-radius: 50%;
  filter: blur(1px);
}
.model-card h3 { margin: 0; font-size: 0.98rem; font-weight: 800; position: relative; }
.model-card p { margin: 0; font-size: 0.78rem; color: var(--muted); grid-column: 1; position: relative; }
.model-card .cost {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--warn);
  position: relative;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent2);
}
.status-pill.off { color: var(--danger); }
.status-pill i {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}
.timeline li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.tl-ico {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  background: rgba(77,184,255,0.15);
}
.tl-ico.image { background: rgba(110,240,208,0.15); }
.tl-ico.video { background: rgba(255,215,106,0.15); }
.tl-title { font-weight: 700; font-size: 0.9rem; }
.tl-sub { font-size: 0.72rem; color: var(--muted); }
.tl-stars {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--warn);
  font-size: 0.85rem;
}

.packs { display: grid; gap: 8px; margin-bottom: 12px; }
.pack {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.pack::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5,8,20,0.55), rgba(5,8,20,0.85)),
    url("../assets/brand/hero-bg.jpg") center/cover;
  opacity: 0.45;
  z-index: 0;
}
.pack > * { position: relative; z-index: 1; }
.pack:hover { transform: translateY(-1px); }
.pack.active {
  border-color: rgba(77,184,255,0.85);
  box-shadow: 0 0 0 1px rgba(77,184,255,0.35), 0 0 28px rgba(77,184,255,0.25);
}
.pack .pack-left { display: grid; gap: 2px; text-align: left; }
.pack .pack-left strong { font-size: 1.05rem; font-weight: 800; }
.pack .pack-left span { font-size: 0.75rem; color: var(--muted); }
.pack .pack-price {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--accent2);
}

.pay-methods { display: flex; gap: 8px; margin-bottom: 12px; }
.pay-method {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 2px;
  text-align: left;
}
.pay-method span { font-weight: 800; color: inherit; }
.pay-method em { font-style: normal; font-size: 0.72rem; opacity: 0.8; }
.pay-method.active {
  color: var(--text);
  background: rgba(110,240,208,0.12);
  border-color: rgba(110,240,208,0.4);
  box-shadow: inset 0 0 24px rgba(110,240,208,0.08);
}
.buy-cta {
  width: 100%;
  box-shadow: 0 10px 30px rgba(58,160,255,0.35);
}

.links { display: grid; gap: 6px; padding: 10px; }
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.nav-row:hover { background: rgba(255,255,255,0.05); }
.nav-row i { color: var(--muted); font-style: normal; }
.nav-row.danger { color: var(--danger); }

.cab-auth {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-box {
  width: min(360px, 100%);
  padding: 28px 22px;
  border-radius: 24px;
  text-align: center;
}
.auth-logo {
  width: 72px; height: 72px;
  border-radius: 20px;
  margin: 0 auto 14px;
  object-fit: cover;
}

.pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(2,6,18,0.72);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: end center;
  padding: 12px;
}
.pay-sheet {
  width: min(520px, 100%);
  max-height: min(88vh, 760px);
  border-radius: 22px 22px 16px 16px;
  padding: 14px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 10px;
}
.pay-head { display: flex; justify-content: space-between; align-items: center; }
.icon-x {
  border: 0; background: rgba(255,255,255,0.08);
  color: var(--text); width: 36px; height: 36px;
  border-radius: 12px; cursor: pointer;
}
#pay-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 14px;
  background: #0a1228;
}
.pay-actions { display: grid; gap: 8px; }
.btn.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn.block { width: 100%; }
.error { color: var(--danger); font-size: 0.88rem; margin: 8px 0 0; }

.pulse-ring {
  position: relative;
}
.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  border: 2px solid rgba(77,184,255,0.45);
  animation: ping 1.6s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 0; }
}

@media (max-width: 420px) {
  .quick-row { grid-template-columns: 1fr; }
  .tile { min-height: 88px; }
  .panel-head { flex-direction: column; }
}
