/* 
  =========================================
  VPharmacy - Premium Futuristic CSS Design
  =========================================
*/

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

/* CSS Variables */
:root {
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Color Palette - Premium Futuristic Light */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-glass: rgba(15, 23, 42, 0.08);
  --border-glass-hover: rgba(2, 132, 199, 0.3);
  
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-teal: #059669;
  --accent-purple: #7c3aed;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --gradient-primary: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --gradient-emerald: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --gradient-dark: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --gradient-glow: 0 4px 20px rgba(37, 99, 235, 0.12);
  --gradient-glow-emerald: 0 4px 20px rgba(16, 185, 129, 0.12);

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-secondary);
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.05) 0%, rgba(37, 99, 235, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Typography & Accent Text */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass Card Component */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

.mobile-only {
  display: none !important;
}

/* Common Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .nav-container {
  height: 65px;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover img {
  animation: logoPulse 1s infinite alternate;
}

@keyframes logoPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0284c7, #7c3aed);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links li.active a {
  color: #0f172a;
}

.nav-links a:hover::after,
.nav-links li.active a::after {
  width: 100%;
}

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

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--gradient-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}

.btn-outline-cyan {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.4);
}

.btn-outline-cyan:hover {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.whatsapp-btn {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Views & Dynamic Routing */
.view {
  display: none;
  padding-top: 120px;
  min-height: calc(100vh - 100px);
  animation: fadeIn 0.5s ease;
}

.view.active {
  display: block;
}

/* Home view uses hero-wrapper for its own padding/bg */
#view-home,
#view-services,
#view-about,
#view-contact,
#view-blog {
  padding-top: 0;
}


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

/* --------------------------------- */
/* 1. HERO VIEW                      */
/* --------------------------------- */

/* Wrapper with full-bleed gradient background */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 80px; /* matches fixed header height */
  background: linear-gradient(155deg, #f0f7ff 0%, #eef2ff 45%, #faf5ff 100%);
}

/* Animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2,132,199,0.18) 0%, transparent 70%);
  top: -150px;
  left: -100px;
  animation: orbDrift1 12s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  bottom: -100px;
  right: -80px;
  animation: orbDrift2 15s ease-in-out infinite alternate;
}
.hero-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(5,150,105,0.10) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation: orbDrift3 18s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes orbDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -30px) scale(1.08); }
}
@keyframes orbDrift3 {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Particles layer */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.4);
  animation: particleFade var(--dur, 6s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes particleFade {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-80px) scale(1.2); }
}

/* Grid layout */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 80px 0 110px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

/* ── LEFT: Content ── */

/* Trust pill */
.hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(2,132,199,0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(2,132,199,0.08);
  animation: slideDown 0.6s ease both;
}
.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Headline */
.hero-content h1 {
  font-size: 60px;
  line-height: 1.12;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  animation: slideUp 0.7s 0.1s ease both;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #7c3aed 60%, #059669 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Description */
.hero-desc {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 40px;
  animation: slideUp 0.7s 0.2s ease both;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: slideUp 0.7s 0.3s ease both;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(2,132,199,0.35);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.hero-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero-btn-primary:hover::before { opacity: 1; }
.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.45);
}
.hero-btn-primary:hover .btn-arrow {
  transform: translateX(5px);
}
.btn-icon, .btn-arrow {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.btn-arrow { transition: transform 0.3s ease; }
.hero-btn-primary span:not(.btn-icon):not(.btn-arrow) {
  position: relative;
  z-index: 1;
}

.hero-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: #fff;
  color: #128c7e;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid rgba(18,140,126,0.25);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(18,140,126,0.1);
}
.hero-btn-whatsapp:hover {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.35);
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: slideUp 0.7s 0.45s ease both;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.stat-plus {
  font-size: 20px;
  color: var(--accent-cyan);
  margin-left: 2px;
}
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(15,23,42,0.12);
}

/* ── RIGHT: Visual ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.9s 0.2s ease both;
}

/* Glow ring behind image */
.hero-glow-ring {
  position: absolute;
  width: 105%;
  height: 105%;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(2,132,199,0.25) 0%, rgba(124,58,237,0.18) 50%, rgba(5,150,105,0.15) 100%);
  filter: blur(24px);
  z-index: 0;
  animation: ringPulse 4s ease-in-out infinite alternate;
}
@keyframes ringPulse {
  0%   { opacity: 0.7; transform: scale(0.98); }
  100% { opacity: 1;   transform: scale(1.03); }
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 500px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.6);
  background: #f8fafc;
  box-shadow:
    0 30px 60px rgba(2,132,199,0.15),
    0 0 0 1px rgba(2,132,199,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Bottom gradient overlay on image */
.hero-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(15,23,42,0.35) 0%, transparent 100%);
  pointer-events: none;
}

/* Floating cards shared base */
.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 2;
  min-width: 190px;
}

.hero-float-card-1 {
  bottom: 80px;
  left: -40px;
  animation: floatCard1 5s ease-in-out infinite;
}
.hero-float-card-2 {
  top: 60px;
  right: -36px;
  animation: floatCard2 6s 1s ease-in-out infinite;
}
.hero-float-card-3 {
  bottom: 210px;
  right: -44px;
  animation: floatCard3 7s 2s ease-in-out infinite;
}

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes floatCard2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes floatCard3 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.float-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.float-icon-cyan   { background: rgba(2,132,199,0.12);  color: #0284c7; }
.float-icon-emerald{ background: rgba(5,150,105,0.12);  color: #059669; }
.float-icon-purple { background: rgba(124,58,237,0.12); color: #7c3aed; }

.float-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}
.float-card-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Entry animations */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}



.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  margin-bottom: 80px;
}

.feature-item {
  padding: 32px 24px;
  text-align: left;
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.feature-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.06);
}

.feature-item .icon {
  font-size: 32px;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  display: inline-block;
  transition: var(--transition-smooth);
}

.feature-item:hover .icon {
  transform: scale(1.15) rotate(5deg);
  color: var(--accent-blue);
}

.feature-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Section Label Pills ── */
.section-label-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(2,132,199,0.08);
  border: 1px solid rgba(2,132,199,0.18);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.section-label-dark {
  background: rgba(15,23,42,0.05);
  border-color: rgba(15,23,42,0.12);
  color: var(--text-secondary);
}

/* ── Special Offers Section ── */
.offers-section {
  padding: 70px 0;
}

.offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.offer-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(2,132,199,0.12);
  border: 1px solid var(--border-glass);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 55px rgba(2,132,199,0.18);
}

.offer-card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Why Choose Us Section ── */
.why-section {
  padding: 100px 0 80px;
  background: linear-gradient(160deg, #f0f7ff 0%, #f5f0ff 50%, #f0fff8 100%);
  border-top: 1px solid rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
}

.why-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.why-orb-left {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(2,132,199,0.10) 0%, transparent 70%);
  top: -100px;
  left: -80px;
}
.why-orb-right {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(124,58,237,0.09) 0%, transparent 70%);
  bottom: -60px;
  right: -60px;
}

.why-section .container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px auto;
}
.section-header h2 {
  font-size: 42px;
  margin-bottom: 16px;
  color: #0f172a;
}
.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-gradient-why {
  background: linear-gradient(135deg, #0284c7, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Why cards grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 64px;
}

.why-card-new {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px;
  padding: 36px 28px 28px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  overflow: hidden;
}
.why-card-new::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 60%);
  pointer-events: none;
}
.why-card-new:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(2,132,199,0.12);
  border-color: rgba(2,132,199,0.2);
}

/* Featured/tall card */
.why-card-featured {
  background: linear-gradient(155deg, rgba(124,58,237,0.06) 0%, rgba(255,255,255,0.92) 40%);
  border-color: rgba(124,58,237,0.2);
  padding-top: 52px;
  padding-bottom: 52px;
}
.why-card-featured:hover {
  box-shadow: 0 24px 56px rgba(124,58,237,0.14);
  border-color: rgba(124,58,237,0.35);
}

/* "Most Trusted" badge on featured card */
.why-featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Number accent */
.why-card-num {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(15,23,42,0.12);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

/* Icon ring */
.why-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 22px;
  transition: all 0.35s ease;
}
.why-ring-blue   { background: rgba(2,132,199,0.10);  color: #0284c7; box-shadow: 0 4px 16px rgba(2,132,199,0.12); }
.why-ring-purple { background: rgba(124,58,237,0.10); color: #7c3aed; box-shadow: 0 4px 16px rgba(124,58,237,0.12); }
.why-ring-emerald{ background: rgba(5,150,105,0.10);  color: #059669; box-shadow: 0 4px 16px rgba(5,150,105,0.12); }

.why-card-new:hover .why-ring-blue   { background: rgba(2,132,199,0.18);  transform: scale(1.1) rotate(-5deg); }
.why-card-new:hover .why-ring-purple { background: rgba(124,58,237,0.18); transform: scale(1.1) rotate(-5deg); }
.why-card-new:hover .why-ring-emerald{ background: rgba(5,150,105,0.18);  transform: scale(1.1) rotate(-5deg); }

.why-card-new h3 {
  font-size: 20px;
  color: #0f172a;
  margin-bottom: 12px;
}
.why-card-new p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Tag badges */
.why-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(2,132,199,0.08);
  color: #0284c7;
  border: 1px solid rgba(2,132,199,0.15);
}
.why-tag-purple {
  background: rgba(124,58,237,0.08);
  color: #7c3aed;
  border-color: rgba(124,58,237,0.15);
}
.why-tag-emerald {
  background: rgba(5,150,105,0.08);
  color: #059669;
  border-color: rgba(5,150,105,0.15);
}

/* ── Testimonial strip ── */
.testimonial-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  padding: 32px 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.testimonial-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 24px;
}
.testimonial-divider {
  width: 1px;
  height: 60px;
  background: rgba(15,23,42,0.1);
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.testi-av-1 { background: linear-gradient(135deg, #0284c7, #2563eb); }
.testi-av-2 { background: linear-gradient(135deg, #059669, #047857); }
.testi-av-3 { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.testi-stars {
  color: #f59e0b;
  font-size: 13px;
  margin-bottom: 6px;
}
.testi-text p {
  font-size: 13px;
  color: #0f172a;
  line-height: 1.6;
  margin-bottom: 6px;
  font-style: italic;
}
.testi-text span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Features Section ── */
.features-section {
  padding: 100px 0 80px;
  background: #fff;
}
.features-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px auto;
}
.features-section-header h2 {
  font-size: 38px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
}
.features-section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.feature-card {
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: 20px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-card:hover {
  background: #fff;
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: transparent;
}
.feature-card-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}
.feature-line-blue   { background: linear-gradient(180deg, #0284c7, #2563eb); }
.feature-line-purple { background: linear-gradient(180deg, #7c3aed, #4f46e5); }
.feature-line-emerald{ background: linear-gradient(180deg, #059669, #047857); }
.feature-line-amber  { background: linear-gradient(180deg, #f59e0b, #d97706); }

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
}
.feature-icon-blue   { background: rgba(2,132,199,0.10);  color: #0284c7; }
.feature-icon-purple { background: rgba(124,58,237,0.10); color: #7c3aed; }
.feature-icon-emerald{ background: rgba(5,150,105,0.10);  color: #059669; }
.feature-icon-amber  { background: rgba(245,158,11,0.10); color: #d97706; }

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.12) rotate(-6deg);
}
.feature-card:hover .feature-icon-blue   { background: rgba(2,132,199,0.18); }
.feature-card:hover .feature-icon-purple { background: rgba(124,58,237,0.18); }
.feature-card:hover .feature-icon-emerald{ background: rgba(5,150,105,0.18); }
.feature-card:hover .feature-icon-amber  { background: rgba(245,158,11,0.18); }

.feature-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.feature-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Features CTA Row ── */
.features-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border-radius: 24px;
  padding: 40px 48px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.15);
}
.features-cta-text .cta-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.features-cta-text h3 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.features-cta-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.features-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.features-call-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}



/* ---------------------------------------- */
/* SHARED PAGE HERO BANNER                  */
/* ---------------------------------------- */
.page-hero-banner {
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px; /* offset fixed header height */
  background: linear-gradient(155deg, #f0f7ff 0%, #eef2ff 50%, #f5f0ff 100%);
}
.page-hero-banner h1 {
  font-size: 46px;
  font-weight: 800;
  color: #0f172a;
  margin: 16px 0 12px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.page-hero-banner > .container > p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
}
.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.page-hero-orb-1 {
  width: 500px; height: 500px;
  top: -150px; left: -100px;
}
.page-hero-orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; right: -60px;
}
.page-hero-banner .container { position: relative; z-index: 1; }
.page-hero-services .page-hero-orb-1 { background: radial-gradient(circle, rgba(2,132,199,0.15) 0%, transparent 70%); }
.page-hero-services .page-hero-orb-2 { background: radial-gradient(circle, rgba(5,150,105,0.10) 0%, transparent 70%); }
.page-hero-about .page-hero-orb-1 { background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%); }
.page-hero-about .page-hero-orb-2 { background: radial-gradient(circle, rgba(2,132,199,0.10) 0%, transparent 70%); }
.page-hero-contact .page-hero-orb-1 { background: radial-gradient(circle, rgba(5,150,105,0.12) 0%, transparent 70%); }
.page-hero-contact .page-hero-orb-2 { background: radial-gradient(circle, rgba(245,158,11,0.10) 0%, transparent 70%); }
.page-hero-blog .page-hero-orb-1 { background: radial-gradient(circle, rgba(2,132,199,0.12) 0%, transparent 70%); }
.page-hero-blog .page-hero-orb-2 { background: radial-gradient(circle, rgba(124,58,237,0.10) 0%, transparent 70%); }

/* Page content below hero */
.page-content-wrap { padding: 60px 0 80px; }

/* ---------------------------------------- */
/* 2. SERVICES VIEW                         */
/* ---------------------------------------- */

/* Tab Bar */
.services-tab-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.services-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-radius: 16px;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid rgba(15,23,42,0.08);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  min-width: 200px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.services-tab:hover:not(.active) {
  border-color: rgba(2,132,199,0.25);
  box-shadow: 0 6px 20px rgba(2,132,199,0.08);
  transform: translateY(-2px);
}
.services-tab.active {
  border-color: rgba(2,132,199,0.35);
  box-shadow: 0 8px 28px rgba(2,132,199,0.14);
  background: linear-gradient(135deg, rgba(2,132,199,0.04), rgba(37,99,235,0.02));
}
.tab-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  transition: all 0.3s ease;
}
.tab-icon-blue   { background: rgba(2,132,199,0.10);  color: #0284c7; }
.tab-icon-emerald{ background: rgba(5,150,105,0.10);  color: #059669; }
.tab-icon-purple { background: rgba(124,58,237,0.10); color: #7c3aed; }
.services-tab.active .tab-icon-blue    { background: rgba(2,132,199,0.18); }
.services-tab.active .tab-icon-emerald { background: rgba(5,150,105,0.18); }
.services-tab.active .tab-icon-purple  { background: rgba(124,58,237,0.18); }
.tab-label-wrap { display: flex; flex-direction: column; gap: 2px; }
.tab-title { font-size: 14px; font-weight: 700; color: #0f172a; }
.tab-sub   { font-size: 11px; color: var(--text-muted); }

/* Pane switch */
.service-content-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}
.service-content-pane.active { display: block; }

/* Two-col order pane layout */
.pane-layout-two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.pane-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.pane-card-centered { max-width: 680px; margin: 0 auto; }
.pane-card-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 36px;
}
.pane-header-center { flex-direction: column; align-items: center; text-align: center; }
.pane-card-header h2 { font-size: 26px; margin-bottom: 6px; }
.pane-card-header p  { font-size: 14px; color: var(--text-secondary); }

.pane-icon-circle {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.pane-icon-blue   { background: rgba(2,132,199,0.10);  color: #0284c7; }
.pane-icon-emerald{ background: rgba(5,150,105,0.10);  color: #059669; }
.pane-icon-purple { background: rgba(124,58,237,0.10); color: #7c3aed; }

/* Trust Side Panel */
.trust-side-panel {
  background: linear-gradient(155deg, #f8faff 0%, #f5f0ff 100%);
  border: 1px solid rgba(124,58,237,0.1);
  border-radius: 20px;
  padding: 28px;
}
.trust-side-panel h4 {
  font-size: 15px; font-weight: 700; color: #0f172a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}
.trust-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 18px;
}
.trust-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.trust-icon-blue   { background: rgba(2,132,199,0.10);  color: #0284c7; }
.trust-icon-emerald{ background: rgba(5,150,105,0.10);  color: #059669; }
.trust-icon-purple { background: rgba(124,58,237,0.10); color: #7c3aed; }
.trust-icon-amber  { background: rgba(245,158,11,0.10); color: #d97706; }
.trust-item strong { font-size: 13px; color: #0f172a; display: block; margin-bottom: 2px; }
.trust-item p { font-size: 12px; color: var(--text-muted); margin: 0; }
.trust-helpline {
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(15,23,42,0.08);
  font-size: 22px; color: #0284c7;
}
.trust-helpline div { display: flex; flex-direction: column; }
.trust-helpline span { font-size: 11px; color: var(--text-muted); }
.trust-helpline a { font-size: 14px; font-weight: 700; color: #0284c7; text-decoration: none; }
.trust-helpline a:hover { text-decoration: underline; }

/* Verify sample codes */
.verify-sample-codes {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 16px 0; font-size: 13px; color: var(--text-muted);
}
.verify-sample-codes button {
  padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600;
  background: rgba(2,132,199,0.08); color: #0284c7;
  border: 1px solid rgba(2,132,199,0.2); cursor: pointer;
  transition: all 0.2s ease;
}
.verify-sample-codes button:hover { background: rgba(2,132,199,0.15); }

/* Keep old form styles working */
.order-form-container { max-width: 720px; margin: 0 auto; padding: 40px; }
.form-title-group { margin-bottom: 32px; text-align: center; }
.form-title-group h2 { font-size: 28px; margin-bottom: 8px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-group-full {
  grid-column: span 2;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-control {
  background: #ffffff;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  padding: 11px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  width: 100%;
}

.form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.form-control:hover {
  border-color: rgba(2, 132, 199, 0.35);
  background: #ffffff;
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

/* File Upload Component */
.prescription-upload-box {
  border: 2px dashed var(--border-glass);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  background: rgba(255, 255, 255, 0.01);
}

.prescription-upload-box:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.02);
}

.prescription-upload-box input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  font-size: 36px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.upload-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.upload-text p {
  font-size: 13px;
  color: var(--text-secondary);
}

.uploaded-preview-container {
  display: none;
  margin-top: 16px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
}

.uploaded-preview-container.active {
  display: flex;
}

.preview-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.preview-details {
  flex-grow: 1;
  font-size: 13px;
}

.preview-details span {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.preview-details small {
  color: var(--text-secondary);
}

.remove-upload-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 8px;
  font-size: 16px;
}

/* Service: Track Order Page */
.track-card {
  max-width: 580px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.search-box-tracker {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

/* Stepper Tracker UI */
.tracker-status-wrapper {
  margin-top: 48px;
  display: none;
  text-align: left;
  animation: fadeIn 0.4s ease;
}

.tracker-status-wrapper.active {
  display: block;
}

.tracker-info-box {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 30px;
}

.tracker-info-box h4 {
  font-size: 16px;
}

.tracker-info-box span {
  color: var(--accent-cyan);
  font-weight: 600;
}

.tracker-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  padding-left: 32px;
}

.tracker-steps::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--bg-tertiary);
}

.tracker-step-item {
  position: relative;
}

.tracker-step-node {
  position: absolute;
  left: -32px;
  top: 2px;
  width: 24px;
  height: 24px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-glass);
  border-radius: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: var(--transition-smooth);
}

.tracker-step-item.active .tracker-step-node {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
  color: #070913;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.tracker-step-item.completed .tracker-step-node {
  border-color: var(--accent-teal);
  background: var(--accent-teal);
  color: #070913;
}

.tracker-step-desc h5 {
  font-size: 16px;
  margin-bottom: 4px;
}

.tracker-step-desc p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Service: Verify Medicine Page */
.verify-card {
  max-width: 580px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.verification-result-box {
  margin-top: 40px;
  padding: 24px;
  border-radius: 12px;
  display: none;
  animation: fadeIn 0.4s ease;
  text-align: center;
}

.verification-result-box.active {
  display: block;
}

.verification-result-box.success {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.verification-result-box.success h3 {
  color: var(--accent-teal);
}

.verification-result-box.error {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.verification-result-box.error h3 {
  color: #ef4444;
}

.verification-badge-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ---------------------------------------- */
/* 3. ABOUT VIEW                            */
/* ---------------------------------------- */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 80px;
}

/* Image column */
.about-img-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-img-glow {
  position: absolute;
  width: 105%; height: 105%;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(2,132,199,0.2) 0%, rgba(124,58,237,0.15) 50%, rgba(5,150,105,0.12) 100%);
  filter: blur(28px);
  z-index: 0;
  animation: ringPulse 5s ease-in-out infinite alternate;
}
.about-img-frame {
  position: relative; z-index: 1;
  width: 100%; height: 500px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.6);
  background: #f8fafc;
  box-shadow: 0 24px 56px rgba(2,132,199,0.14), inset 0 1px 0 rgba(255,255,255,0.8);
}
.about-img-frame img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.6s ease;
}
.about-img-frame:hover img { transform: scale(1.04); }
.about-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.25) 0%, transparent 60%);
}

/* Floating cert badge */
.about-cert-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  animation: floatCard1 6s ease-in-out infinite;
}
.cert-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(245,158,11,0.12); color: #d97706;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.cert-title { font-size: 13px; font-weight: 700; color: #0f172a; }
.cert-sub   { font-size: 11px; color: var(--text-muted); }

/* About text */
.about-text h2 { font-size: 36px; margin-bottom: 20px; }
.about-text > p { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }

/* Milestones */
.about-milestones {
  display: flex; flex-direction: column; gap: 16px;
  margin: 28px 0;
  padding: 24px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.06);
}
.milestone-item {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 14px; color: #0f172a; line-height: 1.6;
}
.milestone-dot {
  width: 12px; height: 12px; border-radius: 50%;
  flex-shrink: 0; margin-top: 4px;
}
.milestone-dot-blue   { background: #0284c7; }
.milestone-dot-purple { background: #7c3aed; }
.milestone-dot-emerald{ background: #059669; }

/* About stat cards */
.about-stats-new {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-top: 28px;
}
.about-stat-card {
  background: #fff; border: 1px solid rgba(15,23,42,0.07);
  border-radius: 16px; padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  transition: all 0.3s ease;
}
.about-stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.about-stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.about-stat-blue   { background: rgba(2,132,199,0.10);  color: #0284c7; }
.about-stat-emerald{ background: rgba(5,150,105,0.10);  color: #059669; }
.about-stat-purple { background: rgba(124,58,237,0.10); color: #7c3aed; }
.about-stat-num   { font-size: 26px; font-weight: 800; color: #0f172a; font-family: var(--font-display); }
.about-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* Old stat styles fallback */
.about-stats { display: flex; gap: 32px; margin-top: 36px; border-top: 1px solid var(--border-glass); padding-top: 32px; }
.stat-item h4 { font-size: 36px; font-family: var(--font-display); font-weight: 800; color: var(--accent-cyan); }
.stat-item p  { font-size: 14px; color: var(--text-secondary); margin-bottom: 0; }

/* ---------------------------------------- */
/* 4. CONTACT VIEW                          */
/* ---------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  margin-bottom: 80px;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }

/* New contact info cards */
.contact-info-card-new {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.contact-info-card-new:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.contact-card-icon-ring {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.contact-ring-blue   { background: rgba(2,132,199,0.10);  color: #0284c7; }
.contact-ring-purple { background: rgba(124,58,237,0.10); color: #7c3aed; }
.contact-ring-amber  { background: rgba(245,158,11,0.10); color: #d97706; }
.contact-ring-emerald{ background: rgba(5,150,105,0.10);  color: #059669; }
.contact-card-body h4 { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.contact-card-body p  { font-size: 13px; color: var(--text-muted); margin: 2px 0; }
.contact-detail-link  { font-size: 14px; font-weight: 600; color: #0284c7; text-decoration: none; display: block; margin-bottom: 3px; }
.contact-detail-link:hover { text-decoration: underline; }
.contact-wa { color: #128c7e; }
.contact-wa:hover { color: #25d366; }

/* Contact form card */
.contact-form-card-new {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.contact-form-header {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(15,23,42,0.07);
}
.contact-form-header h3 { font-size: 22px; margin-bottom: 4px; color: #0f172a; }
.contact-form-header p  { font-size: 13px; color: var(--text-muted); }

/* Keep old contact card styles */
.contact-info-card { padding: 24px; display: flex; gap: 20px; align-items: flex-start; }
.contact-info-card .icon { font-size: 24px; color: var(--accent-cyan); padding: 12px; background: rgba(0,242,254,0.05); border-radius: 12px; border: 1px solid rgba(0,242,254,0.15); }
.contact-info-card h4 { font-size: 18px; margin-bottom: 6px; }
.contact-info-card p  { font-size: 14px; color: var(--text-secondary); }
.contact-form-card { padding: 40px; }

/* ---------------------------------------- */
/* 5. BLOG VIEW                             */
/* ---------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 80px;
}


.blog-card {
  overflow: hidden;
  border-radius: 16px;
}

.blog-card-img {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.blog-card-body {
  padding: 24px;
}

.blog-tag {
  display: inline-block;
  font-size: 12px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 14px;
  font-weight: 600;
}

.blog-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.blog-card h3:hover {
  color: var(--accent-cyan);
}

.blog-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* --------------------------------- */
/* 6. MODAL & LOGIN FLOW             */
/* --------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.login-modal-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  text-align: center;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.close-modal-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.login-modal-card h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.login-modal-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.login-pane {
  display: none;
}

.login-pane.active {
  display: block;
}

/* --------------------------------- */
/* 7. ADMIN DASHBOARD                */
/* --------------------------------- */
/* --------------------------------- */
/* 7. ADMIN DASHBOARD                */
/* --------------------------------- */
.admin-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  margin-top: 30px;
  margin-bottom: 80px;
}

#view-admin .container {
  max-width: 1440px;
  width: 95%;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.admin-stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}
.admin-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.admin-stat-card .icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(2, 132, 199, 0.06);
  border: 1px solid rgba(2, 132, 199, 0.12);
  color: var(--accent-cyan);
}

.admin-stat-card.pending .icon-box {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.admin-stat-card.delivered .icon-box {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.12);
  color: var(--accent-teal);
}

.admin-stat-card h4 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.admin-stat-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

.admin-sidebar {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: max-content;
  position: sticky;
  top: 100px;
  background: var(--bg-secondary);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.admin-sidebar-header {
  padding: 12px 16px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 12px;
}

.admin-sidebar-header .admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.07);
  border: 1px solid rgba(2, 132, 199, 0.15);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.admin-sidebar-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.admin-sidebar-logo {
  display: block;
  height: 44px;
  width: auto;
  margin: 4px 0 2px;
}

.admin-sidebar-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.admin-nav-item.active {
  background: rgba(2, 132, 199, 0.06);
  color: var(--accent-cyan);
  font-weight: 700;
}

.admin-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gradient-primary);
  border-radius: 0 3px 3px 0;
}

.admin-nav-item:hover:not(.active) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.admin-nav-item ion-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.admin-content {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.admin-pane.active {
  display: block;
}

.admin-pane-padded {
  padding: 28px;
}

.admin-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 12px;
}

.admin-pane-header h2 {
  font-size: 22px;
}

/* Premium Table Styles */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 900px;
}

thead tr {
  background: var(--bg-tertiary);
}

th {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-glass);
  font-size: 13px;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: rgba(2, 132, 199, 0.018);
}

/* Order Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-badge.dispatched {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.status-badge.delivered {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* Invoice Creation Section */
.bill-builder {
  display: block;
  max-width: 780px;
  margin: 0 auto;
}

.bill-form-group {
  margin-bottom: 14px;
}

.bill-form-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 18px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-glass);
}

/* Bill form grid: 2 columns */
.bill-form-editor .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.bill-form-editor .form-group-full {
  grid-column: span 2;
}

.bill-items-list-builder {
  margin-top: 20px;
  border-top: 1px solid var(--border-glass);
  padding-top: 18px;
}

/* Expanded item row wrapper */
.bill-item-row-expanded {
  margin-bottom: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 18px;
  background: var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.015);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bill-item-row-expanded:hover {
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.04);
}

.bill-item-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
}

.bill-item-row-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bill-item-row-delete-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 6px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.bill-item-row-delete-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  transform: scale(1.08);
}

/* Collapsible details layout */
.bill-item-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.05);
  border: 1.5px solid rgba(2, 132, 199, 0.12);
  color: var(--accent-cyan);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bill-item-details-toggle:hover {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
}

.bill-item-details-toggle.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.bill-item-primary-fields {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 12px;
}

.bill-item-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bill-item-field label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bill-item-secondary-fields {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
}

.bill-item-secondary-fields.expanded {
  display: block;
}

.bill-item-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .bill-item-primary-fields {
    grid-template-columns: 1fr;
  }
  .bill-item-secondary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Legacy simple row (not used anymore but keep compat) */
.bill-item-row-input {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

/* New inv-* preview classes (mirrors the print CSS) */
.inv-header {
  border: none;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #092244 0%, #0284c7 100%);
  color: #ffffff;
  overflow: hidden;
}
.inv-header-top {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}
.inv-logo-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.inv-logo-sub {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-top: 4px;
}
.inv-gstin-bar {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 8px 20px;
  text-align: center;
}
.inv-title-bar {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #0284c7;
  padding: 14px 0 4px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.inv-info-grid {
  display: flex;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 16px 0 16px;
}
.inv-info-left {
  flex: 1.3;
  padding: 12px 16px;
  border-right: 1.5px solid #e2e8f0;
  font-size: 9.5px;
  line-height: 1.65;
  background: #ffffff;
}
.inv-info-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  color: #0284c7;
}
.inv-info-right {
  flex: 1;
  padding: 8px 12px;
  background: #f8fafc;
}
.inv-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5px;
}
.inv-meta-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  color: var(--text-primary);
}
.inv-meta-table tr:last-child td {
  border-bottom: none;
}
.inv-meta-table td:first-child {
  font-weight: 700;
  color: #475569;
  width: 80px;
}
.inv-table-wrap {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 16px 0 16px;
}
.inv-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5px;
}
.inv-items-table thead tr {
  background: #092244;
  color: #ffffff;
}
.inv-items-table th {
  padding: 8px 6px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 8.5px;
  text-align: center;
  letter-spacing: 0.02em;
  border: none;
}
.inv-items-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
  line-height: 1.4;
  word-wrap: break-word;
  color: var(--text-primary);
}
.inv-items-table td:last-child {
  border-right: none;
}
.inv-items-table tbody tr:last-child td {
  border-bottom: none;
}
.inv-items-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}
.inv-bottom {
  display: flex;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 16px 0 16px;
}
.inv-bottom-left {
  flex: 1.7;
  padding: 12px 16px;
  border-right: 1.5px solid #e2e8f0;
  font-size: 9.5px;
  line-height: 1.6;
  background: #ffffff;
}
.inv-totals-box {
  flex: 1;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #f8fafc;
}
.inv-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 16px;
  font-size: 9.5px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}
.inv-total-row:last-child {
  border-bottom: none;
}
.inv-grand-row {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border-bottom: none !important;
}
.inv-sign-block {
  display: flex;
  justify-content: space-between;
  margin: 20px 16px 16px 16px;
}
.inv-sign-left {
  width: 45%;
  padding: 24px 12px 8px 12px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  text-align: center;
  font-size: 9.5px;
}
.inv-sign-right {
  width: 45%;
  padding: 10px 12px 8px 12px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  text-align: center;
  font-size: 9.5px;
}



.prescription-preview-image {
  max-width: 120px;
  max-height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
  cursor: zoom-in;
}

/* Footer Section */
footer {
  background: #092244;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 40px 0;
  margin-top: auto;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 24px;
  position: relative;
  font-weight: 700;
  color: #ffffff;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background: linear-gradient(135deg, #00d2ff 0%, #0074e4 100%);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: var(--transition-smooth);
  font-weight: 500;
  display: inline-block;
}

.footer-links a:hover {
  color: #00d2ff;
  transform: translateX(4px);
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.footer-contact-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 6px 18px rgba(0, 210, 255, 0.1);
}

.footer-contact-item .icon {
  color: #00d2ff;
  font-size: 20px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* Simple Responsive Design Rules */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding: 60px 0 80px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-trust-pill {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-float-card-1 { left: 10px; }
  .hero-float-card-2 { right: 10px; }
  .hero-float-card-3 { right: 10px; }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-card-featured {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .testimonial-strip {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .testimonial-divider {
    width: 100%;
    height: 1px;
  }
  .features-cta-row {
    flex-direction: column;
    text-align: center;
    padding: 32px 28px;
  }
  .features-cta-btns {
    justify-content: center;
  }
  .about-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bill-builder {
    grid-template-columns: 1fr;
  }
  .admin-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .admin-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    gap: 6px;
    border-radius: 14px;
    position: static;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .admin-sidebar::-webkit-scrollbar {
    display: none;
  }
  .admin-sidebar-header {
    display: none;
  }
  .admin-nav-item {
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
    justify-content: center;
    flex-grow: 1;
    margin: 0 2px;
  }
  .admin-nav-item.active::before {
    width: 100%;
    height: 3px;
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    border-radius: 3px 3px 0 0;
  }
  .admin-stats-row {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Trigger Mobile Nav layout starting at 1024px */
  .mobile-only {
    display: block !important;
  }
  .nav-links li.mobile-only {
    display: list-item !important;
  }
  .desktop-only-btn {
    display: none !important;
  }
  .desktop-only {
    display: none !important;
  }
  
  /* Prevent JavaScript overrides from displaying these buttons in header */
  #login-nav-btn,
  .btn-call.desktop-only-btn {
    display: none !important;
  }
  
  /* Convert WhatsApp button to a clean circular icon-only button on tablet/mobile */
  .nav-actions .whatsapp-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
  }
  
  /* Mobile menu active block styling */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1.5px solid rgba(15, 23, 42, 0.08);
    flex-direction: column;
    padding: 32px 24px;
    gap: 14px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    animation: menuSlideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  
  @keyframes menuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    border-radius: 12px;
    transition: all 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links li.active a {
    background: rgba(2, 132, 199, 0.06);
    color: #0284c7;
    padding-left: 20px;
  }

  .nav-links a::after {
    display: none; /* remove desktop underlines on mobile */
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 2px 0;
  }

  .menu-toggle.active {
    background: rgba(2, 132, 199, 0.06);
    border-color: rgba(2, 132, 199, 0.15);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }
}

@media (max-width: 768px) {
  /* Hero mobile */
  .hero-content h1 {
    font-size: 36px;
    margin-bottom: 16px;
  }
  .hero-desc {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .hero-float-card-2,
  .hero-float-card-3 {
    display: none;
  }
  .hero-float-card-1 {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    animation: none;
  }
  .hero-image-wrapper {
    height: 340px;
  }
  .hero-stats {
    gap: 16px;
  }
  .stat-number {
    font-size: 22px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .features-cta-row {
    padding: 28px 20px;
  }
  .features-cta-text h3 {
    font-size: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .services-menu {
    flex-direction: column;
  }
  .admin-stats-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .admin-pane-padded {
    padding: 16px;
  }
  .invoice-preview-card {
    padding: 24px 16px;
    border-radius: 14px;
  }
  .invoice-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .invoice-totals {
    width: 100%;
    margin-left: 0;
  }
  #invoice-print-area {
    width: 100%;
    overflow-x: auto;
  }
  .invoice-table th,
  .invoice-table td {
    padding: 8px 6px;
    font-size: 11px;
  }
  .bill-item-row-input {
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 6px;
  }
}

@media (max-width: 500px) {
  /* Wrap dynamic billing list rows onto two lines to prevent cramming inputs */
  .bill-item-row-input {
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.04);
  }
  .bill-item-row-input input:nth-child(1) {
    grid-column: span 3;
  }
}

/* --------------------------------- */
/* 8. PRINT CSS                      */
/* --------------------------------- */
@media print {
  body * {
    visibility: hidden;
  }
  #invoice-print-area, #invoice-print-area * {
    visibility: visible;
  }
  #invoice-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff !important;
    color: #000 !important;
    padding: 20px !important;
    border: none !important;
  }
  .invoice-preview-card {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
  }
  .invoice-header h3 {
    color: #000 !important;
  }
  .invoice-total-row.grand {
    color: #000 !important;
  }
  th {
    background: #eee !important;
    color: #000 !important;
    border-bottom: 1px solid #000 !important;
  }
  td {
    border-bottom: 1px solid #ddd !important;
    color: #000 !important;
  }
}
