/* ============================================================
   EVETS — Design System
   ============================================================ */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #dbeafe;
  --accent: #06b6d4;
  --violet: #7c3aed;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --orange: #ea580c;
  --purple: #9333ea;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .30);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.container.wide { width: min(1320px, 95%); }
section { padding: 72px 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }

/* gradient text + buttons */
.grad-text {
  background: linear-gradient(100deg, var(--brand) 0%, var(--accent) 60%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease; line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(100deg, var(--brand), var(--accent)); color: #fff; box-shadow: 0 8px 20px -8px rgba(37,99,235,.55); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px -8px rgba(37,99,235,.65); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #1e293b; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-light); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 8px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { color: #fff; }
.btn-block { width: 100%; }

/* badges */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem;
  font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }
.badge-grey { background: #e2e8f0; color: #475569; }
.badge-dark { background: #e2e8f0; color: #0f172a; }

/* cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }

/* ============================================================
   Page Preloader & Logo Loading Animation
   ============================================================ */
.page-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, #152238 0%, #0b1220 60%, #050811 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  user-select: none;
}

.page-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03) translateY(-6px);
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 20px;
  animation: preloaderContentIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.preloader-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

/* Ambient glow orb behind logo */
.preloader-glow-orb {
  position: absolute;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45) 0%, rgba(6, 182, 212, 0.25) 50%, transparent 75%);
  border-radius: 50%;
  filter: blur(24px);
  z-index: 1;
  animation: preloaderGlowBreathe 2.4s ease-in-out infinite alternate;
}

/* Concentric expanding pulse rings */
.preloader-pulse-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 28px;
  z-index: 2;
  pointer-events: none;
  animation: preloaderPulseRing 2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

.preloader-pulse-ring.ring-2 {
  animation-delay: 0.9s;
}

/* Rounded white container for EVETS logo */
.preloader-logo-frame {
  position: relative;
  z-index: 3;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 28px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5),
              0 0 24px -2px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: preloaderLogoFloat 2.6s ease-in-out infinite alternate,
             preloaderLogoPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.preloader-logo {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

/* Light shimmer sweep across the logo */
.preloader-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: preloaderShineSweep 2.2s infinite ease-in-out;
  pointer-events: none;
}

/* Sleek Progress Bar Track */
.preloader-bar-wrap {
  width: 160px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.preloader-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #7c3aed, #2563eb);
  background-size: 200% 100%;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.7);
  animation: preloaderBarCharge 1.4s ease-in-out infinite,
             preloaderGradientFlow 2s linear infinite;
}

/* Tagline Badge */
.preloader-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(14, 165, 233, 0.1);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.preloader-dot {
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: preloaderDotBlink 1.4s ease-in-out infinite;
}

/* Preloader Keyframe Animations */
@keyframes preloaderContentIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes preloaderLogoPop {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes preloaderLogoFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-6px) scale(1.02);
  }
}

@keyframes preloaderGlowBreathe {
  0% {
    opacity: 0.45;
    transform: scale(0.9);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.2);
  }
}

@keyframes preloaderPulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
    border-color: rgba(56, 189, 248, 0.5);
  }
  70% {
    opacity: 0.2;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
    border-color: rgba(37, 99, 235, 0);
  }
}

@keyframes preloaderShineSweep {
  0% {
    transform: translateX(-160%) skewX(-25deg);
  }
  60%, 100% {
    transform: translateX(260%) skewX(-25deg);
  }
}

@keyframes preloaderBarCharge {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes preloaderGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes preloaderDotBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

/* ============================================================
   Public header / nav
   ============================================================ */
.topbar {
  background: var(--ink); color: #cbd5e1; font-size: .8rem; padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #cbd5e1; margin: 0 6px; }
.topbar a:hover { color: #fff; }
.navbar {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .brand-logo,
.brand-logo {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  animation: brandLogoIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}
.brand:hover .brand-logo,
.side-brand:hover .brand-logo {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 6px 16px rgba(37, 99, 235, 0.24));
}
@keyframes brandLogoIn {
  0% {
    opacity: 0;
    transform: translateY(-4px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.brand-invert .brand-logo {
  background: #fff;
  border-radius: 10px;
  padding: 6px 12px;
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .6);
}
.navbar .brand-logo {
  height: 78px;
}
.auth-logo {
  height: 96px;
  width: auto;
  margin: 0 auto;
}
.invoice-logo {
  height: 48px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
.admin-side .side-brand .brand-logo {
  height: 56px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
}
.brand .logo {
  width: 42px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand .logo svg {
  width: 42px;
  height: auto;
}
.brand-red {
  color: var(--red) !important;
}
.brand-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px !important;
  text-align: center;
  padding: 4px 0;
}
.brand-stacked .logo {
  width: 44px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.brand-stacked .logo svg {
  width: 44px;
  height: auto;
}
.brand-stacked .brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.brand-stacked .brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.admin-side .brand-stacked .brand-name {
  color: #fff;
}
.brand-stacked .brand-tagline {
  font-size: 0.52rem !important;
  font-weight: 800 !important;
  color: var(--muted);
  letter-spacing: 0.08em !important;
  margin-top: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-stacked .brand-tagline::before,
.brand-stacked .brand-tagline::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.5px;
  background: var(--red);
}
.brand small { display: block; font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: .92rem; padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover { background: var(--brand-light); color: var(--brand-dark); }
.nav-links a.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.nav-cta { display: flex; gap: 10px; margin-left: 8px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta {
    display: none; flex-direction: column; width: 100%; align-items: stretch;
  }
  .nav-inner { flex-wrap: wrap; }
  .nav-inner.open .nav-links, .nav-inner.open .nav-cta { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden; padding: 90px 0 110px; color: #fff;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(6,182,212,.35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(124,58,237,.35), transparent 60%),
    linear-gradient(135deg, #0b1220 0%, #0f172a 55%, #111c33 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #7dd3fc;
  border: 1px solid rgba(125,211,252,.35); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.hero h1 .grad-text { -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.15rem; color: #cbd5e1; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-secondary { color: #7dd3fc; font-weight: 600; font-size: .95rem; }
.hero-secondary:hover { color: #bae6fd; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; }
.hero-stat b { display: block; font-size: 1.8rem; font-weight: 800; }
.hero-stat span { font-size: .84rem; color: #94a3b8; }

/* hero visual */
.hero-visual { position: relative; }
.hero-window {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 20px; backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-window-top { display: flex; gap: 6px; margin-bottom: 16px; }
.hero-window-top i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: block; }
.hero-window-top i:nth-child(1) { background: #f87171; } .hero-window-top i:nth-child(2) { background: #fbbf24; } .hero-window-top i:nth-child(3) { background: #34d399; }
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  padding: 10px 8px; border-radius: 10px; text-align: center; font-size: .78rem; font-weight: 600; color: #e2e8f0;
}
.chip b { display: block; font-size: 1rem; margin-bottom: 2px; }
.chip.blue { background: rgba(37,99,235,.25); border-color: rgba(59,130,246,.4); }
.chip.cyan { background: rgba(6,182,212,.22); border-color: rgba(34,211,238,.4); }
.chip.violet { background: rgba(124,58,237,.25); border-color: rgba(167,139,250,.4); }
.hero-float {
  position: absolute; bottom: -28px; right: -14px; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-lg); font-size: .85rem; font-weight: 600;
  display: flex; gap: 12px; align-items: center;
}
.hero-float .dot { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #dcfce7; color: var(--green); font-size: 1.2rem; }
.hero-float small { display: block; color: var(--muted); font-weight: 500; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
}

/* ============================================================
   Sections
   ============================================================ */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px;
}

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) { .g4, .g5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c7d7fe; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); font-size: 1.35rem; margin-bottom: 16px; font-weight: 700;
}
.feature-card h3 { font-size: 1.08rem; font-weight: 700; }
.feature-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* product cards */
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s ease; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-top { padding: 26px 24px 0; }
.product-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.product-card h3 { font-size: 1.15rem; }
.product-card .tag { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.product-card p.desc { color: var(--muted); font-size: .92rem; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 24px; }
.product-meta .chip-mini { font-size: .72rem; background: #f1f5f9; border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; color: var(--muted); }
.product-foot { margin-top: auto; padding: 16px 24px 22px; display: flex; gap: 10px; }

/* industry / service tiles */
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; font-weight: 600; transition: .2s; font-size: .98rem;
}
.tile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--brand); }
.tile .ico { font-size: 1.6rem; margin-bottom: 10px; display: block; }

/* logo wall */
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }
.logo-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; transition: .2s;
}
.logo-tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.logo-tile .lg {
  width: 58px; height: 58px; border-radius: 14px; margin: 0 auto 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; color: #fff;
}
.logo-tile .cn { font-weight: 700; }
.logo-tile .ci { font-size: .78rem; color: var(--muted); }

/* testimonial */
.testimonial {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.testimonial .stars { color: #f59e0b; letter-spacing: 2px; }
.testimonial blockquote { margin: 0; color: #334155; font-size: .98rem; font-style: italic; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; font-weight: 700;
}
.testimonial .who b { display: block; font-size: .92rem; }
.testimonial .who span { font-size: .8rem; color: var(--muted); }

/* CTA band */
.cta-band {
  border-radius: 22px; color: #fff; padding: 60px 44px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(6,182,212,.4), transparent 60%),
    radial-gradient(600px 300px at 85% 100%, rgba(124,58,237,.4), transparent 60%),
    linear-gradient(135deg, #0b1220, #12203f);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.cta-band p { color: #cbd5e1; max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* compare table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f8fafc; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
tr:hover td { background: #f8fafc; }

/* ============================================================
   Footer
   ============================================================ */
footer { background: #0b1220; color: #94a3b8; padding: 64px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
footer a { color: #94a3b8; display: block; padding: 5px 0; font-size: .9rem; }
footer a:hover { color: #7dd3fc; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }
.footer-tag { letter-spacing: .16em; font-weight: 600; color: #7dd3fc; font-size: .78rem; }

/* ============================================================
   Forms
   ============================================================ */
.form-card { max-width: 640px; margin: 0 auto; padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
.form-group .req { color: var(--red); }
.form-group small.hint { color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=url], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; background: #fff; color: var(--ink); transition: .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
textarea { resize: vertical; min-height: 100px; }
.check-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.check-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .88rem; cursor: pointer; background: #fff; }
.check-pill input { accent-color: var(--brand); }
.check-pill:has(input:checked) { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.form-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 6px; }
.form-sub { text-align: center; color: var(--muted); margin-bottom: 26px; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: .92rem; margin-bottom: 18px; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ============================================================
   Admin layout
   ============================================================ */
.admin-body { display: flex; min-height: 100vh; background: #f1f5f9; }
.admin-side {
  width: 248px; background: #0f172a; color: #94a3b8; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; flex-shrink: 0;
}
.admin-side .side-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 18px; border-bottom: 1px solid #1e293b; }
.admin-side .side-brand .logo {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-side .side-brand .logo svg {
  width: 36px;
  height: auto;
}
.admin-side .side-brand small { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 1px; }
.admin-side .side-user { padding: 14px 18px; border-bottom: 1px solid #1e293b; font-size: .82rem; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: #94a3b8;
  font-size: .88rem; font-weight: 500; border-left: 3px solid transparent;
}
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.side-nav a.active { color: #7dd3fc; background: rgba(125,211,252,.08); border-left-color: var(--accent); }
.side-nav .group { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #475569; padding: 18px 18px 6px; font-weight: 700; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  display: flex; align-items: center; gap: 16px; padding: 14px 26px; background: #fff;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
}
.admin-topbar h1 { font-size: 1.2rem; font-weight: 800; margin: 0; }
.admin-topbar .spacer { margin-left: auto; }
.admin-content { padding: 26px; }
.bell { position: relative; font-size: 1.15rem; color: var(--muted); }
.bell .count {
  position: absolute; top: -6px; right: -8px; background: var(--red); color: #fff; font-size: .64rem;
  border-radius: 999px; padding: 1px 6px; font-weight: 700;
}
.avatar-chip { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 600; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; font-weight: 700; font-size: .85rem;
}

@media (max-width: 900px) {
  .admin-side { display: none; }
}

/* stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.stat .label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat .value { font-size: 1.5rem; font-weight: 800; margin-top: 4px; }
.stat .delta { font-size: .78rem; color: var(--green); }
.stat .icon { float: right; font-size: 1.3rem; opacity: .85; }

/* charts */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .84rem; }
.bar-row .lbl { width: 130px; flex-shrink: 0; color: var(--muted); }
.bar-track { flex: 1; height: 12px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.bar-row .val { width: 90px; text-align: right; font-weight: 600; }

/* page header */
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.45rem; font-weight: 800; margin: 0; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.page-head p.sub { color: var(--muted); margin: 0; font-size: .92rem; width: 100%; }

/* list rows */
.row-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.row-item:hover { background: #f8fafc; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item .t { font-weight: 600; font-size: .94rem; }
.row-item .s { font-size: .8rem; color: var(--muted); }

/* filter bar */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.filters input, .filters select { max-width: 220px; }

/* document sheet design - identical preview and print output */
.invoice-sheet, .quote-sheet {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 32px 36px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.15);
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.5;
}
.doc-top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #0f172a; padding-bottom: 16px; margin-bottom: 22px; }
.brand-block { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-block .logo, .invoice-sheet img.logo, .quote-sheet img.logo, img.logo { height: 52px !important; width: auto !important; max-width: 220px !important; object-fit: contain !important; margin-bottom: 4px !important; display: block !important; }
.brand-block .bname { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; color: #0f172a; line-height: 1.1; }
.brand-block .btag { font-size: 10px; letter-spacing: 0.16em; font-weight: 700; color: #2563eb; text-transform: uppercase; margin-top: 3px; }
.brand-block .baddr { font-size: 10px; color: #6b7280; margin-top: 3px; line-height: 1.45; }
.doc-title { text-align: right; }
.doc-title .t { font-size: 28px; font-weight: 900; letter-spacing: 0.14em; color: #2563eb; }
.doc-title .meta { font-size: 11px; color: #374151; margin-top: 8px; line-height: 1.7; }
.doc-title .meta b { color: #0f172a; }
.badge-print { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; background: #dbeafe; color: #1d4ed8; margin-top: 4px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 22px 0; }
.meta-grid .lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: #9ca3af; font-weight: 700; margin-bottom: 6px; }
.meta-grid .val { font-size: 13px; color: #111827; line-height: 1.6; }
.meta-grid .val b { font-size: 15px; }
table.items { width: 100%; border-collapse: collapse; margin-top: 6px; }
table.items th { background: #0f172a; color: #fff; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; padding: 10px 12px; text-align: left; }
table.items th.r, table.items td.r { text-align: right; }
table.items td { font-size: 12px; padding: 11px 12px; border-bottom: 1px solid #e5e7eb; }
table.items tbody tr:nth-child(even) { background: #f9fafb; }
table.items td.desc { color: #111827; font-weight: 500; }
.totals { display: flex; justify-content: flex-end; margin-top: 20px; }
.totals .box { width: 100%; max-width: 320px; border: 1.5px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.totals .row { display: flex; justify-content: space-between; padding: 8px 14px; font-size: 12px; border-bottom: 1px solid #f1f5f9; }
.totals .row span:last-child { font-weight: 600; color: #111827; }
.totals .row.grand { background: #0f172a; color: #fff; font-size: 15px; font-weight: 800; padding: 11px 14px; border-bottom: 0; }
.totals .row.grand span:last-child { color: #fff; }
.totals .row.balance { background: #fee2e2; color: #b91c1c; font-weight: 800; border-bottom: 0; }
.totals .row.balance span:last-child { color: #b91c1c; }
.notes { margin-top: 22px; font-size: 11px; color: #6b7280; border-top: 1px solid #e5e7eb; padding-top: 14px; line-height: 1.6; }
.doc-footer { margin-top: 30px; display: flex; justify-content: space-between; align-items: flex-end; border-top: 2px solid #0f172a; padding-top: 12px; font-size: 10px; color: #6b7280; }
.doc-footer .thanks { font-size: 13px; font-weight: 700; color: #0f172a; }
.contact-line { font-size: 10px; color: #6b7280; line-height: 1.6; text-align: right; }
.classic-company .classic-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
  display: block;
}
.classic-company .comp-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}
.classic-company .comp-addr {
  font-size: 0.83rem;
  color: #475569;
  line-height: 1.45;
}

.classic-meta-block { text-align: right; }
.classic-meta-block .doc-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 12px;
}
.classic-meta-table {
  border-collapse: collapse;
  margin-left: auto;
  border: 1px solid #94a3b8;
  font-size: 0.82rem;
}
.classic-meta-table th {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 14px;
  border: 1px solid #94a3b8;
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}
.classic-meta-table td {
  padding: 5px 14px;
  border: 1px solid #94a3b8;
  text-align: center;
  font-weight: 600;
  color: #1e293b;
  background: #fff;
}
.classic-prep {
  font-style: italic;
  font-size: 0.82rem;
  color: #475569;
  margin-top: 8px;
}

.classic-section { margin-bottom: 18px; }
.classic-banner {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border: 1px solid #94a3b8;
  border-bottom: none;
}
.classic-box {
  border: 1px solid #94a3b8;
  padding: 12px 14px;
  background: #fff;
  font-size: 0.88rem;
  line-height: 1.5;
}

.classic-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  font-size: 0.88rem;
  border: 1px solid #94a3b8;
}
.classic-table th {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  padding: 8px 12px;
  border: 1px solid #94a3b8;
  text-align: left;
}
.classic-table th.th-qty, .classic-table td.td-qty { text-align: center; width: 60px; }
.classic-table th.th-price, .classic-table td.td-price { text-align: right; width: 120px; }
.classic-table th.th-amount, .classic-table td.td-amount { text-align: right; width: 130px; }
.classic-table td {
  padding: 8px 12px;
  border-left: 1px solid #94a3b8;
  border-right: 1px solid #94a3b8;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: top;
}
.classic-table tr.empty-row td {
  height: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.classic-table-footer {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #94a3b8;
  border-top: none;
  font-size: 0.88rem;
}
.classic-table-footer td {
  padding: 6px 12px;
  border: 1px solid #94a3b8;
}
.classic-table-footer .tf-thanks {
  font-style: italic;
  color: #475569;
  font-size: 0.84rem;
  vertical-align: middle;
}
.classic-table-footer .tf-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: right;
  background: #f8fafc;
  width: 140px;
}
.classic-table-footer .tf-val {
  text-align: right;
  font-weight: 700;
  width: 130px;
  color: #0f172a;
}
.classic-table-footer tr.grand-total td {
  border-top: 2px solid #0f172a;
  background: #f1f5f9;
}
.classic-table-footer tr.grand-total .tf-label,
.classic-table-footer tr.grand-total .tf-val {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.classic-disclaimer {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.45;
  margin-top: 16px;
  margin-bottom: 20px;
}

.classic-acceptance { margin-top: 20px; }
.classic-acceptance-title {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 10px;
  border-bottom: 1px solid #94a3b8;
  padding-bottom: 4px;
}
.classic-sig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}
.classic-sig-line {
  border-top: 1px solid #475569;
  padding-top: 4px;
  font-size: 0.78rem;
  color: #64748b;
  text-align: left;
}

.classic-contact-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #475569;
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}
.classic-contact-footer .sub-copy {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
}

.pay-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.progress { flex: 1; min-width: 160px; height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--green), #22c55e); }

/* timeline */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item::before { content: ''; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 3px solid #dbeafe; }
.tl-item .t { font-weight: 600; font-size: .9rem; }
.tl-item .s { font-size: .82rem; color: var(--muted); }

/* tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 10px 16px; font-size: .9rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs a:hover { color: var(--brand); }

/* chat */
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 520px; overflow-y: auto; padding: 18px; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 14px; font-size: .92rem; }
.msg.mine { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.theirs { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .meta { font-size: .72rem; opacity: .7; margin-top: 4px; }
.chat-input { display: flex; gap: 10px; margin-top: 14px; }

/* notification list */
.notif { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif .ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand-light); color: var(--brand); font-size: 1rem;
}
.notif.unread { background: #eff6ff; }
.notif b { font-size: .92rem; }
.notif p { font-size: .85rem; color: var(--muted); margin: 2px 0 0; }
.notif .time { font-size: .76rem; color: #94a3b8; }

/* project preview grid */
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .preview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .preview-grid { grid-template-columns: 1fr; } }
.preview-shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.preview-shot .shot-head { background: var(--ink); padding: 10px 14px; color: #cbd5e1; font-size: .8rem; display: flex; gap: 6px; }
.preview-shot .shot-head i { width: 8px; height: 8px; border-radius: 50%; background: #475569; display: block; }
.preview-shot .shot-body { padding: 14px; font-size: .85rem; color: var(--muted); }

/* auth pages */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(800px 400px at 80% 0%, rgba(6,182,212,.2), transparent 60%), linear-gradient(135deg, #0b1220, #0f172a); padding: 30px; }
.auth-card { background: #fff; border-radius: 18px; padding: 36px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.auth-card .brand { justify-content: center; margin-bottom: 20px; }

/* print - A4 document output rules */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm;
  }
  html, body {
    background: #fff !important;
    color: #0f172a !important;
    font-size: 12px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .no-print, .topbar, .navbar, footer, .admin-side, .admin-topbar, .page-preloader, #page-preloader { display: none !important; }
  .invoice-sheet {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
  }
  .invoice-accent-bar { margin: 0 0 20px 0 !important; border-radius: 0 !important; }
  .invoice-table tr { page-break-inside: avoid; }
}

/* misc */
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty .ic { font-size: 2rem; display: block; margin-bottom: 10px; }
.pagination { display: flex; gap: 8px; }
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}
.wa-link svg {
  width: 13px;
  height: 13px;
  fill: #25D366;
  flex-shrink: 0;
}
.wa-link.wa-light { color: #cbd5e1; }
.wa-link.wa-light:hover { color: #25D366; }
.wa-link:hover { color: #25D366; }
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .65);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 26px; height: 26px; fill: #fff; }
.flag { display: inline-block; font-size: .85rem; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.code { background: #0f172a; color: #7dd3fc; padding: 2px 7px; border-radius: 6px; font-size: .82rem; }
.role-chip { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.role-admin { background: #f3e8ff; color: #7e22ce; }
.role-staff { background: #dbeafe; color: #1d4ed8; }
.role-customer { background: #dcfce7; color: #15803d; }
.search-input { position: relative; }
.search-input input { padding-left: 34px; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.kl { font-weight: 700; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.plain-list li:last-child { border-bottom: 0; }

/* customer portal */
.customer-shell { min-height: 100vh; background: var(--bg); }
.customer-top {
  background: linear-gradient(135deg, #0b1220, #12203f); color: #e2e8f0;
  padding: 18px 0 0; border-bottom: 3px solid var(--accent);
}
.customer-top .brand { color: #fff; }
.customer-top .brand small { color: #7dd3fc; }
.cust-nav { display: flex; gap: 2px; overflow-x: auto; margin-top: 14px; }
.cust-nav a {
  color: #94a3b8; font-size: .88rem; font-weight: 600; padding: 11px 14px;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.cust-nav a:hover { color: #fff; }
.cust-nav a.active { color: #fff; border-bottom-color: var(--accent); }
.pay-badge { font-size: .78rem; font-weight: 700; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .gap { gap: 12px; } .between { justify-content: space-between; } .center { align-items: center; }
.text-right { text-align: right; } .text-center { text-align: center; }

/* ============================================================
   MOBILE / RESPONSIVE
   ============================================================ */

/* Admin sidebar mobile drawer */
.admin-menu-toggle { display: none; }

/* Tables: allow horizontal scroll on small screens, tighten cells */
.table-wrap { -webkit-overflow-scrolling: touch; }
table { min-width: 0; }
th, td { padding: 10px 10px; }

@media (max-width: 900px) {
  .admin-menu-toggle { display: inline-flex; }
  .admin-body.mobile-open .admin-side {
    display: block;
    position: fixed;
    left: 0; top: 0;
    width: 264px;
    z-index: 1001;
    box-shadow: 12px 0 40px -12px rgba(0, 0, 0, .5);
  }
  .admin-body.mobile-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 1000;
  }
  .admin-content { padding: 18px; }
}

@media (max-width: 700px) {
  body { font-size: 15px; }
  .container, .container.wide { width: 92%; }
  section { padding: 48px 0; }

  /* topbar */
  .topbar .container { justify-content: center; text-align: center; }
  .topbar .flex { justify-content: center; }

  /* mobile nav menu (public) */
  .nav-links, .nav-cta {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-inner.open .nav-links, .nav-inner.open .nav-cta { display: flex; }
  .nav-cta .btn { width: 100%; }
  .nav-inner { flex-wrap: wrap; }
  .brand { font-size: 1.1rem; }
  .navbar .brand-logo { height: 58px; }

  /* hero */
  .hero { padding: 56px 0 80px; }
  .hero h1 { font-size: 2.1rem; }
  .hero p.lead { font-size: 1.02rem; }
  .hero-stats { gap: 22px; flex-wrap: wrap; margin-top: 28px; }
  .hero-stat b { font-size: 1.4rem; }
  .hero-float { right: 4px; bottom: -22px; transform: scale(.88); padding: 10px 14px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }

  /* forms */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card, .card-pad { padding: 20px 18px; }
  .form-card { width: 100%; }
  .auth-card { padding: 28px 22px; }
  .check-group { gap: 8px; }
  .check-pill { flex: 1 1 calc(50% - 8px); justify-content: center; }

  /* grids collapse */
  .grid.g3, .grid.g4, .grid.g5, .grid.g2 { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 14px 16px; }
  .stat .value { font-size: 1.2rem; }
  .bar-row .lbl { width: 92px; font-size: .78rem; }
  .bar-row .val { width: 72px; font-size: .78rem; }

  /* invoice / sheets */
  .invoice-sheet { padding: 20px 16px; border-radius: 12px; }
  .invoice-head { flex-direction: column; }
  .invoice-no { text-align: left; }
  .meta-grid { grid-template-columns: 1fr; }
  .invoice-totals { max-width: 100%; }

  /* page headers & lists */
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1 1 auto; }
  .row-item { flex-wrap: wrap; gap: 8px; }
  .filters input, .filters select { max-width: 100%; width: 100%; }
  .chat-input { flex-direction: column; }
  .chat-input .btn { width: 100%; }
  .timeline { padding-left: 22px; }
  .cta-band { padding: 40px 24px; }
  .cta-actions .btn { flex: 1 1 100%; justify-content: center; }
  .two-col { gap: 16px; }
  .stat-grid .stat .icon { font-size: 1.1rem; }

  /* customer portal header */
  .customer-top .flex.between { justify-content: center; }
  .customer-top .brand { justify-content: center; width: 100%; }

  /* admin topbar */
  .admin-topbar { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
  .admin-topbar h1 { font-size: 1rem; }

  /* misc */
  .preview-shot .shot-body { padding: 10px; }
  .hero-window { padding: 14px; }
  .chip { font-size: .7rem; padding: 8px 6px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 400px) {
  .logo-wall { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
  .nav-cta { flex-direction: column; }
}
