/* ============================================
   رولکس شاپ — Design System
   Dark / Neon Glassmorphism Theme
   ============================================ */

:root {
  /* Colors */
  --bg-deep: #06060c;
  --bg-primary: #0a0a12;
  --bg-secondary: #0f0f1a;
  --bg-card: rgba(16, 16, 28, 0.75);
  --bg-card-hover: rgba(22, 22, 40, 0.9);
  --bg-glass: rgba(18, 18, 32, 0.65);

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(139, 92, 246, 0.4);

  --text-primary: #f0f2f8;
  --text-secondary: #a0a8c0;
  --text-muted: #6b7289;

  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-cyan: #22d3ee;
  --accent-green: #22c55e;
  --accent-orange: #f97316;

  --gradient-hero: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #3b82f6 100%);
  --gradient-btn: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --gradient-card: linear-gradient(145deg, rgba(139,92,246,0.12), rgba(59,130,246,0.06));

  --glow-purple: 0 0 40px rgba(139, 92, 246, 0.35);
  --glow-pink: 0 0 30px rgba(236, 72, 153, 0.3);
  --glow-blue: 0 0 30px rgba(59, 130, 246, 0.3);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);

  --font: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --sidebar-w: 280px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
  --bg-deep: #f0f2f8;
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.14);
  --text-primary: #0f1220;
  --text-secondary: #4a5168;
  --text-muted: #8b92a8;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.55);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.btn-icon:hover {
  background: rgba(139,92,246,0.15);
  color: var(--accent-purple);
  border-color: var(--border-glow);
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(6, 6, 12, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .header {
  background: rgba(248, 249, 252, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--gradient-btn);
  display: grid; place-items: center;
  font-size: 18px;
  color: #fff;
  box-shadow: var(--glow-purple);
  position: relative;
  overflow: hidden;
}
.logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2));
}
.logo-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.logo-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.12);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16px;
  transition: all var(--transition);
}
.theme-toggle:hover {
  color: var(--accent-purple);
  border-color: var(--border-glow);
}
.cart-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16px;
  transition: all var(--transition);
}
.cart-btn:hover {
  color: var(--accent-pink);
  border-color: rgba(236,72,153,0.4);
}
.cart-badge {
  position: absolute;
  top: -4px; left: -4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-pink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 0 10px rgba(236,72,153,0.5);
}
.auth-btn { display: none; }
.mobile-menu-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 18px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; right: -300px;
  width: 280px; height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 200;
  transition: right 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 16px;
}
.mobile-menu-header button {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-size: 18px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  margin-bottom: 4px;
}
.mobile-nav a:hover {
  background: rgba(139,92,246,0.12);
  color: var(--text-primary);
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ========== LAYOUT ========== */
.main-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  min-height: calc(100vh - var(--header-h));
}

/* ========== SIDEBAR ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  height: fit-content;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,0.3) transparent;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color var(--transition);
}
.sidebar-card:hover { border-color: var(--border-hover); }

.wallet-card {
  background: linear-gradient(145deg, rgba(139,92,246,0.15), rgba(59,130,246,0.08));
  border-color: rgba(139,92,246,0.25);
}
.wallet-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.wallet-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  display: grid; place-items: center;
  font-size: 20px;
  color: #fff;
  box-shadow: var(--glow-purple);
}
.wallet-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.wallet-balance {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.wallet-balance small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.wallet-actions {
  display: flex;
  gap: 8px;
}
.wallet-actions .btn { flex: 1; }

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-right: 4px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 15px;
}
.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(139, 92, 246, 0.12);
  color: var(--text-primary);
}
.sidebar-link.logout {
  color: #f87171;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  border-radius: 0 0 12px 12px;
}
.sidebar-link.logout:hover {
  background: rgba(248, 113, 113, 0.1);
}

.support-card {
  text-align: center;
  background: linear-gradient(145deg, rgba(59,130,246,0.12), rgba(139,92,246,0.08));
  border-color: rgba(59,130,246,0.2);
}
.support-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: grid; place-items: center;
  font-size: 20px;
  color: #fff;
  box-shadow: var(--glow-blue);
}
.support-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.support-text { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }

.security-card {
  text-align: center;
  padding: 16px;
}
.security-icon {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.15);
  display: grid; place-items: center;
  color: var(--accent-green);
  font-size: 18px;
}
.security-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.security-text { font-size: 11.5px; color: var(--text-muted); }

/* ========== HERO ========== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  position: relative;
  overflow: visible; /* آیکون‌های شناور صفحه اصلی نباید بریده شوند */
  margin-bottom: 32px;
  backdrop-filter: blur(16px);
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 160%;
  background: radial-gradient(ellipse, rgba(139,92,246,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-title {
  margin-bottom: 14px;
}
.hero-line1 {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.hero-line2 {
  display: block;
  font-size: 42px;
  font-weight: 900;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  line-height: 1.15;
}
.hero-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 420px;
  line-height: 1.7;
}
.hero-search {
  position: relative;
  max-width: 440px;
}
.hero-search i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
}
.hero-search input {
  width: 100%;
  padding: 14px 48px 14px 18px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all var(--transition);
}
[data-theme="light"] .hero-search input {
  background: rgba(0,0,0,0.04);
}
.hero-search input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.2);
}
.hero-search input::placeholder { color: var(--text-muted); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 24px 0;
  overflow: visible;
}
.phone-mockup {
  width: 130px;
  height: 250px;
  background: linear-gradient(165deg, #1e1b2e 0%, #0f0d18 100%);
  border-radius: 28px;
  border: 3px solid rgba(255,255,255,0.14);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.5),
    0 0 0 1px rgba(139,92,246,0.18),
    inset 0 0 40px rgba(139,92,246,0.1);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background: radial-gradient(ellipse at 50% 35%, rgba(139,92,246,0.28), transparent 65%);
  pointer-events: none;
}
.phone-mockup::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.14);
  z-index: 2;
}
.floating-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.12);
  animation: float 3.6s ease-in-out infinite;
  z-index: 6;
  border: 2px solid rgba(255,255,255,0.18);
  left: 50%;
  top: 50%;
}
/* نزدیک و منظم دور گوشی */
.icon-tg {
  background: #2AABEE;
  margin-left: -22px;
  margin-top: -22px;
  width: 56px;
  height: 56px;
  font-size: 28px;
  border-radius: 16px;
  animation-delay: 0s;
  z-index: 7;
}
.icon-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  margin-left: -86px;
  margin-top: -55px;
  animation-delay: 0.35s;
}
.icon-yt {
  background: #FF0000;
  margin-left: 48px;
  margin-top: -5px;
  animation-delay: 0.8s;
}
.icon-sp {
  background: #1DB954;
  margin-left: -86px;
  margin-top: 35px;
  animation-delay: 1.2s;
}
.icon-gm {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  margin-left: 42px;
  margin-top: 75px;
  animation-delay: 1.65s;
}
.icon-user {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  width: 34px; height: 34px; font-size: 14px;
  margin-left: -18px; margin-top: -110px;
  animation-delay: 0.6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-9px) scale(1.04); }
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 220px;
  margin-left: -110px;
  margin-top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.32), transparent 70%);
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
}

/* ========== SECTIONS ========== */
.section { margin-bottom: 36px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--transition);
}
.section-link:hover { opacity: 0.8; }

/* ========== CATEGORIES ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 14px;
  text-align: center;
  transition: all var(--transition);
  backdrop-filter: blur(12px);
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-purple);
}
.cat-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 26px;
  color: #fff;
  transition: transform var(--transition);
}
.cat-card:hover .cat-icon { transform: scale(1.08); }
.cat-icon.tg { background: #2AABEE; box-shadow: 0 6px 20px rgba(42,171,238,0.35); }
.cat-icon.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 6px 20px rgba(220,39,67,0.35); }
.cat-icon.yt { background: #FF0000; box-shadow: 0 6px 20px rgba(255,0,0,0.3); }
.cat-icon.sp { background: #1DB954; box-shadow: 0 6px 20px rgba(29,185,84,0.35); }
.cat-icon.gm { background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 6px 20px rgba(139,92,246,0.35); }
.cat-icon.ot { background: linear-gradient(135deg, #64748b, #475569); box-shadow: 0 6px 20px rgba(100,116,139,0.3); }
.cat-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.cat-desc { font-size: 11.5px; color: var(--text-muted); }

/* ========== PRODUCTS ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow);
  background: var(--bg-card-hover);
}
.product-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
}
.product-icon.tg { background: #2AABEE; }
.product-icon.ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.product-icon.yt { background: #FF0000; }
.product-icon.sp { background: #1DB954; }
.product-icon.gm { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.product-icon.star { background: linear-gradient(135deg, #f59e0b, #f97316); }
.product-info { flex: 1; min-width: 0; }
.product-name {
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.product-price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.product-price .clock {
  font-size: 12px;
  color: var(--accent-green);
  margin-right: 4px;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.product-stock {
  font-size: 11px;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-stock.low { color: var(--accent-orange); }
.btn-order {
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.btn-order:hover {
  background: var(--gradient-btn);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

/* ========== FEATURES ========== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 18px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple);
  flex-shrink: 0;
}
.feature-item:nth-child(2) .feature-icon { background: rgba(236,72,153,0.12); color: var(--accent-pink); }
.feature-item:nth-child(3) .feature-icon { background: rgba(59,130,246,0.12); color: var(--accent-blue); }
.feature-item:nth-child(4) .feature-icon { background: rgba(34,197,94,0.12); color: var(--accent-green); }
.feature-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}
.feature-text span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
  margin-top: 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.7;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent-purple); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.error { border-color: rgba(248,113,113,0.4); color: #f87171; }
.toast.success { border-color: rgba(34,197,94,0.4); color: #4ade80; }

/* ========== PAGE SHARED ========== */
.page-header {
  margin-bottom: 28px;
}
.page-header h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}
.page-header p {
  color: var(--text-secondary);
  font-size: 14px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all var(--transition);
}
[data-theme="light"] .form-control {
  background: rgba(0,0,0,0.04);
}
.form-control:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.2);
}
.form-control::placeholder { color: var(--text-muted); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
  .nav-desktop { display: none; }
  .auth-btn { display: inline-flex; }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    text-align: center;
  }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-search { margin: 0 auto; }
  .hero-visual { min-height: 280px; max-width: 260px; padding: 16px 0; overflow: visible; margin-left: auto; margin-right: auto; }
  .phone-mockup { width: 118px; height: 225px; }
  .floating-icon { width: 40px; height: 40px; font-size: 18px; left: 50%; top: 50%; }
  .icon-tg { margin-left: -20px; margin-top: -20px; right: auto; top: auto; width: 48px; height: 48px; font-size: 24px; }
  .icon-ig { margin-left: -78px; margin-top: -50px; left: auto; top: auto; }
  .icon-yt { margin-left: 42px; margin-top: -4px; right: auto; top: auto; }
  .icon-sp { margin-left: -78px; margin-top: 30px; left: auto; bottom: auto; }
  .icon-gm { margin-left: 38px; margin-top: 68px; right: auto; bottom: auto; }
  .hero-line1 { font-size: 22px; }
  .hero-line2 { font-size: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 8px; }
  .header-left .auth-btn span { display: none; }
  .logo-sub { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .hero-line2 { font-size: 28px; }
  .wallet-actions { flex-direction: column; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-card, .cat-card {
  animation: fadeInUp 0.4s ease both;
}
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }


/* ========== MOBILE FIXES ========== */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr !important;
    padding: 12px 12px 40px !important;
    gap: 16px !important;
  }
  .sidebar { display: none !important; }
  .nav-desktop { display: none !important; }
  .auth-btn { display: inline-flex !important; }
  .hero {
    grid-template-columns: 1fr !important;
    padding: 20px 16px !important;
    text-align: center;
    overflow: visible !important;
  }
  .hero-visual { min-height: 270px !important; max-width: 250px !important; padding: 14px 0 !important; overflow: visible !important; width: 100% !important; box-sizing: border-box !important; margin-left: auto !important; margin-right: auto !important; }
  .phone-mockup { width: 110px !important; height: 210px !important; }
  .floating-icon { width: 38px !important; height: 38px !important; font-size: 16px !important; left: 50% !important; top: 50% !important; }
  .icon-tg { margin-left: -19px !important; margin-top: -19px !important; right: auto !important; top: auto !important; width: 44px !important; height: 44px !important; font-size: 22px !important; }
  .icon-ig { margin-left: -74px !important; margin-top: -48px !important; left: auto !important; top: auto !important; }
  .icon-yt { margin-left: 40px !important; margin-top: -4px !important; right: auto !important; top: auto !important; }
  .icon-sp { margin-left: -74px !important; margin-top: 28px !important; left: auto !important; bottom: auto !important; }
  .icon-gm { margin-left: 36px !important; margin-top: 64px !important; right: auto !important; bottom: auto !important; }
  .hero-line1 { font-size: 18px !important; }
  .hero-line2 { font-size: 26px !important; }
  .hero-desc { font-size: 13px !important; margin-left: auto; margin-right: auto; }
  .hero-search { max-width: 100% !important; margin: 0 auto; }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .cat-card { padding: 16px 10px !important; }
  .cat-icon { width: 48px !important; height: 48px !important; font-size: 22px !important; }
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .features {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
  }
  .feature-item { padding: 6px !important; gap: 10px !important; }
  .feature-icon { width: 36px !important; height: 36px !important; font-size: 14px !important; }
  .feature-text strong { font-size: 12px !important; }
  .feature-text span { font-size: 10px !important; }
  .section-title { font-size: 16px !important; }
  .header-inner { gap: 8px !important; padding: 0 12px; }
  .logo-sub { display: none !important; }
  .footer-inner { grid-template-columns: 1fr !important; gap: 20px !important; }
  .footer-links { grid-template-columns: 1fr 1fr !important; }
  .container { padding-left: 12px !important; padding-right: 12px !important; }
}

@media (max-width: 400px) {
  .features { grid-template-columns: 1fr !important; }
  .categories-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-line2 { font-size: 22px !important; }
  .auth-btn span { display: none !important; }
  .hero-visual { min-height: 250px !important; max-width: 230px !important; padding: 12px 0 !important; margin-left: auto !important; margin-right: auto !important; }
  .phone-mockup { width: 100px !important; height: 190px !important; }
  .floating-icon { width: 34px !important; height: 34px !important; font-size: 15px !important; left: 50% !important; top: 50% !important; }
  .icon-tg { margin-left: -19px !important; margin-top: -19px !important; right: auto !important; top: auto !important; width: 44px !important; height: 44px !important; font-size: 22px !important; }
  .icon-ig { margin-left: -68px !important; margin-top: -42px !important; left: auto !important; top: auto !important; }
  .icon-yt { margin-left: 36px !important; margin-top: -2px !important; right: auto !important; top: auto !important; }
  .icon-sp { margin-left: -68px !important; margin-top: 24px !important; left: auto !important; bottom: auto !important; }
  .icon-gm { margin-left: 32px !important; margin-top: 56px !important; right: auto !important; bottom: auto !important; }
}

/* Prevent horizontal overflow */
html, body { max-width: 100vw; overflow-x: hidden; }
.product-card, .cat-card, .hero, .sidebar-card { max-width: 100%; }

/* PHP site extras */
.page-main { min-height: 60vh; }
.home-wrap { padding: 20px 0 48px; }
.wallet-strip {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 18px; margin-bottom: 20px;
}
.wallet-strip .muted { display:block; font-size:12px; color:var(--text-muted); }
.wallet-strip strong { font-size:18px; font-weight:800; }
.balance-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.3);
  padding: 8px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.auth-card { padding: 28px 24px; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 13.5px; }
.alert.error { background: rgba(248,113,113,.12); color: #f87171; border: 1px solid rgba(248,113,113,.25); }
.alert.success { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.divider { text-align:center; color:var(--text-muted); font-size:12px; margin: 16px 0; position:relative; }
.gateway-grid { display:flex; flex-wrap:wrap; gap:10px; }
.gateway-opt {
  flex:1; min-width:120px; padding:12px; border-radius:12px; border:1px solid var(--border);
  background: rgba(255,255,255,.04); font-weight:600; font-size:13px; cursor:pointer;
  display:flex; align-items:center; gap:8px;
}
.wallet-big { text-align:center; padding:28px; }
.wallet-big .muted { font-size:13px; color:var(--text-muted); }
.wallet-big .bal { font-size:32px; font-weight:900; margin-top:6px; }
.wallet-big .bal small { font-size:14px; font-weight:600; color:var(--text-secondary); }
.table { width:100%; border-collapse:collapse; font-size:13px; }
.table th, .table td { padding:12px 14px; border-bottom:1px solid var(--border); text-align:right; }
.table th { color:var(--text-muted); font-size:12px; }
.admin-login-body { min-height:100vh; background:var(--bg-deep); }
.admin-layout { display:grid; grid-template-columns:240px 1fr; min-height:100vh; }
.admin-sidebar { background:var(--bg-secondary); border-left:1px solid var(--border); padding:20px 14px; }
.admin-nav a { display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:12px; font-weight:600; font-size:13.5px; color:var(--text-secondary); margin-bottom:2px; }
.admin-nav a.active, .admin-nav a:hover { background:rgba(139,92,246,.12); color:var(--text-primary); }
.admin-content { padding:28px; }
.admin-content h1 { font-size:22px; font-weight:800; margin-bottom:18px; }
.admin-content h3 { font-size:15px; font-weight:800; margin-bottom:12px; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:22px; }
.stat-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px; }
.stat-card .label { font-size:12px; color:var(--text-muted); }
.stat-card .value { font-size:22px; font-weight:800; margin-top:4px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:900px) {
  .admin-layout { grid-template-columns:1fr; }
  .admin-sidebar { position:relative; height:auto; border-left:none; border-bottom:1px solid var(--border); }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .form-row { grid-template-columns:1fr; }
  .products-grid { grid-template-columns:1fr !important; }
}


.gw-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.gateway-card {
  flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 96px; text-align: center;
}
.gateway-card input { accent-color: var(--accent-purple); }
.gateway-card .gw-name { font-size: 13px; font-weight: 700; }
.import-hero {
  background: linear-gradient(145deg, rgba(139,92,246,0.12), rgba(59,130,246,0.08));
  border: 1px solid rgba(139,92,246,0.25);
}
.check-line { display:flex; align-items:center; gap:8px; font-size:13px; margin-bottom:10px; font-weight:600; }
.muted { color: var(--text-muted); font-size: 13px; }


/* Tickets */
.ticket-thread { display:flex; flex-direction:column; gap:12px; }
.ticket-bubble {
  padding:14px 16px; border-radius:16px; border:1px solid var(--border);
  background: var(--bg-card); max-width:95%;
}
.ticket-bubble.user { align-self:flex-start; border-color: rgba(139,92,246,.25); }
.ticket-bubble.admin { align-self:flex-end; background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.35); }
.ticket-bubble .meta { font-size:12px; color:var(--text-muted); margin-bottom:8px; display:flex; justify-content:space-between; gap:12px; }
.ticket-bubble .body { font-size:14px; line-height:1.8; white-space:pre-wrap; }
.badge-status { font-size:11px; font-weight:700; padding:3px 10px; border-radius:999px; background:rgba(255,255,255,.06); }
.badge-status.status-open { background:rgba(34,197,94,.15); color:#4ade80; }
.badge-status.status-answered { background:rgba(59,130,246,.15); color:#60a5fa; }
.badge-status.status-closed { background:rgba(148,163,184,.15); color:#94a3b8; }
.badge-status.status-pending { background:rgba(251,191,36,.15); color:#fbbf24; }
textarea.form-control { resize: vertical; min-height: 100px; font-family: inherit; }


/* Add funds (1xpanel style) */
.addfunds-page { max-width: 640px; padding: 24px 16px 80px; }
.addfunds-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.addfunds-head h1 { font-size:20px; font-weight:800; display:flex; align-items:center; gap:10px; }
.balance-chip {
  background: rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.35);
  color:#4ade80; padding:8px 14px; border-radius:999px; font-size:13px; font-weight:700;
}
.addfunds-card { padding: 22px 18px; }
.select-label { font-size:13px; color:var(--text-secondary); margin-bottom:12px; font-weight:600; }
.gw-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
}
.gw-tile {
  position:relative; display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:16px 12px 14px; border-radius:16px; cursor:pointer;
  background: rgba(255,255,255,.03); border:1px solid var(--border);
  transition: .2s ease;
}
.gw-tile.selected, .gw-tile:has(input:checked) {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 1px var(--accent-purple), 0 8px 24px rgba(139,92,246,.15);
  background: rgba(139,92,246,.08);
}
.gw-badge {
  position:absolute; top:-8px; right:12px;
  background:#eab308; color:#111; font-size:10px; font-weight:800;
  padding:3px 8px; border-radius:999px;
}
.gw-logo {
  width:52px; height:52px; border-radius:14px;
  background: color-mix(in srgb, var(--gw) 20%, transparent);
  display:grid; place-items:center; overflow:hidden;
}
.gw-logo img { max-width:36px; max-height:36px; }
.gw-fallback {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:16px; color:var(--gw);
}
.gw-title { font-size:13px; font-weight:800; }
.gw-coins { display:flex; gap:4px; flex-wrap:wrap; justify-content:center; }
.coin {
  width:18px; height:18px; border-radius:50%; font-size:9px; font-weight:800;
  display:inline-flex; align-items:center; justify-content:center; color:#fff;
  background:#555;
}
.coin-btc { background:#f7931a; }
.coin-usdt { background:#26a17b; }
.coin-trx { background:#ff0013; }
.coin-eth { background:#627eea; }
.coin-ltc { background:#345d9d; }
.preset-row { display:flex; flex-wrap:wrap; gap:8px; }
.preset-btn {
  flex:1; min-width:72px; padding:12px 8px; border-radius:12px;
  border:1px solid var(--border); background:rgba(255,255,255,.04);
  color:var(--text-primary); font-weight:700; font-size:13px; cursor:pointer;
  font-family:inherit;
}
.preset-btn.active, .preset-btn:hover {
  border-color: var(--accent-purple); background:rgba(139,92,246,.12);
}
.amount-input { font-size:18px !important; font-weight:700; text-align:center; }
.pay-btn { width:100%; margin-top:8px; padding:16px !important; font-size:16px !important; border-radius:14px !important; }
@media (max-width:480px) {
  .gw-grid { grid-template-columns:1fr 1fr; gap:10px; }
}
