/* ============================================================
   CCC Digital Market — Main Stylesheet
   Color Palette: Deep Navy + Royal Blue + Glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* ─── CSS Variables (Dark Theme Default) ─── */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg-primary:    #070b16;
  --bg-secondary:  #0c1328;
  --bg-card:       rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-elevated:   #0f172a;
  --navbar-bg:     rgba(10, 15, 30, 0.88);
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --accent:        #38bdf8;
  --accent-glow:   rgba(56, 189, 248, 0.25);
  --emerald:       #10b981;
  --amber:         #f59e0b;
  --rose:          #f43f5e;
  --text-primary:  #f8fafc;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --border:        rgba(148, 163, 184, 0.14);
  --border-hover:  rgba(56, 189, 248, 0.4);
  --glass:         rgba(15, 23, 42, 0.65);
  --glass-border:  rgba(255, 255, 255, 0.08);
  --dropdown-bg:   rgba(13, 21, 48, 0.98);
  --dropdown-border: rgba(96, 165, 250, 0.25);
  --modal-bg:      #0f1a35;
  --input-bg:      rgba(255, 255, 255, 0.06);
  --input-border:  rgba(148, 163, 184, 0.2);
  --input-text:    #f8fafc;
  --brand-gradient: linear-gradient(135deg, #ffffff, #93c5fd);
  --chat-bg:       #070b16;
  --chat-sidebar-bg: #0b1120;
  --chat-header-bg: rgba(13, 21, 48, 0.6);
  --chat-bubble-received: rgba(15, 23, 42, 0.75);
  --chat-bubble-received-text: #f8fafc;
  --chat-inquiry-bg: rgba(30, 58, 138, 0.4);
  --stat-card-bg:  rgba(15, 23, 42, 0.65);
  --table-th-bg:   rgba(15, 23, 42, 0.4);
  --table-border:  rgba(255, 255, 255, 0.04);
  --table-hover:   rgba(255, 255, 255, 0.04);
  --footer-bg:     var(--bg-secondary);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:     0 8px 30px rgba(0,0,0,0.45);
  --shadow-lg:     0 20px 50px rgba(0,0,0,0.6);
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── CSS Variables (Light Theme) ─── */
[data-theme="light"] {
  color-scheme: light;
  --bg-primary:    #f1f5f9;
  --bg-secondary:  #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-elevated:   #ffffff;
  --navbar-bg:     rgba(255, 255, 255, 0.94);
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #3b82f6;
  --blue-400: #2563eb;
  --blue-500: #1d4ed8;
  --blue-600: #1e40af;
  --blue-700: #1e3a8a;
  --blue-800: #172554;
  --blue-900: #0f172a;
  --accent:        #2563eb;
  --accent-glow:   rgba(37, 99, 235, 0.2);
  --emerald:       #059669;
  --amber:         #d97706;
  --rose:          #e11d48;
  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --border-hover:  #3b82f6;
  --glass:         #ffffff;
  --glass-border:  #e2e8f0;
  --dropdown-bg:   #ffffff;
  --dropdown-border: #cbd5e1;
  --modal-bg:      #ffffff;
  --input-bg:      #ffffff;
  --input-border:  #cbd5e1;
  --input-text:    #0f172a;
  --brand-gradient: linear-gradient(135deg, #1e3a8a, #2563eb);
  --chat-bg:       #f8fafc;
  --chat-sidebar-bg: #ffffff;
  --chat-header-bg: #ffffff;
  --chat-bubble-received: #e2e8f0;
  --chat-bubble-received-text: #0f172a;
  --chat-inquiry-bg: #eff6ff;
  --stat-card-bg:  #ffffff;
  --table-th-bg:   #f8fafc;
  --table-border:  #e2e8f0;
  --table-hover:   #f1f5f9;
  --footer-bg:     #e2e8f0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:     0 12px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', 'Prompt', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; border: none; }
ul { list-style: none; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--blue-700); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-500); }

/* ─── Background Gradient ─── */
body::before {
  content: '';
  position: fixed;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(96,165,250,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Typography ─── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-secondary); }

/* ─── Container ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ─── Glassmorphism Card ─── */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-glow);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: white;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  box-shadow: 0 6px 24px rgba(96,165,250,0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(96,165,250,0.1);
  box-shadow: 0 0 16px rgba(96,165,250,0.2);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  box-shadow: 0 4px 16px rgba(220,38,38,0.3);
}
.btn-danger:hover { filter: brightness(1.15); transform: translateY(-1px); }

.btn-sm { padding: 7px 14px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-md); }
.btn-full { width: 100%; }

/* ─── Form Elements ─── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); }
.form-control {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--input-text);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
}
.form-control:focus {
  border-color: var(--blue-500);
  background: var(--input-bg);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select, select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  padding-right: 38px !important;
  color: var(--input-text);
}

select option, select.form-control option {
  background-color: var(--dropdown-bg) !important;
  color: var(--text-primary) !important;
  font-size: 0.95rem;
  padding: 10px 14px;
}

select option:checked, select.form-control option:checked {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

select option:hover, select.form-control option:hover {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}
.input-icon { position: relative; }
.input-icon .form-control { padding-left: 42px; }
.input-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

/* ─── Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  flex-wrap: nowrap;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 12px rgba(37,99,235,0.5);
}
.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.22s ease;
}

.navbar-search {
  flex: 1;
  min-width: 0;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}
.navbar-search input {
  width: 100%;
  height: 40px;
  background: var(--input-bg) !important;
  border: 1.5px solid var(--input-border) !important;
  border-radius: var(--radius-full);
  padding: 8px 40px 8px 42px !important;
  color: var(--input-text) !important;
  -webkit-text-fill-color: var(--input-text) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  caret-color: var(--accent) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}
.navbar-search input:focus {
  background: var(--input-bg) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow), 0 8px 24px var(--accent-glow) !important;
  outline: none;
}
.navbar-search input::placeholder {
  color: var(--text-muted) !important;
  font-weight: 400;
  font-size: 0.88rem;
  opacity: 0.85;
}
.navbar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 2;
}
.navbar-search input:focus ~ .search-icon,
.navbar-search:focus-within .search-icon {
  color: var(--accent);
  transform: translateY(-50%) scale(1.15);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

/* Clear Search Button inside Input */
.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}
.search-clear-btn:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  transform: translateY(-50%) scale(1.15);
}
.search-clear-btn.visible {
  display: flex;
}

/* Real-Time Live Search Dropdown Suggestions */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 280px;
  background: var(--dropdown-bg) !important;
  border: 1px solid var(--dropdown-border) !important;
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 0 20px var(--accent-glow) !important;
  padding: 8px;
  z-index: 99999 !important;
  display: none;
  max-height: 380px;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}
.search-suggestions-dropdown.show {
  display: block !important;
}
.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: var(--text-primary);
}
.search-suggestion-item:hover {
  background: rgba(56, 189, 248, 0.12);
}
.search-suggestion-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.search-suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-suggestion-info {
  flex: 1;
  min-width: 0;
}
.search-suggestion-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggestion-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 0.75rem;
}
.search-suggestion-price {
  font-weight: 700;
  color: var(--accent);
}
.search-suggestion-cat {
  color: var(--text-muted);
}
.search-suggestion-footer {
  padding: 8px 12px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.search-suggestion-footer:hover {
  background: rgba(56, 189, 248, 0.12);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
[data-guest-only] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
[data-guest-only].hidden {
  display: none !important;
}
[data-auth-only] {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
[data-auth-only].hidden {
  display: none !important;
}
.nav-icon-btn {
  position: relative;
  width: 42px; height: 42px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
}
.nav-icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}
.nav-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.nav-badge.chat-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6) !important;
  animation: badge-bounce 2s infinite ease-in-out;
}
@keyframes badge-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ─── Chat Message In-App Notification Toast ─── */
.chat-toast-container {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 40px);
}
.chat-toast-notification {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  pointer-events: auto;
  animation: slideInDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-toast-notification:hover {
  transform: translateY(-2px);
  border-color: var(--blue-400);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8), 0 0 25px rgba(37, 99, 235, 0.4);
}
.chat-toast-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border: 2px solid var(--blue-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 1.1rem;
}
.chat-toast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chat-toast-content {
  flex: 1;
  min-width: 0;
}
.chat-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}
.chat-toast-sender {
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-toast-time {
  font-size: 0.72rem;
  color: var(--blue-300);
  flex-shrink: 0;
}
.chat-toast-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.chat-toast-close {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 4px;
  cursor: pointer;
  transition: color 0.15s;
  flex-shrink: 0;
}
.chat-toast-close:hover {
  color: #ef4444;
}

.nav-avatar {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  padding: 0;
}
.nav-avatar:hover { border-color: var(--accent); }
.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 250px;
  background: rgba(13, 21, 48, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: var(--radius-lg);
  padding: 8px;
  z-index: 2000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(37, 99, 235, 0.15);
  display: none;
  animation: dropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.dropdown-menu.show { display: block; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}
.dropdown-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.1); color: #ef4444; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ─── Account Switcher ─── */
.switcher-account-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 10px !important;
  margin: 2px 4px !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  position: relative !important;
  border: 1px solid transparent !important;
}
.switcher-account-item:hover {
  background: rgba(96, 165, 250, 0.12) !important;
  border-color: rgba(96, 165, 250, 0.25) !important;
}
.switcher-account-item:hover .switcher-name {
  color: var(--text-primary) !important;
}
/* ─── ปุ่มลบบัญชี ─── */
.switcher-remove-btn {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: rgba(239,68,68,0.0) !important;
  border: none !important;
  color: rgba(255,255,255,0.25) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s, color 0.15s !important;
  line-height: 1 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.switcher-account-item:hover .switcher-remove-btn {
  background: rgba(239,68,68,0.18) !important;
  color: #f87171 !important;
}
.switcher-remove-btn:hover {
  background: rgba(239,68,68,0.55) !important;
  color: white !important;
}
.switcher-avatar {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500)) !important;
  border: 1.5px solid rgba(96, 165, 250, 0.35) !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  color: white !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.switcher-avatar img {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: inherit !important;
}
.switcher-account-item:hover .switcher-avatar {
  border-color: var(--accent) !important;
}
.switcher-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.switcher-name {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
}
.switcher-email {
  font-size: 0.7rem !important;
  color: var(--text-muted) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}
.switcher-role-badge {
  flex-shrink: 0 !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 99px !important;
  color: white !important;
  letter-spacing: 0.02em !important;
}

/* Switcher loading overlay */
#switcher-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.switcher-loading-card {
  background: #111827;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.switcher-loading-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  border: 3px solid var(--accent);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(96,165,250,0.4);
}
.switcher-loading-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.switcher-loading-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}



/* ─── Admin Navbar Button ─── */
.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.16) !important;
  color: #f87171 !important;
  border: 1.5px solid rgba(239, 68, 68, 0.45) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  height: 34px !important;
  padding: 0 12px !important;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
  cursor: pointer;
  text-decoration: none;
}
.nav-admin-btn:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

/* ─── Category Dropdown Filter ─── */
.category-dropdown {
  position: relative;
}
.category-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.category-trigger-btn:hover,
.category-trigger-btn.has-filter {
  border-color: var(--blue-500);
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-400);
}
.category-trigger-btn.has-filter {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.category-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0 !important;
  transform: none !important;
  min-width: 250px;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: #0f172a !important; /* 100% Solid Dark Slate - Zero Transparency */
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.05) !important;
  z-index: 99999 !important;
}
.category-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.category-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.category-menu-item.active {
  background: rgba(59, 130, 246, 0.2);
  color: #38bdf8;
  font-weight: 700;
}
.category-menu-item .check-icon {
  margin-left: auto;
  font-size: 0.8rem;
  color: #38bdf8;
  display: none;
}
.category-menu-item.active .check-icon {
  display: inline-block;
}
.category-menu-item i:not(.check-icon) {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: #60a5fa;
}

/* ─── Hero / Banner ─── */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue-300);
  margin-bottom: 20px;
}
.hero h1 {
  background: linear-gradient(135deg, #fff 30%, var(--blue-300) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.hero p { font-size: 1.05rem; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Product Grid ─── */
.section { padding: 40px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-300));
  border-radius: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(96,165,250,0.1);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 10px 10px 0 10px;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.35s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.03); }
.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(circle at center, rgba(30, 58, 138, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
  color: #64748b;
  border-radius: 12px;
  transition: var(--transition);
}
.product-card:hover .product-placeholder {
  color: var(--accent);
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.18) 0%, rgba(15, 23, 42, 0.9) 100%);
}
.product-placeholder i {
  font-size: 2.4rem;
  opacity: 0.75;
  transition: var(--transition);
}
.product-card:hover .product-placeholder i {
  opacity: 1;
  transform: translateY(-2px);
}
.product-placeholder span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}
.product-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.product-badge.out-of-stock {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}
.product-badge.my-product-badge {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-weight: 700 !important;
}
.badge-you-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  border-radius: 6px !important;
  padding: 1px 6px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  margin-left: 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}
.product-card.is-my-product {
  border-color: rgba(16, 185, 129, 0.35);
}
.product-card.is-my-product:hover {
  border-color: #10b981;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.15);
}
.my-product-btn {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}
.my-product-btn:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  border-color: #047857 !important;
  transform: translateY(-1px);
}
.product-soldout-overlay {
  position: absolute;
  inset: 10px 10px 0 10px;
  border-radius: 12px;
  background: rgba(10, 15, 30, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.product-soldout-overlay span {
  background: rgba(239, 68, 68, 0.95);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.25);
}
.product-card.is-out-of-stock .product-card-img img {
  filter: grayscale(40%) contrast(90%);
}
.stock-tag-out {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

.product-wish-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.product-wish-btn:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  transform: scale(1.08);
}
.product-wish-btn.active {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
}
.product-card-body { padding: 14px; }
.product-name { font-size: 0.92rem; font-weight: 600; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-seller { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.product-seller a:hover { color: var(--accent); }
.product-price { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.product-old-price { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.product-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.product-card-actions {
  display: flex;
  gap: 6px;
  width: 100%;
  align-items: center;
}
.product-card-btn-cart {
  flex: 2;
  padding: 7px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.product-card-btn-chat {
  flex: 1.2;
  padding: 7px 8px;
  font-size: 0.82rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.product-card-btn-wish {
  padding: 7px 10px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
}
.product-rating { display: flex; align-items: center; gap: 3px; font-size: 0.78rem; color: var(--text-muted); }
.stars { color: #fbbf24; }

/* ─── Page Header ─── */
.page-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.page-header h1 { font-size: 1.8rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-muted); }

/* ─── Auth Pages ─── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(13, 21, 48, 0.85);
  backdrop-filter: blur(32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(37,99,235,0.1);
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 12px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.5);
}
.auth-logo h2 { background: linear-gradient(135deg, #fff, var(--blue-300)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-logo p { font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }

.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.role-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--glass);
}
.role-card:hover { border-color: var(--blue-500); }
.role-card.selected { border-color: var(--blue-500); background: rgba(37,99,235,0.15); }
.role-card .role-icon { font-size: 2rem; margin-bottom: 8px; }
.role-card .role-name { font-size: 0.9rem; font-weight: 600; }
.role-card .role-desc { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }

.divider { position: relative; text-align: center; margin: 20px 0; }
.divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--border); }
.divider span { background: rgba(13,21,48,0.95); padding: 0 12px; font-size: 0.82rem; color: var(--text-muted); position: relative; z-index: 1; }

.auth-footer { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* ─── Alert / Toast ─── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: var(--blue-300); }
.alert-warning { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); color: #fde68a; }

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  max-width: 320px;
  backdrop-filter: blur(16px);
}
.toast-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); color: #6ee7b7; }
.toast-error   { background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.35); color: #fda4af; }
.toast-info    { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.35); color: #7dd3fc; }
.toast-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.35); color: #fde68a; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; pointer-events: none; } }

/* ─── Sidebar + Layout ─── */
.layout-sidebar { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.sidebar {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.sidebar-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(59,130,246,0.1);
  color: var(--accent);
}
.sidebar-link.active { background: rgba(37,99,235,0.2); color: var(--blue-300); font-weight: 600; }

/* ─── Cart ─── */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-secondary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item-price { color: var(--accent); font-weight: 700; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.qty-btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
}
.qty-btn:hover { background: var(--bg-card-hover); border-color: var(--accent); color: var(--accent); }
.qty-input {
  width: 42px;
  text-align: center;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.cart-summary {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: none; font-weight: 700; font-size: 1.1rem; }
.summary-row.total { color: var(--accent); padding-top: 14px; }

/* ─── Chat ─── */
.chat-page-container {
  padding: 16px 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  height: calc(100vh - 75px);
  display: flex;
  flex-direction: column;
}
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chat-list-panel {
  background: rgba(13,21,48,0.6);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.chat-list-header {
  padding: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.chat-list-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.chat-list-item:hover { background: var(--bg-card-hover); }
.chat-list-item.active { background: rgba(37,99,235,0.15); border-right: 3px solid var(--blue-500); }
.chat-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  overflow: hidden;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-list-info { flex: 1; min-width: 0; }
.chat-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; }
.chat-preview { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-unread {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--blue-600);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-conv-delete-btn {
  position: absolute;
  right: 12px;
  bottom: 10px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 2;
}
.chat-list-item:hover .chat-conv-delete-btn {
  opacity: 1;
  pointer-events: all;
}
.chat-conv-delete-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  color: white;
  border-color: transparent;
  transform: scale(1.05);
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--blue-500);
}

.chat-main {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  overflow: hidden;
  min-height: 0;
}
.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13,21,48,0.4);
}
/* ─── Chat Product Inquiry Banner ─── */
.chat-product-inquiry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(30, 58, 138, 0.4);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: var(--radius-md);
  margin: 12px 20px 0;
  backdrop-filter: blur(12px);
  animation: slideDownInquiry 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
@keyframes slideDownInquiry {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.inquiry-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.inquiry-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inquiry-details {
  flex: 1;
  min-width: 0;
}
.inquiry-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.inquiry-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}
.inquiry-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #34d399;
}
.inquiry-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── Chat Admin Topic Quick Pills ─── */
.chat-admin-topic-pills {
  display: none;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}
.chat-admin-pill-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.chat-admin-pill-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.msg-group {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  position: relative;
  max-width: 100%;
}
.msg-group.sent-group {
  justify-content: flex-end;
}
.msg-group.received-group {
  justify-content: flex-start;
}
.msg-sender-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
  margin-bottom: 2px;
}
.msg-sender-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.msg-bubble {
  max-width: 65%;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
}
.msg-bubble.sent {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: auto;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.msg-bubble.received {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.msg-img-wrap {
  margin: 2px 0 6px;
  border-radius: 12px;
  overflow: hidden;
  max-width: 260px;
  max-height: 260px;
  cursor: pointer;
  background: rgba(0,0,0,0.25);
  display: block;
}
.msg-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.msg-img-wrap img:hover {
  transform: scale(1.03);
}
.msg-img-broken {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.msg-img-broken i {
  font-size: 1rem;
}
.msg-text {
  margin-bottom: 2px;
}
.msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.msg-time {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
.msg-read-status {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
}
.msg-read-status.is-read {
  color: #38bdf8;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}
.msg-bubble.received .msg-time {
  color: var(--text-muted);
}
.msg-like-btn {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.6;
  transition: all 0.2s ease;
}
.msg-like-btn:hover {
  opacity: 1;
  transform: scale(1.25);
}
.msg-like-btn.active {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(244,63,94,0.7));
}
.msg-del-btn {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.45;
  transition: all 0.2s ease;
}
.msg-del-btn:hover {
  opacity: 1;
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.8));
}
.msg-like-badge {
  position: absolute;
  bottom: -10px;
  background: #0f172a;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  z-index: 5;
}
.msg-bubble.sent .msg-like-badge {
  right: 12px;
}
.msg-bubble.received .msg-like-badge {
  left: 12px;
}
.msg-like-badge:hover {
  transform: scale(1.15);
}
.msg-like-badge.active {
  border-color: rgba(244,63,94,0.6);
  background: #1e1022;
  color: #fb7185;
}
.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(13,21,48,0.4);
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.chat-input::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.chat-input:focus { border-color: var(--blue-500); background: rgba(255,255,255,0.09); }
/* ─── Camera Capture Modal ─── */
.camera-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 16px;
}
.camera-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.camera-modal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}
.camera-modal-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.95);
}
.camera-viewfinder {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.camera-viewfinder video,
.camera-viewfinder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.camera-shutter-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.camera-shutter-flash.flash {
  opacity: 0.85;
}
.camera-switch-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
  z-index: 5;
}
.camera-switch-btn:hover {
  background: rgba(56, 189, 248, 0.8);
  transform: rotate(180deg);
}
.camera-modal-footer {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.camera-shutter-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--accent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0f172a;
  transition: all 0.15s ease;
}
.camera-shutter-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.8);
}
.camera-shutter-btn:active {
  transform: scale(0.92);
}

/* ─── Product Detail ─── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-gallery {
  position: sticky;
  top: 80px;
}
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb {
  width: 70px; height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--blue-500); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: 1.6rem; margin-bottom: 8px; }
.product-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.rating-stars { display: flex; align-items: center; gap: 6px; }
.star-icon { color: #fbbf24; font-size: 1rem; }
.price-section { margin: 20px 0; }
.price-big { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stock-info { font-size: 0.85rem; color: var(--text-muted); }

.seller-card-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin: 20px 0;
}
.seller-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
}
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-info { flex: 1; }
.seller-name-link { font-weight: 700; cursor: pointer; }
.seller-name-link:hover { color: var(--accent); }
.seller-meta { font-size: 0.78rem; color: var(--text-muted); }

/* ─── Reviews ─── */
.rating-summary {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  background: var(--glass);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  max-width: 440px;
}
.rating-summary-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 105px;
  text-align: center;
  flex-shrink: 0;
}
.rating-big { font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 2px; }
#avg-stars-summary {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  gap: 2px !important;
  color: #fbbf24;
  font-size: 0.9rem;
  margin: 4px 0 !important;
}
#avg-stars-summary i {
  margin: 0 !important;
  font-size: 0.88rem !important;
}
.rating-bars { flex: 1; }
.rating-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; font-size: 0.78rem; }
.rating-bar-track { flex: 1; height: 5px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue-600), var(--blue-400)); border-radius: 3px; }

.review-card { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.reviewer-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
}
.review-date { font-size: 0.78rem; color: var(--text-muted); }
.review-text { font-size: 0.88rem; color: var(--text-secondary); }

/* ─── Profile ─── */
.profile-cover {
  height: 220px;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8, #3b82f6);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.profile-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(15,23,42,0.6) 100%);
  pointer-events: none;
}
.profile-cover-btn {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.profile-cover-btn:hover {
  background: var(--blue-600);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,99,235,0.45);
}

/* Cover Repositioning & Dropdown Controls */
.cover-action-group {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cover-dropdown-menu {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 6px;
  min-width: 210px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: fadeIn 0.15s ease;
  z-index: 20;
}

.cover-dropdown-item {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.86rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.cover-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.profile-cover.repositioning {
  cursor: grab !important;
  user-select: none;
}

.profile-cover.is-dragging {
  cursor: grabbing !important;
}

.cover-reposition-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 75%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.cover-reposition-hint {
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.cover-reposition-actions {
  display: flex;
  gap: 8px;
}
.cover-upload-box {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.cover-upload-box:hover {
  border-color: var(--blue-500);
  background: rgba(59, 130, 246, 0.06);
}
.cover-upload-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.profile-body { padding: 22px 24px 24px; }
.profile-avatar-wrap {
  margin-top: 0;
  margin-bottom: 16px;
  display: inline-block;
  position: relative;
  z-index: 2;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--blue-500);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(59, 130, 246, 0.18);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-avatar:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(59, 130, 246, 0.3);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-stats { display: flex; gap: 24px; margin: 16px 0; }
.stat-item { text-align: center; }
.stat-num { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Seller Profile View Card ─── */
.seller-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.seller-cover {
  height: 180px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(15, 23, 42, 0.8));
  background-size: cover;
  background-position: center;
  position: relative;
}
.seller-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--blue-500);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(59, 130, 246, 0.18);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
}
.seller-profile-avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: 96px !important;
  max-height: 96px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

/* ─── Seller Dashboard & Stats ─── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
}
.stat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.stat-card-icon.icon-blue { background: rgba(59, 130, 246, 0.14); color: #3b82f6; }
.stat-card-icon.icon-indigo { background: rgba(99, 102, 241, 0.14); color: #6366f1; }
.stat-card-icon.icon-emerald { background: rgba(16, 185, 129, 0.14); color: #10b981; }
.stat-card-icon.icon-amber { background: rgba(245, 158, 11, 0.14); color: #f59e0b; }
.stat-card-icon.icon-rose { background: rgba(244, 63, 94, 0.14); color: #f43f5e; }

.stat-card-value { font-size: 1.7rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.stat-card-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.stat-card-change { font-size: 0.76rem; color: #10b981; margin-top: 6px; display: flex; align-items: center; }

.table-responsive {
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.table-responsive::-webkit-scrollbar {
  height: 5px;
}
.table-responsive::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--blue-500);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap !important;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
  white-space: nowrap !important;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-card-hover); }
.data-table .product-cell { display: flex; align-items: center; gap: 10px; }
.data-table .mini-thumb {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.data-table .mini-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Order Status Badge ─── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.status-pending   { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.status-processing { background: rgba(59,130,246,0.15); color: var(--blue-300); border: 1px solid rgba(59,130,246,0.3); }
.status-shipped   { background: rgba(139,92,246,0.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }
.status-delivered { background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.status-cancelled { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

/* ─── Upload Zone ─── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.upload-zone:hover { border-color: var(--blue-500); background: rgba(59,130,246,0.05); }
.upload-zone.dragover { border-color: var(--blue-400); background: rgba(59,130,246,0.1); }
.upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.upload-zone p { font-size: 0.85rem; }
.upload-zone input[type=file] { display: none; }

/* ─── รูปภาพสินค้า thumbnail ─── */
.img-thumb-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.img-thumb-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239,68,68,0.85);
  border: none;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.img-thumb-wrap:hover .img-thumb-del { opacity: 1; }
.img-thumb-del:hover { background: #dc2626; }


/* ─── Tabs ─── */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); background: rgba(59,130,246,0.06); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── How to Order Steps ─── */
.steps-list { display: flex; flex-direction: column; gap: 24px; }
.step-item { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
.step-content h3 { margin-bottom: 6px; font-size: 1rem; }
.step-content p { font-size: 0.88rem; }

/* ─── Follow Button ─── */
.follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--blue-500);
  background: transparent;
  color: var(--blue-400);
  cursor: pointer;
  transition: var(--transition);
}
.follow-btn:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.follow-btn.following {
  background: rgba(59, 130, 246, 0.16);
  color: var(--blue-300);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: none;
}
.follow-btn.following:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

/* ─── Success Page ─── */
.success-icon {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #34d399);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
  box-shadow: 0 8px 32px rgba(5,150,105,0.4);
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 0.95rem; }

/* ─── Search Results ─── */
.search-results-count { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; }
.search-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }

/* ─── Footer ─── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--text-muted); padding: 3px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted); }
.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-icon:hover { background: rgba(59,130,246,0.1); border-color: var(--accent); color: var(--accent); }

/* ─── Contact Admin Topics Modal Cards ─── */
.admin-topic-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.admin-topic-card:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.06);
}
.admin-topic-card.active {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 0 1px var(--accent);
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: #0f1a35;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.25s ease;
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(239,68,68,0.1); border-color: #ef4444; color: #ef4444; }

/* ─── Loading Spinner ─── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.8);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.loading-text { color: var(--text-secondary); font-size: 0.9rem; }

/* ─── Animations ─── */
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.slide-in { animation: slideIn 0.3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.95); } }

/* ─── Responsive System ─── */
/* Table Horizontal Scroll Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  margin-bottom: 20px;
}
.table-responsive table {
  min-width: 600px;
  width: 100%;
}

/* Modals */
.modal-overlay {
  padding: 16px;
}
.modal-content, .modal-card {
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Desktop Large (<= 1200px) */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Tablets Landscape (<= 1024px) */
@media (max-width: 1024px) {
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-gallery { position: static; }
  .cart-grid { grid-template-columns: 1fr; gap: 24px; }
  .reviews-layout { grid-template-columns: 1fr; gap: 24px; }
  .seller-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Compact Feature Mini-Cards (Facebook Style) ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition);
}
.feature-mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
}
.feature-mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.feature-mini-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}
.feature-mini-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ─── Facebook-Style Post Preview & Collage System ─── */
.fb-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 14px;
}
.fb-post-header {
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fb-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.fb-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fb-author-info {
  flex: 1;
  min-width: 0;
}
.fb-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.fb-post-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}
.fb-post-body {
  padding: 0 16px 12px;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.55;
  word-break: break-word;
}
.fb-post-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.15);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* ─── Facebook Photo Collage Grids ─── */
.fb-photo-grid {
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fb-photo-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-secondary);
}
.fb-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.fb-photo-item:hover img {
  transform: scale(1.03);
}

/* 1 Photo */
.fb-grid-1 {
  height: 320px;
}
.fb-grid-1 .fb-photo-item {
  width: 100%;
  height: 100%;
}

/* 2 Photos */
.fb-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  height: 280px;
}
.fb-grid-2 .fb-photo-item {
  height: 100%;
}

/* 3 Photos: 1 Tall Left + 2 Stacked Right (Matches user photo sample) */
.fb-grid-3 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3px;
  height: 340px;
}
.fb-grid-3 .fb-col-tall {
  height: 100%;
}
.fb-grid-3 .fb-col-stacked {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
}
.fb-grid-3 .fb-col-stacked .fb-photo-item {
  flex: 1;
  height: calc(50% - 1.5px);
}

/* 4 Photos: 2x2 Grid */
.fb-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  height: 320px;
}
.fb-grid-4 .fb-photo-item {
  height: 100%;
}

/* 5+ Photos with +N Overlay */
.fb-grid-more {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3px;
  height: 340px;
}
.fb-grid-more .fb-col-tall {
  height: 100%;
}
.fb-grid-more .fb-col-stacked {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  height: 100%;
}
.fb-grid-more .fb-photo-item {
  height: 100%;
}
.fb-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  backdrop-filter: blur(2px);
  user-select: none;
}

/* Tablets Portrait & Large Mobiles (<= 768px) */
@media (max-width: 768px) {
  /* Clean Single-Row Navbar on Mobile (Compact & Modern) */
  .navbar {
    padding: 0 10px !important;
    height: 54px !important;
  }
  .navbar-inner {
    gap: 6px !important;
    height: 54px !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .navbar-brand {
    gap: 6px;
    flex-shrink: 0;
  }
  .navbar-brand img {
    height: 30px !important;
  }
  .brand-name {
    display: none;
  }
  
  /* Compact Search Pill in Center (Not long!) */
  .navbar-search {
    order: unset !important;
    flex: 1 1 auto !important;
    min-width: 100px !important;
    max-width: 185px !important;
    margin: 0 2px !important;
    position: relative !important;
  }
  .navbar-search input {
    width: 100% !important;
    height: 34px !important;
    padding: 4px 26px 4px 28px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-radius: 99px !important;
    color: var(--input-text) !important;
    -webkit-text-fill-color: var(--input-text) !important;
    caret-color: var(--accent) !important;
    background: var(--input-bg) !important;
    border: 1.5px solid var(--input-border) !important;
  }
  .navbar-search input::placeholder {
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .navbar-search .search-icon {
    left: 9px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 0.78rem !important;
    color: var(--accent) !important;
  }
  .search-clear-btn {
    right: 6px !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 0.65rem !important;
  }

  /* Floating Clean Suggestions on Mobile */
  .search-suggestions-dropdown {
    position: fixed !important;
    top: 58px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    min-width: unset !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    background: var(--dropdown-bg) !important;
    border: 1px solid var(--dropdown-border) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-lg), 0 0 20px var(--accent-glow) !important;
    z-index: 99999 !important;
  }
  
  /* Navbar Actions Top Row Right */
  .navbar-actions {
    flex-shrink: 0;
    gap: 4px;
    margin-left: 0;
    display: flex;
    align-items: center;
  }
  [data-guest-only] {
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
  }
  [data-guest-only] .btn {
    padding: 5px 8px;
    font-size: 0.74rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  [data-guest-only] .btn i {
    margin-right: 3px !important;
  }
  [data-auth-only] {
    gap: 3px;
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
  }
  .nav-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
    flex-shrink: 0;
  }
  .nav-seller-btn, [data-auth-only] .btn-primary {
    padding: 5px 8px !important;
    margin-left: 1px !important;
    margin-right: 1px !important;
    font-size: 0.76rem !important;
    height: 32px !important;
  }
  .seller-btn-text {
    display: none !important;
  }
  
  /* Inputs 16px on mobile form inputs to prevent iOS Safari auto-zoom */
  input[type="text"]:not(#main-search):not([data-search-input]),
  input[type="number"],
  input[type="email"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Compact 2x2 Feature Cards on Mobile (Facebook style) */
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .feature-mini-card {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
    align-items: center;
  }
  .feature-mini-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 1.05rem;
  }
  .feature-mini-info h4 {
    font-size: 0.82rem;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .feature-mini-info p {
    font-size: 0.72rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Chat Mobile Viewport & Single-Panel Switching Layout */
  body.chat-page {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    height: 100dvh !important;
    min-height: 100% !important;
    min-height: 100dvh !important;
    max-height: 100% !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  body.chat-page .navbar {
    flex-shrink: 0 !important;
    position: relative !important;
  }
  body.chat-page .chat-page-container {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .chat-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: var(--bg-primary) !important;
    overflow: hidden !important;
  }
  .chat-sidebar {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    border-right: none !important;
    overflow: hidden !important;
  }
  .chat-list {
    flex: 1 1 0% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .chat-main {
    display: none !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: none !important;
    border-radius: 0 !important;
  }
  
  /* When a chat conversation is open on mobile: hide list, show active chat room */
  .chat-layout.has-active-chat .chat-sidebar {
    display: none !important;
  }
  .chat-layout.has-active-chat .chat-main {
    display: flex !important;
  }
  .chat-layout.has-active-chat #chat-back-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  #chat-main-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .chat-header {
    padding: 10px 14px;
    gap: 8px;
    flex-shrink: 0 !important;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .chat-header .chat-partner-name {
    font-size: 0.95rem;
    font-weight: 700;
  }
  .chat-header .chat-partner-status {
    font-size: 0.72rem;
  }
  .chat-header #delete-conv-btn .delete-btn-label {
    display: none;
  }
  .chat-header #delete-conv-btn {
    padding: 6px 10px;
  }

  .chat-product-inquiry {
    margin: 8px 10px 0;
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
    flex-shrink: 0 !important;
  }
  .chat-product-inquiry .inquiry-img {
    width: 44px;
    height: 44px;
  }
  .chat-product-inquiry .inquiry-title {
    font-size: 0.82rem;
  }
  .chat-product-inquiry .inquiry-actions .btn {
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .chat-admin-topic-pills {
    flex-shrink: 0 !important;
    padding: 6px 10px !important;
    gap: 6px !important;
  }
  .chat-admin-pill-btn {
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
  }

  #chat-image-preview-bar {
    padding: 8px 12px !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
  }

  .chat-messages {
    padding: 12px !important;
    gap: 12px !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .msg-bubble {
    max-width: 82%;
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .chat-input-area {
    padding: 8px 10px !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border) !important;
    position: relative !important;
    z-index: 10 !important;
  }
  .chat-input-area .btn-icon {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0;
  }
  .chat-input {
    padding: 8px 14px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    border-radius: 20px !important;
    min-height: 38px !important;
    max-height: 85px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .chat-input::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .chat-input::placeholder {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Product & Card Grids */
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  
  /* Compact Mobile Product Detail Page */
  .product-page-container {
    padding: 10px 12px 60px !important;
  }
  .product-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .product-gallery {
    position: static !important;
  }
  .gallery-main {
    max-height: 250px !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 14px !important;
    margin-bottom: 8px !important;
    background: rgba(15, 23, 42, 0.6) !important;
  }
  .gallery-main img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  .gallery-thumbs {
    gap: 6px !important;
    justify-content: flex-start !important;
  }
  .gallery-thumb {
    width: 46px !important;
    height: 46px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }
  .product-info h1, #product-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
  }
  .product-meta {
    gap: 8px !important;
    margin-bottom: 8px !important;
    font-size: 0.78rem !important;
  }
  .price-section {
    margin: 8px 0 10px !important;
  }
  .price-big {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
  }
  .seller-card-mini {
    padding: 10px 12px !important;
    margin: 10px 0 !important;
    border-radius: 12px !important;
    gap: 10px !important;
  }
  .seller-avatar {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.95rem !important;
  }
  .seller-name-link {
    font-size: 0.85rem !important;
  }
  .seller-meta {
    font-size: 0.72rem !important;
  }
  .follow-btn, .seller-card-mini .btn {
    padding: 4px 9px !important;
    font-size: 0.75rem !important;
    height: 30px !important;
  }
  .qty-control {
    margin-bottom: 12px !important;
  }
  .qty-btn {
    width: 28px !important;
    height: 28px !important;
  }
  .qty-input {
    width: 36px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }
  #buy-now-btn {
    height: 40px !important;
    font-size: 0.88rem !important;
    padding: 0 12px !important;
  }
  #add-cart-btn {
    height: 40px !important;
    font-size: 0.88rem !important;
    padding: 0 12px !important;
  }
  #wish-btn {
    height: 40px !important;
    font-size: 0.88rem !important;
    padding: 0 12px !important;
  }
  .reviews-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .rating-summary {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    max-width: 100% !important;
    margin-bottom: 14px !important;
  }
  .rating-summary-left {
    flex: 0 0 92px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 92px !important;
    flex-shrink: 0 !important;
  }
  .rating-big {
    font-size: 1.8rem !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
  }
  #avg-stars-summary {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    gap: 2px !important;
    font-size: 0.76rem !important;
    margin: 3px 0 !important;
    width: 100% !important;
  }
  #avg-stars-summary i {
    font-size: 0.74rem !important;
    margin: 0 !important;
  }
  #total-reviews {
    font-size: 0.7rem !important;
  }
  .rating-bars {
    flex: 1 !important;
    width: auto !important;
  }
  .rating-bar-row {
    font-size: 0.7rem !important;
    gap: 5px !important;
    margin-bottom: 2px !important;
  }
  .rating-bar-track {
    height: 4px !important;
  }
  #reviews-list {
    width: 100% !important;
  }

  /* Mobile Footer: Compact 2-Column Clean Layout */
  footer {
    padding: 24px 0 16px !important;
    margin-top: 36px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px 12px !important;
    margin-bottom: 16px !important;
  }
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }
  .footer-brand h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }
  .footer-brand p {
    font-size: 0.76rem;
    line-height: 1.35;
    color: var(--text-muted);
    margin-bottom: 6px;
  }
  .footer-social {
    margin-top: 6px !important;
    gap: 8px;
  }
  .social-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  .footer-col h4 {
    font-size: 0.82rem;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text-primary);
  }
  .footer-col a {
    font-size: 0.78rem;
    padding: 2.5px 0;
    line-height: 1.35;
    display: flex;
    align-items: center;
  }
  .footer-col a i {
    font-size: 0.72rem;
    width: 15px;
    text-align: center;
    margin-right: 5px !important;
  }
  .footer-col-contact {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    margin-top: 2px;
  }
  .footer-bottom {
    padding-top: 12px !important;
    font-size: 0.74rem;
    text-align: center;
    justify-content: center;
  }

  /* Mobile Stats Grid: Compact 2-Column Dashboard Cards */
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
  }
  .stat-card {
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }
  .stat-card-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.82rem !important;
    margin-bottom: 6px !important;
    border-radius: 7px !important;
  }
  .stat-card-value {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
  }
  .stat-card-label {
    font-size: 0.72rem !important;
    margin-bottom: 2px !important;
    color: var(--text-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .stat-card-change {
    font-size: 0.65rem !important;
    margin-top: 1px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .stats-grid .stat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px !important;
  }
  .stats-grid .stat-card:last-child:nth-child(odd) .stat-card-icon {
    margin-bottom: 0 !important;
  }

  /* Mobile How-To-Order & Steps */
  .steps-list {
    gap: 12px !important;
  }
  .step-item {
    gap: 10px !important;
    align-items: flex-start !important;
    padding-bottom: 12px !important;
    border-bottom: 1px dashed var(--border) !important;
  }
  .step-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  .step-num {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
  }
  .step-content h3 {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
    color: var(--text-primary) !important;
  }
  .step-content p {
    font-size: 0.78rem !important;
    line-height: 1.38 !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
  }
  .step-content .btn {
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    margin-top: 5px !important;
  }

  /* Order Cards */
  .order-card-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }

  /* Category Dropdown Menu on Mobile */
  .category-dropdown-menu {
    min-width: 220px !important;
    left: 0 !important;
  }

  /* Mobile Data Tables: Readable Columns with Smooth Touch Scroll */
  .table-responsive {
    border-radius: 12px !important;
    margin-bottom: 14px !important;
  }
  .data-table {
    min-width: 660px !important;
  }
  .data-table th {
    padding: 8px 10px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
  }
  .data-table td {
    padding: 9px 10px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  /* Mobile Tabs (Seller Dashboard & General Tabs): 2x2 Segmented Button Grid */
  .tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    overflow-x: visible !important;
    border-bottom: none !important;
    margin-bottom: 20px !important;
    padding-bottom: 0 !important;
  }
  .tab-btn {
    padding: 9px 8px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
    background: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .tab-btn.active {
    background: var(--blue-600) !important;
    color: white !important;
    border-color: var(--blue-500) !important;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3) !important;
  }
  .tab-btn i {
    font-size: 0.82rem !important;
  }
}

/* Small Mobiles (<= 480px) */
@media (max-width: 480px) {
  .navbar {
    padding: 0 10px !important;
    height: 52px !important;
  }
  .navbar-inner {
    gap: 5px !important;
    height: 52px !important;
    flex-wrap: nowrap !important;
  }
  .navbar-brand {
    gap: 0 !important;
    flex-shrink: 0 !important;
  }
  .navbar-brand img {
    height: 30px !important;
  }
  .navbar-brand .brand-name {
    display: none !important;
  }
  .navbar-search {
    order: unset !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 4px !important;
  }
  .navbar-search input {
    width: 100% !important;
    height: 34px !important;
    padding: 4px 22px 4px 28px !important;
    font-size: 0.8rem !important;
    border-radius: 18px !important;
  }
  .navbar-search .search-icon {
    left: 8px !important;
    font-size: 0.72rem !important;
  }
  .search-clear-btn {
    right: 5px !important;
    width: 16px !important;
    height: 16px !important;
    font-size: 0.6rem !important;
  }
  .navbar-actions {
    gap: 3px !important;
    flex-shrink: 0 !important;
  }
  .nav-seller-btn {
    display: none !important;
  }
  [data-guest-only] {
    gap: 4px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  [data-guest-only] .btn {
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
    border-radius: 8px !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
  }
  [data-guest-only] .btn i {
    margin-right: 3px !important;
  }
  [data-guest-only] a:last-child {
    display: none !important;
  }
  .nav-icon-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.88rem !important;
    border-radius: 8px !important;
  }
  .nav-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.85rem !important;
  }

  /* Section Header on Mobile */
  .section-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }
  .section-header-title-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .section-title {
    font-size: 1.2rem !important;
    gap: 8px !important;
  }
  .section-title::before {
    width: 4px !important;
    height: 18px !important;
    margin-right: 2px !important;
  }
  .section-header-filters {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    align-items: center !important;
  }
  .category-dropdown,
  .category-trigger-btn {
    width: 100% !important;
    height: 38px !important;
    font-size: 0.82rem !important;
    padding: 6px 12px !important;
    justify-content: space-between !important;
    border-radius: 10px !important;
  }
  .sort-select-btn {
    width: 100% !important;
    height: 38px !important;
    font-size: 0.82rem !important;
    padding: 6px 10px !important;
    border-radius: 10px !important;
  }

  /* Product Grid and Card Actions on Mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    justify-content: center !important;
  }
  .product-grid:has(.product-card:only-child) {
    grid-template-columns: minmax(0, 320px) !important;
    justify-content: center !important;
  }
  .product-card {
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
  }
  .product-card-img {
    padding: 8px 8px 0 8px !important;
  }
  .product-card-img img {
    border-radius: 10px !important;
  }
  .product-badge {
    top: 14px !important;
    left: 14px !important;
  }
  .product-wish-btn {
    top: 14px !important;
    right: 14px !important;
  }
  .product-soldout-overlay {
    inset: 8px 8px 0 8px !important;
    border-radius: 10px !important;
  }
  .product-card-body {
    padding: 12px 14px !important;
  }
  .product-name {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    margin-bottom: 3px !important;
  }
  .product-seller {
    font-size: 0.75rem !important;
    margin-bottom: 6px !important;
  }
  .product-rating {
    font-size: 0.74rem !important;
  }
  .product-footer {
    margin-top: 10px !important;
    gap: 8px !important;
  }
  .product-price-val {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
  }
  .product-card-actions {
    display: flex !important;
    gap: 6px !important;
    width: 100% !important;
    align-items: center !important;
  }
  .product-card-btn-cart {
    flex: 1 1 auto !important;
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    gap: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }
  .product-card-btn-cart i {
    font-size: 0.82rem !important;
  }
  .product-card-btn-chat {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.88rem !important;
  }
  .product-card-btn-chat .btn-text {
    display: none !important;
  }

  /* Features Grid on Mobile ("ทำไมต้อง CCC Digital Market?") */
  .features-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .feature-mini-card {
    flex-direction: row !important;
    align-items: center !important;
    padding: 16px 18px !important;
    gap: 16px !important;
    border-radius: 16px !important;
    background: var(--bg-card) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
  }
  .feature-mini-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 1.25rem !important;
    flex-shrink: 0 !important;
  }
  .feature-mini-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .feature-mini-info h4 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 0 3px 0 !important;
    line-height: 1.3 !important;
    color: var(--text-primary) !important;
  }
  .feature-mini-info p {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
    display: block !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  /* Seller profile on mobile */
  .seller-cover {
    height: 120px !important;
  }
  .seller-profile-avatar {
    width: 72px !important;
    height: 72px !important;
    font-size: 1.7rem !important;
  }
  .seller-profile-avatar img {
    max-width: 72px !important;
    max-height: 72px !important;
  }

  .container {
    padding: 0 20px !important;
  }
  .auth-card {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }
  .role-selector {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero {
    padding: 28px 0 24px !important;
    margin-bottom: 22px !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .hero-badge {
    font-size: 0.75rem !important;
    padding: 4px 12px !important;
    margin-bottom: 12px !important;
  }
  .hero h1 {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
  }
  .hero p {
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
    margin-bottom: 20px !important;
    padding: 0 4px !important;
  }
  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
  }
  .hero-actions .btn {
    padding: 11px 12px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
  .hero-actions .btn i {
    font-size: 0.88rem !important;
    margin-right: 6px !important;
  }
  .section {
    padding: 14px 0 28px !important;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .seller-stats-grid {
    grid-template-columns: 1fr;
  }

  /* Profile page on mobile */
  .profile-cover {
    height: 140px;
  }
  .profile-card {
    border-radius: var(--radius-lg);
  }
  
  /* Category Pills */
  .category-pill {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  
  /* Buttons */
  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .btn-lg {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  
  /* Dropdown Menu on mobile screen */
  .dropdown-menu {
    right: -4px;
    max-width: calc(100vw - 20px);
    min-width: 220px;
  }
}

/* ─── Utilities ─── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.85rem; }
.text-accent { color: var(--accent); }
.text-sm { font-size: 0.85rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   ─── Site-Wide Light Theme Explicit Component Overrides ───
   ============================================================ */

/* Smooth Transitions for Theme Switching */
body, .navbar, .glass-card, .product-card, .chat-layout, .chat-sidebar,
.chat-main, .chat-header, .chat-input-area, .dropdown-menu, .modal,
.auth-card, .stat-card, footer, .category-bar, .category-pill, .form-control {
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

[data-theme="light"] body {
  background-color: #f1f5f9;
  color: #0f172a;
}
[data-theme="light"] body::before {
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
}
[data-theme="light"] body::after {
  background: radial-gradient(circle, rgba(96,165,250,0.05) 0%, transparent 70%);
}

/* Typography & Headings */
[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4, 
[data-theme="light"] h5, 
[data-theme="light"] h6 {
  color: #0f172a;
}
[data-theme="light"] p {
  color: #334155;
}
[data-theme="light"] .text-muted {
  color: #64748b !important;
}

[data-theme="light"] .hero h1 {
  background: linear-gradient(135deg, #0f172a 25%, #1e40af 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .hero-badge {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* Navbar */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .nav-icon-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}
[data-theme="light"] .nav-icon-btn:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}
[data-theme="light"] .nav-avatar {
  border: 2px solid #cbd5e1;
}

/* Form Controls & Select */
[data-theme="light"] .form-control,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
[data-theme="light"] .form-control:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}
[data-theme="light"] .form-control::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #94a3b8 !important;
}
[data-theme="light"] select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}
[data-theme="light"] .divider span {
  background: #ffffff !important;
  color: #64748b !important;
}

/* Category Bar & Pills */
[data-theme="light"] .category-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}
[data-theme="light"] .category-pill {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
[data-theme="light"] .category-pill i {
  color: #2563eb;
}
[data-theme="light"] .category-pill:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
[data-theme="light"] .category-pill.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
[data-theme="light"] .category-pill.active i {
  color: #ffffff;
}

/* Product Cards */
[data-theme="light"] .product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
[data-theme="light"] .product-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}
[data-theme="light"] .product-card-img {
  background: transparent;
}
[data-theme="light"] .product-card-img img {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .product-name {
  color: #0f172a;
}
[data-theme="light"] .product-price {
  color: #1d4ed8;
}
[data-theme="light"] .product-placeholder {
  background: radial-gradient(circle at center, rgba(219, 234, 254, 0.6) 0%, #e2e8f0 100%);
  color: #64748b;
  border: 1px solid #e2e8f0;
}
[data-theme="light"] .product-wish-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #64748b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .product-wish-btn:hover {
  color: #f43f5e;
  background: #ffffff;
  border-color: #f43f5e;
}
[data-theme="light"] .product-wish-btn.active {
  color: #f43f5e;
  background: #fff1f2;
  border-color: #fda4af;
}
[data-theme="light"] .product-soldout-overlay {
  background: rgba(241, 245, 249, 0.75);
}

/* Glass Cards & Modals */
[data-theme="light"] .glass-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  color: #0f172a !important;
}
[data-theme="light"] .glass-card:hover {
  background: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 8px 24px rgba(37,99,235,0.08);
}
[data-theme="light"] .modal {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
  color: #0f172a !important;
}
[data-theme="light"] .modal-close {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
}
[data-theme="light"] .modal-close:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}
[data-theme="light"] .auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Role Selector */
[data-theme="light"] .role-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #334155;
}
[data-theme="light"] .role-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}
[data-theme="light"] .role-btn.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Dropdown Menu */
[data-theme="light"] .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 16px 36px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04) !important;
}
[data-theme="light"] .dropdown-item {
  color: #334155;
}
[data-theme="light"] .dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}
[data-theme="light"] .dropdown-divider {
  background: #e2e8f0;
}
[data-theme="light"] .switcher-account-item {
  border-color: #f1f5f9 !important;
}
[data-theme="light"] .switcher-account-item:hover {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}
[data-theme="light"] .switcher-loading-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

/* Chat System */
[data-theme="light"] .chat-layout {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
[data-theme="light"] .chat-sidebar,
[data-theme="light"] .chat-list-panel {
  background: #f8fafc !important;
  border-right: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .chat-sidebar-header,
[data-theme="light"] .chat-list-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .chat-list-item {
  border-bottom: 1px solid #f1f5f9 !important;
}
[data-theme="light"] .chat-list-item:hover {
  background: #f1f5f9 !important;
}
[data-theme="light"] .chat-list-item.active {
  background: #eff6ff !important;
  border-left: 3px solid #2563eb !important;
}
[data-theme="light"] .chat-name {
  color: #0f172a !important;
}
[data-theme="light"] .chat-main {
  background: #ffffff !important;
}
[data-theme="light"] .chat-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .chat-product-inquiry {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.08) !important;
}
[data-theme="light"] .inquiry-title {
  color: #0f172a !important;
}
[data-theme="light"] .chat-messages {
  background: #f8fafc !important;
}
[data-theme="light"] .msg-bubble.received {
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] .msg-bubble.received .msg-time {
  color: #64748b !important;
}
[data-theme="light"] .msg-bubble.sent {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #ffffff !important;
}
[data-theme="light"] .msg-like-badge {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .msg-like-badge.active {
  background: #fff1f2 !important;
  border-color: #fca5a5 !important;
  color: #e11d48 !important;
}
[data-theme="light"] .chat-input-area {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .chat-input {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="light"] .chat-input:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
}
[data-theme="light"] #chat-image-preview-bar {
  background: #f8fafc !important;
  border-top-color: #e2e8f0 !important;
}
[data-theme="light"] .chat-admin-topic-pills {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .chat-admin-pill-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .chat-admin-pill-btn:hover {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}
[data-theme="light"] .admin-topic-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
[data-theme="light"] .admin-topic-card:hover {
  background: #f0f9ff !important;
  border-color: #38bdf8 !important;
}
[data-theme="light"] .admin-topic-card.active {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 1px #0284c7 !important;
}

/* Camera Modal in Light Mode */
[data-theme="light"] .camera-modal-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2) !important;
}
[data-theme="light"] .camera-modal-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}
[data-theme="light"] .camera-modal-footer {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}

/* Rating & Reviews */
[data-theme="light"] .rating-summary {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
}
[data-theme="light"] .rating-bar-track {
  background: #e2e8f0 !important;
}
[data-theme="light"] .review-card {
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .reviewer-avatar {
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
  color: white !important;
}

/* Profile Page */
[data-theme="light"] .profile-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04) !important;
}
[data-theme="light"] .profile-cover-btn {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .profile-cover-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
[data-theme="light"] .cover-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}
[data-theme="light"] .cover-dropdown-item {
  color: #334155 !important;
}
[data-theme="light"] .cover-dropdown-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
[data-theme="light"] .cover-reposition-bar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .cover-reposition-hint {
  color: #0f172a !important;
  text-shadow: none !important;
}
[data-theme="light"] .cover-upload-box {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

/* Cart & Summary */
[data-theme="light"] .cart-summary {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04) !important;
}
[data-theme="light"] .summary-row {
  border-bottom-color: #e2e8f0 !important;
  color: #334155 !important;
}

/* Data Tables, Stats & Admin */
[data-theme="light"] .stat-card,
[data-theme="light"] .admin-stat-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
}
[data-theme="light"] .stat-card-value {
  color: #0f172a !important;
}
[data-theme="light"] .stat-card-label {
  color: #64748b !important;
}
[data-theme="light"] .data-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .data-table td {
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
}
[data-theme="light"] .data-table tr:hover td {
  background: #f8fafc !important;
}
[data-theme="light"] .table-responsive {
  border-color: #e2e8f0 !important;
}
[data-theme="light"] .tab-btn {
  color: #64748b;
}
[data-theme="light"] .tab-btn:hover {
  color: #0f172a;
}
[data-theme="light"] .tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: #eff6ff;
}

/* Status Badges in Light Mode (High Contrast & Clear) */
[data-theme="light"] .status-pending {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}
[data-theme="light"] .status-processing {
  background: #eff6ff !important;
  color: #1e40af !important;
  border: 1px solid #bfdbfe !important;
}
[data-theme="light"] .status-shipped {
  background: #f3e8ff !important;
  color: #6b21a8 !important;
  border: 1px solid #e9d5ff !important;
}
[data-theme="light"] .status-delivered {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
}
[data-theme="light"] .status-cancelled {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}

/* In-App Chat Toast */
[data-theme="light"] .chat-toast-notification {
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 16px rgba(37, 99, 235, 0.1);
}
[data-theme="light"] .chat-toast-sender {
  color: #0f172a;
}
[data-theme="light"] .chat-toast-time {
  color: #2563eb;
}
[data-theme="light"] .chat-toast-body {
  color: #475569;
}

/* Footer */
[data-theme="light"] footer {
  background: #e2e8f0;
  border-top: 1px solid #cbd5e1;
}
[data-theme="light"] .footer-brand h3 {
  color: #0f172a;
}
[data-theme="light"] .footer-col h4 {
  color: #1e293b;
}
[data-theme="light"] .footer-col a {
  color: #475569;
}
[data-theme="light"] .footer-col a:hover {
  color: #2563eb;
}
[data-theme="light"] .footer-bottom {
  border-top: 1px solid #cbd5e1;
  color: #64748b;
}
[data-theme="light"] .social-icon {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #64748b;
}
[data-theme="light"] .social-icon:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}

/* Facebook Post Card & Feature Mini Cards in Light Mode */
[data-theme="light"] .fb-post-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .fb-author-name {
  color: #0f172a !important;
}
[data-theme="light"] .fb-post-body {
  color: #1e293b !important;
}
[data-theme="light"] .feature-mini-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}
[data-theme="light"] .feature-mini-info h4 {
  color: #0f172a !important;
}
[data-theme="light"] .feature-mini-info p {
  color: #475569 !important;
}

/* Category Dropdown Selector in Light Mode */
[data-theme="light"] .category-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .category-trigger-btn {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .category-trigger-btn:hover,
[data-theme="light"] .category-trigger-btn.has-filter {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
}
[data-theme="light"] .category-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
}
[data-theme="light"] .category-menu-item {
  color: #334155 !important;
}
[data-theme="light"] .category-menu-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
[data-theme="light"] .category-menu-item.active {
  background: #eff6ff !important;
  color: #2563eb !important;
}
[data-theme="light"] .category-menu-item i:not(.check-icon) {
  color: #2563eb !important;
}
[data-theme="light"] .category-menu-item .check-icon {
  color: #2563eb !important;
}


