/* ============================================================
   STREAMCELL — Design System
   Adaptado de EG/Ecugaming | Dark Orange + Purple Accent
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* Brand Colors */
  --primary: #ff8c00;
  --primary-dark: #e07800;
  --primary-glow: rgba(255, 140, 0, 0.35);
  --accent: #8B5CF6;
  --accent-dark: #7c3aed;
  --accent-glow: rgba(139, 92, 246, 0.30);

  /* Backgrounds */
  --bg: #0a0a0b;
  --bg-light: #0f0f12;
  --bg-card: #1a1a1e;
  --bg-card2: #141418;
  --bg-glass: rgba(15, 15, 18, 0.75);
  --bg-hover: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.05);

  /* Text */
  --text: #f5f5f7;
  --text-dim: #a1a1a6;
  --text-muted: #6b6b71;
  --white: #ffffff;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Status Colors */
  --green: #34c759;
  --blue: #0a84ff;
  --yellow: #ffd60a;
  --red: #ff453a;
  --orange: #ff9500;
  --purple: #bf5af2;
  --teal: #5ac8fa;

  /* Streaming Platform Colors */
  --netflix: #e50914;
  --disney: #113ccf;
  --spotify: #1ed760;
  --hbo: #5822c4;
  --youtube: #ff0000;
  --apple-tv: #555555;
  --amazon: #00a8e0;
  --paramount: #0064ff;
  --crunchyroll: #f47521;
  --deezer: #a238ff;
  --canva: #00c4cc;

  /* Order Status Colors */
  --status-pending: #ffd60a;
  --status-uploaded: #ff9f0a;
  --status-validating: #0a84ff;
  --status-approved: #30d158;
  --status-assigning: #bf5af2;
  --status-completed: #34c759;
  --status-rejected: #ff453a;
  --status-warranty: #ff6961;
  --status-replaced: #5ac8fa;

  /* Shadows */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px var(--primary-glow);

  /* Radii */
  --r-sm: 8px;
  --r: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Spacing */
  --header-h: 60px;
  --sidebar-w: 268px;
  --content-max: 1280px;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(12px);
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--primary);
  color: #000;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ── Typography ───────────────────────────────────────────── */
h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 10px var(--primary-glow);
  }

  50% {
    box-shadow: 0 0 25px var(--primary-glow), 0 0 50px var(--primary-glow);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease both;
}

.slide-in {
  animation: slideInRight 0.4s ease both;
}

.float {
  animation: float 3s ease-in-out infinite;
}

.pulse-anim {
  animation: pulse 2s ease-in-out infinite;
}

.spin {
  animation: spin 1s linear infinite;
}

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-brand span {
  color: var(--primary);
}

.header-brand .logo-icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 0.85rem;
}

.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.header-search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-full);
  padding: 0.45rem 1rem 0.45rem 2.4rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.header-search input:focus {
  border-color: var(--primary);
}

.header-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.9rem;
  position: relative;
  transition: all 0.2s;
}

.header-icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-header-auth {
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: var(--r-full);
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-header-auth:hover {
  background: var(--primary-dark);
  transform: scale(1.03);
}

/* Header Navigation Enhancements */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 1.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.2s;
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-link.highlight {
  color: var(--primary);
  background: rgba(255, 140, 0, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.nav-link.highlight:hover {
  background: rgba(255, 140, 0, 0.2);
  box-shadow: 0 0 15px var(--primary-glow);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: block;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .header-nav.show {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem !important;
    text-align: center;
    border: none !important;
    border-radius: var(--r) !important;
  }
}


/* User Dropdown */
.user-dropdown {
  position: relative;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  min-width: 200px;
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
  animation: slideDown 0.2s ease;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: var(--bg-hover);
}

.dropdown-item i {
  color: var(--text-muted);
  width: 14px;
}

.dropdown-item.danger {
  color: var(--red);
}

.dropdown-item.danger i {
  color: var(--red);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0;
}

/* ── Main Layout ──────────────────────────────────────────── */
.main-wrapper {
  padding-top: var(--header-h);
  min-height: 100vh;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-content {
  padding: 2rem 1.5rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Admin layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-h);
}

.admin-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 2rem;
  min-height: calc(100vh - var(--header-h));
  overflow-x: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0;
  top: var(--header-h);
  bottom: 0;
  width: var(--sidebar-w);
  background: #050507;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 900;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.75rem;
  gap: 0.25rem;
}

.sidebar-section {
  margin-bottom: 0.5rem;
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem 0.2rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.sidebar-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.sidebar-item.active {
  background: rgba(255, 140, 0, 0.12);
  color: var(--primary);
}

.sidebar-item.active i {
  color: var(--primary);
}

.sidebar-item i {
  width: 16px;
  font-size: 0.9rem;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  background: var(--bg);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 140, 0, 0.12), transparent);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 140, 0, 0.12);
  border: 1px solid rgba(255, 140, 0, 0.25);
  color: var(--primary);
  border-radius: var(--r-full);
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Platform Tabs ────────────────────────────────────────── */
.platform-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  overflow-x: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.platform-tabs::-webkit-scrollbar {
  display: none;
}

.platform-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.platform-tab:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.platform-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
  font-weight: 700;
}

.platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ── Product Grid ─────────────────────────────────────────── */
.products-section {
  padding: 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── Product Card ─────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn 0.4s ease both;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 140, 0, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 140, 0, 0.12);
}

.card-platform-banner {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  position: relative;
  overflow: hidden;
}

.card-platform-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg-card));
}

.card-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-offer {
  background: rgba(255, 45, 85, 0.9);
  color: #fff;
}

.badge-new {
  background: rgba(52, 199, 89, 0.9);
  color: #fff;
}

.badge-popular {
  background: rgba(255, 140, 0, 0.9);
  color: #000;
}

.badge-promo {
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
}

.badge-stock {
  background: rgba(255, 69, 58, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 69, 58, 0.3);
}

.card-body {
  padding: 0.9rem 1rem 1rem;
}

.card-platform-name {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.card-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.price-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

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

.price-reseller {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  display: none;
}

.price-reseller.show {
  display: block;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-buy {
  flex: 1;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: var(--r-full);
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-buy:hover {
  background: var(--primary-dark);
}

.btn-quick {
  width: 36px;
  height: 36px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-quick:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(255, 140, 0, 0.08);
}

.btn-danger {
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.3);
  color: var(--red);
}

.btn-danger:hover {
  background: rgba(255, 69, 58, 0.2);
}

.btn-success {
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.3);
  color: var(--green);
}

.btn-success:hover {
  background: rgba(52, 199, 89, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: none;
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.btn-lg {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
}

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--r);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Loading spinner in btn */
.btn .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Cards (Generic) ──────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body-pad {
  padding: 1.25rem;
}

/* Stat Cards */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-icon.orange {
  background: rgba(255, 140, 0, 0.12);
  color: var(--primary);
}

.stat-icon.green {
  background: rgba(52, 199, 89, 0.12);
  color: var(--green);
}

.stat-icon.blue {
  background: rgba(10, 132, 255, 0.12);
  color: var(--blue);
}

.stat-icon.purple {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent);
}

.stat-icon.red {
  background: rgba(255, 69, 58, 0.12);
  color: var(--red);
}

.stat-icon.teal {
  background: rgba(90, 200, 250, 0.12);
  color: var(--teal);
}

.stat-info .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.stat-info .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-info .stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.stat-change.up {
  color: var(--green);
}

.stat-change.down {
  color: var(--red);
}

/* Glass Card */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

/* ── Status Chips ─────────────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-PENDING_PAYMENT {
  background: rgba(255, 214, 10, 0.12);
  color: var(--status-pending);
  border: 1px solid rgba(255, 214, 10, 0.2);
}

.status-PAYMENT_UPLOADED {
  background: rgba(255, 159, 10, 0.12);
  color: var(--status-uploaded);
  border: 1px solid rgba(255, 159, 10, 0.2);
}

.status-VALIDATING_PAYMENT {
  background: rgba(10, 132, 255, 0.12);
  color: var(--status-validating);
  border: 1px solid rgba(10, 132, 255, 0.2);
}

.status-PAYMENT_APPROVED {
  background: rgba(48, 209, 88, 0.12);
  color: var(--status-approved);
  border: 1px solid rgba(48, 209, 88, 0.2);
}

.status-ASSIGNING_ACCOUNT {
  background: rgba(191, 90, 242, 0.12);
  color: var(--status-assigning);
  border: 1px solid rgba(191, 90, 242, 0.2);
}

.status-COMPLETED {
  background: rgba(52, 199, 89, 0.12);
  color: var(--status-completed);
  border: 1px solid rgba(52, 199, 89, 0.2);
}

.status-REJECTED {
  background: rgba(255, 69, 58, 0.12);
  color: var(--status-rejected);
  border: 1px solid rgba(255, 69, 58, 0.2);
}

.status-WARRANTY_CLAIM {
  background: rgba(255, 105, 97, 0.12);
  color: var(--status-warranty);
  border: 1px solid rgba(255, 105, 97, 0.2);
}

.status-REPLACED {
  background: rgba(90, 200, 250, 0.12);
  color: var(--status-replaced);
  border: 1px solid rgba(90, 200, 250, 0.2);
}

/* Generic statuses */
.status-available {
  background: rgba(52, 199, 89, 0.12);
  color: var(--green);
  border: 1px solid rgba(52, 199, 89, 0.2);
}

.status-reserved {
  background: rgba(255, 214, 10, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(255, 214, 10, 0.2);
}

.status-sold {
  background: rgba(10, 132, 255, 0.12);
  color: var(--blue);
  border: 1px solid rgba(10, 132, 255, 0.2);
}

.status-expired {
  background: rgba(255, 69, 58, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 69, 58, 0.2);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-label .required {
  color: var(--red);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r);
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.12);
}

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

.form-control.error {
  border-color: var(--red);
}

.form-control.success {
  border-color: var(--green);
}

.form-error {
  font-size: 0.75rem;
  color: var(--red);
  margin-top: 0.25rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23a1a1a6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

select option {
  background-color: #1a1a1e;
  color: var(--text);
}

.input-group {
  position: relative;
}

.input-group .form-control {
  padding-left: 2.4rem;
}

.input-group .input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.input-group .input-suffix {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
}

/* Alert Messages */
.alert {
  border-radius: var(--r);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(255, 69, 58, 0.1);
  border: 1px solid rgba(255, 69, 58, 0.25);
  color: #ff6b61;
}

.alert-success {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.25);
  color: #4cd964;
}

.alert-info {
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.25);
  color: #5ac8fa;
}

.alert-warning {
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.25);
  color: #ffd60a;
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  width: 40px;
  height: 22px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  transition: all 0.2s;
  position: relative;
}

.toggle-track::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--text-dim);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.2s;
}

.toggle input:checked+.toggle-track {
  background: var(--primary);
  border-color: var(--primary);
}

.toggle input:checked+.toggle-track::after {
  transform: translateX(18px);
  background: #fff;
}

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

/* Checkbox */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  display: none;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  margin-top: 1px;
}

.checkbox input:checked+.checkbox-box {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox input:checked+.checkbox-box::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #000;
  font-size: 0.65rem;
}

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

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 0.65rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr {
  transition: background 0.15s;
}

.table tbody tr:hover {
  background: var(--bg-hover);
  cursor: pointer;
}

.table-check td:first-child,
.table-check th:first-child {
  padding-right: 0.5rem;
  width: 40px;
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

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

.modal-title {
  font-size: 1rem;
  font-weight: 700;
}

.modal-close {
  width: 28px;
  height: 28px;
  background: var(--bg-input);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.modal-lg {
  max-width: 720px;
}

.modal-xl {
  max-width: 900px;
}

/* ── Cart Sidebar ─────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 95vw;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 0.5rem;
}

.cart-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cart-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.cart-total-row.grand {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  gap: 0.75rem;
}

.cart-empty i {
  font-size: 2.5rem;
  color: var(--text-muted);
}

/* ── Floating WhatsApp ────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.wa-btn {
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.2s;
}

.wa-btn:hover {
  transform: scale(1.08);
}

.wa-tooltip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  display: none;
}

.wa-float:hover .wa-tooltip {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* ── Order Timeline ───────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.65rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -1.65rem;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-item.active .timeline-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.15);
}

.timeline-item.done .timeline-dot {
  background: var(--green);
  border-color: var(--green);
}

.timeline-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.timeline-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ── Progress Bar ─────────────────────────────────────────── */
.progress-track {
  height: 6px;
  background: var(--bg-input);
  border-radius: var(--r-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--r-full);
  transition: width 0.6s ease;
}

.progress-fill.green {
  background: var(--green);
}

.progress-fill.blue {
  background: var(--blue);
}

.progress-fill.purple {
  background: var(--accent);
}

/* ── Skeleton / Loading ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255, 255, 255, 0.04) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r);
}

.sk-text {
  height: 14px;
  margin-bottom: 0.5rem;
}

.sk-text.w50 {
  width: 50%;
}

.sk-text.w75 {
  width: 75%;
}

.sk-rect {
  height: 100px;
}

.sk-circle {
  border-radius: 50%;
}

/* ── Toast Notifications ──────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s ease;
  white-space: nowrap;
}

.toast.success i {
  color: var(--green);
}

.toast.error i {
  color: var(--red);
}

.toast.info i {
  color: var(--blue);
}

.toast.warning i {
  color: var(--yellow);
}

/* ── Steps / Wizard ───────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s;
}

.step-item.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

.step-item.done .step-circle {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
}

.step-item.done+.step-item .step-line {
  background: var(--green);
}

.step-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-align: center;
  white-space: nowrap;
}

.step-item.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.step-item.done .step-label {
  color: var(--green);
}

/* ── Platform Color Utilities ─────────────────────────────── */
.bg-netflix {
  background-color: var(--netflix);
}

.bg-disney {
  background-color: var(--disney);
}

.bg-spotify {
  background-color: var(--spotify);
}

.bg-hbo {
  background-color: var(--hbo);
}

.bg-youtube {
  background-color: var(--youtube);
}

.bg-apple-tv {
  background-color: var(--apple-tv);
}

.bg-amazon {
  background-color: var(--amazon);
}

.bg-paramount {
  background-color: var(--paramount);
}

.bg-crunchyroll {
  background-color: var(--crunchyroll);
}

.bg-deezer {
  background-color: var(--deezer);
}

.bg-canva {
  background-color: var(--canva);
}

.text-netflix {
  color: var(--netflix);
}

.text-disney {
  color: var(--disney);
}

.text-spotify {
  color: var(--spotify);
}

.text-hbo {
  color: var(--hbo);
}

.text-youtube {
  color: var(--youtube);
}

.text-primary {
  color: var(--primary);
}

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

.text-green {
  color: var(--green);
}

.text-red {
  color: var(--red);
}

.text-dim {
  color: var(--text-dim);
}

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

/* ── Utility Classes ──────────────────────────────────────── */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-6 {
  gap: 1.5rem;
}

.flex-1 {
  flex: 1;
}

.w-full {
  width: 100%;
}

.hidden {
  display: none !important;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.p-1 {
  padding: 0.25rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.text-sm {
  font-size: 0.8rem;
}

.text-xs {
  font-size: 0.72rem;
}

.text-lg {
  font-size: 1.1rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

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

.text-right {
  text-align: right;
}

.rounded-full {
  border-radius: var(--r-full);
}

.truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.section-title i {
  color: var(--primary);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-section h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.footer-section li {
  margin-bottom: 0.4rem;
}

.footer-section a {
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.footer-social {
  width: 32px;
  height: 32px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all 0.15s;
}

.footer-social:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Social Proof Popup ───────────────────────────────────── */
.social-popup {
  position: fixed;
  bottom: 5rem;
  left: 1.5rem;
  z-index: 998;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.85rem;
  max-width: 280px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: slideInLeft 0.4s ease;
}

.social-popup-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.social-popup p {
  font-size: 0.78rem;
  color: var(--text);
  margin: 0;
}

.social-popup .time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Countdown Timer ──────────────────────────────────────── */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 69, 58, 0.1);
  border: 1px solid rgba(255, 69, 58, 0.25);
  border-radius: var(--r-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.tab {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  margin-bottom: -1px;
}

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

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-content {
    margin-left: 0;
    padding: 1rem;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block !important;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  .header-search {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .modal {
    max-width: 95vw;
  }

  .cart-sidebar {
    width: 100%;
  }

  .social-popup {
    display: none;
  }

  h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .platform-tab .tab-text {
    display: none;
  }

  .container,
  .page-content {
    padding: 0 1rem;
  }

  .products-section {
    padding: 1rem;
  }

  .hero {
    padding: 2rem 1rem 1.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .card-body {
    padding: 0.6rem 0.75rem 0.75rem;
  }

  .price-main {
    font-size: 1.1rem;
  }
}

/* ── Admin Page Header ────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-header h1 {
  font-size: 1.4rem;
  margin: 0;
}

.page-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Sidebar overlay for mobile ───────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 850;
}

/* ── Quick action grid ────────────────────────────────────── */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
}

.qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.15s;
  text-align: center;
}

.qa-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 140, 0, 0.05);
}

.qa-btn i {
  font-size: 1.1rem;
  color: var(--primary);
}

.qa-btn.accent i {
  color: var(--accent);
}

.qa-btn.accent:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(139, 92, 246, 0.05);
}

/* ── Glassmorphism Utilities ──────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 140, 0, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.glass-sidebar {
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
}