/* ============================================
   XHORSEGLOBAL - Futuristic Dark Theme
   ============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --bg-glass: rgba(22, 22, 31, 0.85);
  --accent: #00d4ff;
  --accent-2: #7c3aed;
  --accent-3: #00ff88;
  --accent-glow: rgba(0, 212, 255, 0.3);
  --accent-glow-2: rgba(124, 58, 237, 0.3);
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #555570;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(0, 212, 255, 0.15);
  --success: #00ff88;
  --danger: #ff4466;
  --warning: #ffaa00;
  --gradient-1: linear-gradient(135deg, #00d4ff, #7c3aed);
  --gradient-2: linear-gradient(135deg, #7c3aed, #ff4466);
  --gradient-3: linear-gradient(135deg, #00d4ff, #00ff88);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: #33ddff; }

/* ============ TOP BAR ============ */
.top-bar {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.top-bar a { color: var(--text-secondary); font-size: 0.78rem; }
.top-bar a:hover { color: var(--accent); }

/* ============ NAVBAR ============ */
.main-nav {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.7rem 0;
  z-index: 1000;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.brand-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 2px;
}

.brand-accent { color: var(--accent); }

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after { width: 60%; }

.dropdown-menu-dark {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glow);
}

.dropdown-item {
  color: var(--text-secondary) !important;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: rgba(0, 212, 255, 0.1) !important;
  color: var(--accent) !important;
}

/* Search */
.search-form {
  position: relative;
}

.search-form .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  width: 220px;
  transition: var(--transition);
}

.search-form .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  width: 300px;
}

.search-form .form-control::placeholder { color: var(--text-muted); }

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
}

.search-results-dropdown.active { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.search-result-item:hover { background: rgba(0, 212, 255, 0.05); }
.search-result-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.search-result-item .name { font-size: 0.85rem; }
.search-result-item .price { color: var(--accent); font-weight: 600; font-size: 0.85rem; }

.badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gradient-2);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ BUTTONS ============ */
.btn-accent {
  background: var(--gradient-1);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px var(--accent-glow);
  color: #fff;
}

.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-accent:hover::before { left: 100%; }

.btn-outline-accent {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: var(--radius);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
}

.btn-outline-accent:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius);
  padding: 0.5rem 1.5rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.btn-glass:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
}

/* ============ HERO ============ */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
    var(--bg-primary);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-opacity='0.02' stroke-width='0.5'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.floating-badge {
  position: absolute;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  backdrop-filter: blur(10px);
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}

.floating-badge:nth-child(1) { top: 15%; left: -10%; animation-delay: 0s; }
.floating-badge:nth-child(2) { bottom: 20%; right: -5%; animation-delay: 1s; }
.floating-badge:nth-child(3) { top: 60%; left: -15%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* ============ SECTION STYLES ============ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

/* ============ PRODUCT CARDS ============ */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.product-card .card-img-wrapper {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-card .card-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.product-card .card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.product-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 50px;
}

.badge-new { background: var(--gradient-3); color: #000; }
.badge-sale { background: var(--gradient-2); color: #fff; }
.badge-featured { background: var(--gradient-1); color: #fff; }
.badge-free-ship { background: rgba(0, 255, 136, 0.15); color: var(--accent-3); border: 1px solid rgba(0, 255, 136, 0.3); }

.product-card .card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .card-category {
  font-size: 0.73rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.product-card .card-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .card-title a {
  color: inherit;
}
.product-card .card-title a:hover { color: var(--accent); }

.product-card .card-pricing {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  margin-bottom: 0.8rem;
}

.product-card .current-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.product-card .old-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card .card-actions {
  display: flex;
  gap: 8px;
}

.product-card .card-actions .btn {
  flex: 1;
  font-size: 0.82rem;
  padding: 0.5rem;
}

/* ============ CATEGORY CARDS ============ */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: var(--transition);
}

.category-card:hover::before { transform: scaleX(1); }

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.category-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-card h5 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.category-card p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============ GLASS CARDS ============ */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
}

.glass-alert {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  backdrop-filter: blur(10px);
}

.alert-success.glass-alert {
  border-left: 4px solid var(--success) !important;
}

.alert-danger.glass-alert {
  border-left: 4px solid var(--danger) !important;
}

/* ============ FEATURES ============ */
.features-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  position: relative;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
}

.feature-card h5 { font-weight: 700; margin-bottom: 0.5rem; font-size: 1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.88rem; }

/* ============ FORMS ============ */
.form-control, .form-select {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color);
  color: var(--text-primary) !important;
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238888a0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 8px;
}

.form-select option:checked,
.form-select option:hover {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent);
}

.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  color: var(--text-primary) !important;
}

.form-control::placeholder { color: var(--text-muted); }

.form-label {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border-color);
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-label {
  color: var(--text-secondary);
}

/* ============ AUTH PAGES ============ */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.auth-card {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

/* ============ CART & CHECKOUT ============ */
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  transition: var(--transition);
}

.cart-item:hover { border-color: var(--border-glow); }

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item .item-info { flex: 1; }
.cart-item .item-name { font-weight: 600; font-size: 0.95rem; }
.cart-item .item-price { color: var(--accent); font-weight: 700; font-family: 'Orbitron', sans-serif; }

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-summary .summary-total {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

/* Crypto payment */
.crypto-option {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.crypto-option:hover, .crypto-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.crypto-option i { font-size: 2rem; margin-bottom: 0.5rem; }
.crypto-option.btc i { color: #f7931a; }
.crypto-option.eth i { color: #627eea; }
.crypto-option.usdt i { color: #26a17b; }

/* ============ ACCOUNT PAGES ============ */
.account-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.account-sidebar .sidebar-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.account-sidebar .sidebar-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 auto 0.8rem;
}

.account-sidebar .nav-link {
  color: var(--text-secondary) !important;
  padding: 0.8rem 1.5rem !important;
  border-left: 3px solid transparent;
  border-radius: 0;
  font-size: 0.9rem;
}

.account-sidebar .nav-link:hover,
.account-sidebar .nav-link.active {
  color: var(--accent) !important;
  background: rgba(0, 212, 255, 0.05);
  border-left-color: var(--accent);
}

.account-sidebar .nav-link::after { display: none; }

.account-sidebar .nav-link i {
  width: 20px;
  text-align: center;
  margin-right: 10px;
}

/* ============ ORDER STATUS ============ */
.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
}

.status-pending { background: rgba(255, 170, 0, 0.15); color: var(--warning); }
.status-processing { background: rgba(0, 212, 255, 0.15); color: var(--accent); }
.status-shipped { background: rgba(124, 58, 237, 0.15); color: var(--accent-2); }
.status-delivered { background: rgba(0, 255, 136, 0.15); color: var(--success); }
.status-cancelled { background: rgba(255, 68, 102, 0.15); color: var(--danger); }
.status-confirmed { background: rgba(0, 255, 136, 0.15); color: var(--success); }
.status-awaiting_confirmation { background: rgba(255, 170, 0, 0.15); color: var(--warning); }
.status-failed { background: rgba(255, 68, 102, 0.15); color: var(--danger); }

/* ============ PAGINATION ============ */
.pagination .page-item .page-link {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-secondary);
  border-radius: 8px;
  margin: 0 3px;
  transition: var(--transition);
}

.pagination .page-item .page-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.pagination .page-item.active .page-link {
  background: var(--gradient-1);
  border-color: transparent;
  color: #fff;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: var(--gradient-1);
  filter: blur(1px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }

.social-links a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
}

.crypto-badges { display: flex; flex-direction: column; gap: 8px; }

.crypto-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 5px 12px;
}

.footer-divider {
  border-color: var(--border-color);
  margin: 2rem 0 1rem;
}

/* ============ TABLES (Admin) ============ */
.table-dark-custom {
  background: transparent;
  color: var(--text-primary);
}

.table-dark-custom th {
  background: rgba(0, 212, 255, 0.05);
  border-color: var(--border-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  padding: 0.8rem;
}

.table-dark-custom td {
  border-color: var(--border-color);
  padding: 0.8rem;
  font-size: 0.88rem;
  vertical-align: middle;
}

.table-dark-custom tbody tr {
  transition: var(--transition);
}

.table-dark-custom tbody tr:hover {
  background: rgba(0, 212, 255, 0.03);
}

/* ============ ADMIN LAYOUT ============ */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  z-index: 100;
  padding-top: 0;
}

.admin-sidebar .sidebar-brand {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar .nav-link {
  color: var(--text-secondary) !important;
  padding: 0.7rem 1.5rem !important;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: var(--accent) !important;
  background: rgba(0, 212, 255, 0.05);
  border-left-color: var(--accent);
}

.admin-sidebar .nav-link::after { display: none; }

.admin-sidebar .nav-link i { width: 20px; text-align: center; }

.admin-content {
  margin-left: 260px;
  padding: 2rem;
  min-height: 100vh;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.admin-stat-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.admin-stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.admin-stat-card .stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.admin-stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h4 { color: var(--text-secondary); }
.empty-state p { color: var(--text-muted); }

/* ============ BREADCRUMB ============ */
.breadcrumb-custom {
  padding: 1.2rem 0;
}

.breadcrumb-custom .breadcrumb-item a { color: var(--text-muted); font-size: 0.88rem; }
.breadcrumb-custom .breadcrumb-item.active { color: var(--text-secondary); font-size: 0.88rem; }
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ============ PRODUCT DETAIL ============ */
.product-gallery {
  position: relative;
}

.product-gallery .main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.product-gallery .main-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-gallery .thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
}

.product-gallery .thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.product-gallery .thumb:hover, .product-gallery .thumb.active {
  border-color: var(--accent);
}

.product-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.product-detail-old-price {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.spec-table {
  width: 100%;
}

.spec-table tr td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.spec-table tr td:first-child {
  color: var(--text-muted);
  width: 40%;
}

/* ============ QR CODE ============ */
.qr-code-wrapper {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  display: inline-block;
}

/* ============ 404 ============ */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-family: 'Orbitron', sans-serif;
  font-size: 8rem;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .hero-title { font-size: 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
  .search-form .form-control { width: 100%; }
  .search-form .form-control:focus { width: 100%; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-section { min-height: auto; padding: 3rem 0; }
  .section-title { font-size: 1.5rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============ ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Quantity input */
.quantity-input {
  display: flex;
  align-items: center;
  gap: 0;
}

.quantity-input button {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.quantity-input button:hover { border-color: var(--accent); color: var(--accent); }
.quantity-input button:first-child { border-radius: 8px 0 0 8px; }
.quantity-input button:last-child { border-radius: 0 8px 8px 0; }

.quantity-input input {
  width: 50px;
  height: 36px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: none;
  border-right: none;
  color: var(--text-primary);
  font-weight: 600;
}

.quantity-input input:focus { outline: none; }
