:root {
  /* Futuristic Cyber Dark-Blue Palette */
  --bg-darkest: #050811;
  --bg-darker: #0a101f;
  --bg-card: rgba(13, 22, 41, 0.75);
  --bg-card-solid: #0d1629;
  --bg-input: rgba(7, 14, 28, 0.85);
  --border-cyber: rgba(0, 163, 255, 0.2);
  --border-cyber-hover: rgba(0, 217, 255, 0.5);
  --border-subtle: rgba(255, 255, 255, 0.07);

  /* Cyber Glow Accents */
  --neon-blue: #00d2ff;
  --neon-cyan: #00f0ff;
  --neon-blue-glow: rgba(0, 210, 255, 0.35);
  --neon-green: #00ffaa;
  --neon-green-glow: rgba(0, 255, 170, 0.35);
  --neon-purple: #9d4edd;
  --neon-amber: #ffaa00;
  --neon-red: #ff3366;

  /* Typography Colors */
  --text-main: #f0f6fc;
  --text-muted: #8b9bb4;
  --text-dim: #4b5a75;

  /* Layout */
  --sidebar-w: 260px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-darkest);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Background Cyber Lights */
.cyber-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #0051ff, transparent 70%);
  top: -150px;
  left: 10%;
}

.glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #00d2ff, transparent 70%);
  bottom: 5%;
  right: 5%;
}

.glow-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #7b2cbf, transparent 70%);
  top: 40%;
  left: 45%;
}

/* SVG Icons styling */
.svg-icon, .svg-nav, .svg-stat, .svg-xs {
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.svg-nav { width: 18px; height: 18px; }
.svg-stat { width: 22px; height: 22px; }
.svg-xs { width: 14px; height: 14px; }
.svg-icon { width: 16px; height: 16px; }

/* LOCK SCREEN OVERLAY */
.lock-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 17, 0.95);
  backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.lock-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lock-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lock-brand h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
}

.lock-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.pin-input-wrap input {
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.pin-error {
  color: var(--neon-red);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: rgba(10, 16, 31, 0.85);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-cyber);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0051ff, #00f0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  position: relative;
}

.pulse-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
  animation: corePulse 2s infinite ease-in-out;
}

@keyframes corePulse {
  0%, 100% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 16px #00f0ff; }
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #fff, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--neon-cyan);
  font-weight: 600;
}

/* Nav items */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-divider {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--neon-purple);
  letter-spacing: 1px;
  margin: 14px 4px 6px 4px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-item:hover {
  background: rgba(0, 210, 255, 0.06);
  color: var(--text-main);
  border-color: rgba(0, 210, 255, 0.15);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.15), rgba(0, 81, 255, 0.05));
  color: var(--neon-cyan);
  border-color: var(--border-cyber);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.12) inset;
}

.nav-item.admin-tab {
  color: #c084fc;
}

.nav-item.admin-tab.active {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.18), rgba(0, 81, 255, 0.05));
  color: #e9d5ff;
  border-color: rgba(168, 85, 247, 0.4);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.nav-badge {
  margin-left: auto;
  font-size: 0.72rem;
  background: rgba(0, 210, 255, 0.15);
  color: var(--neon-cyan);
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid rgba(0, 210, 255, 0.3);
}

/* Sidebar Footer */
.sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.system-status-card {
  background: rgba(7, 14, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.status-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--neon-green);
}

.status-link-id, .status-client-info {
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-tag {
  color: var(--neon-cyan);
  background: rgba(0, 210, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.client-name-tag {
  color: #fff;
  font-weight: 600;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Wrapper */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1440px;
}

@media (max-width: 1024px) {
  .sidebar {
    width: 70px;
    padding: 16px 8px;
  }
  .sidebar-brand .brand-info, .nav-label, .nav-badge, .sidebar-footer, .nav-divider {
    display: none;
  }
  .main-wrapper {
    margin-left: 70px;
    padding: 20px;
  }
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.role-pill.client {
  background: rgba(0, 210, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.role-pill.admin {
  background: rgba(168, 85, 247, 0.2);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.telegram-badge-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 14, 28, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.telegram-badge-status.active {
  border-color: rgba(0, 210, 255, 0.4);
  background: rgba(0, 210, 255, 0.08);
  color: var(--neon-cyan);
}

/* Content Views */
.content-view {
  display: none;
  flex-direction: column;
  gap: 24px;
  animation: fadeInView 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-view.active {
  display: flex;
}

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

/* Cyber Cards */
.card.cyber-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.card.cyber-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0.4;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-head h2, .card-head h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.card-head p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-cyber-hover);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.15);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wrap.blue { background: rgba(0, 163, 255, 0.15); color: var(--neon-cyan); border: 1px solid rgba(0, 163, 255, 0.3); }
.stat-icon-wrap.green { background: rgba(0, 255, 170, 0.15); color: var(--neon-green); border: 1px solid rgba(0, 255, 170, 0.3); }
.stat-icon-wrap.purple { background: rgba(157, 78, 221, 0.15); color: var(--neon-purple); border: 1px solid rgba(157, 78, 221, 0.3); }
.stat-icon-wrap.amber { background: rgba(255, 170, 0, 0.15); color: var(--neon-amber); border: 1px solid rgba(255, 170, 0, 0.3); }

.stat-meta {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.stat-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.stat-badge.trend-up {
  background: rgba(0, 255, 170, 0.15);
  color: var(--neon-green);
}

/* Dashboard Split */
.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 950px) {
  .dashboard-split {
    grid-template-columns: 1fr;
  }
}

.recent-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
}

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(7, 14, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.recent-item:hover {
  border-color: var(--border-cyber);
  background: rgba(0, 210, 255, 0.04);
}

.recent-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recent-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.recent-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.recent-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.recent-item-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--neon-green);
}

.empty-list-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Generator View Grid */
.generator-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

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

/* API Docs Showcase */
.docs-split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

@media (max-width: 950px) {
  .docs-split-grid {
    grid-template-columns: 1fr;
  }
}

.api-key-showcase {
  background: rgba(0, 210, 255, 0.04);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.api-key-box {
  display: flex;
  gap: 8px;
}

.api-key-box input {
  background: #060b17;
  color: var(--neon-cyan);
  font-size: 0.9rem;
}

.client-meta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(7, 14, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

/* Forms */
.cyber-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-glow-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.25s;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px var(--neon-blue-glow);
}

.input-prefix-group .prefix {
  position: absolute;
  left: 14px;
  color: var(--neon-cyan);
  font-weight: 700;
}

.input-prefix-group input {
  padding-left: 32px;
}

.field-help {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Mode Selector */
.mode-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .mode-selector-grid {
    grid-template-columns: 1fr;
  }
}

.mode-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.mode-card input {
  width: auto;
  margin-top: 3px;
}

.mode-card.active {
  border-color: var(--neon-cyan);
  background: rgba(0, 210, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.1) inset;
}

.mode-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.mode-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-xs { padding: 6px 10px; font-size: 0.75rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-cyber-primary {
  background: linear-gradient(135deg, #0066ff, #00d2ff);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 150, 255, 0.4);
}

.btn-cyber-primary:hover {
  background: linear-gradient(135deg, #0052cc, #00f0ff);
  box-shadow: 0 6px 25px rgba(0, 210, 255, 0.6);
  transform: translateY(-1px);
}

.btn-cyber-accent {
  background: rgba(0, 255, 170, 0.15);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
}

.btn-cyber-accent:hover {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 15px var(--neon-green-glow);
}

.btn-cyber-glow {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.6);
  font-weight: 700;
}

.btn-cyber-glow:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.9);
  transform: translateY(-1px);
}

.btn-cyber-outline {
  background: transparent;
  border: 1px solid var(--border-cyber);
  color: var(--neon-cyan);
}

.btn-cyber-outline:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: var(--neon-cyan);
}

.btn-cyber-danger {
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.4);
  color: var(--neon-red);
}

.btn-cyber-danger:hover {
  background: var(--neon-red);
  color: #fff;
}

/* Result Panel & Radar */
.tester-empty {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.radar-scan {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(0, 210, 255, 0.3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.15) inset;
}

.radar-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  background: linear-gradient(45deg, rgba(0, 240, 255, 0.8), transparent);
  transform-origin: top left;
  animation: radarRotate 2.5s linear infinite;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tester-empty h4 {
  color: #fff;
  font-size: 1.1rem;
}

.tester-empty p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 300px;
}

/* Tester Success Box */
.tester-success {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.success-header-card {
  display: flex;
  justify-content: space-between;
  background: rgba(7, 14, 28, 0.8);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.amount-badge .label, .duration-badge .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.amount-badge .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neon-green);
}

.duration-badge .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.pse-url-box {
  background: rgba(0, 163, 255, 0.05);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.url-copy-row {
  display: flex;
  gap: 8px;
}

.url-copy-row input {
  background: #060b17;
  font-size: 0.85rem;
  color: var(--neon-cyan);
}

.data-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(7, 14, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.data-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cell-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cell-value {
  font-size: 0.85rem;
  color: #fff;
  word-break: break-all;
}

.live-status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
}

.live-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Status Pills */
.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
}

.status-ready { background: rgba(0, 210, 255, 0.15); color: var(--neon-cyan); }
.status-pending { background: rgba(255, 170, 0, 0.15); color: var(--neon-amber); border: 1px solid rgba(255, 170, 0, 0.3); }
.status-approved { background: rgba(0, 255, 170, 0.15); color: var(--neon-green); border: 1px solid rgba(0, 255, 170, 0.3); }
.status-declined { background: rgba(255, 51, 102, 0.15); color: var(--neon-red); border: 1px solid rgba(255, 51, 102, 0.3); }
.status-voided { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }
.status-error { background: rgba(255, 51, 102, 0.15); color: var(--neon-red); border: 1px solid rgba(255, 51, 102, 0.3); }

/* Table */
.table-responsive {
  overflow-x: auto;
}

.cyber-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.cyber-table th {
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-cyber);
}

.cyber-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.cyber-table tbody tr:hover {
  background: rgba(0, 210, 255, 0.03);
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* History search wrap */
.history-head {
  flex-wrap: wrap;
  gap: 16px;
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-wrap input {
  padding: 8px 14px;
  width: 260px;
  font-size: 0.85rem;
}

/* Settings View */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.toggle-control {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.toggle-control input {
  display: none;
}

.toggle-slider {
  width: 44px;
  height: 24px;
  background: #1a233a;
  border-radius: 20px;
  position: relative;
  transition: all 0.25s;
  border: 1px solid var(--border-cyber);
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: all 0.25s;
}

.toggle-control input:checked + .toggle-slider {
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-blue-glow);
}

.toggle-control input:checked + .toggle-slider::after {
  transform: translateX(20px);
  background: #050811;
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.test-tg-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.wompi-status-box {
  padding: 12px;
  background: rgba(7, 14, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
}

/* API Docs View */
.api-endpoint-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #060b17;
  border: 1px solid var(--border-cyber);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.method-tag {
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.method-tag.post {
  background: var(--neon-green);
  color: #000;
}

.endpoint-path {
  font-size: 0.95rem;
  color: #fff;
}

.docs-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.doc-tab-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.doc-tab-btn.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--neon-cyan);
  color: #fff;
}

.code-box-wrap pre {
  background: #060b17;
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-md);
  padding: 18px;
  overflow-x: auto;
}

.code-box-wrap code {
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

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

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.toast {
  background: rgba(13, 22, 41, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-cyber);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #fff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-color: var(--neon-green); box-shadow: 0 0 20px var(--neon-green-glow); }
.toast.error { border-color: var(--neon-red); box-shadow: 0 0 20px rgba(255, 51, 102, 0.3); }

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

/* Global Modal */
.cyber-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}
