/* Home page */
.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  grid-template-rows: auto auto;
  gap: clamp(28px, 4vw, 40px);
  align-items: center;
  min-height: calc(100vh - var(--nav-h) - 48px);
  padding: 16px 0 52px;
}

.hero-intro {
  grid-column: 1;
  grid-row: 1;
}

.hero-metrics {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.hero .showcase {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.hero .eyebrow {
  margin-bottom: 14px;
  padding: 5px 10px 5px 7px;
  font-size: 0.66rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw + 0.5rem, 2.65rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.032em;
  max-width: 22ch;
}

.hero-desc {
  margin: 16px 0 22px;
  max-width: 46ch;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-actions .btn {
  padding: 9px 16px;
  font-size: 0.84rem;
}

.typing {
  min-height: 22px;
  margin-top: 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.01em;
}

.typing-caret {
  display: inline-block;
  width: 2px;
  margin-left: 2px;
  color: var(--accent-violet);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 0;
}

.metric {
  padding: 11px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.metric strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.015em;
  color: var(--text);
}

.metric span {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  line-height: 1.42;
}

/* ── Product showcase — premium glass mockup (extension popup scale) ── */
.showcase {
  position: relative;
  perspective: 1200px;
  isolation: isolate;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  --showcase-rx: 2deg;
  --showcase-ry: -3deg;
}

.showcase-ambient {
  position: absolute;
  inset: -8% -6%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.showcase-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.38;
  animation: showcaseOrbDrift 14s ease-in-out infinite alternate;
}

.showcase-orb--cyan {
  width: 140px;
  height: 140px;
  top: 8%;
  left: -2%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.35) 0%, transparent 68%);
}

.showcase-orb--violet {
  width: 160px;
  height: 160px;
  bottom: 4%;
  right: -4%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.32) 0%, transparent 68%);
  animation-delay: -5s;
}

@keyframes showcaseOrbDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6%, -4%) scale(1.08); }
}

.showcase-mesh {
  position: absolute;
  inset: 10% 4%;
  z-index: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg at 35% 40%, rgba(103, 232, 249, 0.1), transparent 38%),
    conic-gradient(from 30deg at 72% 58%, rgba(167, 139, 250, 0.12), transparent 42%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(103, 232, 249, 0.04) 0%, transparent 70%);
  filter: blur(20px);
  opacity: 0.65;
  animation: showcaseMeshShift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes showcaseMeshShift {
  0% { transform: rotate(0deg) scale(1); opacity: 0.7; }
  100% { transform: rotate(8deg) scale(1.06); opacity: 1; }
}

.showcase-glow {
  position: absolute;
  inset: 8% 0;
  background:
    radial-gradient(ellipse 85% 65% at 50% 45%, rgba(167, 139, 250, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 30% 60%, rgba(103, 232, 249, 0.08) 0%, transparent 55%);
  filter: blur(32px);
  z-index: 0;
  pointer-events: none;
}

.showcase-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, rgba(18, 24, 42, 0.78) 0%, rgba(8, 10, 22, 0.92) 100%);
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 28px rgba(103, 232, 249, 0.05),
    0 0 36px rgba(167, 139, 250, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: rotateY(var(--showcase-ry)) rotateX(var(--showcase-rx));
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
  transform-style: preserve-3d;
}

.showcase-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(103, 232, 249, 0.32) 0%,
    rgba(255, 255, 255, 0.08) 28%,
    rgba(167, 139, 250, 0.28) 62%,
    rgba(103, 232, 249, 0.18) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  opacity: 0.55;
}

.showcase:hover .showcase-frame {
  --showcase-rx: 1deg;
  --showcase-ry: -1deg;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 32px rgba(103, 232, 249, 0.08),
    0 0 40px rgba(167, 139, 250, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.showcase-reflection {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -1px;
  height: 32%;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.04) 0%, transparent 75%);
  transform: scaleY(-1) translateY(100%);
  transform-origin: top;
  opacity: 0.22;
  filter: blur(4px);
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
}

.showcase-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.28) 100%);
  position: relative;
  overflow: hidden;
}

.showcase-chrome__shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.6;
}

.showcase-traffic {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.25);
}

.showcase-dot:first-child { background: linear-gradient(180deg, #ff7b72, #ff5f57); }
.showcase-dot:nth-child(2) { background: linear-gradient(180deg, #ffd166, #febc2e); }
.showcase-dot:nth-child(3) { background: linear-gradient(180deg, #4ade80, #28c840); }

.showcase-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(184, 196, 220, 0.8);
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.showcase-url__lock {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  color: rgba(103, 232, 249, 0.65);
  opacity: 0.85;
}

.showcase-body {
  padding: 14px;
  min-height: 0;
  position: relative;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.mock-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f4f7fc;
}

.mock-sub {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(139, 152, 180, 0.85);
}

.mock-comment {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 10px;
}

.mock-comment p {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.mock-reply-btn {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--gradient-btn);
  color: #0c0f18;
}

/* Dashboard mockup */
.showcase-body--dash {
  padding: 12px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(103, 232, 249, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(167, 139, 250, 0.04) 0%, transparent 50%);
}

.mock-dash-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mock-dash-header .mock-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.28),
    0 0 12px rgba(103, 232, 249, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-dash-header .mock-title {
  font-size: 0.72rem;
}

.mock-dash-header .mock-sub {
  font-size: 0.54rem;
  letter-spacing: 0.05em;
}

.mock-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.mock-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  min-height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 55%, rgba(0, 0, 0, 0.12) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  transition:
    transform 0.4s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.mock-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 50%, rgba(255, 255, 255, 0.04));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.45;
}

.mock-tile:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mock-tile__icon {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.28));
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}

.mock-tile:hover .mock-tile__icon {
  transform: none;
  filter: drop-shadow(0 0 10px rgba(103, 232, 249, 0.45));
  opacity: 1;
}

.mock-tile__label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(200, 210, 228, 0.88);
  text-align: center;
  line-height: 1.2;
}

.mock-tile--active {
  border-color: rgba(103, 232, 249, 0.32);
  background:
    linear-gradient(155deg, rgba(103, 232, 249, 0.12) 0%, rgba(103, 232, 249, 0.04) 50%, rgba(0, 0, 0, 0.1) 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.22),
    0 0 14px rgba(103, 232, 249, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mock-tile--active .mock-tile__icon { color: var(--accent-cyan); opacity: 1; }
.mock-tile--active .mock-tile__label { color: var(--accent-cyan); }

.mock-tile--revenue {
  border-color: rgba(167, 139, 250, 0.3);
  background:
    linear-gradient(155deg, rgba(167, 139, 250, 0.12) 0%, rgba(167, 139, 250, 0.04) 50%, rgba(0, 0, 0, 0.1) 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.22),
    0 0 14px rgba(167, 139, 250, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mock-tile--revenue .mock-tile__icon { color: var(--accent-violet); opacity: 1; }
.mock-tile--revenue .mock-tile__label { color: var(--accent-violet); }

.mock-revenue-preview {
  position: relative;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 14px rgba(0, 0, 0, 0.2);
}

.mock-revenue-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.22), rgba(167, 139, 250, 0.2), rgba(103, 232, 249, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.4;
}

.mock-revenue-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 80%, rgba(103, 232, 249, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(167, 139, 250, 0.12) 0%, transparent 50%);
  animation: showcaseMeshShift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.mock-revenue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.mock-revenue-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 247, 252, 0.9);
}

.mock-pill {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-violet);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.22);
  box-shadow: none;
}

.mock-revenue-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  padding: 0 2px;
  position: relative;
  z-index: 1;
}

.mock-bar {
  flex: 1;
  height: var(--h, 50%);
  position: relative;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(180deg, #a5f3fc 0%, var(--accent-cyan) 35%, rgba(103, 232, 249, 0.35) 100%);
  box-shadow:
    0 0 8px rgba(103, 232, 249, 0.22),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform-origin: bottom center;
  transform: scaleY(0);
  opacity: 0;
}

.showcase--live .mock-bar {
  animation:
    mockBarGrow 0.65s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) forwards,
    mockBarGlow 3.4s ease-in-out infinite,
    mockBarBreathe 4.6s ease-in-out infinite;
}

.showcase--live .mock-bar:nth-child(1) { animation-delay: 0.15s, 0.9s, 1s; }
.showcase--live .mock-bar:nth-child(2) { animation-delay: 0.25s, 1.05s, 1.15s; }
.showcase--live .mock-bar:nth-child(3) { animation-delay: 0.35s, 1.2s, 1.3s; }
.showcase--live .mock-bar:nth-child(4) { animation-delay: 0.45s, 1.35s, 1.45s; }
.showcase--live .mock-bar:nth-child(5) { animation-delay: 0.55s, 1.5s, 1.6s; }

.showcase--live .mock-revenue-bars {
  overflow: hidden;
}

.showcase--live .mock-revenue-bars::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: translateX(-130%) skewX(-10deg);
  animation: mockChartShimmer 5.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes mockBarGrow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 0.95; }
}

@keyframes mockBarGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14); }
}

@keyframes mockBarBreathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.94); }
}

@keyframes mockChartShimmer {
  0% { transform: translateX(-130%) skewX(-10deg); opacity: 0; }
  12% { opacity: 0.85; }
  88% { opacity: 0.85; }
  100% { transform: translateX(320%) skewX(-10deg); opacity: 0; }
}

.mock-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, transparent 100%);
  pointer-events: none;
}

.mock-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -2px;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.5), rgba(6, 182, 212, 0.2));
  border-radius: 2px 0 0 2px;
  transform: skewY(-2deg);
  opacity: 0.6;
}

.mock-bar:nth-child(even) {
  background: linear-gradient(180deg, #ddd6fe 0%, var(--accent-violet) 35%, rgba(167, 139, 250, 0.32) 100%);
  box-shadow:
    0 0 8px rgba(167, 139, 250, 0.24),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.mock-bar:nth-child(even)::after {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.55), rgba(124, 58, 237, 0.2));
}

.mock-revenue-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 2px;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(139, 152, 180, 0.7);
  position: relative;
  z-index: 1;
}

.floating-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(220, 228, 244, 0.9);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.28),
    0 0 12px rgba(103, 232, 249, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: tagFloat 6s ease-in-out infinite;
  z-index: 2;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.floating-tag::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.4), transparent);
  pointer-events: none;
  opacity: 0.35;
}

.floating-tag--1::after { right: 100%; top: 50%; margin-right: 3px; }
.floating-tag--2::after { left: 100%; top: 50%; margin-left: 3px; transform: scaleX(-1); }
.floating-tag--3::after { right: calc(100% + 6px); top: 40%; width: 22px; transform: rotate(-25deg); transform-origin: right; }

.floating-tag__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px rgba(103, 232, 249, 0.5);
  flex-shrink: 0;
  animation: tagDotPulse 2.5s ease-in-out infinite;
}

.floating-tag--2 .floating-tag__dot { background: var(--accent-violet); box-shadow: 0 0 6px rgba(167, 139, 250, 0.5); }
.floating-tag--3 .floating-tag__dot { background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet)); }

.floating-tag__icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--accent-cyan);
  opacity: 0.8;
}

.floating-tag--2 .floating-tag__icon { color: var(--accent-violet); }

.floating-tag:hover {
  transform: none;
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.2),
    0 10px 28px rgba(0, 0, 0, 0.32),
    0 0 20px rgba(103, 232, 249, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.floating-tag--1 { top: 4%; right: -2%; animation-delay: 0s; }
.floating-tag--2 { bottom: 28%; left: -4%; animation-delay: -2s; }
.floating-tag--3 { bottom: 4%; right: 4%; animation-delay: -4s; }

@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes tagDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.85); }
}

/* Sections */
section { margin: 72px 0; }

/* ── Capabilities: premium glass grid ── */
#capabilities {
  position: relative;
  isolation: isolate;
  padding: 52px 0 56px;
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: var(--radius-xl);
}

#capabilities::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 75% 55% at 12% 18%, rgba(103, 232, 249, 0.11) 0%, transparent 58%),
    radial-gradient(ellipse 65% 50% at 88% 72%, rgba(167, 139, 250, 0.13) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 42%, rgba(103, 232, 249, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

#capabilities .section-head h2 {
  color: var(--text);
  text-shadow: 0 0 40px rgba(103, 232, 249, 0.12);
}

#capabilities .section-head p {
  color: var(--text-secondary);
  max-width: 56ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid--six .feature {
  grid-column: auto;
}

#capabilities .feature.glass-card {
  --card-accent: var(--accent-cyan);
  --card-accent-soft: rgba(103, 232, 249, 0.14);
  --card-accent-border: rgba(103, 232, 249, 0.32);
  padding: 24px 22px 22px;
  min-height: 220px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 48%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease),
    background 0.35s var(--ease);
}

#capabilities .feature.glass-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--card-accent) 0%, rgba(255, 255, 255, 0.15) 55%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}

#capabilities .feature[data-tier-required="pro"] {
  --card-accent: var(--accent-cyan);
  --card-accent-soft: rgba(103, 232, 249, 0.16);
  --card-accent-border: rgba(103, 232, 249, 0.38);
}

#capabilities .feature[data-tier-required="ultra"] {
  --card-accent: var(--ultra-gold);
  --card-accent-soft: var(--ultra-gold-soft);
  --card-accent-border: var(--ultra-gold-border);
}

#capabilities .feature[data-tier-required="user"] {
  --card-accent: #7dd3fc;
  --card-accent-soft: rgba(125, 211, 252, 0.14);
  --card-accent-border: rgba(125, 211, 252, 0.32);
}

#capabilities .feature.glass-card:hover {
  transform: none;
  border-color: var(--card-accent-border);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 50%, var(--card-accent-soft) 100%);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px var(--card-accent-border),
    0 0 40px rgba(103, 232, 249, 0.08),
    0 0 56px rgba(167, 139, 250, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#capabilities .feature[data-tier-required="ultra"].glass-card:hover {
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px var(--card-accent-border),
    0 0 48px var(--ultra-gold-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--card-accent, var(--accent-cyan));
  background: linear-gradient(145deg, var(--card-accent-soft, rgba(103, 232, 249, 0.14)) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid var(--card-accent-border, rgba(103, 232, 249, 0.28));
  box-shadow: 0 0 16px rgba(103, 232, 249, 0.12);
}

.feature {
  padding: 22px;
  min-height: 200px;
  position: relative;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

.feature p {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

.tag {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--card-accent, var(--accent-cyan));
  background: linear-gradient(135deg, var(--card-accent-soft, rgba(103, 232, 249, 0.12)) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid var(--card-accent-border, rgba(103, 232, 249, 0.22));
  letter-spacing: 0.02em;
}

.lock-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(212, 196, 168, 0.12);
  border: 1px solid rgba(212, 196, 168, 0.25);
}

#capabilities .feature[data-tier-required="pro"] .lock-badge,
.membership .tier-card[data-tier-required="pro"] .lock-badge {
  color: #a5f3fc;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.22) 0%, rgba(103, 232, 249, 0.08) 100%);
  border: 1px solid rgba(103, 232, 249, 0.45);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.25);
}

#capabilities .feature[data-tier-required="ultra"] .lock-badge,
.membership .tier-card[data-tier-required="ultra"] .lock-badge {
  color: var(--ultra-gold-light);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 165, 0, 0.12) 100%);
  border: 1px solid var(--ultra-gold-border);
  box-shadow: 0 0 18px var(--ultra-gold-glow);
}

.lock-badge.hidden { display: none; }

.feature[data-tier-locked="true"],
.tier-card[data-tier-locked="true"] {
  opacity: 0.62;
  filter: saturate(0.65);
}

.feature[data-tier-locked="true"]:hover,
.tier-card[data-tier-locked="true"]:hover {
  transform: none;
}

/* Pricing & commerce */
.pricing-section { margin-bottom: 48px; }

.pricing-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 4px;
}

.pricing-head-row h1 {
  margin: 0;
}

.pricing-admin-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-decoration: none;
  background: rgba(103, 232, 249, 0.08);
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pricing-admin-edit-btn:hover {
  background: rgba(103, 232, 249, 0.14);
  border-color: rgba(103, 232, 249, 0.48);
  filter: brightness(1.12);
}

.pricing-admin-edit-btn[hidden] {
  display: none !important;
}

.wallet-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.wallet-plan {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
}

.wallet-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.wallet-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 22px;
}

.billing-btn {
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-tertiary);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.billing-btn.active {
  color: #0c0f18;
  background: var(--gradient-btn);
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.3);
}

.save-pill {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(212, 196, 168, 0.15);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.pricing-card {
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.2), var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0c0f18;
  background: var(--gradient-btn);
}

.pricing-head h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-tier-tag {
  font-size: 0.82em;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0;
}

.pricing-desc {
  margin: 0 0 18px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 2.8em;
}

.pricing-price {
  margin-bottom: 18px;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-cycle {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.pricing-features {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.pricing-features li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.75rem;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
}

.pricing-card[data-current="true"] .pricing-btn[data-buy="user"],
.pricing-card[data-current="true"] .pricing-btn {
  pointer-events: none;
  opacity: 0.7;
}

.pricing-note {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.55;
  max-width: 62ch;
}

/* Commerce modals */
.commerce-modal[hidden] { display: none; }

.commerce-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.commerce-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(6px);
}

.commerce-modal-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  z-index: 1;
}

.commerce-modal-panel--wide { width: min(560px, 100%); }

.commerce-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.commerce-modal-panel h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.commerce-modal-desc {
  margin: 0 0 18px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.topup-payment-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  background: rgba(255, 193, 7, 0.08);
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.topup-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .topup-presets {
    grid-template-columns: repeat(2, 1fr);
  }
}

.topup-preset {
  padding: 10px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  white-space: nowrap;
}

.topup-preset.active,
.topup-preset:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(167, 139, 250, 0.12);
}

.commerce-field {
  display: block;
  margin-bottom: 16px;
}

.commerce-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-tertiary);
}


.commerce-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.92rem;
}

.payment-methods { margin-bottom: 18px; }

.payment-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.payment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.payment-chip.active {
  border-color: rgba(167, 139, 250, 0.5);
  color: var(--accent-violet);
  background: rgba(167, 139, 250, 0.12);
}

.commerce-modal-submit { width: 100%; justify-content: center; }

.commerce-modal-note {
  margin: 14px 0 0;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.purchase-summary {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  margin-bottom: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.purchase-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.purchase-balance-row strong {
  color: var(--accent-cyan);
  font-weight: 700;
}

.purchase-balance-row--warn strong { color: #f59e0b; }

.commerce-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-end;
}

.history-list {
  max-height: 360px;
  overflow-y: auto;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.history-item:last-child { border-bottom: none; }

.history-item-type { font-weight: 600; }
.history-item-meta { color: var(--text-tertiary); font-size: 0.75rem; }
.history-item-amount { font-weight: 700; text-align: right; }
.history-item-amount--credit { color: var(--accent-cyan); }
.history-item-amount--debit { color: #f87171; }

.history-empty {
  margin: 0;
  padding: 24px 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.86rem;
}

.commerce-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: toast-in 0.3s var(--ease);
}

.commerce-toast[hidden] { display: none; }

.profile-form { margin-top: 4px; }

.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-avatar-block {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.profile-avatar-wrap:hover,
.profile-avatar-wrap:focus-visible {
  border-color: var(--accent-cyan);
  transform: none;
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.18), 0 0 20px rgba(103, 232, 249, 0.2);
  outline: none;
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.profile-avatar-wrap:hover .profile-avatar-overlay,
.profile-avatar-wrap:focus-visible .profile-avatar-overlay {
  opacity: 1;
}

.profile-avatar-hint {
  margin: 0;
  max-width: 92px;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text-tertiary);
}

.profile-avatar-wrap.is-uploading {
  pointer-events: none;
  opacity: 0.65;
}

/* Avatar crop modal */
.avatar-cropper-overlay {
  z-index: 9100;
}

.avatar-cropper-dialog {
  width: min(400px, 100%);
  padding: 22px 20px 20px;
}

.avatar-cropper__hint {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.avatar-cropper__viewport {
  position: relative;
  width: 280px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.avatar-cropper__viewport.is-dragging {
  cursor: grabbing;
}

.avatar-cropper__img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  pointer-events: none;
  will-change: transform;
}

.avatar-cropper__mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(2, 6, 14, 0.62);
  border: 2px solid var(--accent-cyan);
}

.avatar-cropper__controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar-cropper__zoom-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.avatar-cropper__zoom-label input[type="range"] {
  width: 100%;
  accent-color: var(--accent-cyan);
}

.avatar-cropper__preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.avatar-cropper__preview-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.avatar-cropper__preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 480px) {
  .avatar-cropper-dialog {
    padding: 18px 14px 14px;
  }

  .avatar-cropper__viewport {
    width: min(280px, calc(100vw - 56px));
  }
}

.profile-field-grow { flex: 1; margin-bottom: 0; }

.commerce-field input[readonly] {
  opacity: 0.65;
  cursor: not-allowed;
}

.profile-contact-field > span {
  display: block;
  margin-bottom: 6px;
}

.profile-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-contact-row input {
  flex: 1;
  min-width: 0;
}

.profile-contact-row .btn-sm {
  flex-shrink: 0;
  white-space: nowrap;
}

.profile-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}

.profile-contact-hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted, var(--text-secondary));
}

.panel-dialog--contact {
  width: min(440px, calc(100vw - 32px));
  max-height: min(88vh, 720px);
  overflow: auto;
}

.profile-contact-modal-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.profile-contact-modal-body .commerce-field {
  margin-bottom: 8px;
}

body.profile-contact-modal-open {
  overflow: hidden;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Membership: premium role access ── */
.membership {
  position: relative;
  isolation: isolate;
  padding: 52px 28px 56px;
  margin-left: -28px;
  margin-right: -28px;
  border-radius: var(--radius-xl);
}

.membership::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 50% at 85% 12%, rgba(167, 139, 250, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 60% 45% at 10% 88%, rgba(103, 232, 249, 0.1) 0%, transparent 50%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.035) 0%, rgba(8, 12, 24, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.membership .section-head h2 {
  color: var(--text);
  text-shadow: 0 0 36px rgba(167, 139, 250, 0.14);
}

.membership .section-head p {
  color: var(--text-secondary);
}

.membership-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.tier-current {
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(103, 232, 249, 0.28);
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.12) 0%, rgba(167, 139, 250, 0.08) 100%);
  backdrop-filter: blur(12px);
  font-size: 0.84rem;
  color: var(--text-secondary);
  box-shadow: 0 0 24px rgba(103, 232, 249, 0.1);
}

.tier-current b {
  color: var(--accent-cyan);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(103, 232, 249, 0.35);
}

.tier-switch {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tier-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-tertiary);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tier-btn:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.tier-btn.active {
  color: #0c0f18;
  background: var(--gradient-btn);
  box-shadow:
    0 4px 20px rgba(167, 139, 250, 0.35),
    0 0 24px rgba(103, 232, 249, 0.2);
}

.tier-btn[data-tier-button="ultra"].active {
  color: var(--ultra-gold-text-on);
  background: var(--ultra-gold-gradient);
  box-shadow:
    0 4px 20px var(--ultra-gold-glow),
    0 0 24px rgba(255, 165, 0, 0.22);
}

.pricing-card[data-plan="ultra"] {
  border-color: var(--ultra-gold-border);
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.12), var(--shadow-lg);
}

.pricing-card[data-plan="ultra"] .pricing-btn--gold {
  --gold-btn-shine: rgba(255, 255, 255, 0.52);
  --gold-btn-border: rgba(255, 220, 120, 0.72);
  color: var(--ultra-gold-text-on);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, transparent 40%),
    linear-gradient(135deg, #fff0a8 0%, #ffd700 24%, #ffb300 54%, #ff8f00 100%);
  background-size: 100% 100%, 220% 220%;
  background-position: 0 0, 0% 50%;
  border: 1px solid var(--gold-btn-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 0 rgba(160, 90, 0, 0.14),
    0 4px 18px var(--ultra-gold-glow),
    0 10px 36px rgba(255, 130, 0, 0.24);
  font-weight: 800;
  letter-spacing: 0.03em;
  animation: ultraGoldBtnFlow 6s ease-in-out infinite;
}

@keyframes ultraGoldBtnFlow {
  0%, 100% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
}

.pricing-card[data-plan="ultra"] .pricing-btn--gold::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    var(--gold-btn-shine) 50%,
    transparent 62%,
    transparent 100%
  );
  background-size: 260% 100%;
  background-position: 130% 0;
  animation: ultraGoldBtnShine 5.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes ultraGoldBtnShine {
  0%, 72%, 100% {
    background-position: 130% 0;
    opacity: 0;
  }
  78% { opacity: 0.92; }
  88% {
    background-position: -30% 0;
    opacity: 0;
  }
}

.pricing-card[data-plan="ultra"] .pricing-btn--gold::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(255, 200, 50, 0);
  animation: ultraGoldBtnPulse 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  opacity: 1;
}

@keyframes ultraGoldBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 50, 0); }
  50% { box-shadow: 0 0 20px 3px rgba(255, 200, 50, 0.3); }
}

.pricing-card[data-plan="ultra"] .pricing-btn--gold:hover {
  filter: brightness(1.07) saturate(1.06);
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -1px 0 rgba(160, 90, 0, 0.1),
    0 0 0 1px rgba(255, 220, 120, 0.55),
    0 6px 26px var(--ultra-gold-glow),
    0 14px 44px rgba(255, 120, 0, 0.34);
}

.pricing-card[data-plan="ultra"] .pricing-btn--gold:active:not([disabled]) {
  filter: brightness(0.97);
  box-shadow:
    inset 0 2px 8px rgba(120, 70, 0, 0.22),
    0 2px 12px var(--ultra-gold-glow);
  transition-duration: 0.12s;
}

.pricing-card[data-current="true"][data-plan="ultra"] .pricing-btn--gold {
  opacity: 0.9;
  animation-duration: 8s;
}

.pricing-card[data-current="true"][data-plan="ultra"] .pricing-btn--gold::before {
  animation-duration: 7s;
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card[data-plan="ultra"] .pricing-btn--gold,
  .pricing-card[data-plan="ultra"] .pricing-btn--gold::before,
  .pricing-card[data-plan="ultra"] .pricing-btn--gold::after {
    animation: none !important;
  }
}

.tier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.membership .tier-card.glass-card {
  --tier-accent: var(--accent-cyan);
  --tier-accent-soft: rgba(103, 232, 249, 0.12);
  --tier-accent-border: rgba(103, 232, 249, 0.3);
  padding: 22px 20px 20px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 55%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.membership .tier-card.glass-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--tier-accent), transparent);
  opacity: 0.75;
  pointer-events: none;
}

.membership .tier-card[data-tier-required="user"] {
  --tier-accent: #94a3b8;
  --tier-accent-soft: rgba(148, 163, 184, 0.12);
  --tier-accent-border: rgba(148, 163, 184, 0.28);
}

.membership .tier-card[data-tier-required="pro"] {
  --tier-accent: var(--accent-cyan);
  --tier-accent-soft: rgba(103, 232, 249, 0.14);
  --tier-accent-border: rgba(103, 232, 249, 0.38);
}

.membership .tier-card[data-tier-required="ultra"] {
  --tier-accent: var(--ultra-gold);
  --tier-accent-soft: var(--ultra-gold-soft);
  --tier-accent-border: var(--ultra-gold-border);
  border-color: rgba(255, 193, 7, 0.24);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 215, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.membership .tier-card[data-tier-required="pro"].glass-card:hover {
  transform: none;
  border-color: var(--tier-accent-border);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    0 0 32px rgba(103, 232, 249, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.membership .tier-card[data-tier-required="ultra"].glass-card:hover {
  transform: none;
  border-color: var(--tier-accent-border);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    0 0 40px var(--ultra-gold-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.membership .tier-card[data-tier-required="user"].glass-card:hover {
  transform: none;
  border-color: var(--tier-accent-border);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(148, 163, 184, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tier-card {
  padding: 18px;
  position: relative;
}

.tier-card h4 {
  margin: 0 0 8px;
  padding-right: 52px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.tier-card p {
  margin: 0 0 14px;
  flex: 1;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

.mini-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  font-family: ui-monospace, monospace;
  font-weight: 600;
  color: var(--tier-accent, var(--accent-cyan));
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tier-accent-soft, rgba(103, 232, 249, 0.1)) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid var(--tier-accent-border, rgba(103, 232, 249, 0.2));
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.timeline-item {
  padding: 22px;
  text-align: center;
  position: relative;
}

.timeline-item b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--gradient-btn);
  color: #0c0f18;
  position: relative;
  z-index: 1;
}

.timeline-item span {
  display: block;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* CTA */
.cta-block {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(167, 139, 250, 0.12) 0%, transparent 60%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lg);
}

.cta-block h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta-block p {
  margin: 0 auto 24px;
  max-width: 46ch;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ── Light theme — home page (revenue sage palette) ── */
html[data-theme="light"] #capabilities::before {
  background:
    radial-gradient(ellipse 75% 55% at 12% 18%, rgba(176, 212, 184, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 65% 50% at 88% 72%, rgba(215, 249, 250, 0.18) 0%, transparent 55%),
    #f2f7f2;
  border-color: rgba(176, 212, 184, 0.45);
}

html[data-theme="light"] #capabilities .section-head h2,
html[data-theme="light"] .membership .section-head h2 {
  text-shadow: none;
  color: #2d5a4c;
}

html[data-theme="light"] #capabilities .section-head p {
  color: #547398;
}

html[data-theme="light"] #capabilities .feature[data-tier-required="pro"],
html[data-theme="light"] #capabilities .feature[data-tier-required="user"] {
  --card-accent: #2d7a6e;
  --card-accent-soft: rgba(176, 212, 184, 0.35);
  --card-accent-border: rgba(176, 212, 184, 0.62);
}

html[data-theme="light"] #capabilities .feature[data-tier-required="ultra"] {
  --card-accent: var(--ultra-gold-deep);
  --card-accent-soft: var(--ultra-gold-soft);
  --card-accent-border: var(--ultra-gold-border);
}

html[data-theme="light"] #capabilities .feature.glass-card {
  background: linear-gradient(165deg, #f8fcf9 0%, #e8f5e9 100%);
  border-color: rgba(176, 212, 184, 0.52);
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="light"] #capabilities .feature.glass-card:hover {
  background: linear-gradient(165deg, #f8fcf9 0%, #edf5e5 100%);
  border-color: var(--card-accent-border);
  box-shadow:
    0 8px 32px rgba(40, 80, 50, 0.12),
    0 0 0 1px var(--card-accent-border);
}

html[data-theme="light"] #capabilities .feature h3 {
  color: #2d5a4c;
}

html[data-theme="light"] #capabilities .feature p {
  color: #547398;
}

html[data-theme="light"] #capabilities .tag {
  color: #2d7a6e;
  background: rgba(176, 212, 184, 0.28);
  border-color: rgba(176, 212, 184, 0.55);
}

html[data-theme="light"] #capabilities .feature[data-tier-required="ultra"] .tag {
  color: var(--ultra-gold-text);
  background: var(--ultra-gold-soft);
  border-color: var(--ultra-gold-border);
}

html[data-theme="light"] #capabilities .feature[data-tier-required="pro"] .lock-badge {
  color: #2d7a6e;
  background: rgba(176, 212, 184, 0.28);
  border-color: rgba(176, 212, 184, 0.55);
  box-shadow: none;
}

html[data-theme="light"] #capabilities .feature[data-tier-required="ultra"] .lock-badge {
  color: var(--ultra-gold-text);
  background: var(--ultra-gold-soft);
  border-color: var(--ultra-gold-border);
  box-shadow: none;
}

html[data-theme="light"] .membership::before {
  background:
    radial-gradient(ellipse 70% 50% at 85% 12%, rgba(215, 249, 250, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse 60% 45% at 10% 88%, rgba(176, 212, 184, 0.22) 0%, transparent 50%),
    #f2f7f2;
  border-color: rgba(176, 212, 184, 0.45);
  box-shadow: none;
}

html[data-theme="light"] .membership .section-head p {
  color: #547398;
}

html[data-theme="light"] .tier-current {
  color: #547398;
  background: rgba(176, 212, 184, 0.22);
  border-color: rgba(176, 212, 184, 0.52);
  box-shadow: none;
  backdrop-filter: none;
}

html[data-theme="light"] .tier-current b {
  color: #2d5a4c;
  text-shadow: none;
}

html[data-theme="light"] .tier-switch {
  border-color: rgba(176, 212, 184, 0.52);
  background: #edf5e5;
  box-shadow: none;
  backdrop-filter: none;
}

html[data-theme="light"] .tier-btn {
  color: #547398;
}

html[data-theme="light"] .tier-btn:hover:not(.active) {
  color: #2d5a4c;
  background: rgba(176, 212, 184, 0.28);
}

html[data-theme="light"] .tier-btn.active {
  color: #fff;
  background: var(--gradient-btn);
  box-shadow: 0 4px 16px rgba(90, 150, 100, 0.28);
}

html[data-theme="light"] .tier-btn[data-tier-button="ultra"].active {
  color: var(--ultra-gold-text-on);
  background: var(--ultra-gold-gradient);
  box-shadow: 0 4px 16px var(--ultra-gold-glow);
}

html[data-theme="light"] .pricing-card[data-plan="ultra"] .pricing-btn--gold {
  --gold-btn-shine: rgba(255, 255, 255, 0.68);
  --gold-btn-border: rgba(202, 138, 4, 0.58);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(160, 90, 0, 0.1),
    0 4px 16px var(--ultra-gold-glow),
    0 8px 28px rgba(255, 160, 0, 0.2);
}

html[data-theme="light"] .pricing-card[data-plan="ultra"] .pricing-btn--gold:hover {
  filter: brightness(1.05) saturate(1.08);
}

html[data-theme="light"] .membership .tier-card[data-tier-required="user"],
html[data-theme="light"] .membership .tier-card[data-tier-required="pro"] {
  --tier-accent: #2d7a6e;
  --tier-accent-soft: rgba(176, 212, 184, 0.35);
  --tier-accent-border: rgba(176, 212, 184, 0.62);
}

html[data-theme="light"] .membership .tier-card[data-tier-required="ultra"] {
  --tier-accent: var(--ultra-gold-deep);
  --tier-accent-soft: var(--ultra-gold-soft);
  --tier-accent-border: var(--ultra-gold-border);
}

html[data-theme="light"] .membership .tier-card.glass-card {
  background: linear-gradient(165deg, #f8fcf9 0%, #e8f5e9 100%);
  border-color: rgba(176, 212, 184, 0.52);
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="light"] .membership .tier-card[data-tier-required="ultra"].glass-card {
  border-color: rgba(95, 195, 198, 0.45);
  box-shadow: var(--shadow-card);
}

html[data-theme="light"] .membership .tier-card.glass-card:hover,
html[data-theme="light"] .membership .tier-card[data-tier-required="user"].glass-card:hover,
html[data-theme="light"] .membership .tier-card[data-tier-required="pro"].glass-card:hover,
html[data-theme="light"] .membership .tier-card[data-tier-required="ultra"].glass-card:hover {
  transform: none;
  background: linear-gradient(165deg, #f8fcf9 0%, #edf5e5 100%);
  border-color: var(--tier-accent-border);
  box-shadow:
    0 8px 32px rgba(40, 80, 50, 0.12),
    0 0 0 1px var(--tier-accent-border);
}

html[data-theme="light"] .membership .tier-card h4 {
  color: #2d5a4c;
}

html[data-theme="light"] .membership .tier-card p {
  color: #547398;
}

html[data-theme="light"] .membership .mini-tag {
  color: #2d7a6e;
  background: rgba(176, 212, 184, 0.28);
  border-color: rgba(176, 212, 184, 0.55);
}

html[data-theme="light"] .membership .tier-card[data-tier-required="ultra"] .mini-tag {
  color: var(--ultra-gold-text);
  background: var(--ultra-gold-soft);
  border-color: var(--ultra-gold-border);
}

html[data-theme="light"] .membership .tier-card[data-tier-required="pro"] .lock-badge {
  color: #2d7a6e;
  background: rgba(176, 212, 184, 0.28);
  border-color: rgba(176, 212, 184, 0.55);
  box-shadow: none;
}

html[data-theme="light"] .membership .tier-card[data-tier-required="ultra"] .lock-badge {
  color: var(--ultra-gold-text);
  background: var(--ultra-gold-soft);
  border-color: var(--ultra-gold-border);
  box-shadow: none;
}

html[data-theme="light"] .pricing-admin-edit-btn {
  color: #3d7a4a;
  background: rgba(176, 212, 184, 0.22);
  border-color: rgba(139, 191, 149, 0.45);
}

html[data-theme="light"] .pricing-admin-edit-btn:hover {
  color: #2d5a4c;
  background: rgba(176, 212, 184, 0.32);
  border-color: rgba(61, 122, 74, 0.4);
  filter: none;
}

html[data-theme="light"] .cta-block {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(176, 212, 184, 0.2) 0%, transparent 60%),
    linear-gradient(165deg, #f8fcf9, #e8f5e9);
  border-color: rgba(176, 212, 184, 0.52);
  box-shadow: var(--shadow-card);
}

html[data-theme="light"] .cta-block h3 {
  color: #2d5a4c;
}

html[data-theme="light"] .cta-block p {
  color: #547398;
}

html[data-theme="light"] .timeline-item.glass-card {
  background: linear-gradient(165deg, #f8fcf9 0%, #e8f5e9 100%);
  border-color: rgba(176, 212, 184, 0.52);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="light"] .timeline-item b {
  color: #fff;
  background: var(--gradient-btn);
  box-shadow: 0 4px 12px rgba(90, 150, 100, 0.24);
}

html[data-theme="light"] .timeline-item span {
  color: #547398;
}

html[data-theme="light"] .metric {
  background: #f8fcf9;
  border-color: rgba(176, 212, 184, 0.52);
}

html[data-theme="light"] .metric strong {
  color: #2d5a4c;
}

html[data-theme="light"] .metric span {
  color: #547398;
}

html[data-theme="light"] .typing {
  color: #2d7a6e;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 28px;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-intro,
  .hero-metrics,
  .hero .showcase {
    grid-column: 1;
    grid-row: auto;
  }

  .hero h1 { max-width: none; font-size: clamp(1.65rem, 5vw, 2.25rem); }
  .showcase {
    max-width: min(340px, 100%);
    margin-inline: auto;
  }
  .feature-grid, .tier-cards, .timeline, .pricing-grid { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .showcase-frame {
    --showcase-rx: 0deg;
    --showcase-ry: 0deg;
    transform: none;
  }
  .showcase-reflection { display: none; }
  .floating-tag { display: none; }
  .showcase-ambient,
  .showcase-mesh { opacity: 0.5; }

  #capabilities,
  .membership {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .membership {
    padding: 40px 16px 44px;
  }

  #capabilities {
    padding: 40px 0 44px;
  }
}

/* ── Home page — premium mobile polish (≤768px) ─────────────── */
@media (max-width: 768px) {
  section {
    margin: 16px 0;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 16px;
  }

  /* Glass intro card — copy + CTAs only */
  .hero-intro {
    order: 1;
    padding: 16px 14px 14px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
      radial-gradient(ellipse 80% 60% at 12% 0%, rgba(103, 232, 249, 0.06) 0%, transparent 55%),
      rgba(8, 12, 22, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .hero .eyebrow {
    margin-bottom: 10px;
    padding: 4px 9px 4px 7px;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6.5vw, 1.95rem);
    line-height: 1.1;
    letter-spacing: -0.028em;
  }

  .typing {
    margin-top: 8px;
    min-height: 18px;
    font-size: 0.78rem;
  }

  .hero-desc {
    margin: 12px 0 16px;
    font-size: 0.84rem;
    line-height: 1.55;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Primary CTA full-width; ghost pills 2-col grid */
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.82rem;
    justify-content: center;
  }

  /* Capability pills — 3-col icon-on-top mini cards */
  .hero-metrics {
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 12px 6px 10px;
    min-width: 0;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 12, 22, 0.35);
  }

  .metric::before {
    content: "";
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(103, 232, 249, 0.28);
    background:
      linear-gradient(145deg, rgba(103, 232, 249, 0.18) 0%, rgba(103, 232, 249, 0.04) 100%);
    box-shadow: 0 0 12px rgba(103, 232, 249, 0.1);
  }

  .metric:nth-child(2)::before {
    border-color: rgba(167, 139, 250, 0.32);
    background:
      linear-gradient(145deg, rgba(167, 139, 250, 0.18) 0%, rgba(167, 139, 250, 0.04) 100%);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.1);
  }

  .metric:nth-child(3)::before {
    border-color: rgba(125, 211, 252, 0.28);
    background:
      linear-gradient(145deg, rgba(125, 211, 252, 0.16) 0%, rgba(167, 139, 250, 0.06) 100%);
    box-shadow: 0 0 12px rgba(103, 232, 249, 0.08);
  }

  .metric strong {
    font-size: 0.68rem;
    margin-bottom: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  .metric span {
    font-size: 0.6rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Extension mockup — compact app-preview strip */
  .showcase {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-inline: 0;
    perspective: none;
  }

  .showcase-ambient,
  .showcase-mesh,
  .showcase-glow {
    opacity: 0.25;
  }

  .showcase-frame {
    --showcase-rx: 0deg;
    --showcase-ry: 0deg;
    transform: none;
    border-radius: var(--radius-md);
    border: 1px solid rgba(103, 232, 249, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }

  .showcase-reflection,
  .floating-tag,
  .showcase-chrome {
    display: none;
  }

  .showcase-body--dash {
    padding: 10px 10px 8px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .mock-dash-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mock-dash-header .mock-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }

  .mock-dash-header .mock-title {
    font-size: 0.66rem;
    font-weight: 700;
  }

  .mock-dash-header .mock-sub {
    font-size: 0.5rem;
    letter-spacing: 0.04em;
    opacity: 0.75;
  }

  .mock-dash-grid {
    gap: 5px;
    margin-bottom: 0;
  }

  .mock-tile {
    min-height: 42px;
    padding: 5px 3px;
    gap: 3px;
    border-radius: 7px;
  }

  .mock-tile__icon {
    width: 13px;
    height: 13px;
  }

  .mock-tile__label {
    font-size: 0.5rem;
    line-height: 1.1;
  }

  .mock-revenue-preview {
    display: none;
  }

  /* Capabilities */
  #capabilities {
    padding: 24px 0 28px;
  }

  #capabilities .section-head {
    margin-bottom: 16px;
  }

  #capabilities .section-head h2 {
    font-size: clamp(1.05rem, 4.5vw, 1.15rem);
  }

  #capabilities .section-head p {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .feature-grid {
    gap: 12px;
  }

  #capabilities .feature.glass-card {
    min-height: 0;
    padding: 14px 12px;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    font-size: 0.68rem;
  }

  .feature h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .feature p {
    font-size: 0.84rem;
    margin-bottom: 12px;
    line-height: 1.6;
  }

  .tag {
    font-size: 0.66rem;
    padding: 4px 9px;
  }

  .lock-badge {
    top: 12px;
    right: 12px;
    font-size: 0.58rem;
    padding: 3px 8px;
  }

  /* Membership */
  .membership {
    padding: 20px 12px 24px;
    border-radius: var(--radius-lg);
  }

  .membership-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
  }

  .tier-current {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .tier-switch {
    display: flex;
    width: 100%;
    padding: 4px;
    margin-bottom: 14px;
  }

  .tier-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 6px;
    font-size: 0.72rem;
    text-align: center;
    line-height: 1.25;
  }

  .tier-cards {
    gap: 12px;
  }

  .membership .tier-card.glass-card {
    min-height: 0;
    padding: 14px 12px;
  }

  .tier-card h4 {
    font-size: 0.9rem;
    padding-right: 48px;
  }

  .tier-card p {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .mini-tag {
    font-size: 0.64rem;
    padding: 3px 8px;
  }

  /* Onboarding timeline */
  .section-head {
    margin-bottom: 16px;
  }

  .section-head h2 {
    font-size: clamp(1.05rem, 4.5vw, 1.15rem);
  }

  .section-head p {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .timeline {
    gap: 12px;
  }

  .timeline-item {
    padding: 14px 12px;
    text-align: left;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
  }

  .timeline-item b {
    margin-bottom: 0;
    width: 32px;
    height: 32px;
    font-size: 0.68rem;
  }

  .timeline-item span {
    font-size: 0.84rem;
    line-height: 1.55;
    text-align: left;
  }

  /* CTA block */
  .cta-block {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }

  .cta-block h3 {
    font-size: clamp(1.2rem, 5.5vw, 1.45rem);
  }

  .cta-block p {
    font-size: 0.86rem;
    margin-bottom: 20px;
  }

  .cta-block .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  /* Prevent horizontal overflow */
  .hero,
  .showcase,
  .showcase-frame,
  .showcase-body,
  .mock-revenue-preview {
    max-width: 100%;
    min-width: 0;
  }
}

/* Panel pages — pricing / wallet / topup compact (≤768px) */
@media (max-width: 768px) {
  .pricing-section--page {
    margin-bottom: 0;
  }

  .pricing-head-row {
    gap: 8px 10px;
    margin-bottom: 2px;
  }

  .pricing-head-row h1,
  .panel-card h1 {
    font-size: 1.1rem;
  }

  .wallet-bar {
    padding: 12px 14px;
    gap: 10px;
    margin-bottom: 12px;
  }

  .wallet-plan {
    font-size: 0.95rem;
  }

  .wallet-sub,
  .wallet-label {
    font-size: 0.72rem;
  }

  .wallet-actions {
    gap: 8px;
  }

  .wallet-actions .btn {
    min-height: 40px;
    font-size: 0.8rem;
  }

  .billing-toggle {
    margin-bottom: 14px;
  }

  .billing-btn {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .pricing-grid {
    gap: 10px;
    margin-bottom: 12px;
  }

  .pricing-card {
    padding: 16px 14px;
  }

  .pricing-head h3 {
    font-size: 0.95rem;
  }

  .pricing-desc {
    margin-bottom: 12px;
    font-size: 0.8rem;
    min-height: 0;
  }

  .pricing-price {
    margin-bottom: 12px;
  }

  .price-amount {
    font-size: 1.35rem;
  }

  .price-cycle {
    font-size: 0.72rem;
  }

  .pricing-features {
    margin-bottom: 14px;
  }

  .pricing-features li {
    padding: 5px 0;
    font-size: 0.82rem;
  }

  .pricing-section--page .pricing-btn,
  .pricing-btn {
    min-height: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .pricing-note {
    font-size: 0.78rem;
  }

  .commerce-field {
    margin-bottom: 12px;
  }

  .commerce-field span,
  .payment-label {
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  .commerce-field input {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.86rem;
  }

  .topup-presets {
    gap: 6px;
    margin-bottom: 12px;
  }

  .topup-preset {
    min-height: 40px;
    padding: 8px 6px;
    font-size: 0.74rem;
  }

  .payment-chip {
    min-height: 40px;
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .purchase-summary {
    padding: 12px;
    margin-bottom: 12px;
    font-size: 0.84rem;
  }

  .purchase-balance-row {
    padding: 6px 0;
    font-size: 0.8rem;
  }

  .commerce-modal-panel {
    padding: 18px 14px;
  }

  .commerce-modal-panel h3 {
    font-size: 1rem;
  }

  .commerce-modal-desc {
    font-size: 0.82rem;
  }
}

/* Very narrow phones (~390px and below) */
@media (max-width: 390px) {
  .hero-intro {
    padding: 16px 14px 14px;
  }

  .hero h1 {
    font-size: clamp(1.38rem, 7vw, 1.65rem);
  }

  .hero-desc {
    -webkit-line-clamp: 3;
    font-size: 0.8rem;
  }

  .hero-actions {
    gap: 6px;
  }

  .hero-actions .btn {
    font-size: 0.78rem;
    padding: 9px 10px;
  }

  .hero-metrics {
    gap: 6px;
  }

  .metric {
    padding: 10px 4px 8px;
    gap: 4px;
  }

  .metric::before {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .metric strong {
    font-size: 0.62rem;
  }

  .metric span {
    font-size: 0.56rem;
    -webkit-line-clamp: 3;
  }

  .mock-tile__label {
    font-size: 0.46rem;
  }

  .tier-btn {
    font-size: 0.66rem;
    padding: 9px 4px;
  }

  .membership {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Light theme — mobile home polish */
@media (max-width: 768px) {
  html[data-theme="light"] .hero-intro {
    border-color: rgba(176, 212, 184, 0.45);
    background:
      radial-gradient(ellipse 80% 60% at 12% 0%, rgba(176, 212, 184, 0.18) 0%, transparent 55%),
      rgba(248, 252, 249, 0.92);
    box-shadow: var(--shadow-card);
  }

  html[data-theme="light"] .metric {
    border-color: rgba(176, 212, 184, 0.35);
    background: rgba(248, 252, 249, 0.75);
  }

  html[data-theme="light"] .metric::before {
    border-color: rgba(176, 212, 184, 0.55);
    background: linear-gradient(145deg, rgba(176, 212, 184, 0.35) 0%, rgba(176, 212, 184, 0.12) 100%);
    box-shadow: none;
  }

  html[data-theme="light"] .metric:nth-child(2)::before {
    border-color: rgba(95, 195, 198, 0.45);
    background: linear-gradient(145deg, rgba(215, 249, 250, 0.45) 0%, rgba(215, 249, 250, 0.15) 100%);
  }

  html[data-theme="light"] .metric:nth-child(3)::before {
    border-color: rgba(139, 191, 149, 0.45);
    background: linear-gradient(145deg, rgba(176, 212, 184, 0.28) 0%, rgba(215, 249, 250, 0.2) 100%);
  }

  html[data-theme="light"] .showcase-frame {
    border-color: rgba(176, 212, 184, 0.4);
    box-shadow: var(--shadow-card);
  }
}

@media (max-width: 768px) and (hover: none) {
  #capabilities .feature.glass-card:hover,
  .membership .tier-card.glass-card:hover,
  .mock-tile:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-orb,
  .showcase-mesh,
  .mock-revenue-mesh,
  .floating-tag,
  .floating-tag__dot,
  .mock-bar,
  .showcase--live .mock-revenue-bars::after {
    animation: none !important;
  }

  .showcase--live .mock-bar,
  .mock-bar {
    transform: scaleY(1) !important;
    opacity: 0.95 !important;
    filter: none !important;
  }

  .showcase-frame {
    transition: none !important;
  }

  .mock-tile:hover,
  .floating-tag:hover {
    transform: none !important;
  }
}
