:root {
  --app-deploy-version: "20260428-premium";
  --ink: #0f172a;
  --muted: #6b7280;
  --paper: #f6f7fa;
  --panel: #ffffff;
  --line: #e2e4e9;
  --green: #059669;
  --teal: #2563eb;
  --gold: #06b6d4;
  --red: #dc2626;
  --dark: #111827;
  --shadow: 0 18px 55px rgba(15, 23, 42, .12);
  --tax-bg: #010614;
  --tax-panel: #060e1c;
  --tax-card: #080f18;
  --tax-line: rgba(255,255,255,.1);
  --tax-text: #f0f5ff;
  --tax-muted: #8b9dc3;
  --tax-purple: #2563eb;
  --tax-lilac: #60a5fa;
  --tax-green: #059669;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #059669);
  z-index: 100;
  transition: width 0.1s linear;
}

/* ========== LANDING PAGE ========== */
.site-shell {
  background: linear-gradient(120deg, rgba(37, 99, 235, .1), transparent 38%),
    linear-gradient(260deg, rgba(6, 182, 212, .12), transparent 42%),
    #010614;
  color: var(--tax-text);
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(1, 6, 20, .9);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--tax-line);
  box-shadow: 0 14px 38px rgba(0,0,0,.18);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0; }
.brand-logo-img { width: 34px; height: 34px; object-fit: contain; }

.ledziqo-nav .brand span,
.site-footer .brand span,
.app-brand span {
  display: inline;
  color: #f0f5ff;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-links a { color: #9ca3af; font-size: .84rem; font-weight: 800; transition: color 0.2s ease; }
.nav-links a:hover { color: #f0f5ff; }

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

.btn {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(90deg, #2563eb, #06b6d4); color: #f0f5ff; box-shadow: 0 16px 36px rgba(37, 99, 235, .28); }
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-ghost-dark { background: rgba(255,255,255,.04); border: 1px solid var(--tax-line); color: var(--tax-text); }
.btn-soft-dark { background: rgba(255,255,255,.07); color: var(--tax-text); border: 1px solid var(--tax-line); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }

/* Hero */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(88px, 12vw, 150px) clamp(18px, 5vw, 72px) clamp(70px, 10vw, 120px);
}

.hero-copy h1 {
  max-width: 860px;
  margin: 0 0 18px;
  font-family: "Space Grotesk", Outfit, sans-serif;
  font-size: clamp(4.3rem, 8vw, 8.8rem);
  line-height: .84;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--tax-text);
}
.hero-copy h1 em { color: #2563eb; font-style: normal; }

.hero-sub {
  max-width: 620px;
  color: #9ca3af;
  font-size: 1.12rem;
  line-height: 1.8;
  margin: 0 0 34px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--tax-line);
  background: rgba(255,255,255,.05);
  color: #9ca3af;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #059669;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.trust-bar {
  display: flex;
  gap: clamp(22px, 4vw, 60px);
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: .85rem;
  font-weight: 600;
}

.trust-item svg { color: #059669; flex-shrink: 0; }

/* Hero visual / mockup */
.hero-visual { position: relative; }

.dashboard-mockup {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(10, 15, 30, .6);
  box-shadow: 0 50px 100px rgba(0,0,0,.5);
  overflow: hidden;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 999px; }
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #eab308; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-title { color: #8a95a8; font-size: .78rem; font-weight: 700; flex: 1; text-align: center; }

.mockup-body { padding: 20px; display: grid; gap: 18px; }

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

.mockup-kpi div {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
}

.mockup-kpi small {
  display: block;
  color: #6b7280;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.mockup-kpi strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.mockup-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 100px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  animation: growBar 1s ease forwards;
  transform-origin: bottom;
}

@keyframes growBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.mockup-table {
  display: grid;
  gap: 8px;
}

.mockup-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  font-size: .85rem;
}

.mockup-row span:first-child { color: #6b7280; }
.mockup-row span:nth-child(2) { color: #fff; font-weight: 700; }

.pill-rev, .pill-exp {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: .68rem;
  font-weight: 800;
}

.pill-rev { background: rgba(5, 150, 105, .18); color: #059669; }
.pill-exp { background: rgba(37, 99, 235, .18); color: #2563eb; }

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(10, 15, 30, .9);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  backdrop-filter: blur(14px);
  animation: floatCard 6s ease-in-out infinite;
}

.floating-card.card-1 { bottom: -20px; left: -30px; }
.floating-card.card-2 { top: 40px; right: -20px; animation-delay: -3s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-card strong { display: block; color: #fff; font-size: .9rem; }
.floating-card span { display: block; color: #6b7280; font-size: .75rem; }

/* Metrics bar */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.metric { text-align: center; }
.metric strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #f0f5ff, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric span { display: block; margin-top: 8px; color: #6b7280; font-size: 0.85rem; font-weight: 600; }

/* Problem section */
.problem-section,
.features-section,
.how-section,
.accuracy-section,
.testimonial-section,
.faq-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 90px clamp(18px, 5vw, 72px);
}

.section-heading { margin-bottom: 48px; }
.centered-heading { text-align: center; margin-inline: auto; max-width: 900px; }

.eyebrow {
  display: inline-block;
  color: #2563eb;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

.centered-heading h2,
.ecosystem-section h2,
.faq-section h2,
.final-cta h2 {
  font-family: "Space Grotesk", Outfit, sans-serif;
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  line-height: .9;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--tax-text);
  margin: 0;
}

.centered-heading h2 em { color: #2563eb; font-style: normal; }

.centered-heading p {
  max-width: 720px;
  color: #9ca3af;
  line-height: 1.7;
  margin: 16px auto 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  padding: clamp(28px, 4vw, 48px);
  border-radius: 12px;
  background: rgba(10, 15, 30, .34);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease, border-color .25s ease;
}

.problem-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .45);
}

.problem-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(37, 99, 235, .15);
  color: #2563eb;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.problem-card h3 {
  color: var(--tax-text);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.problem-card p {
  color: #9ca3af;
  line-height: 1.7;
  margin: 0;
}

.solution-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(5, 150, 105, .08);
  color: #059669;
  font-size: 1.1rem;
  font-weight: 700;
}

.solution-divider svg { flex-shrink: 0; }

/* Features section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: 12px;
  background: rgba(10, 15, 30, .34);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease, border-color .25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .45);
}

.feature-card.large {
  grid-column: span 2;
  grid-row: span 1;
}

.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 20px;
}

.feature-icon.purple { background: rgba(37, 99, 235, .2); color: #93c5fd; }
.feature-icon.green { background: rgba(16, 185, 129, .2); color: #10b981; }
.feature-icon.pink { background: rgba(37, 99, 235, .2); color: #2563eb; }
.feature-icon.blue { background: rgba(6, 182, 212, .2); color: #06b6d4; }
.feature-icon.gold { background: rgba(6, 182, 212, .2); color: #06b6d4; }

.feature-card h3 {
  color: var(--tax-text);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.feature-card p {
  color: #9ca3af;
  line-height: 1.7;
  margin: 0 0 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: .9rem;
}

.feature-list li::before {
  content: "✓";
  color: #059669;
  font-weight: 800;
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.how-card {
  padding: 32px;
  border-radius: 12px;
  background: rgba(10, 15, 30, .34);
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
}

.how-number {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #f0f5ff;
  font-size: 1.3rem;
  font-weight: 800;
}

.how-card h3 {
  color: var(--tax-text);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.how-card p {
  color: #9ca3af;
  line-height: 1.7;
  margin: 0;
}

.how-arrow {
  color: rgba(255,255,255,.15);
  display: grid; place-items: center;
}

/* Accuracy / compliance */
.accuracy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.accuracy-grid article {
  padding: 24px;
  border-radius: 12px;
  background: rgba(10, 15, 30, .34);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease, border-color .25s ease;
}

.accuracy-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .45);
}

.accuracy-grid h3 { color: var(--tax-text); margin-top: 0; font-size: 1.15rem; }
.accuracy-grid p { color: #9ca3af; line-height: 1.65; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.testimonial-grid article {
  padding: 28px;
  border-radius: 12px;
  background: rgba(10, 15, 30, .34);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease;
}

.testimonial-grid article:hover {
  transform: translateY(-6px);
}

.stars {
  color: #f59e0b;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-grid article > p {
  color: #e5e7eb;
  line-height: 1.7;
  margin: 0 0 24px;
  font-size: .95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author strong {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, .22);
  color: #60a5fa;
  font-size: .85rem;
  font-weight: 800;
}

.testimonial-author span {
  color: #9ca3af;
  font-size: .82rem;
}

/* Pricing */
.ledziqo-pricing { background: rgba(255,255,255,.02); }
.ledziqo-pricing .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.ledziqo-pricing .pricing-grid article {
  position: relative;
  color: var(--tax-text);
  padding: 32px;
  border-radius: 12px;
  background: rgba(10, 15, 30, .34);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ledziqo-pricing .pricing-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .45);
  transition: transform .25s ease, border-color .25s ease;
}

.ledziqo-pricing .pricing-grid .featured {
  background: linear-gradient(180deg, rgba(37,99,235,.28), rgba(255,255,255,.04));
  border-color: rgba(96,165,250,.38);
  box-shadow: 0 28px 80px rgba(37, 99, 235, .22);
}

.plan-ribbon {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .2);
  color: #2563eb;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.ledziqo-pricing h3 { margin: 4px 0 0; font-size: 1.5rem; font-weight: 800; color: var(--tax-text); }
.plan-period { color: #9ca3af; font-size: .85rem; margin-bottom: 4px; }
.plan-price { font-size: 2.2rem; font-weight: 900; color: #f0f5ff; margin: 4px 0; }
.ledziqo-pricing del { color: #6b7280; font-size: .9rem; }
.plan-save { color: #059669; font-weight: 800; font-style: normal; font-size: .85rem; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 8px 0 20px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #9aa4b8;
  font-size: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.plan-features li::before {
  content: "✓";
  color: #059669;
  font-weight: 800;
}

.ledziqo-pricing .btn { width: 100%; margin-top: auto; }

/* FAQ accordion */
.faq-section { display: grid; grid-template-columns: .35fr .65fr; gap: 48px; align-items: start; }

.faq-header h2 {
  font-family: "Space Grotesk", Outfit, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: .9;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--tax-text);
  margin: 12px 0 0;
}

.faq-header h2 em { color: #2563eb; font-style: normal; }

.faq-list { display: grid; gap: 12px; }

.faq-item {
  border-radius: 12px;
  background: rgba(10, 15, 30, .34);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  color: var(--tax-text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.faq-question:hover { background: rgba(255,255,255,.03); }

.faq-icon { color: #6b7280; transition: transform 0.3s ease; flex-shrink: 0; }

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: #9ca3af;
  line-height: 1.7;
  margin: 0;
}

/* Final CTA */
.final-cta {
  text-align: center;
  margin-bottom: 60px;
  padding: 92px clamp(18px, 5vw, 72px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(37,99,235,.2), transparent 48%),
    rgba(15,23,42,.28);
  max-width: 1320px;
  margin-inline: auto;
}

.cta-content { max-width: 640px; margin: 0 auto; }

.final-cta h2 {
  font-family: "Space Grotesk", Outfit, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: .9;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--tax-text);
  margin: 0 0 16px;
}

.final-cta p {
  color: #9ca3af;
  line-height: 1.7;
  margin: 0 0 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px clamp(18px, 5vw, 72px) 40px;
  border-top: 1px solid var(--tax-line);
  color: var(--tax-muted);
}

.footer-brand p { margin: 16px 0 24px; color: #6b7280; line-height: 1.7; max-width: 280px; }

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #6b7280;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: rgba(37, 99, 235, .15);
  border-color: rgba(37, 99, 235, .3);
  color: #2563eb;
  transform: translateY(-2px);
}

.footer-col h3 { margin: 0 0 16px; color: var(--tax-text); font-size: .9rem; font-weight: 800; }
.footer-col a { display: block; margin: 10px 0; color: #6b7280; transition: color 0.2s ease; }
.footer-col a:hover { color: #f0f5ff; }

/* ========== SCROLL REVEAL ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #f0f5ff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  font-size: .9rem;
  font-weight: 600;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: auto;
}
.toast.show { transform: translateX(0); }
.toast-success { border-left: 4px solid var(--green); }
.toast-error { border-left: 4px solid var(--red); }
.toast-info { border-left: 4px solid var(--teal); }
.toast-icon {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.toast-success .toast-icon { background: #dff1e7; color: var(--green); }
.toast-error .toast-icon { background: #f5e7e7; color: var(--red); }
.toast-info .toast-icon { background: #e0f2f1; color: var(--teal); }

/* ========== OWNER MOBILE DASHBOARD ========== */
.owner-dashboard {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.owner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.owner-greeting .eyebrow {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}

.owner-greeting h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}

.owner-date {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  padding: 8px 0;
}

.spark-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #60a5fa, #4f8cff);
  min-width: 8px;
  transition: height 0.6s ease;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.chart-labels span {
  font-size: .7rem;
  color: var(--muted);
  font-weight: 600;
}

.owner-recent {
  border: 1px solid var(--p-border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow-sm);
}

.owner-recent h3, .owner-recent h2 {
  margin: 0 0 16px;
  font-size: .95rem;
  font-weight: 800;
  color: var(--p-text);
}

.owner-tx-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.owner-tx-item:last-child { border-bottom: 0; }

.tx-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.tx-icon.revenue { background: #dff1e7; color: var(--green); }
.tx-icon.expense { background: #f5e7e7; color: var(--red); }

.tx-info { flex: 1; min-width: 0; }

.tx-info strong {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-info span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
}

.tx-amount {
  font-size: .9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.tx-amount.revenue { color: var(--green); }
.tx-amount.expense { color: var(--red); }

.owner-readonly-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: #f4f6f3;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 24px;
  font-size: .9rem;
}

/* ========== APP / DASHBOARD ========== */
.app-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; background: #f4f6f3; }
.sidebar { background: var(--dark); color: #fff; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.app-brand { color: #fff; }
.user-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 14px; }
.user-card strong, .user-card span { display: block; }
.user-card span { color: #b8c6c0; text-transform: capitalize; margin-top: 4px; }
.side-nav { display: grid; gap: 8px; }
.side-nav button {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  color: #dfe8e4;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}
.side-nav button.active, .side-nav button:hover { background: rgba(255,255,255,.11); color: #fff; }
.workspace { padding: 26px; overflow-x: hidden; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.workspace-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 22px; }
.workspace-head h1 { margin: 6px 0 0; font-size: clamp(1.8rem, 3vw, 3.2rem); }
.head-actions { display: flex; gap: 10px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi-grid article, .panel, .form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .06);
}
.kpi-grid span { display: block; color: var(--muted); font-weight: 700; }
.kpi-grid strong { display: block; margin-top: 10px; font-size: clamp(1.35rem, 2vw, 2rem); }

.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.form-grid input, .form-grid select, .login-panel input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}
.form-grid label { color: var(--muted); font-weight: 700; }
.narrow { max-width: 760px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: .82rem; text-transform: uppercase; }
.pill { border-radius: 999px; padding: 4px 9px; font-size: .78rem; font-weight: 800; }
.pill.revenue { background: #dff1e7; color: var(--green); }
.pill.expense { background: #f5e7d2; color: #8a581d; }
.muted { color: var(--muted); }
.admin-list { display: grid; gap: 10px; }
.subscriber-row { display: grid; grid-template-columns: 1.2fr repeat(5, minmax(110px, auto)); gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.subscriber-row input, .subscriber-row select { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }

.locked-panel {
  min-height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(26px, 6vw, 64px);
  box-shadow: var(--shadow);
}
.locked-panel h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; }
.locked-panel p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.7; }
.lock-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lock-details span { background: #f3f5f2; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--muted); }

.login-dialog { border: 0; border-radius: 8px; padding: 0; box-shadow: var(--shadow); width: min(440px, calc(100vw - 32px)); }
.login-dialog::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(5px); }
.login-panel { position: relative; display: grid; gap: 14px; padding: 28px; }
.login-logo { width: 56px; height: 56px; object-fit: contain; margin: 0 auto; padding: 8px; border-radius: 8px; background: var(--dark); }
.login-panel h2, .login-panel p { text-align: center; margin: 0; }
.login-panel p { color: var(--muted); line-height: 1.5; }
.login-panel label { display: grid; gap: 6px; font-weight: 700; color: var(--muted); }
.dialog-close { position: absolute; top: 12px; right: 12px; border: 0; background: #edf1ed; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; }
.demo-users { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-users button { border: 1px solid var(--line); background: #f5f7f4; border-radius: 8px; min-height: 36px; cursor: pointer; }
#loginMessage { color: var(--red); text-align: center; min-height: 18px; }

.register-dialog { border: 0; border-radius: 8px; padding: 0; box-shadow: var(--shadow); width: min(480px, calc(100vw - 32px)); }
.register-dialog::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(5px); }
.register-panel { position: relative; display: grid; gap: 14px; padding: 28px; }
.register-panel h2, .register-panel p { text-align: center; margin: 0; }
.register-panel p { color: var(--muted); line-height: 1.5; }
.register-panel label { display: grid; gap: 6px; font-weight: 700; color: var(--muted); }
.register-panel input, .register-panel select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; }
.register-toggle { text-align: center; color: var(--muted); font-size: 0.9rem; }
.register-toggle button { background: none; border: none; color: var(--green); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Bulk Import */
#importPreview {
  margin-top: 16px;
}

.import-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.import-stat {
  padding: 14px 20px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.import-stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
}

.import-stat span {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
}

/* Table actions */
.table-actions { display: flex; gap: 6px; align-items: center; }
.table-actions button { min-height: 28px; padding: 0 10px; border-radius: 6px; border: 0; font-size: .78rem; font-weight: 700; cursor: pointer; transition: transform .15s, opacity .15s; }
.table-actions button:hover { transform: translateY(-1px); opacity: .85; }
.btn-edit { background: #e8f0e8; color: var(--green); }
.btn-delete { background: #f5e7e7; color: var(--red); }

/* Staggered hover on cards */
.problem-card, .feature-card, .how-card, .accuracy-grid article, .testimonial-grid article {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s ease;
}
.problem-card:hover, .feature-card:hover, .how-card:hover, .accuracy-grid article:hover, .testimonial-grid article:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

/* Shimmer loading effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.loading-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Filter bar */
.filter-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; font: inherit; }
.filter-bar input[type="search"] { min-width: 220px; flex: 1; }

/* Dashboard chart */
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.panel h2, .form-panel h2 { margin: 0 0 14px; font-size: 1.1rem; }
.chart { display: grid; gap: 12px; }
.chart-row { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; }
.bar { display: block; height: 12px; border-radius: 999px; grid-column: 2; }
.bar.revenue { background: var(--green); }
.bar.expense { background: var(--red); opacity: .85; }
.legend { display: flex; gap: 10px; align-items: center; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.rev-dot, .exp-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.rev-dot { background: var(--green); } .exp-dot { background: var(--red); }

/* ========== ENTRANCE ANIMATIONS ========== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.owner-kpi {
  animation: slideUp 0.5s ease backwards;
}
.owner-kpi:nth-child(1) { animation-delay: 0.05s; }
.owner-kpi:nth-child(2) { animation-delay: 0.15s; }
.owner-kpi:nth-child(3) { animation-delay: 0.25s; }

.owner-chart-card,
.owner-recent {
  animation: fadeScale 0.45s ease backwards;
  animation-delay: 0.35s;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .hero-section { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 600px; margin: 0 auto; }
  .floating-card { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.large { grid-column: span 1; }
  .how-grid { grid-template-columns: 1fr; }
  .how-arrow { display: none; }
  .accuracy-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .ledziqo-pricing .pricing-grid { grid-template-columns: 1fr; }
  .faq-section { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .metrics-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-actions { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 5; }
  .side-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace-head { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .subscriber-row { grid-template-columns: 1fr 1fr; }
  
  /* Owner view mobile optimizations */
  .owner-dashboard { padding: 0 14px 60px; }
  .owner-kpi-grid { gap: 10px; }
  .owner-kpi { padding: 16px; border-radius: 12px; }
  .kpi-value { font-size: 1.35rem; }
  .owner-chart-card, .owner-recent { border-radius: 12px; padding: 16px; }
  .sparkline { height: 60px; }
}

@media (max-width: 620px) {
  .hero-copy h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .trust-bar { flex-direction: column; gap: 12px; }
  .metrics-bar { grid-template-columns: 1fr 1fr; padding: 36px 18px; }
  .site-footer { grid-template-columns: 1fr; }
  .workspace { padding: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .side-nav { grid-template-columns: 1fr 1fr; }
  .subscriber-row { grid-template-columns: 1fr; }
  .demo-users { grid-template-columns: 1fr; }
}

/* ============================================================
   LEDZIQO FUTURISTIC WORKSPACE — 2026 Edition
   Glassmorphism, ultra-clean, phone-first owner view
   ============================================================ */

:root {
  /* Core deep navy */
  --p-bg: #010614;
  --p-surface: #060e1c;
  --p-elevated: #0a1624;
  --p-card: rgba(255,255,255,.025);
  --p-border: rgba(37,99,235,.08);
  --p-border-hover: rgba(37,99,235,.18);
  --p-text: #f0f5ff;
  --p-text-secondary: #8b9dc3;
  --p-text-muted: #6b8bb3;
  --p-text-faint: #4a5a7a;

  /* Deep blue accent system */
  --p-teal: #2563eb;
  --p-teal-dim: rgba(37,99,235,.12);
  --p-teal-glow: 0 0 20px rgba(37,99,235,.25);
  --p-gold: #06b6d4;
  --p-gold-dim: rgba(6,182,212,.12);
  --p-gold-glow: 0 0 20px rgba(6,182,212,.2);
  --p-green: #22d3ee;
  --p-green-dim: rgba(34,211,238,.12);
  --p-red: #f87171;
  --p-red-dim: rgba(248,113,113,.12);
  --p-violet: #60a5fa;
  --p-violet-dim: rgba(96,165,250,.12);
  --p-violet-glow: 0 0 20px rgba(96,165,250,.25);

  /* Depth system */
  --p-shadow-sm: 0 0 0 1px var(--p-border), 0 8px 24px rgba(0,0,0,.3);
  --p-shadow: 0 0 0 1px var(--p-border), 0 24px 48px rgba(0,0,0,.4);
  --p-shadow-lg: 0 0 0 1px var(--p-border), 0 40px 80px rgba(0,0,0,.5);

  /* Motion */
  --p-transition: all .25s cubic-bezier(.4,0,.2,1);
  --p-transition-bounce: all .35s cubic-bezier(.34,1.56,.64,1);
}

/* ---- APP SHELL ---- */
.app-shell {
  min-height: 100vh;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--p-bg);
  color: var(--p-text);
}

/* ---- SIDEBAR ---- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 6;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(18,18,28,.98), rgba(10,10,16,.99));
  border-right: 1px solid var(--p-border);
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--p-border); border-radius: 99px; }

/* Brand area */
.sidebar .app-brand {
  min-height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--p-border);
}

.sidebar .app-brand .brand-logo-img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.sidebar .app-brand span {
  color: var(--p-text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* User card */
.sidebar .user-card {
  margin: 16px;
  padding: 16px;
  border: 1px solid var(--p-border);
  border-radius: 16px;
  background: var(--p-card);
}

.sidebar .user-card strong {
  color: var(--p-text);
  font-size: .9rem;
  font-weight: 700;
}

.sidebar .user-card span {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--p-teal-dim);
  color: var(--p-teal);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Navigation */
.sidebar .side-nav {
  padding: 8px 12px;
  gap: 2px;
}

.sidebar .side-nav button {
  position: relative;
  min-height: 44px;
  padding: 0 14px 0 44px;
  border: 0;
  border-radius: 12px;
  color: var(--p-text-secondary);
  background: transparent;
  font-size: .87rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: var(--p-transition);
}

.sidebar .side-nav button::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: .5;
  transition: var(--p-transition);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Nav icons */
.sidebar .side-nav button[data-view="dashboard"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}
.sidebar .side-nav button[data-view="clients"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}
.sidebar .side-nav button[data-view="transactions"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E");
}
.sidebar .side-nav button[data-view="payroll"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
}
.sidebar .side-nav button[data-view="import"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
}
.sidebar .side-nav button[data-view="settings"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
}

.sidebar .side-nav button:hover {
  color: var(--p-text);
  background: rgba(255,255,255,.04);
}

.sidebar .side-nav button:hover::before {
  opacity: .8;
}

.sidebar .side-nav button.active {
  color: var(--p-teal);
  background: var(--p-teal-dim);
}

.sidebar .side-nav button.active::before {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(65%) sepia(70%) saturate(500%) hue-rotate(120deg) brightness(105%);
}

.sidebar .side-nav button.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--p-teal);
  box-shadow: 0 0 12px var(--p-teal);
}

/* Logout button */
.sidebar #logoutBtn {
  margin: auto 16px 16px;
  min-height: 44px;
  border: 1px solid var(--p-border);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: var(--p-text-secondary);
  font-weight: 600;
  font-size: .87rem;
  transition: var(--p-transition);
}

.sidebar #logoutBtn:hover {
  color: var(--p-red);
  background: var(--p-red-dim);
  border-color: rgba(248,113,113,.2);
}

/* ---- WORKSPACE ---- */
.workspace {
  position: relative;
  z-index: 1;
  padding: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(37,99,235,.025), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(6,182,212,.015), transparent),
    var(--p-bg);
}

.workspace-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  margin: 0;
  padding: 18px 32px;
  border-bottom: 1px solid var(--p-border);
  background: rgba(1,3,8,.75);
  backdrop-filter: blur(20px);
}

.workspace-head .eyebrow {
  margin: 0 0 4px;
  color: var(--p-teal);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.workspace-head h1 {
  margin: 0;
  color: var(--p-text);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.head-actions {
  display: flex;
  gap: 10px;
}

.head-actions .btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
}

.trial-badge {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0,212,170,.26);
  background: rgba(0,212,170,.1);
  color: var(--p-teal);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.trial-badge.ended {
  border-color: rgba(248,113,113,.3);
  background: rgba(248,113,113,.12);
  color: var(--p-red);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: 0;
  transition: var(--p-transition);
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  color: #000;
  background: var(--p-teal);
  box-shadow: 0 0 20px rgba(0,212,170,.2);
  font-weight: 700;
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(0,212,170,.35);
  transform: translateY(-1px);
}

.btn-soft, .btn-dark {
  border: 1px solid var(--p-border);
  background: var(--p-card);
  color: var(--p-text);
}

.btn-soft:hover, .btn-dark:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--p-border-hover);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--p-border);
  color: var(--p-text-secondary);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.04);
  color: var(--p-text);
}

/* ---- KPI CARDS ---- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 32px 28px;
}

.kpi-grid article {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--p-border);
  background: var(--p-surface);
  box-shadow: var(--p-shadow-sm);
  transition: var(--p-transition);
  animation: cardRise .5s cubic-bezier(.22,1,.36,1) backwards;
}

.kpi-grid article:nth-child(1) { animation-delay: .02s; }
.kpi-grid article:nth-child(2) { animation-delay: .08s; }
.kpi-grid article:nth-child(3) { animation-delay: .14s; }
.kpi-grid article:nth-child(4) { animation-delay: .20s; }

.kpi-grid article:hover {
  transform: translateY(-2px);
  box-shadow: var(--p-shadow);
  border-color: var(--p-border-hover);
}

.kpi-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.04), transparent 55%);
  pointer-events: none;
  border-radius: inherit;
}

.kpi-grid .kpi-revenue { border-color: rgba(52,211,153,.12); }
.kpi-grid .kpi-revenue:hover { box-shadow: var(--p-shadow-sm), var(--p-teal-glow); }
.kpi-grid .kpi-expense { border-color: rgba(248,113,113,.12); }
.kpi-grid .kpi-expense:hover { box-shadow: var(--p-shadow-sm), var(--p-red-glow); }
.kpi-grid .kpi-profit { border-color: rgba(167,139,250,.12); }
.kpi-grid .kpi-profit:hover { box-shadow: var(--p-shadow-sm), var(--p-violet-glow); }
.kpi-grid .kpi-vat { border-color: rgba(0,212,170,.12); }
.kpi-grid .kpi-vat:hover { box-shadow: var(--p-shadow-sm), var(--p-teal-glow); }

.kpi-grid .kpi-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.kpi-grid .kpi-revenue .kpi-icon {
  background: var(--p-green-dim);
  color: var(--p-green);
  box-shadow: 0 0 12px rgba(52,211,153,.15);
}

.kpi-grid .kpi-expense .kpi-icon {
  background: var(--p-red-dim);
  color: var(--p-red);
  box-shadow: 0 0 12px rgba(248,113,113,.15);
}

.kpi-grid .kpi-profit .kpi-icon {
  background: var(--p-violet-dim);
  color: var(--p-violet);
  box-shadow: 0 0 12px rgba(167,139,250,.15);
}

.kpi-grid .kpi-vat .kpi-icon {
  background: var(--p-teal-dim);
  color: var(--p-teal);
  box-shadow: 0 0 12px rgba(0,212,170,.15);
}

.kpi-grid article span {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--p-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.kpi-grid article strong {
  display: block;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.kpi-grid .kpi-revenue strong { color: var(--p-green); }
.kpi-grid .kpi-expense strong { color: var(--p-red); }
.kpi-grid .kpi-profit strong { color: var(--p-violet); }
.kpi-grid .kpi-vat strong { color: var(--p-teal); }

/* Trend badge on KPIs */
.kpi-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}

.kpi-trend-badge.up {
  background: var(--p-green-dim);
  color: var(--p-green);
}

.kpi-trend-badge.down {
  background: var(--p-red-dim);
  color: var(--p-red);
}

/* Mini sparkline in KPI */
.kpi-sparkline {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 80px;
  height: 32px;
  opacity: .3;
}

/* ---- PANELS ---- */
.panel, .form-panel, .locked-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--p-border);
  border-radius: 20px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow-sm);
  color: var(--p-text);
  transition: var(--p-transition);
  animation: cardRise .5s cubic-bezier(.22,1,.36,1) backwards;
}

.panel:hover, .form-panel:hover {
  box-shadow: var(--p-shadow);
  border-color: var(--p-border-hover);
}

.panel { padding: 28px; margin: 0 32px 24px; }
.form-panel { padding: 28px; margin: 0 32px 24px; }

.panel h2, .form-panel h2 {
  margin: 0 0 20px;
  color: var(--p-text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel h2::before, .form-panel h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 99px;
  background: var(--p-teal);
  box-shadow: 0 0 10px rgba(0,212,170,.4);
}

/* ---- DASHBOARD GRID ---- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

/* ---- MAIN CHART ---- */
.panel-chart {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.panel-chart canvas {
  display: block;
  width: 100%;
  max-width: 900px;
  height: 280px;
  margin: 0 auto;
}

/* ---- TABLES ---- */
.table-wrap {
  border: 1px solid var(--p-border);
  border-radius: 16px;
  background: var(--p-elevated);
  overflow: hidden;
}

table {
  color: var(--p-text);
  font-size: .88rem;
}

th, td {
  border-bottom: 1px solid var(--p-border);
  padding: 14px 12px;
}

th {
  color: var(--p-text-faint);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(255,255,255,.02);
}

td {
  color: #c8c8d4;
}

tbody tr {
  transition: all .15s ease;
}

tbody tr:hover {
  background: rgba(255,255,255,.03);
}

tbody tr:hover td:first-child {
  border-left: 3px solid var(--p-teal);
}

tbody tr td:first-child {
  border-left: 3px solid transparent;
  transition: border-left .15s ease;
}

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

.pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.pill.revenue {
  background: var(--p-green-dim);
  color: var(--p-green);
  border: 1px solid rgba(52,211,153,.15);
}

.pill.expense {
  background: var(--p-red-dim);
  color: var(--p-red);
  border: 1px solid rgba(248,113,113,.15);
}

/* ---- FORMS ---- */
.form-grid {
  gap: 16px;
}

.form-grid label, .login-panel label, .register-panel label {
  color: var(--p-text-secondary);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: grid;
  gap: 6px;
}

.form-grid input, .form-grid select, .form-grid textarea,
.filter-bar input, .filter-bar select,
.login-panel input, .register-panel input, .register-panel select {
  min-height: 46px;
  border: 1px solid var(--p-border);
  border-radius: 12px;
  background: var(--p-card);
  color: var(--p-text);
  outline: none;
  padding: 0 14px;
  font-size: .9rem;
  transition: var(--p-transition);
  width: 100%;
}

/* Fix dropdown options color for dark theme */
.form-grid select option,
.filter-bar select option,
.register-panel select option {
  background: var(--p-surface);
  color: var(--p-text);
}

.form-grid input:focus, .form-grid select:focus,
.filter-bar input:focus, .filter-bar select:focus,
.login-panel input:focus, .register-panel input:focus {
  border-color: var(--p-teal);
  background: rgba(0,212,170,.04);
  box-shadow: 0 0 0 3px rgba(0,212,170,.08), 0 0 20px rgba(0,212,170,.06);
}

.form-grid input::placeholder, .filter-bar input::placeholder {
  color: var(--p-text-faint);
}

/* ---- FILTER BAR ---- */
.filter-bar {
  margin: 0 32px 20px;
  padding: 14px 16px;
  border: 1px solid var(--p-border);
  border-radius: 16px;
  background: var(--p-elevated);
  display: flex;
  gap: 14px;
  align-items: center;
}

.filter-bar input[type="search"] {
  min-width: 260px;
  flex: 1;
}

/* ---- TABLE ACTIONS ---- */
.table-actions button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}

.btn-edit {
  background: var(--p-green-dim);
  color: var(--p-green);
  border: 1px solid rgba(52,211,153,.2);
}

.btn-delete {
  background: var(--p-red-dim);
  color: var(--p-red);
  border: 1px solid rgba(248,113,113,.2);
}

/* ============================================================
   OWNER PHONE-FIRST DASHBOARD — Futuristic Compact View
   Everything fits on a single phone screen (~500px tall)
   ============================================================ */

.owner-dashboard {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* Compact futuristic header */
.owner-header {
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px solid var(--p-border);
  border-radius: 16px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 52px;
}

.owner-greeting .eyebrow {
  color: var(--p-teal);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 2px;
}

.owner-greeting h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--p-text);
}

.owner-date {
  color: var(--p-text-muted);
  font-size: .72rem;
  font-weight: 600;
}

/* 2x2 micro-KPI grid — fits phone screen */
.owner-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.owner-kpi {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--p-border);
  background: var(--p-surface);
  box-shadow: var(--p-shadow-sm);
  transition: var(--p-transition);
  animation: cardRise .5s cubic-bezier(.22,1,.36,1) backwards;
}

.owner-kpi:nth-child(1) { animation-delay: .02s; }
.owner-kpi:nth-child(2) { animation-delay: .08s; }
.owner-kpi:nth-child(3) { animation-delay: .14s; }
.owner-kpi:nth-child(4) { animation-delay: .20s; }

.owner-kpi:hover {
  box-shadow: var(--p-shadow);
  border-color: var(--p-border-hover);
}

/* Color-coded top border accent */
.owner-kpi.revenue { border-top: 2px solid var(--p-green); }
.owner-kpi.expense { border-top: 2px solid var(--p-red); }
.owner-kpi.profit { border-top: 2px solid var(--p-violet); }
.owner-kpi.vat { border-top: 2px solid var(--p-teal); }

.owner-kpi .kpi-label {
  font-size: .65rem;
  font-weight: 800;
  color: var(--p-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.owner-kpi .kpi-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--p-text);
  line-height: 1;
}

.owner-kpi .kpi-value small {
  font-size: .65rem;
  font-weight: 600;
  color: var(--p-text-muted);
  margin-left: 2px;
}

.owner-kpi .kpi-trend {
  font-size: .65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--p-card);
  color: var(--p-text-muted);
  margin-top: 6px;
  display: inline-block;
}

.owner-kpi .kpi-trend.up {
  background: var(--p-green-dim);
  color: var(--p-green);
  border: 1px solid rgba(52,211,153,.2);
}

.owner-kpi .kpi-trend.down {
  background: var(--p-red-dim);
  color: var(--p-red);
  border: 1px solid rgba(248,113,113,.2);
}

/* Mini sparkline card */
.owner-sparkline-card {
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--p-border);
  border-radius: 16px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow-sm);
  animation: fadeScale .45s ease .35s backwards;
}

.owner-sparkline-card h3 {
  margin: 0 0 12px;
  font-size: .85rem;
  font-weight: 800;
  color: var(--p-text);
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 50px;
  padding: 4px 0;
}

.spark-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--p-teal), rgba(0,212,170,.3));
  min-width: 6px;
  transition: height 0.6s ease;
  box-shadow: 0 -2px 8px rgba(34,211,238,.15);
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.chart-labels span {
  font-size: .62rem;
  color: var(--p-text-faint);
  font-weight: 700;
}

/* Compact recent transactions */
.owner-recent {
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--p-border);
  border-radius: 16px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow-sm);
  animation: fadeScale .45s ease .45s backwards;
}

.owner-recent h2 {
  margin: 0 0 12px;
  font-size: .85rem;
  font-weight: 800;
  color: var(--p-text);
  letter-spacing: -0.01em;
}

/* Ultra-compact transaction row */
.owner-tx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--p-border);
  transition: background .15s ease;
  border-radius: 8px;
  margin: 0 -4px;
}

.owner-tx-item:hover {
  background: rgba(255,255,255,.03);
}

.owner-tx-item:last-child { border-bottom: 0; }

.tx-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.tx-icon.revenue {
  background: var(--p-green-dim);
  color: var(--p-green);
}

.tx-icon.expense {
  background: var(--p-red-dim);
  color: var(--p-red);
}

.tx-info { flex: 1; min-width: 0; }

.tx-info strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--p-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-info span {
  display: block;
  font-size: .7rem;
  color: var(--p-text-muted);
  margin-top: 1px;
}

.tx-amount {
  font-size: .82rem;
  font-weight: 800;
  flex-shrink: 0;
}

.tx-amount.revenue { color: var(--p-green); }
.tx-amount.expense { color: var(--p-red); }

/* View all button */
.owner-view-all {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--p-border);
  border-radius: 12px;
  background: var(--p-card);
  color: var(--p-text-secondary);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--p-transition);
  margin-top: 8px;
}

.owner-view-all:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--p-border-hover);
  color: var(--p-text);
}

/* Read-only badge compact */
.owner-readonly-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed var(--p-border);
  border-radius: 12px;
  background: var(--p-card);
  color: var(--p-text-muted);
  font-size: .78rem;
  font-weight: 600;
  animation: fadeScale .45s ease .55s backwards;
}

/* Desktop owner bento (for larger screens viewing owner view) */
@media (min-width: 681px) {
  .owner-dashboard {
    max-width: 720px;
    padding: 0 32px 80px;
  }

  .owner-header {
    padding: 24px 28px;
    border-radius: 20px;
    margin-bottom: 24px;
  }

  .owner-greeting h2 { font-size: 1.6rem; }
  .owner-date { font-size: .85rem; }

  .owner-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
  }

  .owner-kpi {
    padding: 24px;
    border-radius: 20px;
    min-height: 140px;
  }

  .owner-kpi .kpi-label { font-size: .8rem; margin-bottom: 14px; }
  .owner-kpi .kpi-value { font-size: 1.8rem; }
  .owner-kpi .kpi-value small { font-size: .75rem; }
  .owner-kpi .kpi-trend { font-size: .78rem; margin-top: 10px; }

  .owner-sparkline-card {
    padding: 28px;
    margin-bottom: 24px;
    border-radius: 20px;
  }

  .owner-sparkline-card h3 { font-size: 1.05rem; margin-bottom: 16px; }
  .sparkline { height: 90px; gap: 10px; }
  .spark-bar { border-radius: 6px 6px 0 0; min-width: 8px; }
  .chart-labels { margin-top: 10px; }
  .chart-labels span { font-size: .72rem; }

  .owner-recent {
    padding: 28px;
    margin-bottom: 24px;
    border-radius: 20px;
  }

  .owner-recent h2 { font-size: 1.05rem; margin-bottom: 16px; }

  .owner-tx-item {
    gap: 16px;
    padding: 14px 8px;
    margin: 0 -8px;
  }

  .tx-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 1.1rem; }
  .tx-info strong { font-size: .92rem; }
  .tx-info span { font-size: .8rem; margin-top: 2px; }
  .tx-amount { font-size: .9rem; }

  .owner-readonly-badge { padding: 16px; border-radius: 16px; font-size: .85rem; }
}

.empty-state {
  text-align: center;
  color: var(--p-text-muted);
  padding: 32px;
  font-size: .9rem;
}

/* ---- IMPORT ---- */
.import-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.import-stat {
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  text-align: center;
  box-shadow: var(--p-shadow-sm);
  flex: 1;
  transition: all .2s ease;
}

.import-stat:hover {
  box-shadow: var(--p-shadow);
}

.import-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--p-text);
}

.import-stat span {
  font-size: .8rem;
  color: var(--p-text-muted);
  font-weight: 600;
}

/* ---- DIALOGS ---- */
.login-dialog, .register-dialog {
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 60px 120px rgba(0,0,0,.6);
  border: 0;
  animation: dialogIn .35s cubic-bezier(.22,1,.36,1) backwards;
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-dialog::backdrop, .register-dialog::backdrop {
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(16px);
}

.login-panel, .register-panel {
  border: 1px solid var(--p-border);
  border-radius: 24px;
  background: var(--p-surface);
  color: var(--p-text);
  padding: 36px;
  box-shadow: var(--p-shadow);
}

.login-logo {
  border-radius: 16px;
  background: var(--p-card);
  filter: brightness(0) invert(1);
  padding: 10px;
  width: 52px;
  height: 52px;
}

.login-panel h2, .register-panel h2 {
  color: var(--p-text);
  font-weight: 800;
  font-size: 1.3rem;
}

.login-panel p, .register-panel p, .register-toggle {
  color: var(--p-text-muted);
}

.dialog-close {
  border: 1px solid var(--p-border);
  background: var(--p-card);
  color: var(--p-text);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--p-transition);
}

.dialog-close:hover {
  background: var(--p-red-dim);
  color: var(--p-red);
  border-color: rgba(248,113,113,.2);
}

.demo-users button {
  border: 1px solid var(--p-border);
  background: var(--p-card);
  color: var(--p-text-muted);
  border-radius: 12px;
  min-height: 44px;
  font-weight: 700;
  transition: var(--p-transition);
  cursor: pointer;
}

.demo-users button:hover {
  color: var(--p-text);
  background: rgba(255,255,255,.06);
}

/* ---- TOAST ---- */
.toast {
  border: 1px solid var(--p-border);
  border-radius: 14px;
  background: rgba(13,13,18,.98);
  color: var(--p-text);
  box-shadow: var(--p-shadow);
  padding: 16px 20px;
  backdrop-filter: blur(12px);
}

.toast-success { border-left: 4px solid var(--p-green); }
.toast-error { border-left: 4px solid var(--p-red); }
.toast-info { border-left: 4px solid var(--p-violet); }

.toast-success .toast-icon {
  background: var(--p-green-dim);
  color: var(--p-green);
  box-shadow: 0 0 8px rgba(52,211,153,.2);
}

.toast-error .toast-icon {
  background: var(--p-red-dim);
  color: var(--p-red);
  box-shadow: 0 0 8px rgba(248,113,113,.2);
}

/* ---- SCROLLBAR ---- */
.app-shell ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.app-shell ::-webkit-scrollbar-track {
  background: transparent;
}

.app-shell ::-webkit-scrollbar-thumb {
  background: var(--p-border);
  border-radius: 999px;
}

.app-shell ::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.12);
}

/* ---- ANIMATIONS ---- */
@keyframes cardRise {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.panel { animation-delay: .10s; }

/* ---- CSV UPLOAD ---- */
.csv-upload-area {
  border: 2px dashed var(--p-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  background: var(--p-card);
  transition: var(--p-transition);
  cursor: pointer;
  margin-bottom: 20px;
}

.csv-upload-area:hover {
  border-color: var(--p-teal);
  background: rgba(0,212,170,.04);
}

.csv-upload-area.dragover {
  border-color: var(--p-teal);
  background: rgba(0,212,170,.08);
}

.csv-upload-area svg {
  width: 40px;
  height: 40px;
  color: var(--p-text-muted);
  margin-bottom: 12px;
}

.csv-upload-area strong {
  display: block;
  color: var(--p-text);
  font-size: .95rem;
  margin-bottom: 6px;
}

.csv-upload-area span {
  color: var(--p-text-muted);
  font-size: .82rem;
}

/* ---- EMPLOYEE DEBT ---- */
.debt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--p-gold-dim);
  color: var(--p-gold);
  font-size: .7rem;
  font-weight: 800;
  border: 1px solid rgba(245,166,35,.15);
}

.debt-badge.no-debt {
  background: var(--p-green-dim);
  color: var(--p-green);
  border-color: rgba(52,211,153,.15);
}

/* Employee card for payroll */
.employee-card {
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: 20px;
  background: var(--p-surface);
  transition: var(--p-transition);
}

.employee-card:hover {
  border-color: var(--p-border-hover);
  box-shadow: var(--p-shadow-sm);
}

.employee-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.employee-card-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--p-text);
}

.employee-card-header .role {
  font-size: .82rem;
  color: var(--p-text-muted);
}

.employee-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.employee-card-grid div {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: var(--p-card);
}

.employee-card-grid div small {
  display: block;
  font-size: .7rem;
  color: var(--p-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

.employee-card-grid div strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--p-text);
}

.employee-card-grid .debt-row strong {
  color: var(--p-gold);
}

.employee-card-actions {
  display: flex;
  gap: 8px;
}

.employee-card-actions button {
  flex: 1;
}

/* ============================================================
   ADMIN COMMAND CENTER — Super Admin Styles
   ============================================================ */

.admin-shell {
  min-height: 100vh;
  background: var(--p-bg);
  color: var(--p-text);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--p-border);
  background: rgba(1,3,8,.88);
  backdrop-filter: blur(20px);
}

.admin-topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--p-text);
  font-size: 1.05rem;
}

.admin-topbar .brand img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.admin-actions a,
.admin-actions button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--p-border);
  background: var(--p-card);
  color: var(--p-text-secondary);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: var(--p-transition);
}

.admin-actions a:hover,
.admin-actions button:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--p-border-hover);
  color: var(--p-text);
}

.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 32px 60px;
}

/* Admin stats row */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--p-border);
  background: var(--p-surface);
  box-shadow: var(--p-shadow-sm);
  transition: var(--p-transition);
}

.admin-stat:hover {
  box-shadow: var(--p-shadow);
  border-color: var(--p-border-hover);
}

.admin-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--p-text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.admin-stat span {
  font-size: .75rem;
  font-weight: 700;
  color: var(--p-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Search & filter */
.admin-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-filter input,
.admin-filter select {
  min-height: 44px;
  border: 1px solid var(--p-border);
  border-radius: 12px;
  background: var(--p-card);
  color: var(--p-text);
  padding: 0 14px;
  font-size: .9rem;
  outline: none;
  transition: var(--p-transition);
}

.admin-filter input:focus,
.admin-filter select:focus {
  border-color: var(--p-teal);
  box-shadow: 0 0 0 3px rgba(0,212,170,.08);
}

.admin-filter input[type="search"] {
  min-width: 260px;
  flex: 1;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: 24px;
  transition: var(--p-transition);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--p-text-muted);
  border-radius: 50%;
  transition: var(--p-transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--p-green-dim);
  border-color: var(--p-green);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--p-green);
}

/* Days remaining badge */
.days-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
}

.days-badge.ok {
  background: var(--p-green-dim);
  color: var(--p-green);
  border: 1px solid rgba(52,211,153,.2);
}

.days-badge.warning {
  background: var(--p-gold-dim);
  color: var(--p-gold);
  border: 1px solid rgba(245,166,35,.2);
}

.days-badge.critical {
  background: var(--p-red-dim);
  color: var(--p-red);
  border: 1px solid rgba(248,113,113,.2);
}

/* Admin table actions */
.admin-actions-cell {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-actions-cell .btn-view {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--p-teal);
  background: var(--p-teal-dim);
  color: var(--p-teal);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--p-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.admin-actions-cell .btn-view:hover {
  background: rgba(0,212,170,.2);
}

.admin-actions-cell .btn-delete {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(248,113,113,.3);
  background: var(--p-red-dim);
  color: var(--p-red);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--p-transition);
}

.admin-actions-cell .btn-delete:hover {
  background: rgba(248,113,113,.2);
}

/* Inline edit form */
.inline-edit {
  margin-top: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--p-card);
  border: 1px solid var(--p-border);
}

.inline-edit form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-edit select,
.inline-edit input[type="date"] {
  min-height: 40px;
  border: 1px solid var(--p-border);
  border-radius: 10px;
  background: var(--p-surface);
  color: var(--p-text);
  padding: 0 12px;
  font-size: .85rem;
}

.inline-edit button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--p-green);
  background: var(--p-green-dim);
  color: var(--p-green);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--p-transition);
}

.inline-edit button:hover {
  background: rgba(52,211,153,.2);
}

/* Login box for admin */
.admin-login-box {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--p-border);
  border-radius: 24px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
}

.admin-login-box h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--p-text);
}

.admin-login-box p {
  color: var(--p-text-muted);
  margin: 0 0 24px;
  font-size: .9rem;
}

.admin-login-box .form-group {
  margin-bottom: 16px;
}

.admin-login-box label {
  display: block;
  color: var(--p-text-muted);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.admin-login-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--p-border);
  border-radius: 12px;
  background: var(--p-card);
  color: var(--p-text);
  padding: 0 14px;
  font-size: .9rem;
  outline: none;
  transition: var(--p-transition);
}

.admin-login-box input:focus {
  border-color: var(--p-teal);
  box-shadow: 0 0 0 3px rgba(0,212,170,.08);
}

.admin-login-box button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--p-teal);
  color: #000;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--p-transition);
}

.admin-login-box button:hover {
  box-shadow: 0 0 32px rgba(0,212,170,.35);
}

.admin-alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: .9rem;
  font-weight: 600;
}

.admin-alert.error {
  background: var(--p-red-dim);
  color: var(--p-red);
  border: 1px solid rgba(248,113,113,.2);
}

.admin-alert.success {
  background: var(--p-green-dim);
  color: var(--p-green);
  border: 1px solid rgba(52,211,153,.2);
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(112px, 132px) 1fr;
  gap: 8px;
  align-items: center;
}

.phone-row select,
.phone-row input {
  width: 100%;
  min-height: 44px;
}

.invite-card {
  border: 1px solid var(--p-border);
  border-radius: 12px;
  background: var(--p-surface);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.invite-output {
  display: grid;
  gap: 8px;
}

.invite-output input {
  width: 100%;
}

.invite-email-input {
  width: 100%;
}

.dashboard-invite {
  margin-bottom: 20px;
  border-color: rgba(0,212,170,.22);
  background: linear-gradient(135deg, rgba(0,212,170,.12), rgba(167,139,250,.08));
}

.dashboard-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 260px minmax(0, 1fr); }
  .kpi-grid, .owner-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }

  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--p-border);
  }

  .app-brand { min-height: 44px; padding: 0 14px; }
  .user-card { display: none; }
  .side-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow-x: auto; gap: 6px; }
  .side-nav button { min-width: 120px; white-space: nowrap; padding: 0 14px; }
  .side-nav button::before { display: none; }
  .side-nav button.active::after { display: none; }
  .sidebar #logoutBtn { margin: 0; }

  .workspace { padding: 0; }
  .workspace-head { position: relative; margin: 0; padding: 16px 20px; }
  .kpi-grid { margin: 0 20px 20px; }
  .panel, .form-panel { margin: 0 20px 20px; }
  .filter-bar { margin: 0 20px 16px; }
  .owner-dashboard { padding: 0 20px 60px; }
  .owner-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-summary { margin: 0 20px 16px; }
}

@media (max-width: 680px) {
  .kpi-grid, .owner-bento { grid-template-columns: 1fr; }
  .workspace-head { padding: 14px; min-height: 60px; }
  .workspace-head h1 { font-size: 1.4rem; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .form-grid, .side-nav { grid-template-columns: 1fr; }
  .panel, .form-panel, .kpi-grid article, .owner-kpi, .owner-chart-card, .owner-recent, .owner-header { padding: 18px; }
  .kpi-grid { margin: 0 14px 16px; }
  .panel, .form-panel { margin: 0 14px 16px; }
  .filter-bar { margin: 0 14px 14px; padding: 12px; flex-direction: column; align-items: stretch; }
  .filter-bar input, .filter-bar select { width: 100%; }
  .owner-dashboard { padding: 0 14px 40px; }
  .demo-users { grid-template-columns: 1fr; }
  .phone-row { grid-template-columns: 1fr; }
}
