﻿/* Signs FA shell — app-like GUI, no theme chrome */
:root {
  --sf-accent: #0891b2;
  --sf-accent-bright: #06b6d4;
  --sf-cta: #0ea5e9;
  --sf-cta-hover: #0284c7;
  --sf-dark: #0f172a;
  --sf-muted: #64748b;
  --sf-border: #e2e8f0;
  --sf-bg: #f1f5f9;
  --sf-card: #ffffff;
  --sf-radius: 12px;
  --sf-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  --sf-font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--sf-font);
  color: var(--sf-dark);
  background: var(--sf-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
#sf-app,
.sf-shell,
.sf-shell--home {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

body.sf-route-splash {
  background: #0b1220;
  overflow: hidden;
}

#sf-app {
  min-height: 100vh;
}

button, input, textarea, select {
  font-family: inherit;
}

a { color: var(--sf-accent); }

.sf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ——— Splash ——— */
.sf-splash {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
  color: #fff;
  overflow: hidden;
}

.sf-splash__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.75) 0%, rgba(22, 101, 52, 0.55) 50%, rgba(15, 23, 42, 0.8) 100%),
    radial-gradient(ellipse at 30% 20%, #155e75 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, #1e3a5f 0%, #0b1220 60%);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.sf-splash__bg.has-image {
  background-color: #0b1220;
  background-blend-mode: multiply;
}

.sf-splash__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 20px 0;
  box-sizing: border-box;
  pointer-events: none; /* don't block create button */
}
.sf-splash__top .sf-logo {
  pointer-events: auto;
}

.sf-splash__create {
  position: absolute;
  top: 28px;
  right: 24px;
  z-index: 3;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.85);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.sf-splash__create:hover {
  background: #fff;
  color: var(--sf-dark);
}

/* Logos — no heavy framed boxes */
.sf-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
}
.sf-logo img {
  display: block;
  height: auto;
  width: auto;
  max-height: 52px;
  max-width: min(280px, 100%);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.25));
}
.sf-logo--text {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.sf-logo--home img {
  max-height: 44px;
  max-width: 200px;
  filter: none;
}
.sf-logo--home.sf-logo--text {
  color: var(--sf-dark);
  text-shadow: none;
  font-size: 1.05rem;
}
.sf-splash .sf-logo img {
  max-height: 72px;
  max-width: 320px;
}
/* Legacy class aliases */
.sf-logo-box { display: contents; }
.sf-logo-box img { max-height: 48px; }

.sf-splash__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  margin-top: 40px;
  text-align: center;
}

.sf-splash__title {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.95;
}

/* Transparent / glass login — no solid card box */
.sf-login-glass,
.sf-login-card {
  background: transparent;
  color: #fff;
  border-radius: 0;
  padding: 8px 0 4px;
  box-shadow: none;
  text-align: left;
  border: none;
}
.sf-login-glass .sf-field label,
.sf-login-card .sf-field label {
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.08em;
}
.sf-login-glass .sf-field input,
.sf-login-card .sf-field input {
  background: rgba(255,255,255,0.94);
  color: var(--sf-dark);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.sf-login-glass .sf-msg--error,
.sf-login-card .sf-msg--error {
  background: rgba(254, 242, 242, 0.95);
}

.sf-field {
  margin-bottom: 12px;
  min-width: 0;
  max-width: 100%;
}
.sf-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sf-muted);
  margin-bottom: 4px;
}
.sf-field input,
.sf-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid var(--sf-border);
  border-radius: 8px;
  font-size: 16px; /* avoids iOS zoom + keeps fields usable */
  background: #fff;
}
.sf-field input:focus,
.sf-field textarea:focus {
  outline: 2px solid var(--sf-accent-bright);
  border-color: transparent;
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px 18px;
  transition: transform 0.1s, background 0.15s, filter 0.15s;
}
.sf-btn:active { transform: scale(0.98); }
.sf-btn--block { width: 100%; }
.sf-btn--primary {
  background: var(--sf-cta);
  color: #fff;
}
.sf-btn--primary:hover { background: var(--sf-cta-hover); }
.sf-btn--green {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border: 0;
}
.sf-btn--green:hover { filter: brightness(1.05); }
.sf-btn--ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.85);
  color: #fff;
}
.sf-btn--ghost:hover {
  background: rgba(255,255,255,0.12);
}
.sf-btn--ghost-dark {
  background: #fff;
  border: 1px solid var(--sf-border);
  color: var(--sf-dark);
}
.sf-btn--ghost-dark:hover { border-color: #94a3b8; }
.sf-btn--danger {
  background: #b91c1c;
  color: #fff;
  border: 1px solid #991b1b;
}
.sf-btn--danger:hover { background: #991b1b; }
.sf-btn--danger:disabled { opacity: 0.6; cursor: wait; }

.sf-pay-secure {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: middle;
}

.sf-manage-card {
  margin-top: 8px;
  padding: 16px;
  border: 1px solid var(--sf-border, #e5e7eb);
  border-radius: 12px;
  background: #f9fafb;
}
.sf-manage-card__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
}
.sf-manage-card__text {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.sf-manage-card .sf-btn { margin-top: 4px; }

.sf-danger-zone {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
}
.sf-danger-zone__title {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 900;
  color: #991b1b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sf-danger-zone__form {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #fca5a5;
}
.sf-danger-zone .sf-field { margin-bottom: 10px; }
.sf-danger-zone input {
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

.sf-login-card .sf-btn--primary { margin-top: 4px; }

.sf-login-links {
  margin: 14px 0 0;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 0.82rem;
  text-align: center;
}
.sf-login-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 1px;
}
.sf-login-links a:hover { color: #fff; border-bottom-color: #fff; }
.sf-login-links--glass { margin-top: 16px; }

.sf-splash__guest {
  margin-top: 22px;
}
.sf-splash__hint {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  font-size: 0.78rem;
  opacity: 0.75;
  text-align: center;
  max-width: 320px;
}

.sf-msg {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}
.sf-msg--error { background: #fef2f2; color: #b91c1c; }
.sf-msg--ok { background: #ecfeff; color: #155e75; }

/* ——— App chrome (post-splash) ——— */
.sf-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sf-header,
.sf-header--clean,
.sf-header--home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--sf-border);
  position: relative;
}

.sf-header__logo {
  display: flex;
  align-items: center;
  min-width: 0;
  justify-content: flex-start;
  flex: 0 1 auto;
  z-index: 2;
  max-width: min(42vw, 240px);
}

/* Status — truly centered on the header / viewport */
.sf-header__status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 0.82rem;
  line-height: 1.3;
  max-width: min(280px, 40vw);
  width: max-content;
  margin: 0;
  z-index: 1;
  pointer-events: none;
}
.sf-header__time {
  font-weight: 800;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  color: var(--sf-dark);
  letter-spacing: 0.02em;
}
.sf-header__open {
  font-weight: 700;
  margin-top: 2px;
  font-size: 0.84rem;
}
.sf-header__open.is-open { color: var(--sf-accent); }
.sf-header__open.is-closed { color: #b45309; }
.sf-header__hours {
  font-size: 0.72rem;
  color: var(--sf-muted);
  margin-top: 2px;
}

/* Account / actions — text links, no card */
.sf-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 10px;
  min-width: 0;
  flex: 0 1 auto;
  z-index: 2;
  max-width: min(58vw, 520px);
}
.sf-header-actions__row--icons {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 2px 4px;
}
.sf-user-chip {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--sf-dark);
  margin-right: 4px;
}
.sf-user-chip--muted {
  color: var(--sf-muted);
  font-weight: 700;
}
.sf-text-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--sf-dark);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 4px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.sf-text-btn:hover {
  color: var(--sf-accent);
  border-bottom-color: var(--sf-accent-bright);
}
.sf-cart-btn { position: relative; }
.sf-cart-badge,
.sf-cart-badge-host .sf-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--sf-cta);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  vertical-align: middle;
}

.sf-header__account {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.8rem;
}

/* Home shell */
.sf-shell--home {
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(8, 145, 178, 0.08), transparent 55%),
    var(--sf-bg);
}
.sf-header--home {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

/* Hero banner */
.sf-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(28px, 5vw, 48px) 20px;
  text-align: center;
  background: linear-gradient(125deg, #0b1f3a 0%, #0e4d6b 42%, #0e7490 100%);
}
.sf-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 80%, rgba(14, 165, 233, 0.35), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(103, 232, 249, 0.18), transparent 35%);
  pointer-events: none;
}
.sf-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.sf-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #67e8f9;
}
.sf-hero__text,
.sf-propaganda__text {
  margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: opacity 0.35s;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.sf-hero__dots,
.sf-propaganda__dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  justify-content: center;
}
.sf-propaganda__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.sf-propaganda__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}
/* legacy alias */
.sf-propaganda { display: none; }

/* Product strip */
.sf-section-head {
  text-align: center;
  margin-bottom: 18px;
}
.sf-products {
  background: transparent;
  border-bottom: none;
  padding: clamp(22px, 4vw, 36px) 16px 8px;
}
.sf-products__title {
  text-align: center;
  margin: 0 0 6px;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sf-dark);
}
.sf-products__sub {
  text-align: center;
  margin: 0;
  font-size: 0.85rem;
  color: var(--sf-muted);
  font-weight: 600;
}
.sf-products__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  justify-content: center;
  gap: 10px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 4px 0 8px;
}
.sf-product-tile {
  width: 100%;
  min-height: 0;
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  padding: 14px 8px 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.sf-product-tile:hover {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.12);
  transform: translateY(-3px);
}
.sf-product-tile:active { transform: translateY(-1px); }
.sf-product-tile__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 1.05rem;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  padding: 8px;
  box-sizing: border-box;
  background: #0ea5e9;
  border: 0;
}
.sf-product-tile__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* monoline SVGs are black; invert so they read on cyan tiles */
  filter: brightness(0) invert(1);
}
.sf-product-tile__name {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-product-tile__blurb {
  font-size: 0.7rem;
  color: var(--sf-muted);
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Home bottom panels */
.sf-home-panels {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 8px auto 0;
  padding: 16px 16px 28px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}
.sf-home-panel {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.04);
  min-width: 0;
}
.sf-home-panel__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-accent);
  margin-bottom: 10px;
}
.sf-home-panel__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ecfeff, #e0f2fe);
  color: #0e7490;
  font-weight: 900;
  margin-bottom: 12px;
}
.sf-home-panel h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.sf-home-panel p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--sf-muted);
  line-height: 1.5;
  flex: 1;
}
.sf-home-panel--feature {
  padding: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
}
.sf-home-panel--feature .sf-featured {
  flex: 1;
  min-height: 200px;
  border-radius: 14px;
}
.sf-home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sf-home-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sf-dark);
  line-height: 1.4;
}
.sf-home-steps li span {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sf-triad__btn-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: auto;
}
.sf-triad__btn-stack .sf-btn { width: 100%; min-height: 44px; }

/* legacy triad (kept for safety) */
.sf-triad {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 0;
  flex: 1;
  background: #fff;
  border-top: 1px solid var(--sf-border);
  min-height: 240px;
  align-items: stretch;
}
.sf-triad__col {
  padding: 22px 20px;
  border-right: 1px solid var(--sf-border);
  display: flex;
  flex-direction: column;
}
.sf-triad__col:last-child { border-right: none; }
.sf-triad__col h3 {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sf-triad__col p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--sf-muted);
  line-height: 1.45;
  flex: 1;
}
.sf-triad__col > .sf-btn {
  align-self: flex-start;
  margin-top: auto;
}
.sf-triad__mid {
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  padding: 12px;
}
.sf-triad__mid-placeholder {
  width: 100%;
  max-width: 300px;
  min-height: 120px;
  aspect-ratio: 16/10;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sf-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 16px;
  background: #fff;
  margin: 0 auto;
}

/* Featured material hero (home mid column) */
.sf-featured {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  text-align: left;
  font: inherit;
  color: #fff;
}
.sf-featured__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease, opacity 0.35s ease;
}
.sf-featured:hover .sf-featured__photo {
  transform: scale(1.04);
}
.sf-featured__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.78) 100%);
  pointer-events: none;
}
.sf-featured__meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1;
}
.sf-featured__kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #67e8f9;
}
.sf-featured__name {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.sf-featured__prod {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.88;
}

/* Horizontal materials strip on home */
.sf-mat-strip {
  background: #fff;
  border-bottom: 1px solid var(--sf-border);
  padding: 18px 16px 20px;
}
.sf-mat-strip__head {
  text-align: center;
  margin-bottom: 12px;
}
.sf-mat-strip__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sf-mat-strip__sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--sf-muted);
  font-weight: 600;
}
.sf-mat-strip__row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  max-width: 1100px;
  margin: 0 auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.sf-mat-pill {
  flex: 0 0 auto;
  width: 132px;
  border: 2px solid var(--sf-border);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  scroll-snap-align: start;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.sf-mat-pill:hover,
.sf-mat-pill.is-active {
  border-color: var(--sf-accent-bright);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.16);
  transform: translateY(-2px);
}
.sf-mat-pill__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
}
.sf-mat-pill__label {
  display: block;
  padding: 8px 8px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-contact-form .sf-field { margin-bottom: 10px; }
.sf-contact-form textarea { min-height: 72px; resize: vertical; }

.sf-footer {
  padding: 16px 16px 22px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--sf-muted);
  background: #fff;
  border-top: 1px solid var(--sf-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.sf-footer__legal a {
  color: var(--sf-muted);
  text-decoration: none;
  font-weight: 600;
}
.sf-footer__legal a:hover {
  color: var(--sf-accent);
  text-decoration: underline;
}
.sf-footer__manage-cookies {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sf-accent);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}
.sf-legal-check .sf-check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--sf-dark);
  font-weight: 600;
}
.sf-legal-check input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.sf-legal-check a {
  color: var(--sf-accent);
}
.sf-logo-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.sf-logo-link:hover { opacity: 0.9; }
.sf-topbar .sf-logo {
  flex-shrink: 0;
  margin-right: 4px;
}
.sf-topbar .sf-logo img {
  max-height: 36px;
  max-width: 120px;
}
.sf-topbar .sf-logo--text {
  font-size: 0.85rem;
  color: var(--sf-dark);
  text-shadow: none;
}

/* Account tabs */
.sf-acc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px 0;
  background: #fff;
  border-bottom: 1px solid var(--sf-border);
  position: sticky;
  top: 57px;
  z-index: 30;
}
.sf-acc-tab {
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sf-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.sf-acc-tab.is-active {
  color: var(--sf-accent);
  border-bottom-color: var(--sf-accent-bright);
}
.sf-acc-heading {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.sf-acc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.sf-acc-stat {
  background: #f8fafc;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sf-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sf-acc-stat__n {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--sf-dark);
  text-transform: none;
  letter-spacing: 0;
}
.sf-acc-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sf-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sf-orders-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.sf-chip-btn {
  border: 1px solid var(--sf-border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--sf-dark);
}
.sf-chip-btn.is-active {
  background: var(--sf-accent-bright);
  border-color: var(--sf-accent);
  color: #fff;
}
.sf-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sf-order-card {
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafafa;
}
.sf-order-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.sf-order-status {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}
.sf-order-status--processing,
.sf-order-status--pending,
.sf-order-status--on-hold {
  background: #ffedd5;
  color: #9a3412;
}
.sf-order-status--completed {
  background: #cffafe;
  color: #155e75;
}
.sf-order-card__meta {
  font-size: 0.82rem;
  color: var(--sf-muted);
  margin-top: 4px;
}
.sf-order-card__items {
  font-size: 0.8rem;
  margin-top: 6px;
  color: var(--sf-dark);
}

/* Native checkout (pretty multi-step) */
.sf-page--checkout {
  background: linear-gradient(180deg, #ecfdf5 0%, var(--sf-bg, #f1f5f9) 180px);
}
.sf-checkout-native {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px 28px;
  box-sizing: border-box;
}
.sf-checkout-hero {
  text-align: center;
  margin: 4px 0 18px;
}
.sf-checkout-hero h2 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
}
.sf-checkout-hero > p {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.95rem;
}
.sf-co-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 4px;
  margin: 0 auto;
  max-width: 520px;
}
.sf-co-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}
.sf-co-step__n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 900;
}
.sf-co-step.is-active {
  border-color: #6ee7b7;
  background: #ecfeff;
  color: #065f46;
}
.sf-co-step.is-active .sf-co-step__n {
  background: #0ea5e9;
  color: #fff;
}
.sf-co-step.is-done {
  border-color: #a7f3d0;
  color: #0e7490;
}
.sf-co-step.is-done .sf-co-step__n {
  background: #34d399;
  color: #064e3b;
}
.sf-co-step__join {
  width: 18px;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
}
.sf-checkout-layout,
.sf-checkout-layout--native {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 18px;
  align-items: start;
}
.sf-co-card {
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.sf-co-panel__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
}
.sf-co-panel__lead {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 0.9rem;
}
.sf-co-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.sf-co-nav .sf-btn { min-width: 120px; }
.sf-co-nav #sf-co-next,
.sf-co-nav #sf-co-place { margin-left: auto; }
.sf-co-secure-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.8rem;
}
.sf-checkout-cart {
  padding: 18px 16px;
  border: 1px solid var(--sf-border, #e2e8f0);
  border-radius: 16px;
  background: #fff;
  position: sticky;
  top: 72px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.sf-checkout-cart h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sf-co-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}
.sf-co-line__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sf-co-line__qty {
  font-size: 0.78rem;
  color: #64748b;
}
.sf-co-line__price { font-weight: 700; white-space: nowrap; }
.sf-co-tot-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
}
.sf-co-tot-row--grand {
  border-bottom: none;
  margin-top: 6px;
  font-size: 1.08rem;
}
.sf-pay-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.sf-pay-tile:hover {
  border-color: #94a3b8;
  background: #fff;
}
.sf-pay-tile.is-selected {
  border-color: #10b981;
  background: #ecfeff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.sf-pay-tile input {
  margin-top: 4px;
  accent-color: #0ea5e9;
}
.sf-pay-tile__icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 2px;
}
.sf-pay-tile__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.sf-pay-tile__body strong {
  font-size: 0.98rem;
  color: #0f172a;
}
.sf-pay-tile__body em {
  font-style: normal;
  font-weight: 800;
  color: #0e7490;
  margin-left: auto;
}
.sf-pay-tile__hint {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.35;
}
.sf-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.sf-check-row--card {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.sf-co-review-block {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  margin-bottom: 10px;
}
.sf-co-review-block h3 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.sf-co-review-block p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #0f172a;
}
.sf-radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--sf-border, #e2e8f0);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #fafafa;
}
.sf-radio-row strong { margin-left: auto; }
.sf-radio-row--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.sf-radio-row__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 3D Secure overlay (bank challenge only — not a full store page) */
.sf-3ds-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sf-3ds-panel {
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sf-3ds-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sf-border);
}
.sf-3ds-head strong {
  display: block;
  font-size: 0.95rem;
}
.sf-3ds-head p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--sf-muted);
}
.sf-3ds-frame {
  width: 100%;
  flex: 1;
  min-height: 360px;
  border: 0;
  background: #f8fafc;
}
.sf-3ds-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--sf-border);
  background: #fff;
}
.sf-3ds-foot .sf-btn { flex: 1 1 140px; }

@media (max-width: 820px) {
  .sf-checkout-layout,
  .sf-checkout-layout--native {
    grid-template-columns: 1fr;
  }
  .sf-checkout-cart {
    position: static;
    order: -1;
  }
}

/* Lock page under open modals (mobile keyboard / scroll) */
body.sf-modal-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}
body.sf-modal-open .sf-modal {
  touch-action: pan-y;
}

/* Modal (create account) — scrollable on short / mobile screens */
.sf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
}
.sf-modal[hidden] { display: none !important; }
.sf-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}
.sf-modal__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px 20px;
  width: 100%;
  max-width: 400px;
  margin: 8px auto 24px;
  box-shadow: var(--sf-shadow);
  box-sizing: border-box;
  max-height: none;
  overflow-x: hidden;
  min-width: 0;
}
.sf-modal__dialog h2 {
  margin: 0 36px 6px 0;
  font-size: 1.1rem;
  line-height: 1.25;
  word-wrap: break-word;
}
.sf-modal__dialog > p {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--sf-muted);
  line-height: 1.4;
  word-wrap: break-word;
}
.sf-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--sf-muted);
  line-height: 1;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

/* Toast */
.sf-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: var(--sf-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--sf-shadow);
  max-width: 90vw;
}
.sf-toast[hidden] { display: none !important; }

/* Material picker — widescreen card grid (image / name / Order) */
.sf-modal__dialog--wide {
  max-width: 520px;
}
.sf-modal__dialog--grid {
  max-width: min(1080px, 96vw);
  width: 100%;
  padding: 20px 22px 22px;
  background: #f8fafc;
  border-radius: 16px;
}
.sf-mat-picker-head h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: var(--sf-dark);
}
.sf-mat-lead {
  margin: 0 0 16px !important;
  font-size: 0.88rem;
  color: var(--sf-muted);
}
.sf-mat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  max-height: min(68vh, 620px);
  overflow-y: auto;
  padding: 2px 2px 6px;
}
/* Lifestyle cards — idle name on image; hover slides up like product tiles (no title) */
.sf-mat-card {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.2s;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  text-align: left;
  z-index: 1;
}
.sf-mat-card:hover,
.sf-mat-card:focus-visible {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.22);
  z-index: 3;
}
.sf-mat-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.sf-mat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
  transition: transform 0.3s ease;
}
.sf-mat-card:hover .sf-mat-card__img,
.sf-mat-card:focus-visible .sf-mat-card__img {
  transform: scale(1.04);
}
.sf-mat-card__img--empty {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc 50%, #e2e8f0);
}
.sf-mat-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.72) 100%);
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1;
}
.sf-mat-card:hover .sf-mat-card__veil,
.sf-mat-card:focus-visible .sf-mat-card__veil {
  opacity: 0.25;
}
/* Idle name only — fully off while the hover panel is up (no stacked titles) */
.sf-mat-card__label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  line-height: 1.25;
  z-index: 2;
  margin: 0;
  opacity: 1;
  transition: opacity 0.16s ease;
  pointer-events: none;
}
.sf-mat-card:hover .sf-mat-card__label,
.sf-mat-card:focus-visible .sf-mat-card__label {
  opacity: 0;
}
/* Same slide-up panel pattern as .sf-product-tile__hover — bullets + CTA only */
.sf-mat-card__hover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 74, 110, 0.92) 28%, rgba(15, 23, 42, 0.96) 100%);
  color: #f0f9ff;
  transform: translateY(105%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: left;
  pointer-events: none;
  z-index: 5;
  box-sizing: border-box;
  max-height: 88%;
  overflow: hidden;
}
.sf-mat-card:hover .sf-mat-card__hover,
.sf-mat-card:focus-visible .sf-mat-card__hover {
  transform: translateY(0);
}
.sf-mat-card__uses {
  margin: 0 0 8px;
  padding: 0 0 0 1em;
  font-size: 0.72rem;
  color: #a5f3fc;
  line-height: 1.35;
  list-style: disc;
}
.sf-mat-card__uses li {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.sf-mat-card__cta {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #67e8f9;
}

/* Detail — side-by-side info + compact actions (inspired by catalog modal, cyan brand) */
.sf-mat-detail-dialog {
  max-width: min(820px, 96vw);
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}
.sf-modal__close--light {
  z-index: 5;
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.sf-mat-detail__hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 280px;
}
.sf-mat-detail__photo {
  background-size: cover;
  background-position: center;
  min-height: 260px;
}
.sf-mat-detail__photo--empty {
  background: linear-gradient(135deg, #0e7490, #164e63);
}
.sf-mat-detail__panel {
  background: linear-gradient(145deg, #0e7490 0%, #155e75 45%, #0f766e 100%);
  color: #fff;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.sf-mat-detail__brand {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}
.sf-mat-detail__panel h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  color: #fff;
  line-height: 1.15;
}
.sf-mat-detail__desc {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  flex: 1;
}
.sf-mat-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sf-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
}
.sf-chip-btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}
.sf-chip-btn--outline:hover { background: rgba(255,255,255,0.12); }
.sf-chip-btn--outline.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sf-chip-btn--order {
  background: #facc15;
  color: #0f172a;
  border-color: #facc15;
}
.sf-chip-btn--order:hover { filter: brightness(1.05); }
.sf-mat-detail__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.sf-mat-detail__col {
  padding: 14px 16px;
  border-right: 1px solid #f1f5f9;
}
.sf-mat-detail__col:last-child { border-right: none; }
.sf-mat-detail__col h4 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0e7490;
}
.sf-mat-detail__col ul {
  margin: 0;
  padding: 0 0 0 1.1em;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.45;
}
.sf-mat-detail__col li { margin-bottom: 3px; }
.sf-mat-detail__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 14px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.sf-mat-detail__gallery-item {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}
@media (max-width: 700px) {
  .sf-mat-detail__hero { grid-template-columns: 1fr; }
  .sf-mat-detail__photo { min-height: 180px; }
  .sf-mat-detail__gallery { grid-template-columns: 1fr; }
}
/* legacy */
.sf-mat-list { display: flex; flex-direction: column; gap: 10px; }

/* ——— Responsive: tablet ——— */
@media (max-width: 1024px) {
  .sf-home-panels {
    grid-template-columns: 1fr 1fr;
  }
  .sf-home-panel--feature {
    grid-column: 1 / -1;
  }
  .sf-home-panel--feature .sf-featured {
    min-height: 220px;
  }
  .sf-products__row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }
  .sf-product-tile { padding: 12px 6px 10px; }
  .sf-product-tile__name { font-size: 0.82rem; }
  .sf-product-tile__blurb { display: none; }
}

/* ——— Responsive: small tablet / large phone ——— */
@media (max-width: 820px) {
  .sf-header,
  .sf-header--clean,
  .sf-header--home {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 12px 14px;
  }
  .sf-header__logo {
    justify-content: center;
    max-width: 100%;
  }
  .sf-header__status {
    position: static;
    transform: none;
    max-width: none;
    width: auto;
    pointer-events: auto;
    order: 2;
  }
  .sf-header-actions {
    justify-content: center;
    gap: 6px 12px;
    max-width: 100%;
    order: 3;
  }
  .sf-text-btn {
    min-height: 40px;
    padding: 8px 6px;
    font-size: 0.7rem;
  }
  .sf-home-panels {
    grid-template-columns: 1fr;
    padding: 12px 14px 24px;
    gap: 12px;
  }
  .sf-home-panel--feature { grid-column: auto; }
  .sf-triad {
    grid-template-columns: 1fr;
  }
  .sf-triad__col {
    border-right: none;
    border-bottom: 1px solid var(--sf-border);
  }
  .sf-splash {
    padding: 12px 16px 32px;
    justify-content: flex-start;
    padding-top: max(88px, calc(env(safe-area-inset-top, 0px) + 72px));
  }
  .sf-splash__create {
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    font-size: 0.68rem;
    padding: 8px 10px;
  }
  /* Keep logo clear of the Create account chip */
  .sf-splash__top {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 8px 12px 12px;
    margin: 0 auto 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .sf-splash .sf-logo {
    width: 100%;
    justify-content: center;
  }
  .sf-splash .sf-logo img {
    max-height: 56px;
    max-width: min(240px, calc(100vw - 32px));
  }
  .sf-splash__panel {
    margin-top: 8px;
  }
  .sf-gallery-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .sf-gallery-toolbar .sf-btn,
  .sf-gallery-toolbar .sf-file-label,
  .sf-gallery-toolbar select,
  .sf-gallery-toolbar input {
    width: 100%;
    min-height: 44px;
  }
  .sf-topbar { flex-wrap: wrap; }
  .sf-acc-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
  }
  .sf-acc-tab {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px;
  }
  .sf-form-grid {
    grid-template-columns: 1fr;
  }
  .sf-page__body {
    padding-left: 14px;
    padding-right: 14px;
  }
  .sf-btn {
    min-height: 44px;
  }
  .sf-mat-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    max-height: none;
  }
  .sf-modal__dialog--grid {
    max-height: 92vh;
    overflow: auto;
  }
}

/* ——— Responsive: phone ——— */
@media (max-width: 520px) {
  .sf-hero {
    padding: 24px 16px 28px;
  }
  .sf-hero__text {
    font-size: 1.08rem;
  }
  .sf-products {
    padding: 18px 12px 4px;
  }
  .sf-products__row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .sf-product-tile {
    min-height: 118px;
    padding: 14px 10px 12px;
    border-radius: 14px;
  }
  .sf-product-tile__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
  }
  .sf-product-tile__name { font-size: 0.9rem; }
  .sf-product-tile__blurb { font-size: 0.68rem; }
  .sf-header-actions {
    width: 100%;
  }
  .sf-user-chip {
    width: 100%;
    text-align: center;
    margin: 0 0 2px;
  }
  .sf-logo--home img {
    max-height: 38px;
    max-width: 160px;
  }
  .sf-home-panel {
    border-radius: 14px;
    padding: 14px;
  }
  .sf-home-panel--feature .sf-featured {
    min-height: 180px;
  }
  .sf-footer {
    padding: 14px 12px 22px;
  }
  .sf-danger-zone input {
    max-width: none;
  }
  .sf-acc-quick {
    flex-direction: column;
  }
  .sf-acc-quick .sf-btn {
    width: 100%;
  }
  .sf-acc-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ——— Required markers & forms ——— */
.sf-req {
  color: #dc2626;
  font-weight: 900;
  margin-left: 2px;
}
.sf-opt-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sf-muted);
  margin-left: 6px;
}
.sf-opt-label { display: block; margin-bottom: 4px; font-weight: 800; font-size: 0.78rem; color: var(--sf-muted); text-transform: uppercase; }
.sf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.sf-form-grid > * {
  min-width: 0;
  max-width: 100%;
}
.sf-form-span { grid-column: 1 / -1; }
.sf-section-title {
  margin: 8px 0 0;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sf-field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--sf-border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
}
.sf-hint { font-size: 0.75rem; color: var(--sf-muted); margin: 4px 0 0; }
.sf-muted { color: var(--sf-muted); }
.sf-warn { color: #b45309 !important; }
.sf-lead { font-size: 0.95rem; color: var(--sf-muted); line-height: 1.5; margin: 0 0 18px; }
.sf-prefill { font-size: 0.9rem; margin: 0 0 12px; }
.sf-soft-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sf-muted); margin: 10px 0 6px; }
.sf-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-soft-chip {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--sf-border);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ——— Inner pages ——— */
.sf-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sf-bg);
}
.sf-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--sf-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.sf-topbar__title {
  flex: 1;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sf-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}
.sf-icon-btn {
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--sf-dark);
  padding: 4px 8px;
  font-weight: 700;
}
.sf-page__body {
  flex: 1;
  padding: 18px 16px 32px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.sf-page__body--narrow { max-width: 560px; }
.sf-card-form {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.sf-empty-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--sf-border);
}
.sf-empty-card h2 { margin: 0 0 8px; }
.sf-empty-card p { color: var(--sf-muted); margin: 0 0 16px; }
.sf-file-label { cursor: pointer; }

/* Gallery */
.sf-page--gallery .sf-page__body { max-width: none; }
.sf-gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--sf-border);
  align-items: center;
}
.sf-gallery-toolbar input[type="search"],
.sf-gallery-toolbar select {
  padding: 10px 12px;
  border: 1px solid var(--sf-border);
  border-radius: 8px;
  font-size: 0.9rem;
  min-width: 140px;
}
.sf-gallery-toolbar input[type="search"] { flex: 1 1 180px; }
.sf-gallery-usage {
  margin: 0;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sf-muted);
  background: #fff;
}
.sf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px;
}
.sf-gal-card {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sf-gal-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
  display: block;
}
.sf-gal-thumb-wrap {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}
.sf-gal-thumb-wrap .sf-gal-thumb {
  border-radius: 0;
}
.sf-gal-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 1;
  background: #b91c1c;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.sf-gal-thumb--pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #b91c1c;
  background: #fef2f2;
}
.sf-gal-card__name {
  font-size: 0.72rem;
  font-weight: 700;
  word-break: break-all;
  line-height: 1.3;
}
.sf-gal-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sf-gal-move {
  font-size: 0.72rem;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--sf-border);
}
.sf-link-btn {
  border: none;
  background: none;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.sf-gallery-empty { grid-column: 1 / -1; text-align: center; padding: 40px 12px; }

/* Cart drawer */
.sf-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.sf-cart-drawer[hidden] { display: none !important; }
.sf-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.sf-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100%);
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  animation: sf-slide-in 0.22s ease;
}
@keyframes sf-slide-in {
  from { transform: translateX(12px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
.sf-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sf-border);
}
.sf-cart-drawer__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sf-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}
.sf-cart-drawer__foot {
  padding: 14px;
  border-top: 1px solid var(--sf-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sf-cart-drawer__total,
.sf-checkout-total,
.sf-cart-page__foot > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  margin-bottom: 4px;
}
.sf-cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e0f2fe;
  align-items: flex-start;
}
.sf-cart-line__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #a5f3fc;
  background: #ecfeff;
  flex-shrink: 0;
}
.sf-cart-line__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 900;
  color: #0e7490;
  letter-spacing: 0.04em;
}
.sf-cart-line__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.sf-cart-line__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.sf-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--sf-border);
  background: #f8fafc;
  cursor: pointer;
  font-weight: 800;
}
.sf-cart-line__price { font-weight: 800; white-space: nowrap; }
.sf-cart-page { background: #fff; border-radius: 12px; padding: 8px 16px; border: 1px solid var(--sf-border); }
.sf-cart-page__foot {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.sf-checkout-card {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  padding: 22px 20px;
}
.sf-checkout-card h2 { margin: 0 0 14px; font-size: 1.05rem; }
.sf-co-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}
.sf-ds-dynamic { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--sf-border); }
.sf-ds-actions { margin-top: 16px; }

/* Modal wider for signup */
.sf-modal__dialog--wide {
  max-width: min(520px, 100%);
  width: 100%;
}
@media (max-width: 640px) {
  .sf-form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sf-modal {
    align-items: flex-start;
    padding: max(8px, env(safe-area-inset-top, 0px)) 10px max(16px, env(safe-area-inset-bottom, 0px));
  }
  .sf-modal__dialog,
  .sf-modal__dialog--wide {
    max-width: 100%;
    width: 100%;
    margin: 4px auto 20px;
    padding: 18px 14px 16px;
    border-radius: 12px;
  }
  .sf-modal__dialog h2 {
    font-size: 1.05rem;
    padding-right: 8px;
  }
  .sf-field {
    margin-bottom: 4px;
  }
  .sf-field input,
  .sf-field textarea,
  .sf-field select {
    font-size: 16px;
    padding: 12px 12px;
  }
  .sf-legal-check .sf-check-label {
    font-size: 0.8rem;
    gap: 8px;
  }
  .sf-legal-check .sf-check-label span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  #sf-create-form .sf-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
  }
}
@media (max-width: 560px) {
  .sf-form-grid { grid-template-columns: 1fr; }
}

/* ��� Coming soon holding page ��� */
html.sfa-cs-html,
html.sfa-cs-html body.sfa-cs-body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100%;
  background: #0b1220;
  font-family: var(--sf-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  color: #e2e8f0;
}
.sf-cs {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sf-cs__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(8, 145, 178, 0.28), transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(14, 165, 233, 0.18), transparent 45%),
    linear-gradient(160deg, #0b1220 0%, #0f2744 45%, #0b1220 100%);
}
.sf-cs__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

/* Decorative float cards � small, edge-only */
.sf-cs__float {
  position: absolute;
  z-index: 1;
  margin: 0;
  width: min(160px, 22vw);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.12);
  opacity: 0.55;
  pointer-events: none;
  transform: rotate(-6deg);
}
.sf-cs__float img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.sf-cs__float--tl { top: 12%; left: 3%; transform: rotate(-8deg); }
.sf-cs__float--tr { top: 18%; right: 4%; transform: rotate(7deg); width: min(140px, 18vw); opacity: 0.4; }
.sf-cs__float--bl { bottom: 10%; left: 6%; transform: rotate(5deg); width: min(150px, 20vw); opacity: 0.45; }
.sf-cs__float--br { bottom: 14%; right: 5%; transform: rotate(-5deg); width: min(170px, 22vw); opacity: 0.5; }
.sf-cs__float--ml { top: 48%; left: 2%; transform: rotate(3deg); width: min(120px, 16vw); opacity: 0.32; }
.sf-cs__float--mr { top: 55%; right: 2%; transform: rotate(-4deg); width: min(130px, 17vw); opacity: 0.35; }

.sf-cs__bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px 20px;
  min-height: 64px;
}
.sf-cs__bar-spacer { flex: 1; }
.sf-cs__logo-hero {
  display: block;
  width: min(420px, 82vw);
  max-height: min(160px, 28vh);
  height: auto;
  object-fit: contain;
  margin: 0 auto 22px;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.4));
}
.sf-cs__brand-text {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.sf-cs__brand-text--hero {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0 0 18px;
  text-align: center;
}
.sf-cs__admin {
  position: relative;
}
.sf-cs__admin-toggle {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s;
}
.sf-cs__admin-toggle:hover,
.sf-cs__admin-toggle.is-open {
  background: rgba(8, 145, 178, 0.35);
  border-color: rgba(103, 232, 249, 0.55);
  color: #fff;
}
.sf-cs__login {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, 92vw);
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
}
.sf-cs__login-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #67e8f9;
}
.sf-cs__field {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}
.sf-cs__field span { display: block; margin-bottom: 4px; }
.sf-cs__field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
  font-size: 0.9rem;
}
.sf-cs__field input:focus {
  outline: 2px solid #0891b2;
  border-color: #0891b2;
}
.sf-cs__submit {
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #0891b2, #0ea5e9);
  color: #fff;
  cursor: pointer;
}
.sf-cs__submit:disabled { opacity: 0.65; cursor: wait; }
.sf-cs__msg {
  margin: 0 0 8px;
  font-size: 0.8rem;
  line-height: 1.35;
  min-height: 0;
}
.sf-cs__msg--err { color: #fca5a5; }
.sf-cs__msg--warn { color: #fcd34d; }

.sf-cs__main {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px 48px;
  max-width: 640px;
  margin: 0 auto;
}
.sf-cs__kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #67e8f9;
}
.sf-cs__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.sf-cs__message {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #cbd5e1;
  font-weight: 500;
  max-width: 36em;
}
.sf-cs__pulse {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}
.sf-cs__pulse span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  opacity: 0.35;
  animation: sf-cs-pulse 1.4s ease-in-out infinite;
}
.sf-cs__pulse span:nth-child(2) { animation-delay: 0.2s; }
.sf-cs__pulse span:nth-child(3) { animation-delay: 0.4s; }
@keyframes sf-cs-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
.sf-cs__foot {
  position: relative;
  z-index: 3;
  padding: 14px 16px 22px;
  text-align: center;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 720px) {
  .sf-cs__float--ml,
  .sf-cs__float--mr,
  .sf-cs__float--tr { display: none; }
  .sf-cs__float { opacity: 0.28; width: min(110px, 28vw); }
  .sf-cs__main { padding-top: 12px; }
}

/* Footer legal + cookie manage */
.sf-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 22px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--sf-muted);
  background: #fff;
  border-top: 1px solid var(--sf-border);
}
.sf-footer__legal a {
  color: var(--sf-muted);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sf-footer__legal a:hover {
  color: var(--sf-accent);
  border-bottom-color: var(--sf-accent-bright);
}
.sf-footer__manage-cookies {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--sf-accent);
  font: inherit;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sf-footer__manage-cookies:hover { color: var(--sf-cta-hover); }

.sf-legal-check .sf-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sf-dark);
  line-height: 1.4;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
}
.sf-legal-check .sf-check-label span {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sf-legal-check input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  flex: 0 0 auto;
}
.sf-legal-check a {
  color: var(--sf-accent);
  font-weight: 800;
}

/* —— Cookie banner (US) —— */
.sf-cookie-banner {
  position: fixed;
  left: max(10px, env(safe-area-inset-left, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  z-index: 100001;
  width: auto;
  max-width: min(720px, calc(100% - 20px));
  margin: 0 auto;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.35);
  padding: 14px 14px;
  box-sizing: border-box;
  animation: sf-cookie-in 0.25s ease;
}
@keyframes sf-cookie-in {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.sf-cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}
.sf-cookie-banner__text { flex: 1 1 100%; min-width: 0; }
.sf-cookie-banner__text strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.sf-cookie-banner__text p { margin: 0; font-size: 0.84rem; color: #cbd5e1; line-height: 1.4; word-wrap: break-word; overflow-wrap: anywhere; }
.sf-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 100%;
  min-width: 0;
}
.sf-cookie-banner .sf-btn {
  font-size: 0.86rem;
  padding: 10px 12px;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
}
.sf-cookie-banner .sf-btn--ghost-dark {
  background: transparent;
  border: 1px solid #475569;
  color: #e2e8f0;
}
.sf-cookie-banner .sf-btn--primary {
  background: #0ea5e9;
  border: 0;
  color: #fff;
}
@media (min-width: 560px) {
  .sf-cookie-banner__text { flex: 1 1 220px; }
  .sf-cookie-banner__actions {
    flex: 0 1 auto;
    align-items: center;
  }
  .sf-cookie-banner .sf-btn { flex: 0 0 auto; white-space: nowrap; }
}

/* —— In-app legal docs —— */
.sf-legal-card { padding: 20px 18px 28px; max-width: 820px; margin: 0 auto; }
.sf-legal-title { margin: 0 0 14px; font-size: 1.35rem; font-weight: 900; }
.sf-legal-body { font-size: 0.95rem; line-height: 1.55; color: #334155; }
.sf-legal-body h1, .sf-legal-body h2, .sf-legal-body h3 { color: #0f172a; margin-top: 1.2em; }
.sf-legal-body h2 { font-size: 1.1rem; font-weight: 800; }
.sf-legal-body h3 { font-size: 1rem; font-weight: 800; }
.sf-legal-body a { color: #0891b2; }
.sf-legal-body ul, .sf-legal-body ol { padding-left: 1.25rem; margin: 0.6em 0; }
.sf-legal-body li { margin: 0.25em 0; }
.sf-legal-body .cmplz-document,
.sf-legal-body #cmplz-document { max-width: 100%; }
.sf-legal-body .cmplz-subtitle { font-weight: 700; color: #0f172a; margin-top: 0.8em; }
.sf-footer__legal a { color: #64748b; text-decoration: underline; cursor: pointer; }
.sf-footer__manage-cookies {
  appearance: none; border: 0; background: none; color: #64748b;
  font: inherit; font-size: 0.82rem; text-decoration: underline; cursor: pointer; margin-top: 6px; padding: 0;
}

/* —— Home polish: greeting above header links, product hover, trust strip —— */
.sf-header-actions--stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
}
.sf-home-greet {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0c4a6e;
  line-height: 1.2;
  white-space: nowrap;
}
.sf-header-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  justify-content: flex-end;
}
.sf-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(8, 45, 75, 0.35);
}
@media (max-width: 720px) {
  .sf-header-actions--stacked {
    align-items: stretch;
    width: 100%;
    text-align: left;
  }
  .sf-header-actions__row { justify-content: flex-start; }
  .sf-home-greet { white-space: normal; }
}
.sf-products__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}
.sf-product-tile {
  position: relative;
  overflow: hidden;
  min-height: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.2s;
  z-index: 1;
}
@media (max-width: 720px) {
  .sf-products {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sf-products__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }
  .sf-product-tile {
    padding: 10px 4px 8px;
    min-width: 0;
  }
  .sf-product-tile__icon {
    width: 40px;
    height: 40px;
    padding: 6px;
    margin-bottom: 8px;
  }
  .sf-product-tile__name {
    font-size: 0.78rem;
    white-space: normal;
    line-height: 1.15;
  }
  .sf-product-tile__blurb { display: none; }
  .sf-hero {
    padding-left: 14px;
    padding-right: 14px;
  }
  .sf-hero__title {
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }
}
.sf-product-tile:hover,
.sf-product-tile:focus-visible {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.22);
  border-color: #67e8f9;
  z-index: 3;
}
.sf-product-tile__hover {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 74, 110, 0.92) 28%, rgba(15, 23, 42, 0.96) 100%);
  color: #f0f9ff;
  transform: translateY(105%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: left;
  pointer-events: none;
}
.sf-product-tile:hover .sf-product-tile__hover,
.sf-product-tile:focus-visible .sf-product-tile__hover {
  transform: translateY(0);
}
.sf-product-tile__summary {
  margin: 0 0 6px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #e0f2fe;
}
.sf-product-tile__mats {
  margin: 0 0 8px;
  padding: 0 0 0 1em;
  font-size: 0.72rem;
  color: #a5f3fc;
  line-height: 1.35;
}
.sf-product-tile__cta {
  font-size: 0.78rem;
  font-weight: 800;
  color: #67e8f9;
}
.sf-home-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  max-width: 1100px;
  margin: 8px auto 28px;
  padding: 0 14px;
  box-sizing: border-box;
}
.sf-home-trust__item {
  background: #fff;
  border: 1px solid #e0f2fe;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.06);
  min-width: 0;
  box-sizing: border-box;
}
.sf-home-trust__item strong {
  display: block;
  color: #0c4a6e;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.sf-home-trust__item span {
  display: block;
  font-size: 0.8rem;
  color: var(--sf-muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (min-width: 720px) {
  .sf-home-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 18px;
  }
}

/* —— Site manager (admin analytics) —— */
.sf-site-mgr { max-width: 1100px; margin: 0 auto; }
.sf-site-mgr__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sf-site-mgr__tools select {
  font: inherit; font-weight: 700; font-size: 0.85rem;
  border: 1px solid var(--sf-border); border-radius: 10px; padding: 8px 10px; background: #fff;
}
.sf-site-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
.sf-site-kpi {
  background: linear-gradient(180deg, #f0f9ff, #fff);
  border: 1px solid #e0f2fe;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.sf-site-kpi__n {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0c4a6e;
  line-height: 1.1;
}
.sf-site-kpi span:last-child {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sf-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sf-site-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sf-site-panel {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  padding: 14px 14px 16px;
  min-width: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.sf-site-panel--wide { grid-column: 1 / -1; }
.sf-site-panel h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 900;
  color: #0f172a;
}
.sf-funnel__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
}
.sf-funnel__label { font-weight: 700; color: #334155; }
.sf-funnel__count { font-weight: 800; color: #0c4a6e; }
.sf-bar {
  grid-column: 1 / -1;
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.sf-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #0284c7);
  border-radius: 999px;
}
.sf-sys-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}
.sf-sys-row span { color: var(--sf-muted); }
.sf-sys-row strong { font-weight: 800; text-align: right; color: #0f172a; }
.sf-sys-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}
.sf-sys-charts .sf-muted { font-size: 0.72rem; font-weight: 700; }
.sf-spark {
  display: block;
  width: 100%;
  height: 40px;
  color: #0891b2;
  background: #f0f9ff;
  border-radius: 8px;
  margin-top: 4px;
}
.sf-spark--empty { height: 40px; background: #f1f5f9; border-radius: 8px; }
.sf-site-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sf-site-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.84rem;
  min-width: 0;
}
.sf-site-list li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.sf-site-list li strong { flex-shrink: 0; color: #0c4a6e; }
.sf-site-table-wrap { overflow-x: auto; max-width: 100%; }
.sf-site-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.sf-site-table th,
.sf-site-table td {
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.sf-site-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sf-muted);
  font-weight: 800;
}
.sf-site-table code {
  font-size: 0.72rem;
  background: #ecfeff;
  color: #0e7490;
  padding: 2px 5px;
  border-radius: 4px;
}
.sf-site-woo { font-size: 0.86rem; margin: 8px 0 0; }
.sf-site-exports {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.sf-site-controls { margin-bottom: 14px; }
.sf-site-settings .sf-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  margin: 0 0 10px;
  cursor: pointer;
}
.sf-site-settings .sf-check input { margin-top: 3px; }
.sf-site-settings__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 8px 0 12px;
}
.sf-site-settings__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sf-site-hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 12px 0;
}
.sf-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}
.sf-loc-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  align-items: start;
}
.sf-loc-map { min-width: 0; }
.sf-world-map {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid #bae6fd;
  background: #e0f2fe;
}
.sf-loc-empty { font-size: 0.82rem; margin: 8px 0 0; }
.sf-loc-side h4 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0c4a6e;
}
@media (max-width: 820px) {
  .sf-site-grid { grid-template-columns: 1fr; }
  .sf-site-panel--wide { grid-column: auto; }
  .sf-site-settings__grid { grid-template-columns: 1fr; }
  .sf-loc-layout { grid-template-columns: 1fr; }
}

/* Admin panels */
.sf-admin-panel { max-width: 920px; margin: 0 auto; }
.sf-admin-list { display: flex; flex-direction: column; gap: 12px; }
.sf-admin-card {
  border: 1px solid #e0f2fe;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.sf-admin-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.sf-admin-card__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.sf-admin-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #a5f3fc;
  background: #ecfeff;
}
.sf-admin-thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 900;
  color: #0e7490;
}
.sf-admin-card__total { font-weight: 900; color: #0c4a6e; margin: 6px 0 10px; }
.sf-admin-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sf-btn--sm { padding: 8px 12px !important; font-size: 0.82rem !important; }
.sf-admin-gallery {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed #7dd3fc;
  background: #ecfeff;
}
.sf-admin-gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.sf-admin-gal-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #0e7490;
  font-size: 0.75rem;
  font-weight: 700;
}
.sf-admin-gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Shared dark theme (data-sc-theme / data-sfa-theme) ========== */
html[data-sc-theme="dark"],
html[data-sfa-theme="dark"] {
  --sf-accent: #38bdf8;
  --sf-accent-bright: #7dd3fc;
  --sf-cta: #0ea5e9;
  --sf-cta-hover: #38bdf8;
  --sf-dark: #e8eef6;
  --sf-muted: #9aa8bc;
  --sf-border: #364557;
  --sf-bg: #1a2332;
  --sf-card: #222c3d;
  --sf-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
html[data-sc-theme="dark"],
html[data-sc-theme="dark"] body,
html[data-sfa-theme="dark"],
html[data-sfa-theme="dark"] body {
  background: #1a2332 !important;
  color: #e8eef6;
}
html[data-sc-theme="dark"] body.sf-route-splash,
html[data-sfa-theme="dark"] body.sf-route-splash {
  background: #0b1220 !important;
}
html[data-sc-theme="dark"] .sf-footer,
html[data-sfa-theme="dark"] .sf-footer {
  background: #1e2838;
  border-top-color: #364557;
  color: #9aa8bc;
}
html[data-sc-theme="dark"] .sf-footer__legal a,
html[data-sfa-theme="dark"] .sf-footer__legal a {
  color: #9aa8bc;
}
html[data-sc-theme="dark"] .sf-footer__legal a:hover,
html[data-sfa-theme="dark"] .sf-footer__legal a:hover {
  color: #7dd3fc;
}
.sf-footer__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
}
.sf-footer__theme {
  appearance: none;
  border: 1px solid var(--sf-border);
  background: var(--sf-card);
  color: var(--sf-dark);
  font: inherit;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
}
.sf-footer__theme:hover {
  border-color: var(--sf-accent);
  color: var(--sf-accent);
}
html[data-sc-theme="dark"] .sf-footer__theme,
html[data-sfa-theme="dark"] .sf-footer__theme {
  background: #243041;
  border-color: #46566c;
  color: #e2e8f0;
}
html[data-sc-theme="dark"] .sf-footer__theme:hover,
html[data-sfa-theme="dark"] .sf-footer__theme:hover {
  border-color: #38bdf8;
  color: #7dd3fc;
}
html[data-sc-theme="dark"] .sf-footer__manage-cookies,
html[data-sfa-theme="dark"] .sf-footer__manage-cookies {
  color: #7dd3fc;
}
html[data-sc-theme="dark"] .sf-topbar,
html[data-sfa-theme="dark"] .sf-topbar {
  background: #222c3d;
  border-bottom-color: #364557;
  color: #e8eef6;
}
html[data-sc-theme="dark"] .sf-topbar__title,
html[data-sfa-theme="dark"] .sf-topbar__title {
  color: #e8eef6;
}
html[data-sc-theme="dark"] .sf-icon-btn,
html[data-sc-theme="dark"] .sf-text-btn,
html[data-sfa-theme="dark"] .sf-icon-btn,
html[data-sfa-theme="dark"] .sf-text-btn {
  color: #c5d0de;
}
html[data-sc-theme="dark"] .sf-icon-btn:hover,
html[data-sc-theme="dark"] .sf-text-btn:hover,
html[data-sfa-theme="dark"] .sf-icon-btn:hover,
html[data-sfa-theme="dark"] .sf-text-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}
html[data-sc-theme="dark"] .sf-header,
html[data-sfa-theme="dark"] .sf-header {
  background: #222c3d;
  border-bottom-color: #364557;
  color: #e8eef6;
}
html[data-sc-theme="dark"] .sf-product-tile,
html[data-sc-theme="dark"] .sf-mat-card__media,
html[data-sc-theme="dark"] .sf-featured,
html[data-sc-theme="dark"] .sf-home-panel,
html[data-sc-theme="dark"] .sf-empty-card,
html[data-sc-theme="dark"] .sf-card,
html[data-sfa-theme="dark"] .sf-product-tile,
html[data-sfa-theme="dark"] .sf-home-panel,
html[data-sfa-theme="dark"] .sf-empty-card,
html[data-sfa-theme="dark"] .sf-card {
  background: #222c3d;
  border-color: #364557;
  color: #e8eef6;
}
html[data-sc-theme="dark"] .sf-product-tile__name,
html[data-sc-theme="dark"] .sf-products__title,
html[data-sc-theme="dark"] .sf-home-panel h3,
html[data-sfa-theme="dark"] .sf-product-tile__name,
html[data-sfa-theme="dark"] .sf-products__title {
  color: #f1f5f9;
}
html[data-sc-theme="dark"] .sf-product-tile__blurb,
html[data-sc-theme="dark"] .sf-products__sub,
html[data-sc-theme="dark"] .sf-muted,
html[data-sfa-theme="dark"] .sf-product-tile__blurb,
html[data-sfa-theme="dark"] .sf-products__sub,
html[data-sfa-theme="dark"] .sf-muted {
  color: #9aa8bc;
}
html[data-sc-theme="dark"] .sf-modal__dialog,
html[data-sfa-theme="dark"] .sf-modal__dialog {
  background: #222c3d;
  color: #e8eef6;
  border: 1px solid #364557;
}
html[data-sc-theme="dark"] .sf-modal__close,
html[data-sfa-theme="dark"] .sf-modal__close {
  background: #2a3648;
  color: #cbd5e1;
}
html[data-sc-theme="dark"] .sf-mat-lead,
html[data-sfa-theme="dark"] .sf-mat-lead {
  color: #9aa8bc;
}
html[data-sc-theme="dark"] .sf-mat-detail__panel,
html[data-sfa-theme="dark"] .sf-mat-detail__panel {
  background: #222c3d;
  color: #e8eef6;
}
html[data-sc-theme="dark"] .sf-mat-detail__desc,
html[data-sfa-theme="dark"] .sf-mat-detail__desc {
  color: #b0bccd;
}
html[data-sc-theme="dark"] .sf-mat-detail__meta,
html[data-sfa-theme="dark"] .sf-mat-detail__meta {
  background: #1e2838;
  border-color: #364557;
}
html[data-sc-theme="dark"] .sf-mat-detail__col h4,
html[data-sfa-theme="dark"] .sf-mat-detail__col h4 {
  color: #9aa8bc;
}
html[data-sc-theme="dark"] .sf-mat-detail__col ul,
html[data-sfa-theme="dark"] .sf-mat-detail__col ul {
  color: #d0d9e6;
}
html[data-sc-theme="dark"] .sf-chip-btn--outline,
html[data-sfa-theme="dark"] .sf-chip-btn--outline {
  background: #1e2838;
  border-color: #46566c;
  color: #e2e8f0;
}
html[data-sc-theme="dark"] .sf-btn,
html[data-sfa-theme="dark"] .sf-btn {
  color: inherit;
}
html[data-sc-theme="dark"] .sf-btn--ghost,
html[data-sfa-theme="dark"] .sf-btn--ghost {
  border-color: #46566c;
  color: #c5d0de;
  background: transparent;
}
html[data-sc-theme="dark"] .sf-page,
html[data-sfa-theme="dark"] .sf-page {
  background: #1a2332;
  color: #e8eef6;
}
html[data-sc-theme="dark"] .sf-acc-tabs,
html[data-sfa-theme="dark"] .sf-acc-tabs {
  background: #222c3d;
  border-color: #364557;
}
html[data-sc-theme="dark"] .sf-acc-tab,
html[data-sfa-theme="dark"] .sf-acc-tab {
  color: #9aa8bc;
}
html[data-sc-theme="dark"] .sf-acc-tab.is-active,
html[data-sfa-theme="dark"] .sf-acc-tab.is-active {
  color: #7dd3fc;
  border-color: #38bdf8;
}
html[data-sc-theme="dark"] input,
html[data-sc-theme="dark"] select,
html[data-sc-theme="dark"] textarea,
html[data-sfa-theme="dark"] input,
html[data-sfa-theme="dark"] select,
html[data-sfa-theme="dark"] textarea {
  background: #1e2838;
  border-color: #3d4b5f;
  color: #e8eef6;
}
html[data-sc-theme="dark"] .sf-home-trust,
html[data-sfa-theme="dark"] .sf-home-trust {
  background: #1e2838;
  border-color: #364557;
}
html[data-sc-theme="dark"] .sf-home-trust__item strong,
html[data-sfa-theme="dark"] .sf-home-trust__item strong {
  color: #f1f5f9;
}
html[data-sc-theme="dark"] .sf-home-trust__item span,
html[data-sfa-theme="dark"] .sf-home-trust__item span {
  color: #9aa8bc;
}
html[data-sc-theme="dark"] .sf-cart-drawer,
html[data-sfa-theme="dark"] .sf-cart-drawer {
  background: #222c3d;
  color: #e8eef6;
  border-color: #364557;
}
html[data-sc-theme="dark"] .sf-cart-drawer__foot,
html[data-sfa-theme="dark"] .sf-cart-drawer__foot {
  background: #1e2838;
  border-color: #364557;
}

/* ========== Dark theme — gallery / account / cart / checkout (hardcoded whites) ========== */
html[data-sc-theme="dark"] .sf-footer__tools,
html[data-sfa-theme="dark"] .sf-footer__tools {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
html[data-sc-theme="dark"] .sf-footer__theme,
html[data-sfa-theme="dark"] .sf-footer__theme,
.sf-footer__theme {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  border: 2px solid var(--sf-accent, #0ea5e9) !important;
  background: var(--sf-card, #fff) !important;
  color: var(--sf-dark, #0f172a) !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.02em;
  text-transform: none !important;
  cursor: pointer !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}
html[data-sc-theme="dark"] .sf-footer__theme,
html[data-sfa-theme="dark"] .sf-footer__theme {
  background: #243041 !important;
  border-color: #38bdf8 !important;
  color: #e8eef6 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
html[data-sc-theme="dark"] .sf-footer__theme strong,
html[data-sfa-theme="dark"] .sf-footer__theme strong,
.sf-footer__theme strong {
  color: var(--sf-accent, #0ea5e9);
  font-weight: 900;
}
html[data-sc-theme="dark"] .sf-footer__theme strong,
html[data-sfa-theme="dark"] .sf-footer__theme strong {
  color: #7dd3fc;
}

/* Gallery */
html[data-sc-theme="dark"] .sf-gallery-toolbar,
html[data-sc-theme="dark"] .sf-gallery-usage,
html[data-sfa-theme="dark"] .sf-gallery-toolbar,
html[data-sfa-theme="dark"] .sf-gallery-usage {
  background: #222c3d !important;
  border-color: #364557 !important;
  color: #e2e8f0;
}
html[data-sc-theme="dark"] .sf-gallery-toolbar input,
html[data-sc-theme="dark"] .sf-gallery-toolbar select,
html[data-sfa-theme="dark"] .sf-gallery-toolbar input,
html[data-sfa-theme="dark"] .sf-gallery-toolbar select {
  background: #1a2332 !important;
  border-color: #3d4b5f !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-gal-card,
html[data-sfa-theme="dark"] .sf-gal-card {
  background: #222c3d !important;
  border-color: #364557 !important;
  color: #e8eef6;
}
html[data-sc-theme="dark"] .sf-gal-thumb,
html[data-sc-theme="dark"] .sf-gal-thumb-wrap,
html[data-sfa-theme="dark"] .sf-gal-thumb,
html[data-sfa-theme="dark"] .sf-gal-thumb-wrap {
  background: #1e2838 !important;
}
html[data-sc-theme="dark"] .sf-gal-card__name,
html[data-sfa-theme="dark"] .sf-gal-card__name {
  color: #e2e8f0;
}
html[data-sc-theme="dark"] .sf-gal-move,
html[data-sfa-theme="dark"] .sf-gal-move {
  background: #1e2838 !important;
  border-color: #46566c !important;
  color: #e2e8f0 !important;
}
html[data-sc-theme="dark"] .sf-empty-card,
html[data-sfa-theme="dark"] .sf-empty-card {
  background: #222c3d !important;
  border-color: #364557 !important;
  color: #e8eef6;
}
html[data-sc-theme="dark"] .sf-empty-card h2,
html[data-sfa-theme="dark"] .sf-empty-card h2 {
  color: #f1f5f9;
}

/* Account */
html[data-sc-theme="dark"] .sf-acc-tabs,
html[data-sfa-theme="dark"] .sf-acc-tabs {
  background: #222c3d !important;
  border-bottom-color: #364557 !important;
}
html[data-sc-theme="dark"] .sf-acc-tab,
html[data-sfa-theme="dark"] .sf-acc-tab {
  color: #9aa8bc !important;
  background: transparent !important;
}
html[data-sc-theme="dark"] .sf-acc-tab.is-active,
html[data-sfa-theme="dark"] .sf-acc-tab.is-active {
  color: #7dd3fc !important;
  border-bottom-color: #38bdf8 !important;
}
html[data-sc-theme="dark"] .sf-acc-heading,
html[data-sfa-theme="dark"] .sf-acc-heading {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-acc-stat,
html[data-sfa-theme="dark"] .sf-acc-stat {
  background: #1e2838 !important;
  border-color: #364557 !important;
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-acc-stat__n,
html[data-sfa-theme="dark"] .sf-acc-stat__n {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-chip-btn,
html[data-sfa-theme="dark"] .sf-chip-btn {
  background: #1e2838 !important;
  border-color: #46566c !important;
  color: #e2e8f0 !important;
}
html[data-sc-theme="dark"] .sf-chip-btn.is-active,
html[data-sc-theme="dark"] .sf-chip-btn.is-selected,
html[data-sfa-theme="dark"] .sf-chip-btn.is-active {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: #38bdf8 !important;
  color: #bae6fd !important;
}
html[data-sc-theme="dark"] .sf-field label,
html[data-sfa-theme="dark"] .sf-field label {
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-field input,
html[data-sc-theme="dark"] .sf-field select,
html[data-sc-theme="dark"] .sf-field textarea,
html[data-sc-theme="dark"] .sf-page__body input,
html[data-sc-theme="dark"] .sf-page__body select,
html[data-sc-theme="dark"] .sf-page__body textarea,
html[data-sfa-theme="dark"] .sf-field input,
html[data-sfa-theme="dark"] .sf-field select,
html[data-sfa-theme="dark"] .sf-field textarea,
html[data-sfa-theme="dark"] .sf-page__body input,
html[data-sfa-theme="dark"] .sf-page__body select,
html[data-sfa-theme="dark"] .sf-page__body textarea {
  background: #1a2332 !important;
  border: 1px solid #3d4b5f !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-page__body,
html[data-sfa-theme="dark"] .sf-page__body {
  color: #e2e8f0;
}
html[data-sc-theme="dark"] table,
html[data-sc-theme="dark"] .sf-orders-table,
html[data-sc-theme="dark"] .sf-table,
html[data-sfa-theme="dark"] table {
  color: #e2e8f0;
}
html[data-sc-theme="dark"] th,
html[data-sc-theme="dark"] td,
html[data-sfa-theme="dark"] th,
html[data-sfa-theme="dark"] td {
  border-color: #364557 !important;
  color: #d0d9e6;
}
html[data-sc-theme="dark"] tr:nth-child(even),
html[data-sfa-theme="dark"] tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

/* Cart drawer + cart page */
html[data-sc-theme="dark"] .sf-cart-drawer__panel,
html[data-sfa-theme="dark"] .sf-cart-drawer__panel {
  background: #222c3d !important;
  color: #e8eef6 !important;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5) !important;
  border-left: 1px solid #364557;
}
html[data-sc-theme="dark"] .sf-cart-drawer__head,
html[data-sc-theme="dark"] .sf-cart-drawer__foot,
html[data-sfa-theme="dark"] .sf-cart-drawer__head,
html[data-sfa-theme="dark"] .sf-cart-drawer__foot {
  background: #1e2838 !important;
  border-color: #364557 !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-cart-drawer__head h2,
html[data-sfa-theme="dark"] .sf-cart-drawer__head h2 {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-cart-drawer__body,
html[data-sfa-theme="dark"] .sf-cart-drawer__body {
  background: #222c3d !important;
  color: #e2e8f0;
}
html[data-sc-theme="dark"] .sf-cart-line,
html[data-sfa-theme="dark"] .sf-cart-line {
  border-bottom-color: #364557 !important;
}
html[data-sc-theme="dark"] .sf-cart-line__thumb,
html[data-sfa-theme="dark"] .sf-cart-line__thumb {
  background: #1a2332 !important;
  border-color: #3d4b5f !important;
}
html[data-sc-theme="dark"] .sf-cart-line__thumb--empty,
html[data-sfa-theme="dark"] .sf-cart-line__thumb--empty {
  color: #7dd3fc !important;
}
html[data-sc-theme="dark"] .sf-qty-btn,
html[data-sfa-theme="dark"] .sf-qty-btn {
  background: #1e2838 !important;
  border-color: #46566c !important;
  color: #e2e8f0 !important;
}
html[data-sc-theme="dark"] .sf-cart-drawer__total,
html[data-sc-theme="dark"] .sf-checkout-total,
html[data-sfa-theme="dark"] .sf-cart-drawer__total,
html[data-sfa-theme="dark"] .sf-checkout-total {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-page--cart .sf-page__body,
html[data-sc-theme="dark"] .sf-cart-page,
html[data-sfa-theme="dark"] .sf-page--cart .sf-page__body {
  background: #1a2332;
  color: #e8eef6;
}

/* Checkout */
html[data-sc-theme="dark"] .sf-page--checkout,
html[data-sc-theme="dark"] .sf-checkout-native,
html[data-sfa-theme="dark"] .sf-page--checkout,
html[data-sfa-theme="dark"] .sf-checkout-native {
  background: #1a2332 !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-checkout-hero,
html[data-sc-theme="dark"] .sf-checkout-cart,
html[data-sc-theme="dark"] .sf-checkout-layout > *,
html[data-sc-theme="dark"] .sf-co-card,
html[data-sc-theme="dark"] .sf-checkout-native .sf-card,
html[data-sfa-theme="dark"] .sf-checkout-hero,
html[data-sfa-theme="dark"] .sf-checkout-cart {
  background: #222c3d !important;
  border-color: #364557 !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-checkout-hero h2,
html[data-sc-theme="dark"] .sf-checkout-cart h2,
html[data-sfa-theme="dark"] .sf-checkout-hero h2,
html[data-sfa-theme="dark"] .sf-checkout-cart h2 {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-checkout-hero > p,
html[data-sfa-theme="dark"] .sf-checkout-hero > p {
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-checkout-native input,
html[data-sc-theme="dark"] .sf-checkout-native select,
html[data-sc-theme="dark"] .sf-checkout-native textarea,
html[data-sc-theme="dark"] .sf-co-field input,
html[data-sc-theme="dark"] .sf-co-field select,
html[data-sfa-theme="dark"] .sf-checkout-native input,
html[data-sfa-theme="dark"] .sf-checkout-native select,
html[data-sfa-theme="dark"] .sf-checkout-native textarea {
  background: #1a2332 !important;
  border-color: #3d4b5f !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-checkout-native label,
html[data-sfa-theme="dark"] .sf-checkout-native label {
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-btn--primary,
html[data-sfa-theme="dark"] .sf-btn--primary {
  color: #fff !important;
}
html[data-sc-theme="dark"] .sf-btn--ghost,
html[data-sfa-theme="dark"] .sf-btn--ghost {
  background: transparent !important;
  border-color: #46566c !important;
  color: #d0d9e6 !important;
}
html[data-sc-theme="dark"] .sf-topbar,
html[data-sfa-theme="dark"] .sf-topbar {
  background: #222c3d !important;
  border-bottom: 1px solid #364557 !important;
}
html[data-sc-theme="dark"] .sf-header,
html[data-sc-theme="dark"] .sf-header--home,
html[data-sfa-theme="dark"] .sf-header {
  background: #222c3d !important;
  border-color: #364557 !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-shell--home,
html[data-sfa-theme="dark"] .sf-shell--home {
  background: #1a2332 !important;
}
html[data-sc-theme="dark"] .sf-product-tile,
html[data-sfa-theme="dark"] .sf-product-tile {
  background: #222c3d !important;
  border-color: #364557 !important;
}
html[data-sc-theme="dark"] .sf-product-tile__name,
html[data-sfa-theme="dark"] .sf-product-tile__name {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-product-tile__blurb,
html[data-sfa-theme="dark"] .sf-product-tile__blurb {
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-home-panel,
html[data-sfa-theme="dark"] .sf-home-panel {
  background: #222c3d !important;
  border-color: #364557 !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-home-panel h3,
html[data-sfa-theme="dark"] .sf-home-panel h3 {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-home-panel p,
html[data-sfa-theme="dark"] .sf-home-panel p {
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-modal__dialog,
html[data-sfa-theme="dark"] .sf-modal__dialog {
  background: #222c3d !important;
  color: #e8eef6 !important;
  border: 1px solid #364557 !important;
}
html[data-sc-theme="dark"] .sf-modal__dialog h2,
html[data-sfa-theme="dark"] .sf-modal__dialog h2 {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-mat-detail__panel,
html[data-sfa-theme="dark"] .sf-mat-detail__panel {
  background: #222c3d !important;
}
html[data-sc-theme="dark"] .sf-mat-detail__meta,
html[data-sfa-theme="dark"] .sf-mat-detail__meta {
  background: #1e2838 !important;
  border-color: #364557 !important;
}

/* Floating left theme FAB fully removed — theme lives in header nav only */
.sf-theme-fab,
#sf-theme-fab,
.sf-theme-fab__txt,
.sf-header__theme-wrap,
.sf-footer__theme,
button.sf-theme-fab {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* ========== Deep dark overrides: account / admin / fields / cards ========== */
html[data-sc-theme="dark"] .sf-card,
html[data-sc-theme="dark"] .sf-empty-card,
html[data-sc-theme="dark"] .sf-co-card,
html[data-sc-theme="dark"] .sf-admin-card,
html[data-sc-theme="dark"] .sf-admin-panel,
html[data-sc-theme="dark"] .sf-page__body > .sf-card,
html[data-sfa-theme="dark"] .sf-card,
html[data-sfa-theme="dark"] .sf-empty-card,
html[data-sfa-theme="dark"] .sf-co-card,
html[data-sfa-theme="dark"] .sf-admin-card,
body.sfa-theme-dark .sf-card,
body.sfa-theme-dark .sf-empty-card,
body.sfa-theme-dark .sf-co-card,
body.sfa-theme-dark .sf-admin-card {
  background: #222c3d !important;
  border-color: #364557 !important;
  color: #e8eef6 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28) !important;
}
html[data-sc-theme="dark"] .sf-card h2,
html[data-sc-theme="dark"] .sf-card h3,
html[data-sc-theme="dark"] .sf-acc-heading,
html[data-sc-theme="dark"] .sf-co-panel__title,
html[data-sc-theme="dark"] .sf-admin-card__total,
html[data-sfa-theme="dark"] .sf-card h2,
body.sfa-theme-dark .sf-card h2,
body.sfa-theme-dark .sf-acc-heading,
body.sfa-theme-dark .sf-co-panel__title {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-co-panel__lead,
html[data-sfa-theme="dark"] .sf-co-panel__lead,
body.sfa-theme-dark .sf-co-panel__lead {
  color: #9aa8bc !important;
}

/* Form controls everywhere in app */
html[data-sc-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html[data-sc-theme="dark"] select,
html[data-sc-theme="dark"] textarea,
html[data-sfa-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html[data-sfa-theme="dark"] select,
html[data-sfa-theme="dark"] textarea,
body.sfa-theme-dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
body.sfa-theme-dark select,
body.sfa-theme-dark textarea {
  background: #1a2332 !important;
  border: 1px solid #3d4b5f !important;
  color: #e8eef6 !important;
  box-shadow: none !important;
}
html[data-sc-theme="dark"] input::placeholder,
html[data-sc-theme="dark"] textarea::placeholder,
html[data-sfa-theme="dark"] input::placeholder,
body.sfa-theme-dark input::placeholder {
  color: #6b7c93 !important;
}
html[data-sc-theme="dark"] label,
html[data-sfa-theme="dark"] label,
body.sfa-theme-dark label {
  color: #9aa8bc !important;
}

/* Buttons that were pure white */
html[data-sc-theme="dark"] .sf-btn:not(.sf-btn--primary):not(.sf-btn--green):not(.sf-btn--order),
html[data-sc-theme="dark"] .sf-chip-btn:not(.sf-chip-btn--order),
html[data-sc-theme="dark"] .sf-text-btn,
html[data-sc-theme="dark"] button.sf-btn--ghost,
html[data-sfa-theme="dark"] .sf-btn:not(.sf-btn--primary):not(.sf-btn--green):not(.sf-btn--order),
html[data-sfa-theme="dark"] .sf-chip-btn:not(.sf-chip-btn--order),
body.sfa-theme-dark .sf-btn:not(.sf-btn--primary):not(.sf-btn--green):not(.sf-btn--order),
body.sfa-theme-dark .sf-chip-btn:not(.sf-chip-btn--order) {
  background: #243041 !important;
  border-color: #46566c !important;
  color: #e2e8f0 !important;
}
html[data-sc-theme="dark"] .sf-btn--primary,
html[data-sc-theme="dark"] .sf-btn--green,
html[data-sc-theme="dark"] .sf-chip-btn--order,
body.sfa-theme-dark .sf-btn--primary {
  color: #fff !important;
}

/* Account admin panels */
html[data-sc-theme="dark"] .sf-admin-card,
html[data-sc-theme="dark"] .sf-admin-gal-item,
html[data-sc-theme="dark"] .sf-admin-panel,
html[data-sfa-theme="dark"] .sf-admin-card,
body.sfa-theme-dark .sf-admin-card {
  background: #1e2838 !important;
  border: 1px solid #364557 !important;
  color: #e2e8f0 !important;
}
html[data-sc-theme="dark"] .sf-admin-thumb,
html[data-sc-theme="dark"] .sf-admin-thumb--empty,
body.sfa-theme-dark .sf-admin-thumb {
  background: #2a3648 !important;
  border-color: #3d4b5f !important;
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-admin-card__total,
body.sfa-theme-dark .sf-admin-card__total {
  color: #7dd3fc !important;
}
html[data-sc-theme="dark"] .sf-acc-stat,
body.sfa-theme-dark .sf-acc-stat {
  background: #1e2838 !important;
  border-color: #364557 !important;
}
html[data-sc-theme="dark"] .sf-acc-tabs,
body.sfa-theme-dark .sf-acc-tabs {
  background: #1e2838 !important;
  border-bottom-color: #364557 !important;
}
html[data-sc-theme="dark"] .sf-page,
html[data-sc-theme="dark"] .sf-page__body,
html[data-sc-theme="dark"] .sf-shell,
body.sfa-theme-dark .sf-page,
body.sfa-theme-dark .sf-page__body {
  background: #1a2332 !important;
  color: #e8eef6 !important;
}

/* Checkout (in-app native) */
html[data-sc-theme="dark"] .sf-page--checkout,
html[data-sc-theme="dark"] .sf-checkout-native,
body.sfa-theme-dark .sf-page--checkout,
body.sfa-theme-dark .sf-checkout-native {
  background: #1a2332 !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-checkout-hero h2,
body.sfa-theme-dark .sf-checkout-hero h2 {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-checkout-hero > p,
body.sfa-theme-dark .sf-checkout-hero > p {
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-co-step,
body.sfa-theme-dark .sf-co-step {
  background: #222c3d !important;
  border-color: #3d4b5f !important;
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-co-step__n,
body.sfa-theme-dark .sf-co-step__n {
  background: #2a3648 !important;
  color: #cbd5e1 !important;
}
html[data-sc-theme="dark"] .sf-co-step.is-active,
body.sfa-theme-dark .sf-co-step.is-active {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: #38bdf8 !important;
  color: #7dd3fc !important;
}
html[data-sc-theme="dark"] .sf-checkout-cart,
html[data-sc-theme="dark"] .sf-co-card,
body.sfa-theme-dark .sf-checkout-cart,
body.sfa-theme-dark .sf-co-card {
  background: #222c3d !important;
  border-color: #364557 !important;
  color: #e8eef6 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3) !important;
}
html[data-sc-theme="dark"] .sf-co-line,
html[data-sc-theme="dark"] .sf-co-nav,
body.sfa-theme-dark .sf-co-line,
body.sfa-theme-dark .sf-co-nav {
  border-color: #364557 !important;
}
html[data-sc-theme="dark"] .sf-co-step__join,
body.sfa-theme-dark .sf-co-step__join {
  background: #3d4b5f !important;
}
html[data-sc-theme="dark"] .sf-footer,
body.sfa-theme-dark .sf-footer {
  background: #1e2838 !important;
  border-top-color: #364557 !important;
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-cart-page,
body.sfa-theme-dark .sf-cart-page {
  background: #222c3d !important;
  border-color: #364557 !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-topbar,
body.sfa-theme-dark .sf-topbar {
  background: #222c3d !important;
  border-bottom: 1px solid #364557 !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-topbar__title,
body.sfa-theme-dark .sf-topbar__title {
  color: #f1f5f9 !important;
}

/* ============================================================
   FULL DARK THEME SWEEP — account, home trust, DS, contact, admin
   Uses html[data-sc-theme=dark], html[data-sfa-theme=dark], body.sfa-theme-dark
   ============================================================ */

/* —— Home trust / propaganda banners (bottom cards) —— */
html[data-sc-theme="dark"] .sf-home-trust__item,
html[data-sfa-theme="dark"] .sf-home-trust__item,
body.sfa-theme-dark .sf-home-trust__item {
  background: #222c3d !important;
  border-color: #364557 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}
html[data-sc-theme="dark"] .sf-home-trust__item strong,
html[data-sfa-theme="dark"] .sf-home-trust__item strong,
body.sfa-theme-dark .sf-home-trust__item strong {
  color: #7dd3fc !important;
}
html[data-sc-theme="dark"] .sf-home-trust__item span,
html[data-sfa-theme="dark"] .sf-home-trust__item span,
body.sfa-theme-dark .sf-home-trust__item span {
  color: #9aa8bc !important;
}

/* —— Shared white form cards (Contact, We Design, account forms) —— */
html[data-sc-theme="dark"] .sf-card-form,
html[data-sc-theme="dark"] .sf-checkout-card,
html[data-sc-theme="dark"] .sf-legal-card,
html[data-sc-theme="dark"] .sf-manage-card,
html[data-sfa-theme="dark"] .sf-card-form,
html[data-sfa-theme="dark"] .sf-checkout-card,
html[data-sfa-theme="dark"] .sf-legal-card,
html[data-sfa-theme="dark"] .sf-manage-card,
body.sfa-theme-dark .sf-card-form,
body.sfa-theme-dark .sf-checkout-card,
body.sfa-theme-dark .sf-legal-card,
body.sfa-theme-dark .sf-manage-card {
  background: #222c3d !important;
  border: 1px solid #364557 !important;
  color: #e8eef6 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3) !important;
}
html[data-sc-theme="dark"] .sf-lead,
html[data-sc-theme="dark"] .sf-hint,
html[data-sc-theme="dark"] .sf-prefill,
html[data-sc-theme="dark"] .sf-section-title,
html[data-sfa-theme="dark"] .sf-lead,
html[data-sfa-theme="dark"] .sf-hint,
body.sfa-theme-dark .sf-lead,
body.sfa-theme-dark .sf-hint,
body.sfa-theme-dark .sf-prefill,
body.sfa-theme-dark .sf-section-title {
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-section-title,
html[data-sfa-theme="dark"] .sf-section-title,
body.sfa-theme-dark .sf-section-title {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-prefill strong,
html[data-sfa-theme="dark"] .sf-prefill strong,
body.sfa-theme-dark .sf-prefill strong {
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-soft-chip,
html[data-sfa-theme="dark"] .sf-soft-chip,
body.sfa-theme-dark .sf-soft-chip {
  background: #1e2838 !important;
  border: 1px solid #3d4b5f !important;
  color: #d0d9e6 !important;
}
html[data-sc-theme="dark"] .sf-ds-dynamic,
html[data-sfa-theme="dark"] .sf-ds-dynamic,
body.sfa-theme-dark .sf-ds-dynamic {
  border-top-color: #3d4b5f !important;
  color: #e2e8f0 !important;
}
html[data-sc-theme="dark"] .sf-ds-dynamic p,
html[data-sc-theme="dark"] .sf-ds-dynamic strong,
html[data-sfa-theme="dark"] .sf-ds-dynamic p,
body.sfa-theme-dark .sf-ds-dynamic p {
  color: #d0d9e6 !important;
}
html[data-sc-theme="dark"] .sf-ds-dynamic strong,
body.sfa-theme-dark .sf-ds-dynamic strong {
  color: #f1f5f9 !important;
}

/* —— Account: overview stats, orders, manage —— */
html[data-sc-theme="dark"] .sf-acc-stat,
html[data-sfa-theme="dark"] .sf-acc-stat,
body.sfa-theme-dark .sf-acc-stat {
  background: #1e2838 !important;
  border: 1px solid #364557 !important;
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-acc-stat__n,
html[data-sfa-theme="dark"] .sf-acc-stat__n,
body.sfa-theme-dark .sf-acc-stat__n {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-acc-heading,
html[data-sfa-theme="dark"] .sf-acc-heading,
body.sfa-theme-dark .sf-acc-heading {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-acc-tabs,
html[data-sfa-theme="dark"] .sf-acc-tabs,
body.sfa-theme-dark .sf-acc-tabs {
  background: #1e2838 !important;
  border-bottom: 1px solid #364557 !important;
}
html[data-sc-theme="dark"] .sf-acc-tab,
html[data-sfa-theme="dark"] .sf-acc-tab,
body.sfa-theme-dark .sf-acc-tab {
  color: #9aa8bc !important;
  background: transparent !important;
}
html[data-sc-theme="dark"] .sf-acc-tab.is-active,
html[data-sfa-theme="dark"] .sf-acc-tab.is-active,
body.sfa-theme-dark .sf-acc-tab.is-active {
  color: #7dd3fc !important;
  border-bottom-color: #38bdf8 !important;
}
html[data-sc-theme="dark"] .sf-order-card,
html[data-sfa-theme="dark"] .sf-order-card,
body.sfa-theme-dark .sf-order-card {
  background: #1e2838 !important;
  border-color: #364557 !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-order-card__items,
html[data-sfa-theme="dark"] .sf-order-card__items,
body.sfa-theme-dark .sf-order-card__items {
  color: #d0d9e6 !important;
}
html[data-sc-theme="dark"] .sf-order-card__meta,
html[data-sfa-theme="dark"] .sf-order-card__meta,
body.sfa-theme-dark .sf-order-card__meta {
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-order-status,
html[data-sfa-theme="dark"] .sf-order-status,
body.sfa-theme-dark .sf-order-status {
  background: #2a3648 !important;
  color: #cbd5e1 !important;
}
html[data-sc-theme="dark"] .sf-order-status--processing,
html[data-sc-theme="dark"] .sf-order-status--pending,
html[data-sc-theme="dark"] .sf-order-status--on-hold,
body.sfa-theme-dark .sf-order-status--processing {
  background: rgba(251, 146, 60, 0.2) !important;
  color: #fdba74 !important;
}
html[data-sc-theme="dark"] .sf-order-status--completed,
body.sfa-theme-dark .sf-order-status--completed {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #7dd3fc !important;
}
html[data-sc-theme="dark"] .sf-manage-card__text,
html[data-sfa-theme="dark"] .sf-manage-card__text,
body.sfa-theme-dark .sf-manage-card__text {
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-danger-zone,
html[data-sfa-theme="dark"] .sf-danger-zone,
body.sfa-theme-dark .sf-danger-zone {
  background: rgba(127, 29, 29, 0.35) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
}
html[data-sc-theme="dark"] .sf-danger-zone__title,
html[data-sfa-theme="dark"] .sf-danger-zone__title,
body.sfa-theme-dark .sf-danger-zone__title {
  color: #fca5a5 !important;
}
html[data-sc-theme="dark"] .sf-danger-zone__form,
html[data-sfa-theme="dark"] .sf-danger-zone__form,
body.sfa-theme-dark .sf-danger-zone__form {
  border-top-color: rgba(248, 113, 113, 0.35) !important;
}
html[data-sc-theme="dark"] .sf-danger-zone input,
html[data-sfa-theme="dark"] .sf-danger-zone input,
body.sfa-theme-dark .sf-danger-zone input {
  background: #1a2332 !important;
  border-color: #5b3a3a !important;
  color: #e8eef6 !important;
}

/* —— Site manager / admin KPIs & panels —— */
html[data-sc-theme="dark"] .sf-site-kpi,
html[data-sfa-theme="dark"] .sf-site-kpi,
body.sfa-theme-dark .sf-site-kpi {
  background: linear-gradient(180deg, #1e2838, #222c3d) !important;
  border-color: #364557 !important;
}
html[data-sc-theme="dark"] .sf-site-kpi__n,
html[data-sfa-theme="dark"] .sf-site-kpi__n,
body.sfa-theme-dark .sf-site-kpi__n {
  color: #7dd3fc !important;
}
html[data-sc-theme="dark"] .sf-site-kpi span:last-child,
html[data-sfa-theme="dark"] .sf-site-kpi span:last-child,
body.sfa-theme-dark .sf-site-kpi span:last-child {
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-site-mgr__tools select,
html[data-sfa-theme="dark"] .sf-site-mgr__tools select,
body.sfa-theme-dark .sf-site-mgr__tools select {
  background: #1a2332 !important;
  border-color: #3d4b5f !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-site-panel,
html[data-sc-theme="dark"] .sf-site-settings,
html[data-sc-theme="dark"] .sf-loc-card,
html[data-sfa-theme="dark"] .sf-site-panel,
body.sfa-theme-dark .sf-site-panel {
  background: #222c3d !important;
  border-color: #364557 !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-admin-card,
html[data-sfa-theme="dark"] .sf-admin-card,
body.sfa-theme-dark .sf-admin-card {
  background: #1e2838 !important;
  border-color: #364557 !important;
  color: #e8eef6 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
}
html[data-sc-theme="dark"] .sf-admin-card__total,
html[data-sfa-theme="dark"] .sf-admin-card__total,
body.sfa-theme-dark .sf-admin-card__total {
  color: #7dd3fc !important;
}
html[data-sc-theme="dark"] .sf-admin-thumb,
html[data-sc-theme="dark"] .sf-admin-thumb--empty,
html[data-sfa-theme="dark"] .sf-admin-thumb,
body.sfa-theme-dark .sf-admin-thumb {
  background: #2a3648 !important;
  border-color: #3d4b5f !important;
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-admin-gallery,
html[data-sfa-theme="dark"] .sf-admin-gallery,
body.sfa-theme-dark .sf-admin-gallery {
  background: rgba(56, 189, 248, 0.08) !important;
  border-color: #3d4b5f !important;
}
html[data-sc-theme="dark"] .sf-admin-gal-item,
html[data-sfa-theme="dark"] .sf-admin-gal-item,
body.sfa-theme-dark .sf-admin-gal-item {
  background: #222c3d !important;
  border-color: #364557 !important;
  color: #7dd3fc !important;
}
html[data-sc-theme="dark"] .sf-admin-panel,
html[data-sfa-theme="dark"] .sf-admin-panel,
body.sfa-theme-dark .sf-admin-panel {
  background: transparent !important;
  color: #e8eef6 !important;
}

/* —— Contact form page body —— */
html[data-sc-theme="dark"] .sf-page--contact,
html[data-sc-theme="dark"] #sf-contact-form,
html[data-sfa-theme="dark"] #sf-contact-form,
body.sfa-theme-dark #sf-contact-form {
  color: #e8eef6 !important;
}

/* —— Ensure page chrome / body never flash white under account —— */
html[data-sc-theme="dark"] .sf-page,
html[data-sc-theme="dark"] .sf-page__body,
html[data-sc-theme="dark"] #sf-acc-panel,
html[data-sc-theme="dark"] #sf-app,
html[data-sfa-theme="dark"] .sf-page,
html[data-sfa-theme="dark"] .sf-page__body,
html[data-sfa-theme="dark"] #sf-acc-panel,
body.sfa-theme-dark .sf-page,
body.sfa-theme-dark .sf-page__body,
body.sfa-theme-dark #sf-acc-panel {
  background-color: #1a2332 !important;
  color: #e8eef6 !important;
}

/* —— Text buttons in account head —— */
html[data-sc-theme="dark"] .sf-text-btn,
html[data-sfa-theme="dark"] .sf-text-btn,
body.sfa-theme-dark .sf-text-btn {
  color: #c5d0de !important;
  background: transparent !important;
}
html[data-sc-theme="dark"] .sf-text-btn:hover,
html[data-sfa-theme="dark"] .sf-text-btn:hover,
body.sfa-theme-dark .sf-text-btn:hover {
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* —— Select / file inputs on forms —— */
html[data-sc-theme="dark"] .sf-card-form select,
html[data-sc-theme="dark"] .sf-card-form input[type="file"],
html[data-sc-theme="dark"] .sf-field select,
html[data-sc-theme="dark"] .sf-field input[type="file"],
html[data-sfa-theme="dark"] .sf-card-form select,
html[data-sfa-theme="dark"] .sf-field select,
body.sfa-theme-dark .sf-card-form select,
body.sfa-theme-dark .sf-field select,
body.sfa-theme-dark .sf-field input[type="file"] {
  background: #1a2332 !important;
  border-color: #3d4b5f !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-field input[type="file"]::file-selector-button,
html[data-sfa-theme="dark"] .sf-field input[type="file"]::file-selector-button,
body.sfa-theme-dark .sf-field input[type="file"]::file-selector-button {
  background: #243041 !important;
  border: 1px solid #46566c !important;
  color: #e2e8f0 !important;
  border-radius: 6px;
  padding: 6px 10px;
  margin-right: 10px;
  cursor: pointer;
}

/* —— Messages —— */
html[data-sc-theme="dark"] .sf-msg--ok,
html[data-sfa-theme="dark"] .sf-msg--ok,
body.sfa-theme-dark .sf-msg--ok {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}
html[data-sc-theme="dark"] .sf-msg--error,
html[data-sfa-theme="dark"] .sf-msg--error,
body.sfa-theme-dark .sf-msg--error {
  background: rgba(127, 29, 29, 0.4) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(248, 113, 113, 0.4) !important;
}

/* —— Site manager charts/tables if any —— */
html[data-sc-theme="dark"] .sf-site-grid > *,
html[data-sc-theme="dark"] .sf-site-panel,
html[data-sc-theme="dark"] .sf-site-settings__grid > *,
html[data-sfa-theme="dark"] .sf-site-panel,
body.sfa-theme-dark .sf-site-panel {
  background: #222c3d !important;
  border-color: #364557 !important;
  color: #e8eef6 !important;
}
html[data-sc-theme="dark"] .sf-site-panel h3,
html[data-sc-theme="dark"] .sf-site-panel h2,
html[data-sfa-theme="dark"] .sf-site-panel h3,
body.sfa-theme-dark .sf-site-panel h3 {
  color: #f1f5f9 !important;
}

/* —— Chip row / filters —— */
html[data-sc-theme="dark"] .sf-chip-row .sf-soft-chip,
html[data-sc-theme="dark"] .sf-orders-filters .sf-chip-btn,
html[data-sfa-theme="dark"] .sf-orders-filters .sf-chip-btn,
body.sfa-theme-dark .sf-orders-filters .sf-chip-btn {
  background: #243041 !important;
  border-color: #46566c !important;
  color: #e2e8f0 !important;
}
html[data-sc-theme="dark"] .sf-orders-filters .sf-chip-btn.is-active,
html[data-sc-theme="dark"] .sf-orders-filters .sf-chip-btn.is-selected,
body.sfa-theme-dark .sf-orders-filters .sf-chip-btn.is-active {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: #38bdf8 !important;
  color: #bae6fd !important;
}

/* —— Site manager analytics (funnel, tables, sparks) —— */
html[data-sc-theme="dark"] .sf-site-panel,
html[data-sfa-theme="dark"] .sf-site-panel,
body.sfa-theme-dark .sf-site-panel {
  background: #222c3d !important;
  border-color: #364557 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}
html[data-sc-theme="dark"] .sf-site-panel h3,
html[data-sfa-theme="dark"] .sf-site-panel h3,
body.sfa-theme-dark .sf-site-panel h3 {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-funnel__label,
html[data-sfa-theme="dark"] .sf-funnel__label,
body.sfa-theme-dark .sf-funnel__label {
  color: #d0d9e6 !important;
}
html[data-sc-theme="dark"] .sf-funnel__count,
html[data-sc-theme="dark"] .sf-site-list li strong,
html[data-sfa-theme="dark"] .sf-funnel__count,
body.sfa-theme-dark .sf-funnel__count,
body.sfa-theme-dark .sf-site-list li strong {
  color: #7dd3fc !important;
}
html[data-sc-theme="dark"] .sf-bar,
html[data-sfa-theme="dark"] .sf-bar,
body.sfa-theme-dark .sf-bar {
  background: #2a3648 !important;
}
html[data-sc-theme="dark"] .sf-sys-row,
html[data-sc-theme="dark"] .sf-site-list li,
html[data-sfa-theme="dark"] .sf-sys-row,
body.sfa-theme-dark .sf-sys-row,
body.sfa-theme-dark .sf-site-list li {
  border-bottom-color: #364557 !important;
  color: #e2e8f0 !important;
}
html[data-sc-theme="dark"] .sf-sys-row span,
html[data-sfa-theme="dark"] .sf-sys-row span,
body.sfa-theme-dark .sf-sys-row span {
  color: #9aa8bc !important;
}
html[data-sc-theme="dark"] .sf-sys-row strong,
html[data-sfa-theme="dark"] .sf-sys-row strong,
body.sfa-theme-dark .sf-sys-row strong {
  color: #f1f5f9 !important;
}
html[data-sc-theme="dark"] .sf-spark,
html[data-sc-theme="dark"] .sf-spark--empty,
html[data-sfa-theme="dark"] .sf-spark,
body.sfa-theme-dark .sf-spark {
  background: #1a2332 !important;
  color: #38bdf8 !important;
}
html[data-sc-theme="dark"] .sf-site-table th,
html[data-sc-theme="dark"] .sf-site-table td,
html[data-sfa-theme="dark"] .sf-site-table th,
body.sfa-theme-dark .sf-site-table th,
body.sfa-theme-dark .sf-site-table td {
  border-color: #364557 !important;
  color: #d0d9e6 !important;
  background: transparent !important;
}
html[data-sc-theme="dark"] .sf-site-table th,
body.sfa-theme-dark .sf-site-table th {
  color: #9aa8bc !important;
  background: #1e2838 !important;
}
html[data-sc-theme="dark"] .sf-site-table tr:nth-child(even) td,
body.sfa-theme-dark .sf-site-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* —— Ghost-dark buttons used in account overview —— */
html[data-sc-theme="dark"] .sf-btn--ghost-dark,
html[data-sfa-theme="dark"] .sf-btn--ghost-dark,
body.sfa-theme-dark .sf-btn--ghost-dark {
  background: #243041 !important;
  border: 1px solid #46566c !important;
  color: #e2e8f0 !important;
}
html[data-sc-theme="dark"] .sf-btn--ghost-dark:hover,
html[data-sfa-theme="dark"] .sf-btn--ghost-dark:hover,
body.sfa-theme-dark .sf-btn--ghost-dark:hover {
  border-color: #38bdf8 !important;
  color: #7dd3fc !important;
  background: rgba(56, 189, 248, 0.1) !important;
}

/* —— Overview muted text inside card-form —— */
html[data-sc-theme="dark"] .sf-card-form .sf-muted,
html[data-sc-theme="dark"] .sf-page__body .sf-muted,
html[data-sfa-theme="dark"] .sf-muted,
body.sfa-theme-dark .sf-muted {
  color: #9aa8bc !important;
}

/* —— Header on account pages —— */
html[data-sc-theme="dark"] .sf-topbar .sf-logo--text,
html[data-sfa-theme="dark"] .sf-topbar .sf-logo--text,
body.sfa-theme-dark .sf-topbar .sf-logo--text {
  color: #e8eef6 !important;
  text-shadow: none !important;
}

/* ========== Header nav icons: Gallery / Account / Cart / Logout / Theme ========== */
.sf-nav-icon-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-width: 52px;
  max-width: 68px;
  padding: 4px 5px 2px;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #374151;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.1;
  transition: border-color 0.15s, background 0.15s, transform 0.12s, color 0.15s;
  pointer-events: auto !important;
  z-index: 5;
  position: relative;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.sf-nav-icon-btn:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}
.sf-nav-icon-btn__icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: none;
  padding: 5px;
  box-sizing: border-box;
}
.sf-nav-icon-btn__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* monoline #1e293b strokes */
  filter: none;
}
.sf-nav-icon-btn__glyph {
  font-size: 1.1rem;
  line-height: 1;
}
.sf-nav-icon-btn__name {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  max-width: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-nav-icon-btn__badge {
  position: absolute;
  top: -5px;
  right: -6px;
  z-index: 2;
  pointer-events: none;
}
.sf-nav-icon-btn__badge .sf-cart-badge {
  margin-left: 0;
  min-width: 16px;
  height: 16px;
  font-size: 0.6rem;
  border: 1.5px solid #fff;
}
.sf-nav-icon-btn--theme[aria-pressed="true"] .sf-nav-icon-btn__icon {
  background: #0f172a;
  border-color: #334155;
  color: #fde68a;
}
.sf-nav-icon-btn--theme[aria-pressed="false"] .sf-nav-icon-btn__icon {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.sf-header-actions__row--icons {
  gap: 2px 3px !important;
}
.sf-header-actions__row--icons .sf-nav-icon-btn {
  align-self: flex-end;
}
.sf-topbar__actions,
.sf-topbar__actions--icons {
  display: flex;
  align-items: flex-end;
  gap: 2px 4px;
  flex-wrap: nowrap;
}

/* Dark: invert stroke icons like editor */
html[data-sc-theme="dark"] .sf-nav-icon-btn,
html[data-sfa-theme="dark"] .sf-nav-icon-btn,
body.sfa-theme-dark .sf-nav-icon-btn {
  color: #c5d0de;
}
html[data-sc-theme="dark"] .sf-nav-icon-btn:hover,
html[data-sfa-theme="dark"] .sf-nav-icon-btn:hover,
body.sfa-theme-dark .sf-nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #46566c;
  color: #f1f5f9;
}
html[data-sc-theme="dark"] .sf-nav-icon-btn__icon,
html[data-sfa-theme="dark"] .sf-nav-icon-btn__icon,
body.sfa-theme-dark .sf-nav-icon-btn__icon {
  background: #1e2838;
  border-color: #3d4b5f;
  color: #e2e8f0;
}
html[data-sc-theme="dark"] .sf-nav-icon-btn__img,
html[data-sfa-theme="dark"] .sf-nav-icon-btn__img,
body.sfa-theme-dark .sf-nav-icon-btn__img {
  filter: brightness(0) invert(0.92);
}
html[data-sc-theme="dark"] .sf-nav-icon-btn__badge .sf-cart-badge,
body.sfa-theme-dark .sf-nav-icon-btn__badge .sf-cart-badge {
  border-color: #222c3d;
}
html[data-sc-theme="dark"] .sf-nav-icon-btn--theme[aria-pressed="true"] .sf-nav-icon-btn__icon,
body.sfa-theme-dark .sf-nav-icon-btn--theme[aria-pressed="true"] .sf-nav-icon-btn__icon {
  background: #1e293b;
  border-color: #38bdf8;
  color: #fde68a;
}
html[data-sc-theme="dark"] .sf-nav-icon-btn--theme[aria-pressed="false"] .sf-nav-icon-btn__icon,
body.sfa-theme-dark .sf-nav-icon-btn--theme[aria-pressed="false"] .sf-nav-icon-btn__icon {
  background: #243041;
  border-color: #46566c;
  color: #fbbf24;
}

@media (max-width: 720px) {
  .sf-nav-icon-btn {
    min-width: 44px;
    max-width: 52px;
    padding: 2px 3px;
  }
  .sf-nav-icon-btn__icon {
    width: 32px;
    height: 32px;
    padding: 4px;
  }
  .sf-nav-icon-btn__name {
    font-size: 0.52rem;
  }
  .sf-header-actions {
    max-width: 100%;
  }
}

/* Kill old bulky theme chrome */
.sf-header__theme-wrap { display: none !important; }
.sf-theme-btn:not(.sf-nav-icon-btn),
.sf-footer__theme { display: none !important; }
