/**
 * ============================================================================
 * ALTERNATE — Light-Theme Alternative Product Finder
 * Core Stylesheet (Modern Responsive CSS3)
 *
 * Project: Diploma CSE Final-Year Project
 * Developed by: TEAM ALTERNATE (TEAM-3)
 * Institution: SAMSKRUTI COLLEGE OF ENGINEERING AND TECHNOLOGY
 * Copyright © 2026 TEAM ALTERNATE (TEAM-3). All rights reserved.
 * ============================================================================
 */

/* ============================================================================
   1. CSS VARIABLES (DESIGN TOKENS - LIGHT THEME)
   ============================================================================ */
:root {
  /* Color Palette: Warm Light Beige & Luxurious Burgundy */
  --bg-body: #faf7f2;            /* Warm linen light beige */
  --bg-surface: #ffffff;         /* Pure crisp white card surface */
  --bg-elevated: #f5efe6;        /* Subtle warm cashmere beige */
  --bg-card-hover: #ffffff;
  --bg-accent-subtle: #fcf1f3;   /* Softest light burgundy tint */
  --bg-burgundy-light: #f7e6e9;  /* Light burgundy badge / pill background */

  --text-primary: #241a1e;       /* Deep warm espresso/charcoal for razor-sharp readability */
  --text-secondary: #4a3e43;     /* Warm mahogany slate for readable body descriptions */
  --text-muted: #7d6e73;         /* Warm mauve slate for captions and metadata */
  --text-inverse: #ffffff;

  /* Burgundy & Premium Accent Colors */
  --accent-primary: #7a1e2d;     /* Deep Noble Burgundy / Wine */
  --accent-primary-hover: #5e1320; /* Darker Velvet Burgundy */
  --accent-primary-light: #94293d; /* Soft Radiant Burgundy */
  --accent-burgundy-subtle: #fbebee; /* Very soft light burgundy */
  --accent-gold: #b38738;        /* Antique Gold / Champagne */
  --accent-gold-subtle: #fdf8ed; /* Pale Champagne */
  --accent-cyan: #166e70;        /* Deep Technical Teal */
  --accent-violet: #6b2e5f;      /* Royal Plum */
  --accent-emerald: #1e7048;     /* Verified Forest Emerald */
  --accent-emerald-subtle: #eef7f2;
  --accent-amber: #b86814;       /* Warm Amber */
  --accent-rose: #a62035;        /* Discontinued Ruby */
  --accent-rose-subtle: #fdf0f2;

  /* Borders & Dividers */
  --border-light: #e8dfd2;       /* Warm sand beige border */
  --border-subtle: #ded3c1;      /* Slightly deeper beige border */
  --border-focus: #7a1e2d;       /* Burgundy focus ring */

  /* Elevations & Shadows (Warm tinted luxury shadows) */
  --shadow-xs: 0 1px 2px rgba(36, 26, 30, 0.04);
  --shadow-sm: 0 1px 3px rgba(36, 26, 30, 0.07), 0 1px 2px rgba(36, 26, 30, 0.04);
  --shadow-md: 0 4px 8px -1px rgba(36, 26, 30, 0.08), 0 2px 4px -2px rgba(36, 26, 30, 0.04);
  --shadow-lg: 0 12px 20px -3px rgba(36, 26, 30, 0.08), 0 4px 8px -4px rgba(36, 26, 30, 0.04);
  --shadow-xl: 0 22px 30px -5px rgba(36, 26, 30, 0.1), 0 8px 12px -6px rgba(36, 26, 30, 0.05);
  --shadow-card-hover: 0 12px 24px -4px rgba(122, 30, 45, 0.15), 0 6px 12px -2px rgba(36, 26, 30, 0.06);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;

  /* Layout & Spacing */
  --max-width: 1200px;
  --navbar-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 16px);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

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

/* ============================================================================
   3. TYPOGRAPHY & SECTION HEADERS
   ============================================================================ */
.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-top: 8px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--bg-accent-subtle);
  border: 1px solid rgba(122, 30, 45, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  display: inline-block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-cyan) 50%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================================
   4. NAVIGATION BAR
   ============================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--navbar-height);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Official Logo and Wordmark */
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.logo-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

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

.nav-item {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-item:hover {
  color: var(--accent-primary);
  background-color: var(--bg-accent-subtle);
}

.nav-item.active {
  color: var(--accent-primary);
  font-weight: 600;
  background-color: var(--bg-accent-subtle);
}

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

/* Server Connectivity Indicator Pill */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cbd5e1;
  transition: background-color var(--transition-normal);
}

.status-indicator.online .status-dot {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.status-indicator.online {
  background-color: var(--accent-emerald-subtle);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--accent-emerald);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
}
.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ============================================================================
   5. BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(122, 30, 45, 0.2);
}
.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(122, 30, 45, 0.25);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
  background-color: var(--bg-elevated);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-danger-outline {
  background-color: #ffffff;
  color: var(--accent-rose);
  border: 1px solid rgba(225, 29, 72, 0.3);
}
.btn-danger-outline:hover {
  background-color: var(--accent-rose-subtle);
  border-color: var(--accent-rose);
}

.btn-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-primary);
  text-decoration: underline;
  padding: 4px;
}
.btn-link:hover {
  color: var(--accent-primary-hover);
}

/* ============================================================================
   6. HERO SECTION & LIVE PREVIEW SHOWCASE
   ============================================================================ */
.hero-section {
  padding: 60px 0 90px;
  background: radial-gradient(circle at 10% 20%, rgba(122, 30, 45, 0.04) 0%, transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.04) 0%, transparent 60%),
              var(--bg-body);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 16px;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Large Search Bar */
.hero-search-box {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  margin-bottom: 20px;
}

.hero-search-box:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(122, 30, 45, 0.15);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 8px 12px;
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  color: var(--text-primary);
}
.search-input-wrap input::placeholder {
  color: var(--text-muted);
}

.category-select-wrap select {
  border: none;
  border-left: 1px solid var(--border-light);
  background: transparent;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  outline: none;
  cursor: pointer;
}

.hero-btn {
  border-radius: var(--radius-md);
  padding: 12px 24px;
}

/* Quick Filter Tags */
.quick-tags-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.quick-tags-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-btn {
  padding: 4px 12px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tag-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--bg-accent-subtle);
  transform: translateY(-1px);
}

/* Hero Stats Strip */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background-color: var(--border-light);
}

/* -------------------------------------------------------------
   HERO PREVIEW SHOWCASE (Clean Modern 2D Comparison)
   ------------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}

.hero-preview-showcase {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.showcase-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.showcase-original {
  background-color: #fafbfc;
  border-color: #e2e8f0;
}

.showcase-alternative {
  background-color: #ffffff;
  border-color: rgba(122, 30, 45, 0.35);
  box-shadow: 0 10px 25px -5px rgba(122, 30, 45, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
}

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

.status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.status-out {
  background-color: var(--accent-rose-subtle);
  color: var(--accent-rose);
}

.status-in {
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
}

.card-chip {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  background-color: #f1f5f9;
  border-radius: 4px;
  color: var(--text-muted);
}

.card-chip-green {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  background-color: var(--accent-emerald-subtle);
  border-radius: 4px;
  color: var(--accent-emerald);
}

.showcase-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-bubble svg {
  width: 20px;
  height: 20px;
}

.icon-red {
  background-color: var(--accent-rose-subtle);
  color: var(--accent-rose);
}

.icon-green {
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
}

.card-part-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-part-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.showcase-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

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

.stock-badge {
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-warning {
  color: var(--accent-amber);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-from {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.price-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.save-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* Substitution Connector */
.showcase-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4px 0;
}

.connector-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.connector-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background-color: #ffffff;
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.04em;
}

.swap-icon {
  font-size: 1rem;
  font-weight: bold;
}

/* ============================================================================
   7. FOUR CORE CATEGORIES SECTION
   ============================================================================ */
.categories-section {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

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

.category-card {
  cursor: pointer;
}

.category-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.category-card:hover .category-card-inner {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-card-hover);
}

.category-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--transition-fast);
}

.category-card:hover .category-icon-wrap {
  transform: scale(1.08);
}

.category-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.cat-elec {
  background-color: #fcf1f3;
  color: var(--accent-primary);
}

.cat-tel {
  background-color: #f0fdfa;
  color: var(--accent-cyan);
}

.cat-auto {
  background-color: #fef2f2;
  color: #dc2626;
}

.cat-gen {
  background-color: #f5f3ff;
  color: var(--accent-violet);
}

.category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.category-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.cat-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cat-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: transform var(--transition-fast);
}

.category-card:hover .cat-link {
  transform: translateX(4px);
}

/* ============================================================================
   8. PRODUCT CATALOGUE SECTION & FILTER CONTROLS
   ============================================================================ */
.catalog-section {
  background-color: var(--bg-body);
}

.catalog-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-controls-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-search-wrap {
  position: relative;
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
}

.filter-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
}

.filter-search-wrap input {
  width: 100%;
  padding: 10px 38px 10px 42px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.filter-search-wrap input:focus {
  background-color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(122, 30, 45, 0.12);
}

.clear-btn {
  position: absolute;
  right: 12px;
  font-size: 1.25rem;
  color: var(--text-muted);
}
.clear-btn:hover {
  color: var(--text-primary);
}

.filter-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-select {
  padding: 10px 14px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.form-select:focus {
  border-color: var(--accent-primary);
  background-color: #ffffff;
}

/* Category Filter Pills */
.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.pill-btn {
  padding: 6px 14px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  background-color: #ffffff;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.pill-btn.active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
}

.active-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background-color: var(--bg-accent-subtle);
  border: 1px solid rgba(122, 30, 45, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

/* ============================================================================
   9. PRODUCT CARDS & HOVER EFFECTS
   ============================================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  height: 100%;
}

.product-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.product-card:hover .product-card-inner {
  transform: translateY(-4px);
  border-color: rgba(122, 30, 45, 0.4);
  box-shadow: var(--shadow-card-hover);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.buy-direct-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* Product Card Image Banner */
.product-card-media {
  position: relative;
  height: 160px;
  background-color: #f1f5f9;
  overflow: hidden;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-card-img {
  transform: scale(1.05);
}

/* Fallback SVG banner if image is absent */
.product-media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text-muted);
}

.product-media-fallback svg {
  width: 42px;
  height: 42px;
  opacity: 0.7;
}

.product-media-fallback span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Badges on Image */
.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.cat-badge {
  padding: 4px 10px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
}

.status-badge {
  padding: 4px 8px;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  color: #ffffff;
}

/* Product Card Content */
.product-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px;
}

/* Original vs Alternative Pill */
.product-swap-header {
  margin-bottom: 12px;
}

.original-label-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.label-mini {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-rose);
}

.original-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alternative-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.product-brand-model {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 12px;
}

.product-desc-snippet {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Compatibility Highlight */
.compat-highlight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.compat-icon {
  color: var(--accent-emerald);
  flex-shrink: 0;
  font-weight: 800;
}

.compat-text {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Price & Action Footer */
.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.card-pricing {
  display: flex;
  flex-direction: column;
}

.price-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.price-none {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Loading & Empty States */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background-color: #ffffff;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 40px auto 0;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ============================================================================
   10. MULTI-SITE PRICE COMPARISON SECTION
   ============================================================================ */
.compare-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.compare-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.compare-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 16px;
}

.compare-filter-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-label-inline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.compare-select {
  min-width: 300px;
}

.compare-info-text {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.compare-table th {
  padding: 14px 20px;
  background-color: #ffffff;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
}

.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.compare-table tr:hover {
  background-color: var(--bg-accent-subtle);
}

.best-deal-row {
  background-color: var(--accent-emerald-subtle) !important;
}

.seller-name-cell {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.best-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background-color: var(--accent-emerald);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
}

.price-cell {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.total-cost-cell {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.best-deal-row .total-cost-cell {
  color: var(--accent-emerald);
}

.stock-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}
.stock-tag.in-stock {
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
}
.stock-tag.limited {
  background-color: #fffbeb;
  color: var(--accent-amber);
}

.compare-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: #ffffff;
  flex-wrap: wrap;
  gap: 16px;
}

.compare-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 700px;
}

/* ============================================================================
   11. ADD PRODUCT / COMMUNITY FORM SECTION
   ============================================================================ */
.add-section {
  background-color: var(--bg-body);
}

.form-card {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

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

.form-fieldset {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-fieldset.full-width {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}

.fieldset-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fieldset-step {
  width: 26px;
  height: 26px;
  background-color: var(--accent-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fieldset-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-label .req {
  color: var(--accent-rose);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  background-color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(122, 30, 45, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.field-error {
  font-size: 0.78rem;
  color: var(--accent-rose);
  font-weight: 500;
}

.field-help {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.form-message {
  font-size: 0.9rem;
  font-weight: 500;
}
.form-message.success {
  color: var(--accent-emerald);
}
.form-message.error {
  color: var(--accent-rose);
}

/* ============================================================================
   12. COMMUNITY SECTION
   ============================================================================ */
.community-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

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

.community-card {
  padding: 32px 28px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.community-card:hover {
  transform: translateY(-4px);
  background-color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.community-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.community-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.community-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================================
   13. ABOUT & IDENTITY SECTION
   ============================================================================ */
.about-section {
  background-color: var(--bg-body);
  border-top: 1px solid var(--border-light);
}

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

.about-card {
  padding: 32px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.about-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent-primary);
  font-size: 1.2rem;
  line-height: 1;
}

.tech-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  padding: 6px 12px;
  background-color: var(--bg-accent-subtle);
  border: 1px solid rgba(122, 30, 45, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.about-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Identity Banner */
.identity-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px;
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, #fcf1f3 100%);
  border: 1px solid rgba(122, 30, 45, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.identity-logo-wrap {
  width: 80px;
  height: 80px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.identity-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.identity-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.identity-meta {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* ============================================================================
   14. FOOTER
   ============================================================================ */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 32px;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-brand-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 260px;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-owner-line {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-college-line {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.footer-badge-pill {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================================
   15. PRODUCT DETAILS & MULTI-OFFER MODAL
   ============================================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal-container {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
  background-color: #fafbfc;
}

.modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-category-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  background-color: var(--bg-accent-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.modal-status-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  background-color: #f1f5f9;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.modal-close-btn {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

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

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  padding: 28px;
  overflow-y: auto;
}

/* Modal Left Column */
.modal-col-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-img-wrap {
  width: 100%;
  height: 220px;
  background-color: #f1f5f9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Side-by-Side Part Comparison in Modal */
.modal-part-comparison {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.comp-box {
  flex: 1;
}

.comp-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.comp-original .comp-label {
  color: var(--accent-rose);
}

.comp-substitute .comp-label {
  color: var(--accent-emerald);
}

.comp-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.comp-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.comp-arrow {
  font-size: 1.3rem;
  color: var(--accent-primary);
  font-weight: 800;
}

.modal-meta-box {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Modal Right Column */
.modal-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

.modal-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Compatibility Checklist */
.compatibility-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Add Offer Subform */
.add-offer-subform {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.subform-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.subform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-label-sm {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input-sm {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.subform-actions {
  display: flex;
  gap: 8px;
}

/* Modal Offers Table */
.modal-table-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.modal-offers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.modal-offers-table th {
  background-color: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.modal-offers-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.modal-footer-actions {
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}

/* ============================================================================
   16. TOAST NOTIFICATIONS
   ============================================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 20px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlide 0.25s ease forwards;
}

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

.toast-success {
  border-left: 4px solid var(--accent-emerald);
}
.toast-error {
  border-left: 4px solid var(--accent-rose);
}
.toast-info {
  border-left: 4px solid var(--accent-primary);
}

/* ============================================================================
   17. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .product-card-inner, .category-card-inner, .showcase-card {
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================================
   18. RESPONSIVE MEDIA QUERIES
   ============================================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-search-box {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .quick-tags-wrap {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-search-box {
    flex-direction: column;
    padding: 10px;
  }
  .category-select-wrap select {
    border-left: none;
    border-top: 1px solid var(--border-light);
    width: 100%;
  }
  .hero-btn {
    width: 100%;
    margin-top: 8px;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-row, .form-row-4 {
    grid-template-columns: 1fr;
  }
  .community-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .modal-body {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   19. CAMERA SCANNER & VISUAL PART RECOGNITION STYLES
   ============================================================================ */
.btn-scan-hero {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: var(--bg-accent-subtle);
  border: 1px solid rgba(122, 30, 45, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  margin-right: 6px;
}
.btn-scan-hero:hover {
  background-color: #7a1e2d;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(122, 30, 45, 0.2);
}

.btn-scan-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-scan-nav:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: var(--bg-accent-subtle);
}

.btn-scan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--bg-accent-subtle);
  border: 1px solid rgba(122, 30, 45, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-scan:hover {
  background-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.scanner-modal-container {
  max-width: 660px;
}

.scanner-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 80vh;
  overflow-y: auto;
}

.scanner-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.scanner-tabs {
  display: flex;
  gap: 8px;
  background-color: var(--bg-elevated);
  padding: 4px;
  border-radius: var(--radius-md);
}

.scanner-tab-btn {
  flex: 1;
  padding: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.scanner-tab-btn.active {
  background-color: #ffffff;
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.camera-viewport-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  background-color: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-viewport-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-crosshair-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 2px dashed rgba(59, 130, 246, 0.7);
  border-radius: var(--radius-md);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.scanner-laser {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #7a1e2d, transparent);
  box-shadow: 0 0 8px #38bdf8;
  animation: scanLaser 2.2s ease-in-out infinite alternate;
}

@keyframes scanLaser {
  0% { transform: translateY(0); }
  100% { transform: translateY(260px); }
}

.scanner-hint {
  align-self: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff;
  background-color: rgba(15, 23, 42, 0.75);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.scanner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.upload-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  background-color: var(--bg-elevated);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.upload-dropzone:hover {
  border-color: var(--accent-primary);
  background-color: #fcf1f3;
}

.dropzone-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 8px;
}

.dropzone-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.dropzone-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-wrap img {
  max-height: 220px;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: var(--shadow-md);
}

.scanner-marking-bar {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.scanner-marking-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.scanner-marking-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-primary);
  background-color: #fcf1f3;
  border: 1px solid rgba(122, 30, 45, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.scanner-marking-input-wrap {
  display: flex;
  gap: 8px;
}

.scanner-marking-input-wrap input {
  flex: 1;
  font-size: 0.85rem;
  padding: 8px 12px;
}

.detection-result-box {
  background: linear-gradient(135deg, #ffffff 0%, #fcf1f3 100%);
  border: 1px solid rgba(122, 30, 45, 0.35);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  animation: modalEnter 0.25s ease;
  margin-bottom: 16px;
}

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

.detect-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.detect-confidence {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.detect-result-grid {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

@media (max-width: 580px) {
  .detect-result-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.detect-thumb-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.detect-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detect-part-no {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background-color: rgba(36, 26, 30, 0.9);
  color: #ffffff;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detect-details-col {
  flex: 1;
}

.detect-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.detect-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 8px;
}

.detect-replaces-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.detect-replaces-box strong {
  color: var(--text-primary);
}

.detect-price-box {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.detect-price-box strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-left: 4px;
}

.scanner-presets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.presets-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.preset-chip {
  padding: 5px 10px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.preset-chip:hover {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ============================================================================
   20. FLOATING CUSTOMER SERVICE & HELP STYLES
   ============================================================================ */
.floating-help-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
}
.floating-help-btn:hover {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 30px -5px rgba(122, 30, 45, 0.3);
}

.floating-help-btn .help-icon {
  font-size: 1.2rem;
}

.help-modal-container {
  max-width: 680px;
}

.help-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.help-intro-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background-color: var(--bg-elevated);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-primary);
}

.help-status-msg {
  font-size: 0.88rem;
  font-weight: 600;
}
.help-status-msg.success {
  color: var(--accent-emerald);
}
.help-status-msg.error {
  color: var(--accent-rose);
}

.support-contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px;
  background-color: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================================
   19. AUTHENTICATION & USER PROFILE STYLES (LIGHT BEIGE & BURGUNDY THEME)
   ============================================================================ */

.auth-nav-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.auth-guest-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
}

.user-profile-menu-wrap {
  position: relative;
}

.user-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.user-pill-btn:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-accent-subtle);
}

.user-avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #a62035 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.user-name-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-caret {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* User Dropdown Menu Pane */
.user-dropdown-pane {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  overflow: hidden;
  animation: dropdownFadeIn 0.18s ease-out;
}

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

.user-dropdown-header {
  padding: 16px;
  background-color: var(--bg-accent-subtle);
  border-bottom: 1px solid var(--border-light);
}

.user-dropdown-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.user-dropdown-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: 2px;
}

.user-dropdown-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  word-break: break-all;
}

.user-usage-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 8px;
  background-color: var(--bg-body);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.usage-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.usage-stat strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.usage-stat span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.user-dropdown-links {
  display: flex;
  flex-direction: column;
  padding: 6px;
}

.dropdown-link-item {
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.dropdown-link-item:hover {
  background-color: var(--bg-accent-subtle);
  color: var(--accent-primary);
}

.dropdown-link-item.text-danger {
  color: var(--accent-rose);
}

.dropdown-link-item.text-danger:hover {
  background-color: var(--accent-rose-subtle);
  color: var(--accent-rose);
}

/* ============================================================================
   22. AUTHENTICATION (SIGN IN & SIGN UP) MODAL STYLES
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background-color: rgba(36, 26, 30, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.auth-modal-card,
.auth-modal-container {
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -12px rgba(36, 26, 30, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-top: 5px solid var(--accent-primary);
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-header {
  padding: 22px 26px 16px;
  background-color: #fdfbf9;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.auth-modal-header .modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 3px;
}

.auth-modal-body {
  padding: 20px 26px 26px;
  background-color: #ffffff;
  max-height: calc(88vh - 90px);
  overflow-y: auto;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 20px;
  background-color: var(--bg-elevated);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.auth-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn:hover {
  color: var(--accent-primary);
  background-color: rgba(255, 255, 255, 0.6);
}

.auth-tab-btn.active {
  background-color: var(--bg-surface);
  color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(36, 26, 30, 0.08);
}

.auth-tab-btn .tab-icon {
  font-size: 1rem;
}

.auth-form-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.input-with-icon .form-input {
  padding-left: 38px;
  width: 100%;
}

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

.toggle-password-btn {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-radius: 4px;
  transition: color var(--transition-fast);
  z-index: 2;
}

.toggle-password-btn:hover {
  color: var(--accent-primary);
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}

.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.remember-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.remember-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.demo-quick-box {
  background-color: #fcf9f2;
  border: 1px dashed #b38738;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.demo-quick-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #7b5816;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-quick-note {
  font-size: 0.7rem;
  color: #8f6a25;
}

.quick-fill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background-color: #ffffff;
  border: 1px solid #d8b873;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.quick-fill-btn:hover {
  background-color: #faf2dd;
  border-color: #b38738;
  transform: translateY(-1px);
}

.demo-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.demo-info strong {
  font-size: 0.78rem;
  color: var(--text-primary);
}

.demo-info code {
  font-size: 0.72rem;
  color: #7b5816;
  font-family: var(--font-mono);
  font-weight: 600;
}

.demo-arrow {
  font-size: 1rem;
  color: #7b5816;
  font-weight: 700;
}

.free-database-badge {
  background-color: #fcf1f3;
  border: 1px solid rgba(122, 30, 45, 0.2);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.free-database-badge .badge-icon {
  background-color: var(--accent-primary);
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  font-weight: 800;
}

.auth-submit-btn {
  width: 100%;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent-primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(122, 30, 45, 0.25);
}

.auth-submit-btn:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(122, 30, 45, 0.35);
}

.auth-form-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  margin-top: 2px;
}

.auth-switch-link {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}

.auth-switch-link:hover {
  color: var(--accent-primary-hover);
}

/* ============================================================================
   23. ACTIVITY LOG MODAL STYLES
   ============================================================================ */
.activity-modal-card,
.activity-modal-container {
  width: 100%;
  max-width: 580px;
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -12px rgba(36, 26, 30, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-top: 5px solid var(--accent-primary);
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.activity-modal-content {
  padding: 24px;
  max-height: calc(88vh - 90px);
  overflow-y: auto;
}

.user-summary-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--bg-accent-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.summary-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #a62035 100%);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.summary-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.activity-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}

.activity-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background-color: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.825rem;
}

.activity-item-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.activity-item-content {
  flex-grow: 1;
}

.activity-item-action {
  font-weight: 700;
  color: var(--text-primary);
}

.activity-item-detail {
  color: var(--text-secondary);
  margin-top: 2px;
}

.activity-item-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

