:root {
  color-scheme: dark;
  --bg-color: #07090e;
  --bg-secondary: #0c1017;
  --card-bg: rgba(15, 20, 29, 0.75);
  --card-hover: rgba(22, 29, 43, 0.85);
  --primary: #ff6a00;
  --primary-hover: #ff8533;
  --primary-subtle: rgba(255, 106, 0, 0.12);
  --primary-border: rgba(255, 106, 0, 0.35);
  --primary-glow: rgba(255, 106, 0, 0.45);
  --accent-cyan: #00f0ff;
  --accent-cyan-subtle: rgba(0, 240, 255, 0.12);
  --accent-green: #27c93f;
  --accent-red: #ff4757;
  --accent-yellow: #ffa502;
  --text-main: #f0f4f8;
  --text-muted: #8b9bb4;
  --text-dim: #4d5d75;
  --border-color: rgba(255, 255, 255, 0.08);
  --code-bg: #090c12;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Background Ambient Lighting */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
}

.glow-1 {
  top: -10%;
  left: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-2 {
  bottom: 5%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  opacity: 0.15;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  min-height: 64px;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  min-height: 64px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.logo-accent {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(255, 106, 0, 0.5);
}

.logo-slash {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

/* User & Auth Badges in Nav */
.nav-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 38px;
}

.balance-badge {
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.balance-badge:hover {
  background: rgba(255, 106, 0, 0.25);
  box-shadow: 0 0 14px rgba(255, 106, 0, 0.35);
}

.balance-badge .val {
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-mono);
}

.admin-badge {
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.4);
  color: #ff4757;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  font-family: var(--font-sans);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #07090e;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 22px rgba(255, 106, 0, 0.55);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.btn-outline-primary {
  background: var(--primary-subtle);
  border-color: var(--primary-border);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #07090e;
}

.btn-danger {
  background: rgba(255, 71, 87, 0.15);
  border-color: rgba(255, 71, 87, 0.4);
  color: #ff4757;
}

.btn-danger:hover {
  background: #ff4757;
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

/* Announcements Banner */
.announcement-bar {
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.15), rgba(0, 240, 255, 0.1));
  border-bottom: 1px solid var(--primary-border);
  padding: 10px 20px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-main);
}

.announcement-bar i {
  color: var(--primary);
}

/* Hero Store Banner */
.store-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.store-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 20%, #ffaa00 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.store-hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
}

.telemetry-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.telemetry-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  backdrop-filter: blur(10px);
}

.telemetry-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.telemetry-label {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 32px 0 38px 0;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.filter-tab i {
  font-size: 0.95rem;
  opacity: 0.85;
}

.filter-tab .cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  transition: var(--transition);
}

.filter-tab:hover {
  background: rgba(255, 106, 0, 0.12);
  border-color: rgba(255, 106, 0, 0.45);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.2);
}

.filter-tab:hover .cat-count {
  background: rgba(255, 106, 0, 0.25);
  color: var(--primary);
}

.filter-tab.active {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.25) 0%, rgba(255, 106, 0, 0.08) 100%);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.35), inset 0 0 12px rgba(255, 106, 0, 0.15);
  transform: translateY(-2px);
}

.filter-tab.active i {
  color: var(--primary);
  opacity: 1;
}

.filter-tab.active .cat-count {
  background: var(--primary);
  color: #07090e;
  font-weight: 800;
}

/* Special Cyber-Crimson styling for CHEAT GTA5VN filter tab */
.filter-tab[data-cat="CHEAT GTA5VN"]:hover {
  background: rgba(255, 51, 102, 0.12);
  border-color: rgba(255, 51, 102, 0.45);
  box-shadow: 0 6px 18px rgba(255, 51, 102, 0.2);
}

.filter-tab[data-cat="CHEAT GTA5VN"]:hover .cat-count {
  background: rgba(255, 51, 102, 0.25);
  color: #ff3366;
}

.filter-tab[data-cat="CHEAT GTA5VN"].active {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.28) 0%, rgba(255, 51, 102, 0.09) 100%);
  border-color: #ff3366;
  box-shadow: 0 0 22px rgba(255, 51, 102, 0.4), inset 0 0 12px rgba(255, 51, 102, 0.15);
}

.filter-tab[data-cat="CHEAT GTA5VN"].active i {
  color: #ff3366;
}

.filter-tab[data-cat="CHEAT GTA5VN"].active .cat-count {
  background: #ff3366;
  color: #fff;
}

/* Category Pill Badges for Product Cards */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.cat-pill-tool {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.cat-pill-cheat {
  color: #ff3366;
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.35);
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.15);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  margin-bottom: 70px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(14px);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 106, 0, 0.15);
}

.prod-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.prod-icon-box {
  width: 50px;
  height: 50px;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.prod-badge {
  background: var(--primary);
  color: #07090e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.prod-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.prod-category {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}

.prod-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
  white-space: pre-line;
  line-height: 1.55;
}

/* Card Feature Bullets & Cyber Badges */
.card-feat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.card-feat-item i {
  color: var(--primary);
  font-size: 0.82rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.card-feat-item strong {
  color: var(--text-main);
  font-weight: 600;
}

.card-feat-hotkey {
  margin-top: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cyber-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* Product Detail Feature Showcase */
.detail-feature-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feat-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.feat-category-box {
  background: rgba(14, 19, 28, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feat-category-box:hover {
  border-color: var(--primary-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 106, 0, 0.1);
  transform: translateY(-2px);
}

.feat-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.feat-category-header i {
  font-size: 1.25rem;
  color: var(--primary);
}

.feat-category-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.feat-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.feat-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.feat-check-item i {
  color: var(--accent-green);
  font-size: 0.85rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.feat-check-item strong {
  color: var(--text-main);
}

.feat-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255, 106, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.25);
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: #ff9d4d;
}

.feat-pill.cyan {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
  color: #5ceeff;
}

.feat-pill.green {
  background: rgba(39, 201, 63, 0.08);
  border-color: rgba(39, 201, 63, 0.25);
  color: #52e468;
}

/* Quick Launch Steps Guide */
.launch-guide-box {
  background: linear-gradient(135deg, rgba(16, 23, 34, 0.85), rgba(9, 12, 18, 0.95));
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 24px;
  position: relative;
}

.launch-guide-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-cyan);
}

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

.step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  position: relative;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #07090e;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 50%;
  margin-bottom: 10px;
}

.step-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cyber-tip-box {
  background: rgba(255, 106, 0, 0.05);
  border: 1px solid rgba(255, 106, 0, 0.25);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cyber-tip-box strong {
  color: var(--primary);
}

.detail-specs-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 24px;
}

.spec-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.spec-badge-item i {
  color: var(--primary);
}

/* Duration Selector within Card (Always Single Horizontal Row) */
.duration-selector {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 4px;
  width: 100%;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.duration-opt {
  flex: 1 1 0px !important;
  min-width: 0 !important;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 2px !important;
  border-radius: 6px;
  text-align: center;
  font-size: 0.72rem !important;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: var(--transition);
  user-select: none;
}

.duration-opt:hover, .duration-opt.active {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.prod-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  margin-top: auto;
}

.price-display {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.price-amount {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #0d111a;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 106, 0, 0.2);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

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

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea, select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.form-select, select {
  color-scheme: dark;
  background-color: #0b0f17;
  cursor: pointer;
}

.form-select option, select option {
  background-color: #0c1017;
  color: #f0f4f8;
  padding: 10px 14px;
}

.form-select option:checked, select option:checked {
  background-color: #ff6a00 !important;
  color: #ffffff !important;
}

.form-input:focus, .form-select:focus, .form-textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.25);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

/* Tables & Data Lists (for Dashboard & Admin) */
.data-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
  backdrop-filter: blur(12px);
}

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

.data-card-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.cyber-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cyber-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
}

.cyber-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.cyber-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Pills */
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

.status-active { background: rgba(39, 201, 63, 0.15); color: #27c93f; border: 1px solid rgba(39, 201, 63, 0.3); }
.status-available { background: rgba(0, 240, 255, 0.15); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.3); }
.status-pending { background: rgba(255, 165, 2, 0.15); color: #ffa502; border: 1px solid rgba(255, 165, 2, 0.3); }
.status-banned { background: rgba(255, 71, 87, 0.15); color: #ff4757; border: 1px solid rgba(255, 71, 87, 0.3); }

/* Key Code Display Box */
.key-box {
  background: var(--code-bg);
  border: 1px dashed var(--primary-border);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.key-copy-btn {
  cursor: pointer;
  color: var(--text-dim);
  transition: var(--transition);
}

.key-copy-btn:hover {
  color: #fff;
}

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

.toast {
  background: #111622;
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: slideIn 0.3s ease;
}

.toast-success { border-color: var(--accent-green); }
.toast-success i { color: var(--accent-green); }
.toast-error { border-color: var(--accent-red); }
.toast-error i { color: var(--accent-red); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Product Slider & Drag Carousel */
.prod-slider-container {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(30, 42, 60, 0.45) 0%, rgba(6, 8, 14, 0.98) 100%);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  user-select: none;
}

.prod-slider-container:hover .slider-nav-btn {
  opacity: 1;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.slider-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(5, 7, 12, 0.5);
}

.slider-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.75));
  border-radius: 6px;
}

.product-card:hover .slider-slide img {
  transform: scale(1.02);
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(7, 9, 14, 0.78);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.slider-nav-btn:hover {
  background: var(--primary);
  color: #07090e;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.slider-nav-btn.prev {
  left: 8px;
}

.slider-nav-btn.next {
  right: 8px;
}

.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot.active {
  width: 18px;
  border-radius: 4px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.slider-badge-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 4;
}

.slider-hint-drag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(4px);
  color: var(--text-dim);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0.8;
}

/* =====================================================================
 * SHOPPING CART DRAWER & BADGE
 * ===================================================================== */

.nav-cart-btn {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-cart-btn:hover {
  border-color: var(--primary-border);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.cart-badge {
  background: var(--primary);
  color: #07090e;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 12px;
  box-shadow: 0 0 8px var(--primary-glow);
  display: none;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 440px;
  max-width: 92vw;
  height: 100vh;
  background: #090c13;
  border-left: 1px solid var(--primary-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 106, 0, 0.15);
  z-index: 2501;
  display: flex;
  flex-direction: column;
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 18, 26, 0.85);
}

.cart-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.cart-close-btn:hover {
  color: var(--primary);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.cart-item:hover {
  border-color: rgba(255, 106, 0, 0.3);
  background: rgba(255, 106, 0, 0.04);
}

.cart-item-thumb {
  width: 58px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.cart-item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: 6px;
  font-size: 1.2rem;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: var(--accent-cyan-subtle);
  padding: 2px 7px;
  border-radius: 4px;
}

.cart-item-price {
  font-size: 0.88rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
}

.cart-item-del {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.cart-item-del:hover {
  color: var(--accent-red);
  background: rgba(255, 71, 87, 0.15);
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: #0c1017;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.cart-total-price {
  font-size: 1.35rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

/* =====================================================================
 * PRODUCT DETAIL PAGE CSS
 * ===================================================================== */

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.breadcrumb-nav a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  margin-bottom: 48px;
  width: 100%;
  max-width: 100%;
}

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

.detail-gallery {
  position: relative;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.detail-info-col {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.detail-main-slider {
  width: 100%;
  max-width: 100%;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(30, 42, 62, 0.5) 0%, rgba(6, 8, 14, 0.98) 100%);
  border: 1px solid var(--border-color);
  position: relative;
}

.detail-main-slider .slider-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: transparent;
}

.detail-main-slider .slider-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.85));
  border-radius: 8px;
}

/* 3-Thumbnail Sliding Carousel */
.detail-thumb-carousel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}

.thumb-carousel-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(20, 28, 42, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.thumb-carousel-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #07090e;
  box-shadow: 0 0 10px var(--primary-glow);
}

.detail-thumb-viewport {
  width: 274px; /* Exactly fits 3 items: 3 * 82px + 2 * 10px + 8px padding = 274px */
  max-width: calc(100% - 84px);
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  scroll-behavior: smooth;
  padding: 4px 2px;
  box-sizing: border-box;
}

.detail-thumb-track {
  display: flex;
  gap: 10px;
  width: max-content;
  align-items: center;
}

.detail-thumb-item {
  flex: 0 0 82px;
  width: 82px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.22s ease;
  background: rgba(10, 15, 24, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  position: relative;
  box-sizing: border-box;
}

.detail-thumb-item:hover {
  opacity: 0.9;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.detail-thumb-item.active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: scale(1.05);
}

.detail-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.thumb-idx-badge {
  position: absolute;
  bottom: 2px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 1px 4px;
  border-radius: 3px;
  pointer-events: none;
}

/* Plan selector cards in Detail */
.plan-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.plan-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  border-color: var(--primary-border);
  background: rgba(255, 106, 0, 0.05);
}

.plan-card.active {
  border-color: var(--primary);
  background: rgba(255, 106, 0, 0.12);
  box-shadow: 0 0 16px rgba(255, 106, 0, 0.25);
}

.plan-card.active::before {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--primary);
  font-size: 0.9rem;
}

.plan-card-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.plan-card-price {
  font-size: 1.15rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

.plan-card.active .plan-card-price {
  color: var(--primary);
}

.plan-savings-badge {
  display: inline-block;
  background: rgba(39, 201, 63, 0.2);
  color: var(--accent-green);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 6px;
}

/* Detail bottom tabs */
.detail-tab-nav {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow-x: auto;
}

.detail-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.detail-tab-btn:hover {
  color: var(--text-main);
}

.detail-tab-btn.active {
  color: var(--primary);
}

.detail-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .duration-selector {
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .telemetry-row {
    flex-direction: column;
  }
}

/* File Upload Dropzone in Admin */
.file-upload-dropzone {
  border: 2px dashed rgba(255, 106, 0, 0.45);
  background: rgba(18, 24, 38, 0.65);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.file-upload-dropzone:hover,
.file-upload-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(255, 106, 0, 0.08);
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.25), inset 0 0 15px rgba(255, 106, 0, 0.05);
  transform: translateY(-2px);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dropzone-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  border: 1px solid rgba(255, 106, 0, 0.35);
  transition: transform 0.25s;
}

.file-upload-dropzone:hover .dropzone-icon {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.4);
}

.dropzone-main-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.dropzone-sub-text {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
}

/* Image preview thumbnails in Admin modal */
.img-preview-card {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 106, 0, 0.4);
  background: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.img-preview-card:hover {
  transform: scale(1.05);
}

.img-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-preview-card .remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 0, 55, 0.85);
  color: #fff;
  border: none;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.img-preview-card .remove-btn:hover {
  background: #ff0037;
  transform: scale(1.15);
}

.img-preview-card .idx-tag {
  position: absolute;
  bottom: 2px;
  left: 3px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--primary);
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
}
