/* Core Web Services — Default Theme (permanent, spec §28.3).
   Premium dark design system. ALL colors are CSS variables so the Theme
   Manager (§28) can restyle the public site and customer portal without
   touching components. The admin dashboard uses fixed colors and is
   never themed (§28.8). */

:root {
  --midnight: #030304;
  --deep-navy: #0A0A0C;
  --royal-blue: #4169E1;
  --electric-blue: #6E93FF;
  --ice-white: #F5F5F7;

  --bg: var(--midnight);
  --surface: #0E0E11;
  --card-bg: rgba(255, 255, 255, 0.03);
  --text: #F2F3F5;
  --text-muted: #9BA0A9;
  --accent: var(--royal-blue);
  --accent-strong: var(--electric-blue);
  --accent-2: #2F4FB8;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(110, 147, 255, 0.22);
  --nav-bg: rgba(3, 3, 4, 0.78);
  --footer-bg: #000000;
  --button-bg: #4169E1;
  --button-text: #FFFFFF;
  --link: #8FA8FF;
  --radius: 14px;
  --glow: rgba(65, 105, 225, 0.45);

  /* admin-only fixed palette (never themed) */
  --admin-bg: #08080A;
  --admin-surface: #131316;
  --admin-nav-bg: #0C0C0F;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glow (public/portal; admin overrides to flat) */
body:not(.admin-body)::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 75% -5%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(45% 40% at 8% 30%, color-mix(in srgb, var(--accent-2, #8B5CF6) 8%, transparent), transparent 70%),
    radial-gradient(50% 35% at 50% 110%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em; line-height: 1.15;
}
h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h3 { font-size: 1.1rem; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.text-danger { color: #F87171; }
.prose { white-space: pre-wrap; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.reveal-in { opacity: 1; transform: none; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0.8rem 1.75rem;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand-logo { height: 34px; width: auto; filter: drop-shadow(0 0 10px var(--glow)); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.footer-logo { height: 48px; width: auto; margin-bottom: 0.7rem; }
.login-logo { width: 190px; max-width: 70%; height: auto; margin: 0 auto 0.6rem; display: block; }
.nav-links { display: flex; gap: 1.35rem; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong);
  color: var(--text); font-size: 1.2rem; border-radius: 10px; padding: 0.2rem 0.65rem;
  cursor: pointer;
}
.announcement {
  background: var(--accent-strong); color: #fff; text-align: center;
  padding: 0.45rem 1rem; font-size: 0.92rem;
}
.theme-banner { padding: 0.45rem 1rem; text-align: center; font-size: 0.92rem; }
.theme-banner a { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 12px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  font-family: "Inter", system-ui, sans-serif;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.18s ease,
              border-color 0.18s ease, filter 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--button-text);
  box-shadow: 0 4px 22px -4px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px -4px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-secondary {
  border-color: var(--border-strong); color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-1px);
}
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; border-radius: 9px; }
.btn-lg { padding: 0.95rem 2.2rem; font-size: 1.05rem; border-radius: 14px; }
.btn-link { background: none; border: none; color: var(--link); cursor: pointer; padding: 0; font-size: inherit; box-shadow: none; }
.btn-link:hover { transform: none; filter: none; text-decoration: underline; }
.nav-cta { white-space: nowrap; padding: 0.55rem 1.2rem; }
.nav-links a.link-active { color: var(--text); font-weight: 600; text-decoration: none; box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 7rem 1.5rem 5.5rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 65% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 65% at 50% 35%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; left: 50%; top: -180px; width: 720px; height: 480px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  filter: blur(30px);
}
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 1.6rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  color: color-mix(in srgb, var(--accent) 70%, #fff);
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.02em;
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 800;
  margin: 0 0 1.3rem; letter-spacing: -0.03em;
}
.hero-sub {
  color: var(--text-muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  margin: 0 auto 2.4rem; max-width: 640px;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Steps list (editorial rows, no cards) ---------- */
.steps-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.step-row {
  display: flex; gap: 1.6rem; align-items: flex-start;
  padding: 1.8rem 0; border-top: 1px solid var(--border);
}
.step-row:last-child { border-bottom: 1px solid var(--border); }
.step-num {
  font-family: "Sora", system-ui, sans-serif; font-size: 0.95rem; font-weight: 800;
  color: var(--accent-strong); letter-spacing: 0.08em; flex-shrink: 0;
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 0.35rem 0.6rem; margin-top: 0.1rem;
}
.step-body h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.step-body p { color: var(--text-muted); margin: 0; }

/* ---------- About / personal note ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.about-note .section-title { text-align: left; margin: 0.5rem 0 1.4rem; }
.about-note p { color: var(--text-muted); margin: 0 0 1rem; line-height: 1.75; }
.about-sign {
  font-family: "Sora", system-ui, sans-serif; font-size: 1.3rem;
  color: var(--text); font-weight: 700;
}
.about-points { display: flex; flex-direction: column; gap: 1.6rem; }
.point-row { display: flex; gap: 1.1rem; align-items: flex-start; }
.point-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-strong); border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.point-icon svg { width: 22px; height: 22px; }
.point-row h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.point-row p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Layout sections ---------- */
.section { max-width: 1140px; margin: 0 auto; padding: 4rem 1.5rem; }
.section-alt { background: rgba(255,255,255,0.015); max-width: none; border-block: 1px solid var(--border); }
.section-alt > * { max-width: 1140px; margin-left: auto; margin-right: auto; }
.section-narrow { max-width: 680px; }
.section-head { text-align: center; margin-bottom: 2.8rem; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 80%, #fff); margin-bottom: 0.7rem;
}
.section-title {
  text-align: center; margin: 0 0 2.4rem;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800;
}
.section-head .section-title, .section-head h2 { margin-bottom: 0.6rem; }
.section-sub { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.page-head { max-width: 1140px; margin: 0 auto; padding: 4.5rem 1.5rem 1.2rem; }
.page-head h1 { margin-bottom: 0.4rem; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.page-head p { color: var(--text-muted); font-size: 1.08rem; }
.cta-final { text-align: center; padding: 5.5rem 1.5rem; }
.cta-final h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 1.8rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 1.4rem; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.cards-trio { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .cards-trio { grid-template-columns: 1fr; } }
.card {
  position: relative;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.7rem; margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.cards .card { margin-bottom: 0; }
body:not(.admin-body) .cards .card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 18px 44px -14px color-mix(in srgb, var(--accent) 30%, transparent);
}
.card h2, .card h3 { margin-top: 0; color: var(--text); font-weight: 700; }
.card p { color: var(--text-muted); }
.card p:last-child { margin-bottom: 0; }
.card-highlight {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, var(--card-bg));
  box-shadow: 0 12px 40px -14px color-mix(in srgb, var(--accent) 35%, transparent);
}
.card-link {
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.9rem;
}
.card-link:hover { text-decoration: underline; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: color-mix(in srgb, var(--accent) 75%, #fff);
}
.card-icon svg { width: 23px; height: 23px; }
.price-big {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 2.6rem; font-weight: 800; color: var(--text); margin: 0.3rem 0;
  letter-spacing: -0.03em;
}
.price-note { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Steps ---------- */
.steps { max-width: 660px; margin: 0 auto 1.8rem; counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step; padding: 0.95rem 0 0.95rem 3.6rem; position: relative;
  color: var(--text-muted);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.8rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: color-mix(in srgb, var(--accent) 75%, #fff);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: "Sora", system-ui, sans-serif; font-size: 0.95rem;
  box-shadow: 0 0 16px -4px color-mix(in srgb, var(--accent) 40%, transparent);
}
.steps li::after {
  content: ""; position: absolute; left: 1.12rem; top: 3.3rem; bottom: -0.4rem;
  width: 1px; background: linear-gradient(var(--border-strong), transparent);
}
.steps li:last-child::after { display: none; }
.steps-detailed li strong { color: var(--text); }

/* ---------- Our Work showcase ---------- */
.center-head { text-align: center; }
.center-head p { max-width: 620px; margin-left: auto; margin-right: auto; }
.work-list { display: grid; gap: 3.2rem; }
.work-item {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.4rem; align-items: center;
}
.work-item:nth-child(even) .work-shot-wrap { order: 2; }
.work-item:nth-child(even) .work-body { order: 1; }
.work-shot-wrap { position: relative; }
.work-shot-link { display: block; text-decoration: none; }
.browser-frame {
  border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.03),
              0 12px 44px -18px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.work-shot-link:hover .browser-frame {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 32px 70px -22px rgba(0, 0, 0, 0.65),
              0 16px 54px -16px color-mix(in srgb, var(--accent) 35%, transparent);
}
.browser-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 0.55rem 0.8rem; background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}
.b-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.b-dot:first-child { background: #F87171; }
.b-dot:nth-child(2) { background: #FBBF24; }
.b-dot:nth-child(3) { background: #34D399; }
.b-url {
  margin-left: 0.5rem; flex: 1; min-width: 0;
  font-size: 0.76rem; color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25); border-radius: 6px; padding: 0.2rem 0.6rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.work-shot { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.work-shot-empty {
  display: flex; align-items: center; justify-content: center;
  font-family: "Sora", system-ui, sans-serif; font-size: 4rem; font-weight: 800;
  color: color-mix(in srgb, var(--accent) 60%, #fff);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
}
.live-badge {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  background: rgba(5, 7, 15, 0.78); backdrop-filter: blur(8px);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6EE7B7; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #34D399;
  box-shadow: 0 0 8px #34D399; animation: badgePulse 2s ease-out infinite;
}
.work-body h2 { margin-top: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.work-desc { color: var(--text-muted); font-size: 1.05rem; }
.work-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 1.1rem 0 1.3rem; }
.work-chips li {
  font-size: 0.82rem; font-weight: 600; padding: 0.32rem 0.75rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: color-mix(in srgb, var(--accent) 72%, #fff);
}
.work-body .btn { margin-top: 0.4rem; }
@media (max-width: 860px) {
  .work-item { grid-template-columns: 1fr; gap: 1.3rem; }
  .work-item:nth-child(even) .work-shot-wrap { order: 0; }
  .work-item:nth-child(even) .work-body { order: 1; }
}

/* Featured work cards (homepage) */
.work-card { padding: 1.2rem; }
.work-card-shot { display: block; position: relative; margin-bottom: 1.2rem; text-decoration: none; }
.work-card h3 { margin-bottom: 0.4rem; }

/* ---------- Marquee strip ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem 0; position: relative; z-index: 2;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 2.8rem; width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: "Sora", system-ui, sans-serif; font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: var(--text-muted);
}
.marquee-track span i {
  font-style: normal; color: var(--accent); margin-right: 2.8rem;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
body[data-anim="0"] .marquee-track { animation: none; }

/* ---------- Services / portfolio ---------- */
.service-blocks { display: grid; gap: 1.6rem; }
.service-block {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-block:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 16px 44px -18px color-mix(in srgb, var(--accent) 28%, transparent);
}
.service-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.service-block-head h2 { margin: 0; }
.feature-list { color: var(--text-muted); padding-left: 1.2rem; }
.feature-list li { margin-bottom: 0.25rem; }
.feature-list li::marker { color: var(--accent); }
.portfolio-list { display: grid; gap: 2rem; }
.portfolio-item {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.portfolio-shot { width: 100%; display: block; }
.portfolio-body { padding: 1.6rem; }
.case-study { font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto 1.8rem; }
.faq-item {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: 0.8rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq-item summary::marker { color: var(--accent); }
.faq-item p { color: var(--text-muted); margin-bottom: 0.2rem; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.form-card label, .form-card fieldset { display: block; margin-bottom: 1rem; font-weight: 600; }
.form-card fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.form-card legend { padding: 0 0.4rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="tel"], input[type="number"], input[type="date"], input[type="time"],
input[type="datetime-local"], input[type="search"], select, textarea {
  display: block; width: 100%; margin-top: 0.35rem;
  background: rgba(0, 0, 0, 0.28); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 0.65rem 0.85rem; font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--text-muted) 65%, transparent); }
.row-actions { display: flex; gap: 0.8rem; align-items: end; flex-wrap: wrap; margin-bottom: 1rem; }
.row-actions label { flex: 1; min-width: 140px; margin-bottom: 0; }
.form-nav { display: flex; justify-content: space-between; margin-top: 1.2rem; }
.form-alt { text-align: center; margin-top: 1rem; font-size: 0.9rem; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-inline-card { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.form-inline-card input, .form-inline-card select { width: auto; margin-top: 0; }
.search-form { display: flex; gap: 0.6rem; margin: 1rem 0; max-width: 480px; }
.search-form input { margin-top: 0; }
.inline-form { display: inline; }
.radio-row { display: flex; gap: 0.6rem; align-items: baseline; font-weight: 400 !important; }
.radio-row input { width: auto; margin: 0; }
.check-toggle { display: flex; gap: 0.4rem; align-items: center; font-weight: 400 !important; font-size: 0.9rem; }
.check-toggle input { width: auto; margin: 0; }
.feature-search { margin-bottom: 0.8rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.45rem; }
.feature-chip {
  display: flex; gap: 0.5rem; align-items: center; font-weight: 400 !important;
  border: 1px solid var(--border); border-radius: 10px; padding: 0.5rem 0.75rem;
  margin-bottom: 0 !important; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.feature-chip:hover { border-color: var(--border-strong); }
.feature-chip:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.feature-chip input { width: auto; margin: 0; accent-color: var(--accent); }

/* ---------- Flash / notices ---------- */
.flash-stack { max-width: 1140px; margin: 1rem auto 0; padding: 0 1.5rem; }
.flash { padding: 0.85rem 1.15rem; border-radius: var(--radius); margin-bottom: 0.5rem; backdrop-filter: blur(8px); }
.flash-success { background: rgba(34, 197, 94, 0.13); border: 1px solid rgba(34,197,94,0.4); }
.flash-error { background: rgba(248, 113, 113, 0.11); border: 1px solid rgba(248,113,113,0.4); }
.notice { padding: 0.95rem 1.25rem; border-radius: var(--radius); margin: 1rem 0; }
.notice-warn { background: rgba(245, 158, 11, 0.11); border: 1px solid rgba(245,158,11,0.4); }
.notice-info { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255,255,255,0.3); }

/* ---------- Status pills ---------- */
.status {
  display: inline-block; padding: 0.18rem 0.7rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; text-transform: capitalize;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
}
.status-live, .status-active, .status-paid, .status-accepted, .status-completed,
.status-delivered, .status-done, .status-sent, .status-resolved, .status-succeeded,
.status-current, .status-configured {
  background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.4); color: #86EFAC;
}
.status-in_development, .status-in_progress, .status-pending_development,
.status-under_review, .status-viewed, .status-feedback_requested {
  background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.32); color: #EDEDEF;
}
.status-awaiting_payment, .status-awaiting_acceptance, .status-awaiting_staff,
.status-awaiting_customer, .status-awaiting_approval, .status-needs_information,
.status-open, .status-past_due, .status-pending_external_verification {
  background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.4); color: #FCD34D;
}
.status-overdue, .status-cancelled, .status-declined, .status-expired,
.status-terminated, .status-suspended, .status-failed, .status-not_configured {
  background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.4); color: #FCA5A5;
}
.pill {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #FFFFFF;
  border-radius: 999px; font-size: 0.72rem; padding: 0.08rem 0.55rem; font-weight: 700;
}

/* ---------- Lists / tables ---------- */
.list-row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.8rem 0; border-bottom: 1px solid var(--border);
}
.list-row > :first-child { flex: 1; min-width: 180px; }
.empty-state { color: var(--text-muted); padding: 2rem 0; text-align: center; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th {
  text-align: left; padding: 0.65rem 0.85rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong); font-weight: 600; white-space: nowrap;
  font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.table td { padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table input, .table select { margin-top: 0; padding: 0.32rem 0.55rem; font-size: 0.88rem; }
.row-done { opacity: 0.45; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.stat-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stat {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem; text-align: center;
  text-decoration: none; color: var(--text); display: block;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
a.stat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.stat-num {
  display: block; font-family: "Sora", system-ui, sans-serif;
  font-size: 1.8rem; font-weight: 800; color: var(--accent);
}
.stat-theme { font-size: 1.15rem; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Questionnaire ---------- */
.q-progress { background: var(--surface); border-radius: 999px; height: 8px; margin-bottom: 0.6rem; overflow: hidden; }
.q-progress-bar {
  background: linear-gradient(90deg, var(--accent), var(--accent-2, #8B5CF6));
  height: 100%; border-radius: 999px; transition: width 0.35s ease;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent);
}
.review-block { margin-bottom: 1.5rem; }
.q-hint {
  display: block; font-weight: 400; font-size: 0.85rem;
  color: var(--text-muted); margin-top: 0.2rem;
}
.review-list { display: grid; grid-template-columns: 220px 1fr; gap: 0.3rem 1rem; }
.review-list dt { color: var(--text-muted); }
.review-list dd { margin: 0; white-space: pre-wrap; }
.upload-block { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }
.upload-list { padding-left: 1.2rem; }
.autosave-hint { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Thread / bubbles ---------- */
.thread { margin-bottom: 1.5rem; }
.bubble { max-width: 75%; padding: 0.85rem 1.15rem; border-radius: var(--radius); margin-bottom: 0.7rem; }
.bubble p { margin: 0 0 0.3rem; white-space: pre-wrap; }
.bubble .muted { font-size: 0.78rem; }
.bubble-customer {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  margin-left: auto; color: #FFFFFF;
}
.bubble-customer .muted { color: rgba(255, 255, 255, 0.68); }
.bubble-staff { background: var(--surface); border: 1px solid var(--border); }

/* ---------- Milestones ---------- */
.milestone-list { list-style: none; padding: 0; }
.milestone { display: flex; gap: 0.9rem; padding: 0.6rem 0; }
.milestone-dot {
  width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; flex-shrink: 0;
  background: var(--surface); border: 2px solid var(--border-strong);
}
.milestone-in_progress .milestone-dot {
  border-color: var(--accent); background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent);
}
.milestone-done .milestone-dot { border-color: #22C55E; background: #22C55E; }

/* ---------- Shots / preview ---------- */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.shot-grid img { width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.site-card { margin-bottom: 1.2rem; }

/* ---------- Chart ---------- */
.chart { display: flex; align-items: end; gap: 1.2rem; height: 240px; padding: 1rem 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; justify-content: end; height: 100%; }
.chart-bar {
  width: 60%; max-width: 60px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-radius: 6px 6px 0 0; min-height: 3px;
}
.chart-label { font-size: 0.8rem; color: var(--text-muted); }
.chart-value { font-size: 0.8rem; }

/* ---------- Portal layout ---------- */
.portal-layout { display: flex; max-width: 1300px; margin: 0 auto; min-height: 60vh; }
.portal-nav {
  width: 224px; flex-shrink: 0; padding: 1.5rem 0.8rem;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.portal-nav a {
  color: var(--text-muted); text-decoration: none; padding: 0.45rem 0.75rem;
  border-radius: 9px; font-size: 0.92rem; transition: background 0.15s ease, color 0.15s ease;
}
.portal-nav a:hover { background: var(--surface); color: var(--text); }
.pnav-group { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--text-muted); margin: 1rem 0 0.3rem; padding: 0 0.75rem; }
.portal-main { flex: 1; padding: 1.8rem 2rem; min-width: 0; }

/* ---------- Admin ---------- */
.admin-body { background: var(--admin-bg); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-nav {
  width: 230px; flex-shrink: 0; background: var(--admin-nav-bg);
  border-right: 1px solid var(--border);
  padding: 1rem 0.7rem; display: flex; flex-direction: column; gap: 0.1rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-nav a {
  color: var(--text-muted); text-decoration: none; padding: 0.35rem 0.7rem;
  border-radius: 8px; font-size: 0.9rem;
}
.admin-nav a:hover { background: var(--admin-surface); color: var(--text); }
.admin-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--text) !important; margin-bottom: 0.8rem; }
.anav-group { font-size: 0.68rem; letter-spacing: 0.12em; color: #5C6B8A; margin: 0.9rem 0 0.2rem; padding: 0 0.7rem; }
.admin-main { flex: 1; padding: 1.8rem 2rem; min-width: 0; }
.admin-main .card, .admin-main .stat, .admin-main .form-card { background: var(--admin-surface); backdrop-filter: none; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; align-items: start; }
.admin-login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; flex-direction: column; }
.admin-login-card { width: 360px; max-width: 92vw; }

/* Admin mobile drawer */
.admin-topbar {
  display: none; position: sticky; top: 0; z-index: 70;
  align-items: center; gap: 0.8rem; padding: 0.65rem 1rem;
  background: var(--admin-nav-bg); border-bottom: 1px solid var(--border);
}
.admin-menu-toggle {
  background: none; border: 1px solid var(--border-strong); color: var(--text);
  font-size: 1.15rem; border-radius: 9px; padding: 0.2rem 0.6rem; cursor: pointer;
}
.admin-nav-close {
  display: none; background: none; border: 1px solid var(--border-strong);
  color: var(--text-muted); border-radius: 9px; padding: 0.35rem 0.7rem;
  font-size: 0.88rem; cursor: pointer; margin: 0 0.2rem 0.8rem; align-self: flex-end;
}
.admin-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 75;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.admin-backdrop.admin-backdrop-open { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) {
  .admin-topbar { display: flex; }
  .admin-layout { flex-direction: column; }
  .admin-nav {
    position: fixed; top: 0; left: 0; bottom: 0; height: 100dvh; width: 264px;
    transform: translateX(-105%); transition: transform 0.28s ease;
    z-index: 80; overflow-y: auto;
    box-shadow: 24px 0 48px -12px rgba(0, 0, 0, 0.6);
  }
  .admin-nav.admin-nav-open { transform: none; }
  .admin-nav-close { display: block; }
  .admin-main { padding: 1.2rem 1.1rem; }
}
.prompt-block { margin-bottom: 0.8rem; }
.prompt-text { font-family: ui-monospace, monospace; font-size: 0.85rem; }
.milestone-admin .list-row { padding: 0.4rem 0; }

/* ---------- Theme manager ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.theme-card h3 { margin-bottom: 0.2rem; }
.theme-swatch { height: 90px; border-radius: 8px; position: relative; margin-bottom: 0.8rem; border: 1px solid var(--border); }
.swatch-accent { position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; border-radius: 8px; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.color-row { display: flex; align-items: center; gap: 0.6rem; }
.color-row label { flex: 1; margin: 0; font-weight: 400; font-size: 0.9rem; }
.color-row input[type="color"] { width: 42px; height: 32px; padding: 2px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
.hex-display { font-size: 0.78rem; color: var(--text-muted); }
.preview-frame { margin: 1rem auto; border: 1px solid var(--border); border-radius: 12px; }
.preview-desktop { max-width: 100%; }
.preview-tablet { max-width: 768px; }
.preview-mobile { max-width: 390px; }

/* ---------- Ambient background orbs (site-wide, theme-var driven) ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orb {
  position: absolute; top: 105%; border-radius: 50%;
  filter: blur(55px); opacity: 0;
  animation: orbRise linear infinite;
  will-change: transform, opacity;
}
.orb-1 { left: 6%;  width: 220px; height: 220px; background: color-mix(in srgb, var(--accent) 55%, transparent); animation-duration: 34s; animation-delay: 0s; }
.orb-2 { left: 24%; width: 120px; height: 120px; background: color-mix(in srgb, var(--accent-2, #8B5CF6) 55%, transparent); animation-duration: 44s; animation-delay: -14s; }
.orb-3 { left: 46%; width: 180px; height: 180px; background: color-mix(in srgb, var(--accent) 40%, transparent); animation-duration: 52s; animation-delay: -28s; }
.orb-4 { left: 63%; width: 100px; height: 100px; background: color-mix(in srgb, var(--accent-2, #8B5CF6) 45%, transparent); animation-duration: 38s; animation-delay: -8s; }
.orb-5 { left: 78%; width: 240px; height: 240px; background: color-mix(in srgb, var(--accent) 35%, transparent); animation-duration: 58s; animation-delay: -38s; }
.orb-6 { left: 90%; width: 130px; height: 130px; background: color-mix(in srgb, var(--accent-2, #8B5CF6) 50%, transparent); animation-duration: 41s; animation-delay: -22s; }
@keyframes orbRise {
  0%   { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0; }
  12%  { opacity: 0.16; }
  50%  { transform: translate3d(3vw, -60vh, 0) scale(1.05); opacity: 0.2; }
  88%  { opacity: 0.12; }
  100% { transform: translate3d(-2vw, -125vh, 0) scale(0.95); opacity: 0; }
}
@keyframes ambientPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
body:not(.admin-body)::before { animation: ambientPulse 9s ease-in-out infinite; }
body[data-anim="0"] .bg-orb, body[data-anim="0"]::before { animation: none; }
body[data-anim="0"] .bg-orbs { display: none; }

/* ---------- Testimonials ---------- */
.testimonial { margin: 0; display: flex; flex-direction: column; }
.testimonial-stars { color: #FBBF24; font-size: 1.05rem; letter-spacing: 0.12em; margin-bottom: 0.8rem; }
.testimonial-stars .stars-dim { color: rgba(255, 255, 255, 0.14); }
.testimonial blockquote {
  margin: 0 0 1.1rem; color: var(--text-muted); line-height: 1.7;
  font-size: 0.98rem; flex: 1;
}
.testimonial figcaption strong { display: block; font-size: 0.95rem; }
.testimonial figcaption .muted { font-size: 0.85rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  color: var(--text); font-size: 1.15rem; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}
.to-top.to-top-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---------- Anchor offset under sticky nav ---------- */
[id] { scroll-margin-top: 90px; }

/* ---------- Signature motion (default + themed; honors data-anim & reduced-motion) ---------- */
@keyframes heroGridPan {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 112px, 56px 112px; }
}
@keyframes heroGlowDrift {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.9; }
  50% { transform: translateX(-46%) translateY(26px) scale(1.08); opacity: 1; }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
}
.hero::before { animation: heroGridPan 14s linear infinite; }
.hero::after { animation: heroGlowDrift 11s ease-in-out infinite; }
.hero-badge::before { animation: badgePulse 2.6s ease-out infinite; }
body[data-anim="0"] .hero::before,
body[data-anim="0"] .hero::after,
body[data-anim="0"] .hero-badge::before { animation: none; }

/* ---------- Theme decorations ---------- */
.deco-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
/* NOTE: .nav must NOT be here — it keeps its own sticky + z-index:50 so the
   mobile dropdown always layers above page content. */
main, .footer, .portal-layout, .announcement, .theme-banner { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .deco-canvas { display: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--footer-bg); margin-top: 4rem; }
.footer-grid {
  max-width: 1140px; margin: 0 auto; padding: 3rem 1.5rem 1.2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
.footer-grid strong { font-family: "Sora", system-ui, sans-serif; }
.footer-grid a { display: block; color: var(--text-muted); text-decoration: none; padding: 0.18rem 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { color: var(--text-muted); }
.footer-local { font-size: 0.85rem; margin-top: 0.5rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border-radius: 10px;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-social a:hover { color: var(--accent-strong); border-color: var(--border-strong); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-copy { text-align: center; color: var(--text-muted); font-size: 0.85rem; padding-bottom: 1.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { padding: 0.7rem 1.1rem; gap: 0.8rem; }
  .nav-links {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    background: var(--footer-bg);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.65);
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    padding: 0.8rem 1.1rem 1.1rem;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-links a { padding: 0.55rem 0.6rem; border-radius: 9px; font-size: 1rem; }
  .nav-links a:hover { background: rgba(255, 255, 255, 0.05); }
  .nav-links.nav-open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 4.5rem 1.5rem 3.5rem; }
  .portal-layout { flex-direction: column; }
  .portal-nav {
    width: 100%; flex-direction: row; flex-wrap: wrap; gap: 0.3rem;
    border-right: none; border-bottom: 1px solid var(--border); padding: 0.8rem;
  }
  .pnav-group { width: 100%; margin: 0.4rem 0 0; }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .review-list { grid-template-columns: 1fr; }
  .bubble { max-width: 95%; }
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 700px) {
  .portal-main { padding: 1rem; }
  .section { padding: 3rem 1.1rem; }
  .hero { padding: 3.8rem 1.1rem 3rem; }
  .page-head { padding: 3rem 1.1rem 1rem; }
  .step-row { gap: 1rem; padding: 1.4rem 0; }
}
/* Narrow phones: brand + hamburger + CTA don't fit — CTA moves into the menu */
.nav-mobile-cta { display: none !important; }
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .nav-mobile-cta { display: inline-flex !important; margin-top: 0.5rem; justify-content: center; }
  .brand-logo { height: 28px; }
}

/* ---------- Hero neural canvas (AI signature background) ---------- */
.hero-neural {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.6;
  mask-image: radial-gradient(78% 72% at 50% 38%, #000 42%, transparent 80%);
  -webkit-mask-image: radial-gradient(78% 72% at 50% 38%, #000 42%, transparent 80%);
}
.hero-inner { z-index: 1; }
body[data-anim="0"] .hero-neural { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-neural { display: none; } }

/* ---------- Nav active states ---------- */
.portal-nav a.pnav-active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text); font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent);
}
.admin-nav a.anav-active {
  background: var(--admin-surface); color: var(--text); font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent);
}

/* ---------- Portal sub-tabs (Messages / Tickets / Notifications) ---------- */
.ptabs {
  display: flex; gap: 0.4rem; margin: 0 0 1.4rem;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.ptabs a {
  padding: 0.55rem 0.95rem; border-radius: 9px 9px 0 0;
  color: var(--text-muted); text-decoration: none;
  font-size: 0.92rem; font-weight: 500; border: 1px solid transparent; border-bottom: none;
}
.ptabs a:hover { color: var(--text); background: var(--surface); }
.ptabs a.ptab-active {
  color: var(--text); background: var(--surface);
  border-color: var(--border); font-weight: 600;
  box-shadow: inset 0 2px 0 var(--accent);
}

/* ---------- Action-needed cards (dashboards) ---------- */
.action-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1rem; margin: 1.2rem 0 1.6rem;
}
.action-card {
  display: flex; gap: 0.9rem; align-items: center;
  padding: 1rem 1.15rem; border-radius: var(--radius);
  text-decoration: none; color: var(--text); border: 1px solid;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.action-card:hover { transform: translateY(-3px); }
.action-card .action-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.action-card .action-icon svg { width: 19px; height: 19px; }
.action-card strong { display: block; font-size: 0.95rem; }
.action-card .action-sub { font-size: 0.82rem; opacity: 0.8; font-weight: 400; }
.action-amber { background: rgba(245, 158, 11, 0.09); border-color: rgba(245, 158, 11, 0.35); }
.action-amber .action-icon { background: rgba(245, 158, 11, 0.16); color: #FCD34D; }
.action-blue { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); }
.action-blue .action-icon { background: rgba(255, 255, 255, 0.11); color: #EDEDEF; }
.action-red { background: rgba(248, 113, 113, 0.09); border-color: rgba(248, 113, 113, 0.35); }
.action-red .action-icon { background: rgba(248, 113, 113, 0.16); color: #FCA5A5; }
.action-green { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.3); }
.action-green .action-icon { background: rgba(34, 197, 94, 0.15); color: #86EFAC; }

/* ---------- Stat cards with icons ---------- */
.stat-flex { display: flex; align-items: center; gap: 0.9rem; text-align: left; }
.stat-icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: color-mix(in srgb, var(--accent) 78%, #fff);
}
.stat-icon svg { width: 21px; height: 21px; }
.stat-flex .stat-num { font-size: 1.5rem; }
.stat-flex .stat-label { display: block; }

/* ---------- Dashboard panels ---------- */
.dash-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem;
}
.dash-head h2 { margin: 0; }
.dash-head a { font-size: 0.88rem; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }
.panel {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.admin-main .panel { background: var(--admin-surface); backdrop-filter: none; }
.panel > h2, .panel > h3 { margin-top: 0; }
.panel .list-row:last-child { border-bottom: none; }

/* stat grids with icon cards need wider minimums */
.stat-grid:has(.stat-flex) { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

/* ---------- Glowing blue accent text ---------- */
.text-glow {
  background: linear-gradient(120deg, #FFFFFF 10%, #B9CBFF 45%, #4169E1 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(65, 105, 225, 0.55));
  animation: glowPulse 4.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(65, 105, 225, 0.35)); }
  50% { filter: drop-shadow(0 0 24px rgba(110, 147, 255, 0.6)); }
}
body[data-anim="0"] .text-glow { animation: none; }

/* Hero headline: crisp white-to-grey gradient, glow span punches through */
.hero h1 {
  background: linear-gradient(180deg, #FFFFFF 25%, #B9BDC7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Glassy top sheen on cards & panels */
.card, .panel, .form-card, .stat, .service-block, .faq-item {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Sharper primary button sheen */
.btn-primary {
  box-shadow: 0 4px 24px -4px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.55),
              inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.btn-primary:hover {
  box-shadow: 0 8px 34px -4px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.6),
              inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
