/* WholesalePro ERP — Complete Stylesheet
 * Theme: Modern indigo + violet landing · BAZAN TRADERS-inspired app shell
 * Includes: landing (NEW), auth, app shell, sidebar, top menu, tables, forms, modals, toasts, print
 */

/* ============== RESET & BASE ============== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #4f46e5; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font-size: 14px; font-family: inherit; }
.hidden { display: none !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============== LANDING PAGE (NEW MODERN DESIGN) ============== */
.landing {
  min-height: 100vh;
  background: #ffffff;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Header */
.l-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s, background 0.2s;
}
.l-header.scrolled { box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06); }
.l-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.l-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.l-brand:hover { text-decoration: none; }
.l-brand-logo { display: flex; align-items: center; }
.l-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.l-brand-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 17px; font-weight: 700; color: #0f172a; letter-spacing: -0.01em;
}
.l-brand-name em {
  font-style: normal;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.l-brand-tag { font-size: 11px; color: #64748b; font-weight: 500; }

.l-nav { display: flex; align-items: center; gap: 28px; }
.l-nav > a { color: #475569; font-size: 14px; font-weight: 500; }
.l-nav > a:hover { color: #0f172a; text-decoration: none; }

.l-btn-ghost {
  background: transparent; border: 1px solid #cbd5e1;
  color: #0f172a; padding: 9px 18px;
  border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: all 0.15s;
}
.l-btn-ghost:hover { background: #f1f5f9; border-color: #94a3b8; }

.l-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff; border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: all 0.15s;
}
.l-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
  text-decoration: none; color: #fff;
}
.l-btn-primary:active { transform: translateY(0); }
.l-btn-lg { padding: 13px 24px; font-size: 15px; }
.l-btn-block { display: flex; width: 100%; justify-content: center; }

.l-btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 9px 18px;
  border-radius: 8px; font-weight: 600; font-size: 14px;
  transition: all 0.15s;
}
.l-btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); text-decoration: none; color: #fff; }
.l-btn-outline.l-btn-block { color: #4f46e5; border-color: #c7d2fe; background: #fff; }
.l-btn-outline.l-btn-block:hover { background: #eef2ff; border-color: #4f46e5; }

.l-mobile-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: transparent; border: none; padding: 8px;
}
.l-mobile-toggle span {
  width: 22px; height: 2px; background: #0f172a; border-radius: 2px;
  transition: all 0.2s;
}

/* HERO */
.l-hero {
  position: relative;
  padding: 100px 0 120px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: #fff;
  overflow: hidden;
}
.l-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.l-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.l-hero-blob-1 { width: 500px; height: 500px; background: #4f46e5; top: -150px; right: -100px; }
.l-hero-blob-2 { width: 400px; height: 400px; background: #7c3aed; bottom: -100px; left: -100px; opacity: 0.3; }
.l-hero-blob-3 { width: 300px; height: 300px; background: #06b6d4; top: 40%; left: 40%; opacity: 0.2; }
.l-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.l-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  align-items: center;
}
.l-hero-content { max-width: 600px; }
.l-hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.l-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.l-hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.l-hero-title-grad {
  background: linear-gradient(135deg, #c7d2fe 0%, #a78bfa 50%, #f0abfc 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.l-hero-sub {
  font-size: 17px; line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  margin-bottom: 32px;
}
.l-hero-sub strong { color: #fbbf24; font-weight: 600; }

.l-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.l-hero-cta .l-btn-primary { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: #1e1b4b; box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3); }
.l-hero-cta .l-btn-primary:hover { box-shadow: 0 8px 28px rgba(251, 191, 36, 0.45); }

.l-hero-stats {
  display: flex; align-items: center; gap: 32px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  width: fit-content;
}
.l-hero-stat { display: flex; flex-direction: column; }
.l-hero-stat strong { font-size: 28px; font-weight: 800; color: #fff; line-height: 1; font-family: 'Plus Jakarta Sans', sans-serif; }
.l-hero-stat span { font-size: 12px; color: rgba(255, 255, 255, 0.65); margin-top: 4px; }
.l-hero-divider { width: 1px; height: 36px; background: rgba(255, 255, 255, 0.15); }

/* HERO VISUAL */
.l-hero-visual { position: relative; min-height: 460px; }
.l-hero-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.l-hero-card-main { padding: 0; }
.l-hero-card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 18px 18px 0 0;
}
.l-hero-card-dots { display: flex; gap: 5px; }
.l-hero-card-dots span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.l-hero-card-dots span:nth-child(1) { background: #ef4444; }
.l-hero-card-dots span:nth-child(2) { background: #f59e0b; }
.l-hero-card-dots span:nth-child(3) { background: #22c55e; }
.l-hero-card-title { font-size: 12px; color: #64748b; font-weight: 500; }
.l-hero-card-body { padding: 22px; }
.l-hero-mini-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 18px;
}
.l-hero-mini-stat {
  background: #f8fafc; border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column;
}
.l-hero-mini-stat span { font-size: 11px; color: #64748b; font-weight: 500; }
.l-hero-mini-stat strong { font-size: 18px; color: #0f172a; font-weight: 700; margin-top: 2px; }
.l-hero-mini-stat em { font-size: 11px; font-style: normal; font-weight: 600; margin-top: 2px; }
.l-hero-mini-stat em.up { color: #16a34a; }
.l-hero-mini-stat em.down { color: #dc2626; }
.l-hero-chart { height: 100px; }
.l-hero-chart svg { width: 100%; height: 100%; }

.l-hero-card-float {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  animation: floaty 4s ease-in-out infinite;
}
.l-hero-card-float-1 { top: 20px; right: -20px; animation-delay: 0s; }
.l-hero-card-float-2 { bottom: 30px; left: -30px; animation-delay: 2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.l-hero-card-float strong { display: block; font-size: 13px; color: #0f172a; font-weight: 700; }
.l-hero-card-float span { font-size: 11px; color: #64748b; }
.l-float-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.l-float-icon-green { background: #dcfce7; color: #16a34a; }
.l-float-icon-blue { background: #dbeafe; color: #2563eb; }

/* TRUST BAR */
.l-trust { padding: 32px 0; background: #0f172a; color: #fff; }
.l-trust-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; }
.l-trust-item { display: flex; flex-direction: column; align-items: center; }
.l-trust-item strong { font-size: 22px; font-weight: 800; color: #fbbf24; font-family: 'Plus Jakarta Sans', sans-serif; }
.l-trust-item span { font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }

/* SECTION HEAD */
.l-section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.l-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f46e5;
  background: #eef2ff;
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.l-eyebrow-light { color: #c7d2fe; background: rgba(199, 210, 254, 0.1); }
.l-section-head h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800;
  color: #0f172a; letter-spacing: -0.025em;
  line-height: 1.15; margin-bottom: 14px;
}
.l-section-head p { font-size: 16px; color: #64748b; line-height: 1.6; }

/* FEATURES */
.l-features { padding: 100px 0; background: #f8fafc; }
.l-feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.l-feature-card {
  background: #fff; padding: 28px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  transition: all 0.25s;
}
.l-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border-color: #c7d2fe;
}
.l-feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.l-feature-icon-violet { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #6d28d9; }
.l-feature-icon-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.l-feature-icon-emerald { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; }
.l-feature-icon-amber { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.l-feature-icon-rose { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #be123c; }
.l-feature-icon-cyan { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0e7490; }
.l-feature-icon-indigo { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4338ca; }
.l-feature-icon-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #c2410c; }
.l-feature-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px; font-weight: 700; color: #0f172a;
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.l-feature-card p { font-size: 14px; color: #64748b; line-height: 1.6; }

/* PRICING */
.l-pricing { padding: 100px 0; background: #fff; }
.l-pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; max-width: 1100px; margin: 0 auto;
  align-items: stretch;
}
.l-pricing-card {
  background: #fff; padding: 36px 30px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  display: flex; flex-direction: column;
  transition: all 0.25s;
  position: relative;
}
.l-pricing-card:hover { box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08); transform: translateY(-2px); }
.l-pricing-card-featured {
  border-color: #4f46e5;
  background: linear-gradient(180deg, #fff 0%, #f5f3ff 100%);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
  transform: scale(1.03);
}
.l-pricing-card-featured:hover { transform: scale(1.03) translateY(-2px); }
.l-pricing-card-enterprise { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.l-pricing-badge {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff; padding: 5px 18px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.l-pricing-head { margin-bottom: 24px; }
.l-pricing-head h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; font-weight: 700; color: #0f172a;
  margin-bottom: 4px;
}
.l-pricing-head p { font-size: 13px; color: #64748b; }
.l-pricing-price {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}
.l-pricing-currency { font-size: 20px; font-weight: 600; color: #475569; }
.l-pricing-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 52px; font-weight: 800; color: #0f172a;
  letter-spacing: -0.025em; line-height: 1;
}
.l-pricing-amount-small { font-size: 24px; font-weight: 700; color: #0f172a; }
.l-pricing-period { font-size: 16px; color: #64748b; font-weight: 500; }
.l-pricing-features { list-style: none; margin-bottom: 28px; flex: 1; }
.l-pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; font-size: 14px; color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.l-pricing-features li:last-child { border-bottom: none; }
.l-pricing-features svg { color: #16a34a; flex-shrink: 0; }
.l-pricing-card .l-btn-primary { margin-top: auto; }
.l-pricing-card-enterprise .l-btn-outline { margin-top: auto; }

/* PAYMENT METHODS */
.l-payment { padding: 100px 0; background: #f8fafc; }
.l-payment-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; max-width: 800px; margin: 0 auto 40px;
}
.l-payment-card {
  background: #fff; padding: 32px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}
.l-payment-card:hover { box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06); }
.l-payment-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px; font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 18px;
  color: #fff;
}
.l-payment-easypaisa { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.l-payment-zindagi { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.l-payment-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 30px; font-weight: 800; color: #0f172a;
  letter-spacing: 0.02em; margin: 8px 0;
}
.l-payment-label { font-size: 13px; color: #64748b; }
.l-payment-copy {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; padding: 6px 12px;
  background: #f1f5f9; color: #475569;
  border-radius: 6px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; border: none;
}
.l-payment-copy:hover { background: #e2e8f0; color: #0f172a; }
.l-payment-note {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 800px; margin: 0 auto;
  padding: 18px 22px;
  background: #fef3c7; border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  color: #92400e; font-size: 14px; line-height: 1.6;
}
.l-payment-note svg { color: #f59e0b; flex-shrink: 0; margin-top: 1px; }
.l-payment-note strong { color: #78350f; }

/* CONTACT */
.l-contact {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.l-contact::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: #4f46e5; filter: blur(100px); opacity: 0.3;
}
.l-contact-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px;
  align-items: center;
}
.l-contact-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 3vw, 36px); font-weight: 800;
  margin: 14px 0 16px; line-height: 1.2;
  letter-spacing: -0.02em;
}
.l-contact-content p {
  font-size: 16px; color: rgba(255, 255, 255, 0.78);
  margin-bottom: 28px; line-height: 1.6;
}
.l-contact-content .l-btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: #1e1b4b;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}
.l-contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}
.l-contact-card-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.l-contact-card-row:last-child { border-bottom: none; }
.l-contact-card-icon {
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #c7d2fe; flex-shrink: 0;
}
.l-contact-card-row span { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.l-contact-card-row strong { display: block; font-size: 15px; color: #fff; margin-top: 2px; }

/* FOOTER */
.l-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 60px;
}
.l-footer-inner {
  display: grid; grid-template-columns: 1.5fr 2fr;
  gap: 60px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.l-footer-brand .l-brand-name { color: #fff; }
.l-footer-brand .l-brand-tag { color: rgba(255, 255, 255, 0.5); }
.l-footer-desc { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.6); line-height: 1.6; max-width: 360px; }
.l-footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.l-footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.l-footer-col a { display: block; color: rgba(255, 255, 255, 0.6); font-size: 14px; padding: 4px 0; }
.l-footer-col a:hover { color: #c7d2fe; text-decoration: none; }
.l-footer-bottom { padding: 20px 0; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.l-footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.l-footer-bottom a { color: #fbbf24; }

/* ============== RESPONSIVE: LANDING ============== */
@media (max-width: 900px) {
  .l-nav > a { display: none; }
  .l-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .l-hero-visual { min-height: 380px; }
  .l-hero { padding: 60px 0 80px; }
  .l-hero-stats { width: 100%; flex-wrap: wrap; gap: 16px; }
  .l-hero-divider { display: none; }
  .l-contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .l-footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .l-footer-links { grid-template-columns: repeat(3, 1fr); }
  .l-section-head { margin-bottom: 40px; }
  .l-features, .l-pricing, .l-payment { padding: 60px 0; }
}
@media (max-width: 600px) {
  .l-header-inner { padding: 12px 0; }
  .l-brand-tag { display: none; }
  .l-btn-ghost { display: none; }
  .l-trust-inner { gap: 18px; }
  .l-trust-item strong { font-size: 18px; }
  .l-hero-card-float-1 { right: 0; top: 0; }
  .l-hero-card-float-2 { left: 0; bottom: 0; }
  .l-pricing-card-featured { transform: scale(1); }
  .l-pricing-card-featured:hover { transform: translateY(-2px); }
  .l-footer-links { grid-template-columns: 1fr; }
  .l-payment-note { flex-direction: column; }
}

/* ============== LEGACY LANDING CLASSES (kept for compat) ============== */
.landing { background: #fff; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.15s;
  background: #fff;
  color: #1f2937;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #1e3a8a; color: #fff; }
.btn-primary:hover { background: #1e40af; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-secondary { background: #e5e7eb; color: #1f2937; }
.btn-secondary:hover { background: #d1d5db; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* legacy landing classes replaced — see NEW MODERN LANDING above */

/* ============== AUTH SCREEN ============== */
.auth-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  background: #fff; border-radius: 16px;
  max-width: 520px; width: 100%;
  padding: 40px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-height: 95vh; overflow-y: auto;
}
.auth-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none;
  font-size: 28px; color: #6b7280;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.auth-close:hover { background: #f3f4f6; }
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-brand .brand-logo { margin: 0 auto 12px; }
.auth-brand h2 { font-size: 22px; color: #1e3a8a; }
.auth-brand h2 span { color: #fbbf24; }
.auth-form h3 { font-size: 22px; font-weight: 700; color: #1f2937; margin-bottom: 6px; }
.auth-sub { color: #6b7280; margin-bottom: 20px; font-size: 14px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 5px; color: #374151; font-size: 13px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 14px; background: #fff;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: #1e3a8a; box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}
.form-group small { display: block; color: #6b7280; font-size: 12px; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row > div { margin-bottom: 0; }

.password-wrap { position: relative; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; padding: 4px 8px; font-size: 16px;
}
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4b5563; margin: 12px 0; }
.checkbox-label input { width: auto; }
.form-row.form-row-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.payment-info-box {
  background: #fef3c7; border-left: 4px solid #f59e0b;
  padding: 12px 16px; border-radius: 6px;
  margin: 12px 0; font-size: 13px; color: #92400e;
}
.proof-preview { margin-top: 8px; }
.proof-preview img { max-width: 100%; max-height: 200px; border-radius: 6px; border: 1px solid #e5e7eb; }
.proof-preview .file-name { padding: 6px 10px; background: #f3f4f6; border-radius: 4px; font-size: 13px; }

.auth-switch { text-align: center; margin-top: 20px; color: #6b7280; font-size: 14px; }

.pending-icon { font-size: 60px; text-align: center; margin: 20px 0; }
.pending-detail { background: #f9fafb; padding: 16px; border-radius: 8px; margin: 16px 0; }
.pending-detail p { margin: 4px 0; font-size: 14px; }

/* ============== APP SHELL ============== */
.app-shell { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.top-menu {
  height: 56px; background: #1e3a8a; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 100;
}
.top-menu-left, .top-menu-right { display: flex; align-items: center; gap: 8px; }
.top-menu-center { flex: 1; text-align: center; }
.sidebar-toggle {
  background: transparent; border: none; color: #fff;
  font-size: 22px; padding: 6px 10px; border-radius: 4px;
}
.sidebar-toggle:hover { background: rgba(255,255,255,0.1); }
.brand-mini { display: flex; align-items: center; gap: 8px; }
.brand-logo-sm {
  width: 32px; height: 32px;
  background: #fbbf24; color: #1e3a8a;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.brand-mini span { font-size: 14px; font-weight: 600; }
.business-name { font-size: 16px; font-weight: 600; opacity: 0.95; }
.top-menu-btn {
  background: transparent; border: none; color: #fff;
  font-size: 18px; padding: 8px 10px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.top-menu-btn:hover { background: rgba(255,255,255,0.1); }
.top-menu-btn.logout:hover { background: #dc2626; }

.app-body { display: flex; flex: 1; overflow: hidden; }

/* Sidebar */
.sidebar {
  width: 240px; background: #fff;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  flex-shrink: 0;
  transition: margin-left 0.2s;
}
.sidebar.collapsed { margin-left: -240px; }
.sidebar-nav { padding: 12px 0; }
.sidebar-section { margin-bottom: 12px; }
.sidebar-section h4 {
  padding: 8px 20px 4px;
  font-size: 11px; font-weight: 700;
  color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  color: #374151; font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.sidebar-link:hover { background: #f3f4f6; text-decoration: none; }
.sidebar-link.active { background: #eff6ff; color: #1e3a8a; border-left-color: #1e3a8a; font-weight: 600; }
.sidebar-link span { font-size: 16px; width: 20px; text-align: center; }

/* Main content */
.main-content { flex: 1; overflow-y: auto; padding: 0; }
.content-header {
  background: #fff; padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 10;
}
.content-header h1 { font-size: 20px; font-weight: 700; color: #1f2937; }
.page-actions { display: flex; gap: 8px; }
.page-content { padding: 24px; }

/* ============== TABLES ============== */
.table-wrap { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th {
  background: #f9fafb; padding: 10px 12px; text-align: left;
  font-weight: 600; color: #374151;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}
.data-table tbody td { padding: 9px 12px; border-bottom: 1px solid #f3f4f6; color: #1f2937; }
.data-table tbody tr:hover { background: #f9fafb; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .text-right { text-align: right; }
.data-table .text-center { text-align: center; }
.data-table .actions { display: flex; gap: 4px; }
.data-table .actions button {
  background: transparent; border: 1px solid #e5e7eb;
  padding: 4px 8px; border-radius: 4px; font-size: 12px;
}
.data-table .actions button:hover { background: #f3f4f6; }
.data-table .actions button.edit:hover { background: #dbeafe; border-color: #3b82f6; }
.data-table .actions button.delete:hover { background: #fee2e2; border-color: #ef4444; }
.data-table .actions button.print:hover { background: #dcfce7; border-color: #22c55e; }

/* ============== CARDS / STATS ============== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff; padding: 18px 20px;
  border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-left: 4px solid #1e3a8a;
}
.stat-card .stat-label { font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; color: #1f2937; margin-top: 4px; }
.stat-card .stat-sub { font-size: 12px; color: #6b7280; margin-top: 4px; }
.stat-card.success { border-left-color: #16a34a; }
.stat-card.success .stat-value { color: #15803d; }
.stat-card.warning { border-left-color: #f59e0b; }
.stat-card.warning .stat-value { color: #b45309; }
.stat-card.danger { border-left-color: #dc2626; }
.stat-card.danger .stat-value { color: #b91c1c; }

.card {
  background: #fff; border-radius: 8px; padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 16px;
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: #1f2937; }
.card-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ============== BADGES ============== */
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: #f3f4f6; color: #4b5563; }

/* ============== MODAL ============== */
.modal-container {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal {
  position: relative; background: #fff;
  border-radius: 8px; max-width: 700px; width: 90%;
  max-height: 90vh; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: flex; flex-direction: column;
}
.modal-header {
  padding: 14px 20px; border-bottom: 1px solid #e5e7eb;
  display: flex; justify-content: space-between; align-items: center;
  background: #1e3a8a; color: #fff;
}
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close {
  background: transparent; border: none; color: #fff;
  font-size: 24px; padding: 0; line-height: 1;
}
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 12px 20px; border-top: 1px solid #e5e7eb;
  display: flex; justify-content: flex-end; gap: 8px;
  background: #f9fafb;
}

/* ============== TOAST ============== */
.toast-container {
  position: fixed; top: 20px; right: 20px;
  z-index: 2000; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: #fff; padding: 12px 18px;
  border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-left: 4px solid #1e3a8a; min-width: 280px; max-width: 400px;
  display: flex; align-items: center; gap: 10px;
  animation: slideIn 0.3s ease-out;
}
.toast.success { border-left-color: #16a34a; }
.toast.error { border-left-color: #dc2626; }
.toast.warning { border-left-color: #f59e0b; }
.toast.info { border-left-color: #1e3a8a; }
.toast-icon { font-size: 18px; }
.toast-msg { flex: 1; font-size: 14px; }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============== FORM LAYOUTS ============== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5e7eb; }

/* Line items editor */
.line-items { border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.line-items-header {
  background: #f9fafb; padding: 8px 12px;
  display: grid; grid-template-columns: 30px 2fr 80px 100px 100px 30px; gap: 8px;
  font-weight: 600; font-size: 12px; color: #6b7280; text-transform: uppercase;
}
.line-item-row {
  padding: 8px 12px; display: grid;
  grid-template-columns: 30px 2fr 80px 100px 100px 30px; gap: 8px;
  border-top: 1px solid #f3f4f6; align-items: center;
}
.line-item-row input, .line-item-row select {
  padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 13px;
}
.line-item-row .line-total { text-align: right; font-weight: 600; }
.line-item-row .remove-btn { background: transparent; border: none; color: #dc2626; font-size: 18px; cursor: pointer; }
.totals-section { display: flex; justify-content: flex-end; }
.totals-table { min-width: 280px; }
.totals-table .total-row { display: flex; justify-content: space-between; padding: 6px 12px; font-size: 14px; }
.totals-table .total-row.grand { font-size: 18px; font-weight: 700; border-top: 2px solid #1e3a8a; margin-top: 6px; padding-top: 10px; }

/* ============== FILTERS BAR ============== */
.filters-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  background: #fff; padding: 14px 16px;
  border-radius: 8px; margin-bottom: 16px;
  align-items: end;
}
.filters-bar .form-group { margin: 0; min-width: 140px; flex: 1; }
.filters-bar label { font-size: 12px; color: #6b7280; }
.filters-bar input, .filters-bar select { padding: 6px 10px; font-size: 13px; }
.filters-bar .filter-actions { display: flex; gap: 6px; }

/* ============== EMPTY STATE ============== */
.empty-state { text-align: center; padding: 50px 20px; color: #6b7280; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 14px; }
.empty-state h3 { font-size: 16px; color: #374151; margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

/* ============== MISC ============== */
.page-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; margin-bottom: 20px; }
.page-tab { padding: 10px 18px; cursor: pointer; font-weight: 500; color: #6b7280; border-bottom: 2px solid transparent; }
.page-tab.active { color: #1e3a8a; border-bottom-color: #1e3a8a; }
.page-tab:hover { color: #1e3a8a; }

.text-muted { color: #6b7280; }
.text-success { color: #16a34a; }
.text-danger { color: #dc2626; }
.text-warning { color: #d97706; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-bold { font-weight: 600; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; }
.w-full { width: 100%; }

/* ============== PRINT ============== */
.print-container { display: none; }
@media print {
  body * { visibility: hidden; }
  #print-container, #print-container * { visibility: visible; }
  #print-container {
    display: block !important;
    position: absolute; left: 0; top: 0; width: 100%;
    background: #fff !important; color: #000 !important;
    padding: 20px;
  }
  .app-shell, .auth-screen, .landing, .modal-container, .toast-container { display: none !important; }
  @page { margin: 1cm; }
}

/* ============== INVOICE / PRINT DOCUMENT ============== */
.invoice-doc { max-width: 800px; margin: 0 auto; padding: 30px; background: #fff; color: #1f2937; }
.invoice-doc .doc-header { display: flex; justify-content: space-between; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px solid #1e3a8a; }
.invoice-doc .doc-brand { font-size: 26px; font-weight: 800; color: #1e3a8a; }
.invoice-doc .doc-title { font-size: 20px; font-weight: 700; text-align: right; }
.invoice-doc .doc-meta { font-size: 13px; color: #6b7280; margin-top: 4px; }
.invoice-doc .doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.invoice-doc .doc-party h4 { font-size: 11px; text-transform: uppercase; color: #9ca3af; margin-bottom: 6px; }
.invoice-doc .doc-party p { font-size: 14px; margin: 2px 0; }
.invoice-doc table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.invoice-doc thead th { background: #1e3a8a; color: #fff; padding: 8px 10px; font-size: 12px; text-align: left; }
.invoice-doc tbody td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; font-size: 13px; }
.invoice-doc tbody tfoot td { padding: 8px 10px; border-top: 2px solid #1e3a8a; font-weight: 600; }
.invoice-doc .doc-totals { margin-left: auto; width: 280px; margin-top: 16px; }
.invoice-doc .doc-totals .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.invoice-doc .doc-totals .grand { font-size: 18px; font-weight: 700; border-top: 2px solid #1e3a8a; padding-top: 8px; margin-top: 6px; }
.invoice-doc .doc-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid #e5e7eb; text-align: center; font-size: 12px; color: #6b7280; }
.invoice-doc .doc-signature { margin-top: 60px; display: flex; justify-content: space-between; }
.invoice-doc .doc-signature .sig { width: 200px; border-top: 1px solid #1f2937; padding-top: 6px; font-size: 12px; color: #6b7280; }

/* ============== REPORTS ============== */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.report-card { background: #fff; padding: 14px 16px; border-radius: 6px; border: 1px solid #e5e7eb; cursor: pointer; transition: all 0.15s; }
.report-card:hover { border-color: #1e3a8a; box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1); transform: translateY(-1px); }
.report-card h4 { font-size: 14px; font-weight: 600; color: #1e3a8a; margin-bottom: 4px; }
.report-card p { font-size: 12px; color: #6b7280; }
.report-card .report-cat { display: inline-block; padding: 2px 8px; background: #eff6ff; color: #1e3a8a; border-radius: 10px; font-size: 10px; font-weight: 600; margin-top: 6px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .sidebar { position: absolute; left: 0; top: 56px; bottom: 0; z-index: 50; box-shadow: 2px 0 8px rgba(0,0,0,0.1); }
  .sidebar.collapsed { margin-left: -240px; }
  .form-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .pricing-card.featured { transform: none; }
  .top-menu-center { display: none; }
  .filters-bar { flex-direction: column; }
  .line-items-header, .line-item-row { grid-template-columns: 1fr 60px 80px 80px 30px; }
  .line-items-header > *:nth-child(2), .line-item-row > *:nth-child(2) { display: none; }
}
