/* ============================================================
   TXP HUB — Main Stylesheet
   Theme: Black/Gold/Red/Green (Logo-matched)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS Variables ───────────────────────────────────────── */
:root {
  --black:      #0A0A0A;
  --dark:       #111111;
  --dark2:      #181818;
  --dark3:      #222222;
  --red:        #C0141A;
  --red-dark:   #8B0000;
  --red-light:  #E53935;
  --gold:       #C9973A;
  --gold-light: #E8B84B;
  --gold-pale:  #F5E6C8;
  --green:      #1A6B2A;
  --green-light:#27AE60;
  --white:      #FFFFFF;
  --off-white:  #F5F0E8;
  --gray-100:   #F4F4F4;
  --gray-200:   #E0E0E0;
  --gray-400:   #9E9E9E;
  --gray-600:   #666666;
  --gray-800:   #333333;
  --text:       #E8DFD0;
  --text-muted: #9A8F80;
  --border:     rgba(201,151,58,0.2);
  --border-red: rgba(192,20,26,0.3);
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.6);
  --radius:     8px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --sidebar-w:  260px;
  --header-h:   64px;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ─── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: 'Rajdhani', sans-serif; font-weight: 700; line-height: 1.2; }
.display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 2px; }

/* ─── Utility ─────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.grid { display: grid; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red-light); }
.text-green { color: var(--green-light); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.35rem; }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.p-1 { padding: 8px; } .p-2 { padding: 16px; } .p-3 { padding: 24px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer; transition: all var(--transition);
  text-align: center; white-space: nowrap; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 2px 12px rgba(192,20,26,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: var(--white); transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(192,20,26,0.5);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black); font-weight: 700;
  box-shadow: 0 2px 12px rgba(201,151,58,0.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black); transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,151,58,0.07); }
.btn-outline-gold { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--black); }
.btn-green { background: linear-gradient(135deg, var(--green), #145c22); color: var(--white); }
.btn-green:hover { background: linear-gradient(135deg, var(--green-light), var(--green)); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 0.87rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.btn-icon { padding: 9px; width: 40px; height: 40px; justify-content: center; }
.btn-danger { background: var(--red-dark); color: var(--white); }
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: rgba(201,151,58,0.4); }
.card-body { padding: 20px; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; color: var(--gold); }

/* ─── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 0.87rem; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.3px;
}
.form-control {
  width: 100%; padding: 11px 14px;
  background: var(--dark3); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.95rem; transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,151,58,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C9973A' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-control.error { border-color: var(--red-light); }
.form-error { color: var(--red-light); font-size: 0.8rem; margin-top: 4px; }
.form-hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }
.input-group { position: relative; }
.input-group .input-prefix {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.input-group .form-control { padding-left: 32px; }

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3px;
}
.badge-gold   { background: rgba(201,151,58,0.18); color: var(--gold); border: 1px solid rgba(201,151,58,0.3); }
.badge-red    { background: rgba(192,20,26,0.18); color: #FF6B6B; border: 1px solid rgba(192,20,26,0.3); }
.badge-green  { background: rgba(26,107,42,0.2); color: #4CAF50; border: 1px solid rgba(26,107,42,0.3); }
.badge-gray   { background: rgba(255,255,255,0.07); color: var(--gray-400); border: 1px solid rgba(255,255,255,0.1); }
.badge-blue   { background: rgba(33,150,243,0.15); color: #64B5F6; border: 1px solid rgba(33,150,243,0.3); }

/* ─── Alerts / Flash ──────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.93rem; border: 1px solid;
}
.alert-success { background: rgba(26,107,42,0.15); border-color: rgba(26,107,42,0.3); color: #81C784; }
.alert-error   { background: rgba(192,20,26,0.15); border-color: rgba(192,20,26,0.3); color: #EF9A9A; }
.alert-info    { background: rgba(201,151,58,0.1); border-color: rgba(201,151,58,0.25); color: var(--gold); }
.alert-icon { font-size: 1.1rem; flex-shrink: 0; }
.alert-close { margin-left: auto; cursor: pointer; opacity: 0.6; }
.alert-close:hover { opacity: 1; }

/* ─── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th {
  text-align: left; padding: 12px 16px;
  background: var(--dark3); color: var(--gold);
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.5px; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: rgba(201,151,58,0.04); }
.table tbody tr:last-child td { border-bottom: none; }

/* ─── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  border: 1px solid var(--border); font-size: 0.88rem;
  transition: all var(--transition);
}
.pagination a { color: var(--text); }
.pagination a:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,151,58,0.07); }
.pagination span { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 700; }

/* ─── Status Badges ───────────────────────────────────────── */
.status-pending    { @extend .badge; @extend .badge-gold; }
.status-confirmed  { @extend .badge; @extend .badge-blue; }
.status-processing { background: rgba(156,39,176,0.15); color: #CE93D8; border: 1px solid rgba(156,39,176,0.3); }
.status-shipped    { background: rgba(2,136,209,0.15); color: #81D4FA; border: 1px solid rgba(2,136,209,0.3); }
.status-delivered  { @extend .badge; @extend .badge-green; }
.status-cancelled  { @extend .badge; @extend .badge-red; }

/* ─── PUBLIC LAYOUT: Header ───────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px;
}
.header-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-logo img { width: 38px; height: 38px; object-fit: contain; }
.header-logo-text { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--gold); letter-spacing: 2px; line-height: 1; }
.header-logo-sub { font-size: 0.55rem; color: var(--text-muted); display: block; letter-spacing: 1px; text-transform: uppercase; }
.header-search { flex: 1; max-width: 480px; position: relative; }
.header-search input {
  width: 100%; padding: 9px 40px 9px 16px;
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 100px; color: var(--text); font-size: 0.9rem;
  transition: border-color var(--transition);
}
.header-search input:focus { outline: none; border-color: var(--gold); }
.header-search-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--gold); padding: 4px;
}
.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius);
  color: var(--text); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
}
.header-nav a:hover { background: rgba(255,255,255,0.06); color: var(--gold); }
.header-nav a.active { color: var(--gold); }
.header-icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  background: none; border: 1px solid var(--border);
  cursor: pointer; color: var(--text); transition: all var(--transition);
  flex-shrink: 0;
}
.header-icon-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,151,58,0.06); }
.header-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; border-radius: 100px;
  background: var(--red); color: var(--white);
  font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.header-user {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius);
  border: 1px solid var(--border); cursor: pointer;
  transition: all var(--transition); position: relative;
}
.header-user:hover { border-color: var(--gold); }
.header-user img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.header-user-name { font-size: 0.87rem; font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 200px;
  padding: 8px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition);
}
.header-user:hover .header-dropdown,
.header-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  color: var(--text); font-size: 0.9rem;
  transition: all var(--transition); cursor: pointer;
}
.dropdown-item:hover { background: rgba(201,151,58,0.08); color: var(--gold); }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 8px; }

/* ─── Hero / Banner ───────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0F0000 0%, #1A0808 50%, #0A0A0A 100%);
  border-bottom: 1px solid var(--border-red);
  padding: 64px 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(192,20,26,0.15) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.hero-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; color: var(--white); }
.hero-title span { color: var(--gold); }
.hero-sub { font-size: 1.05rem; color: var(--text-muted); margin: 16px 0 32px; max-width: 520px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ─── Category Strip ──────────────────────────────────────── */
.cat-strip { padding: 20px 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
.cat-strip-inner { display: flex; gap: 10px; padding: 0 20px; white-space: nowrap; min-width: max-content; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--text);
  font-size: 0.88rem; cursor: pointer; transition: all var(--transition);
  background: var(--dark2); flex-shrink: 0;
}
.cat-chip:hover, .cat-chip.active {
  border-color: var(--gold); background: rgba(201,151,58,0.1); color: var(--gold);
}
.cat-chip svg { width: 14px; height: 14px; }

/* ─── Section ─────────────────────────────────────────────── */
.section { padding: 48px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 12px; flex-wrap: wrap; }
.section-title { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; color: var(--white); }
.section-title span { color: var(--gold); }
.section-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.section-divider {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── Product Grid ────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); cursor: pointer;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,151,58,0.45);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.product-img-wrap {
  position: relative; aspect-ratio: 1;
  overflow: hidden; background: var(--dark3);
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge-wrap { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.product-wishlist-btn {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.6); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.product-wishlist-btn:hover, .product-wishlist-btn.active { color: var(--red-light); }
.product-img-placeholder {
  width: 100%; aspect-ratio: 1; background: var(--dark3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 2.5rem;
}
.product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-store { font-size: 0.75rem; color: var(--gold); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-weight: 600; font-size: 0.92rem; line-height: 1.35; color: var(--text); flex: 1; }
.product-rating { display: flex; align-items: center; gap: 4px; margin: 6px 0; }
.stars { color: var(--gold); font-size: 0.78rem; letter-spacing: 1px; }
.product-price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.price-current { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.price-original { font-size: 0.82rem; color: var(--text-muted); text-decoration: line-through; }
.price-unit { font-size: 0.75rem; color: var(--text-muted); }
.product-actions { display: flex; gap: 8px; margin-top: 12px; }
.product-actions .btn { flex: 1; justify-content: center; }
.product-no-img { aspect-ratio: 1; background: var(--dark3); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--text-muted); }

/* ─── Merchant Cards ──────────────────────────────────────── */
.merchant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.merchant-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.merchant-card:hover { border-color: rgba(201,151,58,0.4); transform: translateY(-3px); }
.merchant-banner { height: 100px; background: linear-gradient(135deg, var(--red-dark), var(--dark3)); position: relative; overflow: hidden; }
.merchant-banner img { width: 100%; height: 100%; object-fit: cover; }
.merchant-logo-wrap { position: absolute; bottom: -28px; left: 16px; }
.merchant-logo {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
  border: 3px solid var(--dark2); background: var(--dark3);
}
.merchant-body { padding: 36px 16px 16px; }
.merchant-verified { color: var(--gold); font-size: 0.75rem; display: flex; align-items: center; gap: 4px; }
.merchant-name { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 700; }
.merchant-meta { font-size: 0.8rem; color: var(--text-muted); margin: 4px 0 10px; }

/* ─── SIDEBAR LAYOUT (Dashboard) ─────────────────────────── */
.dash-layout { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: var(--sidebar-w); background: var(--dark); flex-shrink: 0;
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 900;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  overflow-y: auto; overflow-x: hidden;
  transition: transform var(--transition);
}
.dash-sidebar-header {
  padding: 18px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.dash-sidebar-logo { width: 36px; height: 36px; object-fit: contain; }
.dash-sidebar-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--gold); letter-spacing: 2px; line-height: 1; }
.dash-sidebar-role { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.dash-nav { flex: 1; padding: 12px 10px; }
.dash-nav-section { margin-bottom: 24px; }
.dash-nav-label {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted); padding: 0 8px;
  margin-bottom: 4px; display: block;
}
.dash-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  color: var(--text); font-size: 0.91rem; font-weight: 500;
  transition: all var(--transition); cursor: pointer;
  position: relative; margin-bottom: 2px;
}
.dash-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); transition: color var(--transition); }
.dash-nav-item:hover { background: rgba(201,151,58,0.08); color: var(--gold); }
.dash-nav-item:hover svg { color: var(--gold); }
.dash-nav-item.active {
  background: rgba(192,20,26,0.15); color: var(--gold);
  border-left: 3px solid var(--red);
}
.dash-nav-item.active svg { color: var(--gold); }
.dash-nav-badge {
  margin-left: auto; min-width: 20px; height: 20px;
  background: var(--red); color: var(--white);
  border-radius: 100px; font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.dash-sidebar-footer {
  padding: 12px 10px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.dash-main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.dash-topbar {
  height: var(--header-h); background: rgba(10,10,10,0.95);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}
.dash-topbar-left { display: flex; align-items: center; gap: 12px; }
.dash-breadcrumb { font-size: 0.88rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.dash-breadcrumb span { color: var(--text); }
.dash-topbar-right { display: flex; align-items: center; gap: 10px; }
.dash-content { padding: 28px 24px; flex: 1; }
.dash-page-title { font-family: 'Rajdhani', sans-serif; font-size: 1.7rem; color: var(--white); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.dash-page-title svg { color: var(--gold); }

/* ─── Stat Cards ──────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  position: relative; overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.stat-card:hover { border-color: rgba(201,151,58,0.35); transform: translateY(-2px); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 1.3rem;
}
.stat-icon-red { background: rgba(192,20,26,0.15); color: #FF6B6B; }
.stat-icon-gold { background: rgba(201,151,58,0.15); color: var(--gold); }
.stat-icon-green { background: rgba(26,107,42,0.2); color: #4CAF50; }
.stat-icon-blue { background: rgba(33,150,243,0.15); color: #64B5F6; }
.stat-value { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-change { font-size: 0.78rem; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: #4CAF50; }
.stat-change.down { color: var(--red-light); }

/* ─── Auth Layout ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex;
  background: radial-gradient(ellipse at 30% 50%, rgba(192,20,26,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(201,151,58,0.07) 0%, transparent 50%),
              var(--black);
}
.auth-visual {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px; background: linear-gradient(135deg, #1a0000 0%, #0f0f0f 100%);
  border-right: 1px solid var(--border-red);
  position: relative; overflow: hidden;
}
.auth-visual::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C0141A' stroke-opacity='0.07'%3E%3Cpath d='M0 0h60v60H0z'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-visual-content { position: relative; z-index: 1; text-align: center; }
.auth-logo { width: 100px; height: 100px; margin: 0 auto 20px; }
.auth-tagline { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: var(--gold); margin-bottom: 8px; letter-spacing: 2px; }
.auth-sub { color: var(--text-muted); font-size: 0.95rem; max-width: 320px; }
.auth-stats { display: flex; gap: 24px; margin-top: 40px; justify-content: center; }
.auth-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--gold); }
.auth-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; }
.auth-form-side {
  width: 480px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
}
.auth-form-box { width: 100%; }
.auth-title { font-family: 'Rajdhani', sans-serif; font-size: 1.9rem; margin-bottom: 4px; color: var(--white); }
.auth-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: 0.83rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer-link { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }

/* ─── Product Detail ──────────────────────────────────────── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--dark2); border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumb { width: 60px; height: 60px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color var(--transition); }
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info-title { font-family: 'Rajdhani', sans-serif; font-size: 1.7rem; color: var(--white); line-height: 1.2; margin-bottom: 10px; }
.product-info-price { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--gold); }
.product-qty-ctrl { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; width: fit-content; }
.qty-btn { width: 40px; height: 40px; background: var(--dark3); border: none; cursor: pointer; color: var(--text); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.qty-btn:hover { background: var(--gold); color: var(--black); }
.qty-input { width: 56px; height: 40px; text-align: center; background: var(--dark2); border: none; color: var(--text); font-size: 1rem; }

/* ─── Cart ────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; background: var(--dark3); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cart-item-price { color: var(--gold); font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; }
.cart-summary {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.93rem; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; color: var(--white); }
.cart-total-amount { color: var(--gold); font-size: 1.6rem; }

/* ─── Order Timeline ──────────────────────────────────────── */
.order-timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 24px; }
.order-timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 20px 16px; }
.timeline-item::before {
  content: ''; position: absolute; left: -20px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--dark3); border: 2px solid var(--border);
  transition: all var(--transition);
}
.timeline-item.done::before { background: var(--gold); border-color: var(--gold); }
.timeline-item.active::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 8px rgba(192,20,26,0.5); }
.timeline-label { font-weight: 600; font-size: 0.9rem; }
.timeline-time { font-size: 0.78rem; color: var(--text-muted); }

/* ─── Mobile Drawer ───────────────────────────────────────── */
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 899;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
}
.mobile-overlay.open { display: block; }

/* ─── Toasts ──────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
  max-width: 340px;
}
.toast {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg); pointer-events: all;
  animation: toastIn 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
  font-size: 0.9rem;
}
.toast.success { border-left: 4px solid var(--green-light); }
.toast.error   { border-left: 4px solid var(--red-light); }
.toast.info    { border-left: 4px solid var(--gold); }
@keyframes toastIn { from { opacity:0; transform:translateY(20px) scale(0.9); } }

/* ─── Loading Spinner ─────────────────────────────────────── */
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 9998; backdrop-filter: blur(4px);
}

/* ─── Image Upload ────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; cursor: pointer;
  transition: all var(--transition); position: relative;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--gold); background: rgba(201,151,58,0.05); }
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 2rem; color: var(--text-muted); margin-bottom: 8px; }
.upload-text { font-size: 0.9rem; color: var(--text-muted); }
.upload-text span { color: var(--gold); }

/* ─── Search Overlay ──────────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px); display: none; align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.search-overlay.open { display: flex; }
.search-box { width: 100%; max-width: 640px; background: var(--dark2); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); }
.search-box-input { width: 100%; padding: 18px 24px; background: none; border: none; color: var(--text); font-size: 1.1rem; }
.search-box-input:focus { outline: none; }

/* ─── Empty State ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.5; }
.empty-title { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; color: var(--text-muted); margin-bottom: 8px; }
.empty-desc { color: var(--text-muted); font-size: 0.9rem; }

/* ─── Checkout ────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.payment-option {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.payment-option:has(input:checked), .payment-option.selected {
  border-color: var(--gold); background: rgba(201,151,58,0.06);
}
.payment-option input { display: none; }
.payment-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; transition: all var(--transition); }
.payment-option:has(input:checked) .payment-radio, .payment-option.selected .payment-radio {
  border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 3px var(--dark2);
}

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--dark); border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 36px; height: 36px; object-fit: contain; }
.footer-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }
.footer-col-title { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--gold); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.87rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: 0.82rem; flex-wrap: gap; gap: 12px; }
.commission-pill {
  background: rgba(201,151,58,0.1); border: 1px solid rgba(201,151,58,0.2);
  border-radius: 100px; padding: 4px 14px; font-size: 0.8rem; color: var(--gold);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 1024px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .product-gallery { position: static; }
}
@media (max-width: 900px) {
  .dash-sidebar {
    transform: translateX(-100%);
  }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; }
  .hamburger { display: flex; }
  .auth-visual { display: none; }
  .auth-form-side { width: 100%; padding: 32px 24px; }
  .header-search { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .container { padding: 0 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 40px 0; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-nav .nav-text { display: none; }
  .dash-content { padding: 16px 14px; }
  .dash-topbar { padding: 0 14px; }
  .section { padding: 32px 0; }
  .merchant-grid { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
}

/* ─── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-fadeUp { animation: fadeUp 0.5s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.3s ease forwards; }

/* ─── Gold Glow Accent ────────────────────────────────────── */
.gold-glow { box-shadow: 0 0 20px rgba(201,151,58,0.25); }
.red-glow  { box-shadow: 0 0 20px rgba(192,20,26,0.25); }

/* ─── No results strip ────────────────────────────────────── */
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }
.status-pending    { background: rgba(201,151,58,0.15); color: var(--gold); border: 1px solid rgba(201,151,58,0.25); }
.status-confirmed  { background: rgba(33,150,243,0.15); color: #64B5F6; border: 1px solid rgba(33,150,243,0.25); }
.status-processing { background: rgba(156,39,176,0.15); color: #CE93D8; border: 1px solid rgba(156,39,176,0.25); }
.status-shipped    { background: rgba(2,136,209,0.15); color: #81D4FA; border: 1px solid rgba(2,136,209,0.25); }
.status-delivered  { background: rgba(26,107,42,0.2); color: #81C784; border: 1px solid rgba(26,107,42,0.3); }
.status-cancelled  { background: rgba(192,20,26,0.15); color: #EF9A9A; border: 1px solid rgba(192,20,26,0.25); }
.status-refunded   { background: rgba(255,152,0,0.15); color: #FFB74D; border: 1px solid rgba(255,152,0,0.25); }
.status-active     { background: rgba(26,107,42,0.2); color: #81C784; border: 1px solid rgba(26,107,42,0.3); }
.status-draft      { background: rgba(255,255,255,0.07); color: var(--gray-400); border: 1px solid rgba(255,255,255,0.1); }
.status-suspended  { background: rgba(255,152,0,0.15); color: #FFB74D; border: 1px solid rgba(255,152,0,0.25); }
.status-banned     { background: rgba(192,20,26,0.15); color: #EF9A9A; border: 1px solid rgba(192,20,26,0.25); }
