/* ============ DevKistee Store - Glassy Blue Premium Theme ============ */
:root {
  /* Glassy Blue Color Palette */
  --gold: #2563eb;
  --gold-dark: #1e40af;
  --gold-light: #60a5fa;
  --gold-lighter: #93c5fd;
  --accent-cyan: #06b6d4;
  
  /* Deep Blues for Backgrounds */
  --charcoal: #0f172a;
  --charcoal-2: #1e293b;
  --charcoal-3: #334155;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --off-white: #f0f9ff;
  --gray: #64748b;
  --gray-light: #e0e7ff;
  
  /* Status Colors */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;
  
  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  --glass-blur: blur(10px);
  
  /* Shadows & Effects */
  --shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 10px 40px rgba(37, 99, 235, 0.15);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.3);
  
  /* Layout */
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea {
  font-family: inherit; font-size: 15px; padding: 12px 14px;
  border: 1.5px solid var(--gray-light); border-radius: var(--radius-sm);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  width: 100%; transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); 
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), var(--shadow);
  background: rgba(255, 255, 255, 0.9);
}

/* ============ TOP BAR ============ */
.topbar {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.8); font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar a { color: rgba(255, 255, 255, 0.8); margin-left: 15px; }
.topbar a:hover { color: var(--gold-light); }

/* ============ NAVBAR ============ */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: 1300px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.logo {
  font-size: 24px; font-weight: 800; color: var(--charcoal);
  display: flex; align-items: center; gap: 10px;
}
.logo span { 
  background: linear-gradient(135deg, var(--gold), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-icon {
  width: 40px; height: 40px; 
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 20px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}
.logo-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.nav-menu { display: flex; gap: 28px; list-style: none; }
.nav-menu a {
  font-weight: 500; color: var(--charcoal); position: relative; padding: 6px 0;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent-cyan));
  transition: var(--transition);
  border-radius: 2px;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; 
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  display: grid; place-items: center; position: relative; transition: var(--transition);
  box-shadow: var(--shadow);
}
.icon-btn:hover { 
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); 
  color: #fff; 
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.badge {
  position: absolute; top: -4px; right: -4px; 
  background: linear-gradient(135deg, var(--danger), #dc2626); 
  color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 5px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600;
  transition: var(--transition); font-size: 14px; cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
.btn:hover::before {
  left: 100%;
}
.btn-primary { 
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); 
  color: #fff; 
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.btn-outline { 
  border-color: var(--gold); 
  color: var(--gold); 
  background: transparent;
  backdrop-filter: blur(10px);
}
.btn-outline:hover { 
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); 
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-dark { 
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-2)); 
  color: #fff;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
}
.btn-dark:hover { 
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-danger { 
  background: linear-gradient(135deg, var(--danger), #dc2626); 
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.btn-success { 
  background: linear-gradient(135deg, var(--success), #059669); 
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.mobile-toggle { display: none; font-size: 24px; }

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.9)),
        url('../images/hero-bg.webp') center/cover;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-bottom: 18px;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}
.hero h1 span { 
  background: linear-gradient(135deg, var(--gold-light), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { 
  font-size: 18px; max-width: 680px; margin: 0 auto 32px; opacity: 0.95;
  position: relative;
  z-index: 1;
}
.hero-search {
  max-width: 640px; margin: 0 auto; display: flex; 
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50px; overflow: hidden; 
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.hero-search input { 
  border: none; padding: 18px 24px; border-radius: 0; 
  background: transparent;
}
.hero-search button {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); 
  color: #fff; padding: 0 30px; font-weight: 600;
  border: none;
}
.hero-search button:hover { 
  background: linear-gradient(135deg, var(--gold-dark), var(--charcoal));
}

/* ============ SECTIONS ============ */
.section { padding: 80px 20px; }
.container { max-width: 1300px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head .eyebrow {
  color: var(--gold); font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; font-size: 13px; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--gold), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-head h2 { 
  font-size: 36px; font-weight: 800; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-head p { color: var(--gray); max-width: 600px; margin: 0 auto; }

/* ============ CATEGORY GRID ============ */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px;
}
.cat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: var(--transition); cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(6, 182, 212, 0.05));
  opacity: 0;
  transition: opacity 0.3s;
}
.cat-card:hover::before {
  opacity: 1;
}
.cat-card:hover {
  transform: translateY(-6px); 
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.cat-icon {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; display: grid; place-items: center; font-size: 24px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  position: relative;
}
.cat-card h4 { font-size: 15px; font-weight: 600; position: relative; }

/* ============ PRODUCT GRID ============ */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.product-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition); box-shadow: var(--shadow); position: relative;
}
.product-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

/* ============ PRODUCT CARD (ZOOMED OUT) ============ */
.product-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  max-width: 90%;
  max-height: 90%;
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute; top: 12px; left: 12px; 
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); 
  color: #fff;
  padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.product-body { padding: 18px; }
.product-cat { 
  color: var(--gold); font-size: 12px; font-weight: 600; 
  text-transform: uppercase; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--gold), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.product-name { font-size: 16px; font-weight: 700; margin: 6px 0 10px; min-height: 44px; }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.price-now { 
  font-size: 20px; font-weight: 800; 
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-old { font-size: 14px; color: var(--gray); text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; justify-content: center; padding: 10px; font-size: 13px; }

/* ============ SHOP LAYOUT ============ */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.sidebar {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); height: fit-content; position: sticky; top: 90px;
}
.sidebar h3 { 
  font-size: 16px; margin-bottom: 16px; padding-bottom: 10px; 
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--gold), var(--accent-cyan)) 1;
}
.filter-group { margin-bottom: 24px; }
.filter-group label { display: block; padding: 6px 0; font-size: 14px; cursor: pointer; transition: var(--transition); }
.filter-group label:hover { color: var(--gold); transform: translateX(4px); }

/* ============ PRODUCT DETAIL ============ */
.product-detail { 
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; 
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 40px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product-gallery .main-img { 
  aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; 
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.product-thumbs img { 
  aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; 
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition);
}
.product-thumbs img.active, .product-thumbs img:hover { 
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.product-info h1 { font-size: 30px; margin-bottom: 10px; }
.product-meta { display: flex; gap: 16px; color: var(--gray); font-size: 14px; margin-bottom: 20px; }
.product-info .price-now { font-size: 32px; }
.specs-table { width: 100%; margin: 20px 0; border-radius: var(--radius-sm); overflow: hidden; }
.specs-table tr:nth-child(even) { background: rgba(37, 99, 235, 0.05); }
.specs-table td { padding: 10px 14px; font-size: 14px; }
.specs-table td:first-child { font-weight: 600; width: 40%; color: var(--charcoal); }

/* ============ CART SIDEBAR ============ */
.cart-sidebar {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 100%;
  height: 100vh; 
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg); z-index: 200;
  transition: right 0.35s ease; display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-head { 
  padding: 20px; border-bottom: 1px solid var(--glass-border); 
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255, 255, 255, 0.5);
}
.cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-info h5 { font-size: 14px; margin-bottom: 4px; }
.cart-item-info .price { 
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cart-foot { 
  padding: 20px; border-top: 1px solid var(--glass-border); 
  background: rgba(240, 249, 255, 0.8);
  backdrop-filter: blur(10px);
}
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-bottom: 14px; }

/* ============ FORMS ============ */
.form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 600px; margin: 40px auto;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============ DASHBOARD LAYOUT ============ */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dash-sidebar {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  backdrop-filter: blur(20px);
  color: #fff; padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.dash-sidebar .logo { color: #fff; padding: 0 24px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.dash-menu { list-style: none; margin-top: 20px; }
.dash-menu li a {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px; 
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition); font-size: 14px;
  border-left: 3px solid transparent;
}
.dash-menu li a:hover, .dash-menu li a.active { 
  background: rgba(37, 99, 235, 0.2);
  color: #fff; 
  border-left: 3px solid var(--gold);
  backdrop-filter: blur(10px);
}
.dash-main { 
  padding: 30px; 
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.dash-head h1 { font-size: 26px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.stat-card .label { color: var(--gray); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.stat-card .value { font-size: 28px; font-weight: 800; margin-top: 6px; }
.stat-card .icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #fff; }
.stat-card.gold .icon { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
.stat-card.dark .icon { background: linear-gradient(135deg, var(--charcoal), var(--charcoal-2)); }
.stat-card.green .icon { background: linear-gradient(135deg, var(--success), #059669); }
.stat-card.blue .icon { background: linear-gradient(135deg, var(--info), #0891b2); }

.panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 24px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--glass-border); }
.panel-head h3 { font-size: 18px; }

/* ============ TABLE ============ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th {
  text-align: left; padding: 12px; font-size: 12px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--gray); border-bottom: 2px solid var(--glass-border);
  background: rgba(37, 99, 235, 0.05);
}
table td { padding: 14px 12px; border-bottom: 1px solid var(--glass-border); font-size: 14px; }
table tr:hover { background: rgba(37, 99, 235, 0.05); }
.status-badge {
  display: inline-block; padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.status-badge.new, .status-badge.pending { background: rgba(245, 158, 11, 0.2); color: #92400e; }
.status-badge.approved, .status-badge.completed, .status-badge.delivered, .status-badge.paid { background: rgba(16, 185, 129, 0.2); color: #065f46; }
.status-badge.processing, .status-badge.assigned { background: rgba(37, 99, 235, 0.2); color: #1e40af; }
.status-badge.rejected, .status-badge.cancelled { background: rgba(239, 68, 68, 0.2); color: #991b1b; }
.status-badge.dispatch, .status-badge.in_transit { background: rgba(99, 102, 241, 0.2); color: #3730a3; }

/* ============ CHAT ============ */
.chat-container { 
  display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 140px); 
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.chat-list { border-right: 1px solid var(--glass-border); overflow-y: auto; }
.chat-item { 
  padding: 14px 16px; border-bottom: 1px solid var(--glass-border); 
  cursor: pointer; display: flex; gap: 12px; align-items: center;
  transition: var(--transition);
}
.chat-item:hover, .chat-item.active { 
  background: rgba(37, 99, 235, 0.1);
  backdrop-filter: blur(10px);
}
.chat-avatar { 
  width: 42px; height: 42px; border-radius: 50%; 
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.chat-preview h5 { font-size: 14px; margin-bottom: 2px; }
.chat-preview p { font-size: 12px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.chat-window { display: flex; flex-direction: column; }
.chat-head { 
  padding: 16px 20px; border-bottom: 1px solid var(--glass-border); 
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}
.chat-body { flex: 1; overflow-y: auto; padding: 20px; background: linear-gradient(135deg, #f0f9ff, #e0f2fe); }
.msg { max-width: 70%; padding: 10px 14px; border-radius: 14px; margin-bottom: 10px; font-size: 14px; word-wrap: break-word; }
.msg.me { 
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; margin-left: auto; border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.msg.them { 
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px; 
  box-shadow: var(--shadow);
}
.msg-time { font-size: 10px; opacity: 0.7; margin-top: 4px; display: block; }
.chat-input { 
  padding: 14px; border-top: 1px solid var(--glass-border); 
  display: flex; gap: 10px; align-items: center; 
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}
.chat-input input { flex: 1; }

/* ============ ORDER TRACKING ============ */
.tracker { display: flex; justify-content: space-between; position: relative; padding: 30px 0; }
.tracker::before {
  content: ''; position: absolute; top: 50px; left: 5%; right: 5%; height: 3px;
  background: linear-gradient(90deg, var(--glass-border), var(--gold-light), var(--glass-border));
  z-index: 0;
  border-radius: 3px;
}
.tracker-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.tracker-step .dot {
  width: 40px; height: 40px; border-radius: 50%; 
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  color: var(--gray);
  display: grid; place-items: center; margin: 0 auto 10px; font-weight: 700;
  transition: var(--transition);
}
.tracker-step.done .dot { 
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.tracker-step.active .dot { 
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
  border-color: var(--success);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2), 0 4px 15px rgba(16, 185, 129, 0.3);
}
.tracker-step .label { font-size: 12px; font-weight: 600; }

/* ============ QUOTE PDF ============ */
.quote-pdf { background: #fff; padding: 40px; max-width: 800px; margin: 0 auto; font-family: 'Inter', sans-serif; }
.quote-pdf .header { 
  display: flex; justify-content: space-between; padding-bottom: 20px; 
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--gold), var(--accent-cyan)) 1;
  margin-bottom: 20px;
}
.quote-pdf h1 { color: var(--charcoal); }

/* ============ FOOTER ============ */
footer { 
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
  backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.8); padding: 60px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-col h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.foot-col a { display: block; padding: 4px 0; font-size: 14px; transition: var(--transition); }
.foot-col a:hover { color: var(--gold-light); transform: translateX(4px); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; text-align: center; font-size: 13px; }

/* ============ TOAST ============ */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 14px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  margin-bottom: 10px; min-width: 280px; 
  border-left: 4px solid var(--gold);
  animation: slideIn 0.3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; 
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); max-width: 600px; width: 100%;
  max-height: 90vh; overflow-y: auto; animation: popIn 0.25s ease;
  box-shadow: var(--shadow-lg);
}
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { 
  padding: 20px; border-bottom: 1px solid var(--glass-border); 
  display: flex; justify-content: space-between;
  background: rgba(255, 255, 255, 0.5);
}
.modal-body { padding: 20px; }
.modal-foot { 
  padding: 16px 20px; border-top: 1px solid var(--glass-border); 
  display: flex; gap: 10px; justify-content: flex-end;
  background: rgba(255, 255, 255, 0.5);
}

/* ============ GLOBAL SEARCH ============ */
.global-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}
.global-search-input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 1.5px solid var(--glass-border);
  border-radius: 25px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.global-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), var(--shadow);
  background: rgba(255, 255, 255, 0.9);
}
.global-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  pointer-events: none;
}
.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 450px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}
.global-search-results.show {
  display: block;
}
.search-result-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--glass-border);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.search-result-item:hover {
  background: rgba(37, 99, 235, 0.1);
  backdrop-filter: blur(10px);
}
.search-result-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-cat {
  font-size: 12px;
  color: var(--gray);
}
.search-result-price {
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 13px;
  margin-top: 4px;
}
.search-view-all {
  display: block;
  padding: 12px;
  text-align: center;
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-2));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: var(--transition);
}
.search-view-all:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

/* ============ RESPONSIVE FIXES ============ */
@media (max-width: 992px) {
  .mobile-toggle { display: grid; place-items: center; }
  
  .nav-menu { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    flex-direction: column; 
    padding: 20px; 
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a { padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
  .nav-menu li:last-child a { border-bottom: none; }

  .dash-layout { display: block; }
  
  .dash-sidebar { 
    position: fixed; 
    left: -280px; 
    top: 0; 
    width: 280px; 
    height: 100vh; 
    z-index: 200; 
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  .dash-sidebar.open { left: 0; }
  
  .dash-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    z-index: 199;
  }
  .dash-overlay.active { display: block; }

  .dash-main { padding: 20px 16px; margin-left: 0 !important; }
  
  .dash-mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 150;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .dash-mobile-header h2 { font-size: 18px; margin: 0; }
  .dash-hamburger { 
    background: none; 
    border: none; 
    color: #fff; 
    font-size: 24px; 
    cursor: pointer; 
  }

  .shop-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; margin-bottom: 20px; }
  .sidebar.collapsed .filter-group { display: none; }
  .sidebar-toggle-btn { display: inline-flex !important; }

  .product-detail { grid-template-columns: 1fr; gap: 30px; padding: 20px; }
  
  .chat-container { grid-template-columns: 1fr; height: calc(100vh - 180px); }
  .chat-list.hidden-mobile { display: none; }
  .chat-list.show-mobile { display: block; }
  .chat-window.hidden-mobile { display: none; }
  .chat-back-btn { display: inline-flex !important; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  
  .table-wrap { 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    margin: 0 -24px;
    padding: 0 24px;
  }
  
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 576px) {
  .hero { padding: 60px 16px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero-search { flex-direction: column; border-radius: 16px; }
  .hero-search input { border-radius: 16px 16px 0 0; }
  .hero-search button { border-radius: 0 0 16px 16px; padding: 14px; }

  .section { padding: 40px 16px; }
  .section-head h2 { font-size: 24px; }
  
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 16px 10px; }
  .cat-icon { width: 48px; height: 48px; font-size: 20px; }
  .cat-card h4 { font-size: 13px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px; }
  .product-name { font-size: 14px; min-height: auto; }
  .price-now { font-size: 16px; }
  .product-actions { flex-direction: column; gap: 6px; }
  .product-actions .btn { padding: 8px; font-size: 12px; }

  .stat-grid { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  
  .tracker { flex-direction: column; gap: 16px; align-items: flex-start; }
  .tracker::before { display: none; }
  .tracker-step { display: flex; align-items: center; gap: 12px; }
  .tracker-step .dot { margin: 0; flex-shrink: 0; }
  .tracker-step .label { text-align: left; }
  
  .modal { margin: 10px; max-height: 95vh; }
  .toast-container { left: 16px; right: 16px; }
  .toast { min-width: auto; }
}

.dash-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 199;
}

.dash-overlay.active {
  display: block;
}

.dash-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 150;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}