/* ==========================================================================
   MTP HUB (mtphub.com) - MODERN CYBER SAAS DESIGN SYSTEM
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg-deep: #070913;
  --bg-surface: #0e1324;
  --bg-card: #12182f;
  --bg-card-hover: #171f3c;
  --bg-elevated: #1a2342;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-glow: rgba(124, 58, 237, 0.55);
  --border-emerald: rgba(16, 185, 129, 0.55);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-purple: #7c3aed;
  --accent-indigo: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --grad-primary: linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #2563eb 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-zalo: linear-gradient(135deg, #0068ff 0%, #0091ff 100%);
  --grad-tele: linear-gradient(135deg, #229ed9 0%, #1d8cc2 100%);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-card: 0 18px 45px -15px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 28px rgba(124, 58, 237, 0.38);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 15% 8%, rgba(124, 58, 237, 0.18) 0%, transparent 36%),
    radial-gradient(circle at 85% 12%, rgba(6, 182, 212, 0.14) 0%, transparent 34%),
    radial-gradient(circle at 50% 85%, rgba(79, 70, 229, 0.1) 0%, transparent 45%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Announcement Top Bar */
.top-banner {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.24), rgba(6, 182, 212, 0.22), rgba(124, 58, 237, 0.24));
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 9px 16px;
  color: #e2e8f0;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 19, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.55);
}

.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.6);
}

.btn-emerald {
  background: var(--grad-emerald);
  color: #fff;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.35);
}
.btn-emerald:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.55);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-zalo {
  background: rgba(0, 104, 255, 0.14);
  border-color: rgba(0, 145, 255, 0.45);
  color: #60a5fa;
}
.btn-zalo:hover {
  background: var(--grad-zalo);
  color: #fff;
}

.btn-tele {
  background: rgba(34, 158, 217, 0.14);
  border-color: rgba(34, 158, 217, 0.45);
  color: #38bdf8;
}
.btn-tele:hover {
  background: var(--grad-tele);
  color: #fff;
}

.btn-danger {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
}
.btn-danger:hover {
  background: #e11d48;
  color: #fff;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
  border-radius: 12px;
}

/* Hero Section */
.hero {
  padding: 32px 0 22px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(25px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 820px;
  margin: 0 auto 10px;
  background: linear-gradient(180deg, #ffffff 25%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-secondary);
  font-size: clamp(14px, 1.45vw, 16px);
  max-width: 700px;
  margin: 0 auto 18px;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 13px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 28px;
  padding: 14px 18px;
  background: rgba(18, 24, 47, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-btn {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.cat-btn.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.search-box {
  position: relative;
  min-width: 250px;
  flex: 0 1 300px;
}
.search-box input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(7, 9, 19, 0.65);
  color: #fff;
  font-size: 13.5px;
  outline: none;
}
.search-box input:focus {
  border-color: var(--accent-purple);
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

/* Tool Grid & Cards */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 22px 50px -12px rgba(0, 0, 0, 0.75), 0 0 26px rgba(124, 58, 237, 0.18);
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.45);
  color: #ddd6fe;
}

.tool-version {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Rich Custom Graphic Preview Thumbnails */
.tool-thumb {
  position: relative;
  height: 192px;
  border-radius: 13px;
  overflow: hidden;
  background: #080c1a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 16px;
  cursor: pointer;
}

.tool-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 19, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.tool-thumb:hover .thumb-play-overlay {
  background: rgba(7, 9, 19, 0.48);
}

.play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.tool-thumb:hover .play-circle {
  transform: scale(1.1);
  background: var(--accent-purple);
  border-color: #fff;
}

.thumb-corner-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(7, 9, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

.tool-primary-role {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tool-primary-role mark {
  background: transparent;
  color: #38bdf8;
}

.tool-name-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.tool-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0;
  letter-spacing: 0.3px;
}

.tool-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  color: #c084fc;
  margin-bottom: 10px;
  line-height: 1.45;
}

.tool-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.mini-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.tool-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 13px;
}

.price-main {
  font-size: 23px;
  font-weight: 800;
  color: #fff;
}
.price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}
.price-plan-hint {
  font-size: 12px;
  color: var(--accent-emerald);
  font-weight: 600;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}

/* How It Works Section */
.steps-section {
  margin: 20px 0 68px;
  padding: 36px 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(18, 24, 47, 0.85) 0%, rgba(12, 16, 33, 0.9) 100%);
  border: 1px solid var(--border-subtle);
}

.section-head {
  text-align: center;
  margin-bottom: 30px;
}
.section-head h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 14.5px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step-box {
  background: rgba(7, 9, 19, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.step-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-box p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0 46px;
  color: var(--text-secondary);
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

/* Floating Quick Contact */
.floating-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.float-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12.5px;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease;
}
.float-pill:hover {
  transform: translateY(-2px) scale(1.02);
}
.float-zalo {
  background: var(--grad-zalo);
}
.float-tele {
  background: var(--grad-tele);
}

/* ==========================================================================
   MODALS (VIETQR CHECKOUT, PRODUCT DEMO, KEY LOOKUP)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 14, 0.82);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
}
.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 890px;
  background: #0f1528;
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(16, 185, 129, 0.14);
  padding: 28px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-panel.purple-glow {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(124, 58, 237, 0.18);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #fff;
}

.modal-title {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 20px;
}

/* Checkout 2-Column Layout (Matches Mockup #2) */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.selected-tool-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.selected-tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.plan-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.plan-option {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.18s ease;
}
.plan-option.full-span {
  grid-column: 1 / -1;
}
.plan-option:hover {
  border-color: rgba(16, 185, 129, 0.45);
}
.plan-option.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.16);
}

.plan-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.plan-option.active .plan-dot {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald);
}
.plan-option.active .plan-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.form-group {
  margin-bottom: 14px;
}

.input-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(7, 9, 19, 0.72);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.input-control:focus {
  border-color: var(--accent-emerald);
}

/* White VietQR Card */
.vietqr-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.vietqr-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 16px;
}
.vietqr-red {
  color: #dc2626;
}
.napas-blue {
  color: #0369a1;
}

.qr-frame {
  width: 215px;
  height: 215px;
  margin: 0 auto 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.qr-frame img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
}

.qr-scan-caption {
  text-align: center;
  font-size: 12.5px;
  color: #475569;
  font-weight: 600;
  margin-bottom: 14px;
}

.bank-info-table {
  border-top: 1px dashed #cbd5e1;
  padding-top: 12px;
  font-size: 13px;
}
.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}
.bank-row span:first-child {
  color: #64748b;
}
.bank-row strong {
  color: #0f172a;
  text-align: right;
}

.copy-mini-btn {
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 5px;
}
.copy-mini-btn:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   ADMIN DASHBOARD LAYOUT (Matches Mockup #3)
   ========================================================================== */
.admin-shell {
  display: grid;
  grid-template-columns: 255px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #0b0f1e;
  border-right: 1px solid var(--border-subtle);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s;
}
.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.admin-nav-btn.active {
  background: rgba(124, 58, 237, 0.16);
  border-color: rgba(124, 58, 237, 0.55);
  color: #fff;
}

.admin-main {
  padding: 26px 32px;
  overflow-x: auto;
}

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
}
.kpi-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}
.kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.data-table th {
  text-align: left;
  padding: 12px 10px;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  vertical-align: middle;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.status-pending {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.status-paid {
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.4);
}
.status-key_sent {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}
.status-cancelled {
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

/* Toast Notification */
.toast-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast-msg {
  background: #131c36;
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Responsive */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
  }
  .admin-nav-btn {
    width: auto;
    white-space: nowrap;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
}
