/* ══════════════════════════════════════════
   NRI Bridge India — Shared Design System
   ══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #3d3f2e;
  --bg-main: #5c5f3e;
  --bg-card: #6b6e4a;
  --bg-light: #e8e4d4;
  --bg-cream: #f2efe5;
  --bg-highlight: #c5c9a8;
  --accent: #2d3a1e;
  --accent-soft: #8b9060;
  --text-dark: #1a1e0e;
  --text-mid: #3d4228;
  --text-light: #f2efe5;
  --text-muted: #9a9d7e;
  --border: rgba(0,0,0,0.08);
  --border-light: rgba(255,255,255,0.12);
  --green-pop: #4a6a2e;
  --green-btn: #2d3a1e;
  --white: #fff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
}

@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes scaleIn { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(93,96,62,0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  animation: fadeIn 0.8s ease both;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-light); letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 4px;
}
.nav-logo a { text-decoration: none; color: inherit; display: flex; align-items: center; }
.nav-logo .logo-accent { color: var(--bg-highlight); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-light);
  font-size: 0.9rem; font-weight: 400; opacity: 0.8;
  transition: opacity 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1.5px; background: var(--bg-cream);
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .active { opacity: 1; font-weight: 600; }
.nav-links .active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-arrow { font-size: 0.65rem; transition: transform 0.3s; }
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: var(--radius-lg); padding: 12px;
  min-width: 240px; box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateX(-50%) translateY(8px);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 0.88rem; font-weight: 500; color: var(--text-dark) !important;
  text-decoration: none; transition: all 0.2s; opacity: 1 !important;
}
.nav-dropdown-menu a:hover { background: rgba(74,106,46,0.06); }
.nav-dropdown-menu a::after { display: none !important; }
.dd-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dd-icon svg {
  width: 18px; height: 18px; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.dd-icon-home { background: rgba(74,106,46,0.1); }
.dd-icon-home svg { stroke: var(--green-pop); }
.dd-icon-vehicle { background: rgba(58,106,94,0.1); }
.dd-icon-vehicle svg { stroke: #3a6a5e; }
.dd-icon-parental { background: rgba(106,74,46,0.1); }
.dd-icon-parental svg { stroke: #6a4a2e; }
.dd-icon-legal { background: rgba(46,74,106,0.1); }
.dd-icon-legal svg { stroke: #2e4a6a; }
.btn-outline {
  padding: 9px 22px; border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill); background: transparent;
  color: var(--text-light); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s; font-family: inherit;
  text-decoration: none; display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.btn-primary {
  padding: 10px 24px; border: none; border-radius: var(--radius-pill);
  background: var(--bg-cream); color: var(--text-dark);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s; font-family: inherit;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--white); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 140px 40px 80px;
  background: linear-gradient(180deg, var(--bg-main) 0%, #4e5136 50%, var(--bg-deep) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,205,160,0.12) 0%, transparent 70%);
  top: 10%; left: 50%; transform: translateX(-50%);
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute;
  width: 320px; height: 320px;
  border: 1px solid rgba(197,201,168,0.08);
  border-radius: 8px;
  top: 15%; right: 8%;
  transform: rotate(12deg);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  font-size: 0.8rem; color: var(--bg-highlight);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeUp 0.7s ease both; animation-delay: 0.2s; opacity: 0;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #8fbf5a; animation: pulse 2s ease-in-out infinite;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6.5vw, 5rem); font-weight: 400;
  color: var(--text-light); line-height: 1.12; margin-bottom: 24px;
  animation: fadeUp 0.8s ease both; animation-delay: 0.35s; opacity: 0;
}
.hero h1 em { font-style: italic; font-weight: 600; color: var(--bg-highlight); }
.hero h1 strong { font-weight: 700; }
.hero p {
  max-width: 680px; font-size: 1.05rem; line-height: 1.8;
  color: var(--text-muted); margin-bottom: 40px;
  letter-spacing: 0.01em; font-weight: 300;
  animation: fadeUp 0.8s ease both; animation-delay: 0.5s; opacity: 0;
}
.hero-ctas {
  display: flex; gap: 14px; align-items: center;
  animation: fadeUp 0.8s ease both; animation-delay: 0.65s; opacity: 0;
}
.btn-hero {
  padding: 14px 36px; border: none; border-radius: var(--radius-pill);
  background: var(--bg-cream); color: var(--text-dark);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: all 0.35s; font-family: inherit;
  position: relative; overflow: hidden;
  text-decoration: none; display: inline-block;
}
.btn-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.3));
  opacity: 0; transition: opacity 0.35s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.btn-hero:hover::after { opacity: 1; }
.btn-ghost {
  padding: 14px 36px; border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill); background: transparent;
  color: var(--text-light); font-size: 0.95rem; font-weight: 500;
  cursor: pointer; transition: all 0.35s; font-family: inherit;
  text-decoration: none; display: inline-block;
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.45); }

/* ── TRUST BAR ── */
.trust-bar {
  padding: 28px 40px;
  background: rgba(61,63,46,0.6);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}
.trust-bar p {
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: 14px;
}
.trust-logos {
  display: flex; justify-content: center; align-items: center;
  gap: 48px; flex-wrap: wrap; opacity: 0.4;
}
.trust-logos span {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--text-light);
  font-weight: 600; letter-spacing: 0.02em;
}

/* ── STATS ── */
.stats-ribbon {
  display: flex; justify-content: center; gap: 64px;
  padding: 52px 40px; background: var(--bg-deep);
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 700;
  color: var(--bg-highlight); margin-bottom: 4px;
}
.stat-label {
  font-size: 0.82rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── SHARED SECTION ── */
section { position: relative; }
.section-pad { padding: 100px 40px; }
.section-tag {
  display: inline-flex; padding: 6px 16px;
  background: rgba(45,58,30,0.06); border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green-pop); margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 600;
  color: var(--text-dark); margin-bottom: 12px; line-height: 1.15;
}
.section-sub {
  max-width: 520px; margin: 0 auto 56px;
  font-size: 1rem; line-height: 1.65;
  color: var(--text-mid); opacity: 0.75;
}

/* ── SERVICES ── */
.services { background: var(--bg-cream); text-align: center; overflow: hidden; }
.services::before {
  content: ''; position: absolute;
  top: -120px; right: -120px; width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,110,74,0.06), transparent 70%);
}
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: 1200px; margin: 0 auto;
}
.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px 28px 32px; text-align: left;
  border: 1.5px solid var(--border);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-pop), var(--bg-highlight));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.07); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: rgba(74,106,46,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg {
  width: 24px; height: 24px; stroke: var(--green-pop);
  fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: 10px; color: var(--text-dark);
}
.service-card p {
  font-size: 0.85rem; line-height: 1.65;
  color: var(--text-mid); opacity: 0.8;
}
.service-card .learn-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 0.82rem; font-weight: 600;
  color: var(--green-pop); transition: gap 0.3s;
}
.service-card:hover .learn-more { gap: 10px; }

/* ── HOW IT WORKS ── */
.how-it-works {
  background: var(--bg-deep); color: var(--text-light);
  overflow: hidden;
}
.how-it-works .section-tag { background: rgba(197,201,168,0.1); color: var(--bg-highlight); }
.how-it-works .section-title { color: var(--text-light); }
.how-it-works .section-sub { color: var(--text-muted); }
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; max-width: 1100px; margin: 0 auto;
  position: relative;
}
.steps-grid::before {
  content: ''; position: absolute;
  top: 42px; left: 13%; right: 13%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), var(--border-light), transparent);
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(197,201,168,0.1);
  border: 1.5px solid rgba(197,201,168,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--bg-highlight);
  transition: all 0.3s;
}
.step-card:hover .step-num {
  background: var(--bg-highlight);
  color: var(--accent);
  border-color: var(--bg-highlight);
  transform: scale(1.1);
}
.step-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 8px; color: var(--text-light);
}
.step-card p {
  font-size: 0.84rem; line-height: 1.6;
  color: var(--text-muted); max-width: 220px; margin: 0 auto;
}

/* ── PRICING ── */
.pricing { background: var(--bg-cream); text-align: center; overflow: hidden; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1020px; margin: 0 auto;
  align-items: stretch;
}
.price-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px 32px 36px; text-align: left;
  position: relative; border: 1.5px solid var(--border);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.price-card.featured {
  background: var(--accent); border-color: transparent;
  color: var(--text-light); transform: scale(1.04);
  box-shadow: 0 25px 80px rgba(0,0,0,0.18);
}
.price-card.featured:hover { transform: scale(1.04) translateY(-6px); }
.card-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px; background: var(--bg-highlight);
  color: var(--text-dark); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
}
.card-name {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; opacity: 0.55; margin-bottom: 6px;
}
.card-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem; font-style: italic; opacity: 0.7; margin-bottom: 14px;
}
.card-price {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem; font-weight: 700;
  margin-bottom: 4px; line-height: 1;
}
.card-price .currency { font-size: 1.5rem; vertical-align: top; margin-right: 2px; }
.card-price-range {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem; font-weight: 700;
  margin-bottom: 4px; line-height: 1.2;
}
.card-period { font-size: 0.82rem; opacity: 0.5; margin-bottom: 28px; }
.card-features { list-style: none; margin-bottom: 32px; flex-grow: 1; }
.card-features li {
  padding: 9px 0; font-size: 0.88rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex; align-items: center; gap: 10px; line-height: 1.4;
}
.featured .card-features li { border-bottom-color: rgba(255,255,255,0.08); }
.check {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(74,106,46,0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.featured .check { background: rgba(197,201,168,0.18); }
.check svg { width: 10px; height: 10px; }
.card-note {
  font-size: 0.78rem; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(74,106,46,0.06); margin-bottom: 20px; line-height: 1.5;
  color: var(--text-mid);
}
.featured .card-note { background: rgba(197,201,168,0.1); color: var(--text-muted); }
.card-earnings {
  font-size: 0.78rem; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(74,106,46,0.08); margin-bottom: 20px;
  border-left: 3px solid var(--green-pop); line-height: 1.5;
  color: var(--text-mid);
}
.card-earnings strong { display: block; margin-bottom: 4px; font-size: 0.8rem; }
.btn-card {
  width: 100%; padding: 14px; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s; font-family: inherit; text-align: center;
  text-decoration: none; display: block;
}
.btn-card-default {
  background: transparent; border: 1.5px solid var(--border); color: var(--text-dark);
}
.btn-card-default:hover { background: var(--accent); border-color: var(--accent); color: var(--text-light); }
.btn-card-featured { background: var(--bg-cream); border: none; color: var(--text-dark); }
.btn-card-featured:hover { background: var(--white); box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

/* ── WHY CHOOSE ── */
.why { background: var(--bg-main); color: var(--text-light); overflow: hidden; }
.why .section-tag { background: rgba(197,201,168,0.1); color: var(--bg-highlight); }
.why .section-title { color: var(--text-light); }
.why .section-sub { color: var(--text-muted); }
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg); padding: 36px 28px 32px;
  transition: all 0.4s; position: relative; overflow: hidden;
}
.why-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bg-highlight), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.why-card:hover {
  background: rgba(255,255,255,0.07); transform: translateY(-4px);
  border-color: rgba(255,255,255,0.14);
}
.why-card:hover::before { opacity: 1; }
.why-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: rgba(197,201,168,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.why-icon svg {
  width: 24px; height: 24px; stroke: var(--bg-highlight);
  fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.why-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 10px; color: var(--text-light);
}
.why-card p { font-size: 0.84rem; line-height: 1.6; color: var(--text-muted); }

/* ── TESTIMONIALS ── */
.testimonials { background: var(--bg-cream); overflow: hidden; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px; border: 1px solid var(--border);
  transition: all 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.06); }
.stars { color: #d4a72c; font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 0.92rem; line-height: 1.65;
  color: var(--text-mid); font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-highlight); display: flex;
  align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 0.9rem; color: var(--accent);
}
.author-info strong { font-size: 0.85rem; display: block; color: var(--text-dark); }
.author-info span { font-size: 0.78rem; color: var(--text-mid); opacity: 0.6; }

/* ── CTA ── */
.cta-section {
  background: var(--bg-deep); text-align: center;
  overflow: hidden; position: relative;
}
.cta-section::before, .cta-section::after {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}
.cta-section::before { top: -100px; left: -100px; }
.cta-section::after { bottom: -100px; right: -100px; }
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--text-light);
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--text-muted); max-width: 480px;
  margin: 0 auto 36px; line-height: 1.65;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; }

/* ── FOOTER ── */
footer {
  background: var(--bg-deep); border-top: 1px solid var(--border-light);
  padding: 60px 40px 32px; color: var(--text-muted);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  max-width: 1100px; margin: 0 auto 48px; gap: 48px; flex-wrap: wrap;
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; color: var(--text-muted); }
.footer-cols { display: flex; gap: 64px; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--bg-highlight); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.85rem; transition: color 0.3s;
}
.footer-col a:hover { color: var(--text-light); }
.footer-bottom {
  text-align: center; padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem; max-width: 1100px;
  margin: 0 auto; opacity: 0.5;
}

/* ══════════════════════════════════════════
   AUTH PAGES — Login & Signup
   ══════════════════════════════════════════ */

.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 20px 40px;
  background: linear-gradient(180deg, var(--bg-main) 0%, #4a4d34 40%, var(--bg-deep) 100%);
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,205,160,0.08) 0%, transparent 70%);
  top: 5%; left: 50%; transform: translateX(-50%);
  animation: float 10s ease-in-out infinite;
}
.auth-page::after {
  content: ''; position: absolute;
  width: 280px; height: 280px;
  border: 1px solid rgba(197,201,168,0.06);
  border-radius: 8px;
  bottom: 10%; right: 5%;
  transform: rotate(-8deg);
}
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 48px 40px; width: 100%; max-width: 440px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative; z-index: 1;
  animation: scaleIn 0.5s ease both;
}
.auth-card.wide { max-width: 500px; }
.auth-logo {
  display: flex; justify-content: center; margin-bottom: 28px;
}
.auth-logo img {
  height: 56px; width: auto;
  filter: brightness(0) saturate(100%) invert(15%) sepia(20%) saturate(800%) hue-rotate(50deg);
}
.auth-heading {
  text-align: center; margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 600; color: var(--text-dark);
}
.auth-subheading {
  text-align: center; margin-bottom: 32px;
  font-size: 0.9rem; color: var(--text-mid); opacity: 0.7;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-mid); margin-bottom: 6px; letter-spacing: 0.02em;
}
.form-input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid rgba(0,0,0,0.1); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.9rem; color: var(--text-dark);
  transition: all 0.3s; background: var(--bg-cream);
}
.form-input:focus {
  outline: none; border-color: var(--green-pop);
  background: var(--white); box-shadow: 0 0 0 3px rgba(74,106,46,0.1);
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.5; }
.form-input-icon {
  position: relative;
}
.form-input-icon .form-input { padding-right: 44px; }
.form-input-icon .toggle-password {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: 4px; font-size: 0.85rem; opacity: 0.6; transition: opacity 0.3s;
}
.form-input-icon .toggle-password:hover { opacity: 1; }
.form-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.form-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.84rem; color: var(--text-mid); cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--green-pop); cursor: pointer;
}
.form-link {
  font-size: 0.84rem; color: var(--green-pop);
  text-decoration: none; font-weight: 500; transition: color 0.3s;
}
.form-link:hover { color: var(--accent); text-decoration: underline; }
.btn-auth {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--text-light);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: all 0.35s; font-family: inherit;
  position: relative; overflow: hidden;
}
.btn-auth:hover {
  background: var(--green-pop); transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(45,58,30,0.3);
}
.btn-auth:active { transform: translateY(0); }
.auth-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0;
}
.auth-divider span {
  font-size: 0.82rem; color: var(--text-muted); white-space: nowrap;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.btn-social {
  width: 100%; padding: 12px; border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-pill); background: transparent;
  font-family: inherit; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 10px; transition: all 0.3s;
  color: var(--text-dark);
}
.btn-social:hover { background: var(--bg-cream); border-color: var(--green-pop); }
.btn-social svg { width: 18px; height: 18px; }
.auth-footer {
  text-align: center; margin-top: 28px;
  font-size: 0.85rem; color: var(--text-mid);
}
.auth-footer a { color: var(--green-pop); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* Password strength */
.password-strength-bar {
  height: 3px; border-radius: 2px; margin-top: 8px;
  background: rgba(0,0,0,0.06); overflow: hidden;
}
.password-strength-fill {
  height: 100%; border-radius: 2px; transition: all 0.4s ease;
  width: 0%;
}
.strength-weak { width: 33% !important; background: #dc3545; }
.strength-medium { width: 66% !important; background: #f0ad4e; }
.strength-strong { width: 100% !important; background: var(--green-pop); }
.password-strength-text {
  font-size: 0.72rem; margin-top: 4px; font-weight: 500;
  transition: color 0.3s;
}

/* Phone input */
.phone-input-group {
  display: flex; gap: 8px;
}
.phone-prefix {
  padding: 13px 12px; border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm); background: var(--bg-light);
  font-family: inherit; font-size: 0.88rem; color: var(--text-mid);
  min-width: 80px;
}
.phone-prefix:focus {
  outline: none; border-color: var(--green-pop);
  background: var(--white); box-shadow: 0 0 0 3px rgba(74,106,46,0.1);
}

/* Success state */
.auth-success {
  text-align: center; padding: 20px 0;
}
.auth-success .success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(74,106,46,0.1); margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.auth-success .success-icon svg {
  width: 28px; height: 28px; stroke: var(--green-pop);
  fill: none; stroke-width: 2;
}
.auth-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; margin-bottom: 8px; color: var(--text-dark);
}
.auth-success p { font-size: 0.9rem; color: var(--text-mid); opacity: 0.75; }

/* Form validation states */
.form-input.error { border-color: #dc3545; }
.form-input.success { border-color: var(--green-pop); }
.form-error {
  font-size: 0.75rem; color: #dc3545; margin-top: 4px; display: none;
}
.form-error.visible { display: block; }

/* ══════════════════════════════════════════
   SERVICE DETAIL PAGES
   ══════════════════════════════════════════ */

.service-hero {
  background: linear-gradient(180deg, var(--bg-main) 0%, #4e5136 60%, var(--bg-deep) 100%);
  text-align: center; padding-top: 160px; padding-bottom: 80px;
  position: relative; overflow: hidden;
}
.service-hero::before {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,205,160,0.1) 0%, transparent 70%);
  top: 5%; right: -10%;
  animation: float 10s ease-in-out infinite;
}
.service-hero .section-tag { background: rgba(197,201,168,0.1); color: var(--bg-highlight); }
.service-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 600;
  color: var(--text-light); line-height: 1.15; margin-bottom: 20px;
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.service-hero p {
  max-width: 580px; margin: 0 auto; font-size: 1.05rem;
  line-height: 1.7; color: var(--text-muted);
}

/* Service details grid */
.service-details { background: var(--bg-cream); }
.service-details-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: 1000px; margin: 0 auto;
}
.detail-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px; border: 1.5px solid var(--border);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative; overflow: hidden;
}
.detail-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-pop), var(--bg-highlight));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.detail-card:hover {
  transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}
.detail-card:hover::before { transform: scaleX(1); }
.detail-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: rgba(74,106,46,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.detail-icon svg {
  width: 22px; height: 22px; stroke: var(--green-pop);
  fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.detail-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 10px; color: var(--text-dark);
}
.detail-card p {
  font-size: 0.88rem; line-height: 1.65; color: var(--text-mid); opacity: 0.8;
}
.detail-card ul {
  list-style: none; margin-top: 12px;
}
.detail-card ul li {
  padding: 6px 0; font-size: 0.85rem; color: var(--text-mid);
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
}
.detail-card ul li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-pop); flex-shrink: 0; margin-top: 7px;
}

/* Value proposition section */
.value-section {
  background: var(--bg-deep); color: var(--text-light); overflow: hidden;
}
.value-section .section-tag { background: rgba(197,201,168,0.1); color: var(--bg-highlight); }
.value-section .section-title { color: var(--text-light); }
.value-section .section-sub { color: var(--text-muted); }
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1000px; margin: 0 auto;
}
.value-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; transition: all 0.4s;
}
.value-card:hover {
  background: rgba(255,255,255,0.07); transform: translateY(-4px);
}
.value-card .value-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--bg-highlight); margin-bottom: 8px;
}
.value-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--text-light); margin-bottom: 8px;
}
.value-card p { font-size: 0.82rem; line-height: 1.6; color: var(--text-muted); }

/* Plan coverage section */
.plan-coverage { background: var(--bg-main); text-align: center; color: var(--text-light); }
.plan-coverage .section-tag { background: rgba(197,201,168,0.1); color: var(--bg-highlight); }
.plan-coverage .section-title { color: var(--text-light); }
.plan-coverage .section-sub { color: var(--text-muted); }
.coverage-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.coverage-card {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg); padding: 32px 24px;
  transition: all 0.4s;
}
.coverage-card.included {
  border-color: var(--bg-highlight);
  background: rgba(197,201,168,0.08);
}
.coverage-card.not-included { opacity: 0.35; }
.coverage-card .plan-name {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 8px; color: var(--bg-highlight);
}
.coverage-card .plan-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; color: var(--text-light); margin-bottom: 12px;
}
.coverage-card .plan-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600;
}
.coverage-card.included .plan-status {
  background: rgba(143,191,90,0.15); color: #8fbf5a;
}
.coverage-card.not-included .plan-status {
  background: rgba(255,255,255,0.05); color: var(--text-muted);
}
.coverage-card a {
  display: block; margin-top: 16px; padding: 10px;
  border-radius: var(--radius-pill); font-size: 0.82rem;
  font-weight: 600; text-decoration: none; text-align: center;
  transition: all 0.3s;
}
.coverage-card.included a {
  background: var(--bg-highlight); color: var(--accent);
}
.coverage-card.included a:hover { background: var(--bg-cream); }
.coverage-card.not-included a {
  border: 1px solid rgba(255,255,255,0.15); color: var(--text-muted);
}

/* ── SERVICE CATEGORY COLORS ── */
:root {
  --service-home: #4a6a2e;
  --service-vehicle: #3a6a5e;
  --service-parental: #6a4a2e;
  --service-legal: #2e4a6a;
}

/* ── SERVICES OVERVIEW GRID ── */
.services-overview-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: 960px; margin: 0 auto;
}
.service-category-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 44px 32px; text-align: left;
  border: 1.5px solid var(--border);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
}
.service-category-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.service-category-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.07); }
.service-category-card:hover::before { transform: scaleX(1); }
.service-category-card.cat-home::before { background: linear-gradient(90deg, var(--service-home), var(--bg-highlight)); }
.service-category-card.cat-vehicle::before { background: linear-gradient(90deg, var(--service-vehicle), #6aaa9e); }
.service-category-card.cat-parental::before { background: linear-gradient(90deg, var(--service-parental), #aa8a6e); }
.service-category-card.cat-legal::before { background: linear-gradient(90deg, var(--service-legal), #6e8aaa); }
.service-category-card .cat-icon {
  width: 60px; height: 60px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-category-card .cat-icon svg {
  width: 28px; height: 28px; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.cat-home .cat-icon { background: rgba(74,106,46,0.1); }
.cat-home .cat-icon svg { stroke: var(--service-home); }
.cat-vehicle .cat-icon { background: rgba(58,106,94,0.1); }
.cat-vehicle .cat-icon svg { stroke: var(--service-vehicle); }
.cat-parental .cat-icon { background: rgba(106,74,46,0.1); }
.cat-parental .cat-icon svg { stroke: var(--service-parental); }
.cat-legal .cat-icon { background: rgba(46,74,106,0.1); }
.cat-legal .cat-icon svg { stroke: var(--service-legal); }
.service-category-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; color: var(--text-dark);
}
.service-category-card p {
  font-size: 0.88rem; line-height: 1.65; color: var(--text-mid); opacity: 0.8; margin-bottom: 16px;
}
.service-category-card .cat-count {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; opacity: 0.5; margin-bottom: 16px; display: block;
}
.service-category-card .learn-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; transition: gap 0.3s;
}
.cat-home .learn-more { color: var(--service-home); }
.cat-vehicle .learn-more { color: var(--service-vehicle); }
.cat-parental .learn-more { color: var(--service-parental); }
.cat-legal .learn-more { color: var(--service-legal); }
.service-category-card:hover .learn-more { gap: 10px; }

/* ── PRICING TABS ── */
.pricing-tabs {
  display: flex; justify-content: center; gap: 4px;
  background: rgba(0,0,0,0.04); border-radius: var(--radius-pill);
  padding: 4px; max-width: 600px; margin: 0 auto 32px;
}
.pricing-tab {
  padding: 10px 24px; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: all 0.3s; font-family: inherit; border: none;
  background: transparent; color: var(--text-mid);
}
.pricing-tab:hover { background: rgba(0,0,0,0.04); }
.pricing-tab.active {
  background: var(--white); color: var(--text-dark); font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Bundle card */
.bundle-card {
  background: linear-gradient(135deg, var(--accent) 0%, var(--bg-main) 100%);
  border-radius: var(--radius-lg); padding: 40px;
  max-width: 1020px; margin: 40px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; color: var(--text-light);
}
.bundle-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 600; margin-bottom: 8px;
}
.bundle-info p { font-size: 0.9rem; opacity: 0.7; line-height: 1.6; max-width: 480px; }
.bundle-price {
  text-align: center; flex-shrink: 0;
}
.bundle-price .amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 700; display: block;
}
.bundle-price .period { font-size: 0.82rem; opacity: 0.6; display: block; margin-bottom: 16px; }
.bundle-price .btn-hero { white-space: nowrap; }

/* Tier tags on service cards */
.tier-tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.tier-tag {
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.tier-tag.starter { background: rgba(74,106,46,0.1); color: var(--green-pop); }
.tier-tag.standard { background: rgba(45,58,30,0.1); color: var(--accent); }
.tier-tag.premium { background: rgba(74,106,46,0.15); color: var(--green-pop); }
.tier-tag.silver { background: rgba(45,58,30,0.1); color: var(--accent); }
.tier-tag.platinum { background: rgba(74,106,46,0.15); color: var(--green-pop); }

/* ── QUOTE BUILDER ── */
.quote-builder {
  margin-top: 48px; max-width: 960px; margin-left: auto; margin-right: auto;
  background: linear-gradient(135deg, #2d2f22 0%, #3a3c2c 50%, #3d5a28 100%);
  border-radius: var(--radius-lg); padding: 40px; color: var(--text-light);
  position: relative; overflow: hidden;
}
.quote-builder::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(74,106,46,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.qb-header { text-align: center; margin-bottom: 32px; }
.qb-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; margin-bottom: 6px;
}
.qb-header p { font-size: 0.88rem; opacity: 0.7; }
.qb-content {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 32px; align-items: start;
}
.qb-category {
  background: rgba(255,255,255,0.06); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.08); transition: border-color 0.3s;
}
.qb-category.active { border-color: rgba(74,106,46,0.5); }
.qb-cat-header { display: flex; align-items: center; justify-content: space-between; }
.qb-cat-info { display: flex; align-items: center; gap: 12px; }
.qb-cat-icon { font-size: 1.3rem; }
.qb-cat-name { font-weight: 600; font-size: 0.95rem; }
.qb-toggle {
  position: relative; width: 44px; height: 24px;
  cursor: pointer; flex-shrink: 0;
}
.qb-toggle input { display: none; }
.qb-toggle-track {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 100px; transition: background 0.3s;
}
.qb-toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: white;
  border-radius: 50%; transition: transform 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.qb-toggle input:checked + .qb-toggle-track { background: var(--green-pop); }
.qb-toggle input:checked + .qb-toggle-track::after { transform: translateX(20px); }
.qb-tiers {
  display: flex; gap: 8px; margin-top: 0;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: all 0.35s ease;
}
.qb-tiers.open { margin-top: 14px; max-height: 60px; opacity: 1; }
.qb-tier {
  flex: 1; padding: 8px 10px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill); background: transparent;
  color: rgba(255,255,255,0.7); font-family: inherit;
  font-size: 0.72rem; font-weight: 500; cursor: pointer;
  transition: all 0.25s; text-align: center; white-space: nowrap;
}
.qb-tier:hover { border-color: rgba(255,255,255,0.35); color: white; }
.qb-tier.selected {
  background: var(--green-pop); border-color: var(--green-pop);
  color: white; font-weight: 600;
}
.qb-addons {
  margin-top: 8px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.qb-addons h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; }
.qb-addon-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.qb-addon-chip {
  padding: 6px 14px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill); background: transparent;
  color: rgba(255,255,255,0.65); font-family: inherit;
  font-size: 0.75rem; cursor: pointer; transition: all 0.25s;
}
.qb-addon-chip:hover { border-color: rgba(255,255,255,0.35); color: white; }
.qb-addon-chip.selected {
  background: rgba(74,106,46,0.4); border-color: var(--green-pop); color: white;
}
.qb-addon-input { display: flex; gap: 8px; }
.qb-addon-input input {
  flex: 1; padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill); background: rgba(255,255,255,0.06);
  color: white; font-family: inherit; font-size: 0.8rem; outline: none;
}
.qb-addon-input input::placeholder { color: rgba(255,255,255,0.35); }
.qb-addon-input button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06); color: white;
  font-size: 1.1rem; cursor: pointer; transition: all 0.25s;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.qb-addon-input button:hover { background: var(--green-pop); border-color: var(--green-pop); }
.qb-addon-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qb-addon-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; background: rgba(74,106,46,0.3);
  border: 1px solid rgba(74,106,46,0.5);
  border-radius: var(--radius-pill); font-size: 0.72rem; color: white;
}
.qb-addon-tag button {
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; font-size: 0.85rem; padding: 0; line-height: 1;
}
.qb-addon-tag button:hover { color: white; }
.qb-summary {
  background: rgba(0,0,0,0.2); border-radius: 12px; padding: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  position: sticky; top: 100px;
}
.qb-summary h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 600; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.qb-summary-items { min-height: 60px; }
.qb-summary-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.qb-summary-item .si-label { opacity: 0.8; }
.qb-summary-item .si-price { font-weight: 600; }
.qb-summary-empty {
  text-align: center; padding: 20px 0;
  font-size: 0.82rem; opacity: 0.4; font-style: italic;
}
.qb-summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; margin-top: 8px;
  border-top: 1.5px solid rgba(255,255,255,0.15);
  font-size: 1.1rem; font-weight: 700;
}
.qb-summary-note {
  font-size: 0.72rem; opacity: 0.5; margin-top: 6px; font-style: italic;
}
.qb-actions {
  margin-top: 24px; display: flex; flex-direction: column; gap: 10px;
}
.qb-actions .btn-hero { text-align: center; width: 100%; }
.qb-whatsapp {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px; border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,0.15); color: white;
  text-decoration: none; font-size: 0.82rem; font-weight: 500;
  transition: all 0.3s;
}
.qb-whatsapp:hover { border-color: #25d366; color: #25d366; }

/* ══════════════════════════════════════════
   CUSTOMER DASHBOARD
   ══════════════════════════════════════════ */

.dash-page {
  min-height: 100vh;
  background: var(--bg-cream);
  padding-top: 80px;
}

/* Topbar */
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 64px; z-index: 50;
}
.dash-topbar-left {
  display: flex; align-items: center; gap: 10px;
}
.dash-topbar-left .brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 0.85rem; font-weight: 700;
}
.dash-topbar-left span {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600;
  color: var(--text-dark);
}
.dash-topbar-left .brand-accent { color: var(--green-pop); }
.dash-topbar-right {
  display: flex; align-items: center; gap: 18px;
}
.dash-notif {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-cream); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.dash-notif:hover { background: var(--bg-highlight); }
.dash-notif svg { width: 18px; height: 18px; stroke: var(--text-mid); fill: none; stroke-width: 2; }
.dash-notif .notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #e85d3a; border: 2px solid var(--white);
}
.dash-user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  background: var(--bg-cream); border-radius: var(--radius-pill);
  cursor: pointer; transition: background 0.3s; border: none;
}
.dash-user-pill:hover { background: var(--bg-highlight); }
.dash-user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-highlight); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 0.8rem; font-weight: 700;
}
.dash-user-info { text-align: left; }
.dash-user-info strong {
  display: block; font-size: 0.8rem; color: var(--text-dark); font-weight: 600;
}
.dash-user-info span {
  font-size: 0.68rem; color: var(--text-mid); opacity: 0.7;
}

/* Container */
.dash-container {
  max-width: 1200px; margin: 0 auto;
  padding: 28px 40px 60px;
}

/* Layout grid */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

/* Welcome banner */
.dash-welcome {
  grid-column: 1 / -1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--border);
  animation: fadeUp 0.5s ease both;
}
.dash-welcome-left {
  display: flex; align-items: center; gap: 16px;
}
.dash-welcome-wave { font-size: 2.2rem; }
.dash-welcome-text .greeting {
  font-size: 0.8rem; color: var(--green-pop); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px;
}
.dash-welcome-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 3px;
}
.dash-welcome-text .member-meta {
  font-size: 0.82rem; color: var(--text-mid); opacity: 0.7;
}
.dash-welcome-right {
  text-align: right; flex-shrink: 0;
}
.dash-welcome-right .plan-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-mid); margin-bottom: 4px;
}
.dash-welcome-right .plan-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 2px;
}
.dash-welcome-right .plan-renew {
  font-size: 0.78rem; color: var(--green-pop); font-weight: 500;
  font-family: 'DM Sans', monospace;
}

/* Section headers */
.dash-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.dash-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 600;
  color: var(--text-dark);
  display: flex; align-items: center; gap: 10px;
}
.dash-section-header h2 .dash-em {
  font-size: 0.85rem; font-weight: 400; color: var(--text-mid); opacity: 0.6;
}
.dash-section-link {
  font-size: 0.82rem; font-weight: 600; color: var(--green-pop);
  text-decoration: none; transition: gap 0.3s;
  display: inline-flex; align-items: center; gap: 4px;
}
.dash-section-link:hover { gap: 8px; text-decoration: underline; }

/* ── Service Cards ── */
.dash-services-list { display: flex; flex-direction: column; gap: 18px; }

.dash-svc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative; overflow: hidden;
}
.dash-svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-pop), var(--bg-highlight));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.dash-svc-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.dash-svc-card:hover::before { transform: scaleX(1); }

.dash-svc-header {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 10px;
}
.dash-svc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.dash-svc-icon.cat-home { background: rgba(74,106,46,0.1); }
.dash-svc-icon.cat-vehicle { background: rgba(58,106,94,0.1); }
.dash-svc-icon.cat-parental { background: rgba(106,74,46,0.1); }
.dash-svc-icon.cat-legal { background: rgba(46,74,106,0.1); }

.dash-svc-title-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dash-svc-title-row h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 600; color: var(--text-dark);
}

/* Status badges */
.dash-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px; border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dash-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
}
.dash-status.status-in-progress {
  background: rgba(74,106,46,0.1); color: var(--green-pop);
}
.dash-status.status-in-progress::before { background: var(--green-pop); }
.dash-status.status-pending {
  background: rgba(232,93,58,0.1); color: #e85d3a;
}
.dash-status.status-pending::before { background: #e85d3a; }
.dash-status.status-completed {
  background: rgba(46,74,106,0.1); color: #2e4a6a;
}
.dash-status.status-completed::before { background: #2e4a6a; }

.dash-svc-desc {
  font-size: 0.85rem; line-height: 1.6; color: var(--text-mid);
  margin-bottom: 20px; margin-left: 58px;
}

/* Progress tracker */
.dash-progress {
  margin-left: 58px;
}
.dash-progress-steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 8px;
}
.dash-progress-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; position: relative; z-index: 1;
}
.dash-progress-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
  border: 2px solid rgba(0,0,0,0.1);
  background: var(--white); color: var(--text-mid);
  transition: all 0.3s; margin-bottom: 6px;
}
.dash-progress-dot.done {
  background: var(--green-pop); border-color: var(--green-pop); color: var(--white);
}
.dash-progress-dot.done svg { stroke: var(--white); }
.dash-progress-dot.active {
  background: rgba(232,168,58,0.15); border-color: #e8a83a; color: #e8a83a;
}
.dash-progress-dot svg {
  width: 12px; height: 12px; fill: none; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.dash-progress-label {
  font-size: 0.68rem; font-weight: 500; color: var(--text-mid);
  text-align: center; max-width: 80px; line-height: 1.3;
}
.dash-progress-label.done { color: var(--green-pop); font-weight: 600; }
.dash-progress-label.active { color: #e8a83a; font-weight: 600; }

/* Progress bar line */
.dash-progress-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.dash-progress-track {
  flex: 1; height: 4px; border-radius: 4px;
  background: rgba(0,0,0,0.06); overflow: hidden;
}
.dash-progress-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--green-pop), var(--bg-highlight));
  transition: width 0.6s ease;
}
.dash-progress-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px;
}
.dash-progress-pct {
  font-size: 0.75rem; font-weight: 600; color: var(--text-mid);
}
.dash-progress-eta {
  font-size: 0.75rem; color: var(--text-mid); opacity: 0.7;
  font-family: 'DM Sans', monospace;
}

/* Connector lines between steps */
.dash-progress-connector {
  flex: 1; height: 3px; margin: 0 -2px;
  background: rgba(0,0,0,0.06);
  align-self: flex-start; margin-top: 13px;
}
.dash-progress-connector.done {
  background: var(--green-pop);
}

/* ── Service Card Action Button ── */
.dash-svc-action {
  margin-left: 58px; margin-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border: none; border-radius: var(--radius-pill);
  background: var(--green-pop); color: var(--white);
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(74,106,46,0.2);
}
.dash-svc-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(74,106,46,0.3);
}
.dash-svc-action svg {
  width: 14px; height: 14px; stroke-width: 2.5;
}
.dash-svc-action.action-pending {
  background: #e8a83a;
  box-shadow: 0 4px 16px rgba(232,168,58,0.25);
}
.dash-svc-action.action-pending:hover {
  box-shadow: 0 8px 24px rgba(232,168,58,0.35);
}

/* ── Expandable Document Checklist ── */
.dash-svc-docs-toggle {
  margin-left: 58px; margin-top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1.5px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-family: inherit; font-size: 0.76rem; font-weight: 600;
  color: var(--text-mid); cursor: pointer;
  transition: all 0.3s;
}
.dash-svc-docs-toggle:hover {
  border-color: var(--green-pop); color: var(--green-pop);
}
.dash-svc-docs-toggle svg {
  width: 12px; height: 12px; transition: transform 0.3s;
}
.dash-svc-docs-toggle.open svg {
  transform: rotate(180deg);
}
.dash-svc-docs-toggle .doc-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: rgba(74,106,46,0.1); color: var(--green-pop);
  font-size: 0.65rem; font-weight: 700; padding: 0 5px;
}

.dash-svc-docs-list {
  margin-left: 58px; margin-top: 10px;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: var(--radius-md);
}
.dash-svc-docs-list.open {
  max-height: 600px;
}
.dash-svc-docs-list-inner {
  background: rgba(0,0,0,0.015);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.dash-doc-check-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  font-size: 0.8rem;
}
.dash-doc-check-row:last-child { border-bottom: none; }

.dash-doc-check-icon {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-doc-check-icon.received {
  background: rgba(74,106,46,0.1); color: var(--green-pop);
}
.dash-doc-check-icon.pending {
  background: rgba(232,168,58,0.12); color: #e8a83a;
}
.dash-doc-check-icon svg {
  width: 11px; height: 11px; stroke-width: 2.5;
}

.dash-doc-check-name {
  flex: 1; font-weight: 500; color: var(--text-dark);
}
.dash-doc-check-name.pending-doc {
  color: var(--text-mid);
}

.dash-doc-check-status {
  font-size: 0.68rem; font-weight: 600;
  padding: 2px 8px; border-radius: var(--radius-pill);
}
.dash-doc-check-status.received {
  background: rgba(74,106,46,0.08); color: var(--green-pop);
}
.dash-doc-check-status.pending {
  background: rgba(232,168,58,0.1); color: #e8a83a;
}

/* ── Payment History ── */
.dash-payments { margin-top: 0; }
.dash-payments-list {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.dash-pay-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.2s;
}
.dash-pay-row:last-child { border-bottom: none; }
.dash-pay-row:hover { background: rgba(74,106,46,0.02); }
.dash-pay-left {
  display: flex; align-items: center; gap: 14px;
}
.dash-pay-indicator {
  width: 4px; height: 28px; border-radius: 4px; flex-shrink: 0;
}
.dash-pay-indicator.paid { background: var(--green-pop); }
.dash-pay-indicator.due-soon { background: #e8a83a; }
.dash-pay-indicator.upcoming { background: rgba(0,0,0,0.1); }
.dash-pay-indicator.overdue { background: #dc3545; }
.dash-pay-info h4 {
  font-size: 0.88rem; font-weight: 600; color: var(--text-dark);
  margin-bottom: 2px;
}
.dash-pay-info span {
  font-size: 0.75rem; color: var(--text-mid); opacity: 0.6;
  font-family: 'DM Sans', monospace;
}
.dash-pay-right { text-align: right; }
.dash-pay-amount {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 2px;
}
.dash-pay-status {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dash-pay-status.paid { color: var(--green-pop); }
.dash-pay-status.due-soon { color: #e8a83a; }
.dash-pay-status.upcoming { color: var(--text-mid); opacity: 0.5; }
.dash-pay-status.overdue { color: #dc3545; }

/* ── Sidebar ── */
.dash-sidebar { display: flex; flex-direction: column; gap: 22px; }

/* Subscription card */
.dash-sub-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  animation: fadeUp 0.5s ease both 0.1s; opacity: 0;
}
.dash-sub-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.dash-sub-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 600; color: var(--text-dark);
}
.dash-plan-badge {
  padding: 5px 14px; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(74,106,46,0.12); color: var(--green-pop);
  border: 1.5px solid rgba(74,106,46,0.2);
}
.dash-sub-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 18px;
}
.dash-sub-price .period {
  font-size: 0.78rem; font-weight: 400; color: var(--text-mid);
  font-family: 'DM Sans', sans-serif;
}
.dash-sub-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 18px;
}
.dash-sub-meta-item .meta-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-mid); opacity: 0.6;
  margin-bottom: 2px;
}
.dash-sub-meta-item .meta-value {
  font-size: 0.88rem; font-weight: 600; color: var(--text-dark);
}
.dash-sub-meta-item .meta-value.active-status {
  color: var(--green-pop);
  display: flex; align-items: center; gap: 4px;
}
.dash-sub-meta-item .meta-value.active-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-pop);
}
.dash-sub-meta-item .meta-value.renewal-date {
  color: #e8a83a;
}
.dash-sub-services h4 {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-mid); opacity: 0.5;
  margin-bottom: 10px;
}
.dash-sub-services ul { list-style: none; }
.dash-sub-services ul li {
  padding: 6px 0; font-size: 0.85rem; color: var(--text-mid);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  display: flex; align-items: center; gap: 6px;
}
.dash-sub-services ul li:last-child { border-bottom: none; }
.dash-sub-services ul li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--green-pop); flex-shrink: 0;
}

/* Documents card */
.dash-docs-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  animation: fadeUp 0.5s ease both 0.2s; opacity: 0;
}
.dash-docs-list { display: flex; flex-direction: column; gap: 0; }
.dash-doc-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.dash-doc-row:last-child { border-bottom: none; }
.dash-doc-left {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.dash-doc-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.dash-doc-info {
  min-width: 0;
}
.dash-doc-info strong {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-dark); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.dash-doc-info span {
  font-size: 0.7rem; color: var(--text-mid); opacity: 0.6;
  display: block; line-height: 1.4;
}
.dash-doc-action {
  font-size: 0.75rem; font-weight: 600; padding: 5px 12px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  background: transparent; color: var(--text-mid); cursor: pointer;
  transition: all 0.3s; flex-shrink: 0; font-family: inherit;
  text-decoration: none; display: inline-block;
}
.dash-doc-action:hover {
  border-color: var(--green-pop); color: var(--green-pop);
  background: rgba(74,106,46,0.04);
}
.dash-doc-action.upload-cta {
  border-color: #e85d3a; color: #e85d3a;
}
.dash-doc-action.upload-cta:hover {
  background: rgba(232,93,58,0.06);
}

.dash-inline-btn {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(74,106,46,0.2);
  background: rgba(74,106,46,0.08);
  color: var(--green-pop);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}
.dash-inline-btn:hover {
  background: rgba(74,106,46,0.14);
  border-color: rgba(74,106,46,0.32);
}
.dash-inline-btn-muted {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--border);
}
.dash-inline-btn-muted:hover {
  background: rgba(0,0,0,0.03);
  color: var(--text-dark);
}
.dash-inline-btn-block {
  width: 100%;
  justify-content: center;
}

/* ── Dashboard Dispute Panel ────────────────────────────────────── */
.dash-disputes-panel,
.dash-dispute-summary-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.dash-disputes-panel {
  padding: 32px 28px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.dash-disputes-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-pop), #7fa958, var(--green-pop));
  background-size: 200% 100%;
  animation: shimmerBar 3s ease infinite;
}
@keyframes shimmerBar {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.dash-disputes-panel .dash-section-header {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.dash-disputes-panel .dash-section-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-disputes-panel .dash-section-header h2::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-pop);
  box-shadow: 0 0 0 3px rgba(74,106,46,0.15);
  flex-shrink: 0;
}
.dash-dispute-intro {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74,106,46,0.04), rgba(74,106,46,0.02));
  border-left: 3px solid rgba(74,106,46,0.2);
}
.dash-disputes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-dispute-card {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(250,249,245,0.95), rgba(255,255,255,1));
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.dash-dispute-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  border-color: rgba(74,106,46,0.15);
}
.dash-dispute-card::after {
  content: '';
  position: absolute;
  top: 14px; left: 0;
  width: 3px; height: 32px;
  border-radius: 0 4px 4px 0;
  background: var(--green-pop);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.dash-dispute-card:hover::after {
  opacity: 1;
}
.dash-dispute-card-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}
.dash-dispute-card-top h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 6px;
  line-height: 1.4;
}
.dash-dispute-service {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-pop);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-dispute-service::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.dash-dispute-service span {
  color: var(--text-mid);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
  font-weight: 500;
}
.dash-dispute-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.dash-dispute-meta span {
  font-size: 0.72rem;
  color: var(--text-mid);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  transition: background 0.2s ease;
}
.dash-dispute-card:hover .dash-dispute-meta span {
  background: rgba(0,0,0,0.05);
}
.dash-dispute-body {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-dark);
}
.dash-dispute-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74,106,46,0.06), rgba(74,106,46,0.03));
  border: 1px solid rgba(74,106,46,0.08);
  color: var(--text-dark);
  font-size: 0.82rem;
  line-height: 1.65;
  position: relative;
}
.dash-dispute-note strong {
  color: var(--green-pop);
}
.dash-dispute-attachments {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-attachment-btn {
  border: 1px solid rgba(74,106,46,0.18);
  background: rgba(74,106,46,0.06);
  color: var(--green-pop);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash-attachment-btn::before {
  content: '';
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%234a6a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E") no-repeat center/contain;
  flex-shrink: 0;
}
.dash-attachment-btn:hover {
  background: rgba(74,106,46,0.14);
  border-color: rgba(74,106,46,0.3);
  transform: translateY(-1px);
}
.dash-empty-note {
  border: 1.5px dashed rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  color: var(--text-mid);
  font-size: 0.86rem;
  background: linear-gradient(180deg, rgba(250,249,245,0.5), rgba(255,255,255,0.8));
}

/* ── Dispute Summary Sidebar Card ─────────────────────────────── */
.dash-dispute-summary-card {
  padding: 24px;
  margin-top: 20px;
  animation: fadeUp 0.5s ease both 0.24s; opacity: 0;
  position: relative;
  overflow: hidden;
}
.dash-dispute-summary-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(74,106,46,0.04);
}
.dash-dispute-summary-count {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.dash-dispute-summary-copy {
  font-size: 0.84rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ── Dispute Status Badges ────────────────────────────────────── */
.dash-status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dash-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.dash-status.status-new {
  background: rgba(91,127,181,0.1);
  color: #5b7fb5;
}
.dash-status.status-in-review {
  background: rgba(139,114,208,0.1);
  color: #7b5fc7;
}
.dash-status.status-resolved {
  background: rgba(74,106,46,0.1);
  color: var(--green-pop);
}
.dash-status.status-waiting-for-customer {
  background: rgba(232,168,58,0.12);
  color: #c1881f;
}
.dash-status.status-rejected {
  background: rgba(232,93,58,0.1);
  color: #c94d30;
}

/* ── Raise Dispute Modal ──────────────────────────────────────── */
.dash-dispute-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,22,18,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 160;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.dash-dispute-modal-overlay.show {
  display: flex;
  opacity: 1;
}
.dash-dispute-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--white);
  border-radius: 28px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 32px 100px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.1) inset;
  padding: 0;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
}
.dash-dispute-modal-overlay.show .dash-dispute-modal {
  transform: translateY(0) scale(1);
}
.dash-dispute-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(250,249,245,0.6), transparent);
}
.dash-dispute-modal-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.dash-dispute-modal-head p {
  color: var(--text-mid);
  font-size: 0.86rem;
  line-height: 1.6;
}
.dash-dispute-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.dash-dispute-close:hover {
  background: var(--bg-cream);
  border-color: rgba(0,0,0,0.12);
  color: var(--text-dark);
  transform: rotate(90deg);
}
.dash-dispute-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 32px 32px;
}
.dash-dispute-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.dash-dispute-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-dispute-field span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dash-dispute-field input,
.dash-dispute-field select,
.dash-dispute-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1.5px solid rgba(0,0,0,0.08);
  background: var(--white);
  padding: 13px 16px;
  font-size: 0.92rem;
  color: var(--text-dark);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dash-dispute-field input:focus,
.dash-dispute-field select:focus,
.dash-dispute-field textarea:focus {
  outline: none;
  border-color: var(--green-pop);
  box-shadow: 0 0 0 3px rgba(74,106,46,0.1);
}
.dash-dispute-field input::placeholder,
.dash-dispute-field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
.dash-dispute-field textarea {
  min-height: 140px;
  resize: vertical;
}
.dash-dispute-field small {
  color: var(--text-mid);
  font-size: 0.74rem;
  line-height: 1.5;
}
.dash-dispute-field input[type="file"] {
  padding: 10px 14px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--white), rgba(250,249,245,0.8));
}
.dash-dispute-field input[type="file"]::file-selector-button {
  background: var(--green-pop);
  color: var(--white);
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.2s ease;
}
.dash-dispute-field input[type="file"]::file-selector-button:hover {
  background: var(--accent);
}
.dash-dispute-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 20px;
}
.dash-dispute-modal-actions .dash-inline-btn {
  padding: 12px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.86rem;
}
.dash-dispute-modal-actions .dash-inline-btn:first-child {
  background: var(--green-pop);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(74,106,46,0.25);
}
.dash-dispute-modal-actions .dash-inline-btn:first-child:hover {
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(74,106,46,0.35);
  transform: translateY(-1px);
}

/* Custom request card */
.dash-request-card {
  background: linear-gradient(135deg, var(--accent), var(--bg-main));
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  color: var(--text-light);
  animation: fadeUp 0.5s ease both 0.3s; opacity: 0;
  position: relative; overflow: hidden;
}
.dash-request-card::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(197,201,168,0.08); pointer-events: none;
}
.dash-request-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600; margin-bottom: 6px;
}
.dash-request-card p {
  font-size: 0.8rem; opacity: 0.7; line-height: 1.5; margin-bottom: 16px;
}
.dash-request-card .btn-hero {
  font-size: 0.82rem; padding: 10px 22px;
  display: inline-block; width: auto;
}

/* Nav profile dropdown sign-out link */
.nav-signout-link { color: #dc3545 !important; }
.nav-signout-link:hover { background: rgba(220,53,69,0.06) !important; }

/* Nav user pill for logged-in state */
.nav-user-dropdown {
  position: relative;
}
.nav-user-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  background: rgba(255,255,255,0.1); border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.nav-user-pill:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.25);
}
.nav-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-pop); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 0.72rem; font-weight: 700;
}
.nav-user-name {
  font-size: 0.82rem; font-weight: 500; color: var(--text-light);
  opacity: 0.9;
}
.nav-user-chevron {
  opacity: 0.6; transition: transform 0.3s;
  color: var(--text-light);
}
.nav-user-dropdown.open .nav-user-chevron {
  transform: rotate(180deg);
}

/* User dropdown menu */
.nav-user-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--white); border-radius: var(--radius-md);
  padding: 8px; min-width: 200px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateY(8px); z-index: 200;
}
.nav-user-dropdown.open .nav-user-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.nav-user-menu a {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px; border-radius: 8px;
  font-size: 0.84rem; font-weight: 500; color: var(--text-dark);
  text-decoration: none; transition: background 0.2s;
}
.nav-user-menu a:hover {
  background: rgba(74,106,46,0.06);
}
.nav-user-menu a svg {
  flex-shrink: 0; opacity: 0.5;
}
.nav-user-menu-divider {
  height: 1px; background: var(--border); margin: 4px 8px;
}
.nav-user-menu .nav-signout-link {
  color: #dc3545 !important;
}
.nav-user-menu .nav-signout-link:hover {
  background: rgba(220,53,69,0.06) !important;
}

/* Invoice download button in payment rows */
.dash-pay-download {
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 12px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: transparent; color: var(--text-mid);
  cursor: pointer; transition: all 0.3s;
  font-family: inherit; margin-top: 4px;
  text-decoration: none; display: inline-block;
}
.dash-pay-download:hover {
  border-color: var(--green-pop); color: var(--green-pop);
  background: rgba(74,106,46,0.04);
}

/* Per-item subscription list */
.dash-sub-items { margin-top: 14px; }
.dash-sub-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.dash-sub-item:last-child { border-bottom: none; }
.dash-sub-item-name {
  font-size: 0.82rem; font-weight: 600; color: var(--text-dark);
}
.dash-sub-item-detail {
  font-size: 0.7rem; color: var(--text-mid); opacity: 0.7;
  margin-top: 1px;
}
.dash-sub-item-price {
  font-size: 0.82rem; font-weight: 700; color: var(--green-pop);
  text-align: right; white-space: nowrap;
}
.dash-sub-item-billing {
  font-size: 0.65rem; color: var(--text-mid); opacity: 0.6;
  text-align: right; margin-top: 1px;
}

/* Quick actions bar */
.dash-quick-actions {
  grid-column: 1 / -1;
  display: flex; gap: 12px; flex-wrap: wrap;
  margin: 4px 0 0;
}

/* Sticky section jump-nav */
.dash-subnav {
  grid-column: 1 / -1;
  position: sticky;
  top: 76px;
  z-index: 40;
  display: flex; gap: 6px;
  padding: 8px;
  margin: 4px 0 8px;
  background: rgba(242,239,229,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(30,38,18,0.04);
}
.dash-subnav-tab {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.dash-subnav-tab:focus-visible {
  outline: 2px solid var(--green-pop);
  outline-offset: 2px;
}
.dash-subnav-tab:hover {
  color: var(--green-pop);
  background: rgba(74,106,46,0.06);
}
.dash-subnav-tab.is-active {
  background: var(--green-pop);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(74,106,46,0.22);
}
.dash-subnav-tab svg { flex-shrink: 0; }
.dash-subnav-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; font-style: normal;
  background: rgba(232,168,58,0.18); color: #b77a10;
}
.dash-subnav-tab.is-active .dash-subnav-count {
  background: rgba(255,255,255,0.22); color: var(--white);
}

/* Tabbed panels — show only the active one */
.dash-main > .dash-panel { display: none; }
.dash-main > .dash-panel.is-active {
  display: block;
  animation: dashPanelIn 0.28s ease both;
}
.dash-main > .dash-panel[hidden] { display: none !important; }
@keyframes dashPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Services tab: add a leading dot on the section heading for consistency */
.dash-main > #servicesPanel .dash-section-header h2::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-pop);
  box-shadow: 0 0 0 3px rgba(74,106,46,0.15);
  flex-shrink: 0;
}

/* Payments tab: framed card surface, matching Disputes look */
.dash-main > #paymentsPanel .dash-payments {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 22px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.dash-main > #paymentsPanel .dash-payments::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-pop), #7fa958, var(--green-pop));
  background-size: 200% 100%;
  animation: shimmerBar 3s ease infinite;
}
.dash-main > #paymentsPanel .dash-section-header {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.dash-main > #paymentsPanel .dash-section-header h2 {
  display: flex; align-items: center; gap: 10px;
}
.dash-main > #paymentsPanel .dash-section-header h2::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-pop);
  box-shadow: 0 0 0 3px rgba(74,106,46,0.15);
  flex-shrink: 0;
}
.dash-quick-btn {
  flex: 1; min-width: 180px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 20px;
  background: var(--white); border: 1.5px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600; color: var(--text-dark);
  text-decoration: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
}
.dash-quick-btn:hover {
  border-color: rgba(74,106,46,0.4); color: var(--green-pop);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(74,106,46,0.08);
}
.dash-quick-btn span {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(74,106,46,0.06); color: var(--green-pop);
  transition: all 0.3s ease; flex-shrink: 0;
}
.dash-quick-btn:hover span {
  background: var(--green-pop); color: var(--white);
  transform: scale(1.05);
}
.dash-quick-btn svg { width: 16px; height: 16px; stroke-width: 2.2; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .steps-grid::before { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; }
  .service-details-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .coverage-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-grid { grid-template-columns: 1fr 280px; gap: 20px; }
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-6px); }
  .stats-ribbon { gap: 36px; flex-wrap: wrap; }
  .footer-cols { gap: 36px; }
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .value-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .coverage-grid { grid-template-columns: 1fr; max-width: 360px; }
  .services-overview-grid { grid-template-columns: 1fr; max-width: 480px; }
  .pricing-tabs { flex-wrap: wrap; gap: 4px; }
  .pricing-tab { padding: 8px 16px; font-size: 0.78rem; }
  .quote-builder { padding: 28px 20px; }
  .qb-content { grid-template-columns: 1fr; }
  .qb-summary { position: static; }
  .qb-tiers { flex-wrap: wrap; }
  .qb-tiers.open { max-height: 120px; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-container { padding: 20px 20px 40px; }
  .dash-welcome { flex-direction: column; text-align: center; padding: 24px 20px; }
  .dash-welcome-left { flex-direction: column; }
  .dash-welcome-right { text-align: center; }
  .dash-svc-desc { margin-left: 0; }
  .dash-progress { margin-left: 0; }
  .dash-svc-action { margin-left: 0; }
  .dash-svc-docs-toggle { margin-left: 0; }
  .dash-svc-docs-list { margin-left: 0; }
  .dash-quick-actions { flex-direction: column; }
  .dash-dispute-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services-grid, .why-grid, .steps-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn-hero, .btn-ghost { width: 100%; text-align: center; }
  .footer-top { flex-direction: column; }
  .footer-cols { flex-wrap: wrap; gap: 32px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .trust-logos { gap: 24px; }
  .section-pad { padding: 72px 20px; }
  .auth-card { padding: 36px 24px; }
  .auth-heading { font-size: 1.5rem; }
  .service-details-grid { grid-template-columns: 1fr; }
  .service-hero h1 { font-size: 2rem; }
  .phone-input-group { flex-direction: column; gap: 0; }
  .phone-prefix { min-width: 100%; margin-bottom: 8px; }
  .dash-svc-header { gap: 10px; }
  .dash-svc-icon { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; }
  .dash-progress-label { font-size: 0.6rem; max-width: 60px; }
  .dash-progress-dot { width: 24px; height: 24px; }
  .dash-pay-row { padding: 14px 16px; }
  .dash-welcome-text h1 { font-size: 1.25rem; }
  .nav-user-name { display: none; }
  .action-modal { max-width: 95vw; }
  .action-modal-top { padding: 20px 18px; }
  .action-modal-body { padding: 18px; }
  .action-modal-actions { padding: 14px 18px; flex-direction: column; }
  .action-modal-actions .action-btn { width: 100%; justify-content: center; }
  .dash-disputes-panel { padding: 20px 18px; }
  .dash-dispute-summary-card { padding: 18px; }
  .dash-dispute-modal { border-radius: 20px; }
  .dash-dispute-modal-head { padding: 20px 20px 16px; }
  .dash-dispute-form { padding: 20px 20px 24px; }
  .dash-dispute-card-top { flex-direction: column; }
  .dash-dispute-modal-actions { flex-direction: column-reverse; padding: 0; margin-top: 0; }
  .dash-dispute-modal-actions .dash-inline-btn { width: 100%; justify-content: center; }
  .dash-inline-btn { width: 100%; }
}

/* ── Toast Notifications ─────────────────────────────────────────── */
.nbi-toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 600;
  z-index: 10002; opacity: 0; transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); pointer-events: none;
}
.nbi-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.nbi-toast-success { background: var(--green-pop); color: #fff; }
.nbi-toast-error { background: #dc3545; color: #fff; }
.nbi-toast-info { background: var(--accent); color: var(--text-light); }

/* ── Action Modal ────────────────────────────────────────────────── */
.action-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  z-index: 10001; display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s ease;
}
.action-modal-overlay.show { display: flex; opacity: 1; }
.action-modal {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 520px; width: 92%; overflow: hidden;
  transform: translateY(40px) scale(0.95); opacity: 0;
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
}
.action-modal-overlay.show .action-modal {
  transform: translateY(0) scale(1); opacity: 1;
}
.action-modal-top {
  padding: 24px 28px;
  background: linear-gradient(135deg, #2d2f22 0%, #3a3c2c 50%, #3d5a28 100%);
  color: var(--text-light);
}
.action-modal-top .modal-svc-name {
  font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600;
  margin-bottom: 4px;
}
.action-modal-top .modal-step-label {
  font-size: 0.82rem; opacity: 0.7; font-weight: 500;
}
.action-modal-top .modal-action-title {
  font-size: 1.3rem; font-weight: 700; margin-top: 10px;
  font-family: 'Playfair Display', serif;
}
.action-modal-body {
  padding: 24px 28px;
}
.action-modal-body .modal-description {
  font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 18px;
}
.action-modal-body textarea {
  width: 100%; min-height: 90px; padding: 14px 16px;
  border: 1.5px solid var(--border, #d4d2c8); border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  resize: vertical; outline: none; transition: border-color 0.2s;
  background: var(--bg-cream);
}
.action-modal-body textarea:focus {
  border-color: var(--green-pop);
}
.action-modal-actions {
  display: flex; gap: 10px; padding: 16px 28px 24px;
  border-top: 1px solid #eee;
}
.action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent; transition: all 0.2s ease;
}
.action-btn-approve {
  background: var(--green-pop); color: #fff; border-color: var(--green-pop);
}
.action-btn-approve:hover { background: #3d5a24; border-color: #3d5a24; }
.action-btn-reject {
  background: transparent; color: #dc3545; border-color: #dc3545;
}
.action-btn-reject:hover { background: #dc3545; color: #fff; }
.action-btn-cancel {
  background: transparent; color: var(--text-mid); border: none;
  margin-left: auto; font-weight: 500;
}
.action-btn-cancel:hover { color: var(--text-dark); }

/* ── Decision Badge (replaces action button after approve/reject) ── */
.dash-decision-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.dash-decision-badge.approved {
  background: rgba(74,106,46,0.12); color: var(--green-pop);
}
.dash-decision-badge.rejected {
  background: rgba(220,53,69,0.1); color: #dc3545;
}

/* ── Live Status Badge (real-time admin data indicator) ───────────── */
.dash-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(74,106,46,0.08); color: var(--green-pop);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; margin-left: 8px; vertical-align: middle;
}
.dash-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-pop);
  animation: dashLivePulse 2s ease-in-out infinite;
  display: inline-block;
}
@keyframes dashLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ── Quotation Cards (customer dashboard) ────────────────────────── */
.dash-quote-card {
  background: var(--white); border: 1px solid #eae7dc; border-radius: var(--radius-md);
  padding: 20px; margin-bottom: 14px;
}
.dash-quote-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.dash-quote-head h4 {
  font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700;
  color: var(--text-dark); margin: 0;
}
.dash-quote-badge {
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 600;
}
.dash-quote-badge.new { background: rgba(59,130,246,0.1); color: #2563eb; }
.dash-quote-badge.in-review { background: rgba(168,85,247,0.1); color: #7c3aed; }
.dash-quote-badge.quoted { background: rgba(232,168,58,0.12); color: #b8860b; }
.dash-quote-badge.accepted { background: rgba(74,106,46,0.1); color: var(--green-pop); }
.dash-quote-badge.declined { background: rgba(220,53,69,0.08); color: #b0444f; }
.dash-quote-desc {
  font-size: 0.84rem; color: var(--text-mid); line-height: 1.5; margin-bottom: 14px;
}
.dash-quote-table {
  width: 100%; border-collapse: collapse; margin-bottom: 14px;
}
.dash-quote-table th {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); text-align: left;
  padding: 6px 0; border-bottom: 1px solid #eae7dc;
}
.dash-quote-table td {
  padding: 8px 0; font-size: 0.88rem; color: var(--text-dark);
  border-bottom: 1px solid #f4f2ec;
}
.dash-quote-table td:last-child { text-align: right; font-weight: 600; }
.dash-quote-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-top: 2px solid #eae7dc;
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700;
  color: var(--text-dark);
}
.dash-quote-actions {
  display: flex; gap: 10px; margin-top: 14px;
}
.dash-quote-btn {
  padding: 9px 20px; border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif; font-size: 0.84rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s; border: 2px solid transparent;
}
.dash-quote-accept {
  background: var(--green-pop); color: #fff; border-color: var(--green-pop);
}
.dash-quote-accept:hover { background: #3d5a24; }
.dash-quote-decline {
  background: transparent; color: #dc3545; border-color: #dc3545;
}
.dash-quote-decline:hover { background: #dc3545; color: #fff; }

/* ── Custom Request Service Cards (inline in My Services) ────────── */
.dash-svc-icon.cat-custom {
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(168,85,247,0.12));
  color: #6366f1;
}
.dash-custom-quote-detail {
  margin-top: 14px; padding: 16px; border-radius: var(--radius-md);
  background: var(--bg-cream); border: 1px solid rgba(0,0,0,0.06);
}
.dash-quote-line-items {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;
}
.dash-quote-line-item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.84rem; color: var(--text-dark); padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.dash-quote-line-item:last-child { border-bottom: none; }
.dash-quote-line-item span:last-child { font-weight: 600; color: var(--text-dark); }
.dash-quote-line-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.92rem; font-weight: 700; color: var(--text-dark);
  padding: 10px 0 14px; border-top: 1.5px solid rgba(0,0,0,0.1);
  margin-bottom: 4px;
}
.custom-request-card .dash-quote-actions {
  padding-top: 6px;
}
.dash-custom-pending-note {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.5;
  padding: 12px 14px; border-radius: var(--radius-md);
  background: rgba(232,168,58,0.06); border: 1px solid rgba(232,168,58,0.15);
}
.dash-custom-pending-note svg { flex-shrink: 0; color: #b8860b; }
.dash-custom-resolved-note {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 0.84rem; font-weight: 600; line-height: 1.5;
  padding: 12px 14px; border-radius: var(--radius-md);
}
.dash-custom-resolved-note.accepted {
  color: var(--green-pop); background: rgba(74,106,46,0.06);
  border: 1px solid rgba(74,106,46,0.15);
}
.dash-custom-resolved-note.declined {
  color: #b0444f; background: rgba(220,53,69,0.04);
  border: 1px solid rgba(220,53,69,0.1);
}
.dash-custom-resolved-note svg { flex-shrink: 0; }

/* ── Dashboard Document Preview Modal ────────────────────────────── */
.dash-doc-preview-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(8px);
  z-index: 10002; display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.35s ease;
}
.dash-doc-preview-overlay.show { display: flex; opacity: 1; }
.dash-doc-preview-panel {
  background: var(--white); border-radius: 16px;
  width: 92%; max-width: 960px; height: 88vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
  transform: translateY(30px) scale(0.96); opacity: 0;
  transition: all 0.45s cubic-bezier(0.16,1,0.3,1);
}
.dash-doc-preview-overlay.show .dash-doc-preview-panel {
  transform: translateY(0) scale(1); opacity: 1;
}
.dash-doc-preview-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #faf8f2 0%, #f4f2ec 100%);
  flex-shrink: 0;
}
.dash-doc-preview-title-area {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.dash-doc-preview-icon-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(74,106,46,0.08); color: var(--green-pop);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-doc-preview-header h3 {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  font-weight: 600; color: var(--text-dark); margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 400px;
}
.dash-doc-preview-sub {
  font-size: 0.75rem; color: var(--text-muted); margin-top: 1px;
}
.dash-doc-preview-btns {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.dash-doc-ctrl-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-mid); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; text-decoration: none; font-family: inherit;
}
.dash-doc-ctrl-btn:hover {
  border-color: var(--green-pop); color: var(--green-pop);
  background: rgba(74,106,46,0.04);
}
.dash-doc-ctrl-btn.dash-doc-close:hover {
  border-color: #dc3545; color: #dc3545;
  background: rgba(220,53,69,0.04);
}
.dash-doc-ctrl-btn.dash-doc-nav-btn {
  width: 32px; height: 32px; border-radius: 50%;
}
.dash-doc-ctrl-btn.dash-doc-nav-btn svg { width: 16px; height: 16px; }
.dash-doc-counter {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(74,106,46,0.08); color: var(--green-pop);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  min-width: 48px;
}
.dash-doc-preview-content {
  flex: 1; min-height: 350px; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: #f8f7f3; overflow: hidden;
}
.dash-doc-preview-loader {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 0.88rem; position: absolute;
  inset: 0; display: flex; align-items: center; justify-content: center;
}
.dash-doc-spinner {
  width: 32px; height: 32px; border: 3px solid #e8e4d4;
  border-top-color: var(--green-pop); border-radius: 50%;
  animation: dashDocSpin 0.8s linear infinite;
}
@keyframes dashDocSpin {
  to { transform: rotate(360deg); }
}
.dash-doc-frame {
  width: 100%; height: 100%; min-height: 400px; border: none;
  display: none; background: #fff;
}
.dash-doc-preview-img {
  max-width: 100%; max-height: 65vh; object-fit: contain;
  border-radius: 4px;
}
.dash-doc-preview-err {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: center; color: var(--text-muted); padding: 40px;
}
.dash-doc-preview-err h4 {
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  color: var(--text-dark); margin: 4px 0 0;
}
.dash-doc-preview-err p {
  font-size: 0.84rem; margin: 0 0 8px; max-width: 300px; line-height: 1.5;
}
.dash-doc-fallback-link {
  padding: 8px 20px; border-radius: var(--radius-pill);
  background: var(--green-pop); color: #fff; text-decoration: none;
  font-size: 0.84rem; font-weight: 600; transition: background 0.2s;
}
.dash-doc-fallback-link:hover { background: #3d5a24; }

@media (max-width: 600px) {
  .dash-doc-preview-panel { width: 98%; height: 94vh; border-radius: 12px; }
  .dash-doc-preview-header h3 { max-width: 180px; font-size: 0.9rem; }
  .dash-doc-preview-content { min-height: 280px; }
}

/* ══════════════════════════════════════════════════════════════════
   ADMIN DASHBOARD (Founder Portal)
   ══════════════════════════════════════════════════════════════════ */

.adm-page { margin: 0; padding: 0; background: var(--bg-cream); min-height: 100vh; display: flex; }

/* ── Sidebar ─────────────────────────────────────────────────────── */
.adm-sidebar {
  width: 260px; height: 100vh; background: #faf8f2; border-right: 1px solid #e8e4d4;
  padding: 28px 20px; position: fixed; top: 0; left: 0; z-index: 100;
  display: flex; flex-direction: column; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(74,106,46,0.2) transparent;
}
.adm-sidebar::-webkit-scrollbar { width: 5px; }
.adm-sidebar::-webkit-scrollbar-track { background: transparent; }
.adm-sidebar::-webkit-scrollbar-thumb { background: rgba(74,106,46,0.2); border-radius: 4px; }
.adm-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(74,106,46,0.35); }

/* ── Hamburger Toggle (hidden on desktop, visible on mobile) ────── */
.adm-hamburger {
  display: none; position: fixed; top: 16px; left: 16px; z-index: 200;
  width: 42px; height: 42px; border-radius: 10px;
  background: #faf8f2; border: 1.5px solid #e8e4d4;
  cursor: pointer; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: all 0.2s;
}
.adm-hamburger:hover { border-color: var(--green-pop); background: #fff; }
.adm-hamburger svg { width: 20px; height: 20px; color: var(--text-dark); }
.adm-hamburger.open svg .bar1 { transform: rotate(45deg) translate(3px, 3px); }
.adm-hamburger.open svg .bar2 { opacity: 0; }
.adm-hamburger.open svg .bar3 { transform: rotate(-45deg) translate(3px, -3px); }

/* ── Sidebar Overlay (mobile backdrop) ──────────────────────────── */
.adm-sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.3s ease;
}
.adm-sidebar-overlay.show { display: block; opacity: 1; }
.adm-logo { margin-bottom: 32px; }
.adm-logo-sub { font-family: 'DM Sans', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.adm-logo-main { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.adm-logo-main span { color: var(--green-pop); }

.adm-nav-group { margin-bottom: 22px; }
.adm-nav-label {
  font-family: 'DM Sans', sans-serif; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 8px; padding-left: 12px;
}
.adm-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--radius-md); cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  color: var(--text-mid); transition: all 0.15s ease; text-decoration: none;
  position: relative;
}
.adm-nav-item:hover { background: rgba(74,106,46,0.06); color: var(--text-dark); }
.adm-nav-item.active { color: var(--green-pop); font-weight: 600; }
.adm-nav-item.active::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-pop); position: absolute; left: -2px;
}
.adm-nav-badge {
  margin-left: auto; background: var(--green-pop); color: #fff;
  font-size: 0.68rem; font-weight: 700; padding: 2px 8px;
  border-radius: var(--radius-pill); min-width: 20px; text-align: center;
}
.adm-nav-badge.orange { background: #e8a83a; }
.adm-nav-badge.red { background: #dc3545; }

/* ── Main Layout ─────────────────────────────────────────────────── */
.adm-body { margin-left: 260px; flex: 1; display: flex; min-height: 100vh; }
.adm-main { flex: 1; padding: 28px 32px; max-width: 100%; }
.adm-right { width: 340px; min-width: 340px; padding: 28px 24px; border-left: 1px solid #e8e4d4; background: #faf8f2; }

/* ── Header ──────────────────────────────────────────────────────── */
.adm-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.adm-greeting h1 {
  font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700;
  color: var(--text-dark); margin: 0 0 2px;
}
.adm-greeting p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.adm-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Search */
.adm-search-wrap {
  position: relative; display: flex; align-items: center;
}
.adm-search-wrap svg {
  position: absolute; left: 12px; color: var(--text-muted); pointer-events: none;
}
.adm-search-input {
  padding: 9px 14px 9px 36px; border-radius: var(--radius-pill);
  border: 1.5px solid #d4d2c8; background: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
  color: var(--text-dark); width: 200px; transition: all 0.2s; outline: none;
}
.adm-search-input:focus { border-color: var(--green-pop); width: 260px; box-shadow: 0 0 0 3px rgba(74,106,46,0.08); }
.adm-search-input::placeholder { color: var(--text-muted); }

/* Progress percent label */
.adm-progress-pct { font-size: 0.7rem; color: var(--text-muted); margin-left: 6px; }

/* Service tags */
.adm-svc-tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; background: rgba(74,106,46,0.08);
  color: var(--green-pop); border: 1px solid rgba(74,106,46,0.12);
}

/* Task row hover */
.adm-task-row:hover { background: rgba(74,106,46,0.03); }
.adm-btn-export {
  padding: 9px 18px; border-radius: var(--radius-pill); border: 1.5px solid #d4d2c8;
  background: transparent; font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
  font-weight: 600; color: var(--text-mid); cursor: pointer; transition: all 0.15s;
}
.adm-btn-export:hover { border-color: var(--text-dark); color: var(--text-dark); }
.adm-btn-add {
  padding: 9px 20px; border-radius: var(--radius-pill); border: none;
  background: var(--green-pop); color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.adm-btn-add:hover { background: #3d5a24; }

/* ── Stats Cards ─────────────────────────────────────────────────── */
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.adm-stat-card {
  background: var(--white); border-radius: var(--radius-md); padding: 18px 20px;
  border: 1px solid #eae7dc;
}
.adm-stat-bar { height: 4px; border-radius: 2px; margin-bottom: 14px; }
.adm-stat-bar.green { background: var(--green-pop); }
.adm-stat-bar.orange { background: #e8a83a; }
.adm-stat-bar.blue { background: #5b7fb5; }
.adm-stat-bar.red { background: #dc3545; }
.adm-stat-label {
  font-family: 'DM Sans', sans-serif; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}
.adm-stat-num {
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
  color: var(--text-dark); line-height: 1.1;
}
.adm-stat-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.adm-stat-sub.green { color: var(--green-pop); }
.adm-stat-sub.orange { color: #e8a83a; }

/* ── Section Headers ─────────────────────────────────────────────── */
.adm-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.adm-section-head h2 {
  font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700;
  color: var(--text-dark); margin: 0;
}
.adm-link {
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 600;
  color: var(--green-pop); text-decoration: none; cursor: pointer;
}
.adm-link:hover { text-decoration: underline; }

/* ── Work Tracker Table ──────────────────────────────────────────── */
.adm-table-wrap {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid #eae7dc;
  overflow: hidden; margin-bottom: 32px;
}
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table thead th {
  font-family: 'DM Sans', sans-serif; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
  padding: 14px 16px; text-align: left; border-bottom: 1px solid #eae7dc;
}
.adm-table tbody td {
  padding: 14px 16px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  color: var(--text-dark); border-bottom: 1px solid #f4f2ec; vertical-align: middle;
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover { background: rgba(74,106,46,0.02); }

.adm-client-cell { display: flex; flex-direction: column; }
.adm-client-name { font-weight: 600; }
.adm-client-loc { font-size: 0.78rem; color: var(--text-muted); }

.adm-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.adm-status-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
}
.adm-status-badge.in-progress { background: rgba(74,106,46,0.1); color: var(--green-pop); }
.adm-status-badge.in-progress::before { background: var(--green-pop); }
.adm-status-badge.pending { background: rgba(232,168,58,0.12); color: #b8860b; }
.adm-status-badge.pending::before { background: #e8a83a; }
.adm-status-badge.in-review { background: rgba(91,127,181,0.1); color: #5b7fb5; }
.adm-status-badge.in-review::before { background: #5b7fb5; }
.adm-status-badge.completed { background: rgba(74,106,46,0.08); color: #6b8a50; }
.adm-status-badge.completed::before { background: #6b8a50; }
.adm-status-badge.active { background: rgba(74,106,46,0.1); color: var(--green-pop); }
.adm-status-badge.active::before { background: var(--green-pop); }
.adm-status-badge.done { background: rgba(74,106,46,0.08); color: #6b8a50; }
.adm-status-badge.done::before { background: #6b8a50; }
.adm-status-badge.new { background: rgba(220,53,69,0.1); color: #dc3545; }
.adm-status-badge.new::before { background: #dc3545; }
.adm-status-badge.quoted { background: rgba(139,144,96,0.12); color: #6b6e4a; }
.adm-status-badge.quoted::before { background: #6b6e4a; }
.adm-status-badge.accepted { background: rgba(74,106,46,0.1); color: var(--green-pop); }
.adm-status-badge.accepted::before { background: var(--green-pop); }
.adm-status-badge.resolved { background: rgba(74,106,46,0.1); color: var(--green-pop); }
.adm-status-badge.resolved::before { background: var(--green-pop); }
.adm-status-badge.declined { background: rgba(220,53,69,0.08); color: #b0444f; }
.adm-status-badge.declined::before { background: #b0444f; }
.adm-status-badge.waiting-for-customer { background: rgba(232,168,58,0.12); color: #b8860b; }
.adm-status-badge.waiting-for-customer::before { background: #e8a83a; }
.adm-status-badge.rejected { background: rgba(220,53,69,0.08); color: #b0444f; }
.adm-status-badge.rejected::before { background: #b0444f; }

.adm-progress-bar {
  width: 80px; height: 6px; background: #eae7dc; border-radius: 3px; overflow: hidden;
}
.adm-progress-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.adm-progress-fill.green { background: var(--green-pop); }
.adm-progress-fill.orange { background: #e8a83a; }
.adm-progress-fill.blue { background: #5b7fb5; }
.adm-progress-fill.muted { background: #6b8a50; }

.adm-deadline { font-size: 0.82rem; color: var(--text-mid); white-space: nowrap; }

/* ── Clients by Service ──────────────────────────────────────────── */
.adm-clients-section { margin-bottom: 32px; }
.adm-filter-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.adm-filter-tab {
  padding: 6px 16px; border-radius: var(--radius-pill); border: 1.5px solid #d4d2c8;
  background: transparent; font-family: 'DM Sans', sans-serif; font-size: 0.8rem;
  font-weight: 500; color: var(--text-mid); cursor: pointer; transition: all 0.15s;
}
.adm-filter-tab:hover { border-color: var(--green-pop); color: var(--green-pop); }
.adm-filter-tab.active {
  background: var(--green-pop); color: #fff; border-color: var(--green-pop);
}

.adm-client-list { display: flex; flex-direction: column; gap: 10px; }

/* Client Card */
.adm-client-card {
  background: var(--white); border: 1.5px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md); padding: 16px 18px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.adm-client-card:hover {
  border-color: rgba(74,106,46,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.adm-client-card-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.adm-client-main { flex: 1; min-width: 0; }
.adm-client-main strong { display: block; font-size: 0.95rem; color: var(--text-dark); }
.adm-client-email { display: block; font-size: 0.8rem; color: var(--text-mid); margin-top: 1px; }
.adm-client-card-details {
  display: flex; gap: 20px; margin-bottom: 10px; padding-left: 54px;
}
.adm-client-detail { display: flex; flex-direction: column; gap: 1px; }
.adm-detail-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.adm-client-detail span:last-child { font-size: 0.82rem; color: var(--text-dark); }
.adm-client-card-services { padding-left: 54px; display: flex; flex-wrap: wrap; gap: 6px; }
.adm-svc-tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; background: rgba(74,106,46,0.08);
  color: var(--green-pop); border: 1px solid rgba(74,106,46,0.12);
}
.adm-svc-tag.none { background: rgba(0,0,0,0.04); color: var(--text-muted); border-color: rgba(0,0,0,0.06); }

/* Legacy row (keep for backward compat) */
.adm-client-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-radius: var(--radius-md); transition: background 0.15s; cursor: default;
}
.adm-client-row:hover { background: rgba(74,106,46,0.03); }
.adm-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.adm-avatar.green, .adm-avatar-sm.green { background: var(--green-pop); }
.adm-avatar.orange, .adm-avatar-sm.orange { background: #e8a83a; }
.adm-avatar.blue, .adm-avatar-sm.blue { background: #5b7fb5; }
.adm-avatar.red, .adm-avatar-sm.red { background: #dc3545; }
.adm-avatar.muted, .adm-avatar-sm.muted { background: #8b9060; }

.adm-client-info { flex: 1; min-width: 0; }
.adm-client-info strong { display: block; font-size: 0.92rem; color: var(--text-dark); }
.adm-client-info span { display: block; font-size: 0.78rem; color: var(--text-muted); }

.adm-client-status { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.adm-client-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.adm-client-status.active { color: var(--green-pop); }
.adm-client-status.active::before { background: var(--green-pop); }
.adm-client-status.pending { color: #e8a83a; }
.adm-client-status.pending::before { background: #e8a83a; }
.adm-client-status.in-review { color: #5b7fb5; }
.adm-client-status.in-review::before { background: #5b7fb5; }
.adm-client-status.done { color: #6b8a50; }
.adm-client-status.done::before { background: #6b8a50; }
.adm-client-status.resolved { color: var(--green-pop); }
.adm-client-status.resolved::before { background: var(--green-pop); }
.adm-client-status.waiting-for-customer { color: #b8860b; }
.adm-client-status.waiting-for-customer::before { background: #e8a83a; }
.adm-client-status.rejected { color: #b0444f; }
.adm-client-status.rejected::before { background: #b0444f; }

/* ── Right Panel: Pending by Category ────────────────────────────── */
.adm-pending-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.adm-pending-item { display: flex; align-items: flex-start; gap: 14px; }
.adm-pending-num {
  font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700;
  color: var(--text-dark); line-height: 1; min-width: 32px;
}
.adm-pending-info strong { display: block; font-size: 0.9rem; color: var(--text-dark); }
.adm-pending-info span { font-size: 0.78rem; color: var(--text-muted); }

/* ── Right Panel: Custom Requests ────────────────────────────────── */
.adm-requests-list { display: flex; flex-direction: column; gap: 16px; }
.adm-request-card {
  background: var(--white); border-radius: var(--radius-md); padding: 16px;
  border: 1px solid #eae7dc;
}
.adm-request-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap;
}
.adm-request-head strong {
  font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--text-dark);
}
.adm-request-amount {
  margin-left: auto; font-family: 'Playfair Display', serif; font-size: 1.05rem;
  font-weight: 700; color: #8b4513;
}
.adm-request-desc { font-size: 0.84rem; color: var(--text-mid); line-height: 1.5; margin-bottom: 10px; }
.adm-request-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.adm-request-date { font-size: 0.75rem; color: var(--text-muted); }
.adm-request-actions { display: flex; gap: 8px; }
.adm-req-btn {
  padding: 6px 16px; border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.adm-req-accept { background: transparent; border: 1.5px solid var(--green-pop); color: var(--green-pop); }
.adm-req-accept:hover { background: var(--green-pop); color: #fff; }
.adm-req-decline { background: transparent; border: 1.5px solid #dc3545; color: #dc3545; }
.adm-req-decline:hover { background: #dc3545; color: #fff; }

/* ── Add Client Modal ────────────────────────────────────────────── */
.adm-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  z-index: 10001; display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.adm-modal-overlay.show { display: flex; opacity: 1; }
.adm-modal {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 480px; width: 92%; padding: 28px; transform: translateY(30px) scale(0.97);
  opacity: 0; transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  max-height: 90vh; overflow-y: auto;
}
.adm-modal-overlay.show .adm-modal { transform: translateY(0) scale(1); opacity: 1; }
.adm-modal h3 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
  margin: 0 0 20px; color: var(--text-dark);
}
.adm-form-group { margin-bottom: 14px; }
.adm-form-group label {
  display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-mid);
  margin-bottom: 5px; font-family: 'DM Sans', sans-serif;
}
.adm-form-group input, .adm-form-group select {
  width: 100%; padding: 10px 14px; border: 1.5px solid #d4d2c8;
  border-radius: var(--radius-md); font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; background: var(--bg-cream); outline: none;
  transition: border-color 0.2s;
}
.adm-form-group input:focus, .adm-form-group select:focus { border-color: var(--green-pop); }
.adm-form-checks {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.adm-form-checks label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
}
.adm-form-checks input[type="checkbox"] { accent-color: var(--green-pop); }
.adm-modal-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ── Pipeline Stepper (Task Edit Modal) ──────────────────────────── */
.te-pipeline {
  display: flex; flex-direction: column; gap: 0;
  padding: 4px 0; position: relative;
}
.te-pipe-step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; cursor: pointer; transition: all 0.2s;
  border-radius: 10px; position: relative; margin: 0 2px;
}
.te-pipe-step:hover { background: rgba(74,106,46,0.05); }
.te-pipe-step.active {
  background: rgba(74,106,46,0.07);
  box-shadow: inset 3px 0 0 var(--green-pop);
}
.te-pipe-step.done { opacity: 0.85; }
.te-pipe-step.done:hover { opacity: 1; }

/* Vertical connector line between steps */
.te-pipe-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 28px; /* center of indicator: 16px padding + 13px half of 26px */
  top: 40px; /* below indicator */
  width: 2px;
  bottom: -2px;
  background: #ddd8cc;
  z-index: 0;
}
.te-pipe-step.done:not(:last-child)::after {
  background: var(--green-pop); opacity: 0.35;
}
.te-pipe-step.active:not(:last-child)::after {
  background: var(--green-pop); opacity: 0.2;
}

.te-pipe-indicator {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1;
  background: #eae7dc; color: var(--text-muted);
  font-size: 0.72rem; font-weight: 700;
  transition: all 0.25s; border: 2px solid transparent;
}
.te-pipe-step.active .te-pipe-indicator {
  background: var(--green-pop); color: #fff;
  border-color: var(--green-pop);
  box-shadow: 0 0 0 4px rgba(74,106,46,0.15);
}
.te-pipe-step.done .te-pipe-indicator {
  background: #fff; color: var(--green-pop);
  border-color: var(--green-pop);
}
.te-pipe-num { font-size: 0.72rem; line-height: 1; }
.te-pipe-content { flex: 1; min-width: 0; padding-top: 2px; }
.te-pipe-label {
  font-size: 0.84rem; font-weight: 600; color: var(--text-dark);
  line-height: 1.3;
}
.te-pipe-step.done .te-pipe-label { color: var(--green-pop); }
.te-pipe-step.active .te-pipe-label { color: var(--text-dark); font-weight: 700; }
.te-pipe-desc {
  font-size: 0.73rem; color: var(--text-muted); line-height: 1.5;
  margin-top: 4px; display: none;
}
/* Only show description for active step */
.te-pipe-step.active .te-pipe-desc {
  display: block; color: var(--text-mid);
}

/* ── Task Edit Modal: sticky action bar so Save/Cancel/Delete are always reachable ── */
#taskEditModal .adm-modal {
  display: flex; flex-direction: column;
  padding: 28px 28px 0; max-height: 92vh;
}
#taskEditModal .adm-modal > h3 { flex-shrink: 0; }
#taskEditModal .adm-modal-actions {
  position: sticky; bottom: 0;
  margin: 4px -28px 0;
  padding: 14px 28px 18px;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 5;
  flex-shrink: 0;
}

/* ── Admin Documents Section ─────────────────────────────────────── */
.adm-filter-tab {
  padding: 5px 14px; border-radius: var(--radius-pill); border: 1.5px solid #d4d2c8;
  background: transparent; color: var(--text-mid); font-family: 'DM Sans', sans-serif;
  font-size: 0.76rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.adm-filter-tab:hover { border-color: var(--green-pop); color: var(--green-pop); }
.adm-filter-tab.active {
  background: var(--green-pop); color: #fff; border-color: var(--green-pop);
}

/* Document Card Grid */
.adm-docs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.adm-docs-empty {
  grid-column: 1 / -1; text-align: center; padding: 80px 20px;
  color: var(--text-mid);
}
.adm-docs-empty h4 {
  font-family: 'Playfair Display', serif; font-size: 1.25rem;
  color: var(--text-dark); margin: 0 0 10px;
}
.adm-docs-empty p {
  font-size: 0.9rem; max-width: 360px; margin: 0 auto; line-height: 1.6;
  opacity: 0.8;
}

/* ── Admin Dispute Center ──────────────────────────────────────── */
.adm-disputes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.adm-dispute-card {
  background: var(--white);
  border: 1.5px solid #eae7dc;
  border-radius: 18px;
  padding: 22px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.adm-dispute-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--green-pop);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transform: scaleY(0.3);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.adm-dispute-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
  border-color: rgba(74,106,46,0.18);
}
.adm-dispute-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}
.adm-dispute-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.adm-dispute-row h3 {
  margin-top: 6px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}
.adm-dispute-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-pop);
  display: flex;
  align-items: center;
  gap: 6px;
}
.adm-dispute-kicker::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.adm-dispute-tags,
.adm-dispute-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.adm-dispute-tags {
  margin: 14px 0;
}
.adm-dispute-tags span,
.adm-dispute-meta span {
  font-size: 0.72rem;
  color: var(--text-mid);
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  padding: 5px 12px;
  transition: background 0.2s ease;
}
.adm-dispute-card:hover .adm-dispute-tags span {
  background: rgba(0,0,0,0.05);
}
.adm-dispute-card p,
.adm-dispute-copy {
  color: var(--text-dark);
  font-size: 0.86rem;
  line-height: 1.7;
}
.adm-dispute-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74,106,46,0.06), rgba(74,106,46,0.02));
  border: 1px solid rgba(74,106,46,0.08);
  font-size: 0.82rem;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ── Admin Dispute Review Modal ───────────────────────────────── */
.adm-dispute-modal {
  max-width: 720px;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
}
.adm-dispute-modal h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  padding: 28px 32px 0;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
.adm-dispute-headline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 32px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(250,249,245,0.5), transparent);
}
.adm-dispute-headline strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}
.adm-dispute-meta {
  margin-bottom: 0;
  padding: 16px 32px;
  background: rgba(250,249,245,0.4);
  border-bottom: 1px solid var(--border);
}
.adm-dispute-meta span {
  font-size: 0.72rem;
  color: var(--text-mid);
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 6px 12px;
}
.adm-dispute-copy {
  margin-bottom: 0;
  padding: 20px 32px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-dark);
}
.adm-dispute-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 32px 20px;
}
.adm-dispute-file {
  border: 1px solid rgba(74,106,46,0.18);
  background: rgba(74,106,46,0.06);
  color: var(--green-pop);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.adm-dispute-file::before {
  content: '';
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%234a6a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E") no-repeat center/contain;
  flex-shrink: 0;
}
.adm-dispute-file:hover {
  background: rgba(74,106,46,0.14);
  border-color: rgba(74,106,46,0.3);
  transform: translateY(-1px);
}
.adm-dispute-files-empty {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0 32px 20px;
}
.adm-dispute-modal .adm-field-group {
  padding: 20px 32px 28px;
  background: linear-gradient(180deg, rgba(250,249,245,0.3), var(--white));
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.adm-dispute-modal .adm-field-group label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}
.adm-dispute-modal .adm-field-group select,
.adm-dispute-modal .adm-field-group textarea {
  width: 100%;
  border-radius: 14px;
  border: 1.5px solid rgba(0,0,0,0.08);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.adm-dispute-modal .adm-field-group select:focus,
.adm-dispute-modal .adm-field-group textarea:focus {
  outline: none;
  border-color: var(--green-pop);
  box-shadow: 0 0 0 3px rgba(74,106,46,0.1);
}
.adm-dispute-modal .adm-field-group textarea {
  min-height: 100px;
  resize: vertical;
}
.adm-dispute-modal .adm-modal-actions {
  padding: 0 32px 28px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.adm-dispute-modal .adm-btn-add {
  background: var(--green-pop);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(74,106,46,0.25);
  transition: all 0.2s ease;
}
.adm-dispute-modal .adm-btn-add:hover {
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(74,106,46,0.35);
  transform: translateY(-1px);
}
.adm-dispute-modal .adm-btn-export {
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,0.08);
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.adm-dispute-modal .adm-btn-export:hover {
  background: var(--bg-cream);
  border-color: rgba(0,0,0,0.12);
}

.adm-dcard {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); 
  position: relative; overflow: hidden;
}
.adm-dcard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--green-pop), var(--bg-highlight));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.adm-dcard-clickable { cursor: pointer; }
.adm-dcard-clickable:hover {
  border-color: var(--green-pop); transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.adm-dcard-clickable:hover::before { transform: scaleX(1); }
.adm-dcard-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.adm-dcard-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.adm-dcard-icon.doc-type-pdf { background: rgba(220,53,69,0.1); color: #c82333; }
.adm-dcard-icon.doc-type-image { background: rgba(59,130,246,0.1); color: #2563eb; }
.adm-dcard-icon.doc-type-other { background: rgba(74,106,46,0.1); color: var(--green-pop); }
.adm-dcard-ext {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  color: var(--text-mid); letter-spacing: 0.04em;
  padding: 3px 10px; background: var(--bg-cream); border-radius: 6px;
}
.adm-dcard-name {
  font-size: 0.95rem; font-weight: 700; color: var(--text-dark);
  line-height: 1.4; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-dcard-file {
  font-size: 0.75rem; color: var(--text-mid); opacity: 0.7; margin-bottom: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-dcard-meta {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--bg-light);
}
.adm-dcard-client {
  display: flex; align-items: center; gap: 8px;
}
.adm-dcard-client span {
  font-size: 0.8rem; font-weight: 600; color: var(--text-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-avatar-sm {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.adm-dcard-details {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.adm-dcard-date {
  font-size: 0.72rem; color: var(--text-mid); font-weight: 500;
}

@media (max-width: 600px) {
  .adm-docs-grid { grid-template-columns: 1fr; }
  .adm-dispute-row,
  .adm-dispute-headline { flex-direction: column; }
  .adm-dispute-modal h3 { padding: 20px 20px 0; }
  .adm-dispute-headline { padding: 14px 20px; }
  .adm-dispute-meta { padding: 14px 20px; }
  .adm-dispute-copy { padding: 16px 20px; }
  .adm-dispute-files { padding: 0 20px 16px; }
  .adm-dispute-files-empty { padding: 0 20px 16px; }
  .adm-dispute-modal .adm-field-group { padding: 16px 20px 20px; }
  .adm-dispute-modal .adm-modal-actions { padding: 0 20px 20px; flex-direction: column; }
  .adm-dispute-modal .adm-btn-add,
  .adm-dispute-modal .adm-btn-export { width: 100%; text-align: center; }
}

/* ── Document Preview Modal ──────────────────────────────────────── */
.adm-doc-preview-modal {
  width: 92%; max-width: 960px; height: 88vh;
  background: var(--white); border-radius: 20px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  transform: translateY(30px) scale(0.96); opacity: 0;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.adm-modal-overlay.show .adm-doc-preview-modal {
  transform: translateY(0) scale(1); opacity: 1;
}

.adm-doc-preview-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--bg-light);
  background: linear-gradient(135deg, #faf8f2 0%, #f4f2ec 100%);
  flex-shrink: 0;
}
.adm-doc-preview-info {
  display: flex; align-items: center; gap: 16px; min-width: 0;
}
.adm-doc-preview-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(74,106,46,0.08); color: var(--green-pop);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.adm-doc-preview-header h3 {
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--text-dark); margin: 0; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 450px;
}
.adm-doc-preview-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
}
.adm-doc-preview-meta span {
  font-size: 0.78rem; color: var(--text-mid); font-weight: 500; opacity: 0.8;
}
.adm-doc-preview-meta span:not(:last-child)::after {
  content: '\00b7'; margin-left: 8px; color: var(--text-muted);
}
.adm-doc-preview-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.adm-doc-action-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-mid); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; text-decoration: none;
}
.adm-doc-action-btn:hover {
  border-color: var(--green-pop); color: var(--green-pop);
  background: rgba(74,106,46,0.04);
}
.adm-doc-close-btn:hover {
  border-color: #dc3545; color: #dc3545;
  background: rgba(220,53,69,0.04);
}
.adm-doc-nav-btn {
  width: 34px; height: 34px; border-radius: 50%;
}
.adm-doc-nav-btn svg { width: 18px; height: 18px; }
.adm-doc-counter {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(74,106,46,0.1); color: var(--green-pop);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  min-width: 52px;
}

.adm-doc-preview-body {
  flex: 1; position: relative; overflow: hidden;
  background: #f4f2ec;
}
.adm-doc-preview-frame {
  width: 100%; height: 100%; border: none; display: none;
  background: #fff;
}
.adm-doc-preview-image {
  max-width: 100%; max-height: 100%; display: block;
  margin: 0 auto; object-fit: contain;
  padding: 24px; box-sizing: border-box;
}
.adm-doc-preview-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; color: var(--text-mid); font-size: 0.95rem;
}
.adm-doc-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3.5px solid #e8e5db; border-top-color: var(--green-pop);
  animation: admDocSpin 0.8s linear infinite;
}
@keyframes admDocSpin { to { transform: rotate(360deg); } }

.adm-doc-preview-error {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--text-mid); text-align: center; padding: 48px;
}
.adm-doc-preview-error h4 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  color: var(--text-dark); margin: 0;
}
.adm-doc-preview-error p {
  font-size: 0.9rem; max-width: 340px; line-height: 1.6; opacity: 0.8;
}
.adm-doc-fallback-btn {
  margin-top: 12px; padding: 12px 26px; border-radius: var(--radius-pill);
  background: var(--green-pop); color: #fff; text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 700;
  transition: all 0.25s; box-shadow: 0 4px 12px rgba(74,106,46,0.2);
}
.adm-doc-fallback-btn:hover { background: #3d5a24; transform: translateY(-1px); }

@media (max-width: 768px) {
  .adm-doc-preview-modal { width: 98%; height: 94vh; border-radius: 12px; }
  .adm-doc-preview-header { padding: 12px 16px; }
  .adm-doc-preview-header h3 { max-width: 200px; font-size: 0.9rem; }
}

/* ── Dispute attachment file list (client dashboard) ─────────────── */
.dash-dispute-file-list {
  display: flex; flex-direction: column; gap: 8px; margin-top: 10px;
}
.dash-dispute-file-list:empty { margin-top: 0; }
.dash-dispute-file-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: rgba(74, 106, 46, 0.05);
  border: 1px solid rgba(74, 106, 46, 0.18); border-radius: 8px;
  font-size: 0.82rem;
}
.dash-dispute-file-name {
  flex: 1; color: var(--text-dark); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-dispute-file-size {
  font-size: 0.72rem; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.dash-dispute-file-remove {
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(220, 53, 69, 0.12); color: #b02a37;
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.dash-dispute-file-remove:hover { background: rgba(220, 53, 69, 0.25); }

/* Admin dispute file chip — size em */
.adm-dispute-file em {
  font-style: normal; color: var(--text-muted); font-size: 0.72rem;
  font-weight: 500; margin-left: 4px;
}

/* ── Analytics Dashboard ─────────────────────────────────────────── */
.adm-analytics-range {
  font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.04em;
}

.adm-analytics-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
.adm-kpi-card {
  background: var(--white); border-radius: var(--radius-md); padding: 18px 20px;
  border: 1px solid #eae7dc; display: flex; gap: 14px; align-items: flex-start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.adm-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(43, 42, 36, 0.06);
  border-color: #d9d3c2;
}
.adm-kpi-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.adm-kpi-icon.revenue { background: rgba(90, 122, 61, 0.12); color: var(--green-pop); }
.adm-kpi-icon.pipeline { background: rgba(91, 127, 181, 0.12); color: #5b7fb5; }
.adm-kpi-icon.completion { background: rgba(232, 168, 58, 0.15); color: #c98d1f; }
.adm-kpi-icon.clients { background: rgba(220, 53, 69, 0.1); color: #c5333f; }
.adm-kpi-content { flex: 1; min-width: 0; }
.adm-kpi-label {
  font-family: 'DM Sans', sans-serif; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}
.adm-kpi-num {
  font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700;
  color: var(--text-dark); line-height: 1.1; letter-spacing: -0.01em;
}
.adm-kpi-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* Charts layout */
.adm-analytics-charts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.adm-chart-card {
  background: var(--white); border-radius: var(--radius-md); padding: 20px 22px;
  border: 1px solid #eae7dc;
}
.adm-chart-wide { grid-column: 1 / -1; }
.adm-chart-head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px;
}
.adm-chart-head h3 {
  font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700;
  color: var(--text-dark); margin: 0;
}
.adm-chart-hint {
  font-family: 'DM Sans', sans-serif; font-size: 0.7rem; color: var(--text-muted);
  letter-spacing: 0.03em;
}
.adm-chart-empty {
  text-align: center; color: var(--text-muted); font-size: 0.82rem;
  padding: 28px 0;
}

/* Vertical bars (revenue) */
.adm-chart-bars {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  height: 220px; align-items: end;
}
.adm-bar-col {
  display: flex; flex-direction: column; align-items: center; height: 100%;
  gap: 6px;
}
.adm-bar-val {
  font-family: 'DM Sans', sans-serif; font-size: 0.68rem; font-weight: 600;
  color: var(--text-mid); height: 14px; white-space: nowrap;
}
.adm-bar-track {
  width: 100%; max-width: 44px; flex: 1; display: flex; align-items: flex-end;
  border-radius: 6px 6px 0 0; overflow: hidden;
  background: linear-gradient(to top, #f5f2e8 0%, #faf8f0 100%);
}
.adm-bar-fill {
  width: 100%; min-height: 2px;
  background: linear-gradient(to top, var(--green-pop) 0%, #7a9a5d 100%);
  border-radius: 5px 5px 0 0; transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.adm-bar-fill.empty { background: #e8e4d4; box-shadow: none; }
.adm-bar-label {
  font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;
}

/* Donut chart */
.adm-chart-donut-wrap {
  display: flex; gap: 24px; align-items: center; justify-content: space-between;
}
.adm-chart-legend { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.adm-legend-row {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
}
.adm-legend-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  display: inline-block;
}
.adm-legend-label { flex: 1; color: var(--text-mid); font-weight: 500; }
.adm-legend-val { color: var(--text-dark); font-weight: 600; }
.adm-legend-val em {
  font-style: normal; color: var(--text-muted); font-weight: 500; font-size: 0.76rem;
}

/* Horizontal bars (country / service) */
.adm-chart-hbars { display: flex; flex-direction: column; gap: 11px; }
.adm-hbar-row {
  display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 12px;
}
.adm-hbar-label {
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; color: var(--text-mid);
  font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-hbar-track {
  height: 10px; background: #f5f2e8; border-radius: 5px; overflow: hidden;
}
.adm-hbar-fill {
  height: 100%; border-radius: 5px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.adm-hbar-fill.country {
  background: linear-gradient(to right, #5b7fb5 0%, #7a9bc9 100%);
}
.adm-hbar-fill.service {
  background: linear-gradient(to right, var(--green-pop) 0%, #7a9a5d 100%);
}
.adm-hbar-val {
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 700;
  color: var(--text-dark); text-align: right;
}

/* Activity chart */
.adm-activity-bars {
  display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px;
  height: 130px; align-items: end; margin-bottom: 10px;
}
.adm-act-col {
  display: flex; flex-direction: column; align-items: center; height: 100%;
  gap: 4px; cursor: default;
}
.adm-act-track {
  width: 100%; flex: 1; display: flex; align-items: flex-end;
  background: #f8f5ec; border-radius: 4px 4px 0 0; overflow: hidden;
}
.adm-act-fill {
  width: 100%;
  background: linear-gradient(to top, #c98d1f 0%, #e8a83a 100%);
  border-radius: 3px 3px 0 0; min-height: 0;
  transition: height 0.5s ease;
}
.adm-act-col:hover .adm-act-fill { filter: brightness(1.08); }
.adm-act-day {
  font-family: 'DM Sans', sans-serif; font-size: 0.68rem; font-weight: 600;
  color: var(--text-muted);
}
.adm-activity-legend {
  display: flex; justify-content: space-between; padding-top: 10px;
  border-top: 1px solid #f0ede4; font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem; color: var(--text-muted);
}
.adm-activity-legend > span { display: flex; align-items: center; gap: 6px; }

@media (max-width: 1024px) {
  .adm-analytics-kpis { grid-template-columns: repeat(2, 1fr); }
  .adm-analytics-charts { grid-template-columns: 1fr; }
  .adm-chart-wide { grid-column: 1; }
}
@media (max-width: 640px) {
  .adm-analytics-kpis { grid-template-columns: 1fr; }
  .adm-hbar-row { grid-template-columns: 90px 1fr 34px; gap: 8px; }
  .adm-chart-donut-wrap { flex-direction: column; align-items: center; gap: 16px; }
  .adm-activity-bars { gap: 3px; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .adm-right { width: 300px; min-width: 300px; padding: 24px 18px; }
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .adm-body { flex-direction: column; }
  .adm-right { width: 100%; min-width: 0; border-left: none; border-top: 1px solid #e8e4d4; padding: 24px 32px; }
}
@media (max-width: 768px) {
  .adm-hamburger { display: flex; }
  .adm-sidebar {
    transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
    box-shadow: none;
  }
  .adm-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  }
  .adm-body { margin-left: 0; }
  .adm-main { padding: 20px 16px; padding-top: 68px; }
  .adm-right { padding: 20px 16px; }
  .adm-stats { grid-template-columns: 1fr 1fr; }
  .adm-header { flex-direction: column; }
  .adm-table-wrap { overflow-x: auto; }
  .adm-client-card-details { padding-left: 0; }
  .adm-client-card-services { padding-left: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   Task Updates — admin modal + dashboard timeline
   ══════════════════════════════════════════════════════════════════ */

/* Admin task-edit modal: update form + timeline */
.te-photo-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px;
}
.te-photo-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1.5px dashed #c7c3b5;
  border-radius: 10px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-mid);
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s;
}
.te-photo-btn:hover {
  border-color: var(--green-pop);
  color: var(--green-pop);
  background: rgba(74,106,46,0.04);
}
.te-photo-hint {
  font-size: 0.78rem; color: var(--text-muted);
}
.te-photo-previews {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.te-photo-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--text-dark);
}
.te-photo-chip em {
  font-style: normal; color: var(--text-muted); font-size: 0.72rem;
}

.te-timeline {
  max-height: 260px; overflow-y: auto;
  padding: 4px 2px;
  border-left: 2px solid var(--border);
  margin-left: 6px;
}
.te-timeline-empty {
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 8px 0 8px 16px;
}
.te-timeline-item {
  position: relative;
  padding: 10px 0 14px 18px;
}
.te-timeline-dot {
  position: absolute; left: -7px; top: 14px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green-pop);
  box-shadow: 0 0 0 3px rgba(74,106,46,0.15);
}
.te-timeline-meta {
  font-size: 0.74rem; color: var(--text-muted); margin-bottom: 4px;
}
.te-timeline-note {
  font-size: 0.84rem; color: var(--text-dark); line-height: 1.5;
  white-space: pre-wrap;
}
.te-timeline-statusline {
  font-size: 0.76rem; color: var(--green-pop);
  font-weight: 600; margin-top: 4px;
}
.te-timeline-photos {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.te-timeline-photo-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  background: rgba(74,106,46,0.07);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--green-pop);
}

/* Dashboard service card: updates block */
.dash-svc-updates {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.dash-svc-updates-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.dash-svc-updates-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--green-pop);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.dash-svc-updates-title em {
  font-style: normal; color: var(--border);
}
.dash-svc-updates-view {
  border: 0; background: transparent;
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  color: var(--green-pop);
  cursor: pointer;
  padding: 4px 2px;
  transition: opacity 0.15s;
}
.dash-svc-updates-view:hover { opacity: 0.7; }

.dash-svc-updates-latest {
  background: rgba(74,106,46,0.05);
  border: 1px solid rgba(74,106,46,0.15);
  border-radius: 10px;
  padding: 12px 14px;
}
.dash-update-meta {
  font-size: 0.74rem; color: var(--text-muted); margin-bottom: 4px;
}
.dash-update-note {
  font-size: 0.85rem; color: var(--text-dark); line-height: 1.55;
  white-space: pre-wrap;
}
.dash-update-thumbs {
  display: flex; gap: 6px; margin-top: 10px;
}
.dash-update-thumb {
  position: relative;
  width: 42px; height: 42px; border-radius: 8px;
  border: 1.5px solid rgba(74,106,46,0.25);
  background: var(--white);
  color: var(--green-pop);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.dash-update-thumb:hover {
  border-color: var(--green-pop);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(74,106,46,0.18);
}
.dash-update-thumb-more {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--green-pop);
  color: var(--white);
  font-size: 0.66rem; font-weight: 700;
  padding: 2px 5px; border-radius: 999px;
  min-width: 20px; text-align: center;
}

/* Dashboard timeline modal */
.dash-timeline-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(30,38,18,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.dash-timeline-overlay.show { opacity: 1; }
.dash-timeline-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 640px;
  max-height: 86vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s ease;
}
.dash-timeline-overlay.show .dash-timeline-panel {
  transform: translateY(0) scale(1);
}
.dash-timeline-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}
.dash-timeline-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--text-dark);
}
.dash-timeline-head p {
  font-size: 0.82rem; color: var(--text-mid);
  margin-top: 4px;
}
.dash-timeline-close {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.dash-timeline-close:hover {
  border-color: #dc3545; color: #dc3545;
  background: rgba(220,53,69,0.04);
}
.dash-timeline-body {
  flex: 1; overflow-y: auto;
  padding: 20px 26px 24px;
}
.dash-timeline-empty {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 30px 12px; text-align: center;
}
.dash-timeline-item {
  position: relative;
  padding: 6px 0 18px 22px;
  border-left: 2px solid var(--border);
  margin-left: 6px;
}
.dash-timeline-item:last-child { padding-bottom: 4px; }
.dash-timeline-dot {
  position: absolute; left: -7px; top: 10px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green-pop);
  box-shadow: 0 0 0 3px rgba(74,106,46,0.15);
}
.dash-timeline-body .dash-timeline-meta {
  font-size: 0.76rem; color: var(--text-muted); margin-bottom: 5px;
}
.dash-timeline-body .dash-timeline-note {
  font-size: 0.88rem; color: var(--text-dark); line-height: 1.6;
  white-space: pre-wrap;
}
.dash-timeline-statusline {
  font-size: 0.78rem; color: var(--green-pop);
  margin-top: 6px;
}
.dash-timeline-photos {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.dash-timeline-photo {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: rgba(74,106,46,0.07);
  border: 1px solid rgba(74,106,46,0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.76rem;
  color: var(--green-pop);
  cursor: pointer;
  transition: all 0.15s;
}
.dash-timeline-photo:hover {
  background: rgba(74,106,46,0.12);
  border-color: var(--green-pop);
}

/* Acknowledgment — badges, buttons, unread pill */
.dash-update-unread-pill {
  display: inline-flex; align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  background: #e8a83a;
  color: var(--white);
  font-size: 0.68rem; font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
  animation: pulseGlow 2s ease infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,168,58,0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(232,168,58,0); }
}

.dash-update-ack-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.68rem; font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.dash-update-ack-badge.ack {
  background: rgba(74,106,46,0.12); color: var(--green-pop);
}
.dash-update-ack-badge.concern {
  background: rgba(220,53,69,0.12); color: #b42f3d;
}

.dash-update-actions {
  display: flex; gap: 8px;
  margin-top: 12px;
}
.dash-update-ack-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1.5px solid transparent;
}
.dash-update-ack-btn.ack {
  background: var(--green-pop); color: var(--white);
  border-color: var(--green-pop);
}
.dash-update-ack-btn.ack:hover {
  background: #3e5a27; border-color: #3e5a27;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(74,106,46,0.2);
}
.dash-update-ack-btn.concern {
  background: var(--white); color: #b42f3d;
  border-color: rgba(220,53,69,0.35);
}
.dash-update-ack-btn.concern:hover {
  background: rgba(220,53,69,0.06); border-color: #b42f3d;
}

/* Admin timeline — ack chip per update */
.te-timeline-ack {
  display: inline-flex; align-items: center;
  margin-top: 8px;
  padding: 3px 10px;
  font-size: 0.72rem; font-weight: 600;
  border-radius: 999px;
}
.te-timeline-ack.ack {
  background: rgba(74,106,46,0.12); color: var(--green-pop);
}
.te-timeline-ack.concern {
  background: rgba(220,53,69,0.12); color: #b42f3d;
}
.te-timeline-ack.pending {
  background: rgba(232,168,58,0.14); color: #b77a10;
}

/* ══════════════════════════════════════════
   Employee Portal (.emp-*)
   ══════════════════════════════════════════ */
body.emp-page {
  background: var(--bg-cream);
  color: var(--text-dark);
  min-height: 100vh;
}
.emp-container {
  max-width: 1100px; margin: 0 auto;
  padding: 100px 32px 60px;
}
.emp-welcome {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  animation: fadeUp 0.5s ease both;
}
.emp-welcome h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--text-dark);
}
.emp-welcome .emp-welcome-sub {
  font-size: 0.8rem; color: var(--text-mid); opacity: 0.7;
  margin-top: 2px;
}
.emp-welcome .emp-welcome-stat {
  text-align: right;
}
.emp-welcome .emp-welcome-stat .emp-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--green-pop);
}
.emp-welcome .emp-welcome-stat .emp-stat-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-mid); font-weight: 600;
}

.emp-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 8px 0 14px;
}
.emp-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 600;
  color: var(--text-dark);
}
.emp-filter-tabs {
  display: inline-flex; gap: 6px;
  background: rgba(0,0,0,0.04);
  padding: 4px; border-radius: 999px;
}
.emp-filter-tab {
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-mid);
  background: transparent; border: none; cursor: pointer;
  transition: all 0.15s;
}
.emp-filter-tab.active {
  background: var(--green-pop); color: var(--white);
}

.emp-tasks-list {
  display: flex; flex-direction: column; gap: 16px;
}
.emp-task-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  border: 1px solid var(--border);
  animation: fadeUp 0.5s ease both;
}
.emp-task-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.emp-task-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.emp-task-client {
  font-size: 0.78rem; color: var(--text-mid);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.emp-task-desc {
  font-size: 0.88rem; color: var(--text-mid); line-height: 1.5;
  margin: 6px 0 12px;
}
.emp-task-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 0.78rem; color: var(--text-mid);
}
.emp-task-meta strong { color: var(--text-dark); font-weight: 600; }
.emp-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.emp-status-badge.pending { background: rgba(232,168,58,0.14); color: #b77a10; }
.emp-status-badge.in-progress { background: rgba(74,106,46,0.12); color: var(--green-pop); }
.emp-status-badge.in-review { background: rgba(50,114,176,0.14); color: #2568a6; }
.emp-status-badge.completed { background: rgba(74,106,46,0.18); color: var(--green-pop); }

.emp-progress-bar {
  height: 6px; border-radius: 999px;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
  margin: 10px 0 14px;
}
.emp-progress-fill {
  height: 100%; background: var(--green-pop);
  transition: width 0.4s ease;
}

.emp-task-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.emp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px;
  font-size: 0.85rem; font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--text-dark);
  cursor: pointer; transition: all 0.15s;
}
.emp-btn:hover { border-color: var(--green-pop); color: var(--green-pop); }
.emp-btn.primary {
  background: var(--green-pop); color: var(--white); border-color: var(--green-pop);
}
.emp-btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.emp-btn.danger {
  color: #b42f3d; border-color: #b42f3d;
}
.emp-btn.danger:hover { background: rgba(220,53,69,0.06); }

.emp-timeline {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.emp-timeline-head {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.emp-update-item {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.emp-update-item:last-child { border-bottom: none; }
.emp-update-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(74,106,46,0.12); color: var(--green-pop);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem;
  flex-shrink: 0;
}
.emp-update-body { flex: 1; min-width: 0; }
.emp-update-author {
  font-size: 0.82rem; font-weight: 600; color: var(--text-dark);
}
.emp-update-date {
  font-size: 0.72rem; color: var(--text-mid); opacity: 0.7;
  margin-left: 8px;
}
.emp-update-note {
  font-size: 0.88rem; color: var(--text-mid); line-height: 1.5;
  margin-top: 4px;
}
.emp-update-photos {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.emp-update-photo {
  width: 64px; height: 64px; border-radius: 8px;
  background-size: cover; background-position: center;
  border: 1px solid var(--border);
  cursor: pointer;
}

/* Post update form */
.emp-post-form {
  background: rgba(74,106,46,0.04);
  border: 1px solid rgba(74,106,46,0.18);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 14px;
}
.emp-post-form textarea,
.emp-post-form select,
.emp-post-form input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font: inherit; font-size: 0.88rem;
  background: var(--white);
  color: var(--text-dark);
  resize: vertical;
}
.emp-post-form textarea { min-height: 72px; }
.emp-post-form label {
  display: block;
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.emp-post-form .emp-form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 12px;
}
.emp-post-form .emp-form-row-full { margin-bottom: 12px; }
.emp-file-row {
  display: flex; align-items: center;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 6px;
  font-size: 0.8rem;
}
.emp-file-row-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-file-row-size { color: var(--text-mid); font-size: 0.72rem; margin: 0 8px; }
.emp-file-row-remove {
  background: none; border: none; cursor: pointer;
  color: #b42f3d; font-size: 1.1rem; line-height: 1;
  padding: 0 4px;
}

/* Status gate (pending / rejected / suspended) */
.emp-gate {
  max-width: 520px; margin: 120px auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  border: 1px solid var(--border);
  animation: fadeUp 0.5s ease both;
}
.emp-gate-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.emp-gate-icon.pending { background: rgba(232,168,58,0.14); color: #b77a10; }
.emp-gate-icon.rejected { background: rgba(220,53,69,0.14); color: #b42f3d; }
.emp-gate-icon.suspended { background: rgba(120,120,120,0.14); color: #444; }
.emp-gate h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.emp-gate p {
  font-size: 0.9rem; color: var(--text-mid); line-height: 1.6;
}
.emp-gate .emp-gate-reason {
  margin-top: 16px; padding: 12px 16px;
  background: rgba(220,53,69,0.08);
  border-left: 3px solid #b42f3d;
  border-radius: 8px;
  font-size: 0.85rem; color: var(--text-dark);
  text-align: left;
}

.emp-empty {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  border: 1px dashed var(--border);
  color: var(--text-mid);
  font-size: 0.9rem;
}

/* ── Signup page (reuses .auth-* plus a few extras) ── */
.emp-signup-panel {
  max-width: 640px; margin: 100px auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  border: 1px solid var(--border);
  animation: fadeUp 0.5s ease both;
}
.emp-signup-panel h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.emp-signup-panel .emp-signup-sub {
  font-size: 0.88rem; color: var(--text-mid);
  line-height: 1.5; margin-bottom: 28px;
}
.emp-signup-panel form { display: flex; flex-direction: column; gap: 16px; }
.emp-field label {
  display: block;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.emp-field input[type="text"],
.emp-field input[type="email"],
.emp-field input[type="password"],
.emp-field input[type="tel"] {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit; font-size: 0.92rem;
  background: var(--bg-cream);
  color: var(--text-dark);
}
.emp-field input:focus {
  outline: none; border-color: var(--green-pop);
  background: var(--white);
}
.emp-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.emp-skills-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin-top: 4px;
}
.emp-skill-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--bg-cream);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem; cursor: pointer;
  transition: all 0.15s;
}
.emp-skill-chip input { margin: 0; }
.emp-skill-chip:hover { border-color: var(--green-pop); }
.emp-skill-chip.checked {
  background: rgba(74,106,46,0.08);
  border-color: var(--green-pop);
  color: var(--green-pop);
  font-weight: 600;
}
.emp-upload-box {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  background: var(--bg-cream);
  cursor: pointer; transition: all 0.15s;
}
.emp-upload-box:hover { border-color: var(--green-pop); }
.emp-upload-box.has-file {
  border-style: solid; border-color: var(--green-pop);
  background: rgba(74,106,46,0.04);
}
.emp-upload-box .emp-upload-label {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-dark);
}
.emp-upload-box .emp-upload-hint {
  font-size: 0.75rem; color: var(--text-mid);
  margin-top: 4px;
}
.emp-signup-submit {
  margin-top: 20px;
  padding: 14px 24px;
  border: none; border-radius: 12px;
  background: var(--green-pop); color: var(--white);
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.emp-signup-submit:hover { background: var(--accent); }
.emp-signup-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.emp-signup-success {
  text-align: center;
  padding: 40px 20px;
}
.emp-signup-success .emp-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(74,106,46,0.14); color: var(--green-pop);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.emp-signup-success h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--text-dark);
  margin-bottom: 10px;
}
.emp-signup-success p {
  font-size: 0.9rem; color: var(--text-mid); line-height: 1.6;
}

/* ── Client dashboard additions for employee visibility ── */
.dash-update-author {
  font-weight: 600; color: var(--green-pop);
}
.dash-svc-assigned-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(74,106,46,0.08);
  color: var(--green-pop);
  font-size: 0.72rem; font-weight: 600;
  margin-left: auto; white-space: nowrap;
}
.dash-svc-assigned-pill svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Admin task table — assignee cell */
.adm-assignee-cell {
  display: flex; flex-direction: column; gap: 1px;
}
.adm-assignee-name {
  font-weight: 600; font-size: 0.84rem; color: var(--green-pop);
}

/* Admin employees table */
.adm-emp-skills {
  display: inline-flex; flex-wrap: wrap; gap: 4px;
}
.adm-emp-skill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(74,106,46,0.08); color: var(--green-pop);
  font-size: 0.7rem; font-weight: 600;
}
.adm-emp-status {
  display: inline-flex; padding: 3px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.adm-emp-status.pending { background: rgba(232,168,58,0.14); color: #b77a10; }
.adm-emp-status.approved { background: rgba(74,106,46,0.12); color: var(--green-pop); }
.adm-emp-status.rejected { background: rgba(220,53,69,0.12); color: #b42f3d; }
.adm-emp-status.suspended { background: rgba(120,120,120,0.14); color: #444; }

@media (max-width: 700px) {
  .emp-container { padding: 90px 16px 40px; }
  .emp-signup-panel { padding: 28px 24px; margin: 80px 16px; }
  .emp-field-row { grid-template-columns: 1fr; }
  .emp-skills-grid { grid-template-columns: 1fr; }
  .emp-post-form .emp-form-row { grid-template-columns: 1fr; }
  .emp-welcome { flex-direction: column; align-items: flex-start; }
  .emp-welcome .emp-welcome-stat { text-align: left; }
}

/* ══════════════════════════════════════════
   OPERATIONS BOARD
   ══════════════════════════════════════════ */
.ops-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; min-height: 400px; }
.ops-column { flex: 0 0 260px; background: #f7f5ee; border-radius: var(--radius-md); padding: 14px; }
.ops-column-head { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.ops-column-count { background: var(--bg-cream); border-radius: var(--radius-pill); padding: 2px 8px; font-size: 0.68rem; font-weight: 600; color: var(--text-mid); }
.ops-column.escalated .ops-column-head { color: #dc3545; }
.ops-column.escalated .ops-column-count { background: #fde8ea; color: #dc3545; }
.ops-cards { display: flex; flex-direction: column; gap: 10px; }

.ops-card { background: var(--white); border-radius: var(--radius-md); padding: 14px; border: 1.5px solid #eae7dc; cursor: pointer; transition: box-shadow 0.2s, border-color 0.2s; }
.ops-card:hover { border-color: var(--green-pop); box-shadow: 0 2px 8px rgba(74,106,46,0.1); }
.ops-card-client { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 2px; }
.ops-card-service { font-size: 0.78rem; color: var(--text-mid); margin-bottom: 8px; }
.ops-card-step { font-size: 0.76rem; color: var(--green-pop); font-weight: 600; margin-bottom: 8px; }
.ops-card-employee { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ops-card-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--green-pop); color: var(--white); font-size: 0.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ops-card-emp-name { font-size: 0.78rem; color: var(--text-mid); }
.ops-card-footer { display: flex; align-items: center; justify-content: space-between; }
.ops-card-age { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill); }
.ops-card-age.green { background: #e8f5e3; color: #3d6b24; }
.ops-card-age.orange { background: #fef3e0; color: #b5700a; }
.ops-card-age.red { background: #fde8ea; color: #dc3545; }
.ops-card-dots { display: flex; gap: 4px; }
.ops-card-dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; }
.ops-card-dot.done { background: var(--green-pop); }
.ops-card-dot.active { background: #e8a83a; }
.ops-card-unassigned { font-size: 0.78rem; color: #dc3545; font-style: italic; margin-bottom: 8px; }

/* Board filters */
.ops-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.ops-filter-select { padding: 6px 12px; border: 1.5px solid #d4d2c8; border-radius: var(--radius-md); font-family: inherit; font-size: 0.8rem; background: var(--white); color: var(--text-dark); outline: none; }
.ops-filter-select:focus { border-color: var(--green-pop); }

/* ══════════════════════════════════════════
   EMPLOYEE SCORECARDS
   ══════════════════════════════════════════ */
.score-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.score-card { background: var(--white); border-radius: var(--radius-md); padding: 20px; border: 1.5px solid #eae7dc; position: relative; }
.score-card.flagged-under { border-color: #dc3545; }
.score-card.flagged-top { border-color: var(--green-pop); }
.score-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.score-card-info h4 { font-size: 0.95rem; margin: 0; color: var(--text-dark); }
.score-card-info span { font-size: 0.78rem; color: var(--text-muted); }
.score-ring { width: 52px; height: 52px; margin-left: auto; position: relative; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring-value { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; color: var(--text-dark); }
.score-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.score-stat { background: var(--bg-cream); border-radius: 8px; padding: 8px 10px; }
.score-stat-label { font-size: 0.66rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; }
.score-stat-value { font-size: 0.92rem; font-weight: 700; color: var(--text-dark); margin-top: 2px; }
.score-workload { margin-top: 8px; }
.score-workload-label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 4px; display: flex; justify-content: space-between; }
.score-workload-bar { height: 6px; background: #eae7dc; border-radius: 3px; overflow: hidden; }
.score-workload-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.score-workload-fill.low { background: var(--green-pop); }
.score-workload-fill.mid { background: #e8a83a; }
.score-workload-fill.high { background: #dc3545; }
.score-flag { position: absolute; top: 12px; right: 12px; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: var(--radius-pill); }
.score-flag.top { background: #e8f5e3; color: #3d6b24; }
.score-flag.under { background: #fde8ea; color: #dc3545; }

/* Leaderboard */
.leaderboard { margin-top: 24px; }
.leaderboard-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #eae7dc; }
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-rank { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.78rem; }
.leaderboard-rank.gold { background: #fef3e0; color: #b5700a; }
.leaderboard-rank.silver { background: #f0ede4; color: #6b6e4a; }
.leaderboard-rank.bronze { background: #fde8ea; color: #b5700a; }
.leaderboard-rank.normal { background: var(--bg-cream); color: var(--text-muted); }
.leaderboard-info { flex: 1; }
.leaderboard-name { font-weight: 600; font-size: 0.88rem; }
.leaderboard-meta { font-size: 0.76rem; color: var(--text-muted); }
.leaderboard-score { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; }

/* ══════════════════════════════════════════
   STEP PIPELINE (shared: admin, employee, client)
   ══════════════════════════════════════════ */
.step-pipeline { display: flex; flex-direction: column; gap: 0; }
.step-pipe-item { display: flex; gap: 12px; padding: 12px 0; position: relative; }
.step-pipe-item:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 44px; bottom: 0; width: 2px; background: #eae7dc; }
.step-pipe-item.done:not(:last-child)::before { background: var(--green-pop); }
.step-pipe-indicator { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.74rem; font-weight: 700; flex-shrink: 0; z-index: 1; border: 2px solid #ddd; background: var(--white); color: var(--text-muted); }
.step-pipe-item.done .step-pipe-indicator { background: var(--green-pop); color: var(--white); border-color: var(--green-pop); }
.step-pipe-item.active .step-pipe-indicator { background: #e8a83a; color: var(--white); border-color: #e8a83a; }
.step-pipe-item.disputed .step-pipe-indicator { background: #dc3545; color: var(--white); border-color: #dc3545; }
.step-pipe-item.escalated .step-pipe-indicator { background: #8b0000; color: var(--white); border-color: #8b0000; }
.step-pipe-content { flex: 1; min-width: 0; }
.step-pipe-name { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); }
.step-pipe-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.step-pipe-status { font-size: 0.72rem; font-weight: 600; margin-top: 6px; padding: 2px 8px; border-radius: var(--radius-pill); display: inline-block; }
.step-pipe-status.pending { background: #f0ede4; color: var(--text-muted); }
.step-pipe-status.in-progress { background: #fef3e0; color: #b5700a; }
.step-pipe-status.proof-submitted { background: #e0ecf7; color: #3b6fa0; }
.step-pipe-status.client-accepted { background: #e8f5e3; color: #3d6b24; }
.step-pipe-status.client-disputed { background: #fde8ea; color: #dc3545; }
.step-pipe-status.escalated { background: #fde8ea; color: #8b0000; }
.step-pipe-status.completed { background: #e8f5e3; color: #3d6b24; }

/* Proof display within step */
.step-proof-box { background: var(--bg-cream); border-radius: var(--radius-md); padding: 12px; margin-top: 8px; }
.step-proof-note { font-size: 0.84rem; color: var(--text-dark); margin-bottom: 8px; }
.step-proof-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.step-proof-photo { width: 56px; height: 56px; border-radius: 8px; background: #ddd center/cover no-repeat; cursor: pointer; border: 1.5px solid #eae7dc; }
.step-proof-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; }
.step-proof-actions { display: flex; gap: 8px; margin-top: 10px; }
.step-proof-btn { padding: 6px 16px; border-radius: var(--radius-md); font-family: inherit; font-size: 0.8rem; font-weight: 600; border: none; cursor: pointer; transition: background 0.2s; }
.step-proof-btn.accept { background: var(--green-pop); color: var(--white); }
.step-proof-btn.accept:hover { background: #3d5a24; }
.step-proof-btn.dispute { background: var(--white); color: #dc3545; border: 1.5px solid #dc3545; }
.step-proof-btn.dispute:hover { background: #fde8ea; }
.step-proof-btn.submit { background: var(--green-pop); color: var(--white); }
.step-proof-btn.resubmit { background: #e8a83a; color: var(--white); }

/* Dispute reason input */
.step-dispute-input { width: 100%; padding: 8px 12px; border: 1.5px solid #dc3545; border-radius: var(--radius-md); font-family: inherit; font-size: 0.82rem; margin-top: 8px; resize: vertical; min-height: 60px; }

/* Proof submission form within a step */
.step-submit-form { background: var(--bg-cream); border-radius: var(--radius-md); padding: 14px; margin-top: 8px; }
.step-submit-form textarea { width: 100%; padding: 8px 12px; border: 1.5px solid #d4d2c8; border-radius: 8px; font-family: inherit; font-size: 0.82rem; resize: vertical; min-height: 60px; background: var(--white); }
.step-submit-form .file-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.step-submit-form .file-label { font-size: 0.78rem; color: var(--green-pop); font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.step-submit-form .file-hint { font-size: 0.72rem; color: var(--text-muted); }
.step-submit-form .submit-row { margin-top: 10px; display: flex; gap: 8px; }

/* Escalation queue */
.esc-list { display: flex; flex-direction: column; gap: 12px; }
.esc-card { background: var(--white); border: 1.5px solid #fde8ea; border-radius: var(--radius-md); padding: 16px; }
.esc-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.esc-card-title { font-weight: 600; font-size: 0.92rem; color: var(--text-dark); }
.esc-card-meta { font-size: 0.78rem; color: var(--text-muted); }
.esc-card-rounds { font-size: 0.76rem; color: #dc3545; font-weight: 600; }
.esc-proof-round { background: var(--bg-cream); border-radius: 8px; padding: 10px; margin-top: 8px; }
.esc-proof-round-head { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.esc-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ══════════════════════════════════════════
   MOBILE: prevent iOS Safari auto-zoom on input focus.
   iOS zooms the viewport when an input has computed font-size < 16px and
   does not zoom back out. Force 16px at small widths only — desktop styles
   keep their compact look.
   ══════════════════════════════════════════ */
@media (max-width: 600px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="url"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  select,
  textarea {
    font-size: 16px;
  }
}
