:root {
  --bg: #08090f;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-border: rgba(255, 255, 255, 0.09);
  --text: #f2f3f7;
  --text-muted: #9296ab;
  --accent-a: #3b82f6;
  --accent-b: #3b82f6;
  --accent-grad: #3b82f6;
  --success: #22c55e;
  --error: #f87171;
  --star: #facc15;
  --glow-a: rgba(59, 130, 246, 0.22);
  --glow-b: rgba(37, 99, 235, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  --bg: #f5f6fa;
  --surface: rgba(20, 22, 35, 0.035);
  --surface-2: rgba(20, 22, 35, 0.06);
  --surface-border: rgba(20, 22, 35, 0.09);
  --text: #14151f;
  --text-muted: #5c5f70;
  --success: #16a34a;
  --error: #dc2626;
  --star: #d97706;
  --glow-a: rgba(59, 130, 246, 0.10);
  --glow-b: rgba(37, 99, 235, 0.08);
  --shadow: 0 20px 50px -25px rgba(20, 22, 35, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% -10%, var(--glow-a), transparent 60%),
    radial-gradient(500px circle at 90% 10%, var(--glow-b), transparent 55%),
    var(--bg);
  transition: background 0.2s ease;
}

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

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
h1 { font-size: 2rem; }
h2 { font-size: 1.25rem; margin-top: 0; }
p { line-height: 1.55; color: var(--text-muted); margin: 0 0 12px; }

.mono { font-family: "JetBrains Mono", monospace; font-size: 0.9em; }
.muted { color: var(--text-muted); }
.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--surface-border);
}
.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: white;
  font-weight: 800;
  flex-shrink: 0;
}
.brand-mark-img {
  background: var(--surface-2);
  background-size: cover;
  background-position: center;
}
.nav-links { display: flex; gap: 6px; flex: 1; justify-content: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.94rem; padding: 8px 14px; border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.nav-active { color: var(--text); background: var(--surface-2); font-weight: 700; }
.nav-admin { color: var(--accent-b) !important; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions-desktop { display: flex; align-items: center; gap: 8px; }
.nav-user { color: var(--text-muted); font-size: 0.88rem; margin-right: 4px; }

.icon-btn.mobile-menu-toggle { display: none; }
.mobile-menu-toggle .icon-menu-close { display: none; }
.mobile-menu-toggle.active .icon-menu-open { display: none; }
.mobile-menu-toggle.active .icon-menu-close { display: block; }

.mobile-menu { display: none; border-top: 1px solid var(--surface-border); background: var(--bg); }
.mobile-menu.open { display: block; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 4px; padding: 14px 20px 4px; }
.mobile-menu-links a { padding: 12px 14px; border-radius: var(--radius-sm); color: var(--text-muted); font-weight: 600; font-size: 0.96rem; }
.mobile-menu-links a.nav-active { background: var(--surface-2); color: var(--text); }
.mobile-menu-divider { border-top: 1px solid var(--surface-border); margin: 8px 20px; }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 4px; padding: 4px 20px 18px; }
.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}
.mobile-menu-item:hover { background: var(--surface-2); }
.mobile-menu-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); }
.mobile-menu-item .icon-moon { display: none; }
:root[data-theme="light"] .mobile-menu-item .icon-sun { display: none; }
:root[data-theme="light"] .mobile-menu-item .icon-moon { display: block; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .icon-alt { display: none; }
:root[data-theme="light"] .icon-btn .icon-sun { display: none; }
:root[data-theme="light"] .icon-btn .icon-moon { display: block; }
.icon-btn .icon-moon { display: none; }

.verify-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 20px;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}
.profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.profile-avatar-wrap { position: relative; cursor: pointer; flex-shrink: 0; }
.profile-avatar-wrap input[type="file"] { display: none; }
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--surface-2); background-size: cover; background-position: center;
  border: 1px solid var(--surface-border);
  display: grid; place-items: center;
  color: var(--text-muted);
}
.profile-avatar svg { width: 32px; height: 32px; }
.profile-avatar-edit {
  position: absolute; bottom: -2px; right: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-grad); color: white;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.profile-avatar-edit svg { width: 14px; height: 14px; }
.profile-info h2 { margin: 0 0 8px; font-size: 1.15rem; }
.tier-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface-2);
  font-size: 0.82rem; font-weight: 700;
}
.tier-badge svg { width: 14px; height: 14px; }
.profile-progress { font-size: 0.82rem; margin: 8px 0 0; }

.nav-avatar { border-radius: 50%; overflow: visible; }
.nav-avatar-img { width: 100%; height: 100%; border-radius: 50%; background-size: cover; background-position: center; }
.nav-avatar-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

.search-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.2s ease, opacity 0.2s ease;
}
.search-form.open { max-width: 220px; opacity: 1; margin-right: 4px; }
.search-form input {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
}

/* Layout */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  width: 100%;
  flex: 1;
}
.page-wide { max-width: 1180px; margin: 0 auto; padding: 0 24px; width: 100%; }
.page.page-admin { max-width: none; padding-left: 32px; padding-right: 32px; }

.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 20px 24px;
  margin-top: auto;
}
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* Cards & surfaces */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.15s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent-grad); color: white; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--surface-border); }
.btn-ghost:hover { filter: brightness(1.08); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { filter: brightness(1.1); }
.btn-danger { background: rgba(248, 113, 113, 0.12); color: var(--error); border-color: rgba(248, 113, 113, 0.25); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.2); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg { padding: 15px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; color: var(--text-muted); font-weight: 500; }
.card h2 { margin-bottom: 18px; }
.checkbox-label { flex-direction: row; align-items: center; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], textarea {
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
input:focus, textarea:focus { border-color: var(--accent-b); }
input[readonly] { color: var(--text-muted); }
textarea { resize: vertical; font-family: "JetBrains Mono", monospace; font-size: 0.85rem; }

/* Flash messages */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.flash-success { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.25); color: var(--success); }
.flash-error { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.25); color: var(--error); }

/* Section helpers */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.home-divider { border: none; border-top: 1px solid var(--surface-border); margin: 0; width: 100%; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.section-head .eyebrow { display: block; color: var(--accent-b); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.section-head h2 { font-size: 1.9rem; }

/* Hero */
.hero { text-align: center; padding: 56px 0 32px; }
.trust-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  color: var(--accent-b);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 18px;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 14px; line-height: 1.1; }
.hero p.lead { font-size: 1.08rem; max-width: 520px; margin: 0 auto 26px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.hero-checks { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 0.86rem; color: var(--text-muted); }
.hero-checks span { display: inline-flex; align-items: center; gap: 6px; }
.hero-checks .check { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; }

.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 0 48px;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.trust-bar strong { color: var(--text); font-weight: 700; }
.trust-bar .lock { width: 17px; height: 17px; color: var(--success); vertical-align: -3px; }
.trust-bar .divider { width: 1px; height: 16px; background: var(--surface-border); }
.ltc-chip {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent-grad);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
}

/* Pills */
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.15s;
}
.pill:hover { color: var(--text); }
.pill-active { background: var(--accent-grad); color: white; border-color: transparent; }

/* Category cards */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.category-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s;
}
.category-card:hover { transform: translateY(-3px); border-color: var(--accent-a); }
.category-card .cat-icon {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--accent-grad);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.category-card span { font-weight: 600; font-size: 0.9rem; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(59, 130, 246, 0.4); }
.product-image {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  position: relative;
}
.product-image .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 17, 26, 0.85);
  backdrop-filter: none;
}
.product-image .badge-success { color: #4ade80; }
.product-image .badge-error { color: #f87171; }
.product-image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--surface-border);
}
.product-image-fallback.big { font-size: 4rem; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-b); font-weight: 700; }
.product-body h3 { font-size: 1.02rem; margin: 0; }
.product-card-divider { border: none; border-top: 1px solid var(--surface-border); margin-top: auto; margin-bottom: 0; width: 100%; }
.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
.price { font-weight: 700; font-size: 1.05rem; color: var(--accent-a); }
.price.big { font-size: 1.8rem; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.stock-text { font-size: 0.78rem; font-weight: 600; }
.stock-text.in-stock { color: var(--success); }
.stock-text.out-of-stock { color: var(--error); }
.price-compare { text-decoration: line-through; color: var(--text-muted); font-size: 0.85em; font-weight: 500; }
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--success);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

/* Badges & status */
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.badge-success { background: rgba(34, 197, 94, 0.18); color: var(--success); }
.badge-error { background: rgba(248, 113, 113, 0.18); color: var(--error); }
.badge-neutral { background: var(--surface-2); color: var(--text-muted); }

.status { font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; }
.status.big { font-size: 0.85rem; padding: 6px 14px; }
.status-pending { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.status-paid, .status-delivered { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-cancelled, .status-expired, .status-error { background: rgba(248, 113, 113, 0.15); color: var(--error); }

/* Stars */
.stars { color: var(--star); letter-spacing: 1px; }
.stars.lg { font-size: 1.3rem; }
.rating-line { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 0.9rem; color: var(--text-muted); }

/* Product detail */
.product-title-block { margin-bottom: 20px; }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
.product-detail-main { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.product-detail-image {
  aspect-ratio: 4 / 3;
  max-height: 360px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  position: relative;
  border: 1px solid var(--surface-border);
}
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.title-row h1 { margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.product-detail-info { display: flex; flex-direction: column; gap: 16px; }
.buy-box { display: flex; flex-direction: column; gap: 16px; }
.buy-box-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buy-box hr { border: none; border-top: 1px solid var(--surface-border); margin: 0; width: 100%; }
.buy-form { display: flex; flex-direction: column; gap: 16px; }
.buy-form-note { font-size: 0.8rem; margin: 0; text-align: center; }
.buy-form-note a { color: var(--accent-a); font-weight: 600; }
.qty-row { display: flex; align-items: center; justify-content: space-between; }
.qty-label { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--surface-border); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
.qty-stepper .qty-btn { width: 36px; height: 36px; display: grid; place-items: center; background: transparent; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; padding: 0; }
.qty-stepper .qty-btn:hover { background: var(--surface); color: var(--text); }
.qty-stepper input {
  width: 46px;
  text-align: center;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 1rem;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper.disabled { opacity: 0.5; pointer-events: none; }
.buy-buttons { display: flex; gap: 10px; }
.buy-buttons .btn { flex: 1; min-width: 0; padding: 13px 12px; font-size: 0.9rem; gap: 7px; white-space: normal; text-align: center; line-height: 1.25; }
.buy-buttons .btn svg { flex-shrink: 0; width: 16px; height: 16px; }

.product-live-info { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.live-info-row { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; }
.live-info-row:not(:last-child) { padding-bottom: 10px; border-bottom: 1px solid var(--surface-border); }
.live-info-icon { width: 16px; height: 16px; color: var(--accent-a); flex-shrink: 0; }

.product-tabs-section { margin-top: 24px; }
.product-tabs-section .tab-panel.active { display: block; }
.product-description :where(ul, ol) { margin: 8px 0; padding-left: 22px; }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--surface-border); }
.review-item:last-child { border-bottom: none; }
.review-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 0.85rem; color: var(--text-muted); }

/* Auth */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0; }
.auth-card { width: 100%; max-width: 400px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 0.88rem; }
.auth-switch a { color: var(--accent-b); font-weight: 600; }

/* Tables */
.table-wrap { overflow-x: auto; padding: 0; border-radius: var(--radius); }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 600px; }
th, td { text-align: left; padding: 14px 18px; font-size: 0.88rem; border-bottom: 1px solid var(--surface-border); vertical-align: middle; white-space: nowrap; }
.wrap-cell { white-space: normal; word-break: break-all; }
.table-compact th, .table-compact td { padding: 11px 12px; font-size: 0.82rem; }
th { color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }
.table-wrap tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }
.table-wrap tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }
.row-actions { display: flex; gap: 8px; }
.truncate { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Order / payment page */
.order-page { display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.order-summary { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.order-summary-row { display: flex; justify-content: space-between; font-size: 0.94rem; }
.order-items-list { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 12px; }
.order-items-list .item-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-muted); }
.payment-grid { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; margin: 20px 0; }
.qr-code { border-radius: var(--radius-sm); border: 6px solid white; }
.payment-fields { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 14px; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; }

.submit-tx-header { justify-content: center; text-align: center; margin-bottom: 24px; }
.submit-tx-card { max-width: 620px; margin: 0 auto; }
.submit-tx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.submit-tx-ref { font-size: 1.3rem; font-weight: 800; font-family: "JetBrains Mono", monospace; margin-top: 4px; }
.submit-tx-card hr { border: none; border-top: 1px solid var(--surface-border); margin: 0 0 20px; }
.submit-tx-card label { margin-bottom: 18px; }
.submit-tx-help { margin: 4px 0 18px; padding: 16px 18px; }
.submit-tx-help-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; margin-bottom: 10px; }
.submit-tx-help-title svg { width: 16px; height: 16px; color: var(--text-muted); }
.submit-tx-help ul { margin: 0 0 12px; padding-left: 20px; color: var(--text-muted); font-size: 0.86rem; display: flex; flex-direction: column; gap: 4px; }
.submit-tx-example { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; font-family: "JetBrains Mono", monospace; font-size: 0.78rem; color: var(--text-muted); }
.submit-tx-footer-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  max-width: 620px; margin: 20px auto 0;
  color: var(--text-muted); font-size: 0.85rem;
}
.submit-tx-footer-note svg { width: 15px; height: 15px; }
.payment-status { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 14px; border-radius: var(--radius-sm); background: rgba(245, 158, 11, 0.08); color: #d97706; font-size: 0.88rem; }
.countdown-row { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; margin-top: 4px; }
.countdown-row strong { font-size: 1rem; }
.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(217, 119, 6, 0.3);
  border-top-color: #d97706;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.success-card { text-align: left; }

.success-hero { text-align: center; padding: 40px 24px; }
.success-check {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 2px solid var(--success);
  color: var(--success);
  margin-bottom: 14px;
}
.success-check svg { width: 26px; height: 26px; }

.delivered-group { padding: 0; }
.delivered-group summary { list-style: none; padding: 20px 24px; cursor: pointer; display: flex; }
.delivered-group summary::-webkit-details-marker { display: none; }
.delivered-summary { display: flex; align-items: center; gap: 14px; width: 100%; }
.delivered-summary-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background-size: cover; background-position: center; background-color: var(--surface-2);
  display: grid; place-items: center; font-weight: 800; color: var(--text-muted);
  flex-shrink: 0;
}
.delivered-summary-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.delivered-summary-info .muted { font-size: 0.78rem; }
.delivered-group > *:not(summary) { padding: 0 24px; }
.delivered-group > *:first-of-type:not(summary) { margin-top: 0; }
.delivered-group > .deliverables-head { margin-top: 16px; }
.delivered-group > .delivered-items { margin-bottom: 20px; }
.delivered-group > .review-form { margin-bottom: 20px; }

.deliverables-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.deliverables-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.deliverables-actions .btn { border: 1px solid var(--surface-border); }
.deliverables-actions .btn svg { width: 15px; height: 15px; }
.delivered-items { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.review-form {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.star-picker { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-picker input { display: none; }
.star-picker label { color: var(--surface-border); font-size: 1.5rem; cursor: pointer; padding: 0; }
.star-picker label:hover, .star-picker label:hover ~ label { color: var(--star); }
.star-picker label.is-filled { color: var(--star); }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--surface-border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-thumb {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background-size: cover; background-position: center; background-color: var(--surface-2);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .name { font-weight: 600; font-size: 0.92rem; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-item-qty input { width: 54px; text-align: center; padding: 8px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 10px; }
.cart-summary-total { font-size: 1.1rem; font-weight: 800; border-top: 1px solid var(--surface-border); padding-top: 12px; margin-top: 6px; }

/* How it works */
.steps { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; }
.step { display: flex; gap: 18px; position: relative; padding-bottom: 34px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 17px; top: 36px; bottom: 0;
  width: 2px;
  background: var(--surface-border);
}
.step:last-child::before { display: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--surface-border);
  color: var(--accent-b); font-weight: 800;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.step-body h3 { font-size: 1rem; margin-bottom: 4px; }
.step-body p { margin: 0; font-size: 0.9rem; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature-card { padding: 22px; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface-2);
  color: var(--accent-b);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature-card h3 { font-size: 0.98rem; }
.feature-card p { font-size: 0.88rem; margin: 0; }

/* Stats bar */
.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats-bar .stat-card { text-align: center; }
.stats-bar .stat-value { font-size: 2rem; }

/* Reviews grid */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.review-card { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.review-card .review-top { display: flex; align-items: center; justify-content: space-between; }
.review-card .review-date { font-size: 0.75rem; color: var(--text-muted); }
.review-card .review-product { font-size: 0.78rem; color: var(--accent-b); font-weight: 600; }
.review-card p { font-size: 0.88rem; margin: 0; }
.verified-tag { color: var(--success); font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.verified-tag svg { width: 13px; height: 13px; flex-shrink: 0; }

/* FAQ (native details/summary, no JS needed) */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--text-muted); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 16px; margin: 0; }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 90px; }
.admin-nav a { padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text-muted); font-weight: 500; font-size: 0.9rem; }
.admin-nav a:hover { background: var(--surface-2); color: var(--text); }
.admin-nav a.active { background: var(--accent-grad); color: white; }
.admin-content { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.admin-nav-toggle { display: none; width: 100%; justify-content: flex-start; gap: 10px; margin-bottom: 4px; }
.admin-nav-toggle svg { width: 18px; height: 18px; }
.admin-nav-toggle .icon-menu-close { display: none; }
.admin-nav-toggle.active .icon-menu-open { display: none; }
.admin-nav-toggle.active .icon-menu-close { display: block; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat-card { display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-size: 1.7rem; font-weight: 800; }

.simple-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.simple-list li { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--surface-border); }
.simple-list li:last-child { border-bottom: none; padding-bottom: 0; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .btn { margin-top: 12px; }

/* Admin nav groupee */
.admin-nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 16px 14px 6px;
  margin-top: 8px;
  border-top: 1px solid var(--surface-border);
}
.admin-nav-label:first-child { padding-top: 0; margin-top: 0; border-top: none; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--surface-border); margin-bottom: 4px; }
.tab { padding: 10px 4px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.tab:hover { color: var(--text); }
.tab-active { color: var(--text); border-bottom-color: var(--accent-a); }
button.tab { background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit; }
.tab-panel { display: none; flex-direction: column; gap: 20px; margin-top: 20px; }
.tab-panel.active { display: flex; }

/* Charts */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mini-chart { width: 100%; height: 90px; display: block; }
.dashboard-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.live-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 600;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.live-viewers { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); }
.live-viewers .live-dot { width: 6px; height: 6px; }

/* Invoice / order detail admin */
.invoice-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.invoice-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.invoice-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; position: sticky; top: 20px; }

/* Grille produits admin */
.admin-products-search { display: flex; gap: 10px; margin-bottom: 4px; }
.admin-products-search input { flex: 1; max-width: 320px; }
.admin-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.admin-product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.admin-product-card .product-image { display: block; height: 150px; }
.admin-product-card .product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.admin-product-actions { display: flex; gap: 6px; padding: 0 16px 16px; }
.admin-product-actions form { display: contents; }

/* Upload d'image produit */
.image-upload-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.image-dropzone {
  width: 160px;
  height: 100px;
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 10px;
}
.image-dropzone:hover { border-color: var(--accent-a); color: var(--text); }
.image-dropzone input { display: none; }
.image-preview {
  width: 160px;
  height: 100px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Editeur de texte riche minimal */
.richtext-toolbar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.richtext-toolbar button {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
}
.richtext-toolbar button:hover { border-color: var(--accent-a); }
.richtext-editor {
  min-height: 140px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.6;
}
.richtext-editor:focus { outline: none; border-color: var(--accent-a); }
.richtext-editor ul, .richtext-editor ol { margin: 8px 0; padding-left: 22px; }

.stock-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Modal generique */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal-box textarea { width: 100%; font-family: "JetBrains Mono", monospace; font-size: 0.85rem; }

/* Coupon form */
.coupon-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.coupon-main, .coupon-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.coupon-main .card > label,
.coupon-main .card > .form-row,
.coupon-main .card > .segmented,
.coupon-main .card > .radio-cards { margin-top: 26px; }
.coupon-main .card > label:first-of-type,
.coupon-main .card > .form-row:first-of-type { margin-top: 0; }
#value-hint { display: block; margin-top: 4px; }
.coupon-main .card > label > span { display: block; margin-top: 4px; font-size: 0.78rem; }

.segmented { display: flex; border: 1px solid var(--surface-border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.segmented-btn { padding: 11px 22px; background: var(--surface-2); color: var(--text-muted); font-weight: 600; font-size: 0.86rem; border: none; cursor: pointer; }
.segmented-btn.active { background: var(--accent-grad); color: white; }

.value-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.value-row input { flex: 1; }
.value-row span { font-weight: 700; color: var(--text-muted); min-width: 20px; }
.quick-values { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.radio-cards { display: flex; flex-direction: column; gap: 14px; }
.radio-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  cursor: pointer;
  transition: border-color 0.15s;
}
.radio-card:has(input:checked) { border-color: var(--accent-a); background: var(--surface-2); }
.radio-card input { margin-top: 3px; }
.radio-card strong { font-size: 0.88rem; }
.radio-card p { margin: 6px 0 0; font-size: 0.8rem; line-height: 1.5; }

/* Filtres produits */
.filters-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.filters-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.filters-sidebar .filter-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.filters-sidebar .filter-range { display: flex; gap: 8px; }
.filters-sidebar .filter-range .input-suffix-wrap { width: 100%; min-width: 0; flex: 1; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.input-icon-wrap input.has-icon { width: 100%; padding-left: 38px; }
.input-suffix-wrap { position: relative; }
.input-suffix-wrap input.has-suffix { width: 100%; padding-right: 26px; }
.input-suffix-wrap .input-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.85rem; pointer-events: none; }
.filter-reset-link { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; padding: 4px 0 0; }
.filter-reset-link:hover { color: var(--text); }
.filter-reset-link svg { width: 14px; height: 14px; }
.filters-sidebar hr { border: none; border-top: 1px solid var(--surface-border); width: 100%; margin: 2px 0; }
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { margin: 0 6px; }

/* Tri avis */
.sort-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; justify-content: center; }
.sort-tabs .pill { border-radius: var(--radius-sm); }

/* Checkout etapes */
.checkout-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.checkout-step { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.checkout-step .n { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 0.78rem; }
.checkout-step.done .n { background: var(--success); color: white; }
.checkout-step.current { color: var(--text); font-weight: 700; }
.checkout-step.current .n { background: var(--accent-grad); color: white; }
.checkout-panel { display: none; }
.checkout-panel.active { display: block; }
.legal-checks { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.legal-checks label { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 0.82rem; }
.legal-checks input { margin-top: 3px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; }
.applied-coupon { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: var(--radius-sm); background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.2); font-size: 0.85rem; margin-bottom: 10px; }
.payment-method-choice { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--accent-a); background: var(--surface-2); margin-bottom: 16px; }

/* Responsive */
@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav-toggle { display: flex; }
  .admin-nav { display: none; position: static; flex-direction: column; overflow-x: visible; background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 10px; margin-bottom: 8px; }
  .admin-nav.open { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-actions-desktop { display: none; }
  .icon-btn.mobile-menu-toggle { display: grid; place-items: center; }
  .cart-layout { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .search-form.open { max-width: 140px; }
  .invoice-layout { grid-template-columns: 1fr; }
  .invoice-side { position: static; }
  .coupon-layout { grid-template-columns: 1fr; }
  .filters-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
}

@media (max-width: 520px) {
  .navbar-inner { padding: 12px 16px; }
  .brand span:last-child { display: none; }
  .page { padding: 24px 16px 48px; }
  .page.page-admin { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 40px 0 24px; }
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 0.96rem; }
  .hero-checks { gap: 14px; font-size: 0.8rem; }
  .trust-bar { gap: 10px; font-size: 0.8rem; padding: 14px 0 32px; }
  .section-head h2 { font-size: 1.5rem; }
  .section { padding: 40px 0; }
  .section-tight { padding: 28px 0; }
  .product-detail { gap: 20px; }
  .buy-box { padding: 20px; }
  .page-head { gap: 10px; }
  .page-head h1 { font-size: 1.5rem; }
}

/* Assistant chatbot */
.chatbot-widget { position: fixed; right: 20px; bottom: 20px; z-index: 200; }
.chatbot-launcher {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-grad); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.6);
  transition: transform 0.15s ease;
}
.chatbot-launcher:hover { transform: scale(1.06); }
.chatbot-launcher svg { width: 26px; height: 26px; }
.chatbot-icon-close { display: none; }
.chatbot-widget.open .chatbot-icon-open { display: none; }
.chatbot-widget.open .chatbot-icon-close { display: block; }

.chatbot-panel {
  position: absolute; right: 0; bottom: 72px;
  width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 120px);
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(0.98); pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.chatbot-widget.open .chatbot-panel { opacity: 1; transform: none; pointer-events: auto; }

.chatbot-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--accent-grad); color: #fff; flex-shrink: 0; }
.chatbot-header-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; flex-shrink: 0; }
.chatbot-header-icon svg { width: 18px; height: 18px; }
.chatbot-header-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.chatbot-header-info strong { font-size: 0.92rem; }
.chatbot-status { display: flex; align-items: center; gap: 5px; font-size: 0.76rem; opacity: 0.9; }
.chatbot-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.chatbot-header-btn { width: 28px; height: 28px; border-radius: 8px; border: none; background: rgba(255, 255, 255, 0.16); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.chatbot-header-btn:hover { background: rgba(255, 255, 255, 0.28); }
.chatbot-header-btn svg { width: 15px; height: 15px; }

.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chatbot-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 0.86rem; line-height: 1.5; white-space: pre-wrap; }
.chatbot-msg-bot { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }
.chatbot-msg-user { align-self: flex-end; background: var(--accent-grad); color: #fff; border-bottom-right-radius: 4px; }
.chatbot-msg-link { color: var(--accent-a); text-decoration: underline; font-weight: 600; }
.chatbot-msg-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--surface-2); border-radius: 14px; border-bottom-left-radius: 4px; }
.chatbot-msg-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: chatbot-bounce 1.2s infinite ease-in-out; }
.chatbot-msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-msg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatbot-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chatbot-quick-replies { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 12px; flex-shrink: 0; }
.chatbot-quick-btn { text-align: left; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--surface-border); background: var(--surface-2); color: var(--text); font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.chatbot-quick-btn:hover { filter: brightness(1.08); }

.chatbot-input-row { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--surface-border); flex-shrink: 0; }
.chatbot-input-row input { flex: 1; background: var(--surface-2); border: 1px solid var(--surface-border); border-radius: 10px; padding: 10px 14px; color: var(--text); font-size: 0.86rem; }
.chatbot-send-btn { width: 38px; height: 38px; border-radius: 10px; border: none; background: var(--accent-grad); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.chatbot-send-btn svg { width: 16px; height: 16px; }
.chatbot-footer-hint { padding: 0 16px 12px; font-size: 0.72rem; color: var(--text-muted); text-align: center; flex-shrink: 0; }

@media (max-width: 480px) {
  .chatbot-widget { right: 12px; bottom: 12px; }
  .chatbot-panel { width: calc(100vw - 24px); height: calc(100vh - 100px); bottom: 68px; right: -8px; }
}

/* Admin invoices list */
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--surface-border); flex-wrap: wrap; }
.table-toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.table-search { background: var(--surface-2); border: 1px solid var(--surface-border); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.84rem; color: var(--text); width: 200px; }
.table-row-link { cursor: pointer; transition: background 0.1s ease; }
.table-row-link:hover { background: rgba(59, 130, 246, 0.08); }
.amount-paid { color: var(--success); font-weight: 700; font-size: 0.85rem; }
.payment-cell { display: flex; align-items: center; gap: 8px; }
.payment-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #345d9d; color: #fff; font-size: 0.7rem; font-weight: 800; flex-shrink: 0; }
.icon-btn-sm { width: 30px; height: 30px; }
.icon-btn-sm svg { width: 15px; height: 15px; }

/* Admin invoice detail */
.invoice-hero { text-align: left; margin-bottom: 20px; }
.invoice-hero-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.invoice-hero-price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.invoice-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--surface-border); font-size: 0.8rem; color: var(--text-muted); }
.badge-pill svg { width: 13px; height: 13px; flex-shrink: 0; }

.invoice-item-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--surface-border); }
.invoice-item-row:last-child { border-bottom: none; }
.invoice-item-info { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.invoice-item-title { display: flex; align-items: center; gap: 10px; }
.invoice-item-price { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.invoice-item-price span { font-size: 0.78rem; }

.related-card h2 { margin-bottom: 10px; }
.related-link { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 0.88rem; color: var(--text); }
.related-link svg { width: 15px; height: 15px; color: var(--text-muted); }
.related-link:hover { color: var(--accent-a); }

.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  background: var(--bg); border: 1px solid var(--surface-border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); min-width: 180px; padding: 6px; flex-direction: column; gap: 2px;
}
.dropdown-menu.open { display: flex; }
.dropdown-item { text-align: left; padding: 9px 12px; border-radius: 7px; border: none; background: transparent; color: var(--text); font-size: 0.86rem; cursor: pointer; width: 100%; }
.dropdown-item:hover { background: var(--surface-2); }
.dropdown-item-danger { color: var(--error); }
