/* ===================================================
   XPASS STORE — Xbox Game Pass Sales Site
   Dark theme + Xbox green & purple neon accents
   =================================================== */

/* ---------- Variables ---------- */
:root {
  --bg-0: #07090c;
  --bg-1: #0d1117;
  --bg-2: #131922;
  --bg-card: #161d28;
  --bg-card-hover: #1c2533;
  --border: #232c3b;
  --border-soft: #1a2230;

  --text: #e8edf5;
  --text-muted: #8a93a6;
  --text-dim: #5b6472;

  --xbox: #107c10;          /* Xbox green */
  --xbox-bright: #16c60c;   /* neon green */
  --xbox-glow: rgba(22, 198, 12, 0.45);

  --purple: #8a2be2;        /* purple */
  --purple-bright: #b15cff; /* neon purple */
  --purple-glow: rgba(177, 92, 255, 0.45);

  --gold: #ffb84d;
  --danger: #ff4d6d;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow-green: 0 0 25px rgba(22, 198, 12, 0.25);
  --shadow-glow-purple: 0 0 25px rgba(177, 92, 255, 0.25);

  --transition: 0.25s cubic-bezier(.4, 0, .2, 1);

  --font-ar: 'Cairo', system-ui, sans-serif;
  --font-en: 'Rajdhani', 'Cairo', sans-serif;

  --container: 1200px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-ar);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 56px;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(22, 198, 12, 0.08), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(177, 92, 255, 0.08), transparent 60%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   PAGE LOADER  (index.html only)
   ============================================================ */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070a0e;
  overflow: hidden;
}

.loader-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.loader-glow-green {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(16,124,16,.55) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  animation: glowGreenPulse 2.4s ease-in-out infinite alternate;
}
.loader-glow-purple {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(100,50,200,.35) 0%, transparent 70%);
  bottom: -60px; right: -40px;
  animation: glowPurplePulse 2.8s ease-in-out infinite alternate-reverse;
}
@keyframes glowGreenPulse {
  from { opacity: .7; transform: translate(-50%,-60%) scale(1); }
  to   { opacity: 1;  transform: translate(-50%,-60%) scale(1.15); }
}
@keyframes glowPurplePulse {
  from { opacity: .5; transform: scale(1); }
  to   { opacity: .9; transform: scale(1.18); }
}

.loader-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: loaderFadeIn .45s ease both;
}
@keyframes loaderFadeIn {
  from { opacity: 0; transform: scale(.88) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.loader-logo-ring {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  box-shadow:
    0 0 0 3px rgba(16,124,16,.5),
    0 0 28px rgba(16,124,16,.6),
    0 0 56px rgba(16,124,16,.25);
  animation: ringPulse 1.6s ease-in-out infinite;
}
@keyframes ringPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(16,124,16,.5), 0 0 28px rgba(16,124,16,.6), 0 0 56px rgba(16,124,16,.25); }
  50%      { box-shadow: 0 0 0 6px rgba(16,124,16,.3), 0 0 40px rgba(16,124,16,.9), 0 0 80px rgba(16,124,16,.35); }
}
.loader-logo-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.loader-brand {
  font-family: 'Rajdhani', 'Cairo', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}
.loader-brand span { color: #4CAF50; }

.loader-bar-track {
  width: 200px; height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 99px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #107c10, #4CAF50, #a5d6a7);
  animation: barFill 1.1s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: .1s;
}
@keyframes barFill {
  0%   { width: 0%; }
  40%  { width: 55%; }
  80%  { width: 85%; }
  100% { width: 100%; }
}

.loader-dots {
  display: flex;
  gap: 8px;
}
.loader-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: dotBounce .9s ease-in-out infinite;
}
.loader-dots span:nth-child(1) { background: #4CAF50; animation-delay: 0s; }
.loader-dots span:nth-child(2) { background: #9c27b0; animation-delay: .2s; }
.loader-dots span:nth-child(3) { background: rgba(255,255,255,.3); animation-delay: .4s; }
@keyframes dotBounce {
  0%,80%,100% { transform: scale(.6); opacity: .6; }
  40%         { transform: scale(1.1); opacity: 1; }
}

/* Fade-out */
#page-loader.loader-out {
  animation: loaderFadeOut .55s cubic-bezier(.4,0,.2,1) forwards;
  pointer-events: none;
}
@keyframes loaderFadeOut {
  0%   { opacity: 1; transform: scale(1); }
  60%  { opacity: .6; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.08); }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.header.scrolled {
  background: rgba(8,12,20,.88);
  border-bottom-color: transparent;
  box-shadow: none;
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow-glow-green);
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-text { color: var(--text); }
.logo-accent { color: var(--xbox-bright); }

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

.nav-link {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link.active { color: var(--xbox-bright); }
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 16px; right: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--xbox-bright), var(--purple-bright));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--xbox-glow);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--xbox), var(--xbox-bright));
  color: white;
  box-shadow: 0 8px 20px rgba(22, 198, 12, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 198, 12, 0.5), 0 0 25px rgba(22, 198, 12, 0.25);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--purple), var(--purple-bright));
  color: white;
  box-shadow: 0 8px 20px rgba(177, 92, 255, 0.3);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(177, 92, 255, 0.5), 0 0 25px rgba(177, 92, 255, 0.25);
}

.btn-wa-group {
  background: linear-gradient(135deg, #1da851, #25D366);
  color: white;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
.btn-wa-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5), 0 0 25px rgba(37, 211, 102, 0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--xbox-bright);
  color: #fff;
  background: rgba(22, 198, 12, 0.05);
}

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 18px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: 20px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before, .hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}
.hero-bg::before {
  width: 500px; height: 500px;
  background: var(--xbox-bright);
  top: -120px; right: -120px;
  animation: float 8s ease-in-out infinite;
}
.hero-bg::after {
  width: 450px; height: 450px;
  background: var(--purple-bright);
  bottom: -100px; left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

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

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(22, 198, 12, 0.1);
  border: 1px solid rgba(22, 198, 12, 0.3);
  color: var(--xbox-bright);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp .7s ease;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--xbox-bright);
  box-shadow: 0 0 8px var(--xbox-bright);
  animation: pulse 1.5s ease-in-out infinite;
}
.hero-badge-unavailable {
  background: rgba(255, 77, 109, 0.12);
  border-color: rgba(255, 77, 109, 0.35);
  color: #ff4d6d;
}
.hero-badge-unavailable .dot {
  background: #ff4d6d;
  box-shadow: 0 0 8px #ff4d6d;
}

/* ── Store Reopen Countdown ── */
.store-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  animation: fadeInUp .6s ease;
}
.scd-label {
  font-size: 13px;
  font-weight: 700;
  color: #ff4d6d;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.scd-boxes {
  display: flex;
  align-items: center;
  gap: 6px;
}
.scd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,77,109,.08);
  border: 1px solid rgba(255,77,109,.25);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 62px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(255,77,109,.08), inset 0 1px 0 rgba(255,255,255,.05);
  transition: box-shadow .3s;
}
.scd-box:hover {
  box-shadow: 0 0 28px rgba(255,77,109,.18), inset 0 1px 0 rgba(255,255,255,.08);
}
.scd-val {
  font-size: 28px;
  font-weight: 900;
  color: #ff4d6d;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(255,77,109,.5);
  transition: transform .15s;
}
.scd-unit {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,77,109,.7);
  letter-spacing: .05em;
}
.scd-sep {
  font-size: 26px;
  font-weight: 900;
  color: rgba(255,77,109,.45);
  line-height: 1;
  margin-bottom: 18px;
}
@media (max-width: 480px) {
  .scd-box { min-width: 52px; padding: 8px 10px; }
  .scd-val { font-size: 22px; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp .8s ease;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--xbox-bright), var(--purple-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
  animation: fadeInUp .9s ease;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeInUp 1s ease;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  animation: fadeInUp 1.1s ease;
}
.hero-stat .num {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  color: var(--xbox-bright);
  display: block;
  line-height: 1;
}
.hero-stat .lbl { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

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

/* Hero visual / featured card */
.hero-visual {
  position: relative;
  animation: fadeInUp 1s ease;
}
.hero-card {
  position: relative;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(22, 198, 12, 0.1));
  pointer-events: none;
}
.hero-card .gpx-logo {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--xbox-bright);
  font-weight: 700;
  margin-bottom: 8px;
}
.hero-card h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero-card .feats {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-card .feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.hero-card .feat svg { color: var(--xbox-bright); flex-shrink: 0; }

.hero-card .price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.hero-card .price-row .label { font-size: 13px; color: var(--text-muted); }
.hero-card .price-row .price {
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--xbox-bright), var(--purple-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-card .price-row .currency { font-size: 16px; color: var(--text-muted); margin-right: 4px; }

.hero-card .ribbon {
  position: absolute;
  top: 24px;
  left: -8px;
  background: linear-gradient(135deg, var(--purple), var(--purple-bright));
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 4px;
  box-shadow: var(--shadow-glow-purple);
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--xbox-bright);
  font-weight: 700;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}
.section h2 .grad {
  background: linear-gradient(135deg, var(--xbox-bright), var(--purple-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-head p {
  font-size: 17px;
  color: var(--text-muted);
}

/* ---------- Featured (Home) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ---------- Category tabs ---------- */
/* ---------- Products Toolbar (search + category dropdown) ----------
   Glassmorphism style — replaces the old pill tabs row.
   Layout: search takes the long flexible space, dropdown sits beside
   it with a fixed width. On mobile they stack (dropdown on top). */
.products-toolbar {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin: 0 auto 40px;
  max-width: 880px;
  width: 100%;
}

/* Shared "glass" surface for both controls — extra-transparent */
.products-search,
.cat-dropdown-btn {
  background: rgba(255, 255, 255, 0.015);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
          backdrop-filter: blur(8px) saturate(130%);
  border: 1px solid color-mix(in srgb, var(--xbox-bright) 28%, transparent);
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

/* --- Search bar (long, flex:1) --- */
.products-search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-height: 52px;
  cursor: text;
  box-shadow: 0 0 22px -10px color-mix(in srgb, var(--xbox-bright) 60%, transparent);
}
.products-search:hover,
.products-search:focus-within {
  border-color: color-mix(in srgb, var(--xbox-bright) 70%, transparent);
  box-shadow: 0 0 26px -6px color-mix(in srgb, var(--xbox-bright) 55%, transparent);
}
.products-search-icon {
  color: var(--xbox-bright);
  flex-shrink: 0;
}
.products-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  text-align: right;
  min-width: 0;
}
.products-search input::placeholder { color: var(--text-dim); }
/* Hide native clear button (we don't need extra noise) */
.products-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* --- Category dropdown --- */
.cat-dropdown {
  position: relative;
  flex: 0 0 280px;
}
.cat-dropdown-btn {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 0 22px -10px color-mix(in srgb, var(--xbox-bright) 60%, transparent);
}
.cat-dropdown-btn:hover,
.cat-dropdown.open .cat-dropdown-btn {
  border-color: color-mix(in srgb, var(--xbox-bright) 75%, transparent);
  box-shadow: 0 0 26px -6px color-mix(in srgb, var(--xbox-bright) 55%, transparent);
}
.cat-dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--xbox-bright) 14%, transparent);
  color: var(--xbox-bright);
  flex-shrink: 0;
}
.cat-dropdown-icon img { width: 18px; height: 18px; object-fit: contain; }
.cat-dropdown-label {
  flex: 1;
  text-align: right;
}
.cat-dropdown-chevron {
  color: var(--text-muted);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.cat-dropdown.open .cat-dropdown-chevron { transform: rotate(180deg); }

/* Dropdown menu — same glass, anchored under the button (extra-transparent) */
.cat-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  padding: 4px;
  background: rgba(20, 20, 24, 0.38);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
          backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid color-mix(in srgb, var(--xbox-bright) 28%, transparent);
  border-radius: 14px;
  box-shadow: 0 22px 48px -12px rgba(0, 0, 0, 0.45),
              0 0 28px -6px color-mix(in srgb, var(--xbox-bright) 28%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  animation: catDropdownIn .16s ease-out;
}
/* The HTML `hidden` attribute must beat our `display: flex` above */
.cat-dropdown-menu[hidden] { display: none; }
@keyframes catDropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cat-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  position: relative;
}
/* Faint divider between items (skipped on the last one) */
.cat-dropdown-item + .cat-dropdown-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg,
              transparent,
              color-mix(in srgb, var(--xbox-bright) 22%, transparent),
              transparent);
  pointer-events: none;
}
.cat-dropdown-item:hover {
  background: color-mix(in srgb, var(--neon, var(--xbox-bright)) 14%, transparent);
  color: var(--neon, var(--xbox-bright));
}
.cat-dropdown-item.active {
  color: var(--neon, var(--xbox-bright));
  background: color-mix(in srgb, var(--neon, var(--xbox-bright)) 10%, transparent);
}
.cat-dropdown-item-label { flex: 1; text-align: right; }
.cat-dropdown-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--neon, var(--text-muted));
  flex-shrink: 0;
}
.cat-dropdown-item-icon img { width: 18px; height: 18px; object-fit: contain; }

/* Empty state when search returns nothing */
.products-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: 14px;
  margin-top: 20px;
}
.products-empty-icon { font-size: 40px; margin-bottom: 10px; }

/* Used by live search to hide non-matching cards/sections */
.is-hidden { display: none !important; }

/* Responsive: stack the two controls on small screens */
@media (max-width: 640px) {
  .products-toolbar {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }
  .cat-dropdown { flex: 1 1 auto; }
  .products-search,
  .cat-dropdown-btn { min-height: 48px; }
}

/* ---------- Product Cards ---------- */
.products-section {
  margin-bottom: 56px;
}
.products-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-size: 22px;
  font-weight: 800;
}
.products-section-title .icon {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(22, 198, 12, 0.1);
  color: var(--xbox-bright);
  border: 1px solid rgba(22, 198, 12, 0.3);
  overflow: hidden;
  flex-shrink: 0;
}
.products-section-title .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.all-products-logo-icon {
  background: #fff !important;
  border-color: rgba(22, 198, 12, 0.5) !important;
  box-shadow: 0 0 12px rgba(22, 198, 12, 0.2);
}
.all-products-bar {
  margin-bottom: 40px;
}
.products-section-title.purple .icon {
  background: rgba(177, 92, 255, 0.1);
  color: var(--purple-bright);
  border-color: rgba(177, 92, 255, 0.3);
}

.products-logo-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(22, 198, 12, 0.5);
  box-shadow: 0 0 24px rgba(22, 198, 12, 0.25), 0 4px 16px rgba(0,0,0,0.4);
  margin-bottom: 20px;
  overflow: hidden;
}

.products-eyebrow-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 70%, rgba(22, 198, 12, 0.08));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 198, 12, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow-green);
}
.product-card.purple:hover {
  border-color: rgba(177, 92, 255, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow-purple);
}
.product-card.purple::before {
  background: linear-gradient(135deg, transparent 70%, rgba(177, 92, 255, 0.1));
}
.product-card:hover::before { opacity: 1; }

/* ── Out-of-Stock Card ── */
.product-card.product-oos {
  opacity: .75;
  filter: grayscale(30%);
}
.product-card.product-oos:hover {
  transform: none;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.oos-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  max-width: calc(100% - 70px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(239,68,68,.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.35);
  white-space: nowrap;
  z-index: 4;
}
.btn-oos-disabled {
  background: rgba(239,68,68,.1) !important;
  border: 1px solid rgba(239,68,68,.3) !important;
  color: #f87171 !important;
  pointer-events: none;
}
.btn-store-closed {
  background: rgba(255,77,109,.08) !important;
  border: 1px solid rgba(255,77,109,.30) !important;
  color: #ff4d6d !important;
  pointer-events: none;
  opacity: .85;
}

.product-tag {
  position: absolute;
  top: 14px;
  /* inline-start = right side in RTL → keeps it away from the wishlist heart on the opposite corner */
  inset-inline-start: 14px;
  /* leave room for the heart (38px + 12px gutter + safety) so the tag never reaches it */
  max-width: calc(100% - 70px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 198, 12, 0.15);
  color: var(--xbox-bright);
  border: 1px solid rgba(22, 198, 12, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 4;
}
@media (max-width: 480px) {
  .product-tag {
    top: 12px;
    inset-inline-start: 12px;
    font-size: 10px;
    letter-spacing: .5px;
    padding: 3px 8px;
    max-width: calc(100% - 64px);
  }
}
.product-tag.purple {
  background: rgba(177, 92, 255, 0.15);
  color: var(--purple-bright);
  border-color: rgba(177, 92, 255, 0.3);
}
.product-tag.gold {
  background: rgba(255, 184, 77, 0.15);
  color: var(--gold);
  border-color: rgba(255, 184, 77, 0.3);
}
.product-tag.red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.product-tag.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}
.product-tag.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.3);
}
.product-tag.orange {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.3);
}
.product-tag.pink {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.3);
}
.product-tag.white {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── Badge color swatches (admin form) ── */
.badge-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.badge-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  outline: none;
  flex-shrink: 0;
}
.badge-swatch:hover {
  transform: scale(1.18);
  box-shadow: 0 0 8px rgba(255,255,255,.25);
}
.badge-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.3);
  transform: scale(1.12);
}

/* ── Flash Sale Styles ── */
.flash-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  max-width: calc(100% - 70px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.18);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.4);
  white-space: nowrap;
  z-index: 4;
  animation: flashPulse 1.6s ease-in-out infinite;
}
@keyframes flashPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,146,60,0); }
  50%       { box-shadow: 0 0 0 5px rgba(251,146,60,0.18); }
}
.product-card.flash-sale-card {
  border-color: rgba(251, 146, 60, 0.35);
}
.product-card.flash-sale-card:hover {
  border-color: rgba(251, 146, 60, 0.65);
  box-shadow: 0 8px 32px rgba(251, 146, 60, 0.18);
}

/* ─── Featured Product Card ─────────────────────────── */
.product-card--featured {
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2), 0 8px 30px rgba(245, 158, 11, 0.12);
}
.product-card--featured:hover {
  border-color: rgba(245, 158, 11, 0.8) !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 16px 40px rgba(245, 158, 11, 0.22) !important;
}
.featured-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #d97706, #f59e0b, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 5px 12px;
  letter-spacing: 1px;
  z-index: 5;
  border-radius: var(--radius) var(--radius) 0 0;
}
.flash-price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.flash-new-price {
  color: #fb923c !important;
}
.flash-old-price {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  opacity: .75;
}
.flash-countdown {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #fb923c;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}
.flash-countdown-icon { font-size: 14px; }
.flash-countdown-val  { font-family: "Courier New", monospace; }

/* ── Waitlist Styles ── */
.btn-waitlist {
  width: 100%;
  margin-top: 6px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-waitlist:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.6);
  color: #a5b4fc;
}
.waitlist-inline-form {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 10px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
}
.waitlist-phone-input {
  flex: 1;
  min-width: 140px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--text);
  font-size: 13px;
  direction: ltr;
  text-align: left;
}
.waitlist-phone-input:focus {
  outline: none;
  border-color: rgba(99,102,241,0.7);
}
.waitlist-submit-btn {
  background: rgba(99,102,241,0.75) !important;
  border: none !important;
  color: #fff !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}
.waitlist-cancel-btn {
  padding: 7px 10px !important;
  font-size: 12px !important;
  white-space: nowrap;
}

/* ── Admin Waitlist Table ── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: right;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.03); }
.admin-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
  font-size: 15px;
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(22, 198, 12, 0.15), rgba(22, 198, 12, 0.05));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--xbox-bright);
  margin-top: 8px;
}
.product-card.purple .product-icon {
  background: linear-gradient(135deg, rgba(177, 92, 255, 0.15), rgba(177, 92, 255, 0.05));
  color: var(--purple-bright);
}

.product-card h3 {
  font-size: 20px;
  font-weight: 800;
}
.product-card .desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-features {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.product-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.product-features li svg { color: var(--xbox-bright); flex-shrink: 0; }
.product-card.purple .product-features li svg { color: var(--purple-bright); }

/* ============================================================
   DETAIL FEATURES SECTION — صفحة التفاصيل (glow cards grid)
   ============================================================ */
/* ── Feature Cards Grid ───────────────────────────────────────── */
.detail-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Color tokens */
.detail-feature-card.feat-green  { --fc: #4ade80; --fc-bg: rgba(74,222,128,0.12); }
.detail-feature-card.feat-cyan   { --fc: #22d3ee; --fc-bg: rgba(34,211,238,0.12); }
.detail-feature-card.feat-purple { --fc: #a78bfa; --fc-bg: rgba(167,139,250,0.12); }
.detail-feature-card.feat-orange { --fc: #fb923c; --fc-bg: rgba(251,146,60,0.12); }
.detail-feature-card.feat-blue   { --fc: #60a5fa; --fc-bg: rgba(96,165,250,0.12); }
.detail-feature-card.feat-pink   { --fc: #f472b6; --fc-bg: rgba(244,114,182,0.12); }

.detail-feature-card {
  position: relative;
  background: #0f0f18;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--fc, #4ade80);
  border-radius: 16px;
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: featFadeUp 0.45s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Glow blob – bigger, brighter */
.detail-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--fc, #4ade80), transparent 70%);
  opacity: 0.22;
  pointer-events: none;
  transition: opacity 0.3s;
}

.detail-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 0 1px var(--fc, #4ade80);
}
.detail-feature-card:hover::before { opacity: 0.38; }

.detail-feature-header { display: none; }
.detail-feature-body   { display: none; }
.detail-feature-icon   { display: none; }

/* Header row: icon + title on one line */
.feat-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

/* FA checkmark icon */
.feat-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--fc-bg, rgba(74,222,128,0.15));
  border: 1.5px solid var(--fc, #4ade80);
  box-shadow: 0 0 12px var(--fc, #4ade80);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  animation: checkPulse 2.4s ease-in-out infinite;
}

.feat-check-icon i {
  font-size: 17px;
  color: var(--fc, #4ade80);
  filter: drop-shadow(0 0 4px var(--fc, #4ade80));
}

@keyframes checkPulse {
  0%, 100% { box-shadow: 0 0 10px var(--fc, #4ade80), 0 0 20px var(--fc, #4ade80); }
  50%       { box-shadow: 0 0 22px var(--fc, #4ade80), 0 0 50px var(--fc, #4ade80), 0 0 70px var(--fc, #4ade80); }
}

.detail-feature-title {
  font-family: var(--font-ar);
  font-size: 14px;
  font-weight: 800;
  color: #f0f4ff;
  line-height: 1.45;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.detail-feature-desc {
  font-family: var(--font-ar);
  font-size: 12px;
  font-weight: 400;
  color: rgba(160,170,195,0.6);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Stagger */
.detail-feature-card:nth-child(1) { animation-delay: 0.04s; }
.detail-feature-card:nth-child(2) { animation-delay: 0.09s; }
.detail-feature-card:nth-child(3) { animation-delay: 0.14s; }
.detail-feature-card:nth-child(4) { animation-delay: 0.19s; }
.detail-feature-card:nth-child(5) { animation-delay: 0.24s; }
.detail-feature-card:nth-child(6) { animation-delay: 0.29s; }

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

@media (max-width: 480px) {
  .detail-features-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .detail-feature-card  { padding: 14px 12px 16px; }
  .detail-feature-icon  { width: 38px; height: 38px; font-size: 19px; margin-bottom: 10px; }
  .detail-feature-title { font-size: 13.5px; }
  .detail-feature-desc  { font-size: 11.5px; }
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0;
}
.product-price {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
}
.product-price .currency {
  font-size: 14px;
  color: var(--text-muted);
  margin-right: 4px;
}
.product-period {
  font-size: 12px;
  color: var(--text-dim);
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

/* صغير: زرار "إضافة للسلة" تحت زراري اشتر الآن/التفاصيل */
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  opacity: .9;
}
.btn-add-cart:hover { opacity: 1; }
.btn-add-cart svg { flex-shrink: 0; }

/* ---------- Product Detail Page ---------- */
.detail-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border-soft);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--xbox-bright); }
.breadcrumb .sep { color: var(--text-dim); }

.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.2;
}
.detail-subtitle {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 24px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

/* "Sold count" social-proof badge with animated fire icon */
.sold-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(255, 94, 14, 0.12), rgba(255, 184, 0, 0.10));
  border: 1px solid rgba(255, 138, 0, 0.35);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 0 0 0 rgba(255, 120, 0, 0.45);
  animation: soldPulse 2.4s ease-in-out infinite;
}
.sold-count-badge strong {
  color: #ffb547;
  font-weight: 700;
  margin: 0 2px;
}
.sold-count-badge .fire-icon {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transform-origin: 50% 80%;
  animation: fireFlicker 1.1s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 120, 0, 0.55));
}
@keyframes fireFlicker {
  0%,100% { transform: scale(1)    rotate(-3deg); }
  25%     { transform: scale(1.15) rotate(4deg); }
  50%     { transform: scale(0.95) rotate(-2deg); }
  75%     { transform: scale(1.1)  rotate(3deg); }
}
@keyframes soldPulse {
  0%,100% { box-shadow: 0 0 0 0   rgba(255, 120, 0, 0.45); }
  50%     { box-shadow: 0 0 0 10px rgba(255, 120, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .sold-count-badge,
  .sold-count-badge .fire-icon { animation: none; }
}

/* ── Star Rating ── */
.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.product-rating--sm {
  font-size: 13px;
  margin-bottom: 8px;
}
.product-rating--lg {
  font-size: 16px;
  margin-bottom: 16px;
  padding: 8px 14px;
  background: rgba(255, 180, 0, .06);
  border: 1px solid rgba(255,180,0,.18);
  border-radius: 999px;
  display: inline-flex;
}
.rating-val {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: #ffc107;
}
.product-rating--sm .rating-val { font-size: 14px; }
.product-rating--lg .rating-val { font-size: 18px; }

.stars-wrap { display: inline-flex; gap: 1px; }
.star { font-size: 14px; line-height: 1; }
.star-full  { color: #ffc107; }
.star-half  { color: #ffc107; opacity: .6; }
.star-empty { color: rgba(255,193,7,.2); }

.product-rating--lg .star { font-size: 16px; }

.rating-count {
  font-size: 12px;
  color: var(--text-muted);
}
.product-rating--lg .rating-count { font-size: 14px; }

/* Compact variant used inside product cards */
.sold-count-badge.sold-count-card {
  font-size: 12px;
  padding: 6px 12px;
  margin-bottom: 12px;
  margin-top: 2px;
  border-radius: 999px;
}

.detail-purchase-card {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.detail-purchase-card .price {
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--xbox-bright), var(--purple-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.detail-purchase-card .price-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.detail-purchase-card .pay-methods {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.detail-purchase-card .pay-methods .lbl {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-1);
}

/* Detail content blocks */
.detail-block {
  margin-bottom: 36px;
}
.detail-block h3 {
  font-family: var(--font-ar);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.compare-card {
  padding: 18px;
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: var(--transition);
}
.compare-card:hover {
  border-color: var(--xbox-bright);
  background: var(--bg-card-hover);
}
.compare-card .name {
  font-family: var(--font-ar);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
  color: var(--text-primary);
  line-height: 1.3;
}
.compare-card .name .badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(22, 198, 12, 0.15);
  color: var(--xbox-bright);
  font-weight: 700;
  flex-shrink: 0;
}
.compare-card .text {
  font-family: var(--font-ar);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: 0;
}

.steps {
  display: grid;
  gap: 16px;
}
.step {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xbox), var(--xbox-bright));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(22, 198, 12, 0.3);
}
.step h4 { font-size: 16px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--text-muted); }

.notes {
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.06), rgba(255, 184, 77, 0.02));
  border: 1px solid rgba(255, 184, 77, 0.25);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.notes ul { display: grid; gap: 10px; }
.notes li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #d8d6cf;
}
.notes li::before {
  content: "•";
  color: var(--gold);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

/* ---------- Trust / testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: var(--transition);
}
.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(177, 92, 255, 0.4);
  box-shadow: var(--shadow-glow-purple);
}
.testimonial .stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.testimonial p {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 18px;
  line-height: 1.7;
}
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xbox), var(--purple));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-en);
}
.author-info .name { font-weight: 700; font-size: 14px; }
.author-info .meta { font-size: 12px; color: var(--text-muted); }

/* Payment cards */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 40px auto 0;
}
.payment-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.payment-card:hover {
  border-color: var(--xbox-bright);
  transform: translateY(-3px);
}
.payment-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-en);
  flex-shrink: 0;
}
.payment-icon.vodafone { background: linear-gradient(135deg, #e60000, #ff4d4d); color: white; }
.payment-icon.instapay { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; }
.payment-icon.payment-logo {
  background: transparent;
  padding: 0;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 12px;
}
.payment-icon.payment-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.pay-badge img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  background: transparent;
  padding: 0;
}
.payment-card .name { font-weight: 700; font-size: 16px; }
.payment-card .meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.trust-item .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 198, 12, 0.1);
  color: var(--xbox-bright);
  flex-shrink: 0;
}
.trust-item .ttl { font-weight: 700; font-size: 14px; }
.trust-item .sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ---------- Contact section ---------- */
.contact-section {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.contact-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(22, 198, 12, 0.1), transparent 70%);
  pointer-events: none;
}
.contact-card h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 12px; }
.contact-card p { color: var(--text-muted); margin-bottom: 32px; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  position: relative;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--xbox-bright);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-text { color: var(--text-muted); font-size: 14px; margin-top: 16px; max-width: 320px; }
.footer-links { display: grid; gap: 10px; }
.footer-links li, .footer-links a { color: var(--text-muted); font-size: 14px; transition: color var(--transition); }
.footer-links a:hover { color: var(--xbox-bright); }

/* Footer social icons (Instagram / TikTok / Facebook) */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-social:hover {
  color: var(--xbox-bright);
  border-color: rgba(22, 198, 12, 0.5);
  background: rgba(22, 198, 12, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}
@media (max-width: 480px) {
  .footer-social { width: 36px; height: 36px; }
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Floating Whatsapp ---------- */
.float-whats {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  animation: bob 2.4s ease-in-out infinite;
  transition: transform var(--transition);
}
.float-whats:hover { transform: scale(1.08); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 31px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10,20,14,.75);
  border: 1.5px solid rgba(22,198,12,.4);
  color: var(--xbox-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 98;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 16px rgba(22,198,12,.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.back-to-top::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid rgba(22,198,12,.55);
  animation: btt-ping 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes btt-ping {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.55); opacity: 0;  }
  100% { transform: scale(1.55); opacity: 0;  }
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--xbox-bright);
  box-shadow: 0 6px 22px rgba(22,198,12,.28);
  transform: translateY(-3px);
}
@media (max-width: 760px) {
  .back-to-top { width: 42px; height: 42px; bottom: 30px; right: 24px; }
}
@media (max-width: 480px) {
  .back-to-top { width: 42px; height: 42px; bottom: 30px; right: 24px; }
}

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

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  max-width: 440px;
  width: max-content;
  min-width: 220px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--xbox-bright);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(22, 198, 12, 0.35);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { gap: 18px; }
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-purchase-card { position: static; width: 100%; box-sizing: border-box; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* ── Detail page: fix mobile overflow ── */
  .detail-hero { overflow-x: hidden; }
  .detail-hero .container { overflow-x: hidden; }
  .detail-block { width: 100%; box-sizing: border-box; }
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .plans-table { width: 100%; min-width: 0; }
  .breadcrumb { flex-wrap: wrap; }

  /* ── Products grid: 2 cols on tablet ── */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 720px) {
  .header-inner {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .nav {
    position: fixed;
    top: var(--hdr-h, 88px); right: 0; left: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    transform: translateY(-200%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav-link { padding: 14px 16px; }
  .nav-link.active::after { display: none; }

  .menu-btn { display: flex; }

  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }

  .footer-grid { grid-template-columns: 1fr; }
  .float-whats { width: 54px; height: 54px; }

  .container { padding: 0 18px; }
}

@media (max-width: 420px) {
  .hero-stats { flex-wrap: wrap; }
  /* السلة و"اشتر الآن" و"التفاصيل" يبقوا جنب بعض حتى على الموبايل */
  .product-actions { flex-direction: row; flex-wrap: wrap; }
  .product-actions .btn { flex: 1 1 calc(50% - 5px); width: auto; }

  /* ── Products grid: 1 col on mobile ── */
  .products-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   DURATION PICKER + PLANS TABLE
   ============================================================ */
.duration-picker {
  margin: 14px 0 6px;
  padding: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.duration-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.duration-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.duration-pill {
  flex: 1 0 calc(33.333% - 6px);
  min-width: 64px;
  background: var(--bg-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.duration-pill:hover {
  border-color: var(--xbox-green);
  color: var(--text);
  transform: translateY(-1px);
}
.duration-pill.active {
  background: linear-gradient(135deg, var(--xbox-green), var(--xbox-green-dark));
  color: #001a08;
  border-color: var(--xbox-green);
  box-shadow: 0 4px 14px rgba(16,124,16,0.35);
}
.product-card.purple .duration-pill:hover {
  border-color: var(--neon-purple);
}
.product-card.purple .duration-pill.active,
.detail-purchase-card .duration-pill.active {
  background: linear-gradient(135deg, var(--neon-purple), #6c1fb8);
  color: #fff;
  border-color: var(--neon-purple);
  box-shadow: 0 4px 14px rgba(155,77,202,0.35);
}

/* Out-of-stock plan pill */
.duration-pill--oos,
.duration-pill[disabled] {
  opacity: 0.45;
  cursor: not-allowed !important;
  background: var(--bg-1);
  border-color: var(--border-soft);
  color: var(--text-dim);
  pointer-events: none;
}
.duration-pill--oos:hover,
.duration-pill[disabled]:hover {
  transform: none;
  border-color: var(--border-soft);
  color: var(--text-dim);
}
.pill-oos-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: var(--danger);
  margin-top: 2px;
  text-decoration: none;
  letter-spacing: 0.3px;
}

/* Flash-sale pill indicator */
.duration-pill--flash {
  border-color: rgba(251, 146, 60, 0.45);
  position: relative;
}
.duration-pill--flash:not(.active) {
  background: rgba(251, 146, 60, 0.06);
}
.pill-flash-tag {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #fb923c;
  margin-top: 2px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* ─── Featured Duration Pill ─────────────────────────── */
.duration-pill--featured {
  border-color: rgba(245, 158, 11, 0.6) !important;
  position: relative;
}
.duration-pill--featured:not(.active) {
  background: rgba(245, 158, 11, 0.07);
}
.pill-featured-tag {
  font-size: 10px;
  margin-inline-end: 3px;
  vertical-align: middle;
}

.plans-table {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
}
.plans-head,
.plans-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.plans-head {
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .5px;
}
.plans-row {
  border-top: 1px solid var(--border);
  transition: background .2s ease;
}
.plans-row:hover { background: rgba(16,124,16,0.06); }
.plan-months { font-weight: 700; color: var(--text); }
.plan-price {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--xbox-green);
}

@media (max-width: 480px) {
  .duration-pill { flex: 1 0 calc(50% - 6px); }
  .plans-head, .plans-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
  .plans-head > div:last-child,
  .plans-row > a { grid-column: 1 / -1; }
  .plans-row > a { width: 100%; justify-content: center; }

  /* ── Narrow phones: detail page ── */
  .compare-grid { grid-template-columns: 1fr; }
  .detail-hero { padding: 32px 0 20px; }
  .detail-grid { gap: 20px; }
  .detail-purchase-card { padding: 20px 16px; }
  .detail-block h3 { font-size: 18px; }
  .sold-count-badge { font-size: 12px; padding: 8px 12px; }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
body.admin-mode { background: #0a0a14; padding-top: 0; }

.admin-wrap {
  min-height: 100vh;
  padding: 30px 0 60px;
  background: linear-gradient(180deg, #0d0d18, #0a0a14);
}

/* Login screen */
.admin-login {
  max-width: 440px;
  margin: 80px auto;
  padding: 40px 32px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.admin-login-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xbox), var(--xbox-bright));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.admin-login-icon svg { width: 32px; height: 32px; }
.admin-login h2 { margin: 0 0 8px; font-size: 24px; }
.admin-login form { margin-top: 20px; }
.admin-login input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  margin-bottom: 12px;
  text-align: center;
}
.admin-login input:focus { outline: none; border-color: var(--xbox-bright); }
.admin-back {
  display: inline-block;
  margin-top: 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}
.admin-back:hover { color: var(--xbox-bright); }

/* Header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.admin-header h1 { margin: 0 0 4px; font-size: 28px; }
.admin-header .muted { font-size: 14px; color: var(--text-muted); margin: 0; }
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-status {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}
.admin-status.saved { color: #4ade80; background: rgba(74,222,128,.1); }
.admin-status.default { color: var(--text-muted); background: rgba(255,255,255,.05); }

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  flex-wrap: wrap;
}
.admin-tab {
  padding: 11px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all .2s ease;
  background: transparent;
}
.admin-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}
.admin-tab.active {
  color: var(--xbox-bright);
  background: rgba(16,124,16,.12);
  border-color: rgba(16,124,16,.35);
}

/* Toolbar */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-toolbar h3 { margin: 0; font-size: 18px; }

/* Products list */
.admin-products-list {
  display: grid;
  gap: 12px;
}
.admin-product-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all .2s ease;
}
.admin-product-row:hover {
  border-color: var(--xbox-bright);
  transform: translateX(-2px);
}
.apr-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(16,124,16,.15);
  color: var(--xbox-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.apr-icon.purple { background: rgba(155,77,202,.15); color: var(--neon-purple); }
.apr-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apr-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.apr-actions { display: flex; gap: 8px; }

/* Forms */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--xbox-bright);
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ══ Coupon Product Restriction Checkboxes ══ */
.coupon-prod-hint {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.coupon-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.coupon-prod-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1.5px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: all .18s;
  user-select: none;
}
.coupon-prod-check input[type="checkbox"] { display: none; }
.coupon-prod-check:hover {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
}
.coupon-prod-check.checked {
  border-color: var(--xbox-bright);
  background: rgba(16,124,16,.12);
}
.cpc-box {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,.25);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.coupon-prod-check.checked .cpc-box {
  background: var(--xbox-bright);
  border-color: var(--xbox-bright);
}
.coupon-prod-check.checked .cpc-box::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.cpc-all-box {
  background: rgba(255,255,255,.08);
}
.coupon-prod-check.checked.coupon-prod-all .cpc-box {
  background: #38bdf8;
  border-color: #38bdf8;
}
.coupon-prod-check.coupon-prod-all.checked {
  border-color: #38bdf8;
  background: rgba(56,189,248,.1);
}
.cpc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* Plans editor */
/* ── Feature rows editor (dashboard) ───────────────────────── */
.feat-editor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2, #0d1117);
  border: 1px solid var(--border-soft, #1a2230);
  border-radius: 10px;
  padding: 10px 12px;
}
.feat-editor-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feat-editor-fields input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-1, #090e15);
  border: 1px solid var(--border-soft, #1a2230);
  border-radius: 8px;
  color: #e8eaf0;
  font-family: var(--font-ar);
  font-size: 13.5px;
}
.feat-editor-fields input:focus {
  outline: none;
  border-color: var(--neon, #16c60c);
}
.feat-del-btn {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
  color: #f87171;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.feat-del-btn:hover { background: rgba(239,68,68,.22); }

.plans-editor {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.plan-row-header {
  display: grid;
  grid-template-columns: 90px auto 110px 110px 110px 90px 44px auto;
  gap: 8px;
  padding: 4px 0 2px;
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.plan-row {
  display: grid;
  grid-template-columns: 90px auto 110px 110px 110px 90px 44px auto;
  gap: 8px;
  align-items: center;
}
.plan-row input { padding: 8px 12px; }
.plan-row span { font-size: 13px; color: var(--text-muted); }
.plan-move-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plan-move-btns .btn {
  padding: 2px 6px;
  min-height: auto;
  line-height: 1.4;
  font-size: 12px;
}

/* Alerts & info */
.admin-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 14px;
}
.admin-alert.error { background: rgba(239,68,68,.1); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.admin-info {
  padding: 16px;
  background: rgba(155,77,202,.08);
  border: 1px solid rgba(155,77,202,.25);
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
}
.admin-info code {
  background: rgba(0,0,0,.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* Export tab */
.admin-export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-card {
  padding: 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.admin-card h3 { margin: 0 0 6px; font-size: 16px; }
.admin-card .muted { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; }
.admin-card textarea {
  width: 100%;
  min-height: 240px;
  padding: 12px;
  background: #0a0f0a;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #4ade80;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  margin-bottom: 10px;
  white-space: pre;
  direction: ltr;
}
.admin-card input[type="file"] {
  width: 100%;
  padding: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  border: none;
}
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(239,68,68,.35); }

@media (max-width: 760px) {
  .admin-header-actions { width: 100%; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-export-grid { grid-template-columns: 1fr; }
  .admin-product-row { grid-template-columns: 1fr; text-align: right; }
  .apr-actions { justify-content: flex-end; }
  .plan-row-header { display: none; }
  .plan-row { grid-template-columns: 1fr 1fr; gap: 6px; }
  .plan-row span:first-of-type { grid-column: 1; }
  .plan-row span:last-of-type { display: none; }
  .plan-row button { grid-column: 1 / -1; }
  .plan-move-btns { flex-direction: row; grid-column: 1 / -1; }
  .plan-move-btns .btn { flex: 1; }
}

.admin-secret-link {
  color: var(--text-muted);
  text-decoration: none;
  opacity: .35;
  margin-right: 4px;
  font-size: 18px;
  letter-spacing: 4px;
}
.admin-secret-link:hover { opacity: 1; color: var(--xbox-bright); }

/* ============================================================
   HEADER ACTIONS — wishlist + notifications
   ============================================================ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 12px;
}
.header-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
}
.header-icon-btn:hover {
  color: var(--xbox-bright);
  border-color: var(--xbox-bright);
  background: rgba(16,124,16,.12);
  transform: translateY(-1px);
}
.header-icon-btn.is-subscribed {
  color: var(--xbox-bright);
  border-color: var(--xbox-bright);
  background: rgba(16,124,16,.12);
}
.wishlist-badge {
  position: absolute;
  top: -4px;
  inset-inline-start: -4px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 6px rgba(239,68,68,.5);
}
@media (max-width: 760px) {
  .header-actions { gap: 6px; margin-inline-start: 6px; }
  .header-icon-btn { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .header-inner { gap: 10px; padding-top: 5px; padding-bottom: 5px; }
  .header-actions { gap: 6px; margin-inline-start: 4px; }
  .header-icon-btn { width: 40px; height: 40px; }
  .logo-text { font-size: 18px; }
}

/* ============================================================
   WISHLIST HEART (on cards)
   ============================================================ */
.wishlist-heart {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all .25s ease;
}
.wishlist-heart:hover {
  transform: scale(1.1);
  border-color: #ef4444;
  color: #ef4444;
}
.wishlist-heart.active {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239,68,68,.15);
}
.wishlist-heart.active svg { fill: #ef4444; stroke: #ef4444; }

.wishlist-heart.detail {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
}
.wishlist-heart.detail.active {
  background: rgba(239,68,68,.12);
}

/* Wishlist page */
.wishlist-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.wishlist-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--card);
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: 16px;
}
.wishlist-empty svg { color: var(--text-muted); margin-bottom: 16px; }
.wishlist-empty h3 { margin: 0 0 8px; font-size: 22px; }
.wishlist-empty p { color: var(--text-muted); margin: 0 0 20px; }

/* ============================================================
   COUPON BOX
   ============================================================ */
.coupon-box {
  margin: 16px 0;
  padding: 14px;
  background: rgba(168,85,247,.06);
  border: 1px dashed rgba(168,85,247,.35);
  border-radius: 12px;
}
.coupon-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.coupon-form input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.coupon-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168,85,247,.18);
}
.coupon-form button {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--accent), #c084fc);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all .25s ease;
  white-space: nowrap;
}
.coupon-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(168,85,247,.35); }
.coupon-msg {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  display: none;
}
.coupon-msg.ok  { display: block; color: var(--xbox-bright); }
.coupon-msg.err { display: block; color: #ef4444; }

/* Price stack with crossed-out original price */
.price-stack { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.price-original {
  display: none;
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  opacity: .75;
}

/* ============================================================
   ANNOUNCEMENT BANNER
   ============================================================ */
.ann-banner {
  position: sticky;
  top: var(--hdr-h, 56px);
  z-index: 99;
  background: linear-gradient(90deg, rgba(120,50,200,.85), rgba(10,90,10,.85));
  border-bottom: 1px solid rgba(168,85,247,.4);
  color: var(--text);
  font-size: 13px;
  padding: 12px 0;
}
.ann-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ann-bell { color: var(--accent); flex-shrink: 0; display: flex; align-items: center; }
.ann-text { flex: 1; }
.ann-text strong { color: var(--xbox-bright); margin-inline-end: 6px; }
.ann-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: all .2s ease;
}
.ann-close:hover { color: var(--text); background: rgba(255,255,255,.08); }

@media (max-width: 760px) {
  .ann-banner { font-size: 12px; padding: 10px 0; }
}

@media (min-width: 768px) {
  .ann-banner { padding: 14px 0; font-size: 14px; }
}

/* ============================================================
   ===== NEW: CATEGORY STRIP / NITRO / OTHER / PAYMENT PAGE
   Added on top of the original Game Pass styles. Nothing above
   this comment was modified. Safe to remove this whole block.
   ============================================================ */

/* ---- Category quick-nav strip ---- */
.cat-strip-section { padding: 28px 0 0; }
.cat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px;
  background: linear-gradient(135deg, rgba(16,124,16,.06), rgba(168,85,247,.06));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.08);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}
.cat-chip:hover {
  color: var(--text);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.cat-chip.active {
  background: linear-gradient(135deg, var(--xbox-green), var(--xbox-bright));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(16,124,16,.35);
}
.cat-chip-emoji { font-size: 16px; line-height: 1; }

/* ---- Nitro accent (Discord brand-ish blurple → cyan) ---- */
:root {
  --nitro-1: #5865F2;
  --nitro-2: #00d4ff;
}
.section-nitro {
  background:
    radial-gradient(800px 360px at 80% 0%, rgba(88,101,242,.10), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(0,212,255,.08), transparent 60%);
}
.nitro-eyebrow {
  background: linear-gradient(90deg, var(--nitro-1), var(--nitro-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-nitro {
  background: linear-gradient(90deg, var(--nitro-1), var(--nitro-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.product-card.nitro {
  border-color: rgba(88,101,242,.28);
  background: linear-gradient(180deg, rgba(88,101,242,.06), rgba(0,212,255,.03));
}
.product-card.nitro:hover {
  border-color: rgba(88,101,242,.6);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(88,101,242,0.5), 0 0 60px rgba(88,101,242,0.2);
}
.product-card.nitro .product-icon {
  color: var(--nitro-1);
  filter: drop-shadow(0 0 18px rgba(88,101,242,.45));
}
.product-card.nitro .duration-pill.active {
  background: linear-gradient(135deg, var(--nitro-1), var(--nitro-2));
  border-color: transparent;
  color: #fff;
}
.product-card.nitro .product-tag {
  background: linear-gradient(135deg, var(--nitro-1), var(--nitro-2));
  color: #fff;
}
.btn.btn-nitro {
  background: linear-gradient(135deg, var(--nitro-1), var(--nitro-2));
  color: #fff;
  border: none;
}
.btn.btn-nitro:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(88,101,242,.35);
  transform: translateY(-1px);
}
.products-section-title.nitro { color: var(--nitro-1); }
.products-section-title.nitro .icon { color: var(--nitro-1); }
.tab-btn[data-filter="nitro"].active {
  background: linear-gradient(135deg, var(--nitro-1), var(--nitro-2));
  color: #fff;
  border-color: transparent;
}

/* ============================================================
   Per-category neon system
   Each .product-card.neon gets a `--neon` color set inline from
   the category's admin-configurable color. The rules below use
   color-mix() so the same hex value drives the always-on border
   tint, the hover glow, the icon background, the active duration
   pill, and the buy button — everywhere ProductCard renders
   (home page, products page, search results, wishlist, etc.).
   ============================================================ */
.product-card.neon {
  --neon: #16a34a; /* fallback if inline style is missing */
  border-color: color-mix(in srgb, var(--neon) 32%, var(--border));
  box-shadow: 0 0 0 1px transparent,
              0 0 22px -10px var(--neon);
}
.product-card.neon::before {
  background: linear-gradient(135deg, transparent 65%, color-mix(in srgb, var(--neon) 14%, transparent));
}
.product-card.neon:hover {
  border-color: color-mix(in srgb, var(--neon) 65%, transparent);
  box-shadow: 0 20px 44px -12px color-mix(in srgb, var(--neon) 50%, transparent),
              0 0 30px -4px color-mix(in srgb, var(--neon) 38%, transparent);
}
.product-card.neon .product-icon {
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--neon) 22%, transparent),
              color-mix(in srgb, var(--neon) 6%, transparent));
  color: var(--neon);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--neon) 55%, transparent));
}
.product-card.neon .product-features li svg { color: var(--neon); }
.product-card.neon .product-tag {
  background: color-mix(in srgb, var(--neon) 18%, transparent);
  color: var(--neon);
  border-color: color-mix(in srgb, var(--neon) 35%, transparent);
}
.product-card.neon .duration-pill:hover {
  border-color: color-mix(in srgb, var(--neon) 70%, transparent);
  color: var(--text);
}
.product-card.neon .duration-pill.active {
  background: linear-gradient(135deg, var(--neon), color-mix(in srgb, var(--neon) 60%, #000));
  border-color: var(--neon);
  color: #fff;
  box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--neon) 55%, transparent);
}

/* ── Availability Badge ── */
.product-avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 3px 9px 3px 7px;
  border-radius: 20px;
  margin-bottom: 4px;
}
.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.product-avail-badge.avail-yes {
  color: var(--xbox-bright);
  background: rgba(22,198,12,.1);
}
.product-avail-badge.avail-yes .avail-dot {
  background: var(--xbox-bright);
  box-shadow: 0 0 6px var(--xbox-bright);
  animation: dotPulse 2.2s ease-in-out infinite;
}
.product-avail-badge.avail-no {
  color: #ff4d6d;
  background: rgba(255,77,109,.1);
}
.product-avail-badge.avail-no .avail-dot {
  background: #ff4d6d;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 5px var(--xbox-bright); }
  50%      { box-shadow: 0 0 12px var(--xbox-bright), 0 0 20px var(--xbox-bright); }
}

/* ── Unavailable card state ── */
.product-card.product-unavailable {
  border-color: rgba(255,77,109,.40) !important;
  box-shadow: 0 0 18px rgba(255,77,109,.08) !important;
}
.product-card.product-unavailable:hover {
  border-color: rgba(255,77,109,.70) !important;
  box-shadow: 0 0 28px rgba(255,77,109,.18) !important;
}

/* Buy button — uses the same per-card --neon color */
.btn.btn-neon {
  background: linear-gradient(135deg, var(--neon, #16a34a), color-mix(in srgb, var(--neon, #16a34a) 65%, #000));
  border: 1px solid color-mix(in srgb, var(--neon, #16a34a) 70%, transparent);
  color: #fff;
  box-shadow: 0 6px 18px -8px var(--neon, #16a34a);
}
.btn.btn-neon:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px var(--neon, #16a34a);
}

/* Header nav: highlight Nitro link */
.nav-link.nav-link-nitro {
  color: var(--nitro-2);
}
.nav-link.nav-link-nitro:hover {
  color: var(--nitro-2);
  text-shadow: 0 0 12px rgba(0,212,255,.4);
}

/* ---- Other Products empty section ---- */
.other-empty-card {
  max-width: 560px;
  margin: 36px auto 0;
  text-align: center;
  padding: 44px 28px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
    radial-gradient(400px 200px at 50% 0%, rgba(16,124,16,.08), transparent 70%);
  border: 1px dashed rgba(255,255,255,.14);
}
.other-empty-icon {
  display: inline-flex;
  width: 72px; height: 72px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(16,124,16,.12);
  color: var(--xbox-bright);
  margin-bottom: 16px;
}
.other-empty-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.other-empty-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .cat-chip { padding: 8px 14px; font-size: 13px; }
  .cat-chip-emoji { font-size: 15px; }
  .other-empty-card { padding: 32px 18px; }
}

/* ============================================================
   ===== PAYMENT PAGE STYLES (used by payment.html only)
   ============================================================ */
.pay-page { padding: 40px 0 80px; min-height: calc(100vh - 70px); }
.pay-head { text-align: center; margin-bottom: 28px; }
.pay-head h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 8px;
}
.pay-head p { color: var(--text-muted); }

.pay-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 24px auto 32px;
  max-width: 520px;
}
.pay-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.pay-step::after {
  content: "";
  position: absolute;
  top: 16px;
  inset-inline-start: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 2px;
  background: rgba(255,255,255,.08);
}
.pay-step:last-child::after { display: none; }
.pay-step .num {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 800;
}
.pay-step.active { color: var(--xbox-bright); }
.pay-step.active .num {
  background: linear-gradient(135deg, var(--xbox-green), var(--xbox-bright));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(16,124,16,.35);
}
.pay-step.done .num {
  background: rgba(16,124,16,.18);
  border-color: rgba(16,124,16,.4);
  color: var(--xbox-bright);
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .pay-grid { grid-template-columns: 1fr; }
}

.pay-card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 22px;
}
.pay-card h3 {
  margin: 0 0 14px;
  font-size: 17px;
  display: flex; align-items: center; gap: 8px;
}

/* Order summary card */
.pay-summary .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  font-size: 14px;
}
.pay-summary .row:last-child { border-bottom: none; }
.pay-summary .row .lbl { color: var(--text-muted); }
.pay-summary .row .val { color: var(--text); font-weight: 700; }
.pay-summary .total .val {
  color: var(--xbox-bright);
  font-size: 22px;
  font-weight: 900;
  font-family: 'Rajdhani', sans-serif;
}

/* Payment methods */
.pay-method {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 10px;
}
.pay-method img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: #fff; padding: 4px; }
.pay-method .name { font-weight: 800; font-size: 14px; }
.pay-method .meta { color: var(--text-muted); font-size: 12px; }

.pay-number {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px;
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(16,124,16,.14), rgba(16,124,16,.04));
  border: 1px dashed rgba(16,124,16,.4);
  border-radius: 12px;
}
.pay-number .lbl { color: var(--text-muted); font-size: 12px; }
.pay-number .num {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--xbox-bright);
  letter-spacing: 1px;
  direction: ltr;
}
.pay-copy-btn {
  background: rgba(16,124,16,.2);
  border: 1px solid rgba(16,124,16,.45);
  color: var(--xbox-bright);
  padding: 8px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.pay-copy-btn:hover { background: rgba(16,124,16,.35); }
.pay-copy-btn.copied { background: var(--xbox-green); color: #fff; }

.pay-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(168,85,247,.06);
  border: 1px solid rgba(168,85,247,.18);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.6;
}

/* Form */
.pay-form .field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.pay-form label {
  font-size: 13px; font-weight: 700; color: var(--text);
}
.pay-form input[type="text"],
.pay-form input[type="tel"],
.pay-form select {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  transition: all .2s;
}
.pay-form input:focus,
.pay-form select:focus {
  outline: none;
  border-color: var(--xbox-bright);
  background: rgba(16,124,16,.05);
  box-shadow: 0 0 0 3px rgba(16,124,16,.18);
}

.pay-form textarea {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  color: var(--text);
  padding: 14px 16px;
  min-height: 124px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
  transition: all .2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.pay-form textarea::placeholder {
  color: rgba(255,255,255,.42);
  line-height: 1.7;
}
.pay-form textarea:focus {
  outline: none;
  border-color: var(--xbox-bright);
  background: rgba(16,124,16,.05);
  box-shadow: 0 0 0 3px rgba(16,124,16,.18), inset 0 1px 0 rgba(255,255,255,.04);
}

/* ----- Custom select (طريقة الدفع المستخدمة) -----
   - يلغي شكل المتصفح الافتراضي البدائي
   - يضيف سهم SVG أخضر متناسق مع تيمة الموقع
   - يعمل صح في RTL (السهم على اليسار)
   - يضبط مظهر الـoptions على dark theme (Chromium/Firefox) */
.pay-form select {
  /* RTL: السهم على اليسار، فنحجز مساحة على اليسار للسهم */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-inline-start: 14px;
  padding-inline-end: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2316a34a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 8 10 13 15 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  /* في RTL: left = على اليسار البصري ⇒ السهم بعد آخر النص العربي */
  background-position: left 14px center;
  background-size: 16px 16px;
  font-weight: 600;
  letter-spacing: .01em;
}
.pay-form select:hover {
  border-color: rgba(16,124,16,.5);
  background-color: rgba(16,124,16,.04);
}
.pay-form select:focus {
  /* أبقي السهم بنفس المكان حتى مع focus */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2322c55e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 8 10 13 15 8'/%3E%3C/svg%3E");
  background-color: rgba(16,124,16,.05);
}
/* خلي الـoptions تستخدم dark theme بدل ما تفضل أبيض ويسبب تباين سيء (Chromium) */
.pay-form select {
  color-scheme: dark;
}
.pay-form select option {
  background: #0f1419;
  color: var(--text);
  padding: 10px;
}
.pay-form select option:disabled,
.pay-form select option[value=""] {
  color: var(--text-muted);
}

/* ── Custom payment-method dropdown ── */
.pay-select-wrap { position: relative; }

.pay-select-trigger {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,255,255,.055);
  border: 1.5px solid rgba(255,255,255,.14);
  border-inline-end: 3px solid var(--xbox-bright, #107c10);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .1s;
  text-align: right;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  position: relative;
}
.pay-select-trigger:hover {
  border-color: rgba(16,124,16,.55);
  border-inline-end-color: #19c019;
  background: rgba(16,124,16,.07);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.pay-select-trigger:active { transform: translateY(0); }
.pay-select-trigger.open {
  border-color: var(--xbox-bright, #107c10);
  border-inline-end-color: #19c019;
  background: rgba(16,124,16,.08);
  box-shadow: 0 0 0 3px rgba(16,124,16,.2), 0 4px 20px rgba(0,0,0,.28);
}

.pay-select-chevron {
  flex-shrink: 0;
  color: var(--xbox-bright, #107c10);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  background: rgba(16,124,16,.12);
  border-radius: 6px;
  padding: 2px;
}
.pay-select-trigger.open .pay-select-chevron {
  transform: rotate(180deg);
  background: rgba(16,124,16,.2);
}

.pay-select-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.pay-select-preview img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}
.pay-select-placeholder { color: var(--text-muted, #8a9ab0); }
.pay-select-chosen-name  { font-weight: 700; font-size: 14px; }

.pay-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  inset-inline-end: 0;
  background: #131e2e;
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(0,0,0,.55);
  z-index: 300;
  overflow: hidden;
  display: none;
  max-height: 260px;
  overflow-y: auto;
}
.pay-select-menu.open {
  display: block;
  animation: payMenuIn .18s ease;
}
@keyframes payMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.pay-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.pay-select-option:last-child { border-bottom: none; }
.pay-select-option:hover { background: rgba(16,124,16,.12); }
.pay-select-option:focus { background: rgba(16,124,16,.12); outline: none; }
.pay-select-option.selected { background: rgba(16,124,16,.14); }

.pay-select-option img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}
.pay-select-opt-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(16,124,16,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.pay-select-opt-body { flex: 1; min-width: 0; }
.pay-select-opt-name { font-weight: 700; font-size: 14px; color: var(--text); }
.pay-select-opt-desc { font-size: 12px; color: var(--text-muted, #8a9ab0); margin-top: 2px; }
.pay-select-opt-check {
  color: var(--xbox-bright, #107c10);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s;
}
.pay-select-option.selected .pay-select-opt-check { opacity: 1; }

/* Screenshot drop zone */
.pay-drop {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 18px;
  border: 2px dashed rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.pay-drop:hover, .pay-drop.dragover {
  border-color: var(--xbox-bright);
  background: rgba(16,124,16,.06);
}
.pay-drop .ico {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(16,124,16,.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--xbox-bright);
}
.pay-drop .title { font-weight: 800; font-size: 14px; }
.pay-drop .hint { font-size: 12px; color: var(--text-muted); }
.pay-drop input[type="file"] { display: none; }
.pay-preview {
  margin-top: 12px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: none;
}
.pay-preview img { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #000; }
.pay-preview .remove {
  position: absolute; top: 8px; inset-inline-end: 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.pay-submit {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.pay-foot-note {
  text-align: center;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}
.pay-foot-note a { color: var(--xbox-bright); }

/* Success state */
.pay-success {
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
  background: linear-gradient(180deg, rgba(16,124,16,.12), rgba(16,124,16,.02));
  border: 1px solid rgba(16,124,16,.4);
  border-radius: 20px;
  padding: 36px 24px;
}
.pay-success .check {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xbox-green), var(--xbox-bright));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(16,124,16,.4);
}
.pay-success h2 { margin: 0 0 8px; font-size: 24px; }
.pay-success .order-id {
  display: inline-block;
  margin: 14px 0;
  padding: 10px 18px;
  background: rgba(16,124,16,.18);
  border: 1px dashed rgba(16,124,16,.45);
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--xbox-bright);
  letter-spacing: 1px;
  direction: ltr;
}
.pay-success p { color: var(--text-muted); margin: 8px 0; }

/* ── Success steps (order confirmation) ── */
.success-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  text-align: right;
}
.success-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  animation: stepSlideIn .4s ease both;
}
.success-step:nth-child(1) { animation-delay: .1s; }
.success-step:nth-child(2) { animation-delay: .25s; }
.success-step:nth-child(3) { animation-delay: .4s; }
@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.success-step-icon { font-size: 18px; flex-shrink: 0; }

/* ── Share button (cards) ── */
.card-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  margin-bottom: 10px;
  transition: color .2s, border-color .2s, background .2s;
}
.card-share-btn:hover {
  color: var(--xbox-bright);
  border-color: rgba(16,124,16,.4);
  background: rgba(16,124,16,.06);
}

/* ── Share button (detail page) ── */
.detail-share-row {
  margin-bottom: 14px;
}


/* ============================================================
   PHASE 2 — Generic Homepage + Admin polish
   (Safe to remove this whole block to revert.)
   ============================================================ */

/* Generic hero (no featured product card) */
.hero-generic {
  padding-top: 80px;
  padding-bottom: 60px;
  text-align: center;
}
.hero-generic-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-generic-inner .hero-badge { margin: 0 auto 22px; }
.hero-generic-inner h1 {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.25;
  margin: 0 0 18px;
}
.hero-generic-inner .lead {
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: 17px;
  line-height: 1.85;
}
.hero-generic .hero-actions { justify-content: center; }
.hero-stats-center { justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 36px !important; }
@media (max-width: 640px) {
  .hero-stats-center { gap: 12px; }
  .hero-stats-center .hero-stat { min-width: 140px; flex: 1 1 40%; }
}

/* Category cards grid (homepage) */
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.cat-card {
  --neon: #16a34a;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
  box-shadow: 0 0 0 1px transparent, 0 0 18px -8px var(--neon);
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--neon), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .55;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--neon) 60%, transparent);
  box-shadow: 0 18px 48px -12px color-mix(in srgb, var(--neon) 55%, transparent),
              0 0 28px -4px color-mix(in srgb, var(--neon) 40%, transparent);
}
.cat-card:hover::before { opacity: 1; }

.cat-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: var(--bg-1);
}
.cat-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.cat-card:hover .cat-card-image { transform: scale(1.04); }
.cat-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card-icon-fallback svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 12px currentColor);
}
.cat-card-count {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--neon) 50%, transparent);
}
.cat-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
  flex: 1;
}
.cat-card-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}
.cat-card-sub {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.cat-card-cta {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--neon), color-mix(in srgb, var(--neon) 70%, #000));
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  box-shadow: 0 6px 18px -8px var(--neon);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cat-card-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 10px 24px -6px var(--neon);
}
.cat-card-cta svg { transition: transform .2s ease; }
.cat-card:hover .cat-card-cta svg { transform: scaleX(-1) translateX(3px); }

/* Why-us section spacing */
.why-us .trust-strip { margin-top: 28px; }

/* Admin — category groups & nitro icon variant */
.admin-cat-group { margin-top: 26px; }
.admin-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.admin-cat-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.admin-cat-head .apr-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.apr-icon.nitro {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #fff;
}

/* ============================================================
   CART page (سلة المشتريات)
   ============================================================ */
.btn-icon-only {
  flex: 0 0 auto;
  width: 38px;
  padding: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; }
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 14px;
  transition: border-color .2s, transform .2s;
}
.cart-item:hover { border-color: var(--accent, #16a34a); }

.cart-item-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #107C10, #0a5a0a);
  color: #fff;
}
.cart-item-icon.purple { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.cart-item-icon.nitro  { background: linear-gradient(135deg, #5865F2, #4752C4); }

.cart-item-info { min-width: 0; }
.cart-item-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}
.cart-item-name a { color: inherit; text-decoration: none; }
.cart-item-name a:hover { color: var(--accent, #16a34a); }
.cart-item-meta {
  color: var(--text-muted, #9ca3af);
  font-size: 13px;
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 4px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: background .15s;
}
.qty-btn:hover { background: var(--accent, #16a34a); }
.qty-num {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
}

.cart-item-total {
  font-weight: 800;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  color: var(--accent, #16a34a);
  white-space: nowrap;
}

.cart-item-remove {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text-muted, #9ca3af);
  cursor: pointer;
  transition: color .15s, background .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-item-remove:hover { color: #ef4444; background: rgba(239,68,68,0.1); }

@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 48px 1fr auto;
    grid-template-areas:
      "icon info remove"
      "qty  qty  total";
    row-gap: 12px;
  }
  .cart-item-icon   { grid-area: icon; width: 48px; height: 48px; }
  .cart-item-info   { grid-area: info; }
  .cart-item-qty    { grid-area: qty; justify-self: start; }
  .cart-item-total  { grid-area: total; justify-self: end; }
  .cart-item-remove { grid-area: remove; }
}

.cart-actions-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cart-clear-btn:hover { color: #ef4444 !important; border-color: #ef4444 !important; }

.cart-summary {
  position: sticky;
  top: 90px;
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 16px;
  padding: 22px;
}
.cart-summary h3 {
  margin: 0 0 14px;
  font-size: 18px;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted, #9ca3af);
}
.cart-row.total {
  border-top: 1px dashed rgba(255,255,255,0.12);
  margin-top: 10px;
  padding-top: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.cart-row-discount { color: #10b981; }

/* ============================================================
   ADMIN ORDERS — Phase 1 (PHP backend)
   ============================================================ */
.admin-orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.admin-orders-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-orders-actions input[type="search"],
.admin-orders-actions select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
}
.admin-orders-actions input[type="search"] { min-width: 240px; }
.admin-orders-actions input[type="search"]:focus,
.admin-orders-actions select:focus {
  outline: none;
  border-color: #107C10;
  box-shadow: 0 0 0 3px rgba(16, 124, 16, 0.15);
}

.ord-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.ord-row {
  display: grid;
  grid-template-columns: 120px 1.2fr 1fr 100px 50px 110px 130px 72px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  transition: background 0.15s ease;
}
.ord-row:hover { background: rgba(255,255,255,0.06); }
.ord-row-head {
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 14px 4px;
}
.ord-row-head:hover { background: transparent; }

.ord-code {
  font-family: 'Rajdhani', monospace;
  font-weight: 800;
  color: #10b981;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.ord-code:hover { text-decoration: underline; }

.ord-thumb-link {
  display: inline-block;
  font-size: 22px;
  text-decoration: none;
  filter: grayscale(0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.ord-thumb-link:hover { transform: scale(1.15); filter: none; }

.ord-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ord-status-pending    { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.ord-status-processing { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.ord-status-completed  { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.ord-status-cancelled  { background: rgba(156, 163, 175, 0.15); color: #9ca3af; border: 1px solid rgba(156, 163, 175, 0.3); }

/* تفاصيل الطلب */
.ord-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}
.ord-detail-col { display: flex; flex-direction: column; }
.ord-detail-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  font-size: 14px;
  flex-wrap: wrap;
}
.ord-detail-row:last-child { border-bottom: none; }
.ord-detail-row .lbl {
  color: var(--text-muted, #9ca3af);
  min-width: 120px;
  font-weight: 600;
}

.ord-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ord-items-table th,
.ord-items-table td {
  padding: 10px 8px;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ord-items-table th {
  background: rgba(255,255,255,0.03);
  font-weight: 700;
  color: var(--text-muted, #9ca3af);
  font-size: 12px;
  text-transform: uppercase;
}
.ord-items-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.ord-screenshot { text-align: center; }
.ord-screenshot img {
  max-width: 100%;
  max-height: 420px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.ord-screenshot img:hover { transform: scale(1.02); }

/* ══ Order Manage Card ══════════════════════════════════ */
.ord-manage-card {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  overflow: hidden;
}
.ord-manage-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--text);
}
.ord-manage-section {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ord-manage-section:last-of-type { border-bottom: none; }
.ord-manage-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Status Grid — 2×2 buttons */
.ord-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ord-status-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font-ar);
}
.ord-status-btn:hover {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.07);
  color: var(--text);
}
.osb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
  transition: background .2s;
}
/* pending */
.ord-status-btn.active               { border-color: #f59e0b; background: rgba(245,158,11,.12); color: #fbbf24; }
.ord-status-btn.active .osb-dot      { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
/* processing */
.ord-status-btn.processing.active    { border-color: #38bdf8; background: rgba(56,189,248,.12); color: #38bdf8; }
.ord-status-btn.processing.active .osb-dot { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }
/* completed */
.ord-status-btn.completed.active     { border-color: #22c55e; background: rgba(34,197,94,.12); color: #22c55e; }
.ord-status-btn.completed.active .osb-dot  { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
/* cancelled */
.ord-status-btn.cancelled.active     { border-color: #ef4444; background: rgba(239,68,68,.12); color: #ef4444; }
.ord-status-btn.cancelled.active .osb-dot  { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

/* Textareas */
.ord-manage-textarea {
  width: 100%;
  background: rgba(0,0,0,.25);
  border: 1.5px solid rgba(255,255,255,.09);
  border-radius: 10px;
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--font-ar);
  padding: 10px 13px;
  resize: vertical;
  transition: border-color .2s;
  box-sizing: border-box;
}
.ord-manage-textarea:focus {
  outline: none;
  border-color: rgba(16,124,16,.5);
  box-shadow: 0 0 0 3px rgba(16,124,16,.08);
}
.ord-delivery-textarea {
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  direction: ltr;
  letter-spacing: .3px;
}

/* Action buttons row */
.ord-manage-actions {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.15);
}
.ord-save-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
}
.ord-notify-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 600;
  white-space: nowrap;
}
.ord-notify-btn:hover { background: rgba(56,189,248,.1); }
.ord-delete-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border-color: #ef4444;
  color: #ef4444;
  font-weight: 600;
  white-space: nowrap;
}
.ord-delete-btn:hover { background: rgba(239,68,68,.1); }
.ord-notify-status {
  padding: 0 18px 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Alerts variants */
.admin-alert.warn {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 16px 18px;
  border-radius: 10px;
}
.admin-alert.warn code {
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #fde68a;
}

/* الموبايل: حول الجدول لكروت */
@media (max-width: 900px) {
  .ord-detail-grid { grid-template-columns: 1fr; }
  .ord-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .ord-row-head { display: none; }
  .ord-row > div { padding: 4px 0; }
  .admin-orders-actions input[type="search"] { min-width: 0; flex: 1; }
}

/* ============================================================
   USER AUTH + MY ORDERS
   ============================================================ */

/* ── Auth / Login page ── */
.auth-section {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 42px 32px;
  border-radius: 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.auth-icon { font-size: 52px; margin-bottom: 14px; }
.auth-card h2 { margin: 0 0 8px; font-size: 22px; }
.auth-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; line-height: 1.7; }
.auth-form { text-align: right; }
.auth-field { margin-bottom: 16px; }
.auth-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.auth-label-note { font-size: 11px; opacity: .7; font-weight: 400; }
.auth-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-ar);
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.auth-input:focus {
  outline: none;
  border-color: rgba(16,124,16,.55);
  box-shadow: 0 0 0 3px rgba(16,124,16,.12);
}
.auth-input[dir="ltr"] { font-family: var(--font-en); letter-spacing: .3px; }
.btn-full { width: 100%; justify-content: center; }
.auth-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 14px; line-height: 1.6; }
.login-error {
  margin-top: 12px;
  padding: 11px 14px;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 10px;
  color: #f87171;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* ── My Orders page ── */
.myorders-section { padding: 44px 0 80px; }
.myorders-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.myorders-header h2 { margin: 0 0 4px; }
.myorders-sub { color: var(--text-muted); font-size: 14px; margin: 0; }
.myorders-section,
.myorders-section * {
  color: #fff;
}
.myorders-sub,
.order-date,
.order-footer,
.order-items-mini {
  color: rgba(255,255,255,.82) !important;
}
.my-order-card {
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(255,255,255,.12) !important;
}
.order-code,
.orders-empty a {
  color: #fff !important;
}
.order-code:hover {
  color: var(--xbox-bright) !important;
}

/* ── My Order Card ── */
.my-order-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 18px;
  transition: border-color .25s, box-shadow .25s;
}
.my-order-card:hover {
  border-color: rgba(16,124,16,.25);
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
}
.my-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 8px;
}
.order-code {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 15px;
  color: var(--xbox-bright);
  letter-spacing: .5px;
}
.order-date { font-size: 12px; color: var(--text-muted); }
.order-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
  color: var(--text-muted);
}
.order-items-mini {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Order Progress Bar ── */
.order-progress {
  position: relative;
  padding: 20px 0 10px;
  direction: ltr;
  margin: 14px 0;
}
.progress-track {
  position: absolute;
  top: 41px;
  left: calc(16.66% + 22px);
  right: calc(16.66% + 22px);
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--xbox-green), var(--xbox-bright));
  border-radius: 4px;
  transition: width .9s cubic-bezier(.4,0,.2,1);
}
.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 10px;
}
.step-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.09);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.step-dot .step-num {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  line-height: 1;
}
.progress-step.done .step-dot {
  background: var(--xbox-green);
  border-color: var(--xbox-green);
  color: #fff;
  box-shadow: 0 0 14px rgba(16,124,16,.45);
}
.progress-step.done .step-dot svg { stroke: #fff; }
.progress-step.active .step-dot {
  background: rgba(16,124,16,.16);
  border-color: var(--xbox-bright);
  box-shadow: 0 0 0 4px rgba(16,124,16,.15);
  animation: pulseDot 2s ease-in-out infinite;
}
.progress-step.active .step-dot .step-num { color: var(--xbox-bright); font-size: 17px; font-weight: 900; }
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 4px rgba(16,124,16,.12); }
  50%      { box-shadow: 0 0 0 7px rgba(16,124,16,.25); }
}
.step-info { text-align: center; }
.step-label {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.step-sub {
  font-size: 11px;
  color: var(--xbox-bright);
  margin-top: 4px;
  opacity: .9;
  font-weight: 600;
}
.progress-step.done .step-label,
.progress-step.active .step-label {
  color: #fff;
}

.order-progress.cancelled {
  direction: rtl;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.18);
  border-radius: 12px;
  padding: 14px 18px;
  color: #f87171;
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0;
}
.cancel-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(239,68,68,.14);
  border: 1.5px solid rgba(239,68,68,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
}

/* ── Delivery Details Box ── */
.delivery-details {
  padding: 16px 18px 18px;
  background: rgba(16,124,16,.07);
  border: 1px solid rgba(16,124,16,.25);
  border-radius: 14px;
  margin-top: 14px;
}
.delivery-body { width: 100%; }
.delivery-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.delivery-title {
  font-weight: 700;
  color: var(--xbox-bright);
  font-size: 13px;
}
.btn-copy-delivery {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(16,124,16,.35);
  background: rgba(16,124,16,.1);
  color: var(--xbox-bright);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-copy-delivery:hover {
  background: rgba(16,124,16,.2);
  border-color: var(--xbox-bright);
}
.btn-copy-delivery.copied {
  background: rgba(16,124,16,.25);
  border-color: var(--xbox-green);
  color: #4ade80;
}
.delivery-content {
  font-family: var(--font-en);
  direction: ltr;
  font-size: 13.5px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
  background: rgba(0,0,0,.25);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07);
  line-height: 1.7;
  user-select: all;
}
.delivery-pending {
  padding: 12px 16px;
  background: rgba(245,158,11,.07);
  border: 1px solid rgba(245,158,11,.18);
  border-radius: 10px;
  color: #fbbf24;
  font-size: 13px;
  margin-top: 14px;
}
.delivery-pending-title {
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  font-size: 13px;
}
.delivery-note-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.delivery-note-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  line-height: 1.6;
  resize: vertical;
  min-height: 84px;
}
.delivery-note-input::placeholder {
  color: var(--text-muted);
  opacity: .8;
}

/* ── Loading / Empty states ── */
.orders-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 16px;
}
.orders-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-muted);
}
.orders-empty .empty-icon { font-size: 56px; margin-bottom: 16px; }
.orders-empty h3 { margin: 0 0 8px; color: var(--text); font-size: 18px; }
.orders-empty a { color: var(--xbox-bright); }

/* ══════════════════════════════════════════
   ANALYTICS DASHBOARD
══════════════════════════════════════════ */
.analytics-wrap { padding-bottom: 40px; }
.analytics-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.analytics-top h3 { margin: 0; font-size: 18px; }

/* Stat cards row */
.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.analytics-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .2s, box-shadow .2s;
}
.analytics-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.analytics-card-icon { font-size: 26px; line-height: 1; }
.analytics-card-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  font-family: var(--font-en);
}
.analytics-card-label { font-size: 12px; color: var(--text-muted); }
.analytics-card-sub   { font-size: 11px; color: var(--xbox-bright); margin-top: 2px; }

/* accent colours per card */
.analytics-card.accent-green { border-color: rgba(16,124,16,.3); }
.analytics-card.accent-blue  { border-color: rgba(59,130,246,.3); }
.analytics-card.accent-amber { border-color: rgba(245,158,11,.3); }
.analytics-card.accent-rose  { border-color: rgba(239,68,68,.3); }
.analytics-card.accent-teal  { border-color: rgba(20,184,166,.4); }
.analytics-card.accent-green .analytics-card-val { color: #4ade80; }
.analytics-card.accent-blue  .analytics-card-val { color: #60a5fa; }
.analytics-card.accent-amber .analytics-card-val { color: #fbbf24; }
.analytics-card.accent-rose  .analytics-card-val { color: #f87171; }
.analytics-card.accent-teal  .analytics-card-val { color: #2dd4bf; }

/* Chart grids */
.analytics-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 700px) { .analytics-grid-2 { grid-template-columns: 1fr; } }

.analytics-chart-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 20px 18px;
  margin-bottom: 16px;
}
.analytics-chart-card h4 {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
}
.analytics-chart-card canvas { max-height: 240px; }

/* Status bar inside cards */
.analytics-status-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.analytics-status-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.analytics-status-row .label { min-width: 110px; color: var(--text-muted); }
.analytics-status-row .bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
}
.analytics-status-row .bar-fill { height: 100%; border-radius: 99px; transition: width .6s ease; }
.analytics-status-row .count { min-width: 28px; text-align: left; font-weight: 700; font-size: 12px; }

/* Simple table inside chart cards */
.analytics-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.analytics-table th {
  text-align: right;
  padding: 6px 8px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.analytics-table td {
  padding: 8px 8px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.analytics-table tr:last-child td { border-bottom: none; }
.analytics-table .rank { color: var(--text-muted); font-size: 11px; }
.analytics-table .product-name { font-weight: 600; }
.analytics-table .pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(16,124,16,.15);
  color: var(--xbox-bright);
}

/* ── Nav User Chip (logged-in) ── */
.nav-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(16,124,16,.13) 0%, rgba(14,165,233,.07) 100%);
  border: 1px solid rgba(16,124,16,.30);
  border-radius: 12px;
  padding: 4px 12px 4px 4px;
  color: #d4f7d4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .22s, border-color .22s, box-shadow .22s, transform .15s;
  vertical-align: middle;
  max-width: 200px;
  cursor: pointer;
}
.nav-user-chip:hover,
a:hover > .nav-user-chip {
  background: linear-gradient(135deg, rgba(16,124,16,.22) 0%, rgba(14,165,233,.12) 100%);
  border-color: var(--xbox-bright);
  box-shadow: 0 0 18px rgba(16,124,16,.28), inset 0 0 0 1px rgba(16,124,16,.10);
  transform: translateY(-1px);
}

/* icon container — rounded square */
.nav-user-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #107C10 0%, #16a34a 55%, #0ea5e9 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 10px rgba(16,124,16,.40), 0 0 0 1px rgba(255,255,255,.08) inset;
  color: #fff;
}
.nav-user-icon-wrap svg { display: block; }

/* green "active" dot */
.nav-user-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  border: 1.5px solid #0d1117;
  box-shadow: 0 0 6px rgba(74,222,128,.70);
}

/* text stack */
.nav-user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}
.nav-user-label {
  font-size: 9px;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  line-height: 1;
  letter-spacing: .02em;
}
.nav-user-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
  color: #e2f5e2;
  font-size: 12px;
  font-weight: 700;
}

/* ── Nav Guest Pill (not logged-in) ── */
.nav-guest-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  padding: 4px 12px 4px 4px;
  transition: color .22s, background .22s, border-color .22s, transform .15s;
  vertical-align: middle;
  cursor: pointer;
}
.nav-guest-pill:hover,
a:hover > .nav-guest-pill {
  color: var(--xbox-bright);
  background: rgba(16,124,16,.10);
  border-color: rgba(16,124,16,.35);
  transform: translateY(-1px);
}
.nav-guest-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .22s, border-color .22s;
}
a:hover > .nav-guest-pill .nav-guest-icon-wrap {
  background: rgba(16,124,16,.18);
  border-color: rgba(16,124,16,.35);
}
.nav-guest-icon-wrap svg { display: block; opacity: .8; }
.nav-guest-text { line-height: 1; }

/* ══════════════════════════════════════════
   CUSTOMER MANAGEMENT
   ══════════════════════════════════════════ */
.cust-row {
  display: grid;
  grid-template-columns: 1fr repeat(4, auto) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: border-color .2s, background .2s;
  position: relative;
}
.cust-row:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }

.cust-main { min-width: 0; }
.cust-name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cust-phone {
  font-size: 12px;
  color: #25D366;
  text-decoration: none;
  display: block;
  margin-top: 2px;
}
.cust-phone:hover { text-decoration: underline; }
.cust-note-preview {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 60px;
}
.cust-stat-val  { font-size: 18px; font-weight: 800; font-family: var(--font-en); }
.cust-stat-lbl  { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.cust-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Badges */
.cust-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 4px;
  vertical-align: middle;
}
.cust-badge-vip     { background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }
.cust-badge-blocked { background: rgba(239,68,68,.12);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.cust-badge-regular { background: rgba(74,222,128,.1);  color: #4ade80; border: 1px solid rgba(74,222,128,.3); }

/* Detail header */
.cust-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 4px;
}

/* Inline note popup */
.cust-note-popup {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(100% + 6px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  z-index: 50;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

@media (max-width: 760px) {
  .cust-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .cust-main  { grid-column: 1 / -1; }
  .cust-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .cust-detail-header { flex-direction: column; }
}

