/* LegalTranscribie — GoTranscript-inspired professional UI */

:root {
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;

  --orange-500: #f97316;
  --orange-600: #ea580c;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --white: #ffffff;
  --primary: var(--green-600);
  --primary-hover: var(--green-700);
  --primary-light: var(--green-50);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1180px;
  --header-h: 72px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.1);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--white);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

/* Skip link — visible on keyboard focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--green-600);
  color: white;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid white;
  outline-offset: 2px;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
}

.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ── Topbar ── */
.topbar {
  position: relative;
  z-index: 2;
  background: var(--slate-900);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Navbar ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 260;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.navbar {
  position: relative;
  z-index: 2;
  height: var(--header-h);
}

.navbar__inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--slate-900);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover { color: var(--slate-900); }

.brand__mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-self: center;
}

.nav-links a,
.nav-links__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.95rem;
  color: var(--slate-700);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 10px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.nav-links a::after,
.nav-links__item::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.nav-links a:hover,
.nav-links__item:hover {
  color: var(--green-800);
  background: var(--green-50);
}

.nav-links a:hover::after,
.nav-links__item:hover::after,
.nav-links a.is-active::after,
.nav-links__item.is-active::after,
.nav-links a[aria-current="page"]::after,
.nav-links__item[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links a:focus-visible,
.nav-links__item:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
}

.nav-links a.is-active,
.nav-links__item.is-active,
.nav-links a[aria-current="page"],
.nav-links__item[aria-current="page"] {
  color: var(--green-800);
  background: var(--green-50);
  font-weight: 700;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}

.navbar__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate-800);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.navbar__cart svg {
  flex-shrink: 0;
  color: var(--slate-600);
}

.navbar__cart:hover {
  color: var(--green-800);
  border-color: #86efac;
  background: var(--green-50);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
}

.navbar__cart:hover svg {
  color: var(--green-700);
}

.navbar__cart--active {
  border-color: rgba(5, 150, 105, 0.35);
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
  color: var(--green-800);
}

.navbar__cart--active svg {
  color: var(--green-700);
}

.navbar__cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--green-600);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}

.navbar__login {
  font-weight: 600;
}

.navbar__cta {
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.navbar__user {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
  text-decoration: none;
}

.navbar__profile {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.navbar__profile:hover {
  background: var(--slate-100);
}

.navbar__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid var(--green-100);
}

.navbar__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.navbar__avatar-initials {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--green-800);
  letter-spacing: 0.02em;
}

.navbar__profile-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar__user:hover {
  color: var(--slate-900);
}

.navbar__mobile-tools {
  display: none;
  align-items: center;
  gap: 0.4rem;
  justify-self: end;
}

.navbar__cart--icon {
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  justify-content: center;
}

.navbar__cart--icon .navbar__cart-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
}

.navbar__toggle {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  cursor: pointer;
  padding: 0;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.navbar__toggle:hover {
  background: var(--green-50);
  border-color: #86efac;
}

.navbar__toggle:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

.navbar__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--slate-800);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.navbar__toggle.is-open {
  background: var(--green-50);
  border-color: #86efac;
}

.navbar__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav:not([hidden]) {
  display: block;
}

.mobile-nav.is-open {
  pointer-events: auto;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 20.5rem);
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  padding:
    max(0.85rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    1rem;
  background: #fff;
  border-left: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: -20px 0 48px rgba(15, 23, 42, 0.22);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translate3d(0, 0, 0);
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-bottom: 0.85rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--slate-100);
}

.mobile-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.mobile-nav__brand .brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.95rem;
  border-radius: 9px;
}

.mobile-nav__eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
  line-height: 1.2;
}

.mobile-nav__title {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
}

.mobile-nav__close {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--slate-700);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav__close:hover {
  background: var(--slate-50);
}

.mobile-nav__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.35rem 0 0.5rem;
}

.mobile-nav__section {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.15rem;
}

.mobile-nav__label {
  margin: 0 0 0.35rem;
  padding: 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.mobile-nav__link,
.mobile-nav a.mobile-nav__link,
.mobile-nav__link--button {
  display: flex;
  align-items: center;
  min-height: 2.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  color: var(--slate-800);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav__link:hover,
.mobile-nav__link--button:hover,
.mobile-nav__link.is-active {
  background: var(--green-50);
  color: var(--green-800);
}

.mobile-nav__link.is-active {
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--green-600);
}

.mobile-nav__footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--slate-100);
  background: #fff;
}

.mobile-nav__cta {
  min-height: 2.85rem;
  font-weight: 700;
}

.logout-form {
  display: inline;
  margin: 0;
}

.logout-form--mobile {
  display: block;
  width: 100%;
}

.logout-form--footer {
  display: block;
}

.logout-form__footer-btn {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav__backdrop,
  .mobile-nav__panel,
  .navbar__toggle span {
    transition: none;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--green-600);
  color: white;
  border-color: var(--green-600);
}

.btn--primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn--orange {
  background: var(--orange-500);
  color: white;
  border-color: var(--orange-500);
}

.btn--orange:hover {
  background: var(--orange-600);
  border-color: var(--orange-600);
  color: white;
}

.btn--outline {
  background: transparent;
  color: var(--slate-700);
  border-color: var(--slate-300);
}

.btn--outline:hover {
  border-color: var(--green-600);
  color: var(--green-700);
  background: var(--green-50);
}

.btn--ghost {
  background: transparent;
  color: var(--slate-600);
  border-color: transparent;
}

.btn--ghost:hover { color: var(--green-700); background: var(--green-50); }

.btn--white {
  background: white;
  color: var(--green-700);
  border-color: white;
}

.btn--white:hover { background: var(--green-50); color: var(--green-800); }

.btn--gold {
  background: #f5c518;
  color: #1a2b4a;
  border-color: #f5c518;
  font-weight: 700;
}

.btn--gold:hover {
  background: #e6b800;
  border-color: #e6b800;
  color: #1a2b4a;
}

.btn--sm { padding: 0.5625rem 1.125rem; font-size: 0.875rem; min-height: 40px; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; min-height: 48px; }
.btn--block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.875rem; align-items: center; }
.btn-group--center { justify-content: center; }

.btn svg { flex-shrink: 0; }

/* ── Hero (landing) ── */
.hero {
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
  padding: 4rem 0 5rem;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--slate-200);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.hero__stars { color: #fbbf24; letter-spacing: 2px; }

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--green-600); }

.hero__lead {
  font-size: 1.125rem;
  color: var(--slate-500);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions { margin-bottom: 2rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  box-shadow: var(--shadow);
}

.trust-pill__icon {
  width: 36px;
  height: 36px;
  background: var(--green-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
  flex-shrink: 0;
}

.trust-pill strong {
  display: block;
  color: var(--slate-900);
  font-size: 0.875rem;
}

.trust-pill span { color: var(--slate-500); }

/* Hero visual / calculator preview */
.hero__visual {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero__visual-header {
  background: var(--slate-900);
  color: white;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero__visual-body { padding: 1.5rem; }

.quote-preview__row {
  display: flex;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.875rem;
}

.quote-preview__row:last-child { border-bottom: none; }
.quote-preview__row dt { color: var(--slate-500); }
.quote-preview__row dd { font-weight: 600; color: var(--slate-900); }

.quote-preview__total {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--green-50);
  border-radius: var(--radius);
  text-align: center;
}

.quote-preview__total-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  font-weight: 600;
}

.quote-preview__total-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-700);
}

.hero__visual-cta { margin-top: 1rem; }

.btn--outline-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

.section__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── Cloud storage providers (link import) ── */
.cloud-providers {
  margin-bottom: 1.125rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--slate-100);
}

.cloud-providers--landing {
  max-width: 520px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.cloud-providers__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
  text-align: center;
  margin-bottom: 0.75rem;
}

.cloud-providers__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.625rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cloud-providers__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 4.5rem;
  padding: 0.375rem 0.25rem;
  border-radius: 8px;
}

.cloud-providers__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cloud-providers__icon svg {
  display: block;
}

.cloud-providers__name {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--slate-500);
  text-align: center;
  line-height: 1.2;
  max-width: 4.75rem;
}

.cloud-providers__note {
  font-size: 0.6875rem;
  color: var(--slate-400);
  text-align: center;
  margin: 0.75rem 0 0;
  line-height: 1.4;
}

/* ── Logo strip ── */
.logo-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  background: var(--white);
}

.logo-strip__label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
}

.logo-strip__logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-strip__logos span {
  flex-shrink: 0;
  scroll-snap-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-300);
  letter-spacing: -0.01em;
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section--gray { background: var(--slate-50); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-600);
  margin-bottom: 0.75rem;
}

.section__header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__header p {
  color: var(--slate-500);
  font-size: 1.0625rem;
}

/* ── Service cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}

.service-card:hover {
  border-color: var(--green-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card--featured {
  border-color: var(--green-500);
  box-shadow: 0 0 0 1px var(--green-500), var(--shadow);
}

.service-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--green-600);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--green-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--slate-500);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.service-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-box {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-box__value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--green-600);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-box__label {
  font-size: 0.9375rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--green-600);
  color: white;
  font-weight: 800;
  font-size: 1.125rem;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.step p { font-size: 0.9375rem; color: var(--slate-500); }

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-600) 50%, #34d399 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── App pages (dashboard) ── */
.page-wrap {
  flex: 1;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  background: var(--slate-50);
}

.page-wrap--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.page-header__sub {
  color: var(--slate-500);
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--slate-100);
}

.card__header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
}

.card__body { padding: 1.5rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

a.stat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.stat-card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));
  transform: translateY(-1px);
}

a.stat-card:focus-visible {
  outline: 2px solid var(--green-600, #16a34a);
  outline-offset: 2px;
}

a.stat-card.stat-card--active {
  border-color: var(--green-600, #16a34a);
  box-shadow: 0 0 0 1px var(--green-600, #16a34a);
}

.stat-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
}

.stat-card__value--green { color: var(--green-600); }

.stat-card__value--amber { color: #d97706; }

.stat-card__value--rating { color: #f59e0b; }

.stat-card__value--returned { color: #b91c1c; }

.card-grid--client-stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-card__hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-400);
}

.card-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card-grid--admin-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .card-grid--admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .card-grid--admin-stats {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.card-grid--admin-stats .stat-card {
  padding: 0.625rem 0.75rem;
  box-shadow: none;
}

.card-grid--admin-stats .stat-card__label {
  font-size: 0.625rem;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.card-grid--admin-stats .stat-card__value {
  font-size: 1.125rem;
}

.card-grid--admin-stats .stat-card__value--money {
  font-size: 1.0625rem;
}

.card-grid--admin-stats .stat-card__hint {
  margin-top: 0.15rem;
  font-size: 0.625rem;
}

.stat-card--highlight {
  border-color: var(--green-200);
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.stat-card__value--money {
  color: var(--green-700);
  font-size: 1.75rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.admin-tabs__link {
  flex: 1;
  text-align: center;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slate-600);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-tabs__link:hover {
  background: var(--slate-50);
  color: var(--slate-900);
}

.admin-tabs__link--active {
  background: var(--green-600);
  color: white;
}

.dashboard-filter-note {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.dashboard-filter-note a {
  color: var(--green-700);
  font-weight: 600;
  text-decoration: none;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #b45309;
}

.rating-pill__star {
  color: #f59e0b;
}

.data-table__link {
  color: var(--green-700);
  font-weight: 600;
  text-decoration: none;
}

.data-table__link:hover {
  text-decoration: underline;
}

.data-table__row--alert {
  background: #fffbeb;
}

.data-table__row--alert:hover {
  background: #fef3c7;
}

#admin-orders.htmx-request .table-wrap,
#admin-customers.htmx-request .table-wrap {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

/* Tables */
.table-wrap {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table thead { background: var(--slate-50); }

.data-table th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--slate-500);
  border-bottom: 1px solid var(--slate-200);
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--green-50); }

.data-table__name { font-weight: 600; color: var(--slate-900); }
.data-table__muted { color: var(--slate-500); font-size: 0.875rem; }

.dashboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  padding: 1rem 1.125rem;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.dashboard-toolbar__search {
  flex: 1 1 220px;
  min-width: 0;
}

.dashboard-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-toolbar__input,
.dashboard-toolbar__select {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: white;
  color: var(--slate-900);
  font: inherit;
  font-size: 0.9375rem;
}

.dashboard-toolbar__select {
  min-width: 9.5rem;
  cursor: pointer;
}

.dashboard-toolbar__input:focus,
.dashboard-toolbar__select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.dashboard-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-toolbar__loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-500);
}

.dashboard-toolbar__loading.htmx-indicator {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.dashboard-toolbar__loading.htmx-indicator.htmx-request {
  opacity: 1;
}

.dashboard-toolbar__spinner {
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid var(--slate-200);
  border-top-color: var(--green-600);
  border-radius: 50%;
  animation: dashboard-spin 0.7s linear infinite;
}

@keyframes dashboard-spin {
  to { transform: rotate(360deg); }
}

#dashboard-orders.htmx-request .table-wrap {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0 0.25rem;
}

.pagination__summary {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.pagination__summary--solo {
  margin-top: 1.25rem;
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.625rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: white;
  color: var(--slate-700);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pagination__link:hover {
  border-color: var(--green-300);
  background: var(--green-50);
  color: var(--green-800);
}

.pagination__link--active {
  border-color: var(--green-600);
  background: var(--green-600);
  color: white;
}

.pagination__link--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: var(--slate-400);
  font-size: 0.875rem;
}

.pagination__status {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--uploaded { background: #eff6ff; color: #2563eb; }
.badge--assigned { background: #fff7ed; color: #ea580c; }
.badge--in_progress { background: #fdf4ff; color: #a21caf; }
.badge--completed { background: var(--green-50); color: var(--green-700); }
.badge--paid { background: var(--green-50); color: var(--green-700); }
.badge--pending { background: #fff7ed; color: #ea580c; }
.badge--returned { background: #fef2f2; color: #b91c1c; }

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.4;
}

.form-error {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #b91c1c;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
}

.refund-panel {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--slate-50);
}

.refund-panel__calc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 12rem;
}

.refund-panel__prefix {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-600);
}

.data-table__row--returned {
  background: #fef2f2;
}

.data-table__row--returned:hover {
  background: #fee2e2;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  font-family: var(--font);
  font-size: 16px;
  color: var(--slate-900);
  background: white;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  min-height: 48px;
}

.form-group--fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.form-group--fieldset legend.form-label {
  margin-bottom: 0.5rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-input--error,
.form-select--error { border-color: #ef4444; }

.form-textarea {
  min-height: 280px;
  resize: vertical;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #ef4444;
}

.form-help {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* File upload */
.file-upload {
  position: relative;
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--slate-50);
  transition: all var(--transition);
  cursor: pointer;
}

.file-upload:hover,
.file-upload--active {
  border-color: var(--green-500);
  background: var(--green-50);
}

.file-upload__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
  box-shadow: var(--shadow);
}

.file-upload__title { font-weight: 600; color: var(--slate-900); margin-bottom: 0.25rem; }
.file-upload__hint { font-size: 0.8125rem; color: var(--slate-500); }
.file-upload__name { margin-top: 0.75rem; font-weight: 600; color: var(--green-700); font-size: 0.875rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-upload__meta { margin-top: 0.375rem; font-size: 0.8125rem; color: var(--slate-500); }
.file-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Upload layout + calculator */
.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
}

.price-calculator {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.price-calculator__header {
  background: var(--slate-900);
  color: white;
  padding: 1.25rem 1.5rem;
}

.price-calculator__header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.price-calculator__hint {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
}

.price-calculator__body { padding: 1.5rem; }

.price-calculator__total {
  text-align: center;
  padding: 1.25rem;
  background: var(--green-50);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.price-calculator__total-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
}

.price-calculator__total-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--green-700);
  line-height: 1.2;
}

.price-calculator__status {
  font-size: 0.8125rem;
  text-align: center;
  padding: 0.625rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  color: var(--slate-500);
  background: var(--slate-50);
}

.price-calculator__status--ready { background: var(--green-50); color: var(--green-700); }
.price-calculator__status--loading { background: #eff6ff; color: #2563eb; }

.price-calculator__row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.875rem;
}

.price-calculator__row dt { color: var(--slate-500); }
.price-calculator__row dd { font-weight: 600; color: var(--slate-900); margin: 0; }

.price-calculator__footnote {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--slate-400);
  line-height: 1.5;
}

/* Auth pages */
.auth-page {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

.auth-page__promo {
  background: linear-gradient(160deg, var(--slate-900) 0%, #134e4a 100%);
  color: white;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-page__promo h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.auth-page__promo p { color: rgba(255,255,255,0.75); font-size: 1.0625rem; line-height: 1.7; }

.auth-page__features {
  list-style: none;
  margin-top: 2rem;
}

.auth-page__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
}

.auth-page__features li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.auth-page__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--slate-50);
}

.auth-form-box {
  width: 100%;
  max-width: 420px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-form-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.375rem;
}

.auth-form-box .subtitle {
  color: var(--slate-500);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.auth-footer-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--slate-500);
}

.auth-legal-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--slate-500);
}

.auth-legal-note a {
  color: var(--green-700);
  font-weight: 600;
  text-decoration: none;
}

.auth-legal-note a:hover {
  text-decoration: underline;
}

.auth-message {
  padding: 1rem 1.125rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.auth-message--success {
  background: var(--green-50);
  border: 1px solid #bbf7d0;
  color: var(--green-800);
}

.auth-message--warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.auth-form-box .form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.auth-form-box .form-label-row .form-label {
  margin-bottom: 0;
}

.auth-form-box .auth-link-sm {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
}

.auth-form-box .auth-link-sm:hover {
  text-decoration: underline;
}

.verify-banner {
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
  border-bottom: 1px solid #bbf7d0;
}

.verify-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
}

.verify-banner__text {
  margin: 0;
  font-size: 0.875rem;
  color: #166534;
}

.verify-banner__form {
  display: inline;
  margin: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--slate-400);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}

.auth-social {
  margin-bottom: 1.25rem;
}

.btn--google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: var(--white);
  color: var(--slate-700);
  border: 1.5px solid var(--slate-200);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn--google:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--slate-900);
}

.btn--google .btn__icon {
  flex-shrink: 0;
}

/* Detail pages */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}

.detail-meta__item {
  display: flex;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.9375rem;
}

.detail-meta__label { color: var(--slate-500); }
.detail-meta__value { font-weight: 600; color: var(--slate-900); }
.detail-meta__value--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.8125rem; font-weight: 500; word-break: break-all; }

.notice {
  padding: 1rem 1.125rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-700);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.notice--info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.notice--warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.card__intro {
  margin: 0 0 1rem;
  color: var(--slate-500);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.star-rating {
  border: 0;
  margin: 0;
  padding: 0;
}

.star-rating__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.star-rating__option {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.star-rating__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating__star {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--slate-300);
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating__text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
}

.star-rating__option:hover .star-rating__star,
.star-rating__option:focus-within .star-rating__star {
  color: #fbbf24;
}

.star-rating__input:checked + .star-rating__star {
  color: #f59e0b;
  transform: scale(1.08);
}

.rating-display {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.rating-display__star {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--slate-300);
}

.rating-display__star--filled {
  color: #f59e0b;
}

.rating-display__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-700);
}

.rating-display__comment {
  margin: 0.75rem 0 0;
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.media-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.media-stack__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.media-stack__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.media-stack__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-800);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
}

.media-stack__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.media-track__shell {
  position: relative;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 16px rgba(15, 23, 42, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.media-track__shell:hover {
  border-color: #cbd5e1;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.05),
    0 8px 24px rgba(15, 23, 42, 0.06);
}

.media-track__shell::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.media-track--video .media-track__shell::before {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.media-track__info {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1rem 0.875rem 1.125rem;
}

.media-track__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  color: #15803d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.media-track--video .media-track__icon {
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
}

.media-track__copy {
  min-width: 0;
  flex: 1;
  padding-top: 0.125rem;
}

.media-track__title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.media-track__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--slate-900);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-track__ext {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.media-track__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-500);
  line-height: 1.4;
}

.media-track__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--slate-300);
  flex-shrink: 0;
}

.media-track__player {
  padding: 0.75rem 1rem 1rem 1.125rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--slate-100);
}

.media-track__player audio {
  display: block;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.35),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.media-track__player audio::-webkit-media-controls-panel {
  background: #ffffff;
}

.media-track__player audio::-webkit-media-controls-enclosure {
  border-radius: 10px;
  background: #ffffff;
}

@media (max-width: 640px) {
  .media-track__info {
    padding: 0.875rem 0.875rem 0.75rem 1rem;
  }

  .media-track__player {
    padding: 0.625rem 0.875rem 0.875rem 1rem;
  }

  .media-track__title {
    font-size: 0.875rem;
  }
}

/* Status timeline */
.status-timeline {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.status-timeline__step {
  flex: 1;
  text-align: center;
  padding: 1.25rem 0.5rem;
  position: relative;
  border-right: 1px solid var(--slate-100);
}

.status-timeline__step:last-child { border-right: none; }

.status-timeline__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slate-200);
  color: var(--slate-500);
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-timeline__step--active .status-timeline__dot,
.status-timeline__step--done .status-timeline__dot {
  background: var(--green-600);
  color: white;
}

.status-timeline__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-400);
}

.status-timeline__step--active .status-timeline__label,
.status-timeline__step--done .status-timeline__label { color: var(--green-700); }

.status-timeline__step--returned .status-timeline__dot {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.status-timeline__step--returned.status-timeline__step--active .status-timeline__dot {
  background: #b91c1c;
  border-color: #b91c1c;
  color: white;
}

.notice__body {
  margin: 0.75rem 0 0;
  white-space: pre-wrap;
}

.notice__actions {
  margin: 0.75rem 0 0;
}

.resubmit-card {
  margin-bottom: 1rem;
  border-color: #fde68a;
}

.resubmit-card .card__header {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  border-bottom-color: #fde68a;
}

.resubmit-form__file {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius);
  background: var(--slate-50);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.resubmit-form__file:focus-within {
  border-color: var(--green-400);
  background: #f0fdf4;
}

.resubmit-form__input {
  width: 100%;
  font-size: 0.875rem;
}

.detail-card {
  margin-top: 1rem;
}

.detail-card__field {
  margin-top: 1rem;
}

.detail-actions {
  margin-top: 1.25rem;
}

/* Messages */
.messages {
  list-style: none;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
}

.message {
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.message--success { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
.message--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.message--warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.message--info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-lg);
}

.empty-state__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: var(--green-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.empty-state p { color: var(--slate-500); margin-bottom: 1.5rem; }

/* Payment result */
.payment-result {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.payment-result .card__body {
  padding: 2rem 1.75rem;
  text-align: center;
}

.payment-result__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.payment-result__icon--success { background: var(--green-50); color: var(--green-600); }
.payment-result__icon--cancel { background: #fff7ed; color: #ea580c; }

.panel-grid {
  display: grid;
  gap: 1.5rem;
}

.panel-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
}

.brand--footer .brand__text { color: white; }

.site-footer h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 0.5rem; }

.site-footer a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.site-footer a:hover { color: #6ee7b7; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8125rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__visual { max-width: 100%; }
  .hero__lead { max-width: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .upload-layout, .detail-grid { grid-template-columns: 1fr; }
  .price-calculator { position: static; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .navbar__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  .nav-links--desktop,
  .navbar__actions {
    display: none !important;
  }

  .navbar__mobile-tools {
    display: flex;
  }

  .navbar__toggle {
    display: inline-flex;
  }

  .brand {
    min-width: 0;
  }

  .brand__text {
    font-size: 1.05rem;
    max-width: min(42vw, 11.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar__item--hide-mobile,
  .topbar__item--hide-sm {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
    gap: 0;
  }

  .topbar {
    font-size: 0.75rem;
    padding: 0.375rem 0;
  }

  .page-wrap {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .card-grid--admin-stats,
  .card-grid--client-stats,
  .card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card__value {
    font-size: 1.5rem;
  }

  .dashboard-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-toolbar__filters {
    width: 100%;
    flex-wrap: wrap;
  }

  .dashboard-toolbar__select,
  .dashboard-toolbar__input {
    width: 100%;
  }

  .hero { padding: 2.5rem 0 3rem; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { flex-direction: column; }
  .trust-pill { width: 100%; }

  .logo-strip { padding: 1.75rem 0; }
  .logo-strip__logos { justify-content: flex-start; }

  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  .auth-page { grid-template-columns: 1fr; min-height: auto; }
  .auth-page__promo { display: none; }
  .auth-page__form { padding: 2rem clamp(1rem, 4vw, 1.5rem); }

  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .status-timeline { flex-wrap: wrap; }
  .status-timeline__step { flex: 1 1 45%; border-bottom: 1px solid var(--slate-100); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .data-table { min-width: 640px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .cta-banner { padding: 2rem 1.5rem; }
  .cta-banner .btn-group { flex-direction: column; width: 100%; }
  .cta-banner .btn { width: 100%; }

  .section__header { margin-bottom: 2rem; }

  .cloud-providers__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
  }

  .cloud-providers__item { min-width: 0; }

  .cloud-providers__name {
    font-size: 0.5625rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .navbar__profile-name { display: none; }

  .card-grid--admin-stats,
  .card-grid--client-stats,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }

  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* Profile page */
.page-profile .page-wrap {
  background: linear-gradient(180deg, #f8fafc 0%, var(--slate-50) 220px, var(--slate-50) 100%);
}

.profile-page {
  max-width: 960px;
}

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.profile-hero__avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.profile-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero__initials {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--green-800);
}

.profile-hero__copy {
  flex: 1;
  min-width: 200px;
}

.profile-hero__copy h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-hero__meta {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.9375rem;
}

.profile-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.profile-hero__actions {
  margin-left: auto;
}

.profile-stats {
  margin-bottom: 1.25rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem;
  align-items: start;
}

.profile-form__avatar-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--slate-100);
}

.profile-form__avatar-preview {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  flex-shrink: 0;
}

.profile-form__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-form__avatar-initials {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--green-800);
}

.profile-form__avatar-fields {
  flex: 1;
  min-width: 0;
}

.profile-form__remove-avatar {
  margin-top: 0.5rem;
}

.profile-form__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-100);
}

.profile-details {
  margin: 0;
}

.profile-details__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.9375rem;
}

.profile-details__row:last-child {
  border-bottom: none;
}

.profile-details__row dt {
  margin: 0;
  color: var(--slate-500);
  font-weight: 500;
}

.profile-details__row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--slate-900);
  word-break: break-word;
}

.profile-details--compact .profile-details__row {
  padding: 0.625rem 0;
  font-size: 0.875rem;
}

.profile-sidecard__action {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
}

@media (max-width: 860px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-hero__actions {
    width: 100%;
    margin-left: 0;
  }
}

/* ── Floating support button ── */
.support-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 180;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

body:has(.order-mobile-bar:not([hidden])) .support-fab {
  bottom: calc(5.25rem + env(safe-area-inset-bottom));
}

body.nav-open .support-fab,
body.modal-open .support-fab,
.page-contact .support-fab {
  display: none;
}

.support-fab__panel {
  width: min(calc(100vw - 2rem), 20.5rem);
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  transform-origin: bottom right;
  animation: supportFabIn 0.22s ease;
}

.support-fab__panel[hidden] {
  display: none !important;
}

@keyframes supportFabIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.support-fab__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
  border-bottom: 1px solid var(--slate-100);
}

.support-fab__eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
}

.support-fab__title {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--slate-900);
}

.support-fab__close {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: #fff;
  color: var(--slate-600);
  cursor: pointer;
}

.support-fab__links {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
}

.support-fab__link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.support-fab__link:hover {
  background: var(--green-50);
  color: inherit;
}

.support-fab__link strong {
  display: block;
  font-size: 0.9rem;
  color: var(--slate-900);
}

.support-fab__link span span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: var(--slate-500);
  line-height: 1.35;
}

.support-fab__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.support-fab__link--accent .support-fab__icon {
  background: var(--green-600);
  color: #fff;
  border-color: var(--green-600);
}

.support-fab__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.1rem 0.75rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.support-fab__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(5, 150, 105, 0.4);
}

.support-fab__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.support-fab__button-icon {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
}

.support-fab__button-icon--close {
  display: none;
}

.support-fab__button.is-open .support-fab__button-icon--chat {
  display: none;
}

.support-fab__button.is-open .support-fab__button-icon--close {
  display: inline-flex;
}

@media (max-width: 480px) {
  .support-fab__button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .support-fab__button {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-fab__panel,
  .support-fab__button {
    animation: none;
    transition: none;
  }
}

