/* ══════════════════════════════════════════════════════
   DevDuo — World-Class Agency CSS
   Ultra-Refined Production Build
   ══════════════════════════════════════════════════════ */

/* ═══ DESIGN TOKENS ═══ */
:root,
[data-theme="dark"] {
  /* Surfaces */
  --bg: #09090b;
  --bg-subtle: #0f0f13;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-raised: rgba(255, 255, 255, 0.05);
  --surface-overlay: rgba(255, 255, 255, 0.08);

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(139, 92, 246, 0.5);

  /* Text */
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #8a8a93;

  /* Brand Accent */
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --accent-muted: rgba(139, 92, 246, 0.15);

  /* System  */
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration: 0.5s;
  --duration-fast: 0.2s;

  /* Layout */
  --nav-h: 80px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 100px;
  --container: 1200px;

  /* Grain */
  --grain-opacity: 0.03;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-subtle: #f8f8fa;
  --surface: rgba(0, 0, 0, 0.02);
  --surface-raised: rgba(0, 0, 0, 0.04);
  --surface-overlay: rgba(0, 0, 0, 0.06);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text: #09090b;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-muted: rgba(124, 58, 237, 0.1);

  /* Light mode: reduced grain */
  --grain-opacity: 0.015;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


@media (pointer: coarse) {
}

a { text-decoration: none; color: inherit; transition: color var(--duration-fast); }
button, a, input, textarea, select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ═══ REVEAL FALLBACK (prevents blank page when GSAP fails) ═══ */
/* By default, .reveal elements are visible — GSAP hides them via gsap.set() before animating.
   If GSAP never loads, elements stay visible. If GSAP loads but ScrollTrigger stalls,
   the .gsap-safety-fallback class forces everything visible after a timeout. */
.reveal {
  /* No opacity:0 here — visibility is fully controlled by GSAP/JS */
}

/* Safety fallback: JS adds this class after 6 seconds if elements are still invisible */
.gsap-safety-fallback .section-heading,
.gsap-safety-fallback .label-tag,
.gsap-safety-fallback .pricing-card,
.gsap-safety-fallback .service-card,
.gsap-safety-fallback .work-card,
.gsap-safety-fallback .testimonial,
.gsap-safety-fallback .metric,
.gsap-safety-fallback .bento-item,
.gsap-safety-fallback .contact-info,
.gsap-safety-fallback .contact-form-wrap,
.gsap-safety-fallback .process-step,
.gsap-safety-fallback .hero-badge,
.gsap-safety-fallback .hero-title,
.gsap-safety-fallback .hero-desc,
.gsap-safety-fallback .hero-actions,
.gsap-safety-fallback .hero-trust,
.gsap-safety-fallback .hero-content,
.gsap-safety-fallback .section-left,
.gsap-safety-fallback .section-intro,
.gsap-safety-fallback .filter-tabs {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* prefers-reduced-motion: skip all animations entirely */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .section-heading,
  .label-tag,
  .pricing-card,
  .service-card,
  .work-card,
  .testimonial,
  .metric,
  .bento-item,
  .contact-info,
  .contact-form-wrap,
  .process-step,
  .hero-badge,
  .hero-title,
  .hero-desc,
  .hero-actions,
  .hero-trust,
  .hero-content {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
button { border: none; background: none; font-family: inherit; cursor: pointer; color: inherit; }
@media (pointer: coarse) { button { cursor: pointer; } }
::selection { background: var(--accent-muted); color: var(--accent); }

/* ═══ SKIP TO CONTENT (Accessibility) ═══ */
.skip-to-content {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.skip-to-content:focus {
  top: 0;
  outline: none;
}

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

/* ═══ FOCUS VISIBLE (A11y) ═══ */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px; /* Default radius, will be overridden by elements with specific border-radius */
}
a:focus-visible, button:focus-visible {
  border-radius: var(--radius-sm);
}



/* ═══ SCROLL PROGRESS ═══ */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent); z-index: 10000;
  transition: width 0.05s linear;
}

/* ═══ TOAST NOTIFICATIONS ═══ */
.toast-container {
  position: fixed;
  top: calc(var(--nav-h) + 16px);
  right: 16px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 32px));
}
.toast {
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: color-mix(in sRGB, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  transform: translateX(120%);
  opacity: 0;
  animation: toast-in 0.5s var(--ease) forwards;
  position: relative;
  overflow: hidden;
}
.toast.toast-out {
  animation: toast-out 0.4s var(--ease) forwards;
}
@keyframes toast-in {
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toast-out {
  to { transform: translateX(120%); opacity: 0; }
}
.toast-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
}
.toast.toast-success .toast-icon { background: rgba(34,197,94,0.15); color: var(--success); }
.toast.toast-error .toast-icon { background: rgba(239,68,68,0.15); color: var(--error); }
.toast-body { flex: 1; }
.toast-title {
  font-size: 0.9rem; font-weight: 600;
  margin-bottom: 2px;
}
.toast-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.toast-close {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-tertiary);
  transition: all 0.2s;
  font-size: 1.1rem;
}
.toast-close:hover { color: var(--text); background: var(--surface-raised); }
.toast-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  animation: toast-progress 5s linear forwards;
}
.toast.toast-success .toast-progress { background: var(--success); }
.toast.toast-error .toast-progress { background: var(--error); }
@keyframes toast-progress { to { width: 0%; } }

/* ═══ TYPOGRAPHY ═══ */
.label-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); background: var(--accent-muted);
  padding: 6px 14px; border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
.section-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.heading-accent {
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-body {
  color: var(--text-secondary); font-size: 1.1rem; line-height: 1.75; max-width: 560px;
}
.center { text-align: center; }
.center .section-body { margin-inline: auto; }

/* ═══ LAYOUT ═══ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-alt { background: var(--bg-subtle); }
.section-intro { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 5rem); align-items: center;
}
@media (max-width: 900px) { .section-grid { grid-template-columns: 1fr; } }

/* ═══ NAVIGATION ═══ */
#main-nav {
  position: fixed; top: 0; width: 100%; height: var(--nav-h);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(1.25rem, 5vw, 3rem); z-index: 1000;
  transition: all var(--duration) var(--ease);
}
#main-nav.scrolled {
  height: 64px;
  background: color-mix(in sRGB, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; z-index: 1001;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); transition: transform 0.3s var(--ease);
}
.nav-logo:hover .logo-mark { transform: rotate(45deg) scale(1.1); }
.logo-text { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }

.nav-center { display: flex; }
.nav-links {
  display: flex; gap: 0; padding: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full);
}
.nav-link {
  padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  transition: all var(--duration-fast);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active { background: var(--surface-raised); }

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

/* Auth Avatar Button */
.auth-avatar-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--duration-fast);
  position: relative; overflow: hidden;
  color: var(--text-secondary);
}
.auth-avatar-btn:hover { 
  border-color: var(--accent); 
  color: var(--accent);
  background: var(--accent-muted);
}
.auth-avatar-img {
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
}
.auth-avatar-btn.authenticated {
  border-color: var(--accent);
  padding: 0;
}
.auth-avatar-btn.authenticated .auth-icon-default { display: none; }
.auth-avatar-btn.authenticated .auth-avatar-img { display: block !important; }

.lang-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast);
  font-family: inherit;
}
.lang-btn:hover {
  color: var(--text);
}
.lang-btn.active {
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theme-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all var(--duration-fast);
  position: relative; overflow: hidden;
}
.theme-btn:hover { border-color: var(--border-hover); background: var(--surface-raised); }
#theme-icon-sun, #theme-icon-moon { position: absolute; transition: all 0.4s var(--ease); }
[data-theme="dark"] #theme-icon-sun { opacity: 1; transform: rotate(0deg); }
[data-theme="dark"] #theme-icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="light"] #theme-icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="light"] #theme-icon-moon { opacity: 1; transform: rotate(0deg); }

.btn-nav {
  padding: 10px 24px; border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 600;
  background: var(--text); color: var(--bg);
  transition: all var(--duration) var(--ease);
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.hamburger { display: none; flex-direction: column; gap: 5px; z-index: 1001; padding: 8px; }
.hamburger span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 4px; transition: all 0.3s var(--ease);
  transform-origin: center;
}
@media (max-width: 900px) {
  .nav-center, .btn-nav { display: none; }
  .hamburger { display: flex; }
}

/* ═══ AUTH MODAL ═══ */
.auth-modal {
  position: fixed; inset: 0; z-index: 10002;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
  padding: 1rem;
}
.auth-modal.active {
  opacity: 1; pointer-events: all;
}
.auth-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.auth-modal-content {
  position: relative;
  background: color-mix(in sRGB, var(--bg) 80%, transparent);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-hover);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2rem, 5vw, 2.5rem);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.5s var(--ease);
}
.auth-modal.active .auth-modal-content {
  transform: translateY(0) scale(1);
}
.auth-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  transition: all 0.2s;
  background: var(--surface);
  z-index: 2;
}
.auth-modal-close:hover {
  color: var(--text);
  background: var(--surface-raised);
}
.auth-modal-header { text-align: center; margin-bottom: 1.5rem; }
.auth-modal-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-muted);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin: 0 auto 1.25rem;
}
.auth-modal-header h3 {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.auth-modal-header p {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.6;
}

/* Auth Method Tabs */
.auth-method-tabs {
  display: flex;
  gap: 0;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.auth-method-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}
.auth-method-tab:hover { color: var(--text); }
.auth-method-tab.active {
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Auth Form Shared */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
  transition: all var(--duration-fast);
}
.auth-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.auth-input-wrap svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.auth-input-wrap input {
  flex: 1;
  border: none;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}
.auth-input-wrap input::placeholder {
  color: var(--text-tertiary);
}

/* Phone Row */
.auth-phone-row {
  display: flex;
  gap: 8px;
}
.auth-country-select {
  width: 100px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.auth-country-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.auth-phone-input {
  flex: 1;
}

@media (max-width: 420px) {
  .auth-phone-row {
    flex-direction: column;
  }
  .auth-country-select {
    width: 100%;
  }
}

/* OTP Verification */
.auth-otp-verify {
  margin-top: 4px;
}
.auth-otp-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-align: center;
}

/* Auth Submit Button */
.auth-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
}
.auth-submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-muted);
}
.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0.75rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Google Sign-In Button */
.google-signin-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 600;
  color: var(--text);
  transition: all var(--duration) var(--ease);
  margin-bottom: 1rem;
}
.google-signin-btn:hover {
  border-color: var(--border-hover);
  background: var(--surface-overlay);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.google-signin-btn svg { flex-shrink: 0; }

/* Premium distinct sign-in buttons */
#google-signin-btn {
  background: #ffffff;
  color: #1f1f1f;
  border-color: rgba(0, 0, 0, .12);
}
#google-signin-btn:hover {
  background: #f4f4f5;
  border-color: rgba(0, 0, 0, .2);
}
.github-signin-btn {
  background: #18181b;
  color: #ffffff;
  border-color: rgba(255, 255, 255, .14);
}
.github-signin-btn:hover {
  background: #000000;
  border-color: rgba(255, 255, 255, .28);
}
.github-signin-btn svg { color: #ffffff; }

.auth-footer-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* Auth Logged-In State */
.auth-user-info {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-user-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--accent-muted);
}
.auth-user-info h3 {
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 0.25rem;
}
.auth-user-email {
  font-size: 0.85rem; color: var(--text-secondary);
}

/* Auth Section Labels */
.auth-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.auth-section-label svg {
  color: var(--accent);
}

/* Auth Quotes List */
.auth-quotes-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}
.auth-quotes-list::-webkit-scrollbar {
  width: 3px;
}
.auth-quotes-list::-webkit-scrollbar-track {
  background: transparent;
}
.auth-quotes-list::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 10px;
}

.auth-quotes-placeholder {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-tertiary);
}
.auth-quotes-placeholder svg {
  margin: 0 auto 0.75rem;
  opacity: 0.3;
}
.auth-quotes-placeholder p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}
.auth-quotes-placeholder span {
  font-size: 0.8rem;
}

/* Quote Card */
.auth-quote-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}
.auth-quote-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-raised);
}
.auth-quote-info {
  flex: 1;
  min-width: 0;
}
.auth-quote-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-quote-amount {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Quote Status Badges */
.auth-quote-status {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.auth-quote-status[data-status="draft"] {
  background: rgba(113, 113, 122, 0.15);
  color: var(--text-tertiary);
}
.auth-quote-status[data-status="sent"] {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.auth-quote-status[data-status="accepted"] {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}
.auth-quote-status[data-status="paid"] {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent);
}
.auth-quote-status[data-status="archived"] {
  background: rgba(113, 113, 122, 0.1);
  color: var(--text-tertiary);
  opacity: 0.7;
}

/* Auth Projects / Quick Actions */
.auth-projects-placeholder {
  display: flex; flex-direction: column;
  gap: 0.5rem; margin-bottom: 1.25rem;
}
.auth-project-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
  cursor: pointer;
}
.auth-project-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-raised);
  transform: translateX(4px);
}
.auth-project-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.auth-project-card div:nth-child(2) { flex: 1; }
.auth-project-card strong {
  display: block;
  font-size: 0.85rem; font-weight: 600;
}
.auth-project-card span {
  font-size: 0.7rem; color: var(--text-tertiary);
}
.auth-project-card > svg {
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.auth-project-card:hover > svg {
  transform: translateX(2px);
  color: var(--accent);
}

.auth-signout-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--duration-fast);
}
.auth-signout-btn:hover {
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}
/* Custom Magnetic Cursor tracking elements */
.tilt-badge {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.tilt-badge.hidden {
  opacity: 0;
}

/* ═══ TYPOGRAPHY ═══ */
/* ═══ MOBILE MENU ═══ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease);
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu-bg {
  position: absolute; inset: 0; background: var(--bg); z-index: -1;
}
.mobile-menu-nav { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 2rem; }
.mob-link {
  font-size: clamp(2rem, 8vw, 3.5rem); font-weight: 800;
  letter-spacing: -0.04em; transition: all 0.3s var(--ease);
  opacity: 0; transform: translateY(30px);
}
.mobile-menu.active .mob-link {
  opacity: 1; transform: translateY(0);
}
.mobile-menu.active .mob-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mob-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mob-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mob-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mob-link:nth-child(5) { transition-delay: 0.3s; }
.mob-link:hover { color: var(--accent); }
.mobile-menu-footer {
  position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center;
  opacity: 0; transform: translateY(20px);
  transition: all 0.5s var(--ease) 0.35s;
  color: var(--text-secondary); font-size: 0.9rem;
}
.mobile-menu.active .mobile-menu-footer { opacity: 1; transform: translateY(0); }
.mobile-socials { display: flex; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.mobile-socials a {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}
.mobile-socials a:hover {
  background: var(--text); color: var(--bg); border-color: var(--text);
  transform: translateY(-3px);
}

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: var(--radius-full);
  font-size: 0.95rem; font-weight: 600;
  background: var(--text); color: var(--bg);
  transition: all var(--duration) var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.btn-primary svg { transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: var(--radius-full);
  font-size: 0.95rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text);
  transition: all var(--duration) var(--ease);
}
.btn-ghost:hover { border-color: var(--border-hover); background: var(--surface-raised); transform: translateY(-2px); }

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.hero-grain {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  pointer-events: none;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
  animation: glow-drift 20s ease-in-out infinite alternate;
  transition: transform 0.15s ease-out;
}
.hero-glow-1 { width: 600px; height: 600px; background: var(--accent); opacity: 0.08; top: -200px; right: -100px; }
.hero-glow-2 { width: 500px; height: 500px; background: #06b6d4; opacity: 0.05; bottom: -200px; left: -100px; animation-delay: -10s; }
@keyframes glow-drift { to { transform: translate(80px, 60px) scale(1.1); } }

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--surface);
  margin-bottom: 2rem; color: var(--text-secondary);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 12px var(--success);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.hero-accent {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, #06b6d4 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

/* Hero Title Word-by-Word Reveal */
.hero-title .split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.1;
}
.hero-title .split-word-inner {
  display: inline-block;
  will-change: transform;
}
.hero-title .split-accent-wrapper {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-desc {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary); font-weight: 400;
  margin-bottom: 2.5rem; min-height: 1.6em; line-height: 1.6;
}
.type-cursor {
  color: var(--accent); font-weight: 300;
  animation: blink-cursor 1s step-end infinite;
  margin-left: 1px;
}
@keyframes blink-cursor { 50% { opacity: 0; } }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.hero-trust {
  display: flex; align-items: center; gap: 2rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.trust-label { font-size: 0.8rem; font-weight: 500; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.trust-logos { display: flex; gap: 2rem; flex-wrap: wrap; }
.trust-logo {
  font-size: 1rem; font-weight: 700; color: var(--text-tertiary); letter-spacing: -0.02em;
  opacity: 0.5; transition: opacity 0.3s;
}
.trust-logo:hover { opacity: 1; }

/* ═══ MARQUEE ═══ */
.marquee-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0; overflow: hidden;
  background: var(--surface);
}
.marquee-track { display: flex; width: max-content; animation: marquee-flow 30s linear infinite; }
.marquee-content {
  display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem;
}
.marquee-content span {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-tertiary); white-space: nowrap;
}
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-tertiary); flex-shrink: 0; }
@keyframes marquee-flow { to { transform: translateX(-50%); } }

/* ═══ METRICS ═══ */
.metrics {
  display: flex; gap: 0; margin-top: 3rem;
  border-top: 1px solid var(--border); padding-top: 2rem;
}
.metric {
  flex: 1; padding: 0 1.5rem;
  border-right: 1px solid var(--border);
}
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: none; }
.metric-value { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.metric-label { font-size: 0.8rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
@media (max-width: 600px) {
  .metrics { flex-direction: column; gap: 1.5rem; }
  .metric { padding: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
  .metric:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ═══ BENTO ═══ */
.bento {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
  gap: 1rem;
}
.bento-item {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: all var(--duration) var(--ease);
}
.bento-large { grid-column: 1 / -1; padding: 2.5rem; }
.bento-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--accent-muted); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: auto;
  transition: all var(--duration) var(--ease);
}
.bento-item:hover .bento-icon { background: var(--accent); color: #fff; transform: scale(1.05); }
.bento-item h4 { font-size: 1.15rem; font-weight: 700; margin: 1rem 0 0.25rem; }
.bento-item p { color: var(--text-secondary); font-size: 0.9rem; }

/* Card hover effect */
.card-hover {
  position: relative;
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}
.card-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(139, 92, 246, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  z-index: 0;
}
.card-hover > * {
  position: relative;
  z-index: 1;
}
.card-hover:hover::before {
  opacity: 1;
}
.card-hover:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* ═══ SERVICES ═══ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem);
  position: relative;
}
.service-number {
  position: absolute; top: 2rem; right: 2rem;
  font-size: 3rem; font-weight: 900; color: var(--surface-overlay);
  letter-spacing: -0.04em; line-height: 1;
}
.service-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: var(--accent-muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 2rem;
  transition: all var(--duration) var(--ease);
}
.service-card:hover .service-icon { background: var(--accent); color: #fff; transform: scale(1.05); }
.service-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 600; color: var(--accent);
  transition: gap 0.3s var(--ease);
}
.service-link:hover { gap: 10px; }

/* ═══ WORK / PORTFOLIO ═══ */
.filter-tabs {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-bottom: 3rem; flex-wrap: wrap;
}
.filter-tab {
  padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--duration-fast);
}
.filter-tab:hover { color: var(--text); border-color: var(--border-hover); }
.filter-tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  min-height: 0;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  background: transparent;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

@media (min-width: 900px) {
  .work-grid { gap: 8rem; }
  .work-card {
    flex-direction: row;
    gap: 4rem;
  }
  .work-card:nth-child(even) {
    flex-direction: row-reverse;
  }
}

/* FIXED: Use grid-friendly hide instead of position:absolute collapse */
.work-card.flip-hidden {
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.work-media { 
  position: relative; 
  aspect-ratio: 16/10; 
  overflow: hidden;
  flex: 1.4;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.work-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-card:hover .work-media img { transform: scale(1.05); }

.work-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.4); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.work-card:hover .work-overlay { opacity: 1; }
.work-view {
  padding: 12px 28px; border-radius: var(--radius-full);
  background: var(--surface); color: var(--text); font-size: 0.9rem; font-weight: 600;
  border: 1px solid var(--border);
  transform: translateY(20px); transition: transform 0.4s var(--ease);
}
.work-card:hover .work-view { transform: translateY(0); }

.work-meta { 
  flex: 1; 
  padding: 1.5rem 0; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.work-cat {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1rem; display: block;
}
.work-meta h3 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; transition: color 0.3s; color: var(--text); }
.work-card:hover .work-meta h3 { color: var(--accent); }
.work-meta p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }

/* ═══ TESTIMONIALS ═══ */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 1.5rem; }
.testimonial {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.testimonial-stars { color: #fbbf24; font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial p {
  font-size: 1rem; line-height: 1.7; color: var(--text-secondary);
  margin-bottom: 1.5rem; font-style: italic; quotes: "\201C" "\201D";
}
.testimonial footer strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text); }
.testimonial footer span { font-size: 0.8rem; color: var(--text-tertiary); }

/* ═══ CONTACT ═══ */
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 5rem); align-items: start;
}
@media (max-width: 900px) { .contact-wrapper { grid-template-columns: 1fr; } }

.contact-links { margin-top: 3rem; display: flex; flex-direction: column; gap: 2rem; }
.contact-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-tertiary); display: block; margin-bottom: 6px;
}
.contact-value { font-size: 1.15rem; font-weight: 600; transition: color 0.2s; }
a.contact-value:hover { color: var(--accent); }
.contact-socials { display: flex; gap: 0.75rem; margin-top: 8px; }
.social-link {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all var(--duration) var(--ease);
}
.social-link:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-3px); }

/* Contact Form */
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-field { position: relative; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 1rem;
  outline: none; transition: all var(--duration-fast);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field select { appearance: none; cursor: pointer; }
.form-field label {
  position: absolute; top: 17px; left: 18px;
  font-size: 0.95rem; color: var(--text-tertiary);
  pointer-events: none; transition: all 0.25s var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted);
}
.form-field input:focus ~ label, .form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label, .form-field textarea:not(:placeholder-shown) ~ label {
  top: -10px; left: 12px; font-size: 0.75rem; font-weight: 600;
  background: var(--bg); padding: 2px 8px; border-radius: 4px;
  color: var(--accent);
}
.form-field.error input, .form-field.error textarea { border-color: var(--error); }
.form-field.error input:focus, .form-field.error textarea:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.form-field.valid input, .form-field.valid textarea { border-color: var(--success); }
.form-field.valid input:focus, .form-field.valid textarea:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Field validation status indicator */
.field-status {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.form-field.valid .field-status {
  opacity: 1; color: var(--success);
}
.form-field.valid .field-status::after {
  content: '✓';
}
.form-field.error .field-status {
  opacity: 1; color: var(--error);
}
.form-field.error .field-status::after {
  content: '✗';
}
/* Don't position status on textarea */
.form-field:has(textarea) .field-status { top: 20px; }

.field-error { font-size: 0.8rem; color: var(--error); margin-top: 4px; display: block; min-height: 1.2em; }

.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: var(--radius-full);
  font-size: 0.95rem; font-weight: 600;
  background: var(--accent); color: #fff;
  transition: all var(--duration) var(--ease);
  position: relative; overflow: hidden;
}
.btn-submit:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 32px var(--accent-muted); }
.btn-loading { display: none; }
.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .btn-arrow { opacity: 0; }
.btn-submit.loading .btn-loading { display: flex; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  text-align: center; padding: 12px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; display: none;
}
.form-status.success { display: block; background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.form-status.error { display: block; background: rgba(239,68,68,0.1); color: var(--error); border: 1px solid rgba(239,68,68,0.2); }

/* ═══ FOOTER ═══ */
.site-footer { padding: 5rem 0 2rem; border-top: 1px solid var(--border); background: var(--bg-subtle); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-tertiary); font-size: 0.95rem; margin-top: 1rem; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.9rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-tertiary);
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 0.5rem; } }

/* ═══ BACK TO TOP — PROGRESS RING ═══ */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: color-mix(in sRGB, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); opacity: 0; transform: translateY(20px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease),
              background var(--duration-fast), border-color var(--duration-fast);
  pointer-events: none;
  padding: 0;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover {
  background: var(--text); color: var(--bg);
  border-color: var(--text);
}
.back-to-top:hover .btt-ring-progress { stroke: var(--bg); }
.back-to-top:hover .btt-ring-bg { stroke: var(--bg); opacity: 0.3; }

.btt-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.btt-ring-progress {
  stroke: var(--accent);
  transition: stroke-dashoffset 0.1s linear, stroke var(--duration-fast);
}
.btt-arrow {
  position: relative;
  z-index: 1;
}

/* ═══ ANIMATIONS ═══ */
.reveal {
  opacity: 1;
  transform: none;
}
html.js-reveal-ready .reveal {
  opacity: 0; transform: translateY(30px);
  will-change: opacity, transform;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* FIX: When GSAP handles scroll, disable standard reveal CSS so GSAP can animate them */
html.gsap-active .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Focus Visible */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ══════════════════════════════════════════════════════
   ADVANCED FEATURES — Additive Layer
   ══════════════════════════════════════════════════════ */

/* ═══ LENIS SMOOTH SCROLL ═══ */
html.lenis, html.lenis body {
  height: auto;
  overscroll-behavior: none; /* Stops iOS rubber-banding for perfect artificial smooth scroll */
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* ═══ GSAP ANIMATION STATES ═══ */
[data-gsap] { will-change: transform, opacity; }
.gsap-fade-up { opacity: 0; transform: translateY(60px); }
.gsap-fade-right { opacity: 0; transform: translateX(-60px); }
.gsap-fade-left { opacity: 0; transform: translateX(60px); }
.gsap-scale-in { opacity: 0; transform: scale(0.9); }
.gsap-line-reveal { clip-path: inset(0 100% 0 0); }
.gsap-line-active { clip-path: inset(0 0% 0 0); }

/* Parallax depth layers */
[data-speed] { will-change: transform; }

/* ═══ ENHANCED MICRO-INTERACTIONS ═══ */

/* Link hover underline sweep */
.service-link,
.footer-col a,
.contact-value {
  position: relative;
  display: inline-block;
}
.service-link::after,
.footer-col a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.service-link:hover::after,
.footer-col a:hover::after {
  width: 100%;
}

/* Button click ripple */
.btn-primary,
.btn-submit,
.btn-nav {
  position: relative;
  overflow: hidden;
}
.btn-primary::after,
.btn-submit::after,
.btn-nav::after {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.01%);
  transform: scale(10);
  opacity: 0;
  transition: transform 0.5s, opacity 0.8s;
  pointer-events: none;
}
.btn-primary:active::after,
.btn-submit:active::after,
.btn-nav:active::after {
  transform: scale(0);
  opacity: 0.4;
  transition: 0s;
}

/* Icon hover pulse */
.bento-icon,
.service-icon {
  position: relative;
}
.bento-icon::after,
.service-icon::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: inherit;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(1.2);
  transition: all 0.4s var(--ease);
  pointer-events: none;
}
.bento-item:hover .bento-icon::after,
.service-card:hover .service-icon::after {
  opacity: 0.4;
  transform: scale(1);
}

/* Section heading line reveal (for GSAP) */
.heading-line {
  overflow: hidden; display: block;
}
.heading-line-inner {
  display: block;
  transform: translateY(100%);
}

/* Subtle section divider gradients */
.section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: clamp(200px, 40vw, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  pointer-events: none;
}
.section { position: relative; }

/* ═══ GDPR COOKIE BANNER ═══ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  padding: 1.25rem clamp(1.25rem, 5vw, 3rem);
  background: color-mix(in sRGB, var(--bg) 92%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.6s var(--ease);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-content {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 1.5rem;
    left: 1rem;
    right: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    width: auto;
    background: color-mix(in sRGB, var(--bg) 95%, transparent);
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
  .cookie-actions {
    width: 100%;
    gap: 0.75rem;
  }
  .cookie-btn {
    flex: 1;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-btn {
    width: 100%;
  }
}
.cookie-text strong {
  display: block; margin-bottom: 0.25rem; font-size: 0.95rem;
}
.cookie-text p {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; max-width: 600px;
}
.cookie-policy-link {
  color: var(--accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.cookie-actions {
  display: flex; gap: 0.75rem; flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 24px; border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 600;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}
.cookie-btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.cookie-btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--surface-raised);
}
.cookie-btn-accent {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.cookie-btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-muted);
}

/* Cookie banner exit animation */
.cookie-banner.cookie-out {
  animation: cookie-slide-out 0.3s var(--ease) forwards;
}

@keyframes cookie-slide-out {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0; }
}

/* Move back-to-top and presence-pill when cookie banner is visible */
.cookie-banner.visible ~ .back-to-top {
  bottom: 7rem;
}
.cookie-banner.visible ~ .presence-pill {
  bottom: 7rem;
}

/* ═══ SMOOTH TEXT REVEAL (word-by-word) ═══ */
.word-reveal .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.word-reveal .word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease);
}
.word-reveal.active .word-inner {
  transform: translateY(0);
}

/* ═══ STAGGER CHILDREN ANIMATION ═══ */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
}
.stagger-children.active > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.active > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.2s; }

/* ═══ MOBILE-SPECIFIC FIXES ═══ */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .hero-trust { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .service-number { font-size: 2rem; }
  .work-meta { padding: 1.25rem 1.5rem; }
  .work-meta h3 { font-size: 1.2rem; }
}

/* Mobile-friendly section spacing */
@media (max-width: 768px) {
  .section {
    padding: clamp(60px, 8vw, 100px) 0;
  }
  .hero {
    padding: calc(var(--nav-h) + 26px) 0 60px;
    align-items: flex-start;
  }
  .hero-actions { gap: 0.9rem; }
  .hero-trust { gap: 0.9rem; }
  .btn-primary,
  .btn-ghost,
  .btn-nav,
  .auth-avatar-btn,
  .theme-btn,
  .lang-btn {
    min-height: 48px;
  }
}

/* Mobile menu safe area */
.mobile-menu {
  padding-top: env(safe-area-inset-top, 1rem);
  padding-bottom: env(safe-area-inset-bottom, 1rem);
}
.mobile-menu-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 1rem));
  right: 1rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.mobile-menu-close:hover {
  transform: scale(1.05);
  background: var(--surface-raised);
}
.mobile-menu-nav .mob-link {
  width: 100%;
  text-align: center;
}

/* Prevent iOS input zoom — ensure all inputs >= 16px */
@supports (-webkit-touch-callout: none) {
  .form-field input,
  .form-field textarea,
  .form-field select {
    font-size: max(1rem, 16px);
  }
}

/* ══════════════════════════════════════════════════════
   ELITE FEATURES — Additive Layer v3.0
   ══════════════════════════════════════════════════════ */

/* ═══ LANGUAGE TOGGLE ═══ */
.lang-toggle {
  display: flex;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  gap: 0;
}
.lang-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  transition: all var(--duration-fast);
  line-height: 1;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-muted);
}
@media (max-width: 900px) {
  .lang-toggle {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    order: -1;
    margin-right: 2px;
    z-index: 10;
  }
  .nav-actions { gap: 8px; }
}

@media (max-width: 400px) {
  .nav-actions { gap: 6px; }
  .lang-btn { padding: 5px 10px; font-size: 0.65rem; }
  .logo-text { font-size: 1.1rem; }
}

/* ═══ WEBGL HERO CANVAS ═══ */
#hero-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
}
.hero-glow { z-index: 1; }
.hero-content { z-index: 2; }
.webgl-active .hero-glow { opacity: 0 !important; transition: opacity 1s ease; }

/* ═══ REAL-TIME PRESENCE PILL ═══ */
.presence-pill {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: color-mix(in sRGB, var(--bg) 75%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.presence-pill.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.presence-typing {
  color: var(--accent);
  font-weight: 600;
  animation: presence-pulse 2s ease infinite;
}
@keyframes presence-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@media (max-width: 768px) {
  .presence-pill { bottom: 1rem; left: 1rem; font-size: 0.75rem; padding: 8px 14px; }
}

/* ═══ VOICE-TO-TEXT MIC BUTTON ══��� */
.form-field-mic { position: relative; }
.voice-mic-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  z-index: 2;
  transition: all var(--duration-fast);
  cursor: pointer;
}
.voice-mic-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-muted);
}
.voice-mic-btn.recording {
  color: #fff;
  background: var(--error);
  border-color: var(--error);
  animation: mic-pulse 1.5s ease infinite;
}
.voice-rec-dot {
  display: none;
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--error);
  box-shadow: 0 0 8px var(--error);
}
.voice-mic-btn.recording .voice-rec-dot { display: block; }
.form-field-mic textarea.voice-active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-muted), 0 0 20px var(--accent-muted) !important;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}
/* Hide mic on unsupported browsers */
.no-speech-api .voice-mic-btn { display: none !important; }

/* ═══ LIVE QUOTE ESTIMATOR ═══ */
.quote-estimator {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  margin-top: 1rem;
  background: color-mix(in sRGB, var(--bg) 75%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.4s var(--ease);
}
.quote-estimator.visible {
  display: flex;
}
.quote-estimator svg { color: var(--accent); flex-shrink: 0; }
.quote-estimator.updated {
  animation: estimate-pulse 0.6s var(--ease);
}
@keyframes estimate-pulse {
  0% { transform: scale(1); border-color: var(--border); }
  50% { transform: scale(1.02); border-color: var(--accent); box-shadow: 0 0 20px var(--accent-muted); }
  100% { transform: scale(1); border-color: var(--border); }
}

/* ═══ 3D HERO TILT (MOBILE) ═══ */
.hero.tilt-active .hero-content {
  transition: transform 0.1s ease-out;
  will-change: transform;
}
.hero.tilt-active .hero-glow {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* ═══ PREMIUM DYNAMIC ISLAND NOTIFICATION (Staccato) ═══ */
.dynamic-island-wrapper {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(150px) scale(0.9);
  z-index: 9999;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  width: max-content;
  max-width: 90vw;
}
.dynamic-island-wrapper.show {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}
.di-badge-item, .di-main-item {
  background: color-mix(in sRGB, var(--bg) 80%, transparent);
  border: 1px solid color-mix(in sRGB, var(--border-hover) 80%, transparent);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}
.di-badge-item {
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.di-badge-item:hover {
  transform: scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
}
.di-main-item {
  border-radius: var(--radius-full);
  display: flex; align-items: center; gap: 1rem;
  padding: 0.5rem 0.6rem 0.5rem 1.4rem;
}
.di-icon-wrap {
  position: relative;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}
.di-ripple {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--accent);
  animation: di-pulse 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes di-pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.di-text {
  display: flex; flex-direction: column; padding-right: 0.5rem;
  justify-content: center;
}
.di-text strong {
  color: var(--text); font-size: 0.95rem; line-height: 1.2; letter-spacing: -0.02em;
}
.di-text p {
  color: var(--text-tertiary); font-size: 0.85rem; margin: 0; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px;
}
.di-close {
  background: color-mix(in sRGB, var(--bg) 95%, transparent); border: 1px solid var(--border); color: var(--text-secondary);
  font-size: 1rem; cursor: pointer; padding: 0.5rem; border-radius: 50%; width: 34px; height: 34px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; justify-content: center;
  opacity: 1; transform: scale(1); overflow: hidden; margin-left: auto;
}
.di-close:hover { color: var(--error); border-color: var(--error); background: color-mix(in sRGB, var(--error) 15%, transparent); }
.di-close.hidden { opacity: 0; transform: scale(0.2) translate(10px); pointer-events: none; width: 0; margin-left: -1rem; margin-right: -0.8rem; border-width: 0; }

@media (max-width: 768px) {
  .dynamic-island-wrapper {
    bottom: 20px;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: flex-end;
  }
  .di-main-item {
    border-radius: var(--radius-lg);
    padding: 0.8rem;
  }
  .di-badge-item { padding: 0.4rem; }
  .di-icon-wrap { width: 34px; height: 34px; }
  .di-text p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 190px;
  }
}

/* ═══ PRICING SECTION ═══ */
.pricing-toggle-wrap {
  display: flex; justify-content: center; align-items: center;
  gap: 1rem; margin-bottom: 3rem; margin-top: 2rem;
}
.pt-label {
  font-weight: 500; color: var(--text-secondary); transition: color 0.3s;
  display: flex; align-items: center; gap: 0.5rem; font-size: 1.05rem;
}
.pt-label.active { color: var(--text); }
.pt-badge {
  background: var(--accent-muted); color: var(--accent);
  font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  font-weight: 700; text-transform: uppercase;
}
.pricing-toggle {
  position: relative; display: inline-block; width: 60px; height: 32px;
}
.pricing-toggle input { opacity: 0; width: 0; height: 0; }
.pt-slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: var(--surface-raised); border: 1px solid var(--border);
  border-radius: 34px; transition: 0.4s;
}
.pt-slider:before {
  position: absolute; content: ""; height: 22px; width: 22px;
  left: 4px; bottom: 4px; background-color: var(--text-tertiary);
  border-radius: 50%; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
input:checked + .pt-slider { border-color: var(--accent); }
input:checked + .pt-slider:before {
  transform: translateX(28px); background-color: var(--accent);
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem; max-width: 900px; margin: 0 auto;
}
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 3rem 2rem;
  display: flex; flex-direction: column; position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-card:hover { border-color: var(--border-hover); transform: translateY(-5px); }
.pricing-card.popular {
  border-color: var(--accent-muted);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.05);
}
.pc-popular-badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  padding: 0.4rem 1.2rem; border-radius: var(--radius-full);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}
.pc-header h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--text); }
.pc-header p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 2rem; }
.pc-price { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.pc-price .price-val {
  font-size: 3rem; font-weight: 800; letter-spacing: -0.05em; color: var(--text);
  transition: opacity 0.15s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pc-price .price-period { color: var(--text-tertiary); font-weight: 500; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; transition: opacity 0.2s; }
.pc-features { list-style: none; margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.pc-features li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-secondary); font-size: 1rem; transition: transform 0.3s ease; }
.pc-features li:hover { transform: translateX(4px); }
.pc-features i { color: var(--accent); margin-top: 0.25rem; font-size: 0.9rem; }

/* Popular card ambient glow */
.pricing-card.popular::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), transparent 50%, rgba(6, 182, 212, 0.1));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}
.pricing-card.popular:hover::after { opacity: 1; }

/* CTA button styles for pricing */
.pc-btn {
  padding: 14px 28px; border-radius: var(--radius-full);
  font-size: 0.95rem; font-weight: 600;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}
.btn-ghost {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--border-hover); background: var(--surface-raised); transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #818cf8); color: #fff; border: none;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #818cf8, var(--accent));
  opacity: 0; transition: opacity 0.4s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(99, 102, 241, 0.35); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary { position: relative; z-index: 1; }

/* Label pulsing dot */
.label-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: label-pulse 2s ease infinite;
}
@keyframes label-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.6); }
}

/* Smooth transition for pricing toggle active state */
.pt-badge {
  animation: badge-glow 2.5s ease-in-out infinite;
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(99, 102, 241, 0); }
  50% { box-shadow: 0 0 12px rgba(99, 102, 241, 0.3); }
}

/* ═══ LEGAL MODAL ═══ */
.legal-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
  padding: 1rem;
}
.legal-modal.active {
  opacity: 1; pointer-events: all;
}
.legal-modal-bg {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.legal-modal-content {
  position: relative; z-index: 10;
  width: 100%; max-width: 600px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  transform: translateY(40px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 85vh; overflow-y: auto;
}
.legal-modal-content::before {
  content: '';
  display: none;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--border-hover);
  border-radius: var(--radius-full);
}
.legal-modal.active .legal-modal-content {
  transform: translateY(0) scale(1);
}
.legal-modal-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: none; color: var(--text-tertiary);
  font-size: 2rem; cursor: pointer; transition: color 0.3s;
  padding: 0; line-height: 1; outline: none;
  z-index: 12;
}
.legal-modal-close:hover { color: var(--error); }
.legal-section h3 {
  font-size: 1.8rem; margin-bottom: 1.25rem; color: var(--text);
  letter-spacing: -0.03em;
  padding-right: 2rem; /* prevent overlap with close btn */
}
.legal-section p {
  color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.legal-section strong {
  color: var(--accent);
}
.legal-section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.legal-section li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.legal-section li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.legal-section li strong {
  color: var(--text);
  font-weight: 600;
}
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--duration-fast);
}
.legal-section a:hover {
  color: var(--accent-hover);
}
@media (max-width: 600px) {
  .legal-modal-content { 
    padding: 3rem 1.5rem 2rem 1.5rem; 
    width: 100%; align-self: flex-end; 
    margin-bottom: 0; 
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 85dvh;
  }
  .legal-modal-content::before {
    display: block;
  }
  .legal-modal { align-items: flex-end; padding: 0; }
  .legal-modal-close {
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--text-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  .legal-modal-close:hover {
    background: var(--surface);
    color: var(--error);
  }
  .legal-section h3 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
  }
}

/* ═══ AUTH QUICK ACTIONS PREMIUM UI ═══ */
.auth-quick-action {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.auth-quick-action::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.auth-quick-action:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 10;
}
.auth-quick-action:hover::before { opacity: 1; }
.auth-qa-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; transition: all 0.3s;
  flex-shrink: 0;
}
.auth-qa-email .auth-qa-icon { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.auth-qa-wa .auth-qa-icon { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.auth-qa-cal .auth-qa-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.auth-quick-action:hover .auth-qa-icon {
  transform: scale(1.1);
  color: #fff;
}
.auth-qa-email:hover .auth-qa-icon { background: #818cf8; box-shadow: 0 0 15px rgba(129, 140, 248, 0.4); }
.auth-qa-wa:hover .auth-qa-icon { background: #22c55e; box-shadow: 0 0 15px rgba(34, 197, 94, 0.4); }
.auth-qa-cal:hover .auth-qa-icon { background: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }

.auth-qa-txt { flex: 1; display: flex; flex-direction: column; }
.auth-qa-txt strong { font-size: 1rem; margin-bottom: 2px; }
.auth-qa-txt span { font-size: 0.85rem; color: var(--text-tertiary); }
.auth-qa-arrow { color: var(--text-tertiary); transition: 0.3s; transform: translateX(-5px); opacity: 0; }
.auth-quick-action:hover .auth-qa-arrow { transform: translateX(0); opacity: 1; color: var(--text); }

/* ═══ QUOTE INLINE MESSAGING ═══ */
.auth-quote-actions {
  display: flex; flex-direction: column; width: 100%; margin-top: 0.5rem;
}
.btn-quote-reply {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary); padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm); font-size: 0.8rem;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem;
  width: max-content; align-self: flex-start; margin-top: 10px;
}
.btn-quote-reply:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}
.auth-quote-message-box {
  margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--border);
  display: none; flex-direction: column; gap: 0.5rem; animation: fade-in 0.3s ease;
}
.auth-quote-message-box.active { display: flex; }
.auth-quote-message-box textarea {
  width: 100%; min-height: 70px; background: rgba(0,0,0,0.25);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.75rem; color: var(--text); font-family: inherit; font-size: 0.9rem; resize: vertical;
}
.auth-quote-message-box textarea:focus { border-color: var(--accent); outline: none; }
.btn-quote-send {
  background: var(--accent); color: #fff; border: none; padding: 0.4rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
  align-self: flex-end; display: flex; align-items: center; gap: 0.5rem; transition: 0.2s; font-size: 0.85rem;
}
.btn-quote-send:hover { background: var(--accent-hover); box-shadow: 0 4px 12px var(--accent-muted); }
.btn-quote-send:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-quote-card {
  display: flex; flex-direction: column;
}
.auth-quote-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

/* ══════════════════════════════════════════════════════
   PWA INSTALL BANNER (Dynamic Island)
   ══════�����═══════════════════════════════════════════════ */
.pwa-install-banner {
  position: fixed;
  top: -120px; /* Hidden initially at TOP */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 420px;
  background: rgba(9, 9, 11, 0.85); /* Deep dark */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(239, 68, 68, 0.25); /* Red subtle border */
  border-radius: 40px; /* Pill shape */
  padding: 0.6rem 0.6rem 0.6rem 0.8rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(239, 68, 68, 0.15);
  z-index: 10000; /* Beats the navbar */
  display: flex;
  flex-direction: row; /* Horizontal */
  align-items: center;
  gap: 0.8rem;
  transition: top 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s; /* Bouncy dynamic island spring */
  opacity: 0;
  pointer-events: none;
}

.pwa-install-banner.show {
  top: 1.5rem;
  opacity: 1;
  pointer-events: auto;
}

.pwa-install-icon {
  width: 38px;
  height: 38px;
  background: rgba(239, 68, 68, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ef4444; /* Tech red! */
  flex-shrink: 0;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.pwa-install-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.pwa-install-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.pwa-install-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.pwa-btn {
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: var(--font-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-btn-ghost {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-tertiary);
  border: none;
  border-radius: 50%;
}

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

.pwa-btn-accent {
  background: #ef4444; /* Solid red */
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.pwa-btn-accent:hover {
  background: #dc2626; /* Darker red */
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
}

/* ══════════════════════════════════════════════════════
   ADMIN PANEL — Secret Dashboard
   Only visible after admin login (injected via JS)
   ══════════════════════════════════════════════════════ */

/* ─── Floating Widget (collapsed state) ─── */
#admin-widget {
  position: fixed;
  bottom: 96px;          /* Give space above back-to-top ring */
  right: 24px;
  z-index: 99998;        /* Very high index */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
#admin-widget.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
@media (max-width: 600px) {
  #admin-widget {
    bottom: 86px;
    right: 16px;
  }
}

/* ─── Collapsed pill ─── */
.admin-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: color-mix(in sRGB, var(--bg) 75%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: all 0.25s var(--ease);
  user-select: none;
  white-space: nowrap;
}
.admin-pill:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(139,92,246,0.25);
}
.admin-pill-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(139,92,246,0.4);
}
.admin-pill-stats {
  display: flex;
  gap: 14px;
}
.admin-pill-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.admin-pill-stat .ap-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.admin-pill-stat .ap-lbl {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.admin-notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  pointer-events: none;
}
.admin-pill-wrap { position: relative; }

/* ─── Expanded Dashboard Panel ─── */
#admin-dashboard {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 440px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 140px); /* Leave breathing room top and bottom */
  z-index: 99999;                  /* Sit above everything else */
  background: color-mix(in sRGB, var(--bg) 85%, transparent);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-hover);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
#admin-dashboard.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

@media (max-width: 600px) {
  #admin-dashboard {
    bottom: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 85vh;     /* Fixed large height on mobile */
    max-height: 85vh; /* Prevent overflowing offscreen */
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
  }
}

/* ─── Dashboard Header ─── */
.adm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.adm-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.adm-header-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}
.adm-header h4 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.adm-header p {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin: 0;
}
.adm-header-actions {
  display: flex;
  gap: 6px;
}
.adm-btn-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.adm-btn-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}

/* ─── Dashboard Body (scrollable) ─── */
.adm-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.adm-body::-webkit-scrollbar { width: 3px; }
.adm-body::-webkit-scrollbar-track { background: transparent; }
.adm-body::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 10px; }

/* ─── KPI Stat Cards ─── */
.adm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 380px) {
  .adm-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
.adm-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  transition: border-color 0.2s;
}
.adm-kpi:hover { border-color: var(--border-hover); }
.adm-kpi-emoji { font-size: 1.1rem; margin-bottom: 4px; }
.adm-kpi-val {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.adm-kpi-lbl {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-top: 3px;
}
.adm-kpi-accent .adm-kpi-val { color: var(--accent); }
.adm-kpi-success .adm-kpi-val { color: var(--success); }
.adm-kpi-warn .adm-kpi-val { color: var(--warning); }

/* ─── Section Title ─── */
.adm-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── Chart (7-day visitor bar chart) ─── */
.adm-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.adm-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
}
.adm-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
  justify-content: flex-end;
}
.adm-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(139,92,246,0.4) 100%);
  min-height: 3px;
  transition: height 0.6s var(--ease);
  cursor: pointer;
}
.adm-bar:hover { background: linear-gradient(180deg, #a78bfa 0%, rgba(167,139,250,0.5) 100%); }
.adm-bar-day {
  font-size: 0.55rem;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
}

/* ─── Quotes List (last 5) ─── */
.adm-quote-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.adm-quote-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.adm-quote-item:hover { border-color: var(--border-hover); }
.adm-quote-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.adm-quote-dot.premium { background: var(--accent); box-shadow: 0 0 6px rgba(139,92,246,0.5); }
.adm-quote-dot.standard { background: var(--text-tertiary); }
.adm-quote-info { flex: 1; min-width: 0; }
.adm-quote-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-quote-meta {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  margin-top: 1px;
}
.adm-quote-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--accent-muted);
  color: var(--accent);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.adm-quote-badge.premium { background: rgba(139,92,246,0.2); color: #a78bfa; }

/* ─── Notification item ─── */
.adm-notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.adm-notif-item.unread {
  border-color: rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.05);
}
.adm-notif-icon { font-size: 1rem; flex-shrink: 0; line-height: 1.4; }
.adm-notif-body { flex: 1; }
.adm-notif-msg {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}
.adm-notif-time {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ─── Action Buttons ─── */
.adm-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.adm-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
}
.adm-action-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--surface-raised);
}
.adm-action-btn.primary {
  background: var(--accent-muted);
  border-color: rgba(139,92,246,0.3);
  color: var(--accent);
}
.adm-action-btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.adm-empty {
  text-align: center;
  padding: 1rem;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

/* ─── Easter egg keyboard indicator ─── */
.admin-kbd-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: color-mix(in sRGB, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s var(--ease);
  z-index: 9997;
  white-space: nowrap;
}
.admin-kbd-hint.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══ HOW WE WORK / PROCESS ═══ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.process-step {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
}
.process-step:hover {
  background: var(--surface-raised);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.process-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-muted);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: monospace;
}
.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.process-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ═══ INVESTMENT / PRICING ═══ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-inline: auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  transition: all 0.4s var(--ease);
  overflow: hidden;
  z-index: 1;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
  transition: all 0.4s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: transparent;
}

.pricing-card:hover::before {
  background: linear-gradient(135deg, var(--accent), transparent);
}

.pricing-card.popular {
  background: linear-gradient(180deg, var(--surface-raised) 0%, var(--surface) 100%);
  border-color: var(--border-hover);
  transform: scale(1.02);
}

.pricing-card.popular:hover {
  transform: scale(1.02) translateY(-8px);
}

.pricing-card.popular::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, var(--accent) 180deg, transparent 360deg);
  animation: rotate-glow 4s linear infinite;
  opacity: 0.15;
  z-index: -2;
}

@keyframes rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.pc-popular-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--accent-muted);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.pc-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.pc-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  min-height: 70px;
}

.pc-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.price-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.pc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pc-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pc-features i {
  color: var(--accent);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-4px); }
  .pricing-card { padding: 2rem 1.5rem; }
  .price-val { font-size: 2rem; }
}

/* ═══ PREMIUM HOVER EFFECTS ═══ */
.card-hover {
  position: relative;
}

.card-hover::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(255, 255, 255, 0.05),
    transparent 40%
  );
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

html[data-theme="light"] .card-hover::before {
  background: radial-gradient(
    600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(0, 0, 0, 0.03),
    transparent 40%
  );
}

.card-hover:hover::before {
  opacity: 1;
}

/* ═══ MOBILE-FIRST TOUCH TARGET & UX OPTIMIZATIONS ═══ */
@media (max-width: 900px) {
  /* 1. Touch Target Minimums (Fitts' Law Compliance: 44px-48px) */
  .lang-btn {
    padding: 10px 16px; /* Increase tap area */
    font-size: 0.85rem;
  }
  .theme-btn, .auth-modal-close, .voice-mic-btn {
    width: 48px !important;
    height: 48px !important;
  }
  .hamburger {
    padding: 12px;
    min-height: 48px;
    min-width: 48px;
    justify-content: center;
  }
  
  /* Ensure all buttons are at least 48px tall */
  button, .btn, .btn-primary, .btn-ghost, .btn-nav, .service-link, .pc-btn, input[type="submit"] {
    min-height: 48px;
  }

  /* Increase input heights for easier typing */
  input, select, textarea {
    font-size: 16px !important; /* Prevents iOS auto-zoom on inputs */
  }
  .form-field input, .form-field select, .auth-input-wrap input {
    min-height: 48px;
  }

  /* 2. Touch UX (Disable sticky hover states) */
  .card-hover::before {
    display: none !important; /* No mouse-tracking glow on touch */
  }
  .card-hover:hover, .bento-item:hover, .service-card:hover, .work-card:hover, .process-step:hover, .pricing-card:hover {
    transform: none !important; /* Prevent sticky transform on tap */
  }
  
  /* 3. Screen Edge Padding */
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* 4. Pricing & Grids spacing */
  .pricing-grid {
    gap: 1.5rem;
  }
  .pricing-card {
    padding: 2rem 1.5rem;
  }
}

/* ═══ CALLMEBOT WHATSAPP OTP UX ═══ */
.auth-wa-intro {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(6,182,212,0.08));
  border: 1px solid rgba(34,197,94,0.18);
}
.auth-wa-intro p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.auth-wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(34,197,94,0.14);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.auth-setup-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
}
.auth-phone-inline-help summary {
  cursor: pointer;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  list-style: none;
}
.auth-phone-inline-help summary::-webkit-details-marker { display: none; }
.auth-phone-inline-help summary::after {
  content: '↓';
  float: right;
  color: var(--text-tertiary);
  transition: transform 0.2s ease;
}
.auth-phone-inline-help[open] summary::after { transform: rotate(180deg); }
.auth-setup-steps {
  list-style: decimal;
  padding-left: 1.2rem;
  margin-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.55;
}
.auth-phone-api-wrap {
  margin-top: 0.9rem;
}
.auth-phone-note {
  margin-top: 0.75rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-tertiary);
}
.auth-phone-note.success { color: #4ade80; }
.auth-phone-note.error { color: #f87171; }
.auth-phone-note.warning { color: #fbbf24; }

/* ══════════════════════════════════════════════════════
   ADMIN DASHBOARD — Pro upgrade (filters, breakdowns, lead modal)
   ══════════════════════════════════════════════════════ */

/* Range filter chips */
.adm-range-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.adm-chip {
  flex: 1 1 auto;
  min-width: 64px;
  padding: 7px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.adm-chip:hover { border-color: var(--border-hover); color: var(--text); }
.adm-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Two-column responsive layout for dashboard sections */
.adm-grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
@media (max-width: 560px) {
  .adm-grid-2 { grid-template-columns: 1fr; gap: 18px; }
}

/* Generic panel box (top pages, breakdowns) */
.adm-panel-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 92px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Device / source horizontal breakdown */
.adm-bd-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.adm-bd-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  min-width: 78px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-bd-track {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  overflow: hidden;
}
.adm-bd-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent) 0%, #a78bfa 100%);
  transition: width 0.6s var(--ease);
}
.adm-bd-val {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 34px;
  text-align: right;
}

/* Section title with inline action (e.g. + Nuovo) */
.adm-section-title-row {
  justify-content: space-between;
}
.adm-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(139,92,246,0.3);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.adm-mini-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Clickable lead item */
.adm-quote-item[role="button"] { cursor: pointer; }
.adm-quote-item[role="button"]:hover { border-color: var(--accent); background: var(--surface-raised); }

/* Status badges by state */
.adm-quote-badge.st-sent     { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.adm-quote-badge.st-accepted { background: rgba(34,197,94,0.15);   color: #4ade80; }
.adm-quote-badge.st-rejected { background: rgba(239,68,68,0.15);   color: #f87171; }
.adm-quote-badge.st-draft    { background: var(--surface-raised);  color: var(--text-tertiary); }

/* Danger action button */
.adm-action-btn.danger {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.3);
  color: #f87171;
}
.adm-action-btn.danger:hover {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
}

/* ─── Lead detail / create modal ─── */
#adm-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;            /* above the dashboard (99999) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
#adm-modal.open { opacity: 1; pointer-events: all; }
.adm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.adm-modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: color-mix(in sRGB, var(--bg) 92%, transparent);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-hover);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.3s var(--ease);
  overflow: hidden;
}
#adm-modal.open .adm-modal-card { transform: translateY(0) scale(1); }
.adm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.adm-modal-head h4 { font-size: 0.95rem; font-weight: 700; }
.adm-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}
.adm-modal-foot {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.adm-modal-foot .adm-action-btn { flex: 0 1 auto; min-width: 120px; }

/* Form fields */
.adm-field { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.adm-field > span {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}
.adm-field input,
.adm-field select,
.adm-field textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}
.adm-field input:focus,
.adm-field select:focus,
.adm-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.adm-field textarea { resize: vertical; min-height: 44px; }
.adm-field-row { display: flex; gap: 10px; }
@media (max-width: 460px) { .adm-field-row { flex-direction: column; } }

/* Email compose box */
.adm-email-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adm-email-box > summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.adm-email-box > summary::-webkit-details-marker { display: none; }
.adm-email-box[open] > summary { margin-bottom: 4px; }

/* Mobile bottom-sheet for the lead modal */
@media (max-width: 560px) {
  #adm-modal { padding: 0; align-items: flex-end; }
  .adm-modal-card {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  #adm-modal.open .adm-modal-card { transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   TESTIMONIALS + FAQ (Premium sections)
   ═══════════════════════════════════════════════ */
.tst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.tst-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.tst-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
}
.tst-stars { color: #f5b301; letter-spacing: 3px; font-size: 1rem; }
.tst-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin: 0;
}
.tst-author { display: flex; align-items: center; gap: .85rem; margin-top: auto; }
.tst-avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  display: grid; place-items: center;
  font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  font-size: 1.1rem;
  flex-shrink: 0;
}
.tst-meta { display: flex; flex-direction: column; }
.tst-name { color: var(--text); font-size: .95rem; }
.tst-role { color: var(--text-tertiary); font-size: .82rem; }
@media (max-width: 900px) { .tst-grid { grid-template-columns: 1fr; } }

.faq-wrap {
  max-width: 780px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq-item[open] { border-color: var(--border-focus); background: var(--surface-raised); }
.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--text);
  font-size: 1.02rem;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex-shrink: 0; width: 22px; height: 22px; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; background: var(--accent); border-radius: 2px;
}
.faq-icon::before { top: 10px; left: 3px; right: 3px; height: 2px; }
.faq-icon::after { left: 10px; top: 3px; bottom: 3px; width: 2px; transition: transform .35s var(--ease); }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-a {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: .98rem;
  margin: 0;
  animation: faqReveal .35s var(--ease);
}
@keyframes faqReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ BLOG / INSIGHTS ═══ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.blog-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
}
.blog-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.blog-summary::-webkit-details-marker { display: none; }
.blog-cover { height: 160px; width: 100%; overflow: hidden; position: relative; }
.blog-cover-1 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.blog-cover-2 { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.blog-cover-3 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.blog-cover-4 { background: linear-gradient(135deg, #10b981, #047857); }
.blog-cover-5 { background: linear-gradient(135deg, #ec4899, #be185d); }
.blog-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-info { padding: 1.5rem; display: flex; flex-direction: column; gap: .55rem; }
.blog-cat {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
}
.blog-title { font-size: 1.15rem; line-height: 1.35; color: var(--text); margin: 0; }
.blog-excerpt { font-size: .92rem; line-height: 1.55; color: var(--text-secondary); margin: 0; }
.blog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .4rem;
}
.blog-date { font-size: .8rem; color: var(--text-tertiary); }
.blog-read { font-size: .85rem; font-weight: 600; color: var(--accent); transition: opacity .3s var(--ease); }
.blog-card[open] .blog-read { opacity: .45; }
.blog-body {
  padding: 0 1.5rem 1.6rem;
  color: var(--text-secondary);
  line-height: 1.7;
  animation: faqReveal .35s var(--ease);
}
.blog-body p { margin: 0 0 .9rem; }
.blog-body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ═══ MOBILE MICROINTERACTIONS & ANIMATIONS (Premium) ═══ */
@media (pointer: coarse) {
  /* Smooth transitions for tappable elements */
  .btn-primary, .btn-ghost, .btn-submit, .btn-nav, .filter-tab,
  .blog-summary, .mobile-menu-close, .nav-link, .nav-cta,
  .auth-modal-content button, .auth-qa-btn, .social-link, .footer-link {
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  }

  /* Tactile press feedback — buttons & links scale down on tap */
  .btn-primary:active, .btn-ghost:active, .btn-submit:active, .btn-nav:active,
  .filter-tab:active, .mobile-menu-close:active, .nav-cta:active,
  .auth-modal-content button:active, .auth-qa-btn:active {
    transform: scale(.95);
  }
  .nav-link:active, .footer-link:active, .social-link:active { color: var(--accent); }

  /* Card press feedback — uses shadow/brightness so it never fights GSAP inline transforms */
  .service-card:active, .work-card:active, .tst-card:active,
  .pricing-card:active, .blog-card:active, .bento-item:active, .metric:active {
    filter: brightness(1.07);
    box-shadow: 0 14px 36px -14px rgba(0,0,0,.55);
    transition: filter .18s var(--ease), box-shadow .18s var(--ease);
  }

  /* Work card image gentle zoom on tap */
  .work-card img { transition: transform .5s var(--ease); }
  .work-card:active img { transform: scale(1.05); }

  /* Springy, staggered mobile menu link entrance (delays preserved via nth-child) */
  .mob-link {
    transform: translateY(42px) scale(.96);
    transition: opacity .5s var(--ease), transform .55s cubic-bezier(.34, 1.56, .64, 1), color .3s var(--ease);
  }
  .mobile-menu.active .mob-link { transform: translateY(0) scale(1); }
  .mob-link:active { transform: scale(.93); color: var(--accent); }

  /* Subtle living gradient on blog covers */
  .blog-cover { background-size: 170% 170%; animation: blogShimmer 9s ease-in-out infinite; }
  @keyframes blogShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  /* Snappier scroll reveals on mobile (only when GSAP isn't driving) */
  html:not(.gsap-active).js-reveal-ready .reveal {
    transform: translateY(22px);
    transition-duration: .6s;
  }

  /* Gentle entrance for blog/faq/testimonial cards as they reveal */
  html:not(.gsap-active).js-reveal-ready .blog-card,
  html:not(.gsap-active).js-reveal-ready .tst-card { transform: translateY(26px); }
  html:not(.gsap-active).js-reveal-ready .blog-card.active,
  html:not(.gsap-active).js-reveal-ready .tst-card.active { transform: translateY(0); }

  /* Active language/theme toggle bounce */
  .lang-btn:active, .theme-toggle:active { transform: scale(.9); }
}

/* WhatsApp OTP status note (added: feature reactivation) */
.auth-phone-note {
  font-size: 0.78rem; color: var(--text-tertiary);
  text-align: center; line-height: 1.5; margin: 2px 0;
}
.auth-phone-note.success { color: #34A853; }
.auth-phone-note.error { color: #EA4335; }
.auth-phone-note.warning { color: #f59e0b; }


/* ═══ AI WEBSITE BUILDER ═══ */
#builder-fab { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 900; display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.15rem; border: none; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .95rem; color: #fff; background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 10px 30px rgba(109,40,217,.45); transition: transform .25s ease, box-shadow .25s ease; }
#builder-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 40px rgba(109,40,217,.55); }
#builder-fab .builder-fab-icon { font-size: 1.2rem; line-height: 1; }
@media (max-width: 560px) { #builder-fab .builder-fab-text { display: none; } #builder-fab { padding: .9rem; } }

.builder-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: flex-start; justify-content: center; padding: 2.5rem 1rem; overflow-y: auto; }
.builder-modal.active { display: flex; }
.builder-overlay { position: fixed; inset: 0; background: rgba(5,5,10,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.builder-dialog { position: relative; z-index: 1; width: 100%; max-width: 880px; background: var(--surface, #111114); color: var(--text, #f4f4f5); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 2rem; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: builderIn .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes builderIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.builder-close { position: absolute; top: 1rem; right: 1.1rem; background: none; border: none; color: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; opacity: .6; transition: opacity .2s; }
.builder-close:hover { opacity: 1; }
.builder-badge { display: inline-block; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: #a78bfa; background: rgba(139,92,246,.12); padding: .35rem .7rem; border-radius: 999px; }
.builder-head h2 { margin: .7rem 0 .4rem; font-size: 1.6rem; line-height: 1.2; }
.builder-sub { margin: 0 0 1.4rem; opacity: .7; font-size: .95rem; }
.builder-form { display: flex; flex-direction: column; gap: 1rem; }
.builder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.builder-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.builder-field { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; font-weight: 600; }
.builder-field span { opacity: .85; }
.builder-field input[type=text], .builder-field textarea, .builder-field select { width: 100%; padding: .7rem .85rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: inherit; font-size: .95rem; font-family: inherit; transition: border-color .2s, box-shadow .2s; }
.builder-field input:focus, .builder-field textarea:focus, .builder-field select:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
.builder-field input[type=color] { width: 100%; height: 44px; padding: .25rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); cursor: pointer; }
.builder-generate { margin-top: .4rem; padding: .95rem 1.4rem; border: none; border-radius: 14px; cursor: pointer; font-weight: 700; font-size: 1rem; color: #fff; background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 12px 30px rgba(109,40,217,.4); transition: transform .2s, box-shadow .2s, opacity .2s; }
.builder-generate:hover:not(:disabled) { transform: translateY(-2px); }
.builder-generate:disabled { opacity: .7; cursor: wait; }
.builder-note { margin: .3rem 0 0; font-size: .88rem; padding: .6rem .8rem; border-radius: 10px; }
.builder-note-info { background: rgba(59,130,246,.12); color: #93c5fd; }
.builder-note-error { background: rgba(239,68,68,.12); color: #fca5a5; }
.builder-result { margin-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.2rem; }
.builder-result-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.builder-result-title { font-weight: 700; }
.builder-result-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.builder-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .85rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.builder-btn:hover { background: rgba(139,92,246,.15); border-color: #8b5cf6; }
.builder-preview { width: 100%; height: 460px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #fff; }
@media (max-width: 560px) { .builder-grid, .builder-grid-3 { grid-template-columns: 1fr; } .builder-dialog { padding: 1.4rem; } .builder-preview { height: 360px; } }

/* ═══ COOKIE PREFERENCES (granular) ═══ */
.cookie-actions { flex-wrap: wrap; }
.cookie-prefs { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.cookie-prefs.active { display: flex; }
.cookie-prefs-bg { position: fixed; inset: 0; background: rgba(5,5,10,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cookie-prefs-dialog { position: relative; z-index: 1; width: 100%; max-width: 520px; background: var(--surface, #111114); color: var(--text, #f4f4f5); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 1.8rem; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: builderIn .3s cubic-bezier(.34,1.56,.64,1); }
.cookie-prefs-close { position: absolute; top: .9rem; right: 1rem; background: none; border: none; color: inherit; font-size: 1.7rem; line-height: 1; cursor: pointer; opacity: .6; transition: opacity .2s; }
.cookie-prefs-close:hover { opacity: 1; }
.cookie-prefs-dialog h3 { margin: 0 0 .35rem; font-size: 1.3rem; }
.cookie-prefs-sub { margin: 0 0 1.2rem; opacity: .7; font-size: .9rem; }
.cookie-pref-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid rgba(255,255,255,.07); }
.cookie-pref-info { display: flex; flex-direction: column; gap: .2rem; }
.cookie-pref-info strong { font-size: .95rem; }
.cookie-pref-info span { font-size: .8rem; opacity: .65; }
.cookie-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider { position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,.18); border-radius: 999px; transition: background .25s; }
.cookie-slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .25s; }
.cookie-switch input:checked + .cookie-slider { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(20px); }
.cookie-switch input:disabled + .cookie-slider { opacity: .55; cursor: not-allowed; }
.cookie-switch input:focus-visible + .cookie-slider { box-shadow: 0 0 0 3px rgba(139,92,246,.4); }
.cookie-prefs-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: 1.3rem; }
.cookie-reopen { position: fixed; left: 1.5rem; bottom: 5.5rem; z-index: 895; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: var(--surface, #1a1a1f); color: inherit; font-size: 1.25rem; cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s, box-shadow .2s; }
.cookie-reopen.visible { display: inline-flex; }
.cookie-reopen:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
@media (max-width: 560px) { .cookie-prefs-actions { justify-content: stretch; } .cookie-prefs-actions .cookie-btn { flex: 1; } .cookie-reopen { bottom: 5rem; } }

#builder-fab { text-decoration: none; }
