/* HS MARTS — unified UI (public, admin, member) */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-soft: rgba(13, 148, 136, 0.12);
  --accent: #ea580c;
  --accent-soft: rgba(234, 88, 12, 0.12);
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --success: #059669;
  --success-soft: #ecfdf5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 4px 6px rgba(15, 23, 42, 0.04), 0 20px 40px rgba(15, 23, 42, 0.08);
  /* legacy aliases */
  --hs-primary: var(--primary);
  --hs-primary-dark: var(--primary-dark);
  --hs-accent: #f59e0b;
  --hs-dark: var(--ink);
  --hs-muted: var(--muted);
  --hs-bg: var(--surface-3);
  --hs-card: var(--surface);
  --hs-radius: var(--radius);
  --hs-shadow: var(--shadow);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface-3);
  min-height: 100vh;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--primary);
}

/* ——— Public header ——— */
.navbar-hs {
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 55%, #0f766e 160%);
  color: #fff;
  padding: 0;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-hs .navbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.navbar-hs .brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.navbar-hs .brand span {
  color: #fbbf24;
  font-weight: 800;
}

.navbar-hs nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.navbar-hs .nav-link {
  color: rgba(255, 255, 255, 0.88);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.navbar-hs .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* ——— Hero & public sections ——— */
.hero-ecom {
  background:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(13, 148, 136, 0.2), transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(245, 158, 11, 0.15), transparent 45%),
    linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
  padding: 3.25rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.hero-ecom h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  color: var(--ink);
  line-height: 1.15;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.35rem;
  padding: 2rem 0 2.5rem;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 148, 136, 0.35);
}

.product-card .ph {
  height: 168px;
  background: linear-gradient(145deg, #ccfbf1 0%, #fef3c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.25rem;
}

.product-card .body {
  padding: 1.2rem 1.25rem 1.35rem;
}

.product-card .price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.5rem;
  color: var(--ink);
}

.plan-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  margin: 1.75rem 0 2.5rem;
  box-shadow: var(--shadow);
}
.plan-strip h3 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--ink);
}
.plan-strip ul {
  margin: 0.65rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.footer-hs {
  background: var(--ink);
  color: #94a3b8;
  padding: 2.5rem 0;
  margin-top: 0;
  font-size: 0.9rem;
  border-top: 3px solid var(--primary);
}

.footer-hs .footer-brand {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-hs a {
  color: #cbd5e1;
}
.footer-hs a:hover {
  color: #fff;
}

/* ——— Forms & buttons ——— */
.auth-card {
  max-width: 440px;
  margin: 2rem auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem 2rem 2.25rem;
  border: 1px solid var(--line);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(13, 148, 136, 0.18), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(234, 88, 12, 0.1), transparent 45%),
    var(--surface-3);
}

.auth-page--admin .auth-card {
  border-top: 4px solid var(--ink);
}

.auth-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin: 1rem auto 2rem;
  width: min(1100px, calc(100% - 2rem));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-shell__panel {
  padding: 2rem;
}

.auth-shell__panel--brand {
  color: #fff;
}

.auth-shell--member .auth-shell__panel--brand {
  background: linear-gradient(155deg, #0ea5e9, #2563eb 55%, #4f46e5);
}

.auth-shell--admin .auth-shell__panel--brand {
  background: linear-gradient(155deg, #0f172a, #1e293b 55%, #334155);
}

.auth-shell__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.auth-shell__panel--brand h1 {
  margin: 0.9rem 0 0.55rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}

.auth-shell__panel--brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.auth-shell__panel--brand ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  display: grid;
  gap: 0.25rem;
}

.auth-shell__panel--form {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  display: flex;
  align-items: center;
}

.auth-card--flat {
  margin: 0;
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px rgba(15, 23, 42, 0.06);
}

.captcha-code-display {
  margin: 0.35rem 0 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px dashed #94a3b8;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-align: center;
  user-select: none;
}

.captcha-code-display--otp {
  font-size: 1.35rem;
  letter-spacing: 0.34em;
}

.form-label {
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
  display: block;
  color: var(--ink-soft);
}

.form-control,
select.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.btn-hs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.35rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: filter 0.15s, transform 0.1s;
}
.btn-hs:hover {
  filter: brightness(1.06);
  color: #fff;
  text-decoration: none;
}
.btn-hs:active {
  transform: translateY(1px);
}

.btn-hs.btn-outline-hs,
.btn-outline-hs {
  background: var(--surface);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.btn-hs.btn-outline-hs:hover,
.btn-outline-hs:hover {
  background: var(--primary-soft);
  filter: none;
  color: var(--primary-dark);
}

.btn-hs.btn-danger,
.btn-hs[style*="991b1b"] {
  background: linear-gradient(180deg, #ef4444 0%, var(--danger) 100%) !important;
  border: none;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.alert-danger {
  background: var(--danger-soft);
  color: #991b1b;
  border-color: #fecaca;
}
.alert-success {
  background: var(--success-soft);
  color: #065f46;
  border-color: #a7f3d0;
}

/* ——— Admin / Member shell ——— */
.layout-admin,
.layout-member {
  display: flex;
  min-height: 100vh;
  background: var(--surface-3);
  position: relative;
}

/* Admin: explicit stacking so nothing sits “above” the shell and eats clicks */
.hsmarts-admin .layout-admin .sidebar {
  position: relative;
  z-index: 30;
}

.hsmarts-admin .layout-admin .panel-main {
  position: relative;
  z-index: 20;
}

.hsmarts-admin .layout-admin .sidebar a,
.hsmarts-admin .layout-admin .panel-main a,
.hsmarts-admin .layout-admin .panel-main button,
.hsmarts-admin .layout-admin .panel-main input,
.hsmarts-admin .layout-admin .panel-main select,
.hsmarts-admin .layout-admin .panel-main textarea {
  pointer-events: auto;
  cursor: pointer;
}

.hsmarts-admin .layout-admin .panel-main input[type="text"],
.hsmarts-admin .layout-admin .panel-main input[type="password"],
.hsmarts-admin .layout-admin .panel-main input[type="number"],
.hsmarts-admin .layout-admin .panel-main input[type="email"],
.hsmarts-admin .layout-admin .panel-main input[type="date"],
.hsmarts-admin .layout-admin .panel-main textarea {
  cursor: text;
}

.sidebar {
  width: 268px;
  flex-shrink: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.06);
}

.sidebar--admin {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
}

/* Premium admin-only polish — cool “operations” deck */
.layout-admin .sidebar--admin {
  background:
    radial-gradient(120% 80% at 0% -20%, rgba(99, 102, 241, 0.18), transparent 45%),
    linear-gradient(180deg, #070b14 0%, #0f172a 45%, #1e1b4b 100%);
  box-shadow: 8px 0 26px rgba(2, 6, 23, 0.32);
  border-right: 1px solid rgba(129, 140, 248, 0.15);
}

.layout-admin .sidebar--admin .side-brand {
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
}

.layout-admin .sidebar--admin .nav-section-label {
  color: #a5b4fc;
  opacity: 0.85;
}

.layout-admin .sidebar--admin a:not(.side-brand) {
  border: 1px solid transparent;
}

.layout-admin .sidebar--admin a:not(.side-brand):hover {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.2);
}

.layout-admin .sidebar--admin a:not(.side-brand).active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.35), rgba(59, 130, 246, 0.12));
  border-color: rgba(129, 140, 248, 0.45);
  color: #e0e7ff;
  box-shadow: inset 3px 0 0 #818cf8;
}

.sidebar--member {
  background: linear-gradient(180deg, #115e59 0%, #0f766e 48%, #134e4a 100%);
  color: #ecfdf5;
}

/* Member panel — warm “hub” vs admin (teal + soft warmth) */
.layout-member .sidebar--member {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(251, 146, 60, 0.12), transparent 50%),
    radial-gradient(120% 80% at 0% -20%, rgba(45, 212, 191, 0.2), transparent 45%),
    linear-gradient(180deg, #0a3d39 0%, #0f766e 42%, #115e59 100%);
  box-shadow: 8px 0 26px rgba(6, 78, 59, 0.28);
  border-right: 1px solid rgba(45, 212, 191, 0.2);
}

.layout-member .sidebar--member .side-brand {
  border-bottom: 1px solid rgba(167, 243, 208, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

.layout-member .sidebar--member .nav-section-label {
  color: #fdba74;
  opacity: 0.88;
}

.layout-member .sidebar--member a:not(.side-brand) {
  border: 1px solid transparent;
}

.layout-member .sidebar--member a:not(.side-brand):hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(167, 243, 208, 0.22);
}

.layout-member .sidebar--member a:not(.side-brand).active {
  background: linear-gradient(90deg, rgba(254, 215, 170, 0.35), rgba(251, 113, 133, 0.12));
  border-color: rgba(251, 146, 60, 0.4);
  color: #fff7ed;
  box-shadow: inset 3px 0 0 #fb923c;
  border-radius: 12px;
}

.sidebar .side-brand {
  padding: 1.35rem 1.25rem 1.1rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0.5rem;
}
.sidebar--admin .side-brand {
  color: #f8fafc;
}
.sidebar--admin .side-brand span {
  color: #a5b4fc;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72em;
}

.sidebar--member .side-brand {
  color: #fff;
}
.sidebar--member .side-brand span {
  color: #fed7aa;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* Member panel: quick rail + topbar pattern (distinct from admin) */
.member-nav-alt.sidebar--member .side-brand,
.member-nav-alt .sidebar--member .side-brand {
  margin-bottom: 0;
  border-bottom: none;
}

.member-nav-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(167, 243, 208, 0.22);
}

.member-nav-quick__ico {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: 800;
  line-height: 1;
}

.member-nav-alt.member-nav-new .sidebar-nav-scroll {
  padding-top: 0.4rem;
}

.layout-member .member-topbar-actions {
  gap: 0.35rem;
}

.layout-member .member-topbar-actions__btn {
  padding: 0.4rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.sidebar-nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.35rem 0 1.25rem;
}

.admin-nav-new .sidebar-nav-scroll,
.member-nav-new .sidebar-nav-scroll {
  padding-top: 0.55rem;
}

.nav-group {
  margin: 0 0.35rem 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.nav-section-label {
  display: block;
  padding: 0.75rem 1.25rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.55;
}

.admin-nav-new .nav-section-label,
.member-nav-new .nav-section-label {
  padding: 0.45rem 0.95rem 0.35rem;
}

.sidebar a:not(.side-brand) {
  display: block;
  padding: 0.5rem 0.9rem;
  margin: 0 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sidebar--admin a:not(.side-brand) {
  color: #cbd5e1;
}
.sidebar--admin a:not(.side-brand):hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}
.sidebar--admin a:not(.side-brand).active {
  background: rgba(99, 102, 241, 0.22);
  color: #e0e7ff;
}

.sidebar--member a:not(.side-brand) {
  color: rgba(236, 253, 245, 0.9);
}
.sidebar--member a:not(.side-brand):hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}
.sidebar--member a:not(.side-brand).active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
}

.layout-member .sidebar--member .member-nav-quick a.member-nav-quick__link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.48rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(167, 243, 208, 0.18);
  color: rgba(236, 253, 245, 0.96);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.layout-member .sidebar--member .member-nav-quick a.member-nav-quick__link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(253, 230, 138, 0.35);
  color: #fff;
  text-decoration: none;
}

.layout-member .sidebar--member .member-nav-quick a.member-nav-quick__link.active {
  background: linear-gradient(145deg, rgba(254, 215, 170, 0.35), rgba(20, 184, 166, 0.22));
  border-color: rgba(251, 146, 60, 0.45);
  color: #fffbeb;
}

.sidebar a.nav-logout {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.85rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-weight: 700;
}
.sidebar a.nav-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

.panel-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.panel-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.35rem 1.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.layout-admin .panel-topbar {
  background:
    radial-gradient(140% 120% at 100% -35%, rgba(99, 102, 241, 0.12), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid #c7d2fe;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
  border-left: 4px solid #6366f1;
}

.layout-admin .panel-subtitle {
  color: #4f46e5;
  letter-spacing: 0.06em;
}

.layout-member .panel-topbar {
  background:
    radial-gradient(140% 120% at 0% -30%, rgba(251, 146, 60, 0.1), transparent 42%),
    radial-gradient(140% 120% at 100% -35%, rgba(20, 184, 166, 0.14), transparent 45%),
    linear-gradient(180deg, #fffefb 0%, #f0fdfa 100%);
  border-bottom: 1px solid #d1fae5;
  box-shadow: 0 2px 14px rgba(15, 118, 110, 0.08);
  border-left: 4px solid #14b8a6;
}

.layout-member .panel-subtitle {
  color: #0f766e;
  letter-spacing: 0.06em;
}

.layout-member .panel-topbar--with-ref {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
}

.layout-member .panel-topbar__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.layout-member .member-topbar-ref {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(20, 184, 166, 0.22);
}

.layout-member .member-topbar-ref__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #0f766e;
  flex-shrink: 0;
}

.layout-member .member-topbar-ref__input {
  flex: 1;
  min-width: min(100%, 180px);
  font-size: 0.8rem;
  padding: 0.45rem 0.65rem;
}

.layout-member .member-topbar-ref__btn {
  flex-shrink: 0;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
}

.layout-member .member-topbar-ref__msg {
  margin: 0;
  font-size: 0.78rem;
  min-height: 1.25rem;
  width: 100%;
}

.panel-topbar h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.layout-admin .panel-topbar h1 {
  color: #0f172a;
}

.layout-member .panel-topbar h1 {
  color: #134e4a;
  font-weight: 700;
}

.panel-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 100%;
  flex-wrap: wrap;
}

.user-pill strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.layout-admin .user-pill {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-color: #c7d2fe;
  color: #475569;
}

.layout-admin .user-pill strong {
  color: #312e81;
}

.layout-member .user-pill {
  background: linear-gradient(180deg, #ffffff, #f0fdfa);
  border-color: #99f6e4;
  color: #115e59;
}

.layout-member .user-pill strong {
  color: #0f766e;
}

.panel-body {
  flex: 1;
  padding: 1.5rem 1.75rem 2.5rem;
  overflow-x: auto;
}

.hsmarts-admin .layout-admin .panel-body {
  background: linear-gradient(180deg, #eef2f6 0%, #e2e8f0 55%, #f1f5f9 100%);
}

.hsmarts-member .layout-member .panel-body {
  background: linear-gradient(180deg, #fafaf8 0%, #f0fdfa 40%, #f8fafc 100%);
}

.panel-card,
.card-hs {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
}

.layout-admin .panel-card,
.layout-admin .card-hs {
  border: 1px solid #dbe7f5;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.layout-member .panel-card,
.layout-member .card-hs {
  border: 1px solid #ccfbf1;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.1);
}

/* ——— Tables ——— */
.table-hs {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  border: 1px solid var(--line);
}

.layout-admin .table-hs {
  border: 1px solid #dbe7f5;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.layout-member .table-hs {
  border: 1px solid #ccfbf1;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.1);
}
.table-hs th,
.table-hs td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table-hs tr:last-child td {
  border-bottom: none;
}
.table-hs th {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.layout-admin .table-hs th {
  background: linear-gradient(180deg, #f8fbff, #eef4fb);
  color: #334155;
}

.layout-member .table-hs th {
  background: linear-gradient(180deg, #f0fdfa, #e6fffa);
  color: #134e4a;
}
.table-hs tbody tr:hover td {
  background: rgba(13, 148, 136, 0.04);
}

.layout-admin .table-hs tbody tr:hover td {
  background: rgba(37, 99, 235, 0.06);
}

.layout-member .table-hs tbody tr:hover td {
  background: rgba(20, 184, 166, 0.08);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.65rem;
}

.stat-card {
  background: var(--surface);
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.layout-admin .stat-card {
  border: 1px solid #dbe7f5;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--hs-accent));
  opacity: 0.9;
}

.layout-admin .stat-card::before {
  background: linear-gradient(90deg, #2563eb, #8b5cf6);
}

.layout-member .stat-card {
  border: 1px solid #ccfbf1;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.layout-member .stat-card::before {
  background: linear-gradient(90deg, #0d9488, #14b8a6);
}
.stat-card .text-muted {
  font-size: 0.8125rem;
  font-weight: 500;
}
.stat-card .num {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
  margin-top: 0.25rem;
}

.stat-card-hint {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 0.45rem;
  line-height: 1.35;
  font-weight: 500;
}

.dashboard-stat-cards {
  max-width: 1200px;
}

.genealogy-level {
  margin: 0.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}
.genealogy-user {
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.team-level-card__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.team-level-table th:first-child,
.team-level-table td:first-child {
  width: 2.5rem;
  text-align: center;
}

.public-main {
  min-height: 40vh;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.sponsor-preview,
.login-name-preview {
  min-height: 1.35rem;
  font-size: 0.875rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-top: 0.35rem;
}

/* ——— Mobile ——— */
@media (max-width: 900px) {
  .layout-admin,
  .layout-member {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .sidebar .side-brand {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .sidebar-nav-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    width: 100%;
    max-height: none;
    padding: 0.5rem;
  }
  .nav-section-label {
    width: 100%;
    padding: 0.5rem 0.75rem 0.15rem;
  }
  .sidebar a:not(.side-brand) {
    margin: 0;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
  }
  .panel-topbar,
  .panel-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .panel-topbar-right {
    width: 100%;
  }

  /* Member: stack sidebar; quick nav full-width with touch-friendly chips */
  .layout-member .sidebar.sidebar--member {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .layout-member .member-nav-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.65rem 0.75rem 0.85rem;
    width: 100%;
  }

  .layout-member .sidebar--member .member-nav-quick a.member-nav-quick__link {
    min-height: 2.85rem;
    padding: 0.55rem 0.65rem;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 12px;
  }

  .layout-member .member-nav-quick__ico {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .layout-member .member-nav-quick {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .layout-member .sidebar--member .member-nav-quick a.member-nav-quick__link {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 3.1rem;
    padding: 0.5rem 0.4rem;
    font-size: 0.74rem;
    line-height: 1.2;
    text-align: center;
  }

  .layout-member .member-nav-quick__ico {
    font-size: 1rem;
    line-height: 1;
  }

  .layout-member .member-topbar-ref {
    flex-direction: column;
    align-items: stretch;
  }

  .layout-member .member-topbar-ref__btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar-hs .navbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-ecom {
    padding: 2.25rem 0 3rem;
  }
  .auth-shell {
    grid-template-columns: 1fr;
    width: calc(100% - 1.25rem);
    margin: 0.75rem auto 1.5rem;
  }
  .auth-shell__panel {
    padding: 1.25rem;
  }
  .auth-shell__panel--brand ul {
    margin-top: 0.75rem;
  }
  .auth-card--flat {
    max-width: none;
  }

  .lp-hero__inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .lp-showcase__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .lp-showcase__copy {
    order: -1;
  }
  .lp-cta__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .lp-cta__actions {
    width: 100%;
  }
  .lp-cta__actions .btn-hs {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 2.75rem;
  }
}

/* ——— Premium landing (index) ——— */
.lp {
  overflow-x: hidden;
}

.lp-hero {
  position: relative;
  color: #faf8f5;
  padding: 0 0 2.5rem;
  background: linear-gradient(165deg, #0c0a14 0%, #1a1332 38%, #0d3d3a 72%, #152238 100%);
  isolation: isolate;
  overflow: hidden;
}

.lp-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
  background:
    radial-gradient(ellipse 90% 70% at 12% 18%, rgba(236, 72, 153, 0.35) 0%, transparent 52%),
    radial-gradient(ellipse 70% 55% at 88% 22%, rgba(251, 191, 36, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse 65% 50% at 70% 88%, rgba(45, 212, 191, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 25% 92%, rgba(99, 102, 241, 0.25) 0%, transparent 45%);
  animation: lp-mesh-shift 14s ease-in-out infinite alternate;
}

@keyframes lp-mesh-shift {
  0% {
    filter: hue-rotate(0deg) saturate(1);
    transform: scale(1) translate(0, 0);
  }
  100% {
    filter: hue-rotate(12deg) saturate(1.08);
    transform: scale(1.03) translate(-1%, 1%);
  }
}

.lp-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
  animation: lp-float 9s ease-in-out infinite;
}

.lp-hero__orb--1 {
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  background: rgba(244, 114, 182, 0.35);
  top: 8%;
  right: 6%;
  animation-delay: -2s;
}

.lp-hero__orb--2 {
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  background: rgba(56, 189, 248, 0.18);
  bottom: 5%;
  left: -8%;
  animation-delay: -4s;
  animation-duration: 11s;
}

.lp-hero__orb--3 {
  width: min(35vw, 260px);
  height: min(35vw, 260px);
  background: rgba(251, 191, 36, 0.2);
  top: 42%;
  left: 38%;
  animation-delay: -1s;
  animation-duration: 8s;
}

@keyframes lp-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -18px) scale(1.05);
  }
}

.lp-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 3.25rem;
  padding-bottom: 3.5rem;
  max-width: 920px;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 230, 200, 0.88);
  margin: 0 0 1.1rem;
}

.lp-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f472b6);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.65);
  animation: lp-pulse-dot 2.4s ease-in-out infinite;
}

@keyframes lp-pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}

.lp-hero__title {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5.2vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #fffefb;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

.lp-hero__title-accent {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  background: linear-gradient(110deg, #fde68a 0%, #fbcfe8 35%, #a5f3fc 70%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lp-shimmer-text 8s ease-in-out infinite;
  background-size: 200% auto;
}

@keyframes lp-shimmer-text {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.lp-hero__lead {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.92);
  margin: 0 0 1.75rem;
  max-width: 38rem;
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.lp-btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #ea580c 100%) !important;
  color: #1c1410 !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.45);
  text-decoration: none !important;
  color: #1c1410 !important;
}

.lp-btn-ghost {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(10px);
}

.lp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  text-decoration: none !important;
  color: #fff !important;
}

.lp-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.5rem;
  margin: 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lp-hero__meta dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(203, 213, 225, 0.65);
  margin: 0 0 0.2rem;
}

.lp-hero__meta dd {
  margin: 0;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.lp-anim-in {
  opacity: 0;
  animation: lp-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lp-anim-in--2 {
  animation-delay: 0.1s;
}
.lp-anim-in--3 {
  animation-delay: 0.22s;
}
.lp-anim-in--4 {
  animation-delay: 0.34s;
}
.lp-anim-in--5 {
  animation-delay: 0.46s;
}

@keyframes lp-fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lp-marquee {
  background: linear-gradient(90deg, #134e4a, #1e3a5f, #5b21b6, #831843);
  color: rgba(255, 255, 255, 0.92);
  padding: 0.65rem 0;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.lp-marquee__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.75rem;
  width: max-content;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: lp-marquee 32s linear infinite;
}

.lp-marquee__track span {
  white-space: nowrap;
}

@keyframes lp-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.lp-section {
  padding: 3.25rem 1rem 2rem;
}

.lp-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

.lp-section__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.lp-section__sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}

.lp-grid {
  display: grid;
  gap: 1.1rem;
}

.lp-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lp-card {
  position: relative;
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.45rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.lp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.lp-card--coral {
  background: linear-gradient(155deg, #fff1f2 0%, #fecdd3 55%, #fda4af 100%);
}

.lp-card--teal {
  background: linear-gradient(155deg, #ecfdf5 0%, #a7f3d0 45%, #5eead4 100%);
}

.lp-card--violet {
  background: linear-gradient(155deg, #f5f3ff 0%, #ddd6fe 50%, #c4b5fd 100%);
}

.lp-card__icon {
  font-size: 1.35rem;
  opacity: 0.55;
  margin-bottom: 0.65rem;
  color: rgba(15, 23, 42, 0.5);
}

.lp-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  color: var(--ink);
}

.lp-card__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.lp-showcase {
  margin: 1rem 0 2.5rem;
  padding: 3rem 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 40%, #fdf4ff 100%);
  border-block: 1px solid var(--line);
}

.lp-showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.lp-showcase__visual {
  display: flex;
  justify-content: center;
}

.lp-showcase__frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(145deg, #0f172a 0%, #312e81 42%, #0d9488 100%);
  box-shadow:
    0 24px 60px rgba(49, 46, 129, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: lp-frame-glow 5s ease-in-out infinite alternate;
  overflow: hidden;
}

@keyframes lp-frame-glow {
  from {
    box-shadow:
      0 24px 60px rgba(49, 46, 129, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  to {
    box-shadow:
      0 28px 70px rgba(13, 148, 136, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
}

.lp-showcase__shine {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 120deg, transparent, rgba(251, 191, 36, 0.15), transparent 40%, rgba(244, 114, 182, 0.12), transparent 70%);
  animation: lp-spin-slow 18s linear infinite;
}

@keyframes lp-spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.lp-showcase__rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-showcase__rings span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: lp-ring-pulse 4s ease-in-out infinite;
}

.lp-showcase__rings span:nth-child(1) {
  width: 58%;
  height: 58%;
  animation-delay: 0s;
}
.lp-showcase__rings span:nth-child(2) {
  width: 76%;
  height: 76%;
  animation-delay: 0.5s;
}
.lp-showcase__rings span:nth-child(3) {
  width: 94%;
  height: 94%;
  animation-delay: 1s;
}

@keyframes lp-ring-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

.lp-showcase__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.lp-showcase__lead {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.lp-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.lp-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.lp-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.lp-pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.lp-pillar:hover {
  border-color: #c4b5fd;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.1);
}

.lp-pillar__num {
  display: inline-block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0d9488, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.35rem;
}

.lp-pillar h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: var(--ink);
}

.lp-pillar p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.lp-cta {
  margin: 0 0 2.5rem;
  padding: 0 1rem;
}

.lp-cta__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.25rem 2rem;
  border-radius: 20px;
  background: linear-gradient(125deg, #1e1b4b 0%, #312e81 35%, #0f766e 72%, #134e4a 100%);
  color: #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 20px 50px rgba(30, 27, 75, 0.35);
  position: relative;
  overflow: hidden;
}

.lp-cta__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 100% 0%, rgba(251, 191, 36, 0.2), transparent 55%);
  pointer-events: none;
}

.lp-cta__copy {
  position: relative;
  z-index: 1;
  max-width: 32rem;
}

.lp-cta__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin: 0 0 0.5rem;
  color: #fff;
}

.lp-cta__copy p {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.55;
}

.lp-cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lp-btn-light {
  background: #fff !important;
  color: #1e1b4b !important;
  font-weight: 700 !important;
  border: none !important;
}

.lp-btn-light:hover {
  text-decoration: none !important;
  filter: brightness(1.05);
}

.lp-btn-outline-light {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

.lp-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  text-decoration: none !important;
}

.lp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-reveal--in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .lp .container {
    padding-left: max(0.875rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.875rem, env(safe-area-inset-right, 0px));
  }

  .lp-hero {
    padding-bottom: 1.75rem;
  }

  .lp-hero__inner {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .lp-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    flex-wrap: wrap;
    line-height: 1.4;
  }

  .lp-hero__title {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    line-height: 1.15;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .lp-hero__title-accent {
    font-size: clamp(0.95rem, 4.2vw, 1.2rem);
    line-height: 1.35;
  }

  .lp-hero__lead {
    font-size: 1rem;
    margin-bottom: 1.35rem;
  }

  .lp-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
  }

  .lp-hero__actions .btn-hs {
    width: 100%;
    min-height: 2.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-sizing: border-box;
  }

  .lp-hero__meta {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .lp-hero__meta dd {
    font-size: 0.875rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .lp-marquee {
    padding: 0.55rem 0;
  }

  .lp-marquee__track {
    font-size: 0.65rem;
    gap: 1rem;
    letter-spacing: 0.04em;
  }

  .lp-section {
    padding: 2.25rem max(0.875rem, env(safe-area-inset-right, 0px)) 1.75rem
      max(0.875rem, env(safe-area-inset-left, 0px));
  }

  .lp-section__head {
    margin-bottom: 1.65rem;
    text-align: left;
  }

  .lp-section__sub {
    font-size: 0.9375rem;
  }

  .lp-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-card {
    padding: 1.25rem 1.1rem;
    min-width: 0;
  }

  .lp-showcase {
    margin: 0.5rem 0 1.75rem;
    padding: 2rem max(0.75rem, env(safe-area-inset-left, 0px)) 2rem
      max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .lp-showcase__frame {
    width: min(100%, 280px);
    margin: 0 auto;
    border-radius: 22px;
  }

  .lp-showcase__title {
    text-align: left;
  }

  .lp-pillars {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .lp-pillar {
    padding: 1.15rem 1rem;
    min-width: 0;
  }

  .lp-cta {
    margin-bottom: 1.75rem;
    padding-left: max(0.875rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.875rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  }

  .lp-cta__inner {
    padding: 1.5rem 1.1rem;
    border-radius: 16px;
  }

  .lp-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .lp-cta__actions .btn-hs {
    width: 100%;
    min-height: 2.75rem;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero__mesh,
  .lp-hero__orb,
  .lp-eyebrow__dot,
  .lp-hero__title-accent,
  .lp-marquee__track,
  .lp-showcase__shine,
  .lp-showcase__rings span,
  .lp-showcase__frame {
    animation: none !important;
  }
  .lp-marquee__track {
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    text-align: center;
    gap: 0.5rem 1rem;
  }
  .lp-anim-in {
    animation: none;
    opacity: 1;
  }
  .lp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
