/* ==========================================================================
   Rayen Frost Agency — styles.css
   Shared stylesheet for index.html, privacy.html and the private dashboard (rf-portal-99.html)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0E0E0E;
  --surface: #161616;
  --surface-2: #1A1A1A;
  --surface-input: #121212;
  --border: #2A2A2A;
  --border-hover: #3A3A3A;
  --border-soft: rgba(255, 255, 255, 0.06);

  --accent: #A5C8D4;
  --accent-hover: #C2DCE4;
  --accent-soft: rgba(165, 200, 212, 0.10);
  --accent-line: rgba(165, 200, 212, 0.30);
  --accent-glow: rgba(165, 200, 212, 0.35);

  --text: #FFFFFF;
  --text-body: #D1D5DB;
  --text-muted: #9CA3AF;

  --success: #86D4AE;
  --warning: #E6C487;
  --violet: #B9A8F0;
  --danger: #EE8E8E;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 16px 40px -16px var(--accent-glow);

  --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;

  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

::selection { background: rgba(165, 200, 212, 0.3); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout utilities ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--accent); color: var(--bg);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px; transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* Ambient background: plain charcoal + a soft spotlight that follows the cursor.
   script.js updates --mx / --my on mouse move. On touch screens it rests near the top. */
.ambient {
  --mx: 50%;
  --my: 20%;
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(560px circle at var(--mx) var(--my), rgba(165, 200, 212, 0.085), transparent 62%),
    radial-gradient(220px circle at var(--mx) var(--my), rgba(165, 200, 212, 0.06), transparent 70%);
  transition: opacity 0.6s ease;
}
.ambient.is-idle { opacity: 0.55; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.section { padding: 112px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-title { font-size: clamp(32px, 4.2vw, 48px); font-weight: 800; margin-bottom: 16px; }
.section-lead { font-size: 18px; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s var(--ease); }

.btn-primary {
  background: var(--accent); color: var(--bg);
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px var(--accent-glow);
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(238, 142, 142, 0.12);
  color: var(--danger);
  border-color: rgba(238, 142, 142, 0.3);
}
.btn-danger:hover { background: rgba(238, 142, 142, 0.2); transform: translateY(-1px); }

.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn .spinner {
  display: none;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(14, 14, 14, 0.25);
  border-top-color: var(--bg);
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-icon { display: none; }

.link-btn {
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.link-btn:hover { color: var(--accent); text-decoration-color: currentColor; }
.link-btn--danger:hover { color: var(--danger); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(14, 14, 14, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled { background: rgba(14, 14, 14, 0.9); border-bottom-color: var(--border-soft); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 40px; width: auto; max-width: 240px; object-fit: contain;
  /* The JPEG has a charcoal background; "lighten" lets the page show through it, so no box edge appears */
  mix-blend-mode: lighten;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.brand:hover .brand-logo { transform: scale(1.03); }
.monogram { width: 38px; height: 38px; flex-shrink: 0; transition: transform 0.4s var(--ease); }
.brand:hover .monogram { transform: rotate(-6deg) scale(1.04); }
.monogram .mono-frame { fill: rgba(165, 200, 212, 0.06); stroke: var(--accent); stroke-width: 1.5; }
.monogram .mono-letters { fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.monogram--lg { width: 60px; height: 60px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -0.01em; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-link {
  position: relative; padding: 6px 0;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px; border: 1px solid var(--border);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  width: 18px; height: 1.5px; border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Glass surface ---------- */
/* ---------- Frost card system ----------
   Every dark card shares one frosted surface: translucent charcoal, 12px blur,
   a hairline icy border and a faint inner frost vignette. On hover a soft icy
   glow (#A5C8D4 at 0.1) follows the pointer; script.js sets --gx / --gy. */
@property --glow { syntax: '<number>'; inherits: false; initial-value: 0; }

.glass, .niche-card, .result-tile, .feed-item {
  --glow: 0;
  background:
    radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgb(165 200 212 / calc(var(--glow) * 0.1)), transparent 65%),
    var(--card-tint, linear-gradient(transparent, transparent)),
    rgba(22, 22, 22, 0.75);
  border: 1px solid rgba(165, 200, 212, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 42px rgba(165, 200, 212, 0.04),
    0 24px 48px -24px rgba(0, 0, 0, 0.6);
  transition: --glow 0.45s ease, transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease;
}
.glass { border-radius: var(--radius-lg); }
.glass:hover, .niche-card:hover, .result-tile:hover, .feed-item:hover {
  --glow: 1;
  border-color: rgba(165, 200, 212, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 42px rgba(165, 200, 212, 0.05),
    0 0 36px rgba(165, 200, 212, 0.1),
    0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
/* Tiles sit on a card that is already blurred, so they skip a second blur */
.result-tile, .feed-item { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 104px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 800; letter-spacing: -0.035em; margin: 24px 0; }
.hero-sub { font-size: 19px; color: var(--text-body); max-width: 600px; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding-top: 32px; border-top: 1px solid var(--border-soft);
}
.hero-stat { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.hero-stat-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
.hero-stat-icon svg { width: 16px; height: 16px; }
.hero-stat-text { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); padding-top: 6px; }

.hero-visual { position: relative; isolation: isolate; }
.hero-visual::before {
  content: '';
  position: absolute; inset: 12%; z-index: -1;
  background: radial-gradient(circle, rgba(165, 200, 212, 0.28), transparent 70%);
  filter: blur(60px);
}

.feed { padding: 24px; }
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.feed-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse-green 2s ease-in-out infinite; }
.feed-tag {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 10px;
}
.feed-list { display: grid; gap: 10px; }
.feed-item {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center;
  padding: 14px;
  border-radius: 12px;
  animation: feed-in 0.7s var(--ease) both;
}
.feed-item:nth-child(2) { animation-delay: 0.15s; }
.feed-item:nth-child(3) { animation-delay: 0.3s; }
.feed-item:nth-child(4) { animation-delay: 0.45s; }
.feed-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.feed-icon svg { width: 18px; height: 18px; }
.feed-item strong { display: block; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.3; }
.feed-item span { font-size: 12.5px; color: var(--text-muted); }
.feed-amount { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--accent) !important; }

.feed-meter { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.feed-meter-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px; }
.feed-meter-row b { color: var(--text); font-weight: 600; }
.meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter > span {
  display: block; height: 100%; width: 92%; border-radius: inherit;
  background: linear-gradient(90deg, rgba(165, 200, 212, 0.35), var(--accent));
  animation: meter-in 1.6s var(--ease) 0.4s both;
}

/* ---------- Niche ticker ---------- */
.ticker-label { text-align: center; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
.ticker {
  border-block: 1px solid var(--border-soft);
  background: rgba(22, 22, 22, 0.5);
  padding: 24px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; flex-shrink: 0; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 32px; padding-right: 32px;
  font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 26px); font-weight: 600;
  color: var(--text); white-space: nowrap;
}
.ticker-item::after { content: '•'; color: var(--accent); text-shadow: 0 0 12px var(--accent-glow); }

/* ---------- Niche grid ---------- */
.niche-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.niche-card { padding: 28px 24px; border-radius: var(--radius); }
.niche-card:hover { transform: translateY(-4px); }
.niche-index { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 18px; }
.niche-card h3 { font-size: 18px; margin-bottom: 8px; }
.niche-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.niche-card--cta {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  --card-tint: linear-gradient(160deg, rgba(165, 200, 212, 0.12), rgba(165, 200, 212, 0.02));
  border-color: rgba(165, 200, 212, 0.3);
}
.niche-card--cta p { color: var(--text-body); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 14px; }
.text-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative; overflow: hidden;
  padding: 36px 32px;
}
.step::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.step:hover { transform: translateY(-6px); }
.step:hover::before { opacity: 1; }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.step-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
.step-icon svg { width: 24px; height: 24px; }
.step-num {
  font-family: var(--font-display); font-size: 44px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(165, 200, 212, 0.4);
}
.step h3 { font-size: 22px; margin-bottom: 12px; }
.step > p { font-size: 15px; color: var(--text-body); }
.step-list { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.step-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-body); }
.step-list li::before {
  content: '';
  width: 6px; height: 11px; flex-shrink: 0;
  margin: 0 4px 3px 4px;
  border: solid var(--accent); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Form controls (shared) ---------- */
.input, .select, .textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.input::placeholder, .textarea::placeholder { color: #6B7280; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-hover); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(165, 200, 212, 0.12);
  background: #141414;
}
.input-sm { padding: 11px 14px; font-size: 14px; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.select {
  -webkit-appearance: none; appearance: none;
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A5C8D4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.select option { background: var(--surface); color: var(--text); }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-body); margin-bottom: 8px; letter-spacing: 0.01em; }
.field label .req { color: var(--accent); }
.field--full { grid-column: 1 / -1; }
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(238, 142, 142, 0.1); }
.field-error { display: block; font-size: 12.5px; color: var(--danger); margin-top: 6px; }
.field-error:empty { display: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--text-muted); line-height: 1.55; cursor: pointer; }
.consent input {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface-input);
  display: grid; place-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.consent input::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--bg);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transition: transform 0.15s ease;
}
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::before { transform: scale(1); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.field.is-invalid .consent input { border-color: var(--danger); }
.field .consent { font-weight: 400; color: var(--text-muted); letter-spacing: 0; margin-bottom: 0; }
.field--consent { padding-top: 4px; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  display: none;
  margin-top: 16px; padding: 12px 14px;
  border-radius: 10px;
  background: rgba(238, 142, 142, 0.08);
  border: 1px solid rgba(238, 142, 142, 0.3);
  color: #F5B5B5; font-size: 14px;
}
.form-alert.is-visible { display: block; }

/* ---------- ROI calculator ---------- */
.calc { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; }
/* Let grid children shrink below their content width on small screens */
.calc > *, .hero-grid > *, .audit-grid > *, .steps > *, .niche-grid > *, .metrics > * { min-width: 0; }
.calc-panel { padding: 36px; }
.calc-panel h3 { font-size: 20px; margin-bottom: 6px; }
.calc-panel > p { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.calc-field { margin-bottom: 30px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.calc-label { font-weight: 600; font-size: 15px; color: var(--text); }
.calc-value { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; }

.range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--fill, 50%), var(--border) var(--fill, 50%), var(--border) 100%);
  cursor: pointer;
}
.range:focus { outline: none; }
.range:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #FFFFFF; border: 4px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(165, 200, 212, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.range:hover::-webkit-slider-thumb,
.range:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(165, 200, 212, 0.18), 0 4px 12px rgba(0, 0, 0, 0.4); }
.range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #FFFFFF; border: 4px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(165, 200, 212, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.range::-moz-range-track { height: 6px; border-radius: 99px; background: transparent; }

.calc-results {
  padding: 36px;
  display: flex; flex-direction: column;
  --card-tint: linear-gradient(160deg, rgba(165, 200, 212, 0.12), transparent 45%);
  border-color: rgba(165, 200, 212, 0.3);
}
.result-hero { padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid var(--border-soft); }
.result-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.result-big {
  font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 800;
  color: var(--text); letter-spacing: -0.03em; line-height: 1.15;
  margin: 10px 0 4px; font-variant-numeric: tabular-nums;
}
.result-sub { font-size: 14px; color: var(--text-muted); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.result-tile { padding: 18px; border-radius: 12px; }
.result-tile .k { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }
.result-tile .v { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.calc-results .btn { margin-top: auto; }
.calc-disclaimer { font-size: 12px; color: var(--text-muted); margin-top: 16px; line-height: 1.55; }
.flash { animation: flash 0.6s var(--ease); }

/* ---------- Audit / lead capture ---------- */
.audit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.audit-copy h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; margin: 20px 0 18px; }
.audit-copy > p { font-size: 17px; color: var(--text-body); margin-bottom: 32px; }
.audit-list { display: grid; gap: 18px; margin-bottom: 32px; }
.audit-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.tick {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
.tick svg { width: 16px; height: 16px; }
.audit-list strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.audit-list .d { font-size: 14px; color: var(--text-muted); }
.audit-note { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-muted); }
.audit-note svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.form-card { padding: 40px; position: relative; }

/* Submission overlay: covers the form while the lead is being sent */
.form-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center;
  border-radius: inherit;
  background: rgba(14, 14, 14, 0.82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: overlay-in 0.3s var(--ease) both;
}
.form-overlay strong { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); }
.form-overlay span:last-child { font-size: 14px; color: var(--text-muted); }
.overlay-spinner {
  width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%;
  border: 3px solid var(--accent-soft); border-top-color: var(--accent);
  box-shadow: 0 0 30px -4px var(--accent-glow);
  animation: spin 0.9s linear infinite;
}
.form-card-head h3 { font-size: 22px; margin-bottom: 6px; }
.form-card-head p { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.form-card .btn-block { margin-top: 24px; }
.form-footnote { text-align: center; font-size: 12.5px; color: var(--text-muted); margin-top: 14px; }

.success-panel { text-align: center; padding: 16px 4px; }
.success-panel:focus { outline: none; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
  box-shadow: 0 0 40px -6px var(--accent-glow);
  animation: pop 0.5s var(--ease) both;
}
.success-icon svg { width: 32px; height: 32px; }
.success-icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s var(--ease) 0.25s forwards; }
.success-panel h3 { font-size: 26px; margin-bottom: 10px; }
.success-panel > p { max-width: 400px; margin: 0 auto 28px; color: var(--text-body); }
.success-steps { counter-reset: s; display: grid; gap: 12px; max-width: 400px; margin: 0 auto 28px; text-align: left; }
.success-steps li { counter-increment: s; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-body); }
.success-steps li::before {
  content: counter(s);
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--accent-line); color: var(--accent);
  font-size: 12px; font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: rgba(10, 10, 10, 0.6); padding: 56px 0 36px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid var(--border-soft);
}
.footer-tagline { font-size: 14px; color: var(--text-muted); max-width: 320px; margin-top: 16px; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-2px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px; font-size: 13px; color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }
.site-footer--compact { padding: 0 0 28px; }
.site-footer--compact .footer-bottom { border-top: none; }

/* ---------- Reveal animations ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 0.8s var(--ease) var(--d, 0s),
    translate 0.8s var(--ease) var(--d, 0s),
    --glow 0.45s ease,
    transform 0.35s var(--ease),
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    background-color 0.3s ease;
}
.js .reveal.is-visible { opacity: 1; translate: none; }

/* ---------- Toasts ---------- */
.toast-region {
  position: fixed; right: 24px; bottom: 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  max-width: calc(100vw - 48px);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(26, 26, 26, 0.96);
  border: 1px solid var(--border);
  color: var(--text); font-size: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: toast-in 0.4s var(--ease) both;
}
.toast::before {
  content: '';
  width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
}
.toast--success::before { background: var(--success); box-shadow: 0 0 10px rgba(134, 212, 174, 0.5); }
.toast--error::before { background: var(--danger); box-shadow: 0 0 10px rgba(238, 142, 142, 0.5); }
.toast--error {
  color: #FFD4D4;
  background: rgba(58, 18, 20, 0.96);
  border-color: rgba(238, 142, 142, 0.45);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 24px rgba(238, 142, 142, 0.15);
}
.toast.is-leaving { animation: toast-out 0.3s var(--ease) forwards; }

/* ==========================================================================
   Admin dashboard
   ========================================================================== */
.admin-main { padding: 48px 0 64px; }

.admin-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 36px; }
.admin-title-wrap { display: flex; align-items: center; gap: 20px; }
.kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.admin-head h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.admin-head .updated { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }

.status-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
}
.status-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse-current 2s ease-in-out infinite; }
.status-badge--ok { color: var(--success); border-color: rgba(134, 212, 174, 0.3); background: rgba(134, 212, 174, 0.08); }
.status-badge--accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.status-badge--warn { color: var(--warning); border-color: rgba(230, 196, 135, 0.3); background: rgba(230, 196, 135, 0.08); }
.status-badge--off { color: var(--danger); border-color: rgba(238, 142, 142, 0.3); background: rgba(238, 142, 142, 0.08); }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.metric { padding: 24px; position: relative; overflow: hidden; }
.metric:hover { transform: translateY(-3px); }
.metric-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.metric-label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.metric-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.metric-icon svg { width: 18px; height: 18px; }
.metric-value { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric-caption { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }
.metric-caption b { color: var(--accent); font-weight: 600; }

.panel { overflow: hidden; }
.toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.panel-title { font-size: 18px; }
.toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search { position: relative; min-width: 260px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.search .input { padding-left: 40px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px; border-bottom: 1px solid var(--border-soft); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.chip .count { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--text-body); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chip:hover { color: var(--text); border-color: var(--border-hover); }
.chip.is-active { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.chip.is-active .count { background: rgba(14, 14, 14, 0.15); color: var(--bg); }

.table-wrap { overflow-x: auto; }
.leads-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.leads-table th {
  padding: 14px 24px;
  text-align: left; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border);
}
.leads-table td { padding: 16px 24px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; color: var(--text-body); }
.leads-table tbody tr { transition: background-color 0.2s ease; }
.leads-table tbody tr:hover { background: rgba(165, 200, 212, 0.035); }
.leads-table tbody tr:last-child td { border-bottom: none; }
.leads-table tr.is-fresh { animation: row-in 1.6s var(--ease); }
.th-actions, .leads-table td.actions { text-align: right; white-space: nowrap; }

.lead-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(165, 200, 212, 0.25), rgba(165, 200, 212, 0.06));
  border: 1px solid var(--accent-line);
  font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--text);
}
.lead-meta { min-width: 0; }
.lead-meta strong { display: block; color: var(--text); font-weight: 600; }
.lead-meta small { display: block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--text-muted); }

.niche-tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-soft);
  font-size: 12.5px; color: var(--text-body); white-space: nowrap;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px; border: 1px solid;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-new { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.status-contacted { color: var(--warning); background: rgba(230, 196, 135, 0.08); border-color: rgba(230, 196, 135, 0.3); }
.status-booked { color: var(--violet); background: rgba(185, 168, 240, 0.08); border-color: rgba(185, 168, 240, 0.3); }
.status-closed { color: var(--success); background: rgba(134, 212, 174, 0.08); border-color: rgba(134, 212, 174, 0.3); }
.status-lost { color: var(--danger); background: rgba(238, 142, 142, 0.08); border-color: rgba(238, 142, 142, 0.3); }
.num { font-variant-numeric: tabular-nums; color: var(--text) !important; font-weight: 600; }

.icon-btn {
  width: 36px; height: 36px; margin-left: 6px;
  display: inline-grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.icon-btn--danger:hover { color: var(--danger); border-color: rgba(238, 142, 142, 0.35); background: rgba(238, 142, 142, 0.08); }

.empty-state { padding: 64px 24px; text-align: center; }
.empty-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
.empty-icon svg { width: 24px; height: 24px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { max-width: 400px; margin: 0 auto 22px; font-size: 14px; color: var(--text-muted); }

.panel-foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 14px 24px; border-top: 1px solid var(--border-soft);
  font-size: 12.5px; color: var(--text-muted);
}
.panel-foot-actions { display: flex; gap: 18px; }
.admin-note { margin-top: 20px; font-size: 12.5px; color: var(--text-muted); text-align: center; }

/* ---------- Modals ---------- */
.modal {
  margin: auto;
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #141414;
  color: var(--text-body);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
  overflow: auto;
}
.modal--sm { width: min(440px, calc(100vw - 32px)); }
.modal[open] { animation: modal-in 0.35s var(--ease); }
.modal::backdrop { background: rgba(5, 5, 5, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid var(--border-soft);
}
.modal-head h2 { font-size: 20px; }
.modal-body { padding: 24px; }
.modal-body > p { font-size: 15px; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 18px 24px; border-top: 1px solid var(--border-soft); }
.modal .icon-btn { margin-left: 0; }

.detail-list { display: grid; grid-template-columns: 150px 1fr; gap: 14px 16px; font-size: 14px; }
.detail-list dt { color: var(--text-muted); }
.detail-list dd { color: var(--text); word-break: break-word; }
.notes-box {
  margin-top: 20px; padding: 14px;
  border-radius: 10px; border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px; white-space: pre-wrap;
}
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(165, 200, 212, 0.5); } 50% { box-shadow: 0 0 0 6px rgba(165, 200, 212, 0); } }
@keyframes pulse-green { 0%, 100% { box-shadow: 0 0 0 0 rgba(134, 212, 174, 0.5); } 50% { box-shadow: 0 0 0 6px rgba(134, 212, 174, 0); } }
@keyframes pulse-current { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes feed-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes meter-in { from { width: 0; } }
@keyframes flash { from { color: var(--accent); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes row-in { from { background-color: rgba(165, 200, 212, 0.16); } to { background-color: transparent; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 540px; }
  .niche-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .calc { grid-template-columns: 1fr; }
  .audit-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px;
    background: rgba(14, 14, 14, 0.98);
    border-bottom: 1px solid var(--border-soft);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu .nav-link { padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--border-soft); }
  .nav-menu .nav-link::after { display: none; }
  .nav-menu .btn { margin-top: 18px; }
  .footer-right { align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-sub { font-size: 17px; }
  .hero-ctas .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .hero-stat { align-items: center; }
  .hero-stat-text { padding-top: 0; }
  .brand-logo { height: 34px; }
  .feed-item { grid-template-columns: 36px 1fr auto; gap: 10px; padding: 12px; }
  .feed-icon { width: 36px; height: 36px; }
  .niche-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card, .calc-panel, .calc-results, .step { padding: 24px; }
  .result-tile .v { font-size: 19px; }
  .brand-sub { display: none; }

  .admin-main { padding: 32px 0 48px; }
  .monogram--lg { width: 48px; height: 48px; }
  .metrics { grid-template-columns: 1fr; gap: 12px; }
  .metric { padding: 18px; }
  .metric-value { font-size: 24px; }
  .toolbar { padding: 16px; }
  .toolbar-right { width: 100%; }
  .search { min-width: 0; flex: 1 1 100%; }
  .chips { padding: 14px 16px; }
  .panel-foot { padding: 14px 16px; }

  .leads-table thead { display: none; }
  .leads-table, .leads-table tbody, .leads-table tr, .leads-table td { display: block; width: 100%; }
  .leads-table tr { padding: 16px; border-bottom: 1px solid var(--border); }
  .leads-table tbody tr:last-child { border-bottom: none; }
  .leads-table td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 0; border: none; }
  .leads-table td::before {
    content: attr(data-label);
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted);
  }
  .leads-table td[data-label="Lead Name"] { padding-bottom: 12px; }
  .leads-table td[data-label="Lead Name"]::before,
  .leads-table td.actions::before { display: none; }
  .leads-table td.actions { justify-content: flex-end; padding-top: 12px; }
  .lead-meta small { max-width: 200px; }

  .detail-list { grid-template-columns: 1fr; gap: 2px; }
  .detail-list dd { margin-bottom: 12px; }
  .footer-top { flex-direction: column; }
  .toast-region { left: 16px; right: 16px; bottom: 16px; max-width: none; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; }
  .ticker-track { animation: none; }
}

/* ==========================================================================
   Header actions + language switcher (EN / IT / FR)
   ========================================================================== */
.nav-menu { margin-left: auto; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(165, 200, 212, 0.18);
  background: rgba(22, 22, 22, 0.75);
  color: var(--text);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] {
  border-color: rgba(165, 200, 212, 0.4);
  box-shadow: 0 0 24px rgba(165, 200, 212, 0.1);
}
.lang-chevron { width: 10px; height: 7px; color: var(--accent); transition: transform 0.25s var(--ease); }
.lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-flag {
  display: inline-block; width: 20px; height: 14px; flex-shrink: 0;
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.lang-flag svg { display: block; width: 100%; height: 100%; }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  min-width: 190px; padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(165, 200, 212, 0.18);
  background: rgba(20, 20, 20, 0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7), 0 0 30px rgba(165, 200, 212, 0.06);
  animation: menu-in 0.2s var(--ease) both;
}
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 8px;
  font-size: 14px; color: var(--text-body); text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--accent-soft); color: var(--text); outline: none; }
.lang-menu button[aria-checked="true"] { color: var(--text); }
.lang-menu .lang-name { flex: 1; }
.lang-menu .lang-code { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); }
.lang-menu button[aria-checked="true"] .lang-code { color: var(--accent); }

@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .lang-btn { height: 44px; padding: 0 10px; }
  .lang-btn .lang-code { display: none; }
}

/* ==========================================================================
   Privacy policy page
   ========================================================================== */
.legal-main { padding: 64px 0 96px; }
.legal { max-width: 780px; margin: 0 auto; }
.legal-head { margin-bottom: 36px; }
.legal-head .eyebrow { margin-bottom: 20px; }
.legal-head h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; text-wrap: balance; }
.legal-meta { font-size: 14px; color: var(--text-muted); }

.legal-callout { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; margin-bottom: 28px; border-radius: var(--radius); }
.legal-callout .tick { flex-shrink: 0; }
.legal-callout strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.legal-callout p { font-size: 14.5px; color: var(--text-body); }

.legal-toc { padding: 22px 24px; margin-bottom: 12px; border-radius: var(--radius); }
.legal-toc h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.legal-toc ol { list-style: decimal; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.legal-toc li { font-size: 14px; padding: 3px 0; break-inside: avoid; }
.legal-toc li::marker { color: var(--text-muted); }
.legal-toc a { color: var(--text-body); transition: color 0.2s ease; }
.legal-toc a:hover { color: var(--accent); }

.legal section { padding-top: 44px; }
.legal section h2 { font-size: 22px; margin-bottom: 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal section h3 { font-size: 16px; margin: 20px 0 8px; }
.legal p, .legal li { font-size: 15.5px; color: var(--text-body); line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal section ul { list-style: disc; padding-left: 1.3em; margin-top: 10px; display: grid; gap: 6px; }
.legal section li::marker { color: var(--accent); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(165, 200, 212, 0.4); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--accent); }

.legal-table-wrap { overflow-x: auto; margin-top: 14px; border-radius: 12px; border: 1px solid rgba(165, 200, 212, 0.18); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.legal-table th, .legal-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft); }
.legal-table th { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); background: rgba(255, 255, 255, 0.02); }
.legal-table td { color: var(--text-body); }
.legal-table tr:last-child td { border-bottom: none; }

.legal-contact { margin-top: 18px; padding: 22px 24px; border-radius: var(--radius); }
.legal-contact p { margin: 0; }

@media (max-width: 640px) {
  .legal-main { padding: 40px 0 64px; }
  .legal-toc ol { columns: 1; }
}

/* ==========================================================================
   Admin passcode lock
   ========================================================================== */
.lock-screen { display: none; }
.admin-locked .lock-screen {
  display: grid; place-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 32px 16px;
}
.admin-locked .admin-main,
.admin-locked .site-footer,
.admin-locked #btn-lock { display: none !important; }

.lock-card { width: min(400px, 100%); padding: 36px 32px; text-align: center; }
.lock-icon {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
  box-shadow: 0 0 30px -6px var(--accent-glow);
}
.lock-icon svg { width: 24px; height: 24px; }
.lock-card h1 { font-size: 24px; margin-bottom: 8px; }
.lock-card > p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.pin-input {
  text-align: center;
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  letter-spacing: 0.5em; text-indent: 0.5em;
  padding: 14px 16px;
}
.lock-card .btn-block { margin-top: 14px; }
.lock-error { min-height: 20px; margin-top: 12px; font-size: 13px; color: var(--danger); }
.lock-card.is-shaking { animation: shake 0.45s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}
.admin-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) {
  .btn-label-long { display: none; }
}

.legal .legal-after-table { margin-top: 16px; }

/* Long translated button labels (IT / FR) wrap on narrow phones instead of overflowing */
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
}

/* ==========================================================================
   CRM — Pipeline Command Center upgrades
   ========================================================================== */

/* ---------- Metric cards: conversion + sub-metrics ---------- */
.metric { display: flex; flex-direction: column; }
.metric-meter {
  height: 4px; margin-top: 12px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.06); overflow: hidden;
}
.metric-meter span {
  display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, rgba(165, 200, 212, 0.45), var(--accent));
  transition: width 0.6s var(--ease);
}
.metric-sub {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.metric-sub-label { font-size: 12.5px; color: var(--text-muted); }
.metric-sub-value { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.metric-sub-value.is-alert { color: var(--accent); text-shadow: 0 0 14px var(--accent-glow); }
.metric-sub--won { margin-top: 16px; transform: none; }
.metric-sub--won .metric-sub-value { color: var(--success); }
.metric-sub--won + .metric-caption { margin-top: 6px; }

/* ---------- Conversion funnel ---------- */
.funnel { padding: 22px 24px 24px; margin-bottom: 28px; }
.funnel-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.funnel-note { font-size: 13px; color: var(--text-muted); }
.funnel-note b { color: var(--danger); font-weight: 600; }
.funnel-stages { display: grid; gap: 12px; }
.funnel-stage {
  display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; gap: 18px; align-items: center;
  padding: 4px 0;
}
.funnel-label { display: flex; flex-direction: column; min-width: 0; }
.funnel-label > span:first-child { font-size: 14px; font-weight: 600; color: var(--text); }
.funnel-step { font-size: 12px; color: var(--text-muted); }
.funnel-track { height: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.funnel-fill {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, rgba(165, 200, 212, 0.55), var(--accent));
  box-shadow: 0 0 16px rgba(165, 200, 212, 0.25);
  transition: width 0.6s var(--ease);
}
.funnel-stage:nth-child(2) .funnel-fill { opacity: 0.85; }
.funnel-stage:nth-child(3) .funnel-fill { opacity: 0.72; }
.funnel-stage:nth-child(4) .funnel-fill { opacity: 0.6; }
.funnel-figures { display: flex; align-items: baseline; gap: 10px; min-width: 96px; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.funnel-figures b { font-family: var(--font-display); font-size: 18px; color: var(--text); }
.funnel-figures span { font-size: 12.5px; color: var(--text-muted); min-width: 40px; text-align: right; }

/* ---------- Toolbar ---------- */
.chip--due { border-color: rgba(165, 200, 212, 0.3); }
.chip--due:not(.is-active) .count { background: var(--accent-soft); color: var(--accent); }

/* ---------- Contact (outreach) buttons ---------- */
.contact-actions { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 230px; padding: 6px 10px;
  border-radius: 8px; border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--text-body);
  white-space: nowrap; overflow: hidden;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.contact-btn span { overflow: hidden; text-overflow: ellipsis; }
.contact-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.contact-btn--wa svg { color: #6FD39B; }
.contact-btn--mail svg { color: var(--accent); }
.contact-btn--wa:hover { color: var(--text); border-color: rgba(111, 211, 155, 0.45); background: rgba(111, 211, 155, 0.08); }
.contact-btn--mail:hover { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.contact-btn.is-empty { color: #6B7280; border-style: dashed; border-color: rgba(255, 255, 255, 0.08); cursor: default; }
.contact-btn.is-empty svg { color: #4B5563; }

/* ---------- Follow-up due rows ---------- */
.leads-table tbody tr.is-due {
  background: linear-gradient(90deg, rgba(165, 200, 212, 0.08), transparent 55%);
}
.leads-table tbody tr.is-due td:first-child { position: relative; }
.leads-table tbody tr.is-due td:first-child::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: due-pulse 2.2s ease-in-out infinite;
}
@keyframes due-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(165, 200, 212, 0.55); }
  50% { opacity: 0.45; box-shadow: 0 0 4px rgba(165, 200, 212, 0.2); }
}
.due-chip {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 3px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--bg); background: var(--accent);
}
.due-chip svg { width: 12px; height: 12px; }

.table-more { display: flex; justify-content: center; padding: 16px; border-top: 1px solid var(--border-soft); }

/* ---------- Large modals + lead workspace ---------- */
.modal--lg { width: min(980px, calc(100vw - 32px)); }
.modal-title-block { min-width: 0; }
.modal-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; align-items: start; }
.modal.is-new .workspace { grid-template-columns: 1fr; }
.workspace-main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.workspace-status { display: flex; align-items: center; gap: 12px; }
.workspace-status label { font-size: 13px; font-weight: 600; color: var(--text-body); }
.workspace-status .select { width: auto; min-width: 190px; }
.workspace .quick-actions { margin-top: 0; }
.quick-actions .btn svg { width: 16px; height: 16px; }
.muted-line { font-size: 13.5px; color: var(--text-muted); }
.muted-inline { color: var(--text-muted); font-size: 13px; }
.detail-list dd.pre { white-space: pre-wrap; }
.detail-list a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(165, 200, 212, 0.4); text-underline-offset: 3px; }

.followup-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(165, 200, 212, 0.18); background: rgba(255, 255, 255, 0.02);
}
.followup-date { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-body); }
.followup-date svg { width: 16px; height: 16px; color: var(--accent); }
.followup-date.is-due { color: var(--accent); }
.followup-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-btn {
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--text-body);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.mini-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.mini-btn--muted { color: var(--text-muted); }

/* ---------- Activity Notes ---------- */
.activity {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 18px; border-radius: 14px;
  border: 1px solid rgba(165, 200, 212, 0.18);
  background: rgba(22, 22, 22, 0.75);
  box-shadow: inset 0 0 42px rgba(165, 200, 212, 0.04);
}
.activity-head { display: flex; align-items: center; justify-content: space-between; }
.activity-head h3 { font-size: 16px; }
.activity-count { min-width: 26px; padding: 2px 8px; border-radius: 999px; text-align: center; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.activity-input { min-height: 76px; }
.activity-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.activity-hint { font-size: 12px; color: var(--text-muted); }
.activity-list { display: grid; gap: 2px; max-height: 340px; overflow-y: auto; margin-top: 6px; padding-right: 4px; }
.activity-item { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border-soft); }
.activity-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.activity-item--status .activity-dot { background: var(--violet); box-shadow: none; }
.activity-item--outreach .activity-dot { background: #6FD39B; box-shadow: none; }
.activity-item--followup .activity-dot { background: var(--warning); box-shadow: none; }
.activity-item--system .activity-dot { background: #6B7280; box-shadow: none; }
.activity-body { min-width: 0; }
.activity-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-muted); }
.activity-type { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-body); }
.activity-del { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; font-size: 16px; line-height: 1; color: var(--text-muted); }
.activity-del:hover { color: var(--danger); background: rgba(238, 142, 142, 0.1); }
.activity-body p { font-size: 14px; color: var(--text); margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.activity-empty { font-size: 13px; color: var(--text-muted); padding: 10px 0; border-top: 1px solid var(--border-soft); }

/* ---------- CSV import dialog ---------- */
.import-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.import-stat { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(165, 200, 212, 0.18); background: rgba(255, 255, 255, 0.02); }
.import-stat b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.import-stat span { font-size: 12.5px; color: var(--text-muted); }
.import-stat--ok b { color: var(--accent); }
.import-subhead { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; }
.import-mapping { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.map-chip { padding: 6px 10px; border-radius: 8px; font-size: 12.5px; color: var(--text-muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-soft); }
.map-chip b { color: var(--text); font-weight: 600; }
.import-preview-wrap { border: 1px solid var(--border-soft); border-radius: 12px; }
.import-preview { width: 100%; border-collapse: collapse; font-size: 13px; }
.import-preview th { text-align: left; padding: 10px 14px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.import-preview td { padding: 10px 14px; color: var(--text-body); border-bottom: 1px solid var(--border-soft); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.import-preview tr:last-child td { border-bottom: none; }
.import-none { white-space: normal !important; color: var(--text-muted) !important; }
.import-note { margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .workspace { grid-template-columns: 1fr; }
  .funnel-stage { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .funnel-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .funnel { padding: 18px 16px; }
  .import-stats { grid-template-columns: 1fr; }
  .contact-actions { align-items: flex-end; }
  .contact-btn { max-width: 190px; }
  .workspace-status .select { min-width: 0; flex: 1; }
  .leads-table tbody tr.is-due td:first-child::before { top: 0; bottom: 0; left: -16px; }
}
@media (prefers-reduced-motion: reduce) {
  .leads-table tbody tr.is-due td:first-child::before { animation: none; }
}

/* ---------- CRM table fit ---------- */
@media (min-width: 1101px) {
  .leads-table th, .leads-table td { padding-left: 16px; padding-right: 16px; }
  .leads-table th:first-child, .leads-table td:first-child { padding-left: 22px; }
  .leads-table th:last-child, .leads-table td:last-child { padding-right: 22px; }
  .leads-table td[data-label="Business Name"] { min-width: 130px; }
}
.leads-table .actions .icon-btn { margin-left: 4px; }
.lead-meta strong { overflow-wrap: anywhere; }

/* On narrower desktops the contact buttons become compact icons (number / email stay in the tooltip) */
@media (max-width: 1320px) and (min-width: 641px) {
  .contact-actions { flex-direction: row; }
  .contact-btn { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .contact-btn span { display: none; }
  .contact-btn svg { width: 17px; height: 17px; }
}

/* Tablets and small laptops: the lead table becomes stacked cards (same as phones) */
@media (max-width: 1100px) {
  .leads-table thead { display: none; }
  .leads-table, .leads-table tbody, .leads-table tr, .leads-table td { display: block; width: 100%; }
  .leads-table tr { padding: 16px 20px; border-bottom: 1px solid var(--border); }
  .leads-table tbody tr:last-child { border-bottom: none; }
  .leads-table td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 0; border: none; }
  .leads-table td::before {
    content: attr(data-label);
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); flex-shrink: 0;
  }
  .leads-table td[data-label="Lead Name"] { padding-bottom: 12px; }
  .leads-table td[data-label="Lead Name"]::before,
  .leads-table td.actions::before { display: none; }
  .leads-table td.actions { justify-content: flex-end; padding-top: 12px; }
  .leads-table td[data-label="Business Name"] { text-align: right; }
  .leads-table tbody tr.is-due td:first-child::before { top: 0; bottom: 0; left: -20px; }
  .contact-actions { flex-direction: row; justify-content: flex-end; }
}

/* ---------- Est. Value column ---------- */
.th-value { text-align: right; }
.value-cell {
  text-align: right; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  font-variant-numeric: tabular-nums; color: var(--text-body);
}
/* Over €1,000: high-ticket deals glow icy silver-blue */
.value-cell.is-high { color: var(--accent); text-shadow: 0 0 14px rgba(165, 200, 212, 0.35); }
td.value-cell.is-high::after {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: middle;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
}
@media (max-width: 1100px) {
  .leads-table td.value-cell { justify-content: space-between; }
  td.value-cell.is-high::after { display: none; }
}
/* Give the extra column room: compact contact buttons up to 1440px */
@media (max-width: 1440px) and (min-width: 641px) {
  .contact-actions { flex-direction: row; }
  .contact-btn { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .contact-btn span { display: none; }
  .contact-btn svg { width: 17px; height: 17px; }
}

/* QA: long names wrap inside cards, and due bars show in the card layout */
@media (max-width: 1100px) { .leads-table td { overflow-wrap: anywhere; } .leads-table tbody tr.is-due td:first-child::before { display: block; } }
@media (max-width: 640px) {
  .contact-actions { flex-wrap: wrap; }
  .contact-btn.is-empty { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .contact-btn.is-empty span { display: none; }
}
