/* ============================================================
   STREAMOX — Complete Stylesheet with Full Dark/Light Mode
   ============================================================ */

/* ── 1. CSS VARIABLES ─────────────────────────────────────── */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0369a1;
  --primary-glow: rgba(14, 165, 233, 0.35);
  --accent: #6366f1;
  --accent-2: #ec4899;
  --bg-dark: #eef6fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f9ff;
  --bg-card-2: rgba(255, 255, 255, 0.85);
  --border-color: #d6e6f2;
  --border-color-strong: rgba(14, 165, 233, 0.3);
  --text-main: #0b2233;
  --text-muted: #5b7488;
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(56, 189, 248, 0.18);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --card-shadow: 0 10px 30px -10px rgba(11, 34, 51, 0.15);
  --radius-lg: 20px;
  --radius-md: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="dark"] {
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --primary-glow: rgba(56, 189, 248, 0.4);
  --accent: #818cf8;
  --accent-2: #f472b6;
  --bg-dark: #060b18;
  --bg-card: #0f1a2e;
  --bg-card-hover: #152238;
  --bg-card-2: rgba(15, 26, 46, 0.92);
  --border-color: #1e2f4a;
  --border-color-strong: rgba(56, 189, 248, 0.3);
  --text-main: #eaf2fb;
  --text-muted: #9fb3c8;
  --glass-bg: rgba(10, 17, 33, 0.88);
  --glass-border: rgba(56, 189, 248, 0.15);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

/* ── 3. SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ── 4. BACKGROUND OVERLAY & VIDEO ────────────────────────── */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  opacity: 0.60;
  filter: contrast(1.15) brightness(0.85);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(6,10,22,0.4) 0%, rgba(3,5,14,0.85) 100%);
  pointer-events: none;
  z-index: -2;
}

:root:not([data-theme="dark"]) .bg-overlay {
  background: radial-gradient(ellipse at 50% 30%, rgba(240,246,252,0.6) 0%, rgba(230,240,250,0.92) 100%);
}

/* ── 5. AURORA EFFECTS ────────────────────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: auroraFloat 12s ease-in-out infinite alternate;
  mix-blend-mode: multiply;
}

:root[data-theme="dark"] .aurora span {
  mix-blend-mode: screen;
  opacity: 0.3;
}

.aurora span:nth-child(1) {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: -150px;
  left: -100px;
  animation-duration: 14s;
}

.aurora span:nth-child(2) {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: 30%;
  right: -100px;
  animation-duration: 18s;
  animation-delay: -4s;
}

.aurora span:nth-child(3) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: -100px;
  left: 30%;
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes auroraFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── 6. GRAIN TEXTURE ─────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── 7. CONTAINER ─────────────────────────────────────────── */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ── 8. NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  transition: var(--transition);
}

:root[data-theme="dark"] .navbar {
  background: var(--glass-bg);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 1px 0 var(--border-color);
}

.navbar-inner,
.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

/* ── 9. NAVBAR BRAND ──────────────────────────────────────── */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.navbar-brand .brand-name {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* ── 10. NAVBAR MENU & LINKS ──────────────────────────────── */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
}

:root[data-theme="dark"] .navbar-link:hover,
:root[data-theme="dark"] .navbar-link.active {
  background: rgba(56, 189, 248, 0.1);
}

.navbar-link svg,
.navbar-link i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── 11. THEME TOGGLE BUTTON ──────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.theme-toggle svg,
.theme-toggle i {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* ── 12. USER BLOCK & AVATAR ──────────────────────────────── */
.user-block {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── 13. USER DROPDOWN ────────────────────────────────────── */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  z-index: 2000;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: var(--transition);
  color: var(--text-main);
}

.user-dropdown.open,
.user-block:focus-within .user-dropdown,
.user-block.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ── 14. DROPDOWN HEADER ──────────────────────────────────── */
.dropdown-header {
  padding: 16px;
  background: rgba(56, 189, 248, 0.08);
  border-bottom: 1px solid var(--border-color);
}

:root[data-theme="dark"] .dropdown-header {
  background: rgba(56, 189, 248, 0.06);
}

.dropdown-header .dh-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.dropdown-header .dh-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── 15. DROPDOWN ITEMS ───────────────────────────────────── */
.dropdown-body {
  padding: 8px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
}

.dropdown-item svg,
.dropdown-item i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.dropdown-item:hover svg,
.dropdown-item:hover i {
  color: var(--primary);
}

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

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

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* ── 16. BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

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

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

.btn-danger {
  background: linear-gradient(135deg, var(--error), #dc2626);
  color: #fff;
  border-color: transparent;
}

.btn-danger:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ── 17. CARDS ────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-strong);
  box-shadow: 0 16px 40px -12px rgba(14, 165, 233, 0.2);
  transform: translateY(-2px);
}

:root[data-theme="dark"] .card:hover {
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}

.card-header {
  padding: 20px 24px 0;
}

.card-body {
  padding: 20px 24px;
}

.card-footer {
  padding: 0 24px 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 16px;
  padding-top: 16px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── 18. BADGES ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-info {
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary);
  border: 1px solid rgba(14, 165, 233, 0.25);
}

:root[data-theme="dark"] .badge-info {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.2);
}

.badge-primary {
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary);
  border: 1px solid var(--border-color-strong);
}

/* ── 19. INPUTS ───────────────────────────────────────────── */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-card-hover);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239fb3c8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

.input-wrapper {
  position: relative;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.input-wrapper .input {
  padding-left: 38px;
}

/* ── 20. PRODUCT CARDS ────────────────────────────────────── */
.product-card {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-strong);
  box-shadow: 0 20px 50px -15px var(--primary-glow);
}

:root[data-theme="dark"] .product-card {
  background: linear-gradient(160deg, rgba(15, 26, 46, 0.97) 0%, rgba(10, 20, 38, 0.97) 100%) !important;
}

.product-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-card-hover);
}

.product-body {
  padding: 16px;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

:root[data-theme="dark"] .product-price {
  background: rgba(56, 189, 248, 0.07) !important;
  border-color: rgba(56, 189, 248, 0.15) !important;
}

/* ── 21. HERO PANEL ───────────────────────────────────────── */
.hero-panel {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

:root[data-theme="dark"] .hero-panel {
  background: linear-gradient(135deg, rgba(15, 26, 46, 0.95), rgba(10, 20, 38, 0.92)) !important;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

:root[data-theme="dark"] .hero-meta span {
  background: rgba(56, 189, 248, 0.08) !important;
  color: var(--text-main) !important;
}

/* ── 22. TRUST PANEL ──────────────────────────────────────── */
.trust-panel {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

:root[data-theme="dark"] .trust-panel {
  background: linear-gradient(135deg, rgba(15, 26, 46, 0.9), rgba(10, 20, 38, 0.85)) !important;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

:root[data-theme="dark"] .trust-item {
  background: rgba(56, 189, 248, 0.06) !important;
  border-color: rgba(56, 189, 248, 0.15) !important;
}

/* ── 23. SEARCH INPUT ─────────────────────────────────────── */
.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  color: var(--text-main);
  font-size: 0.95rem;
  width: 100%;
  transition: var(--transition);
  outline: none;
}

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

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

:root[data-theme="dark"] .search-input {
  background: rgba(15, 26, 46, 0.9) !important;
  color: var(--text-main) !important;
}

/* ── 24. CATEGORY BUTTONS ─────────────────────────────────── */
.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.category-btn:hover,
.category-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

:root[data-theme="dark"] .category-btn {
  background: rgba(15, 26, 46, 0.8) !important;
}

:root[data-theme="dark"] .category-btn:hover,
:root[data-theme="dark"] .category-btn.active {
  background: var(--primary) !important;
}

:root[data-theme="dark"] .category-btn:not(:hover):not(.active):hover {
  background: rgba(15, 26, 46, 0.95) !important;
}

/* ── 25. SECTION ELEMENTS ─────────────────────────────────── */
.section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

:root[data-theme="dark"] .section-count {
  background: rgba(56, 189, 248, 0.08) !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid var(--border-color-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

:root[data-theme="dark"] .eyebrow {
  background: rgba(56, 189, 248, 0.08) !important;
}

/* ── 26. INFO CARD & ORDER CARD ───────────────────────────── */
.info-card,
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}

.info-card:hover,
.order-card:hover {
  border-color: var(--border-color-strong);
  box-shadow: var(--card-shadow);
}

:root[data-theme="dark"] .info-card,
:root[data-theme="dark"] .order-card {
  background: var(--bg-card) !important;
}

/* ── 27. PROFILE HEADER ───────────────────────────────────── */
.profile-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

:root[data-theme="dark"] .profile-header {
  background: var(--bg-card) !important;
}

/* ── 28. FILTER TABS ──────────────────────────────────────── */
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

:root[data-theme="dark"] .filter-tab {
  background: var(--bg-card) !important;
}

/* ── 29. CHAT UI ──────────────────────────────────────────── */
.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chat-wrapper-header {
  padding: 16px 20px;
  background: rgba(56, 189, 248, 0.08) !important;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

:root[data-theme="dark"] .chat-wrapper-header {
  background: rgba(56, 189, 248, 0.06) !important;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-msg.client {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.agent {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(240, 249, 255, 0.9) !important;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

:root[data-theme="dark"] .chat-input-area {
  background: rgba(10, 17, 33, 0.9) !important;
}

:root[data-theme="light"] .chat-input-area {
  background: rgba(240, 249, 255, 0.9) !important;
}

.chat-msg-input {
  flex: 1;
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: var(--transition);
  min-height: 44px;
  max-height: 120px;
}

.chat-msg-input::placeholder {
  color: var(--text-muted);
}

.chat-msg-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

:root[data-theme="dark"] .chat-msg-input {
  background: rgba(15, 26, 46, 0.8) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

/* ── 30. FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 24px;
  margin-top: auto;
  color: var(--text-muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

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

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── 31. MODALS & OVERLAYS ────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: var(--transition);
  color: var(--text-main);
}

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

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

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── 32. TABLES ───────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: var(--text-main);
}

thead {
  background: rgba(14, 165, 233, 0.06);
}

:root[data-theme="dark"] thead {
  background: rgba(56, 189, 248, 0.05);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

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

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: var(--bg-card-hover);
}

/* ── 33. ALERTS ───────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--success);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--warning);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--error);
}

.alert-info {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.25);
  color: var(--primary);
}

/* ── 34. PROGRESS BARS ────────────────────────────────────── */
.progress {
  height: 6px;
  background: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* ── 35. TOOLTIPS ─────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  z-index: 9999;
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* ── 36. LOADING / SKELETON ───────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--border-color) 25%,
    var(--bg-card-hover) 50%,
    var(--border-color) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── 37. ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

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

@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

.animate-fadeInUp { animation: fadeInUp 0.5s ease forwards; }
.animate-fadeInDown { animation: fadeInDown 0.5s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.4s ease forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* ── 38. UTILITY CLASSES ──────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-main { color: var(--text-main); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--error); }

.font-mono { font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.gap-xs { gap: 4px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }

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

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 999px; }

.border { border: 1px solid var(--border-color); }
.border-strong { border: 1px solid var(--border-color-strong); }

.shadow { box-shadow: var(--card-shadow); }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.pointer { cursor: pointer; }
.select-none { user-select: none; }

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

/* Spacing */
.mt-xs { margin-top: 4px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 32px; }
.mb-xs { margin-bottom: 4px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 32px; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-xs { padding: 4px; }
.p-sm { padding: 8px; }
.p-md { padding: 16px; }
.p-lg { padding: 24px; }
.p-xl { padding: 32px; }

.hidden { display: none !important; }
.invisible { visibility: hidden; }

/* ── 39. SECTION LAYOUT ───────────────────────────────────── */
.section {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 600px;
}

/* ── 40. STAT CARDS ───────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-color-strong);
  box-shadow: var(--card-shadow);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

:root[data-theme="dark"] .stat-icon {
  background: rgba(56, 189, 248, 0.1);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── 41. NOTIFICATION DOT ─────────────────────────────────── */
.notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--error);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
}

/* ── 42. DIVIDER ──────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: 20px 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ── 43. TABS ─────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.tab {
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  margin-bottom: -1px;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}

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

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

/* ── 44. EMPTY STATE ──────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 0.875rem;
  max-width: 320px;
}

/* ── 45. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .navbar-inner {
    height: 56px;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px;
    gap: 4px;
    z-index: 999;
  }

  .navbar-link {
    width: 100%;
    padding: 12px 16px;
  }

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

  .section {
    padding: 40px 0;
  }

  .hero-panel {
    padding: 24px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .modal {
    max-width: 100%;
    margin: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 85vh;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .chat-msg {
    max-width: 90%;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .stat-card {
    padding: 16px;
  }

  .btn-lg {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .card-body {
    padding: 16px;
  }

  .product-body {
    padding: 12px;
  }

  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    white-space: nowrap;
  }
}

/* ── 46. HAMBURGER / MOBILE NAV ───────────────────────────── */

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: var(--transition);
  z-index: 1100;
}

.hamburger:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--primary);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--primary);
}

/* Mobile nav drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  pointer-events: none;
}

.mobile-nav-drawer.open {
  pointer-events: all;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-drawer.open .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-left: 1px solid var(--glass-border);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateX(0);
}

:root[data-theme="dark"] .mobile-nav-panel {
  background: rgba(6, 11, 24, 0.97);
  border-left-color: rgba(56, 189, 248, 0.12);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.mobile-nav-close:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 4px;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.15);
}

:root[data-theme="dark"] .mobile-nav-link:hover,
:root[data-theme="dark"] .mobile-nav-link.active {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.12);
}

.mobile-nav-link i {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 12px;
}

.mobile-nav-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* User name in navbar — hide on very small screens */
.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── HAMBURGER BUTTON & MOBILE DRAWER BASE ─────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  gap: 5px;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0;
  transition: all 0.2s;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

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

.hamburger:hover span {
  background: var(--primary);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE NAV DRAWER ─────────────────────────────────────── */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
  animation: slideInRight 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

.mobile-nav-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.mobile-nav-close:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-nav-links {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
}

.mobile-nav-link i {
  width: 20px;
  text-align: center;
  color: var(--text-muted);
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
  color: var(--primary);
}

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

.mobile-nav-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: rgba(56, 189, 248, 0.04);
}

/* ── RESPONSIVE BREAKPOINTS ───────────────────────────────── */

/* Show hamburger, hide desktop menu on mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
  }

  /* Hide the inline navbar-menu on mobile for pages that use the drawer */
  .navbar-menu {
    display: none !important;
  }

  /* But keep the right-side controls (theme toggle + avatar + hamburger) visible */
  .navbar-right-controls {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

  /* iOS Auto-Zoom prevention: ensure minimum 16px font-size */
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }

  button, input, a, select, textarea {
    touch-action: manipulation;
  }

  /* Container padding tighter on mobile */
  .container {
    padding: 0 16px;
  }

  /* Navbar height */
  .navbar-inner,
  .navbar-content {
    height: 58px;
  }

  /* User name hidden on small screens */
  .user-name {
    display: none;
  }

  /* Chevron hidden on small screens */
  .user-block .fa-chevron-down {
    display: none;
  }

  /* Hero panel padding */
  .hero-panel {
    padding: 1.5rem 1.25rem !important;
    min-height: auto !important;
  }

  /* Trust panel */
  .trust-panel {
    padding: 1.5rem 1.25rem !important;
  }

  /* Stats row — single column */
  .stats-row {
    grid-template-columns: 1fr !important;
  }

  /* Order grid — 2 cols on mobile */
  .order-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Order body padding */
  .order-body {
    padding: 1.25rem !important;
  }

  /* Order actions stack */
  .order-actions {
    flex-direction: column !important;
  }

  /* Profile header stack */
  .profile-header {
    flex-direction: column !important;
    text-align: center !important;
    padding: 1.5rem 1.25rem !important;
    gap: 1.25rem !important;
  }

  .profile-stats {
    justify-content: center !important;
  }

  /* Tabs scroll */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
  }

  .tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Section padding */
  .section {
    padding: 32px 0;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Modal bottom sheet */
  .modal {
    max-width: 100%;
    margin: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 85vh;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  /* Chat messages */
  .chat-msg {
    max-width: 90%;
  }

  /* Buttons full width on mobile */
  .btn-block-mobile {
    width: 100%;
  }

  /* Grid overrides */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Settings container */
  .settings-container {
    padding: 1rem 1rem 3rem !important;
  }

  /* Support container */
  .support-container {
    padding: 1rem 1rem 3rem !important;
  }

  /* Page title size */
  .page-title {
    font-size: 2rem !important;
  }

  /* Section head */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Category filter scroll */
  .category-filter {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .category-filter::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    flex-shrink: 0;
  }

  /* Search bar full width */
  .search-bar {
    max-width: 100% !important;
  }

  /* Payment grid */
  .payment-grid {
    grid-template-columns: 1fr !important;
  }

  /* Price boxes in pay.ejs */
  .price-boxes-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .card-body {
    padding: 14px;
  }

  .product-body {
    padding: 12px;
  }

  /* Order grid single col */
  .order-grid {
    grid-template-columns: 1fr !important;
  }

  /* Profile container */
  .profile-container {
    padding: 1rem 1rem 3rem !important;
  }

  /* Orders container */
  .orders-container {
    padding: 1rem 1rem 3rem !important;
  }

  /* Hero title smaller */
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    letter-spacing: -0.04em !important;
  }

  /* Hero stats wrap */
  .hero-stats {
    gap: 1.25rem !important;
  }

  /* Stat boxes */
  .stat-box {
    min-width: 70px !important;
    padding: 0.6rem 0.9rem !important;
  }

  /* Buttons */
  .btn-lg {
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  /* Input group stack */
  .input-wrapper {
    flex-direction: column;
  }

  .input-wrapper .btn {
    width: 100%;
  }

  /* QR image smaller */
  .qr-image {
    width: 150px !important;
    height: 150px !important;
  }

  /* Total price smaller */
  .total-price {
    font-size: 1.5rem !important;
  }

  /* Chat widget height */
  .chat-widget {
    height: 420px !important;
  }

  /* Page title */
  .page-title {
    font-size: 1.75rem !important;
  }
}

/* ── 47. PRINT ────────────────────────────────────────────── */
@media print {
  .navbar,
  .footer,
  .aurora,
  .grain,
  .bg-overlay,
  .theme-toggle,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
