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

:root {
  /* Premium Medical Blue Palette */
  --primary: #2563EB; /* Royal Blue */
  --primary-light: #DBEAFE;
  --primary-dark: #1D4ED8;
  --primary-glow: rgba(37, 99, 235, 0.25);
  
  --secondary: #0F172A; /* Slate Navy */
  --secondary-light: #1E293B;
  
  --bg-color: #F8FAFC;
  --surface-white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  
  --text-main: #334155;
  --text-muted: #64748B;
  
  --accent-red: #EF4444;
  --accent-orange: #F59E0B;
  
  /* Modern layered shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px var(--primary-glow);
  --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { 
  font-family: 'Inter', sans-serif; 
  background: var(--bg-color); 
  color: var(--text-main); 
  line-height: 1.6; 
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; color: var(--secondary); letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
img { max-width: 100%; display: block; }

/* ── RX Top Banner ── */
.rx-bar {
  background: var(--secondary);
  color: #F8FAFC; 
  font-size: 0.75rem; 
  font-weight: 500; 
  padding: 10px 20px;
  text-align: center; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  gap: 2.5rem; 
  flex-wrap: wrap; 
  letter-spacing: 0.03em;
}
.rx-bar span { display: flex; align-items: center; gap: 8px; opacity: 0.9; }
.rx-bar i { color: var(--primary); font-size: 0.9rem; }

/* ── Glass Header ── */
.site-header {
  position: sticky; top: 20px; z-index: 200; margin: 0 20px;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: 24px;
  box-shadow: var(--shadow-glass); display: flex; align-items: center; justify-content: space-between;
  height: 80px; transition: all 0.3s ease;
}
.logo-wrap { display: flex; align-items: center; gap: 16px; group; }
.logo-wrap img { height: 52px; width: 52px; border-radius: 12px; box-shadow: var(--shadow-sm); transition: 0.3s; }
.logo-wrap:hover img { transform: scale(1.05) rotate(-2deg); box-shadow: var(--shadow-md); }
.logo-text { line-height: 1.2; display: flex; flex-direction: column; }
.logo-text strong { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--secondary); }
.logo-text small { font-size: 0.7rem; color: var(--primary); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; margin-left: auto; margin-right: 2.5rem; }
.nav-links a { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); position: relative; padding: 8px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--primary); transition: 0.3s ease; border-radius: 3px; }
.nav-links a:hover { color: var(--secondary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--secondary); }

.btn-cart {
  background: var(--secondary); color: #fff; border: none; border-radius: 50px;
  padding: 12px 28px; font-weight: 600; font-size: 0.95rem; font-family: 'Outfit', sans-serif;
  cursor: pointer; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-cart:hover {
  background: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg);
}
.cart-count {
  background: #fff; color: var(--primary); border-radius: 50%; width: 24px; height: 24px;
  font-size: 0.8rem; display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ── Dynamic Hero Section ── */
.hero {
  position: relative; padding: 160px 20px 100px; overflow: hidden; margin-top: -100px;
  background: radial-gradient(circle at 85% 10%, var(--primary-light) 0%, transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 40%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(3rem, 7vw, 5rem); font-weight: 800; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.hero h1 span { 
  color: transparent; 
  background: linear-gradient(135deg, var(--primary), #0ea5e9); 
  -webkit-background-clip: text; 
  background-clip: text;
  position: relative; 
  display: inline-block; 
}
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 650px; margin-inline: auto; font-weight: 400; line-height: 1.7; }

.hero-badges { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-badge { 
  background: var(--surface-white); padding: 8px 16px; border-radius: 50px; 
  font-size: 0.85rem; font-weight: 600; color: var(--secondary);
  display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm); border: 1px solid #E2E8F0;
}
.hero-badge i { color: var(--primary); }

.hero-cta {
  display: inline-flex; align-items: center; gap: 12px; background: var(--primary); color: #fff;
  border-radius: 50px; padding: 18px 42px; font-weight: 700; font-family: 'Outfit', sans-serif; font-size: 1.15rem;
  box-shadow: 0 10px 25px var(--primary-glow); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  position: relative; overflow: hidden;
}
.hero-cta::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg); transition: 0.6s;
}
.hero-cta:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 35px var(--primary-glow); color: #fff; }
.hero-cta:hover::before { left: 150%; }

/* ── Trust Strip (Glass Morphism) ── */
.trust-strip {
  max-width: 1100px; margin: -40px auto 80px; position: relative; z-index: 10;
  background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: var(--shadow-glass);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 10px;
}
.trust-item {
  display: flex; align-items: center; gap: 16px; padding: 24px; position: relative; transition: 0.3s;
}
.trust-item:hover { background: rgba(255,255,255,0.5); border-radius: 16px; }
.trust-item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 25%; height: 50%; width: 1px; background: #E2E8F0;
}
.trust-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; transition: 0.3s;
}
.trust-item:hover .trust-icon { transform: scale(1.1) rotate(5deg); background: var(--primary); color: #fff; }
.trust-text p { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: 2px; }
.trust-text small { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }

/* ── Section & Titles ── */
.section { padding: 100px 20px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-inline: auto; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.section-head h2 span { color: transparent; background: linear-gradient(135deg, var(--primary), #0ea5e9); -webkit-background-clip: text; background-clip: text; }
.section-head p { color: var(--text-muted); font-size: 1.15rem; line-height: 1.6; }

/* ── Search & Tabs ── */
.search-wrapper { max-width: 560px; margin: 0 auto 3rem; position: relative; }
.search-wrapper input {
  width: 100%; border: 2px solid transparent; border-radius: 50px; padding: 16px 24px 16px 56px;
  font-size: 1rem; font-family: 'Inter', sans-serif; transition: 0.3s; background: var(--surface-white);
  box-shadow: var(--shadow-md); color: var(--secondary);
}
.search-wrapper input::placeholder { color: #94A3B8; }
.search-wrapper input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.search-wrapper .fa-search { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.1rem; }
.search-wrapper button {
  position: absolute; right: 8px; top: 8px; bottom: 8px; background: var(--secondary); color: #fff;
  border: none; border-radius: 50px; padding: 0 32px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.search-wrapper button:hover { background: var(--primary); }

.cat-tabs { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 4rem; }
.cat-tab {
  background: var(--surface-white); border: 1px solid #E2E8F0; border-radius: 50px; padding: 12px 28px;
  font-size: 0.95rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: 0.3s;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif;
}
.cat-tab.active, .cat-tab:hover {
  background: var(--secondary); border-color: var(--secondary); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.cat-tab.active i, .cat-tab:hover i { color: var(--primary-light); }
.cat-tab i { color: var(--primary); font-size: 1.1rem; }

/* ── Premium Product Grid ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.5rem; }
.product-card {
  background: var(--surface-white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; border: 1px solid #F1F5F9;
  display: flex; flex-direction: column; height: 100%;
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); border-color: var(--primary-light); }
.product-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #F8FAFC; padding: 30px; display: flex; align-items: center; justify-content: center; }
.product-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.03), transparent);
}
.product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); filter: drop-shadow(0 12px 20px rgba(0,0,0,0.08)); z-index: 1; }
.product-card:hover .product-img img { transform: scale(1.12) translateY(-5px); }

.product-badge {
  position: absolute; top: 16px; left: 16px; background: var(--accent-red); color: #fff;
  border-radius: 8px; padding: 6px 12px; font-size: 0.75rem; font-weight: 800; font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); z-index: 2; letter-spacing: 0.05em;
}

.product-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.product-cat { font-size: 0.75rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.product-name-link { text-decoration: none; color: inherit; display: block; }
.product-name-link:hover .product-name { color: var(--primary); }
.product-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--secondary); margin-bottom: 16px; line-height: 1.4; flex-grow: 1; }
.product-price { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 24px; }
.price-main { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--secondary); }
.price-old { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; font-weight: 500; }

.btn-add {
  width: 100%; background: #F1F5F9; color: var(--secondary); border: none; border-radius: 14px;
  padding: 14px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-add i { transition: 0.3s; color: var(--primary); }
.product-card:hover .btn-add { background: var(--primary); color: #fff; }
.product-card:hover .btn-add i { color: #fff; transform: scale(1.2); }

/* ── About Section (Glass & Gradients) ── */
#about { position: relative; overflow: hidden; background: #fff; }
#about::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 70%; height: 150%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%);
  opacity: 0.5; z-index: 0;
}
.about-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.about-content h2 { font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.about-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.8; }
.about-stats { display: flex; gap: 3rem; margin-top: 2rem; }
.stat-item strong { font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--primary); display: block; line-height: 1; margin-bottom: 8px; }
.stat-item span { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

.about-img-wrap { position: relative; width: 100%; max-width: 450px; margin: 0 auto; }
.about-img-wrap::before {
  content: ''; position: absolute; inset: -30px; background: linear-gradient(135deg, var(--primary), #0ea5e9);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; z-index: -1; animation: morph 8s ease-in-out infinite alternate;
  opacity: 0.15;
}
@keyframes morph { 0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } 100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; } }
.about-img-wrap img { width: 100%; border-radius: 32px; box-shadow: var(--shadow-xl); border: 8px solid #fff; object-fit: cover; aspect-ratio: 4/5; }


/* ── Cart Overlay (Glassmorphism) ── */
.cart-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 300; opacity: 0; pointer-events: none; transition: 0.4s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-panel {
  position: fixed; right: 0; top: 0; bottom: 0; width: 460px; max-width: 100vw;
  background: var(--surface-white);
  z-index: 301; transform: translateX(100%); transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,0.15);
}
.cart-panel.open { transform: translateX(0); }
.cart-header { padding: 32px; border-bottom: 1px solid #F1F5F9; display: flex; align-items: center; justify-content: space-between; }
.cart-header h3 { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.cart-close { background: #F8FAFC; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); transition: 0.3s; }
.cart-close:hover { background: #F1F5F9; color: var(--accent-red); transform: rotate(90deg); }

.cart-items { flex: 1; overflow-y: auto; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.cart-item { display: flex; gap: 16px; align-items: center; background: #F8FAFC; padding: 16px; border-radius: 16px; border: 1px solid #F1F5F9; }
.cart-item-img { width: 80px; height: 80px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; box-shadow: var(--shadow-sm); }
.cart-item-info { flex: 1; }
.cart-item-name { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--secondary); margin-bottom: 4px; line-height: 1.3; font-size: 0.95rem; }
.cart-item-price { color: var(--primary); font-weight: 700; font-family: 'Outfit', sans-serif; font-size: 1.1rem; margin-bottom: 8px; }
.cart-item-qty { display: flex; align-items: center; gap: 12px; }
.qty-btn { background: #fff; border: 1px solid #E2E8F0; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-weight: 600; color: var(--secondary); transition: 0.2s; }
.qty-btn:hover { background: #E2E8F0; }
.cart-qty { font-weight: 600; font-size: 0.95rem; width: 20px; text-align: center; }
.cart-remove { margin-left: auto; background: none; border: none; color: #94A3B8; cursor: pointer; transition: 0.2s; padding: 8px; }
.cart-remove:hover { color: var(--accent-red); }

.cart-empty { text-align: center; color: var(--text-muted); padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cart-empty i { font-size: 3rem; color: #CBD5E1; }

.cart-footer { padding: 32px; border-top: 1px solid #F1F5F9; background: #F8FAFC; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1rem; color: var(--text-muted); margin-bottom: 12px; font-weight: 500; }
.cart-total-row.total { font-size: 1.4rem; color: var(--secondary); font-weight: 800; font-family: 'Outfit', sans-serif; margin-top: 16px; padding-top: 16px; border-top: 1px dashed #CBD5E1; }
.btn-checkout {
  width: 100%; background: var(--secondary); color: #fff; border: none; border-radius: 16px;
  padding: 18px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem;
  cursor: pointer; margin-top: 24px; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: var(--shadow-md);
}
.btn-checkout:hover { background: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ── Checkout & Invoice (Clean & Professional) ── */
.checkout-wrap { max-width: 1000px; margin: 60px auto; padding: 0 20px; }
.checkout-form-box, .order-summary-box, .invoice-box {
  background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow-md); border: 1px solid #F1F5F9;
}
.form-group label { display: block; font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--secondary); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; border: 2px solid #E2E8F0; border-radius: 14px; padding: 14px 18px; font-size: 1rem; font-family: 'Inter', sans-serif; transition: 0.3s; background: #F8FAFC;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-glow); }

/* ── Admin Panel Layout ── */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-color);
}
.admin-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--secondary);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 10px 0 30px rgba(0,0,0,0.05);
}
.admin-brand {
    padding: 32px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.admin-brand img {
    height: 40px;
    width: auto;
    margin-bottom: 12px;
    border-radius: 8px;
    background: white;
    padding: 2px;
}
.admin-brand strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
}
.admin-brand small {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.admin-nav {
    flex: 1;
    padding: 20px 0;
}
.nav-section {
    padding: 20px 24px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
}
.admin-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.admin-nav a.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.admin-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.admin-content {
    flex: 1;
    background: var(--bg-color);
    padding: 40px;
}
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.admin-topbar h1 {
    font-size: 2rem;
    font-weight: 800;
}
.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary);
}

.alert {
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.alert-success { background: #EFF6FF; color: #1E40AF; border: 1px solid #DBEAFE; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FEE2E2; }

/* ── Admin Dashboard Components ── */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E2E8F0;
    transition: 0.3s;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.stat-icon.blue { background: #EFF6FF; color: #3B82F6; }
.stat-icon.blue { background: #EFF6FF; color: #3B82F6; }
.stat-icon.indigo { background: #EEF2FF; color: #6366F1; }
.stat-icon.red { background: #FEF2F2; color: #EF4444; }

.stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}
.stat-lbl {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E2E8F0;
    margin-bottom: 40px;
}
.admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.admin-card-head h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.data-table th {
    text-align: left;
    padding: 16px;
    background: #F8FAFC;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid #E2E8F0;
}
.data-table td {
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.95rem;
    color: var(--text-main);
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #F8FAFC; }

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-success { background: #DBEAFE; color: #1E40AF; }
.badge-warn { background: #FEF3C7; color: #92400E; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-gray { background: #F1F5F9; color: #475569; }

.btn-sm {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    background: var(--primary-light);
    color: var(--primary-dark);
}
.btn-sm:hover {
    background: var(--primary);
    color: #fff;
}
.btn-sm.gray {
    background: #F1F5F9;
    color: #475569;
}
.btn-sm.gray:hover {
    background: #E2E8F0;
}

/* ── Utility Animation Classes ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
