/* Access Digital — Modern landing page */
:root {
  --blue: #2747ff;
  --blue-dark: #1a36e0;
  --blue-soft: #eef1ff;
  --ink: #0b1020;
  --ink-2: #1b2238;
  --muted: #5b6478;
  --line: #e7eaf3;
  --bg: #f5f6fb;
  --card: #ffffff;
  --shadow-sm: 0 2px 6px rgba(20, 30, 70, .06);
  --shadow-md: 0 12px 30px rgba(20, 30, 70, .08);
  --shadow-lg: 0 30px 60px rgba(20, 30, 70, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f8ff 0%, #eef1fb 60%, #f5f6fb 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(39, 71, 255, .25);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: #cfd5ec; transform: translateY(-1px); }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(247, 248, 255, .8);
  border-bottom: 1px solid rgba(20,30,70,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-text { font-weight: 800; letter-spacing: .14em; font-size: 20px; }
.logo-mark { display: inline-flex; }

.primary-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #2c3450;
  position: relative;
  padding: 6px 2px;
}
.primary-nav a:hover { color: var(--blue); }
.primary-nav a.active { color: var(--blue); }
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.header-signin {
  font-size: 14px;
  font-weight: 600;
  color: #2a3357;
  padding: 12px 14px;
  margin-right: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  position: relative;
  z-index: 2;
  border-radius: 10px;
}
.header-signin:active { background: rgba(39,71,255,.08); }

.header-account { position: relative; z-index: 5; }
.ha-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  min-height: 44px;
  white-space: nowrap;
}
.ha-btn:hover { border-color: #cfd5ec; }
.ha-avatar {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6c8aff, #1f3cff);
  color: #fff;
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 12px;
  flex: none;
}
.ha-name { font-size: 13.5px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.ha-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(20,30,70,.16);
  padding: 8px;
  min-width: 220px;
  display: grid;
  gap: 2px;
}
.ha-menu-email {
  display: block;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 10px 6px;
  border-bottom: 1px solid #f0f2f8;
  margin-bottom: 4px;
  word-break: break-all;
}
.ha-menu a, .ha-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink);
  font-family: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.ha-menu a:hover, .ha-menu button:hover { background: #f4f6fb; }
.ha-menu svg { color: var(--muted); }
.header-dark .ha-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.header-signin:hover { color: var(--blue); }
.header-dark .header-signin { color: rgba(255,255,255,.85); }
.header-dark .header-signin:hover { color: #fff; }

.menu-toggle { display: none; flex-direction: column; gap: 4px; padding: 10px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { padding: 36px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(39,71,255,.08), transparent 60%),
    radial-gradient(800px 400px at -10% 30%, rgba(120,140,255,.10), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 40px;
  align-items: center;
  padding: 28px 28px 12px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2a3357;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.dot { width: 8px; height: 8px; background: var(--blue); border-radius: 999px; display: inline-block; }

.hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 22px 0 18px;
}
.accent { color: var(--blue); }
.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, auto));
  gap: 26px;
  padding: 0;
  margin: 0;
}
.hero-features li {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #2a3357;
  text-align: center;
  line-height: 1.25;
}
.feat-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--blue);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* Hero visual: laptop + phone */
.hero-visual {
  position: relative;
  min-height: 520px;
}
.laptop {
  position: relative;
  width: min(680px, 100%);
  margin-left: auto;
}
.laptop-screen {
  background: linear-gradient(180deg, #1d2538, #0e1426);
  border-radius: 16px 16px 6px 6px;
  padding: 12px;
  border: 6px solid #1f2740;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
  overflow: hidden;
}
.laptop-base {
  width: 110%;
  height: 18px;
  background: linear-gradient(180deg, #d6dbe8, #aab2c6);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  left: -5%;
  box-shadow: 0 16px 24px rgba(20,30,70,.12);
}
.laptop-base::after {
  content: "";
  position: absolute;
  width: 22%;
  height: 6px;
  background: #b6becf;
  border-radius: 0 0 8px 8px;
  left: 39%;
  top: -1px;
}

/* Mock website inside laptop */
.mock-site {
  background: linear-gradient(160deg, #f4f6ff 0%, #e9edff 100%);
  border-radius: 10px;
  width: 100%; height: 100%;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #1a2140;
  font-size: 11px;
}
.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mock-logo {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; letter-spacing: .14em; font-size: 11px;
}
.mock-logo .mark {
  width: 14px; height: 14px; border-radius: 4px;
  background: linear-gradient(135deg, #3b5bff, #1f3cff);
  display: inline-block;
}
.mock-logo.small { font-size: 9px; }
.mock-logo.small .mark { width: 12px; height: 12px; }
.mock-links {
  display: flex; gap: 14px; font-size: 10px; color: #2a3357;
}
.mock-links .active { color: var(--blue); border-bottom: 1.5px solid var(--blue); padding-bottom: 2px; }
.mock-btn {
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 600;
}
.mock-btn.small { padding: 5px 8px; font-size: 9px; }

.mock-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  flex: 1;
  align-items: stretch;
  min-height: 0;
}
.mock-hero-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.mock-hero h3 {
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.05;
  margin: 0;
  font-weight: 800;
  letter-spacing: -.01em;
}
.mock-hero h3 em { font-style: normal; color: var(--blue); }
.mock-hero p { margin: 0; color: #4a536f; font-size: 11px; }
.mock-hero-copy .mock-btn { align-self: flex-start; }
.mock-image {
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(20,30,70,0) 50%, rgba(20,30,70,.55) 100%),
    linear-gradient(135deg, #6c7fb8 0%, #2a3a6e 60%, #131a36 100%);
  position: relative;
  overflow: hidden;
}
.mock-image::before {
  /* "building" silhouette */
  content: "";
  position: absolute;
  inset: 30% 8% 0 8%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 6px, transparent 6px 14px),
    linear-gradient(180deg, #2c3a66 0%, #182250 100%);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  clip-path: polygon(0 30%, 35% 30%, 35% 12%, 70% 12%, 70% 24%, 100% 24%, 100% 100%, 0 100%);
}
.mock-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0; height: 18%;
  background: linear-gradient(180deg, rgba(20,30,70,0), rgba(20,30,70,.5));
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mock-stats > div {
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(20,30,70,.06);
  display: flex; flex-direction: column; gap: 2px;
}
.mock-stats span { color: #6a7290; font-size: 9px; }
.mock-stats strong { font-size: 14px; }

/* Phone */
.phone {
  position: absolute;
  right: -10px;
  bottom: 10px;
  width: 180px;
  aspect-ratio: 9/19;
  background: #1a2238;
  border: 4px solid #1a2238;
  border-radius: 28px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 14px; background: #0c1226; border-radius: 0 0 10px 10px;
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #f4f6ff, #e9edff);
  border-radius: 22px;
  padding: 22px 12px 12px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 10px; color: #1a2140;
}
.phone-nav { display: flex; align-items: center; justify-content: space-between; }
.phone-burger { display: flex; flex-direction: column; gap: 2px; }
.phone-burger span { width: 12px; height: 1.5px; background: #1a2140; border-radius: 2px; }
.phone-hero h4 {
  font-size: 14px; margin: 0 0 4px; font-weight: 800; line-height: 1.05;
}
.phone-hero h4 em { font-style: normal; color: var(--blue); }
.phone-hero p { margin: 0 0 8px; color: #4a536f; font-size: 9px; }
.phone-stats { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.phone-stats li {
  background: #fff;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 2px 6px rgba(20,30,70,.05);
}
.phone-stats .ic {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: rgba(39,71,255,.12);
  display: inline-flex;
  flex: none;
}
.phone-stats small { display: block; color: #6a7290; font-size: 8px; }
.phone-stats strong { font-size: 11px; }

/* Trusted bar */
.trusted-bar {
  margin-top: 36px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.trusted-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #6a7290;
  line-height: 1.35;
}
.brands {
  list-style: none;
  display: flex;
  gap: 38px;
  margin: 0; padding: 0;
  flex-wrap: wrap;
  color: #2a3357;
}
.brands li {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 18px;
  color: #2a3357;
}
.brands li svg { color: var(--blue); }

/* CTA bar */
.cta-bar {
  margin-top: 22px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto 1.2fr 1fr auto auto auto;
  align-items: center;
  gap: 22px;
  box-shadow: var(--shadow-sm);
}
.cta-icon {
  width: 56px; height: 56px;
  background: var(--blue);
  border-radius: 999px;
  display: grid; place-items: center;
  box-shadow: 0 10px 22px rgba(39,71,255,.3);
}
.cta-text strong { font-size: 19px; line-height: 1.25; display: block; }
.cta-sub { color: var(--muted); font-size: 14px; }
.cta-contact {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 200px;
}
.cta-contact:hover { border-color: #cfd5ec; }
.cta-contact .ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
}
.cta-contact small { display: block; color: var(--muted); font-size: 12px; }
.cta-contact strong { font-size: 15px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: #fff; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 12px 0 14px;
}
.section-head .lede { margin: 0 auto; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d6ddf5; }
.svc-icon {
  width: 48px; height: 48px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.service-card h3 { margin: 0 0 8px; font-size: 19px; }
.service-card p { margin: 0; color: var(--muted); }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-block;
  font-weight: 800;
  color: var(--blue);
  font-size: 14px;
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.steps h3 { margin: 0 0 8px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }

/* Packages */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.pkg-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.pkg-card.featured {
  border-color: var(--blue);
  box-shadow: 0 18px 40px rgba(39,71,255,.18);
  transform: translateY(-6px);
}
.pkg-card .badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.pkg-card h3 { font-size: 20px; margin: 0; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 6px; }
.price .cur { font-size: 22px; color: var(--muted); font-weight: 600; }
.price .per { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.pkg-sub { color: var(--muted); margin: 0; }
.pkg-card ul { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 8px; }
.pkg-card ul li {
  position: relative;
  padding-left: 26px;
  color: #2a3357;
}
.pkg-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--blue-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232747ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.02em; margin: 12px 0 14px; font-weight: 800; }
.about-points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.about-points li {
  background: #f4f6ff;
  border: 1px solid #e0e6ff;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #2a3357;
}
.about-points strong { display: block; font-size: 22px; color: var(--ink); }
.about-card {
  background: linear-gradient(160deg, #1f2c63 0%, #0f1740 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.about-card blockquote {
  margin: 0 0 22px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
}
.quote-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b5bff, #6c8aff);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
}
.quote-author small { display: block; color: rgba(255,255,255,.7); }

/* Contact */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 18px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 600; font-size: 14px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fafbff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(39,71,255,.12);
  background: #fff;
}
.form-success {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #e8f7ee;
  color: #1a6b3a;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #0b1230;
  color: #cfd5ec;
  padding: 64px 0 28px;
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.logo-foot .logo-text { color: #fff; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.muted { color: rgba(255,255,255,.55); margin: 14px 0 0; max-width: 280px; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between;
  color: rgba(255,255,255,.55);
}

/* ==========================================================
   Services page
   ========================================================== */
.services-hero {
  position: relative;
  padding: 40px 0 80px;
  overflow: hidden;
}
.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 95% 10%, rgba(39,71,255,.08), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(120,140,255,.10), transparent 60%);
  pointer-events: none;
}
.services-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  padding: 28px;
  position: relative;
}
.eyebrow-up {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
}
.services-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 22px 0 18px;
}
.hero-pills {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #2a3357;
  box-shadow: var(--shadow-sm);
}
.hero-pills li svg { color: var(--blue); }

/* Browser mockup */
.services-visual {
  position: relative;
  min-height: 540px;
}
.browser {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  width: min(720px, 100%);
  margin-left: auto;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid #eef0f7;
  background: #fff;
}
.browser-bar .dots { display: inline-flex; gap: 6px; }
.browser-bar .dots i {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: #ff5f57;
  display: inline-block;
}
.browser-bar .dots i:nth-child(2) { background: #febc2e; }
.browser-bar .dots i:nth-child(3) { background: #28c840; }
.brand-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px;
}
.mini-mark {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #3b5bff, #1f3cff);
  display: inline-block;
  position: relative;
}
.mini-mark::after {
  content: "N";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
}
.b-links {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 18px;
  font-size: 12px; color: #2a3357;
}
.b-cta {
  background: var(--blue); color: #fff;
  padding: 6px 12px; border-radius: 8px;
  font-weight: 600;
}

.browser-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  padding: 24px;
  align-items: stretch;
}
.bb-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.bb-copy h3 {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.01em;
}
.bb-copy h3 em { font-style: normal; color: var(--blue); }
.bb-copy p { margin: 0; color: #4a536f; font-size: 13px; }
.bb-copy .mock-btn { align-self: flex-start; }
.bb-image {
  border-radius: 14px;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%),
    radial-gradient(60% 80% at 70% 30%, rgba(80,140,220,.55), transparent 70%),
    linear-gradient(180deg, #1c2640 0%, #0d1226 100%);
  position: relative;
  overflow: hidden;
}
.bb-image::before {
  content: "";
  position: absolute;
  inset: 35% 6% 6% 6%;
  background:
    /* lit windows */
    radial-gradient(circle at 18% 55%, rgba(255,205,120,.85) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 55%, rgba(255,205,120,.85) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 60%, rgba(255,205,120,.7) 0 2px, transparent 3px),
    radial-gradient(circle at 56% 50%, rgba(255,225,160,.9) 0 2.5px, transparent 4px),
    radial-gradient(circle at 70% 60%, rgba(255,205,120,.8) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 55%, rgba(255,205,120,.7) 0 2px, transparent 3px),
    /* base buildings */
    linear-gradient(180deg, #2a3a66 0%, #182250 100%);
  border-radius: 6px;
  clip-path: polygon(
    0% 60%, 14% 60%, 14% 35%, 30% 35%,
    30% 18%, 60% 18%, 60% 30%, 78% 30%,
    78% 45%, 100% 45%, 100% 100%, 0% 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.bb-image::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.6));
}

.browser-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 18px 24px 26px;
  border-top: 1px solid #eef0f7;
  background: #fff;
}
.browser-stats > div {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 0 22px;
  border-right: 1px solid #eef0f7;
}
.browser-stats > div:last-child { border-right: 0; }
.browser-stats strong { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.browser-stats span { font-size: 12px; color: var(--muted); }

/* Phone for services hero */
.phone-services {
  position: absolute;
  right: -10px;
  bottom: -30px;
  width: 200px;
  z-index: 3;
}
.phone-services .phone-screen {
  padding: 24px 14px 14px;
  gap: 6px;
}
.phone-services h4 {
  font-size: 13px;
  margin: 0 0 4px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.phone-services h4 em { font-style: normal; color: var(--blue); }
.phone-services p { margin: 0 0 8px; font-size: 9px; color: #4a536f; }
.phone-services .phone-nav { margin-bottom: 6px; }
.phone-img {
  margin-top: 8px;
  border-radius: 10px;
  height: 110px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%),
    radial-gradient(60% 80% at 70% 30%, rgba(80,140,220,.55), transparent 70%),
    linear-gradient(180deg, #1c2640, #0d1226);
  position: relative;
  overflow: hidden;
}
.phone-img::before {
  content: "";
  position: absolute;
  inset: 40% 6% 6% 6%;
  background:
    radial-gradient(circle at 20% 55%, rgba(255,205,120,.85) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 35% 60%, rgba(255,205,120,.85) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 55% 50%, rgba(255,225,160,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 55%, rgba(255,205,120,.8) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, #2a3a66 0%, #182250 100%);
  border-radius: 4px;
  clip-path: polygon(0 60%, 30% 60%, 30% 25%, 70% 25%, 70% 40%, 100% 40%, 100% 100%, 0 100%);
}

/* Decorative dot grid */
.dots-deco {
  position: absolute;
  width: 110px; height: 80px;
  right: -6px; top: 30px;
  background-image: radial-gradient(rgba(120,140,255,.55) 1.4px, transparent 1.6px);
  background-size: 12px 12px;
  pointer-events: none;
  opacity: .55;
  z-index: 1;
}

/* Core services section */
.core-services { padding-top: 80px; }
.core-head {
  display: grid;
  grid-template-columns: 1fr 1.1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 40px;
}
.eyebrow-min {
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
}
.core-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 10px 0 0;
}
.core-sub {
  color: var(--muted);
  margin: 0;
  align-self: end;
  font-size: 16px;
  max-width: 460px;
}
.view-all { white-space: nowrap; }

.core-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.core-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.core-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d6ddf5;
}
.core-icon {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.core-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.core-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}
.learn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
}
.learn:hover .arrow { transform: translateX(3px); }

/* ==========================================================
   Packages page
   ========================================================== */
.pricing-hero {
  position: relative;
  padding: 40px 0 56px;
  overflow: hidden;
}
.pricing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 95% 0%, rgba(39,71,255,.08), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(120,140,255,.10), transparent 60%);
  pointer-events: none;
}
.pricing-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: 28px;
  position: relative;
}
.pricing-hero h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 22px 0 18px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-weight: 500;
  color: #2a3357;
}
.checks li { display: inline-flex; align-items: center; gap: 10px; }
.checks .check {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--blue);
  display: grid; place-items: center;
  color: #fff;
  flex: none;
}

/* Billing toggle */
.billing-toggle {
  margin: 12px auto 36px;
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-sm);
  gap: 4px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.bt-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #4a536f;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.bt-opt:hover { color: var(--ink); }
.bt-opt.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(20,30,70,.08);
  border: 1px solid var(--line);
}
.bt-opt svg { color: var(--muted); }
.bt-opt.active svg { color: var(--ink); }

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 24px 0 80px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 24px 48px rgba(39,71,255,.18);
  transform: translateY(-12px);
  padding-top: 44px;
}
.pc-badge {
  position: absolute;
  top: -1px; left: 0; right: 0;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  padding: 10px 12px;
  border-radius: 20px 20px 0 0;
}
.pc-badge.sm {
  position: static;
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.pc-name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
}
.pc-tag {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 6px;
}
.pc-price .cur {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}
.pc-price .amt {
  font-size: 50px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.pc-price .per {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}
.pc-desc {
  margin: 0 0 6px;
  color: #2a3357;
  font-size: 14px;
}
.pc-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 18px;
  display: grid;
  gap: 10px;
  flex: 1;
}
.pc-list li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  color: #2a3357;
}
.pc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}
.price-card .btn-block { padding: 14px 20px; font-size: 15px; }

/* Compare table */
.compare-section { padding-top: 0; padding-bottom: 80px; }
.compare-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  margin: 0 0 22px;
  letter-spacing: -.01em;
}
.compare-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 8px 8px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 720px;
}
.compare-table th,
.compare-table td {
  text-align: center;
  padding: 18px 16px;
  border-bottom: 1px solid #eef0f7;
  color: #2a3357;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  padding-top: 22px;
  padding-bottom: 18px;
}
.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding-left: 22px;
}
.compare-table .popular-col {
  position: relative;
  background: rgba(39,71,255,.04);
  border-radius: 10px 10px 0 0;
}
.compare-table tbody td:nth-child(3) {
  background: rgba(39,71,255,.04);
}
.compare-table tbody tr:last-child td:nth-child(3) {
  border-radius: 0 0 10px 10px;
}
.compare-table .tick {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  color: var(--blue);
  font-weight: 800;
  font-size: 16px;
}
.compare-table .dash { color: #b5bbcc; }

/* FAQ */
.faq-section { padding-bottom: 80px; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}
.faq-head h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 0 0 16px;
}
.faq-head .learn { font-size: 15px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 18px; height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2305101f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
  transition: transform .2s ease;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item[open] { border-color: #cfd5ec; }
.faq-body {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Packages bottom CTA bar */
.packages-cta {
  margin-top: 0;
  margin-bottom: 60px;
  background: #f4f6ff;
  border-color: #e0e6ff;
  grid-template-columns: auto 1fr auto auto;
}
.packages-cta .cta-text strong { font-size: 18px; }
.packages-cta .cta-text { display: flex; flex-direction: column; gap: 4px; }
.packages-cta .muted-dark { color: var(--muted); font-size: 14px; }
.packages-cta .btn-primary { padding: 16px 24px; }

/* ==========================================================
   How It Works page
   ========================================================== */
.how-hero {
  position: relative;
  padding: 40px 0 56px;
  overflow: hidden;
}
.how-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 95% 0%, rgba(39,71,255,.08), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(120,140,255,.10), transparent 60%);
  pointer-events: none;
}
.how-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: 28px;
  position: relative;
}
.how-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 22px 0 18px;
}
.how-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 0;
  margin: 28px 0 0;
}
.how-features li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #2a3357;
  line-height: 1.3;
}
.hf-icon {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
}

/* Process timeline */
.process-section { padding: 96px 0; }
.process-section .section-head { margin-bottom: 56px; }
.process-section .section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 12px 0 0;
  letter-spacing: -.02em;
  font-weight: 800;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  position: relative;
}
.timeline li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 12px;
}
.timeline li::before {
  /* dotted connector to next item */
  content: "";
  position: absolute;
  top: 46px;
  left: calc(50% + 36px);
  right: calc(-50% + 36px);
  height: 2px;
  background-image: linear-gradient(to right, #c7cee3 50%, transparent 0);
  background-size: 8px 2px;
  background-repeat: repeat-x;
}
.timeline li:last-child::before { display: none; }

.t-icon {
  width: 72px; height: 72px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  position: relative;
  z-index: 1;
  border: 6px solid #fff;
  box-shadow: 0 0 0 1px #eef0f7;
}
.t-num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  margin-top: -10px;
  position: relative;
  z-index: 2;
  border: 3px solid #fff;
}
.timeline h3 {
  margin: 16px 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.timeline p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 200px;
}
.t-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.t-card-label {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.t-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.t-card ul li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: var(--ink);
  text-align: left;
}
.t-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232747ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

/* Highlight bar */
.highlight-bar {
  background: #f4f6ff;
  border: 1px solid #e0e6ff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1.6fr 1fr 1fr 1fr;
  align-items: center;
  gap: 28px;
}
.hb-icon {
  width: 60px; height: 60px;
  border-radius: 999px;
  background: var(--blue);
  display: grid; place-items: center;
  box-shadow: 0 10px 22px rgba(39,71,255,.3);
}
.hb-headline strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 4px;
}
.hb-headline span {
  font-size: 13.5px;
  color: var(--muted);
}
.hb-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.hb-fi {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue);
  display: grid; place-items: center;
  flex: none;
}
.hb-feat strong { display: block; font-size: 14px; line-height: 1.3; }
.hb-feat span { font-size: 13px; color: var(--muted); }

/* Big blue CTA */
.big-cta {
  background: linear-gradient(135deg, #1f3cff 0%, #2747ff 60%, #4f6bff 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 56px 56px 36px;
  margin: 24px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(39,71,255,.25);
}
.big-cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: radial-gradient(80% 100% at 50% 100%, rgba(255,255,255,.18), transparent 70%);
  pointer-events: none;
}
.ready-pill {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #fff;
}
.big-cta-copy h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 16px 0 14px;
}
.big-cta-copy p {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: 15.5px;
}

.big-cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.bc-card {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
}
.bc-icon {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--blue);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.bc-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.bc-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}
.bc-card .btn-ghost {
  border-color: var(--blue);
  color: var(--blue);
}

.big-cta-mini {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.big-cta-mini li { display: inline-flex; align-items: center; gap: 10px; }
.big-cta-mini .mc {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
}

/* ==========================================================
   Contact page
   ========================================================== */
.contact-main {
  position: relative;
  padding: 40px 0 60px;
  overflow: hidden;
}
.contact-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 95% -10%, rgba(39,71,255,.08), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(120,140,255,.10), transparent 60%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr 0.85fr;
  gap: 28px;
  align-items: start;
  padding: 28px;
  position: relative;
}
.contact-intro h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 22px 0 16px;
}

.method-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.method-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  color: inherit;
}
.method-card:hover { transform: translateY(-3px); border-color: #cfd5ec; box-shadow: var(--shadow-md); }
.m-icon {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--blue);
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(39,71,255,.25);
}
.method-card strong { font-size: 14px; font-weight: 700; }
.method-card span { font-size: 12.5px; color: var(--muted); }

/* Form card */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.contact-form-card h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.cf-sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.cf-form { display: grid; gap: 14px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.cf-input {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cf-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(39,71,255,.12);
}
.cf-input > svg { color: var(--muted); flex: none; }
.cf-input input,
.cf-input select {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  padding: 14px 12px;
  width: 100%;
}
.cf-input input::placeholder { color: #98a0b6; }
.cf-input.cf-select { padding: 0; }
.cf-select select {
  appearance: none;
  -webkit-appearance: none;
  padding: 14px 40px 14px 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2398a0b6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") right 14px center/14px no-repeat;
  color: #98a0b6;
}
.cf-select select:valid { color: var(--ink); }

.cf-guided {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  margin: 0;
  min-width: 0;
}
.cf-guided + .cf-guided { margin-top: 10px; }
.cf-guided > .cf-ta-head {
  padding: 0;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2a3357;
  flex-wrap: wrap;
}
.cf-guided > .cf-ta-head svg { color: var(--muted); }
.cf-help { color: #98a0b6; font-weight: 500; font-size: 12px; margin-left: 4px; }
.cf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faff;
  font-size: 13px;
  font-weight: 500;
  color: #2a3357;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.cf-chip:hover { border-color: #cfd5ec; background: #fff; }
.cf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cf-chip:has(input:checked) {
  background: var(--blue, #3b5bff);
  border-color: var(--blue, #3b5bff);
  color: #fff;
}
.cf-other-input {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: #f8faff;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.cf-other-input:focus {
  background: #fff;
  border-color: var(--blue, #3b5bff);
  box-shadow: 0 0 0 3px rgba(59,91,255,.12);
}
.cf-other-input::placeholder { color: #98a0b6; }

.cf-textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cf-textarea:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(39,71,255,.12);
}
.cf-ta-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.cf-ta-head svg:first-child { color: var(--muted); }
.cf-mail { margin-left: auto; color: var(--muted); }
.cf-textarea textarea {
  border: 0;
  outline: none;
  resize: vertical;
  min-height: 110px;
  font: inherit;
  background: transparent;
  color: var(--ink);
}
.cf-textarea textarea::placeholder { color: #98a0b6; }

.cf-submit {
  width: 100%;
  padding: 16px 22px;
  font-size: 15px;
  margin-top: 4px;
}
.cf-privacy {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.cf-privacy svg { color: var(--muted); }
.cf-success {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #e8f7ee;
  color: #1a6b3a;
  font-weight: 600;
}

/* Map card */
.map-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow-md);
  position: relative;
  height: 100%;
  min-height: 520px;
}
.map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 30% 30%, #f3eee2 0%, #efe6d3 60%, #e9dec5 100%);
}
.map-shape { position: absolute; }
.map-shape.water {
  right: -10%;
  bottom: -10%;
  width: 70%;
  height: 60%;
  background: linear-gradient(135deg, #cfe6f5 0%, #b9dbf0 60%, #a4cdea 100%);
  border-radius: 60% 30% 50% 40% / 50% 70% 30% 50%;
  transform: rotate(-12deg);
}
.map-shape.road {
  background: #fff;
  height: 8px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(180,160,120,.25);
}
.map-shape.r1 { top: 20%; left: -5%; width: 80%; transform: rotate(8deg); }
.map-shape.r2 { top: 40%; left: -5%; width: 95%; transform: rotate(-10deg); height: 10px; }
.map-shape.r3 { top: 60%; left: 20%; width: 70%; transform: rotate(-25deg); }
.map-shape.r4 { top: 30%; left: 30%; width: 50%; transform: rotate(72deg); }
.map-shape.r5 { top: 75%; left: 5%; width: 50%; transform: rotate(-5deg); }
.map-shape.park {
  top: 18%; right: 8%;
  width: 28%; height: 22%;
  background: #d6e9c8;
  border-radius: 30% 60% 40% 50% / 50% 30% 70% 50%;
  transform: rotate(8deg);
  opacity: .8;
}
.map-shape.label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(70,70,90,.55);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.map-shape.l1 { top: 22%; left: 16%; }
.map-shape.l2 { top: 70%; right: 14%; transform: rotate(-6deg); }
.map-shape.l3 { bottom: 8%; right: 20%; text-transform: none; letter-spacing: .04em; font-style: italic; color: rgba(60,90,120,.7); }

.pin-big {
  position: absolute;
  top: 46%;
  left: 56%;
  filter: drop-shadow(0 8px 16px rgba(39,71,255,.45));
  z-index: 2;
}
.map-info {
  position: absolute;
  top: 24px;
  left: 24px;
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 14px 30px rgba(20,30,70,.18);
  max-width: 78%;
  z-index: 3;
}
.map-info .mi-pin {
  position: absolute;
  top: 16px; left: 16px;
  filter: drop-shadow(0 2px 4px rgba(39,71,255,.35));
}
.map-info strong { font-size: 16px; padding-left: 26px; }
.map-info span { font-size: 13px; color: var(--muted); }
.map-info .learn { margin-top: 6px; font-size: 13px; }

/* Info row */
.info-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 6px;
  box-shadow: var(--shadow-sm);
}
.info-card {
  display: flex;
  gap: 16px;
  padding: 8px 22px;
  border-right: 1px solid var(--line);
  align-items: flex-start;
}
.info-card:last-child { border-right: 0; }
.info-icon {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  flex: none;
}
.info-card strong { display: block; font-size: 15px; margin-bottom: 6px; }
.info-card span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.info-card .learn { display: inline-flex; margin-top: 8px; font-size: 13.5px; }

/* Bottom CTA */
.contact-cta {
  margin-top: 32px;
  background: linear-gradient(135deg, #1f3cff 0%, #2747ff 60%, #4f6bff 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(39,71,255,.25);
}
.contact-cta-deco {
  position: absolute;
  inset: auto auto -40% -10%;
  width: 40%; height: 200%;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
  pointer-events: none;
  opacity: .35;
}
.cc-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -.01em;
}
.cc-copy p { margin: 0; color: rgba(255,255,255,.85); font-size: 15px; }
.cc-action {
  background: #fff;
  color: var(--ink);
  padding: 16px 22px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cc-action:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.cc-action .cc-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
}
.cc-action-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
}
.cc-action-outline .cc-icon {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.cc-tag { display: block; font-size: 12px; color: rgba(255,255,255,.8); font-weight: 500; }
.cc-action-outline strong { font-size: 16px; font-weight: 700; }

/* ==========================================================
   FAQ page (dark hero)
   ========================================================== */
.page-faq { background: #fff; }
.header-dark {
  background: #05060f;
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: none;
}
.header-dark .logo-text { color: #fff; }
.header-dark .primary-nav a {
  color: rgba(255,255,255,.78);
}
.header-dark .primary-nav a:hover { color: #fff; }
.header-dark .primary-nav a.active { color: #6c8aff; }
.header-dark .primary-nav a.active::after { background: #6c8aff; }
.header-dark .menu-toggle span { background: #fff; }

.faq-hero {
  position: relative;
  background: radial-gradient(120% 100% at 80% 50%, #0e1a3b 0%, #05060f 60%, #03040a 100%);
  color: #fff;
  padding: 60px 0 90px;
  overflow: hidden;
}
.faq-hero-deco {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(140,160,255,.18) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: .35;
  pointer-events: none;
}
.faq-hero-glow {
  position: absolute;
  bottom: -30%;
  right: 10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(63,90,255,.4), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.faq-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 28px;
  position: relative;
  z-index: 1;
}
.eyebrow-dark {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #c9d1ff;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  box-shadow: none;
}
.eyebrow-dark .dot {
  background: linear-gradient(135deg, #3b5bff, #6c8aff);
  box-shadow: 0 0 8px rgba(108,138,255,.7);
}
.faq-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 22px 0 18px;
  color: #fff;
}
.accent-grad {
  background: linear-gradient(135deg, #4f6bff 0%, #6c8aff 60%, #a3b8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.faq-hero p {
  color: rgba(255,255,255,.7);
  font-size: 16.5px;
  max-width: 540px;
  line-height: 1.6;
}

/* FAQ illustration */
.faq-illustration {
  position: relative;
  height: 360px;
}
.ill-clock {
  position: absolute;
  top: 30%; left: 8%;
  filter: drop-shadow(0 12px 30px rgba(63,90,255,.4));
}
.ill-faq {
  position: absolute;
  top: 18%; left: 38%;
  width: 220px; height: 160px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(45,55,90,.85), rgba(20,28,55,.95));
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center;
  box-shadow: 0 25px 50px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04);
}
.ill-faq::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  pointer-events: none;
}
.ill-faq span {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #e6ebff 0%, #8a96c5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 0 rgba(0,0,0,.3);
}
.ill-bubble {
  position: absolute;
  bottom: 6%;
  right: 14%;
  filter: drop-shadow(0 12px 24px rgba(63,90,255,.55));
}

/* FAQ body */
.faq-body { background: #fff; padding: 72px 0 60px; }
.faq-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.ft-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #2a3357;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ft-opt svg { color: var(--muted); }
.ft-opt:hover { border-color: #cfd5ec; }
.ft-opt.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(39,71,255,.25);
}
.ft-opt.active svg { color: #fff; }

.faq-q-list { display: grid; gap: 12px; }
.q-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}
.q-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--ink);
}
.q-item summary::-webkit-details-marker { display: none; }
.q-item summary::after {
  content: "";
  width: 18px; height: 18px;
  margin-left: auto;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2305101f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
  transition: transform .2s ease;
  flex: none;
}
.q-item[open] summary::after { transform: rotate(180deg); }
.q-item[open] { border-color: #cfd5ec; }
.q-mark {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: inline-grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex: none;
}
.q-body {
  padding: 0 0 18px 40px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.q-item.hidden { display: none; }

.q-foot {
  margin: 28px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14.5px;
}
.q-foot svg { color: var(--blue); }
.q-foot .learn { margin-left: 4px; }

/* Sidebar */
.faq-aside {
  background: #f4f6ff;
  border: 1px solid #e0e6ff;
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid;
  gap: 12px;
  position: sticky;
  top: 96px;
}
.aside-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 8px;
}
.aside-head-icon {
  width: 50px; height: 50px;
  border-radius: 999px;
  background: #e2e8ff;
  color: var(--blue);
  display: grid; place-items: center;
  flex: none;
}
.aside-head strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}
.aside-head span {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.aside-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: border-color .15s ease, transform .15s ease;
  color: inherit;
}
.aside-link:hover { border-color: var(--blue); transform: translateX(2px); }
.al-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  flex: none;
}
.al-body { display: grid; gap: 2px; flex: 1; }
.al-body strong { font-size: 14.5px; }
.al-body span { font-size: 13px; color: var(--muted); }
.al-arrow { color: var(--blue); font-weight: 700; }

.aside-foot {
  margin: 8px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.aside-foot svg { color: var(--blue); }

/* Dark CTA bar */
.dark-cta {
  background: linear-gradient(180deg, #0d1226 0%, #050816 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  border: 1px solid rgba(255,255,255,.08);
}
.dc-icon {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--blue);
  display: grid; place-items: center;
  box-shadow: 0 10px 22px rgba(39,71,255,.4);
}
.dc-copy strong {
  display: block;
  font-size: 19px;
  margin-bottom: 2px;
}
.dc-copy span {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  display: block;
}
.dc-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
  white-space: nowrap;
}
.dc-outline:hover { border-color: rgba(255,255,255,.5); }

/* ==========================================================
   Admin (Dashboard / Leads)
   ========================================================== */
.page-dash { background: #f5f6fb; overflow-x: hidden; }
.page-dash body, body.page-dash { font-family: 'Inter', system-ui, sans-serif; overflow-x: hidden; }

.dash-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  background: #f5f6fb;
  max-width: 100vw;
  overflow-x: clip;
}

/* Sidebar */
.dash-side {
  background: #0b1230;
  color: rgba(255,255,255,.78);
  padding: 22px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.logo-dash { padding: 0 8px 14px; gap: 10px; }
.logo-dash .logo-text { color: #fff; font-size: 19px; }

.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.74);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.sn-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.sn-item svg { color: rgba(255,255,255,.62); flex: none; }
.sn-item:hover svg { color: #fff; }
.sn-item.active {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.sn-item.active svg { color: #fff; }
.sn-badge {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.sn-label {
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.45);
  padding: 14px 14px 6px;
  font-weight: 600;
}

.side-help {
  margin-top: auto;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 6px;
}
.sh-icon {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--blue);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.side-help strong { color: #fff; font-size: 14px; }
.side-help span { color: rgba(255,255,255,.65); font-size: 12.5px; line-height: 1.4; }
.sh-btn {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 6px;
}
.sh-btn:hover { background: rgba(255,255,255,.12); }
.sh-logout {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,.65);
}
.sh-logout:hover { background: rgba(255,255,255,.06); color: #fff; }

/* Main */
.dash-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}
.kpi, .chart-card, .lead-detail, .pm-card, .ed-panel { min-width: 0; }
.kpi-grid, .charts-row, .bottom-row, .pm-layout, .leads-layout, .editor-grid, .settings-grid {
  min-width: 0;
}
.kpi-grid > *, .charts-row > *, .bottom-row > *,
.pm-layout > *, .leads-layout > *, .editor-grid > *, .settings-grid > * {
  min-width: 0;
}

/* Topbar */
.dash-top {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.top-burger {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #2a3357;
}
.top-burger:hover { background: #f4f6ff; }
.top-title { margin: 0; font-size: 20px; font-weight: 700; }

.top-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4f6fb;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
  max-width: 460px;
  width: 100%;
  margin-left: auto;
  margin-right: 10px;
}
.top-search svg { color: var(--muted); flex: none; }
.top-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
}
.top-search kbd {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  color: var(--muted);
  font-family: inherit;
}

.top-bell {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #f4f6fb;
  display: grid; place-items: center;
  color: #2a3357;
  position: relative;
}
.top-bell:hover { background: #e8ecf6; }
.bell-count {
  position: absolute;
  top: 6px; right: 6px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid; place-items: center;
  padding: 0 4px;
}

.bell-menu {
  position: fixed;
  top: 64px;
  right: 12px;
  left: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(20,30,70,.16);
  padding: 8px;
  width: min(320px, calc(100vw - 24px));
  z-index: 100;
}
.bm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 8px;
  border-bottom: 1px solid #f0f2f8;
  margin-bottom: 4px;
}
.bm-head strong { font-size: 14px; }
.bm-head .learn { font-size: 12.5px; }
.bm-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 2px;
  max-height: 320px;
  overflow-y: auto;
}
.bm-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
}
.bm-list li:hover { background: #f4f6fb; }
.bm-list strong { display: block; font-size: 13.5px; line-height: 1.3; }
.bm-list span { font-size: 12px; color: var(--muted); }
.bm-list em { font-style: normal; font-size: 11.5px; color: var(--muted); flex: none; white-space: nowrap; }
.bm-empty { color: var(--muted); font-size: 13px; padding: 14px 10px; }

/* Native <details> wrapper — no marker, no padding */
.top-user-details {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
}
.top-user-details > summary { list-style: none; }
.top-user-details > summary::-webkit-details-marker { display: none; }
.top-user-details > summary::marker { display: none; content: ""; }

.top-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  min-height: 44px;
  user-select: none;
  flex: 0 0 auto;
}
.top-user > div { display: flex; flex-direction: column; }
.top-user > div strong { display: block; font-size: 13.5px; line-height: 1.1; }
.top-user > div small { display: block; font-size: 12px; color: var(--muted); }
.top-user:hover { background: #f4f6fb; }
.t-avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6c8aff, #1f3cff);
  color: #fff;
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 13px;
}
.top-user strong { font-size: 13.5px; display: block; line-height: 1.1; }
.top-user small { font-size: 12px; color: var(--muted); }
.top-user > svg { color: var(--muted); }

.top-user-menu {
  position: fixed;
  top: 64px;
  right: 12px;
  left: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(20,30,70,.16);
  padding: 8px;
  width: min(240px, calc(100vw - 24px));
  display: grid;
  gap: 2px;
  z-index: 100;
}
.tum-email {
  display: block;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 10px 6px;
  border-bottom: 1px solid #f0f2f8;
  margin-bottom: 4px;
  word-break: break-all;
}
.tum-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink);
  font-family: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.tum-item:hover { background: #f4f6fb; }
.tum-item svg { color: var(--muted); }
.tum-signout { color: #b91c1c; }
.tum-signout svg { color: #b91c1c; }

/* Body */
.dash-body { padding: 28px; flex: 1; }

.dash-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.dash-welcome h2 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wave { font-size: 22px; }
.dash-welcome p { margin: 0; color: var(--muted); font-size: 14.5px; }
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.date-pill svg { color: var(--muted); }

/* KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.kpi-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.kpi-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex: none;
}
.kpi-blue .kpi-icon  { background: #e8eeff; color: #3b5bff; }
.kpi-green .kpi-icon { background: #e8f7ef; color: #10b981; }
.kpi-purple .kpi-icon { background: #f1ebff; color: #8b5cf6; }
.kpi-orange .kpi-icon { background: #fff2dd; color: #f59e0b; }
.kpi-text { display: grid; gap: 3px; }
.kpi-label { font-size: 13.5px; color: var(--muted); }
.kpi-value {
  font-size: 26px; font-weight: 800; letter-spacing: -.01em;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.kpi-trend {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}
.kpi-trend.up { background: #e8f7ef; color: #10b981; }
.kpi-trend.down { background: #fde8e8; color: #ef4444; }
.kpi-sub { font-size: 12px; color: var(--muted); }
.spark { display: block; width: 100%; height: 56px; margin-top: 12px; }

/* Charts row */
.charts-row {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.chart-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.chart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2a3357;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chart-pill:hover { border-color: #cfd5ec; background: #f8faff; }
.chart-pill svg { color: var(--muted); }

.chart-frame { position: relative; }
.chart-svg {
  width: 100%;
  height: 280px;
  display: block;
}
.chart-svg .grid line { stroke: #eef0f7; stroke-width: 1; }
.chart-svg .y-labels text,
.chart-svg .x-labels text {
  font-size: 10.5px;
  fill: #7a829c;
  font-family: inherit;
}
.chart-tooltip {
  position: absolute;
  top: 30px;
  right: 12%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 8px 18px rgba(20,30,70,.12);
  font-size: 12px;
  display: grid;
  gap: 4px;
}
.tt-date { color: var(--muted); font-size: 11px; }
.chart-tooltip strong { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.tt-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--blue); display: inline-block; }

/* Donut chart */
.donut-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}
.donut { flex: none; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.lg-dot { width: 10px; height: 10px; border-radius: 999px; }
.lg-name { color: #2a3357; }
.legend strong { font-weight: 700; }
.legend em { font-style: normal; color: var(--muted); font-size: 11.5px; margin-left: 4px; }

/* Activity list */
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  flex: 1;
}
.activity-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: flex-start;
  border-radius: 10px;
  padding: 6px 8px;
  margin: 0 -8px;
}
.activity-list li.act-row { cursor: pointer; transition: background .12s; }
.activity-list li.act-row:hover { background: #f4f6fb; }
.lead-row-link { cursor: pointer; }
.lead-row-link:hover td { background: #f8faff; }
.bm-list li.bm-link { cursor: pointer; }
.act-ic {
  width: 34px; height: 34px;
  border-radius: 999px;
  display: grid; place-items: center;
  flex: none;
}
.act-blue { background: #e8eeff; color: #3b5bff; }
.act-purple { background: #f1ebff; color: #8b5cf6; }
.act-green { background: #e8f7ef; color: #10b981; }
.act-cyan { background: #e0f5fb; color: #0ea5e9; }
.act-orange { background: #fff2dd; color: #f59e0b; }
.activity-empty,
.legend-empty,
.empty-row {
  color: var(--muted);
  font-size: 13px;
  padding: 14px 4px;
  list-style: none;
}
.empty-row { text-align: center; }
.empty-row a { color: var(--blue); font-weight: 600; }

.activity-list strong { display: block; font-size: 13.5px; line-height: 1.3; }
.activity-list span { color: var(--muted); font-size: 12.5px; }
.act-time { color: var(--muted); font-size: 11.5px; align-self: flex-start; white-space: nowrap; }
.act-foot { margin-top: 14px; font-size: 13.5px; }

/* Bottom row */
.bottom-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}
.leads-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 600;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--line);
}
.leads-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #f0f2f8;
  color: #2a3357;
  vertical-align: middle;
}
.leads-table tbody tr:last-child td { border-bottom: 0; }
.row-user { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.ru-av {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.av-blue { background: linear-gradient(135deg, #6c8aff, #1f3cff); }
.av-pink { background: linear-gradient(135deg, #ff84a8, #d63384); }
.av-green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.av-orange { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.av-cyan { background: linear-gradient(135deg, #67e8f9, #0ea5e9); }
.av-purple { background: linear-gradient(135deg, #c4b5fd, #8b5cf6); }
.av-slate { background: linear-gradient(135deg, #94a3b8, #475569); }
.row-more { color: var(--muted); font-size: 18px; cursor: pointer; }

/* Status pills */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.pill-blue { background: #e8eeff; color: #3b5bff; }
.pill-orange { background: #fff2dd; color: #c2820e; }
.pill-purple { background: #f1ebff; color: #7c3aed; }
.pill-gray { background: #e8efe8; color: #16a34a; }
.pill-green { background: #e8f7ef; color: #16a34a; }
.pill-red { background: #fde8e8; color: #ef4444; }

/* Projects list */
.projects-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.projects-list li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
}
.proj-thumb {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: #ddd;
  flex: none;
  position: relative;
  overflow: hidden;
}
.th-night {
  background: linear-gradient(180deg, #1c2640 0%, #0d1226 100%);
}
.th-night::after {
  content: ""; position: absolute; inset: 60% 8% 8% 8%;
  background: radial-gradient(circle at 30% 60%, rgba(255,210,120,.7) 0 1.5px, transparent 2px),
              radial-gradient(circle at 60% 60%, rgba(255,210,120,.6) 0 1.5px, transparent 2px),
              linear-gradient(180deg, #2a3a66, #182250);
  border-radius: 4px;
  clip-path: polygon(0 50%, 50% 50%, 50% 20%, 100% 20%, 100% 100%, 0 100%);
}
.th-bloom { background: linear-gradient(135deg, #ffe5ec, #ffb3c1); }
.th-bloom::after { content: ""; position: absolute; inset: 25%; border-radius: 999px; background: radial-gradient(circle, #fff 0 35%, #f9a8d4 36% 60%, #ec4899 61% 100%); }
.th-consult { background: linear-gradient(135deg, #cbd5e1, #475569); }
.th-consult::after { content: ""; position: absolute; inset: 25% 10% 0 10%; background: linear-gradient(180deg, #e2e8f0, #94a3b8); border-radius: 30px 30px 0 0; }
.th-arc { background: linear-gradient(180deg, #ff9a3d, #c2410c); }
.th-arc::after {
  content: ""; position: absolute; inset: 50% 8% 8% 8%;
  background: linear-gradient(180deg, #1f2937, #0f172a);
  clip-path: polygon(0 30%, 100% 30%, 100% 100%, 0 100%);
}

.projects-list strong { display: block; font-size: 14px; margin-bottom: 4px; }
.proj-status {
  display: inline-block;
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 6px;
}
.status-progress { color: #3b5bff; }
.status-review { color: #f59e0b; }
.status-done { color: #16a34a; }
.proj-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #eef0f7;
  overflow: hidden;
}
.proj-bar span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 999px;
}
.projects-list em { font-style: normal; font-weight: 700; color: var(--ink); font-size: 13.5px; }

/* Leads by Status (dashboard) */
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.status-list li { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; }
.sl-bar { height: 8px; border-radius: 999px; background: #eef0f7; overflow: hidden; }
.sl-bar span { display: block; height: 100%; border-radius: 999px; }
.status-list em { font-style: normal; font-weight: 700; color: var(--ink); font-size: 13.5px; }
.pill-gray { background: #eef0f7; color: #5b6478; }

/* Dash footer */
.dash-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--muted);
}
.dash-foot ul {
  list-style: none; display: flex; gap: 22px;
  margin: 0; padding: 0;
}
.dash-foot a { color: var(--muted); }
.dash-foot a:hover { color: var(--ink); }

/* Leads page specifics */
.leads-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  min-width: 0;
}
.leads-page-actions { flex-wrap: wrap; }
.leads-page-actions .btn-icon,
.leads-page-actions .btn-add { flex: 0 0 auto; }
.leads-page-head h2 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.leads-page-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.leads-page-actions { display: inline-flex; gap: 10px; }
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.btn-icon:hover { border-color: #cfd5ec; }
.btn-icon svg { color: var(--muted); }
.btn-add {
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(39,71,255,.25);
}
.btn-add:hover { background: var(--blue-dark); }

.kpi-grid-5 { grid-template-columns: repeat(5, 1fr); }
.kpi-rose .kpi-icon { background: #fff0f4; color: #e11d74; }

.leads-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
  align-items: start;
}

/* Tabs */
.filter-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 18px;
  box-shadow: var(--shadow-sm);
}
.filter-panel[hidden] { display: none !important; }
.fp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 22px;
}
.fp-section h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.fp-section .cf-chip { font-size: 12.5px; padding: 5px 10px; }
.fp-empty { font-size: 12.5px; color: var(--muted); }
.fp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.fp-actions .btn-icon { padding: 7px 14px; height: auto; }

.filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--blue, #3b5bff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}
.filter-count[hidden] { display: none !important; }

.leads-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff;
  margin: 0 0 12px;
  transition: border-color .15s, box-shadow .15s;
}
.leads-search:focus-within {
  border-color: var(--blue, #3b5bff);
  box-shadow: 0 0 0 4px rgba(59,91,255,.12);
}
.leads-search > svg { color: var(--muted); flex: none; }
.leads-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
}
.leads-search input::placeholder { color: #98a0b6; }
.leads-search-clear {
  border: 0;
  background: #eef0f7;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  color: #5b6478;
  cursor: pointer;
}
.leads-search-clear:hover { background: #e0e3ee; }

.bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #f4f7ff;
  border: 1px solid #d8e0ff;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 12px;
}
.bulk-bar .bb-count {
  font-size: 13px;
  font-weight: 700;
  color: #2a3357;
  margin-right: 4px;
}
.bulk-bar .bb-select {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #2a3357;
  cursor: pointer;
}
.bulk-bar .btn-icon { padding: 7px 12px; height: 34px; }
.bulk-bar .bb-danger {
  color: #b91c1c;
  border-color: #f3c2c2;
  background: #fff5f5;
}
.bulk-bar .bb-danger:hover { background: #fde8e8; border-color: #e7a4a4; }
.bulk-bar .bb-clear {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
}
.bulk-bar .bb-clear:hover { color: #2a3357; }

.lead-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
  margin: -22px -22px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.lead-tabs::-webkit-scrollbar { height: 4px; }
.lt-opt { white-space: nowrap; flex: 0 0 auto; }
.lt-opt {
  position: relative;
  padding: 18px 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}
.lt-opt:hover { color: var(--ink); }
.lt-opt.active {
  color: var(--blue);
}
.lt-opt.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* Leads big table */
.leads-big-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 760px;
}
.leads-big-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 600;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.leads-big-table th.sortable {
  cursor: pointer;
}
.leads-big-table th.sortable::after {
  content: "↕";
  margin-left: 6px;
  opacity: .5;
}
.leads-big-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #f0f2f8;
  vertical-align: middle;
  color: #2a3357;
}
.leads-big-table tr.row-selected td {
  background: #f4f6ff;
}
.leads-big-table tr.row-selected td:first-child {
  border-left: 3px solid var(--blue);
  padding-left: 9px;
}
.leads-big-table input[type="checkbox"] {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1px solid var(--line);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  background: #fff;
  margin: 0;
  vertical-align: middle;
}
.leads-big-table input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
}
.leads-big-table input[type="checkbox"]:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/10px no-repeat;
}

.row-user-stack { display: inline-flex; align-items: center; gap: 12px; }
.row-user-stack .ru-av { width: 36px; height: 36px; }
.row-user-stack strong { font-size: 14px; display: block; }
.row-user-stack small { font-size: 12px; color: var(--muted); display: block; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 4px;
  font-size: 13px;
  color: var(--muted);
}
.pages { display: inline-flex; align-items: center; gap: 4px; }
.pages button,
.pages a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  color: #2a3357;
  font-weight: 600;
  font-size: 13px;
}
.pages button:hover, .pages a:hover { border-color: #cfd5ec; }
.pages .current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.pages .gap { border: 0; background: transparent; cursor: default; }

/* Lead detail panel */
.lead-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}
.ld-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
}
.ld-head .ru-av { width: 56px; height: 56px; font-size: 16px; }
.ld-head strong { font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.ld-iconbtn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  color: var(--muted);
}
.ld-iconbtn:hover { border-color: #cfd5ec; }

.ld-contacts { display: grid; gap: 8px; font-size: 13.5px; color: #2a3357; }
.ld-contacts li { display: inline-flex; align-items: center; gap: 8px; list-style: none; }
.ld-contacts svg { color: var(--muted); flex: none; }
.ld-contacts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.ld-section h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}
.ld-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  font-size: 13.5px;
}
.ld-table dt { color: var(--muted); margin: 0; }
.ld-table dd { margin: 0; color: var(--ink); }

.ld-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ld-notes-head h4 { margin: 0; }
.ld-add-note {
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.note-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  background: #f7f8fc;
  border-radius: 12px;
  padding: 14px;
}
.note-card .ru-av { width: 36px; height: 36px; }
.note-author { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.note-tag {
  background: #eef0f7;
  color: #5b6478;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.note-body { font-size: 13.5px; color: #2a3357; margin: 4px 0; }
.note-time { font-size: 12px; color: var(--muted); }
.note-more { color: var(--muted); }

.ld-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ld-actions .btn { min-width: 0; padding: 12px 14px; font-size: 13.5px; }

/* Lead detail empty state */
.ld-empty {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
}
.ld-empty-ic {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
}
.ld-empty strong { color: var(--ink); font-size: 16px; }
.ld-empty span { font-size: 13.5px; max-width: 240px; line-height: 1.5; }

.lead-detail .ld-head { gap: 10px; }
.lead-detail .ld-head strong { font-size: 16px; min-width: 0; word-break: break-word; }
.lead-detail .ld-head .pill { font-size: 11px; padding: 3px 8px; }
.lead-detail .ld-contacts a { color: var(--ink); word-break: break-all; }
.lead-detail .ld-contacts a:hover { color: var(--blue); }
.lead-detail .ld-table dd { word-break: break-word; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 48, .55);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
  overflow-y: auto;
}

.lead-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 48, .55);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 200;
  overflow-y: auto;
}
.lead-modal-backdrop[hidden] { display: none !important; }
.lead-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(20,30,70,.3);
  position: relative;
  padding: 26px 28px;
}
.lead-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: #f4f6fb;
  color: #2a3357;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lead-modal-close:hover { background: #e6eaf2; }
.lead-modal .ld-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-right: 32px; }
.lead-modal .ld-section { margin-top: 16px; }
.lead-modal .ld-section h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.lead-modal .ld-table {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 14px;
  margin: 0;
  font-size: 13.5px;
}
.lead-modal .ld-table dt { color: var(--muted); }
.lead-modal .ld-table dd { margin: 0; color: var(--ink); white-space: pre-wrap; }
.lead-modal .ld-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.profile-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,18,48,.55);
  display: grid; place-items: center;
  padding: 20px; z-index: 220;
  overflow-y: auto;
}
.profile-modal-backdrop[hidden] { display: none !important; }
.profile-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(20,30,70,.3);
  padding: 22px 24px 24px;
}
.pm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.pm-modal-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.pm-form { display: grid; gap: 14px; }
.pm-photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pm-avatar {
  width: 68px; height: 68px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b5bff, #1f3cff);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  display: grid;
  place-items: center;
  flex: none;
  background-size: cover;
  background-position: center;
}
.pm-photo-row .btn-ghost { padding: 8px 14px; font-size: 13px; }
.pm-photo-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.pm-field { display: grid; gap: 6px; }
.pm-label { font-size: 13px; font-weight: 600; color: #2a3357; }
.pm-field input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.pm-field input:focus {
  border-color: var(--blue, #3b5bff);
  box-shadow: 0 0 0 3px rgba(59,91,255,.12);
}
.pm-field input[readonly] { background: #f4f6fb; color: #5b6478; }
.pm-hint { font-size: 12px; color: var(--muted); }
.pm-status {
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.pm-status[data-kind="saving"] { background: #eef2ff; color: #2a3357; }
.pm-status[data-kind="saved"] { background: #e8f7ef; color: #10b981; }
.pm-status[data-kind="error"] { background: #fde8e8; color: #b91c1c; }
.pm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.modal-card {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(20,30,70,.3);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 12px;
}
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.modal-form {
  display: grid;
  gap: 14px;
  padding: 0 24px 24px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}
.modal-actions .btn { padding: 12px 18px; font-size: 14px; }

/* ==========================================================
   Editor page
   ========================================================== */
.editor-top {
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  padding: 14px 28px;
  flex-wrap: wrap;
  min-width: 0;
}
.editor-top > * { min-width: 0; }
.ed-title h1 { margin: 0; font-size: 20px; font-weight: 800; }
.ed-title p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ed-tools { display: inline-flex; align-items: center; gap: 10px; }
.ed-end { display: inline-flex; align-items: center; gap: 12px; }
.ed-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px 0 14px;
  color: var(--muted);
  height: 40px;
}
.ed-view svg { color: var(--muted); }
.ed-view select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a0b6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") right 8px center/12px no-repeat;
  border: 0;
  font: inherit;
  color: var(--ink);
  padding: 8px 22px 8px 0;
  font-weight: 600;
  font-size: 13.5px;
  outline: none;
}
.ed-device {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.ed-device button {
  width: 36px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--muted);
}
.ed-device button.active {
  background: #f0f3ff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(39,71,255,.25);
}
.ed-save { padding: 10px 18px; font-size: 13.5px; }
.ed-publish { padding: 10px 18px; font-size: 13.5px; }

.editor-body { padding: 22px 28px; }

.editor-grid {
  display: grid;
  grid-template-columns: 280px 380px 1fr;
  gap: 18px;
  align-items: start;
}
.ed-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.ed-h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.ed-sub { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; }

/* Section list */
.ed-section-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  display: grid;
  gap: 4px;
}
.ed-sect {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #2a3357;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ed-sect svg { color: var(--muted); flex: none; }
.ed-sect:hover { background: #f7f8fc; }
.ed-sect.active {
  background: #f0f3ff;
  color: var(--blue);
}
.ed-sect.active svg { color: var(--blue); }
.ed-sect-label {
  list-style: none;
  padding: 14px 14px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}
.ed-page-picker {
  display: grid;
  gap: 6px;
  margin: 6px 0 14px;
}
.ed-page-picker > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ed-page-picker select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #2a3357;
  background: #fff;
  outline: none;
  cursor: pointer;
}
.ed-page-picker select:focus {
  border-color: var(--blue, #3b5bff);
  box-shadow: 0 0 0 3px rgba(59,91,255,.12);
}

/* When a public page is loaded inside the admin Content Editor's preview
   iframe (?preview=1), hide the auth chrome so it doesn't flash a "Sign in"
   link before Firebase auth resolves. */
.nx-preview .header-signin,
.nx-preview .header-account {
  display: none !important;
}
.ed-add-section {
  width: 100%;
  border-style: dashed;
  border-color: #cfd5ec;
  color: var(--blue);
  font-weight: 600;
}

/* Edit fields */
.ed-fields { display: grid; gap: 16px; min-width: 0; }
.ed-field { display: grid; gap: 8px; min-width: 0; }
.ef-label {
  font-size: 13px;
  font-weight: 600;
  color: #2a3357;
}
.ef-input {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ef-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(39,71,255,.12); }
.ef-input input,
.ef-input select,
.ef-textarea textarea {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  padding: 10px 0;
  font-size: 13.5px;
}
.ef-count {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  margin-left: 8px;
}
.ef-textarea { padding: 10px 14px; align-items: flex-start; }
.ef-textarea textarea {
  resize: vertical;
  min-height: 70px;
  padding: 0;
  width: 100%;
}
.ef-textarea .ef-count { position: absolute; right: 14px; bottom: 8px; }
.ef-link svg { color: var(--blue); margin-left: 8px; }

.ed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-width: 0;
}
.ed-row > * { min-width: 0; }
.ed-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Radio group */
.ed-radio {
  border: 0;
  padding: 0;
  margin: 0;
}
.ed-radio legend { padding: 0; }
.rb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  margin-right: 22px;
}
.rb input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 2px solid #cfd5ec;
  border-radius: 999px;
  background: #fff;
  position: relative;
  cursor: pointer;
  margin: 0;
}
.rb input[type="radio"]:checked {
  border-color: var(--blue);
}
.rb input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: var(--blue);
}
.ed-radio { display: flex; flex-wrap: wrap; gap: 4px 0; padding-top: 2px; }
.ed-radio legend { width: 100%; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #2a3357; }

/* Image upload */
.ef-image {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 12px;
  align-items: center;
  background: #f7f8fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.ef-thumb {
  width: 64px; height: 44px;
  border-radius: 8px;
  background: linear-gradient(180deg, #1c2640 0%, #0d1226 100%);
  position: relative;
  overflow: hidden;
}
.ef-thumb::after {
  content: ""; position: absolute; inset: 50% 6% 6% 6%;
  background: radial-gradient(circle at 30% 60%, rgba(255,210,120,.7) 0 1.2px, transparent 2px),
              radial-gradient(circle at 60% 60%, rgba(255,210,120,.6) 0 1.2px, transparent 2px),
              linear-gradient(180deg, #2a3a66, #182250);
  border-radius: 3px;
  clip-path: polygon(0 50%, 50% 50%, 50% 20%, 100% 20%, 100% 100%, 0 100%);
}
.ef-image strong { font-size: 13.5px; display: block; }
.ef-image small { font-size: 11.5px; color: var(--muted); }
.ef-change { padding: 8px 14px; font-size: 13px; }
.ef-trash {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  color: var(--muted);
}
.ef-trash:hover { color: #ef4444; border-color: #fecaca; }

/* Segment + select with dot */
.ed-segment {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
}
.ed-segment button {
  width: 38px; height: 32px;
  border-radius: 7px;
  display: grid; place-items: center;
  color: var(--muted);
}
.ed-segment button.active {
  background: #f0f3ff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(39,71,255,.25);
}
.ef-select {
  position: relative;
}
.ef-select select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 28px 10px 0;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a0b6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") right 4px center/12px no-repeat;
}
.ef-overlay-dot {
  width: 12px; height: 12px;
  background: #1a2238;
  border-radius: 999px;
  flex: none;
  margin-right: 8px;
}

/* Live preview panel */
.ed-preview { padding: 22px; }
.ep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ep-status {
  font-size: 13px;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.ep-dot { width: 8px; height: 8px; border-radius: 999px; background: #16a34a; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.ep-status[data-state="dirty"] { color: #b45309; }
.ep-status[data-state="dirty"] .ep-dot { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.ep-status[data-state="saving"] { color: var(--blue); }
.ep-status[data-state="saving"] .ep-dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(39,71,255,.18); animation: pulse 1.2s infinite; }
.ep-status[data-state="error"] { color: #b91c1c; }
.ep-status[data-state="error"] .ep-dot { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.18); }
.ep-status[data-state="info"], .ep-status[data-state="loading"] { color: var(--muted); }
.ep-status[data-state="info"] .ep-dot, .ep-status[data-state="loading"] .ep-dot { background: #94a3b8; box-shadow: 0 0 0 4px rgba(148,163,184,.18); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.ed-form-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
.ed-discard { padding: 8px 14px; font-size: 13px; }

.ep-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  position: relative;
}
.ep-iframe {
  width: 100%;
  height: 720px;
  border: 0;
  display: block;
  background: #fff;
}
@media (max-width: 1100px) {
  .ep-iframe { height: 560px; }
}
.ep-loading {
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  z-index: 2;
  border-radius: inherit;
}
.ep-loading[hidden] { display: none; }
.ep-spinner {
  width: 18px; height: 18px;
  border: 2px solid #e6eaf2;
  border-top-color: var(--blue, #3b5bff);
  border-radius: 999px;
  animation: ep-spin .8s linear infinite;
}
@keyframes ep-spin { to { transform: rotate(360deg); } }

.ep-hero {
  position: relative;
  background: #0a0e22;
  color: #fff;
  padding: 22px 28px 36px;
}
.ep-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 70% 30%, rgba(63,90,255,.25), transparent 60%),
    linear-gradient(135deg, #0a0e22 0%, #0d1535 60%, #0a0e22 100%);
}
.ep-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(120,150,255,.25) 1px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: .35;
}
.ep-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 28px;
  z-index: 1;
}
.ep-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .14em; font-size: 13px; }
.ep-mark { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, #3b5bff, #1f3cff); }
.ep-links { margin-left: auto; display: inline-flex; gap: 22px; font-size: 12.5px; }
.ep-links a { color: rgba(255,255,255,.7); }
.ep-links a.active, .ep-links a:hover { color: #fff; }
.ep-nav .mock-btn { background: var(--blue); color: #fff; padding: 8px 14px; font-size: 12px; border-radius: 8px; font-weight: 600; }

.ep-content { position: relative; z-index: 1; }
.ep-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #c6cdff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.ep-content h2 {
  margin: 14px 0 12px;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
}
.ep-content h2 span { color: #6c8aff; }
.ep-content p {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  margin: 0 0 18px;
}
.ep-ctas { display: inline-flex; gap: 10px; }
.ep-primary { background: var(--blue); color: #fff; padding: 10px 16px; font-size: 13px; border-radius: 8px; font-weight: 600; }
.ep-secondary { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 10px 16px; font-size: 13px; border-radius: 8px; font-weight: 600; }

.ep-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 22px 28px;
  background: #fff;
}
.ep-feat { text-align: center; display: grid; gap: 4px; justify-items: center; }
.epf-ic {
  width: 38px; height: 38px;
  border-radius: 999px;
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.ic-blue { background: #e8eeff; color: #3b5bff; }
.ic-purple { background: #f1ebff; color: #8b5cf6; }
.ic-green { background: #e8f7ef; color: #16a34a; }
.ic-orange { background: #fff2dd; color: #f59e0b; }
.ep-feat strong { font-size: 13px; font-weight: 700; }
.ep-feat small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }

.ep-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 22px 28px 28px;
  background: #fff;
  border-top: 1px solid #f0f2f8;
  align-items: center;
}
.ep-eyebrow { font-size: 11px; letter-spacing: .14em; color: var(--blue); font-weight: 700; }
.ep-about h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
}
.ep-about p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ep-about ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; }
.ep-about ul li { display: inline-flex; align-items: center; gap: 8px; }
.ep-tick {
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid; place-items: center;
}
.ep-about-img {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(0,0,0,.35) 100%),
    radial-gradient(70% 80% at 50% 30%, rgba(120,160,220,.4), transparent 70%),
    linear-gradient(135deg, #1f2a44 0%, #2c3e63 60%, #1a2238 100%);
  position: relative;
  overflow: hidden;
}
.ep-about-img::after {
  content: "";
  position: absolute;
  inset: 60% 12% 12% 12%;
  background:
    radial-gradient(circle at 25% 50%, #c8a37a 0 8px, transparent 9px),
    radial-gradient(circle at 50% 45%, #d8b386 0 9px, transparent 10px),
    radial-gradient(circle at 75% 50%, #c8a37a 0 8px, transparent 9px),
    linear-gradient(180deg, rgba(180,140,100,.4), rgba(60,40,30,.6));
  border-radius: 6px;
}

/* Editor notice */
.editor-notice {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.en-icon {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: #f1ebff;
  color: #8b5cf6;
  display: grid; place-items: center;
}
.editor-notice strong { display: block; font-size: 14.5px; }
.editor-notice span { color: var(--muted); font-size: 13px; }
.en-tip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.en-tip svg { color: var(--blue); }

/* ==========================================================
   Portfolio admin & Settings
   ========================================================== */
.pm-title { display: flex; align-items: center; gap: 14px; }
.pm-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
}
.pm-title h1 { margin: 0; font-size: 20px; font-weight: 800; }
.pm-title p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #f4f6fb;
  display: grid; place-items: center;
  color: #2a3357;
}
.theme-toggle:hover { background: #e8ecf6; }

.portfolio-top { grid-template-columns: 1fr auto auto auto auto; gap: 14px; }

.pm-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.pm-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.pm-toolbar {
  display: grid;
  grid-template-columns: 1.4fr auto auto 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}
.pm-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
.pm-search svg { color: var(--muted); }
.pm-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
}
.pm-select {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
}
.pm-select select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a0b6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") right center/12px no-repeat;
  padding: 4px 22px 4px 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}
.pm-select-grow { padding-left: 14px; }

.pm-table-wrap {
  width: 100%;
  margin: 0 -22px;
  padding: 0 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pm-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13.5px;
}
@media (max-width: 720px) {
  .pm-table { min-width: 0; font-size: 13px; }
  .pm-table-wrap { margin: 0 -16px; padding: 0 16px; }
  .pm-col-date,
  .pm-col-feat { display: none; }
  .pm-table th,
  .pm-table td { padding: 12px 8px; }
  .pm-thumb { width: 40px; height: 36px; flex: none; }
  .pm-row-actions { white-space: nowrap; }
  .pm-row-actions .row-action { width: 30px; height: 30px; }
}
.pm-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.pm-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #f0f2f8;
  vertical-align: middle;
  color: #2a3357;
}
.pm-table tbody tr:last-child td { border-bottom: 0; }

.pm-proj { display: flex; gap: 12px; align-items: center; }
.pm-thumb {
  width: 56px; height: 44px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  flex: none;
}
.pm-thumb.th-night { background: linear-gradient(180deg, #1c2640 0%, #0d1226 100%); }
.pm-thumb.th-night::after { content:""; position:absolute; inset:50% 6% 6% 6%; background:radial-gradient(circle at 30% 60%, rgba(255,210,120,.7) 0 1.2px, transparent 2px),radial-gradient(circle at 60% 60%, rgba(255,210,120,.6) 0 1.2px, transparent 2px),linear-gradient(180deg, #2a3a66, #182250); border-radius:3px; clip-path:polygon(0 50%, 50% 50%, 50% 20%, 100% 20%, 100% 100%, 0 100%); }
.pm-thumb.th-bloom { background: linear-gradient(135deg, #ffe5ec, #ffb3c1); }
.pm-thumb.th-bloom::after { content:""; position:absolute; inset:25%; border-radius:999px; background:radial-gradient(circle, #fff 0 35%, #f9a8d4 36% 60%, #ec4899 61% 100%); }
.pm-thumb.th-consult { background: linear-gradient(135deg, #cbd5e1, #475569); }
.pm-thumb.th-consult::after { content:""; position:absolute; inset:30% 14% 0 14%; background:linear-gradient(180deg, #e2e8f0, #94a3b8); border-radius:30px 30px 0 0; }
.pm-thumb.th-arc { background: linear-gradient(180deg, #ff9a3d, #c2410c); }
.pm-thumb.th-arc::after { content:""; position:absolute; inset:50% 8% 8% 8%; background:linear-gradient(180deg, #1f2937, #0f172a); clip-path:polygon(0 30%, 100% 30%, 100% 100%, 0 100%); }
.pm-thumb.th-gym { background: linear-gradient(180deg, #1f2937, #0f172a); }
.pm-thumb.th-gym::after { content:""; position:absolute; inset:32% 30% 18% 30%; background: linear-gradient(180deg, #c8a37a, #8b5e3c); border-radius:6px 6px 4px 4px; }
.pm-thumb.th-travel { background: linear-gradient(180deg, #67e8f9 0%, #06b6d4 50%, #f59e0b 100%); }
.pm-thumb.th-travel::after { content:""; position:absolute; inset:40% 0 0 0; background:linear-gradient(180deg, #f5deb3 0%, #d2a679 100%); }

.pm-proj strong { display: block; font-size: 14px; }
.pm-proj small { font-size: 12px; color: var(--muted); display: block; }
.pm-url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--blue);
  margin-top: 2px;
}

.cat {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.cat-pink { background: #ffe6ed; color: #be185d; }
.cat-green { background: #e8f7ef; color: #16a34a; }
.cat-purple { background: #f1ebff; color: #7c3aed; }
.cat-orange { background: #fff2dd; color: #c2820e; }
.cat-pink-soft { background: #fde8ee; color: #db2777; }
.cat-blue-soft { background: #e0f2fe; color: #0369a1; }

.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.status-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: currentColor;
}
.status-published { color: #16a34a; }
.status-progress { color: #f59e0b; }
.status-draft { color: #7a829c; }

.star { font-size: 16px; color: #d4d8e3; cursor: pointer; }
.star.on { color: #2747ff; }

.pm-aside { display: grid; gap: 18px; }
.pm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.pm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pm-card-head h3 { margin: 0; font-size: 16px; font-weight: 700; }

.cat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.cat-list li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-radius: 8px;
  font-size: 13.5px;
  cursor: pointer;
  color: #2a3357;
}
.cat-list li:hover { background: #f7f8fc; }
.cat-list li.active { background: #eef2ff; color: #1f3cff; }
.cat-list li.active em { color: #1f3cff; }

.pm-row-actions { white-space: nowrap; }
.pm-row-actions .row-action {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #2a3357;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  margin-right: 4px;
  transition: border-color .15s, color .15s, background .15s;
}
.pm-row-actions .row-action:hover { border-color: #cfd5ec; background: #f8faff; }
.pm-row-actions .row-action-danger:hover { color: #b91c1c; border-color: #f3c2c2; background: #fff5f5; }

.pm-toolbar #pm-toggle-featured-only.active,
.btn-icon.active {
  background: var(--blue, #3b5bff);
  border-color: var(--blue, #3b5bff);
  color: #fff;
}
.pm-toolbar #pm-toggle-featured-only.active svg { color: #fff; }
.cat-list em { font-style: normal; color: var(--muted); font-size: 12px; }
.cat-list .ch { color: var(--muted); font-size: 16px; }

.qa-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.qa-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-radius: 8px;
  font-size: 13.5px;
  cursor: pointer;
  color: #2a3357;
}
.qa-list li:hover { background: #f7f8fc; }
.qa-list .ch { color: var(--muted); font-size: 16px; }
.qa-list svg { color: var(--blue); }

.pm-tip {
  background: #f4f6ff;
  border: 1px solid #e0e6ff;
  border-radius: 16px;
  padding: 18px;
}
.pm-tip strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 14px;
  margin-bottom: 6px;
}
.pm-tip p { margin: 0 0 12px; font-size: 13px; color: #2a3357; }
.pm-tip .btn-ghost { padding: 10px 14px; font-size: 13px; }

/* PM info bar */
.pm-info-bar {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.pmi-main { display: flex; align-items: center; gap: 16px; }
.pmi-icon {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--blue);
  display: grid; place-items: center;
  flex: none;
  box-shadow: 0 8px 18px rgba(39,71,255,.25);
}
.pmi-main strong { display: block; font-size: 16px; margin-bottom: 4px; }
.pmi-main span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.pmi-feat { display: flex; align-items: flex-start; gap: 10px; }
.pmi-fi {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  flex: none;
}
.pmi-feat strong { display: block; font-size: 13.5px; }
.pmi-feat span { color: var(--muted); font-size: 12.5px; }

/* Settings page */
.settings-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0 6px;
  border-bottom: 1px solid var(--line);
}
.settings-tabs {
  display: flex;
  gap: 28px;
}
.st-opt {
  position: relative;
  padding: 14px 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}
.st-opt:hover { color: var(--ink); }
.st-opt.active { color: var(--blue); }
.st-opt.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.settings-save { padding: 12px 22px; font-size: 14px; }
.settings-actions { display: inline-flex; gap: 10px; align-items: center; }
.settings-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  font-size: 14px;
  text-decoration: none;
}
.settings-close svg { color: var(--muted); }
.settings-heading h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.settings-heading p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}
.settings-main, .settings-aside {
  display: grid;
  gap: 18px;
}

.set-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.set-field { display: grid; gap: 8px; }
.set-field.set-span-1 { grid-column: 1 / 2; grid-row: span 2; }
.set-col { display: grid; gap: 16px; }

.ef-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
}
.ef-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1ebff;
  color: #7c3aed;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}
.ef-chips .chip-x { color: #7c3aed; cursor: pointer; font-weight: 700; }
.ef-caret { margin-left: auto; color: var(--muted); }

/* Brand identity */
.brand-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.brand-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
}
.brand-logo strong { font-weight: 800; letter-spacing: .14em; font-size: 16px; }
.brand-fav { justify-content: center; padding: 18px; }
.brand-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* Social list */
.social-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 10px;
}
.social-list li {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.soc-ic {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
  flex: none;
}
.soc-fb { background: #1877f2; }
.soc-tw { background: #0f1419; }
.soc-li { background: #0a66c2; }
.soc-ig { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #515bd4); }
.soc-yt { background: #ff0000; }
.soc-name { font-size: 13px; font-weight: 600; min-width: 70px; }
.soc-input { padding: 0 12px; }
.soc-input input { padding: 8px 0; font-size: 12.5px; width: 100%; border: 0; outline: none; background: transparent; }
.soc-x {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: grid; place-items: center;
  font-size: 16px;
}
.soc-x:hover { color: #ef4444; border-color: #fecaca; }
.social-add {
  border-style: dashed;
  border-color: #cfd5ec;
  color: var(--blue);
  font-weight: 600;
}
.soc-status {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}
.soc-status[data-state="saving"] { background: #e8eeff; color: var(--blue); }
.soc-status[data-state="saved"]  { background: #e8f7ef; color: #16a34a; }
.soc-status[data-state="error"]  { background: #fde8e8; color: #b91c1c; }

/* Status switches */
.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #f0f2f8;
}
.status-row:first-of-type { border-top: 0; }
.status-row strong { display: block; font-size: 14px; margin-bottom: 4px; }
.status-row span { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.status-live { color: #16a34a !important; }
.dot-on { width: 8px; height: 8px; border-radius: 999px; background: #16a34a; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }

.switch {
  position: relative;
  display: inline-block;
  width: 42px; height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute;
  inset: 0;
  background: #cfd5ec;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}
.switch span::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 999px;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::before { transform: translateX(18px); }

.kpi-trend.flat { background: #eef0f7; color: #5b6478; }

/* ==========================================================
   Login page
   ========================================================== */
.page-login {
  background: #f5f6fb;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.login-logo { margin-bottom: 36px; gap: 10px; }
.login-card h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.login-sub { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.login-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 600;
}
.login-divider {
  position: relative;
  text-align: center;
  margin: 22px 0;
  color: var(--muted);
  font-size: 12.5px;
}
.login-divider::before, .login-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 90px);
  height: 1px;
  background: var(--line);
}
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }
.login-divider span { background: #f5f6fb; padding: 0 12px; }

.login-form { display: grid; gap: 14px; }
.login-form .cf-input { padding: 0 14px; }
.login-form .cf-input input { padding: 14px 12px; font-size: 14.5px; }

.login-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fde8e8;
  color: #b91c1c;
  font-size: 13.5px;
  font-weight: 500;
}

.login-foot {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.login-foot a { color: var(--blue); font-weight: 600; }
.login-foot-sep { margin: 0 8px; color: var(--muted); }

/* "Already signed in" banner */
.signed-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  align-items: center;
  background: #f4f6ff;
  border: 1px solid #e0e6ff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}
.sb-avatar {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6c8aff, #1f3cff);
  color: #fff;
  font-weight: 700;
  display: grid; place-items: center;
}
.signed-banner strong { display: block; font-size: 15px; }
.signed-banner span { color: var(--muted); font-size: 13.5px; word-break: break-all; }
.sb-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}
.sb-actions .btn { flex: 1; justify-content: center; padding: 12px 14px; font-size: 14px; }

.login-side {
  position: relative;
  background: linear-gradient(135deg, #1f3cff 0%, #2747ff 60%, #4f6bff 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
  overflow: hidden;
}
.login-side-deco {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: .35;
  pointer-events: none;
}
.login-side blockquote {
  position: relative;
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}
.login-side-tag {
  position: relative;
  margin-top: 18px;
  display: inline-block;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-card { padding: 32px 22px; }
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #1f3cff 0%, #2747ff 60%, #4f6bff 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(39,71,255,.25);
}
.cta-banner h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 10px;
  letter-spacing: -.02em;
  font-weight: 800;
}
.cta-banner p {
  margin: 0 0 24px;
  color: rgba(255,255,255,.85);
  font-size: 16px;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.cta-banner .btn-primary:hover { background: #f3f5ff; }

/* Responsive */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; margin-top: 12px; }
  .laptop { margin: 0 auto; }
  .phone { right: 0; bottom: -20px; }
  .cta-bar { grid-template-columns: auto 1fr 1fr; }
  .cta-bar .btn { grid-column: 1 / -1; justify-self: stretch; }
  .cta-sub { grid-column: 1 / -1; }
  .services-grid, .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }

  .services-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .services-visual { min-height: auto; }
  .browser { margin: 0 auto; }
  .phone-services { right: 0; bottom: -28px; width: 170px; }
  .core-head { grid-template-columns: 1fr; align-items: start; }
  .view-all { justify-self: start; }
  .core-grid { grid-template-columns: repeat(3, 1fr); }

  .pricing-hero-inner { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; padding-bottom: 40px; }
  .price-card.featured { transform: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .packages-cta { grid-template-columns: 1fr; text-align: left; }
  .packages-cta .cta-icon { display: none; }

  /* Editor topbar: stack the 3 columns vertically */
  .editor-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 18px;
  }
  .editor-top .ed-title h1 { font-size: 18px; }
  .editor-top .ed-title p { font-size: 12.5px; }
  .ed-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .ed-tools > * { flex: 0 0 auto; }
  .ed-tools .ed-save, .ed-tools .ed-publish { flex: 1 1 auto; }
  .ed-end {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
  }
  .editor-body { padding: 18px; }

  .dash-shell { grid-template-columns: 1fr; position: relative; }
  .dash-side {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 280px;
    height: 100vh;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 8px 0 24px rgba(0,0,0,.18);
  }
  .dash-shell.menu-open .dash-side { transform: translateX(0); }
  .dash-shell.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 48, .55);
    z-index: 55;
  }
  .kpi-grid, .kpi-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .bottom-row { grid-template-columns: 1fr; }
  .leads-layout { grid-template-columns: 1fr; }
  .lead-detail { position: static; }
  .top-search { max-width: none; }
  .editor-grid { grid-template-columns: 1fr; }
  .pm-layout { grid-template-columns: 1fr; }
  .pm-info-bar { grid-template-columns: 1fr 1fr; gap: 18px; }
  .settings-grid { grid-template-columns: 1fr; }
  .set-grid { grid-template-columns: 1fr; }
  .set-field.set-span-1 { grid-row: auto; }
  .pm-toolbar { grid-template-columns: 1fr 1fr; }
  .settings-tabs-row { flex-direction: column; align-items: stretch; }
  .settings-tabs { overflow-x: auto; }

  .faq-hero-inner { grid-template-columns: 1fr; }
  .faq-illustration { height: 280px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .dark-cta { grid-template-columns: 1fr; text-align: center; }
  .dark-cta .dc-icon { justify-self: center; }

  .contact-grid { grid-template-columns: 1fr; }
  .map-card { min-height: 360px; }
  .map { min-height: 360px; }
  .info-row { grid-template-columns: 1fr 1fr; padding: 12px; gap: 8px; }
  .info-card { border-right: 0; }
  .info-card:nth-child(2n) { border-right: 0; }
  .contact-cta { grid-template-columns: 1fr; }

  .how-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
  .timeline li::before {
    /* horizontal line breaks every 4 items */
    display: block;
  }
  .timeline li:nth-child(4n)::before { display: none; }
  .timeline li:last-child::before { display: none; }
  .highlight-bar { grid-template-columns: auto 1fr; gap: 18px 24px; }
  .hb-headline { grid-column: 2 / 3; }
  .hb-feat { grid-column: 1 / -1; }
  .big-cta { grid-template-columns: 1fr; padding: 40px 28px 28px; }
  .big-cta-cards { margin-top: 8px; }
}

@media (max-width: 780px) {
  .primary-nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav.open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 28px;
  }
  .primary-nav.open ul { flex-direction: column; gap: 14px; }
  .hero-features { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .trusted-bar, .cta-bar { padding: 18px; }
  .cta-bar { grid-template-columns: 1fr; text-align: left; }
  .cta-bar .cta-icon { display: none; }
  .brands { gap: 22px; }
  .brands li { font-size: 16px; }
  .services-grid, .packages-grid, .steps { grid-template-columns: 1fr; }
  .pkg-card.featured { transform: none; }
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .section { padding: 72px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .phone { width: 140px; right: 6px; bottom: -28px; }

  .core-grid { grid-template-columns: 1fr 1fr; }
  .billing-toggle { width: 100%; max-width: 360px; }
  .bt-opt { flex: 1; justify-content: center; padding: 12px 14px; font-size: 13px; }
  .pc-price .amt { font-size: 42px; }

  .kpi-grid, .kpi-grid-5 { grid-template-columns: 1fr; }
  .dash-body { padding: 18px; }
  .dash-top { padding: 12px 18px; gap: 10px; }
  .dash-welcome { flex-direction: column; align-items: flex-start; }
  .date-pill { white-space: nowrap; }
  .top-title { font-size: 18px; }
  .top-search { display: none; }
  .top-user div { display: none; }
  .lead-tabs { gap: 16px; overflow-x: auto; }
  .dash-foot { flex-direction: column; gap: 10px; align-items: flex-start; }
  .pm-info-bar { grid-template-columns: 1fr; }
  .pm-toolbar { grid-template-columns: 1fr; }
  .ed-row, .ed-row-3 { grid-template-columns: 1fr; }

  .faq-illustration { display: none; }
  .faq-tabs { gap: 8px; }
  .ft-opt { padding: 10px 14px; font-size: 13px; }

  .method-grid { grid-template-columns: 1fr 1fr; }
  .info-row { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 22px; }
  .contact-cta { padding: 28px 22px; }

  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline li:nth-child(4n)::before { display: block; }
  .timeline li:nth-child(2n)::before { display: none; }
  .how-features { gap: 18px; }
  .big-cta-cards { grid-template-columns: 1fr; }
  .big-cta-mini { gap: 16px; font-size: 13px; }
  .browser-body { grid-template-columns: 1fr; }
  .bb-image { min-height: 160px; }
  .browser-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px; }
  .browser-stats > div { border-right: 0; padding: 0 8px; }
  .b-links span:not(.b-cta) { display: none; }
  .phone-services { width: 140px; bottom: -34px; }
  .cta-banner { padding: 36px 22px; }
}

@media (max-width: 420px) {
  .hero-features { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 40px; }
  .core-grid { grid-template-columns: 1fr; }
  .services-hero h1 { font-size: 38px; }
}

/* ===== ADA stats bar ===== */
.ada-stats { padding: 56px 0 24px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 6px;
  min-width: 0;
}
.stat-card strong {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--blue, #3b5bff);
  line-height: 1.05;
}
.stat-card span {
  font-size: 13.5px;
  color: #5b6478;
  line-height: 1.4;
}
.stat-card-warn strong { color: #ef4444; }
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ===== Tax credit calculator ===== */
.tax-calc-section { padding: 48px 0; }
.tax-calc {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  margin-top: 18px;
}
@media (max-width: 800px) {
  .tax-calc { grid-template-columns: 1fr; padding: 22px; }
}
.tc-controls { display: grid; gap: 14px; min-width: 0; }
.tc-package, .tc-custom {
  display: grid;
  gap: 6px;
}
.tc-package > span, .tc-custom > span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tc-package select, .tc-custom input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.tc-package select:focus, .tc-custom input:focus {
  border-color: var(--blue, #3b5bff);
  box-shadow: 0 0 0 3px rgba(59,91,255,.12);
}
.tc-fineprint {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.tc-fineprint strong { color: var(--ink); }
.tc-result {
  background: linear-gradient(135deg, #f0f3ff 0%, #eaf0ff 100%);
  border: 1px solid #d8e0ff;
  border-radius: 14px;
  padding: 20px 22px;
  display: grid;
  gap: 10px;
  align-content: center;
}
.tc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: #2a3357;
}
.tc-row strong { font-size: 18px; font-weight: 700; }
.tc-row-credit strong { color: #10b981; }
.tc-row-net {
  border-top: 2px solid #d8e0ff;
  padding-top: 12px;
  margin-top: 4px;
}
.tc-row-net span { font-weight: 700; }
.tc-row-net strong {
  font-size: 26px;
  color: var(--blue, #3b5bff);
  letter-spacing: -.01em;
}
.tc-cta { margin-top: 6px; }
