/* ===================================================================
   SHOPLINE — Unified Design System
   
   Theme:  Dark (default) / Light (admin)
   Font:   Inter (Google Fonts)
   Accent: Emerald #34d399
   =================================================================== */

/* ---------------------------------------------------------------
   0. RESET & BASE
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Background Scale */
  --bg-0: #060a0d;
  --bg-1: #0c1117;
  --bg-2: #131b23;
  --bg-3: #1a242e;
  --glass: rgba(6,10,13,0.85);

  /* Borders */
  --border-s: rgba(255,255,255,0.06);
  --border-m: rgba(255,255,255,0.10);
  --border-a: rgba(52,211,153,0.30);

  /* Text */
  --text-1: #f0f4f8;
  --text-2: #7a8ba3;
  --text-3: #4a5568;

  /* Accent */
  --accent: #34d399;
  --accent-h: #2cc389;
  --accent-s: rgba(52,211,153,0.08);

  /* Semantic */
  --error: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 16px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.35);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);
}

html[data-theme="light"] {
  --bg-0: #f4f6f8;
  --bg-1: #ffffff;
  --bg-2: #f9fafb;
  --bg-3: #eef1f4;
  --glass: rgba(255,255,255,0.88);
  --border-s: rgba(15,23,42,0.08);
  --border-m: #d1d5db;
  --border-a: rgba(4,120,87,0.28);
  --text-1: #111827;
  --text-2: #5f6b7a;
  --text-3: #94a3b8;
  --accent: #047857;
  --accent-h: #065f46;
  --accent-s: #ecfdf5;
  --shadow-sm: 0 2px 8px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 20px rgba(15,23,42,0.09);
  --shadow-lg: 0 8px 28px rgba(15,23,42,0.12);
  --shadow-xl: 0 20px 60px rgba(15,23,42,0.16);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 180ms ease, color 180ms ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------
   1. LAYOUT
   --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--sm { max-width: 960px; }
.container--xs { max-width: 640px; }
.container--xl { max-width: 1400px; }

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

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

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------
   2. NAVBAR
   --------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-s);
  transition: box-shadow 200ms;
}

.navbar--shadow { box-shadow: var(--shadow-md); }

.navbar--fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar__inner--sm { max-width: 960px; }

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.navbar__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-1);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--border-m);
  border-radius: var(--r-full);
  background: var(--bg-1);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms, background 150ms, transform 150ms;
}

.theme-switch:hover {
  border-color: var(--accent);
  background: var(--bg-2);
  transform: translateY(-1px);
}

.theme-switch__icon {
  line-height: 1;
}

.navbar__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: var(--r);
  border: 1px solid var(--border-s);
  transition: all 150ms;
  background: none;
}

.navbar__link:hover {
  color: var(--text-1);
  border-color: var(--border-m);
  background: rgba(255,255,255,0.03);
}

.navbar__link--plain {
  border: none;
  padding: 7px 0;
}

.navbar__link--plain:hover {
  background: none;
  color: var(--text-1);
}

.navbar__link--accent:hover { color: var(--accent); }

/* Cart Button */
.navbar__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  border: 1px solid var(--border-s);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all 150ms;
}

.navbar__cart:hover {
  color: var(--text-1);
  border-color: var(--border-m);
  background: rgba(255,255,255,0.03);
}

.navbar__cart svg { width: 18px; height: 18px; }

.navbar__cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg-0);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------------------------------------------------------------
   3. HERO SECTION
   --------------------------------------------------------------- */
.hero {
  padding: 48px 0 40px;
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-1);
  margin: 0 0 10px;
}

.hero__sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 24px;
}

.hero__search {
  position: relative;
  margin-bottom: 20px;
}

.hero__search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-3);
  pointer-events: none;
}

.hero__search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--bg-2);
  border: 1px solid var(--border-s);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 200ms;
}

.hero__search input::placeholder { color: var(--text-3); }
.hero__search input:focus { border-color: var(--border-a); }

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

.hero__feat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.hero__feat svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.hero__sep {
  color: var(--text-3);
  font-size: 10px;
  user-select: none;
}

/* ---------------------------------------------------------------
   4. CATEGORY BAR
   --------------------------------------------------------------- */
.cat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
  margin-bottom: 28px;
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r);
  border: 1px solid var(--border-s);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms;
  font-family: inherit;
}

.cat-btn:hover {
  color: var(--text-1);
  background: rgba(255,255,255,0.03);
  border-color: var(--border-m);
}

.cat-btn.active {
  color: var(--accent);
  background: var(--accent-s);
  border-color: var(--border-a);
}

.cat-btn__count {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
}

.cat-btn.active .cat-btn__count {
  color: rgba(52,211,153,0.6);
}

/* ---------------------------------------------------------------
   5. PRODUCT GRID & CARDS
   --------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding-bottom: 64px;
}

.product-card {
  background: var(--bg-1);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px);
  cursor: pointer;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms ease, transform 300ms ease, border-color 200ms, box-shadow 200ms;
}

.product-card:hover {
  border-color: rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}

.product-card__img {
  aspect-ratio: 3 / 2;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.product-card__img-placeholder {
  color: var(--text-3);
}

.product-card__img-placeholder svg { width: 40px; height: 40px; }

.product-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.product-card__category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.product-card__stock {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card__stock::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.product-card__stock.out-of-stock {
  color: var(--error);
}

.product-card__stock.out-of-stock::before {
  background: var(--error);
}

.product-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 4px;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
}

/* Plans */
.plans { margin-bottom: 14px; }

.plans__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-bottom: 6px;
}

.plans__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plan-btn {
  padding: 5px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-s);
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms;
  font-family: inherit;
}

.plan-btn:hover {
  color: var(--text-1);
  border-color: var(--border-m);
}

.plan-btn.active {
  color: var(--accent);
  border-color: var(--border-a);
  background: var(--accent-s);
}

/* Price Row */
.product-card__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-s);
  margin-top: auto;
}

.product-card__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.product-card__type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-3);
  padding: 3px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-xs);
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

/* ---------------------------------------------------------------
   6. PRODUCT DETAIL MODAL
   --------------------------------------------------------------- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  visibility: hidden;
  pointer-events: none;
}

.product-modal.open {
  visibility: visible;
  pointer-events: auto;
}

.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 300ms;
}

.product-modal.open .product-modal__backdrop { opacity: 1; }

.product-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--border-m);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transition: opacity 300ms, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal.open .product-modal__panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.product-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  border: 1px solid var(--border-m);
  background: var(--bg-2);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms;
  z-index: 5;
}

.product-modal__close:hover {
  color: var(--text-1);
  border-color: var(--border-a);
}

.product-modal__close svg { width: 16px; height: 16px; }

.product-modal__img {
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.product-modal__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

.product-modal__body {
  padding: 24px;
}

.product-modal__category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.product-modal__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 12px;
  line-height: 1.2;
}

.product-modal__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
  white-space: pre-line;
}

.product-modal__price {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

.product-modal__actions {
  display: flex;
  gap: 10px;
}

/* ---------------------------------------------------------------
   7. BUTTONS
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms;
  border: none;
  outline: none;
  font-family: inherit;
  line-height: 1;
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn--accent { background: var(--accent); color: var(--bg-0); }
.btn--accent:hover { background: var(--accent-h); }
.btn--accent:active { transform: scale(0.98); }

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

.btn--outline:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.16);
}

.btn--outline:active { transform: scale(0.98); }
.btn--full { width: 100%; }
.btn--lg { padding: 12px 20px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--danger { background: var(--error); color: #fff; }
.btn--danger:hover { background: #dc2626; }

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: none;
  padding: 8px;
}

.btn--ghost:hover { color: var(--text-1); background: rgba(255,255,255,0.04); }

/* ---------------------------------------------------------------
   8. FORMS & INPUTS
   --------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  display: block;
}

.input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-s);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-1);
  font-family: inherit;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}

.input::placeholder { color: var(--text-3); }

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--border-a);
}

textarea.input {
  min-height: 70px;
  resize: vertical;
}

select.input option {
  background: var(--bg-2);
  color: var(--text-1);
}

/* Password toggle wrapper */
.input-password-wrap {
  position: relative;
}

.input-password-wrap input {
  padding-right: 44px;
}

.input-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.input-password-toggle:hover { color: var(--text-2); }
.input-password-toggle svg { width: 18px; height: 18px; }

/* Password strength */
.password-strength {
  height: 3px;
  border-radius: 2px;
  background: var(--bg-3);
  margin-top: 6px;
  overflow: hidden;
}

.password-strength__bar {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 300ms, background 300ms;
}

.password-strength__bar.weak { width: 33%; background: var(--error); }
.password-strength__bar.medium { width: 66%; background: var(--warning); }
.password-strength__bar.strong { width: 100%; background: var(--success); }

/* Form status messages */
.form-status {
  font-size: 13px;
  margin-top: 10px;
}

.form-status:empty { display: none; }
.form-status--error { color: var(--error); }
.form-status--success { color: var(--success); }

/* ---------------------------------------------------------------
   9. CARDS & PANELS
   --------------------------------------------------------------- */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border-s);
  border-radius: var(--r-xl);
  padding: 32px;
}

.panel {
  background: var(--bg-1);
  border: 1px solid var(--border-s);
  border-radius: var(--r-lg);
  padding: 24px;
}

.panel h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 16px;
}

/* ---------------------------------------------------------------
   10. CART DRAWER
   --------------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.drawer.open { visibility: visible; pointer-events: auto; }

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 300ms;
}

.drawer.open .drawer__backdrop { opacity: 1; }

.drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--bg-1);
  border-left: 1px solid var(--border-s);
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}

.drawer.open .drawer__panel { transform: translateX(0); }

.drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-s);
  flex-shrink: 0;
}

.drawer__header h3 { font-size: 16px; font-weight: 700; margin: 0; }

.drawer__close {
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  border: 1px solid var(--border-s);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms;
}

.drawer__close:hover { color: var(--text-1); border-color: var(--border-m); }
.drawer__close svg { width: 16px; height: 16px; }

.drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.drawer__empty {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  padding: 48px 0;
}

.drawer__empty svg { width: 32px; height: 32px; margin: 0 auto 12px; display: block; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-s);
}

.cart-item:last-child { border-bottom: none; }
.cart-item__info { flex: 1; min-width: 0; }

.cart-item__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__plan { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.cart-item__price { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 2px; }
.cart-item__controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-s);
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms;
  font-family: inherit;
}

.qty-btn:hover {
  border-color: var(--border-m);
  color: var(--text-1);
  background: rgba(255,255,255,0.03);
}

.qty-btn--del:hover {
  border-color: rgba(239,68,68,0.3);
  color: var(--error);
  background: rgba(239,68,68,0.06);
}

.qty-btn svg { width: 14px; height: 14px; }

.cart-item__qty {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  min-width: 20px;
  text-align: center;
}

.drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-s);
  flex-shrink: 0;
}

.drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.drawer__total span { font-size: 13px; color: var(--text-2); }
.drawer__total strong { font-size: 20px; font-weight: 700; color: var(--accent); }

.drawer__note {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--r);
  border: 1px solid var(--border-s);
}

/* ---------------------------------------------------------------
   11. TOAST NOTIFICATIONS
   --------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-2);
  border: 1px solid var(--border-m);
  color: var(--text-1);
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 300;
  box-shadow: var(--shadow-xl);
  pointer-events: none;
}

.toast svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Inline toast (for admin forms) */
.toast-msg {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  display: none;
}

.toast-msg.success {
  display: block;
  background: rgba(52,211,153,0.1);
  color: var(--accent);
}

.toast-msg.error {
  display: block;
  background: rgba(239,68,68,0.1);
  color: var(--error);
}

/* ---------------------------------------------------------------
   12. EMPTY / LOADING STATES
   --------------------------------------------------------------- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
}

.empty-state svg { width: 40px; height: 40px; color: var(--text-3); margin: 0 auto 16px; display: block; }
.empty-state__title { font-size: 16px; font-weight: 600; color: var(--text-1); margin: 0 0 6px; }
.empty-state__text { font-size: 13px; color: var(--text-2); margin: 0; }

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--text-3);
  font-size: 13px;
}

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

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

.skeleton-card {
  background: var(--bg-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}

.skeleton-card__img {
  aspect-ratio: 3 / 2;
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-card__body { padding: 16px 20px 20px; }

.skeleton-card__line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 10px;
}

.skeleton-card__line--short { width: 60%; }
.skeleton-card__line--medium { width: 80%; }
.skeleton-card__line--price { width: 40%; height: 22px; margin-top: 14px; }

/* ---------------------------------------------------------------
   13. BADGES
   --------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge--accent { background: var(--accent-s); color: var(--accent); }
.badge--info { background: rgba(59,130,246,0.1); color: var(--info); }
.badge--warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge--error { background: rgba(239,68,68,0.1); color: var(--error); }
.badge--success { background: rgba(34,197,94,0.1); color: var(--success); }

/* ---------------------------------------------------------------
   14. WHATSAPP FAB
   --------------------------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  transition: transform 200ms, box-shadow 200ms;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.wa-float svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------
   15. FOOTER
   --------------------------------------------------------------- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-s);
  margin-top: 40px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__text {
  font-size: 12px;
  color: var(--text-3);
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__link {
  font-size: 12px;
  color: var(--text-3);
  transition: color 150ms;
}

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

/* ---------------------------------------------------------------
   16. AUTH PAGES (Login/Register)
   --------------------------------------------------------------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 16px 40px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-1);
  border: 1px solid var(--border-s);
  border-radius: var(--r-xl);
  padding: 32px;
}

.auth-card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-card__subtitle {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 24px;
}

.auth-footer {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 20px;
  text-align: center;
}

.auth-footer a {
  color: var(--accent);
  transition: color 150ms;
}

.auth-footer a:hover { color: var(--accent-h); }

/* ---------------------------------------------------------------
   17. ACCOUNT PAGE
   --------------------------------------------------------------- */
.page-header {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.page-header__name {
  font-size: 24px;
  font-weight: 700;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.acct-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-item {
  background: var(--bg-2);
  border: 1px solid var(--border-s);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 13px;
}

.checkout-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin: 16px 0;
}

.inline-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------------------------------------------------------------
   18. SORT / FILTER BAR (Store)
   --------------------------------------------------------------- */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.sort-bar__label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.sort-bar__select {
  background: var(--bg-2);
  border: 1px solid var(--border-s);
  border-radius: var(--r);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-1);
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 200ms;
}

.sort-bar__select:focus { border-color: var(--border-a); }

.sort-bar__select option {
  background: var(--bg-2);
  color: var(--text-1);
}

/* ===================================================================
   19. ADMIN LIGHT THEME
   
   Apply .theme-admin on <body> to activate the admin theme.
   =================================================================== */
.theme-admin {
  --bg-0: #f4f6f8;
  --bg-1: #ffffff;
  --bg-2: #f9fafb;
  --bg-3: #f3f4f6;
  --glass: rgba(244,246,248,0.92);

  --border-s: rgba(0,0,0,0.08);
  --border-m: #d1d5db;
  --border-a: rgba(16,185,129,0.30);

  --text-1: #111827;
  --text-2: #6b7280;
  --text-3: #9ca3af;

  --accent: #047857;
  --accent-h: #065f46;
  --accent-s: #ecfdf5;

  --error: #dc2626;
  --success: #059669;
  --warning: #d97706;
  --info: #2563eb;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
}

html[data-theme="dark"] .theme-admin {
  --bg-0: #060a0d;
  --bg-1: #0c1117;
  --bg-2: #131b23;
  --bg-3: #1a242e;
  --glass: rgba(6,10,13,0.88);
  --border-s: rgba(255,255,255,0.06);
  --border-m: rgba(255,255,255,0.12);
  --border-a: rgba(52,211,153,0.30);
  --text-1: #f0f4f8;
  --text-2: #91a0b5;
  --text-3: #64748b;
  --accent: #34d399;
  --accent-h: #2cc389;
  --accent-s: rgba(52,211,153,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.35);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);
}

html[data-theme="dark"] .theme-admin .status-pill.active { background: rgba(34,197,94,0.16); color: #86efac; }
html[data-theme="dark"] .theme-admin .status-pill.inactive { background: rgba(239,68,68,0.14); color: #fca5a5; }
html[data-theme="dark"] .theme-admin .badge-cat { background: rgba(59,130,246,0.15); color: #93c5fd; }
html[data-theme="dark"] .theme-admin .plan-chip { background: var(--bg-3); color: var(--text-2); }
html[data-theme="dark"] .theme-admin .plan-chip strong { color: var(--accent); }
html[data-theme="dark"] .theme-admin .toast-msg.success { background: rgba(34,197,94,0.14); color: #86efac; }
html[data-theme="dark"] .theme-admin .toast-msg.error { background: rgba(239,68,68,0.14); color: #fca5a5; }

/* Admin links and overrides */
.theme-admin a { color: inherit; }

.theme-admin .navbar {
  background: var(--glass);
  border-bottom: 1px solid var(--border-s);
}

.theme-admin .toast-msg.success {
  background: #def7ec;
  color: #03543f;
}

.theme-admin .toast-msg.error {
  background: #fde8e8;
  color: #9b1c1c;
}

/* Admin header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-s);
}

.admin-header__title h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text-1);
}

.admin-header__title p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.admin-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.admin-header__brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.admin-header__badge {
  background: rgba(3,105,161,0.1);
  color: #0369a1;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
}

.admin-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-nav__link {
  background: var(--bg-1);
  color: var(--text-1);
  border: 1px solid var(--border-m);
  padding: 9px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 150ms;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-nav__link:hover {
  background: var(--bg-2);
  border-color: var(--text-3);
}

.admin-nav__link--danger {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}

.admin-nav__link--danger:hover {
  background: #dc2626;
}

/* Admin Grid Layout */
.admin-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

/* Admin Card */
.admin-card {
  background: var(--bg-1);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-s);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.admin-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-3);
}

.admin-card__header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Admin Filter Bar */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-bar input,
.filter-bar select {
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-m);
  font-size: 13px;
  background: var(--bg-1);
  color: var(--text-1);
  font-family: inherit;
  outline: none;
  transition: border-color 150ms;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--accent);
}

.filter-bar input { flex: 1; min-width: 180px; }

/* Admin Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--bg-3);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  background: var(--bg-2);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-m);
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bg-3);
  vertical-align: middle;
  color: var(--text-1);
}

.admin-table tr:hover td {
  background: var(--bg-2);
}

.admin-table__prod-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-table__prod-img {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--border-m);
  flex-shrink: 0;
}

.admin-table__prod-title {
  font-weight: 700;
  color: var(--text-1);
  font-size: 14px;
}

.admin-table__prod-meta {
  font-size: 11px;
  color: var(--text-2);
}

.quick-edit-name,
.quick-edit-price {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-1);
  font: inherit;
  outline: none;
  transition: border-color 150ms, background 150ms;
}

.quick-edit-name {
  min-width: 210px;
  padding: 6px 8px;
  font-weight: 700;
}

.quick-edit-price {
  min-width: 115px;
  padding: 7px 8px;
  font-weight: 700;
  text-align: right;
}

.quick-edit-name:hover,
.quick-edit-name:focus,
.quick-edit-price:hover,
.quick-edit-price:focus {
  border-color: var(--accent);
  background: var(--bg-1);
}

.quick-price-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  white-space: nowrap;
}

.quick-extra-plans {
  max-width: 240px;
  margin-top: 7px;
  color: var(--text-3);
  font-size: 11px;
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.status-pill.active {
  background: rgba(52,211,153,0.15);
  color: #03543f;
}

.status-pill.inactive {
  background: rgba(239,68,68,0.1);
  color: #9b1c1c;
}

.theme-admin .status-pill.active { background: #def7ec; }
.theme-admin .status-pill.inactive { background: #fde8e8; }

/* Category Badge */
.badge-cat {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: rgba(59,130,246,0.1);
  color: #0369a1;
  font-size: 11px;
  font-weight: 600;
}

.theme-admin .badge-cat { background: #e0f2fe; }

/* Plan chip */
.plan-chip {
  display: inline-block;
  margin: 2px 2px 2px 0;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  background: var(--bg-2);
  color: var(--text-1);
  font-size: 11px;
}

.plan-chip strong { color: var(--accent); }
.theme-admin .plan-chip { background: #f3f4f6; color: #374151; }
.theme-admin .plan-chip strong { color: #059669; }

/* Action Buttons */
.action-btn-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-action {
  padding: 6px 10px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-m);
  background: var(--bg-1);
  cursor: pointer;
  transition: all 150ms;
  color: var(--text-1);
}

.btn-action:hover {
  background: var(--bg-2);
  border-color: var(--text-3);
}

.btn-action--delete {
  color: var(--error);
  border-color: rgba(239,68,68,0.3);
}

.btn-action--save {
  border-color: rgba(22, 163, 74, 0.3);
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.btn-action--delete:hover {
  background: rgba(239,68,68,0.06);
}

.theme-admin .btn-action--delete:hover { background: #fee2e2; }

/* Admin Form */
.form-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
  margin: 18px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bg-3);
}

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

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border-m);
  border-radius: var(--r-md);
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-1);
  color: var(--text-1);
  transition: border-color 150ms;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-s);
}

.form-group textarea {
  min-height: 70px;
  resize: vertical;
}

/* Plans Builder */
.plans-builder {
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 14px;
}

.plans-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.preset-btn {
  padding: 4px 9px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-1);
  border: 1px solid var(--border-m);
  cursor: pointer;
  transition: all 150ms;
  color: var(--text-1);
}

.preset-btn:hover {
  background: var(--accent-s);
  border-color: var(--accent);
  color: var(--accent);
}

.plan-edit-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  background: var(--bg-1);
  padding: 8px 10px;
  border-radius: var(--r);
  border: 1px solid var(--bg-3);
  margin-bottom: 8px;
}

.plan-edit-row input {
  padding: 7px 9px;
  border: 1px solid var(--border-m);
  border-radius: var(--r-sm);
  font-size: 12px;
  background: var(--bg-1);
  color: var(--text-1);
  outline: none;
}

.plan-edit-row input:focus {
  border-color: var(--accent);
}

/* Image Upload */
.image-upload-zone {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.image-preview {
  width: 70px;
  height: 70px;
  border-radius: var(--r-md);
  object-fit: cover;
  border: 1px solid var(--border-m);
  background: var(--bg-2);
  display: none;
}

/* Admin Modals */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open { display: flex; }

.modal-box {
  background: var(--bg-1);
  border-radius: var(--r-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-3);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-2);
  transition: color 150ms;
}

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

.cat-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: var(--r);
  margin-bottom: 8px;
  border: 1px solid var(--bg-3);
}

/* Admin Users — unique styles */
.admin-users-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.modal-box--devices {
  max-width: 980px;
}

.devices-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
  gap: 24px;
  align-items: start;
}

.devices-layout h4 {
  margin: 0 0 14px;
  color: var(--text-1);
}

.device-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.device-count {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: var(--bg-3);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 700;
}

.device-list {
  display: grid;
  gap: 12px;
}

.device-card {
  padding: 16px;
  border: 1px solid var(--border-m);
  border-radius: var(--r-lg);
  background: var(--bg-2);
}

.device-card__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.device-card__platform,
.device-card__date,
.device-card__location {
  margin-top: 5px;
  color: var(--text-2);
  font-size: 13px;
}

.device-card__platform span {
  margin: 0 4px;
  color: var(--text-3);
}

.device-card__note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--bg-1);
  color: var(--text-2);
  font-size: 13px;
  white-space: pre-wrap;
}

.device-empty {
  padding: 24px;
  border: 1px dashed var(--border-m);
  border-radius: var(--r-lg);
  color: var(--text-2);
  text-align: center;
}

/* ---------------------------------------------------------------
   20. RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .admin-users-grid { grid-template-columns: 1fr; }
  .devices-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: 26px; }
  .cat-bar { gap: 6px; margin-bottom: 22px; }
  .cat-btn { padding: 7px 11px; font-size: 12px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .navbar__link { font-size: 12px; padding: 6px 10px; }
  .drawer__panel { max-width: 100%; }
  .section-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .product-modal__panel { width: 95%; max-height: 90vh; }
}

@media (max-width: 520px) {
  .theme-switch {
    width: 34px;
    min-width: 34px;
    padding: 7px;
  }
  .theme-switch [data-theme-label] { display: none; }
  .navbar__actions { gap: 8px; }
}

@media (max-width: 680px) {
  .plan-edit-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .product-card__actions { grid-template-columns: 1fr; }
  .hero__sep { display: none; }
  .hero__feat { font-size: 11px; }
  .auth-card { padding: 24px; }
  .card { padding: 24px; }
  .product-modal__panel { width: 98%; }
}

/* ---------------------------------------------------------------
   22. FEATURED SHOWCASE / CAROUSEL
   --------------------------------------------------------------- */
.showcase {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-s);
}

.showcase__track {
  display: flex;
  transition: transform 600ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.showcase__slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  max-height: 420px;
}

.showcase__slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: opacity 500ms;
}

.showcase__slide.active .showcase__slide-img {
  opacity: 0.45;
}

.showcase__slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--bg-0) 0%,
    rgba(6,10,13,0.7) 40%,
    transparent 100%
  );
}

.showcase__slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.showcase__slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--accent-s);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.showcase__slide-name {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.showcase__slide-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 440px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase__slide-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}

.showcase__slide-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.showcase__slide-product-img {
  width: 180px;
  height: 180px;
  border-radius: var(--r-xl);
  object-fit: contain;
  background: var(--bg-2);
  border: 1px solid var(--border-s);
  padding: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}

/* Navigation dots */
.showcase__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.showcase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 250ms;
  opacity: 0.5;
}

.showcase__dot.active {
  background: var(--accent);
  opacity: 1;
  width: 24px;
  border-radius: 4px;
}

/* Arrow buttons */
.showcase__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  border: 1px solid var(--border-m);
  background: var(--glass);
  backdrop-filter: blur(8px);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms;
  opacity: 0;
}

.showcase:hover .showcase__arrow {
  opacity: 1;
}

.showcase__arrow:hover {
  color: var(--text-1);
  border-color: var(--accent);
  background: var(--bg-2);
}

.showcase__arrow svg {
  width: 18px;
  height: 18px;
}

.showcase__arrow--prev { left: 16px; }
.showcase__arrow--next { right: 16px; }

/* Progress bar */
.showcase__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 0 2px 0 0;
  z-index: 5;
  transition: width 50ms linear;
}

/* Responsive */
@media (max-width: 768px) {
  .showcase__slide {
    aspect-ratio: 16 / 9;
    max-height: 340px;
  }
  .showcase__slide-content {
    padding: 24px 20px;
    flex-direction: column-reverse;
    text-align: center;
    align-items: center;
  }
  .showcase__slide-desc {
    max-width: 100%;
  }
  .showcase__slide-product-img {
    width: 100px;
    height: 100px;
    padding: 10px;
  }
  .showcase__slide-actions {
    justify-content: center;
  }
  .showcase__arrow {
    width: 32px;
    height: 32px;
  }
  .showcase__slide-name {
    font-size: 20px;
  }
  .showcase__slide-price {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .showcase__slide {
    aspect-ratio: 4 / 3;
    max-height: 300px;
  }
  .showcase__slide-product-img {
    width: 80px;
    height: 80px;
  }
}

/* ---------------------------------------------------------------
   21. REDUCED MOTION
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .product-card { opacity: 1; transform: none; }
  .product-card.visible { transition: none; }
  .drawer__panel, .drawer__backdrop, .toast,
  .navbar, .btn, .cat-btn, .plan-btn, .navbar__cart,
  .navbar__link, .product-card, .wa-float,
  .product-modal__panel, .product-modal__backdrop,
  .skeleton, .skeleton-card__img, .skeleton-card__line,
  .showcase__track, .showcase__dot, .showcase__progress { 
    transition: none !important; 
    animation: none !important; 
  }
}
