/* ═══════════════════════════════════════════════════════════════
   WebBase Store — Design System v2.0
   TechPulse Integrated Solutions © 2026
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors */
  --clr-primary:        #6366f1;
  --clr-primary-dark:   #4f46e5;
  --clr-primary-light:  #eef2ff;
  --clr-primary-muted:  rgba(99,102,241,.12);

  --clr-success:        #10b981;
  --clr-success-light:  #d1fae5;
  --clr-warning:        #f59e0b;
  --clr-warning-light:  #fef3c7;
  --clr-danger:         #ef4444;
  --clr-danger-light:   #fee2e2;
  --clr-info:           #3b82f6;
  --clr-info-light:     #dbeafe;

  /* Neutrals */
  --clr-text:           #111827;
  --clr-text-muted:     #6b7280;
  --clr-text-faint:     #9ca3af;
  --clr-border:         #e5e7eb;
  --clr-bg:             #f8f9fc;
  --clr-card:           #ffffff;

  /* Dark (footer/admin) */
  --clr-dark:           #0f172a;
  --clr-dark-2:         #1e293b;

  /* Spacing & Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:  0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-md:  0 8px 24px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);
  --shadow-lg:  0 16px 40px rgba(0,0,0,.12), 0 6px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 60px rgba(0,0,0,.16);

  /* Typography */
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Manrope', 'Inter', sans-serif;

  /* Transitions */
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Bootstrap Override */
  --bs-primary: #6366f1;
  --bs-primary-rgb: 99,102,241;
  --bs-font-sans-serif: 'Inter', system-ui, sans-serif;
  --bs-border-radius: 8px;
}

/* ══════════════════ BASE ══════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--clr-text); }
p { color: var(--clr-text-muted); }

/* ══════════════════ TOP BAR ══════════════════ */
.top-bar {
  background: #d44500;
  font-size: 12px;
  letter-spacing: 0.2px;
  border-bottom: 2px solid #b03a00;
}
.top-bar a, .top-bar span, .top-bar small, .top-bar .text-white-50 {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.top-bar a:hover { color: #ffe0c8 !important; text-decoration: underline !important; }
.top-bar .text-success { color: #ffe0c8 !important; }
.top-bar strong { color: #ffffff !important; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }

/* ══════════════════ NAVBAR ══════════════════ */
.navbar {
  background: rgba(255,255,255,0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  padding: 12px 0;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-brand img { transition: transform var(--transition); }
.navbar-brand:hover img { transform: scale(1.03); }
.navbar .form-control { border-radius: var(--radius-md) 0 0 var(--radius-md); border: 1.5px solid var(--clr-border); font-size: 14px; }
.navbar .btn-primary { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.navbar .nav-link { color: var(--clr-text) !important; font-weight: 500; font-size: 14px; padding: 6px 12px !important; border-radius: var(--radius-sm); transition: all var(--transition); }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--clr-primary) !important; background: var(--clr-primary-light); }
.navbar .nav-link.active { color: var(--clr-primary) !important; }

/* Cart badge */
#cartCount {
  min-width: 18px; height: 18px; font-size: 10px; line-height: 18px;
  padding: 0 4px; font-weight: 700; border-radius: 50px;
  background: var(--clr-danger) !important;
}
.navbar .bi-cart3 { font-size: 1.25rem; }

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
}
.dropdown-item { border-radius: var(--radius-sm); font-size: 14px; padding: 8px 14px; color: var(--clr-text); transition: all var(--transition); }
.dropdown-item:hover { background: var(--clr-primary-light); color: var(--clr-primary); }
.dropdown-item.text-danger:hover { background: var(--clr-danger-light); }

/* ══════════════════ HERO ══════════════════ */
.hero-section { overflow: hidden; }
.hero-slide {
  min-height: 540px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}
.hero-slide h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero-slide .lead { font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(255,255,255,.85); }
.carousel-control-prev, .carousel-control-next {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  top: 50%; transform: translateY(-50%);
  margin: 0 12px;
}
.carousel-control-prev-icon, .carousel-control-next-icon { width: 20px; height: 20px; }

/* ══════════════════ FEATURES BAR ══════════════════ */
.features-bar {
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
  padding: 16px 0;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.feature-item:hover { background: var(--clr-bg); }
.feature-item .icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.feature-item .label { font-size: 13px; font-weight: 600; color: var(--clr-text); line-height: 1.3; }
.feature-item .sub { font-size: 11px; color: var(--clr-text-muted); }

/* ══════════════════ SECTION HEADERS ══════════════════ */
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clr-primary);
  margin-bottom: 6px;
  display: block;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 8px; color: var(--clr-text); }
.section-title span { color: var(--clr-primary); }
.section-sub { color: var(--clr-text-muted); font-size: 15px; }

/* ══════════════════ CATEGORY CARDS ══════════════════ */
.category-card {
  border-radius: var(--radius-lg) !important;
  border: 1.5px solid var(--clr-border) !important;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition) !important;
  overflow: hidden;
  background: #fff;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--clr-primary) !important;
}
.category-card .icon-wrap {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 12px;
  transition: transform var(--transition);
}
.category-card:hover .icon-wrap { transform: scale(1.1) rotate(-3deg); }
.category-card .cat-name { font-size: 14px; font-weight: 700; color: var(--clr-text); }
.category-card .cat-desc { font-size: 12px; color: var(--clr-text-muted); }

/* ══════════════════ PRODUCT CARDS ══════════════════ */
.product-card {
  border-radius: var(--radius-lg) !important;
  border: 1.5px solid var(--clr-border) !important;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition) !important;
  background: #fff;
  display: flex; flex-direction: column;
  height: 100%;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg) !important;
}
.product-card .img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--clr-bg);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .img-wrap img { transform: scale(1.07); }

/* Badges on cards */
.product-card .badge-sale {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--clr-danger); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 50px; letter-spacing: 0.5px;
}
.product-card .badge-featured {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--clr-warning); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 50px;
}
.product-card .badge-oos {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(0,0,0,.5); color: #fff;
  font-size: 11px; font-weight: 600; padding: 3px 8px;
  border-radius: 50px;
}

/* Quick action overlay */
.product-card .card-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 14px;
  opacity: 0;
  transition: opacity var(--transition);
  background: linear-gradient(to top, rgba(0,0,0,.25) 0%, transparent 60%);
}
.product-card:hover .card-overlay { opacity: 1; }
.product-card .card-overlay .btn-quick {
  font-size: 12px; font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.7);
  color: var(--clr-text);
  backdrop-filter: blur(4px);
}
.product-card .card-overlay .btn-quick:hover { background: #fff; }

/* Card body */
.product-card .card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.product-card .cat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--clr-primary); margin-bottom: 4px; }
.product-card .prod-name {
  font-size: 14px; font-weight: 700; color: var(--clr-text);
  margin-bottom: 8px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .prod-name a { color: inherit; text-decoration: none; }
.product-card .prod-name a:hover { color: var(--clr-primary); }

/* Stars */
.star-rating { color: var(--clr-warning); font-size: 12px; margin-bottom: 8px; }

/* Price */
.price-current { font-size: 16px; font-weight: 800; color: var(--clr-primary); }
.price-current.sale { color: var(--clr-danger); }
.price-original { font-size: 12px; color: var(--clr-text-faint); text-decoration: line-through; }
.price-off { font-size: 11px; font-weight: 700; color: var(--clr-success); }

/* Card footer actions */
.product-card .card-actions { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--clr-border); display: flex; gap: 6px; }

/* ══════════════════ BUTTONS ══════════════════ */
.btn {
  font-weight: 600; font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary {
  background: var(--clr-primary); border-color: var(--clr-primary); color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--clr-primary-dark); border-color: var(--clr-primary-dark);
  box-shadow: 0 4px 14px rgba(99,102,241,.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline-primary {
  color: var(--clr-primary); border-color: var(--clr-primary);
}
.btn-outline-primary:hover {
  background: var(--clr-primary); color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,.3);
}
.btn-success { background: var(--clr-success); border-color: var(--clr-success); }
.btn-success:hover { background: #059669; border-color: #059669; }
.btn-white { background: #fff; color: var(--clr-text); border-color: #fff; }
.btn-white:hover { background: #f1f1f1; color: var(--clr-text); }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius-md); }
.btn-sm { padding: 6px 14px; font-size: 12.5px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; }

/* Add to cart button */
.add-to-cart-btn {
  flex: 1;
  background: var(--clr-primary); border-color: var(--clr-primary); color: #fff;
  font-size: 12.5px; padding: 7px 10px;
  border-radius: var(--radius-sm);
}
.add-to-cart-btn:hover { background: var(--clr-primary-dark); border-color: var(--clr-primary-dark); }

/* ══════════════════ CARDS (GENERIC) ══════════════════ */
.card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--clr-border) !important;
  box-shadow: var(--shadow-xs);
}
.card-header {
  background: #fff !important;
  border-bottom: 1px solid var(--clr-border) !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  padding: 16px 20px !important;
  font-weight: 700;
}
.card-body { padding: 20px; }
.hover-lift { transition: transform var(--transition), box-shadow var(--transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md) !important; }

/* Stat cards */
.stat-card {
  border-radius: var(--radius-lg) !important;
  border: none !important;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md) !important; }
.stat-card .stat-num { font-size: 2rem; font-weight: 800; font-family: var(--font-display); line-height: 1; }
.stat-card .stat-label { font-size: 13px; color: var(--clr-text-muted); margin-top: 4px; font-weight: 500; }
.stat-card .stat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}

/* ══════════════════ BADGES ══════════════════ */
.badge {
  font-weight: 600; font-size: 11px; padding: 4px 10px;
  border-radius: 50px; letter-spacing: 0.3px;
}
.badge-status {
  padding: 5px 12px; font-size: 12px; border-radius: 50px;
  display: inline-flex; align-items: center; gap: 5px;
}
.bs-pending    { background: var(--clr-warning-light); color: #92400e; }
.bs-confirmed  { background: var(--clr-info-light);    color: #1e40af; }
.bs-processing { background: var(--clr-primary-light); color: var(--clr-primary-dark); }
.bs-shipped    { background: #f3f4f6;                  color: #374151; }
.bs-delivered  { background: var(--clr-success-light); color: #065f46; }
.bs-cancelled  { background: var(--clr-danger-light);  color: #991b1b; }

/* ══════════════════ FORMS ══════════════════ */
.form-control, .form-select {
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--clr-text);
}
.form-control::placeholder { color: var(--clr-text-faint); }
.form-control:focus, .form-select:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
  outline: none;
}
.form-label { font-size: 13.5px; font-weight: 600; color: var(--clr-text); margin-bottom: 6px; }
textarea.form-control { resize: vertical; }
.input-group .form-control:focus { z-index: 3; }
.form-check-input:checked { background-color: var(--clr-primary); border-color: var(--clr-primary); }

/* Password toggle */
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 44px; }
.toggle-pw {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  background: none; border: none; color: var(--clr-text-faint); cursor: pointer;
  padding: 0; line-height: 1; font-size: 16px;
}
.toggle-pw:hover { color: var(--clr-primary); }

/* Validation */
.field-validation-error, .text-danger.small { font-size: 12px; color: var(--clr-danger); margin-top: 4px; display: block; }
.input-validation-error { border-color: var(--clr-danger) !important; }

/* ══════════════════ ALERTS ══════════════════ */
.alert {
  border-radius: var(--radius-md);
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: var(--clr-success-light); color: #065f46; }
.alert-danger   { background: var(--clr-danger-light);  color: #991b1b; }
.alert-warning  { background: var(--clr-warning-light); color: #92400e; }
.alert-info     { background: var(--clr-info-light);    color: #1e40af; }

/* ══════════════════ TABLES ══════════════════ */
.table { font-size: 14px; }
.table th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--clr-text-muted); padding: 12px 14px; border-bottom: 2px solid var(--clr-border); white-space: nowrap; }
.table td { padding: 12px 14px; vertical-align: middle; border-bottom: 1px solid var(--clr-border); color: var(--clr-text); }
.table tbody tr:hover td { background: var(--clr-bg); }
.table-light th { background: var(--clr-bg) !important; }

/* ══════════════════ PAGINATION ══════════════════ */
.pagination { gap: 4px; }
.page-link {
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid var(--clr-border) !important;
  font-size: 13.5px; font-weight: 600; color: var(--clr-text);
  padding: 6px 14px;
  transition: all var(--transition);
}
.page-link:hover { background: var(--clr-primary-light); color: var(--clr-primary); border-color: var(--clr-primary) !important; }
.page-item.active .page-link { background: var(--clr-primary) !important; border-color: var(--clr-primary) !important; color: #fff !important; }
.page-item.disabled .page-link { opacity: .4; }

/* ══════════════════ BREADCRUMB ══════════════════ */
.breadcrumb { font-size: 13px; }
.breadcrumb-item a { color: var(--clr-primary); text-decoration: none; font-weight: 500; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--clr-text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--clr-text-faint); }

/* ══════════════════ PRODUCT DETAIL ══════════════════ */
.product-gallery .main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--clr-bg);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-in;
  border: 1.5px solid var(--clr-border);
}
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-gallery .main-img:hover img { transform: scale(1.04); }

.qty-box .btn { width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; }
.qty-box input { width: 50px; text-align: center; font-weight: 700; }

.trust-icons { border: 1.5px solid var(--clr-border); border-radius: var(--radius-md); padding: 16px; }
.trust-icons .trust-item { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--clr-text-muted); }
.trust-icons .trust-item i { font-size: 1.4rem; }

/* ══════════════════ CART ══════════════════ */
.cart-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--clr-border);
  transition: background var(--transition);
}
.cart-item:hover { background: var(--clr-bg); }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--clr-border); flex-shrink: 0; }
.cart-item .item-name { font-size: 15px; font-weight: 600; color: var(--clr-text); }
.cart-item .item-price { font-size: 14px; color: var(--clr-text-muted); }

.order-summary-card { position: sticky; top: 82px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--clr-border); }
.summary-row:last-child { border-bottom: none; }
.summary-total { font-size: 1.15rem; font-weight: 800; color: var(--clr-primary); }

/* ══════════════════ CHECKOUT ══════════════════ */
.checkout-steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 28px; counter-reset: step;
}
.checkout-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  position: relative; font-size: 12px; font-weight: 600; color: var(--clr-text-muted);
  gap: 6px;
}
.checkout-step::before {
  content: attr(data-step);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  background: var(--clr-border); color: var(--clr-text-muted);
  transition: all var(--transition);
}
.checkout-step.active::before { background: var(--clr-primary); color: #fff; box-shadow: 0 4px 12px rgba(99,102,241,.4); }
.checkout-step.done::before { background: var(--clr-success); color: #fff; content: '✓'; font-size: 12px; }
.checkout-step + .checkout-step::after {
  content: ''; position: absolute; right: 50%; top: 16px; width: 100%; height: 2px;
  background: var(--clr-border); z-index: -1; transform: translateX(50%);
}
.payment-option {
  border: 2px solid var(--clr-border) !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer;
  transition: all var(--transition);
  padding: 16px !important;
}
.payment-option:hover { border-color: var(--clr-primary) !important; background: var(--clr-primary-muted) !important; }
.payment-option.selected { border-color: var(--clr-primary) !important; background: var(--clr-primary-muted) !important; }
.wallet-details-box { border: 2px solid var(--clr-border); border-radius: var(--radius-md); padding: 16px; background: var(--clr-bg); }

/* ══════════════════ ORDER STATUS TIMELINE ══════════════════ */
.order-timeline { position: relative; padding-left: 28px; }
.order-timeline::before { content: ''; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: var(--clr-border); }
.timeline-step { position: relative; margin-bottom: 20px; }
.timeline-step:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -28px; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  background: var(--clr-border); color: #fff;
  transition: all var(--transition);
}
.timeline-dot.done { background: var(--clr-success); }
.timeline-dot.current { background: var(--clr-primary); box-shadow: 0 0 0 4px rgba(99,102,241,.2); }
.timeline-dot.cancelled { background: var(--clr-danger); }
.timeline-title { font-size: 14px; font-weight: 700; color: var(--clr-text); }
.timeline-desc { font-size: 12.5px; color: var(--clr-text-muted); }

/* ══════════════════ PROFILE ══════════════════ */
.avatar-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  color: #fff; font-size: 1.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  box-shadow: 0 8px 24px rgba(99,102,241,.35);
}

/* ══════════════════ FILTER SIDEBAR ══════════════════ */
.filter-sidebar { position: sticky; top: 82px; }
.filter-sidebar .card { border: 1.5px solid var(--clr-border) !important; }
.filter-cat-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--clr-text);
  text-decoration: none; transition: all var(--transition);
  border: 1.5px solid transparent;
}
.filter-cat-link:hover { background: var(--clr-primary-light); color: var(--clr-primary); }
.filter-cat-link.active { background: var(--clr-primary); color: #fff; font-weight: 600; }

/* Search bar on shop page */
.shop-search .form-control { border-radius: var(--radius-md) 0 0 var(--radius-md); border-right: 0; }
.shop-search .btn { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 4rem; color: var(--clr-text-faint); margin-bottom: 16px; }
.empty-state h4 { font-weight: 700; color: var(--clr-text); margin-bottom: 8px; }
.empty-state p { color: var(--clr-text-muted); font-size: 14px; }

/* ══════════════════ TOAST ══════════════════ */
.toast {
  border: 1px solid var(--clr-border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  min-width: 280px;
}
.toast-header { border-radius: var(--radius-md) var(--radius-md) 0 0 !important; padding: 12px 16px; }
.toast-body { font-size: 14px; padding: 12px 16px; }

/* ══════════════════ WHATSAPP FLOAT ══════════════════ */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: #25d366; color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1); color: #fff;
  box-shadow: 0 6px 25px rgba(37,211,102,.7);
}

/* ══════════════════ FOOTER ══════════════════ */
.site-footer {
  background: var(--clr-dark);
  padding-top: 60px; padding-bottom: 0;
}
.footer-brand p { color: rgba(255,255,255,.5); font-size: 13.5px; }
.footer-heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.85); margin-bottom: 16px; }
.footer-link { color: rgba(255,255,255,.5); text-decoration: none; display: block; margin-bottom: 8px; font-size: 13.5px; transition: color var(--transition); }
.footer-link:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.5); font-size: 13.5px; margin-bottom: 10px; }
.footer-contact-item i { color: var(--clr-primary); font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0; margin-top: 48px;
  font-size: 12.5px; color: rgba(255,255,255,.35);
}
.footer-payment-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); padding: 6px 12px; font-size: 12px;
  font-weight: 600; color: rgba(255,255,255,.7);
}

/* ══════════════════ PROMO / BANNER SECTIONS ══════════════════ */
.promo-banner {
  border-radius: var(--radius-xl); overflow: hidden;
  position: relative; min-height: 180px;
  display: flex; align-items: center; padding: 32px;
}
.promo-banner::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.35); border-radius: inherit;
}
.promo-banner .content { position: relative; z-index: 1; }
.newsletter-section { background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%); border-radius: var(--radius-xl); padding: 48px 40px; color: #fff; }
.newsletter-section .form-control { border: none; border-radius: var(--radius-md) 0 0 var(--radius-md); height: 48px; font-size: 15px; }
.newsletter-section .btn { border-radius: 0 var(--radius-md) var(--radius-md) 0; height: 48px; padding: 0 24px; }

/* ══════════════════ SPINNER / LOADING ══════════════════ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 320px; border-radius: var(--radius-lg); }
.skeleton-text { height: 14px; border-radius: 4px; margin-bottom: 8px; }
.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }

/* ══════════════════ CONFIRMATION PAGE ══════════════════ */
.success-icon-wrap {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-success), #059669);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #fff;
  box-shadow: 0 12px 32px rgba(16,185,129,.4);
  margin: 0 auto 20px;
  animation: popIn 0.5s cubic-bezier(0.26, 0.53, 0.74, 1.48);
}
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ══════════════════ ADMIN ══════════════════ */
:root {
  --sidebar-width: 260px;
  --sidebar-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  --topbar-height: 62px;
}
.admin-sidebar {
  width: var(--sidebar-width); height: 100vh;
  position: fixed; top: 0; left: 0;
  background: var(--sidebar-bg);
  z-index: 1040; overflow-y: auto; overflow-x: hidden;
  transition: transform 0.3s ease;
  display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
.sidebar-brand { padding: 16px 16px; border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0; }
.sidebar-brand img { max-height: 36px; max-width: 190px; object-fit: contain; }
.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,.3); padding: 12px 20px 4px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin: 1px 8px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.65); font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
}
.sidebar-link i { font-size: 1.05rem; width: 20px; text-align: center; opacity: .8; }
.sidebar-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-link:hover i { opacity: 1; }
.sidebar-link.active { background: rgba(99,102,241,.3); color: #fff; font-weight: 600; }
.sidebar-link.active i { opacity: 1; color: var(--clr-primary); filter: brightness(1.3); }
.sidebar-footer { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.07); flex-shrink: 0; }
.sidebar-footer .powered-label { font-size: 10px; color: rgba(255,255,255,.3); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.sidebar-footer img { max-height: 22px; opacity: .7; }

.admin-main { margin-left: var(--sidebar-width); min-height: 100vh; background: #f4f6f9; }
.admin-topbar {
  height: var(--topbar-height);
  background: #fff; border-bottom: 1px solid var(--clr-border);
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-xs);
}
.admin-topbar .page-title { font-size: 16px; font-weight: 700; color: var(--clr-text); }
.admin-content { padding: 24px; }

.admin-stat-card {
  border-radius: var(--radius-lg) !important;
  border: none !important;
  background: #fff; padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.admin-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md) !important; }
.admin-stat-card .icon-box {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.admin-stat-card .stat-val { font-size: 1.8rem; font-weight: 800; font-family: var(--font-display); line-height: 1.1; }
.admin-stat-card .stat-lbl { font-size: 12.5px; color: var(--clr-text-muted); font-weight: 500; margin-top: 2px; }

/* Mobile sidebar toggle */
.sidebar-toggle-btn {
  display: none;
  background: none; border: none;
  font-size: 1.4rem; color: var(--clr-text); cursor: pointer; padding: 4px;
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1039; }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 991.98px) {
  .hero-slide { min-height: 400px; }
  .hero-slide h1 { font-size: 2rem; }
  .checkout-steps { display: none; }

  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .sidebar-toggle-btn { display: block; }
  .sidebar-overlay.visible { display: block; }
}

@media (max-width: 767.98px) {
  .hero-slide { min-height: 320px; }
  .hero-slide h1 { font-size: 1.6rem; }
  .hero-slide .lead { font-size: 0.9rem; }
  .cart-item { flex-wrap: wrap; }
  .cart-item img { width: 64px; height: 64px; }
  .features-bar .feature-item .sub { display: none; }
  .promo-banner { min-height: 140px; padding: 20px; }
  .newsletter-section { padding: 32px 20px; }
  .newsletter-section .d-flex { flex-direction: column; }
  .newsletter-section .form-control { border-radius: var(--radius-md) !important; margin-bottom: 8px; }
  .newsletter-section .btn { border-radius: var(--radius-md) !important; width: 100%; }
  .admin-content { padding: 16px; }
}

@media (max-width: 575.98px) {
  .card-body { padding: 14px; }
  .product-card .card-body { padding: 12px; }
  .section-title { font-size: 1.4rem; }
  .stat-card .stat-num { font-size: 1.6rem; }
}

/* ══════════════════ UTILITIES ══════════════════ */
.bg-primary-soft { background: var(--clr-primary-light); }
.text-primary { color: var(--clr-primary) !important; }
.border-primary { border-color: var(--clr-primary) !important; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.gap-xs { gap: 6px; }
.section-py { padding-top: 64px; padding-bottom: 64px; }
.section-py-sm { padding-top: 40px; padding-bottom: 40px; }
@media (max-width: 767.98px) { .section-py { padding-top: 40px; padding-bottom: 40px; } }

/* Accessibility */
:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Cart Badge Pop Animation ── */
@keyframes badgePop {
    0%   { transform: translate(-50%, -50%) scale(1); }
    40%  { transform: translate(-50%, -50%) scale(1.5); }
    70%  { transform: translate(-50%, -50%) scale(0.9); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
#cartCount.badge-pop {
    animation: badgePop 0.4s ease;
}

/* ══════════════════ CUSTOMER REVIEWS ══════════════════ */
.customer-reviews-section { background: #fafafa; }
.review-big-score { font-size: 4rem; font-weight: 800; color: #111; line-height: 1; }
.review-stars-big i { color: #f59e0b; font-size: 1.3rem; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #555; }
.rating-bar { flex: 1; height: 8px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.rating-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #f85606); border-radius: 99px; }
.review-summary-bar { background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 2px 20px rgba(0,0,0,0.06); max-width: 600px; margin: 0 auto; }
.review-card { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 2px 16px rgba(0,0,0,0.07); border: 1px solid #f0f0f0; height: 100%; transition: transform .2s, box-shadow .2s; }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.review-featured { border: 2px solid #f85606; position: relative; }
.review-featured::before { content: '🏆 Top Review'; position: absolute; top: -12px; left: 20px; background: #f85606; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 99px; letter-spacing: .5px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.review-name { font-weight: 700; font-size: 15px; color: #111; }
.review-meta { font-size: 12px; color: #9ca3af; }
.review-badge { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; flex-shrink: 0; }
.review-badge.verified { background: #d1fae5; color: #065f46; }
.review-stars i { color: #f59e0b; font-size: 13px; }
.review-text { color: #444; font-size: 14px; line-height: 1.7; margin: 10px 0; font-style: italic; }
.review-product { font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.review-product i { color: #f85606; margin-right: 4px; }
.btn-helpful { border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 99px; padding: 4px 14px; font-size: 12px; color: #6b7280; cursor: pointer; transition: all .2s; }
.btn-helpful:hover { border-color: #f85606; color: #f85606; background: #fff5f0; }
.review-cta-box { background: #fff; border: 2px dashed #f85606; border-radius: 20px; padding: 36px; max-width: 440px; margin: 0 auto; }

/* ══════════════════ CHAT WIDGETS ══════════════════ */
.chat-widget {
  position: fixed; bottom: 90px; right: 24px;
  width: 340px; z-index: 1100;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  font-family: 'Inter', sans-serif;
}
.live-agent-widget { bottom: 90px; right: 380px; }
.chat-widget-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; cursor: pointer; user-select: none;
}
.ai-header { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.agent-header { background: linear-gradient(135deg, #f85606, #c44400); }
.chat-avatar-sm {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.ai-avatar { background: rgba(255,255,255,0.2); color: #fff; }
.agent-avatar { background: rgba(255,255,255,0.2); color: #fff; }
.chat-widget-title { font-size: 14px; font-weight: 700; color: #fff; }
.chat-status { font-size: 11px; color: rgba(255,255,255,0.85); }
.chat-status.online { color: #a7f3d0; }
.chat-toggle-icon { color: rgba(255,255,255,0.85); font-size: 14px; transition: transform .3s; }
.chat-widget-body { background: #fff; border-top: none; }
.chat-messages {
  height: 260px; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: #f8f9fb;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 99px; }
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble {
  padding: 10px 14px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.55;
}
.chat-msg.bot .chat-bubble { background: #fff; border: 1px solid #e5e7eb; color: #222; border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: #6366f1; color: #fff; border-bottom-right-radius: 4px; }
.live-agent-widget .chat-msg.user .chat-bubble { background: #f85606; }
.chat-time { font-size: 10.5px; color: #aaa; margin-top: 3px; }
.chat-msg.user .chat-time { text-align: right; }
.agent-label { font-size: 10.5px; font-weight: 700; color: #f85606; margin-bottom: 3px; }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 4px; background: #f8f9fb; }
.quick-reply-btn {
  border: 1px solid #e0e0e0; background: #fff; border-radius: 99px;
  padding: 5px 12px; font-size: 12px; color: #555; cursor: pointer;
  transition: all .2s;
}
.quick-reply-btn:hover { border-color: #6366f1; color: #6366f1; background: #eef2ff; }
.chat-input-area { display: flex; align-items: center; padding: 10px 12px; border-top: 1px solid #f0f0f0; background: #fff; gap: 8px; }
.chat-input { flex: 1; border: 1.5px solid #e5e7eb; border-radius: 99px; padding: 8px 14px; font-size: 13px; outline: none; transition: border .2s; }
.chat-input:focus { border-color: #6366f1; }
.live-agent-widget .chat-input:focus { border-color: #f85606; }
.chat-send-btn { width: 36px; height: 36px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; background: #6366f1; color: #fff; cursor: pointer; flex-shrink: 0; transition: background .2s; font-size: 14px; }
.chat-send-btn:hover { background: #4f46e5; }
.agent-send { background: #f85606; }
.agent-send:hover { background: #c44400; }
/* Typing dots */
.typing-dots { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: #aaa; animation: typingBounce 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* Mobile responsive */
@media (max-width: 991.98px) {
  .live-agent-widget { right: 16px; bottom: 460px; }
}
@media (max-width: 768px) {
  .chat-widget { width: calc(100vw - 32px); right: 16px; }
  .live-agent-widget { right: 16px; bottom: 460px; }
}

/* ══════════════════ ADMIN CHAT PANEL ══════════════════ */
.admin-chat-panel {
  display: grid; grid-template-columns: 300px 1fr;
  height: calc(100vh - 130px); border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.12); background: #fff; position: relative;
}
.chat-inbox-sidebar {
  background: #1e1b4b; display: flex; flex-direction: column; overflow: hidden;
}
.chat-inbox-header { padding: 20px 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.chat-inbox-header .form-control::placeholder { color: rgba(255,255,255,0.4); }
.chat-conv-list { flex: 1; overflow-y: auto; }
.chat-conv-list::-webkit-scrollbar { width: 4px; }
.chat-conv-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }
.chat-conv-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background .15s; position: relative;
}
.chat-conv-item:hover { background: rgba(255,255,255,0.07); }
.chat-conv-item.active { background: rgba(99,102,241,0.3); border-left: 3px solid #6366f1; }
.chat-conv-item.unread .conv-name { color: #fff; font-weight: 700; }
.conv-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; font-weight: 700;
}
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-preview { font-size: 12px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.conv-time { font-size: 10.5px; color: rgba(255,255,255,0.3); }
.conv-unread-count { background: #ef4444; color: #fff; border-radius: 99px; font-size: 10px; font-weight: 700; padding: 2px 7px; }
.conv-online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #10b981; margin-left: 4px; }
.conv-away-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; margin-left: 4px; }
.conv-offline-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; margin-left: 4px; }

.chat-conversation-panel { display: flex; flex-direction: column; overflow: hidden; background: #fafafa; }
.conv-topbar {
  padding: 14px 20px; background: #fff; border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.conv-avatar-lg { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.conv-active-name { font-size: 15px; font-weight: 700; color: #111; }
.conv-active-status { font-size: 12px; color: #6b7280; margin-top: 1px; }
.btn-conv-action { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: #374151; cursor: pointer; transition: all .2s; }
.btn-conv-action:hover { background: #e5e7eb; }
.btn-conv-danger { color: #ef4444; }
.btn-conv-danger:hover { background: #fee2e2; border-color: #ef4444; }

.conv-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.conv-messages::-webkit-scrollbar { width: 4px; }
.conv-messages::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 99px; }
.conv-date-divider { text-align: center; margin: 8px 0; }
.conv-date-divider span { font-size: 11px; color: #9ca3af; background: #f0f0f0; padding: 4px 12px; border-radius: 99px; }
.conv-msg { display: flex; flex-direction: column; max-width: 72%; }
.conv-msg.customer { align-self: flex-start; }
.conv-msg.admin { align-self: flex-end; }
.conv-bubble { padding: 11px 16px; border-radius: 18px; font-size: 14px; line-height: 1.6; }
.conv-msg.customer .conv-bubble { background: #fff; border: 1px solid #e5e7eb; color: #222; border-bottom-left-radius: 4px; }
.conv-msg.admin .conv-bubble { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; border-bottom-right-radius: 4px; }
.conv-msg-time { font-size: 10.5px; color: #aaa; margin-top: 3px; }
.conv-msg.admin .conv-msg-time { text-align: right; }

.conv-quick-templates {
  padding: 10px 16px; background: #fff; border-top: 1px solid #f0f0f0;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.template-label { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .5px; margin-right: 4px; }
.tpl-btn { border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 99px; padding: 5px 13px; font-size: 12px; color: #555; cursor: pointer; transition: all .2s; white-space: nowrap; }
.tpl-btn:hover { border-color: #6366f1; color: #6366f1; background: #eef2ff; }

.conv-input-bar { padding: 12px 16px; background: #fff; border-top: 1px solid #f0f0f0; }
.conv-textarea { width: 100%; border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; resize: none; outline: none; font-family: inherit; transition: border .2s; }
.conv-textarea:focus { border-color: #6366f1; }
.conv-input-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.btn-attach, .btn-emoji { background: none; border: 1px solid #e5e7eb; border-radius: 8px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #6b7280; font-size: 16px; transition: all .2s; }
.btn-attach:hover, .btn-emoji:hover { border-color: #6366f1; color: #6366f1; }
.btn-send-admin { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; border: none; border-radius: 10px; padding: 8px 20px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .2s; }
.btn-send-admin:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.4); }

/* Admin notification toast */
.admin-notif-toast {
  position: fixed; bottom: 24px; left: 24px; z-index: 9999;
  background: #fff; border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); min-width: 300px; max-width: 380px;
  border-left: 4px solid #f85606; animation: slideInLeft .3s ease;
}
.notif-icon { font-size: 24px; }
.notif-title { font-size: 13px; font-weight: 700; color: #111; }
.notif-body { font-size: 12px; color: #6b7280; }
.notif-close { background: none; border: none; font-size: 20px; color: #9ca3af; cursor: pointer; padding: 0; line-height: 1; }
@keyframes slideInLeft { from { transform: translateX(-100%); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* ══ ADMIN NOTIFICATION BELL ══ */
.admin-notif-bell {
  position: relative; cursor: pointer; width: 36px; height: 36px;
  border-radius: 50%; background: #f3f4f6; display: flex; align-items: center;
  justify-content: center; font-size: 16px; color: #6b7280;
  transition: all .2s; border: 1px solid #e5e7eb;
}
.admin-notif-bell:hover { background: #fff5f0; color: #f85606; border-color: #f85606; }
.bell-badge {
  position: absolute; top: -4px; right: -4px; background: #ef4444;
  color: #fff; border-radius: 99px; font-size: 10px; font-weight: 700;
  padding: 1px 5px; border: 2px solid #fff; min-width: 18px; text-align: center;
}
.admin-notif-panel {
  position: absolute; top: 68px; right: 20px; width: 360px;
  background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  z-index: 1000; border: 1px solid #f0f0f0; overflow: hidden;
}
.notif-panel-header { padding: 14px 18px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.btn-clear-notifs { border: none; background: none; color: #6366f1; font-size: 12px; font-weight: 700; cursor: pointer; }
.notif-panel-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f9fafb; cursor: pointer; transition: background .15s; }
.notif-panel-item:hover { background: #f9fafb; }
.notif-panel-item.unread { background: #fff8f5; border-left: 3px solid #f85606; }
.notif-item-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.notif-item-title { font-size: 13px; font-weight: 700; color: #111; }
.notif-item-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }
.notif-item-time { font-size: 11px; color: #9ca3af; margin-top: 3px; }
.notif-panel-footer { padding: 12px 18px; text-align: center; border-top: 1px solid #f0f0f0; }
.notif-view-all { font-size: 13px; font-weight: 700; color: #6366f1; text-decoration: none; }
.sidebar-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; margin-left: auto; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{ transform:scale(1);opacity:1; } 50%{ transform:scale(1.4);opacity:.7; } }
.notif-panel-empty { padding: 28px 18px; text-align: center; font-size: 13px; color: #9ca3af; }

/* ══ CUSTOMER NOTIFICATION TOAST ══ */
.customer-notif-toast {
  position: fixed; top: 80px; right: 24px; z-index: 9999;
  background: #fff; border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); min-width: 280px; max-width: 340px;
  border-left: 4px solid #6366f1; animation: slideInRight .3s ease;
}
.notif-icon-cust { font-size: 22px; }
.notif-title-cust { font-size: 13px; font-weight: 700; color: #111; }
.notif-body-cust { font-size: 12px; color: #6b7280; }
.notif-close-cust { background: none; border: none; font-size: 20px; color: #9ca3af; cursor: pointer; padding: 0; }
@keyframes slideInRight { from { transform: translateX(100%); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* ══ AI TABS ══ */
.ai-mode-tabs { display: flex; border-bottom: 1px solid #f0f0f0; background: #f8f9fb; }
.ai-tab { flex: 1; border: none; background: none; padding: 9px 4px; font-size: 12px; font-weight: 600; color: #9ca3af; cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s; }
.ai-tab.active { color: #6366f1; border-bottom-color: #6366f1; background: #fff; }
.ai-tab:hover { color: #6366f1; }

/* ══ CHAT NOTIF BADGE ══ */
.chat-notif-badge { background: #ef4444; color: #fff; border-radius: 99px; font-size: 10px; font-weight: 700; padding: 2px 6px; min-width: 18px; text-align: center; }
.agent-label-mini { font-size: 10px; font-weight: 700; color: #f85606; margin-bottom: 2px; }
