@charset "UTF-8";
/* ==========================================================================
   AIBuy Plan Selector & Editorial Order Configurator (v13)
   --------------------------------------------------------------------------
   PERMANENT DESIGN SPEC (See AIBUY_DESIGN_AND_ENGINEERING_SPEC.md):
   - Palette: Eye-friendly porcelain sage (#eaece6) / chalkboard emerald-dark (#0d2018),
     emerald accent (#1d6850 / #5ee6a8). Never harsh pure-white full-page bg.
   - Zero visible right-edge scrollbar (`scrollbar-width: none` + `display: none`).
   - Topbar: Verbatim Homepage left AIBuy brand capsule (101.5×34px wordmark,
     tap=back one level, long-press 450ms=home, 1s hover=Dynamic Island hint) +
     right theme toggle (multi-wave concentric radial reveal) & verbatim 4-item
     homepage account dropdown (`我的主页`, `消息私信`, `个人资料`, `退出登录`).
   - Liquid Glass: MUST use real Snell's-Law engine (`aibuy-pricing-glass-engine.js`,
     `[data-aibuy-lg="1"]`) on EVERY segmented pill (Personal/Team, Tier switcher,
     Team Seat presets 2–20). NEVER hand-roll fake CSS-only capsules.
   - Apple Morph: Paired with `aibuy-apple-morph.{css,js}` v4 — vertical stacked
     blur-slide + smooth FLIP width-glide (`$179.00` <-> `$89.50`, `90 天` <-> `180 天`).
   - Container Safety: All dynamic price/day/seat/badge boxes use `white-space: nowrap`,
     `overflow: visible` (no blur clipping), and tested up to `$25740.00` (50 seats × 12m).
   ========================================================================== */

:root,
html[data-theme="light"] {
  --pg-bg: #eaece6;
  --pg-surface: rgba(255, 255, 255, 0.84);
  --pg-surface-solid: #ffffff;
  --pg-surface-hi: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 246, 238, 0.92) 100%);
  --pg-border: rgba(20, 48, 36, 0.09);
  --pg-border-strong: rgba(20, 48, 36, 0.16);
  --pg-hi-border: rgba(31, 107, 83, 0.42);
  --pg-ink: #13251d;
  --pg-ink-secondary: #4c6056;
  --pg-ink-tertiary: #75877e;
  --pg-accent: #1d6850;
  --pg-accent-hover: #165440;
  --pg-accent-soft: rgba(29, 104, 80, 0.10);
  --pg-accent-ink: #165943;
  --pg-btn-dark-bg: #14261e;
  --pg-btn-dark-hover: #213a2f;
  --pg-btn-dark-ink: #ffffff;
  --pg-divider: rgba(20, 48, 36, 0.09);
  --pg-input-bg: rgba(255, 255, 255, 0.88);
  --pg-shadow-card:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 28px -18px rgba(16, 42, 30, 0.18);
  --pg-shadow-receipt:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 24px 52px -28px rgba(14, 42, 30, 0.22),
    0 2px 8px -4px rgba(14, 42, 30, 0.08);
  --pg-brand-ink: #172521;
  --lg-bar-bg: rgba(255, 255, 255, 0.72);
  --lg-bar-rim: rgba(255, 255, 255, 0.90);
  --lg-ink: #173428;
  --lg-accent: #1d6850;
  --lg-select-bg: rgba(255, 255, 255, 0.96);
  --lg-lens-bg: rgba(255, 255, 255, 0.36);
  --lg-back: #d6ddd3;
  --pg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --pg-bg: #0d2018;
  --pg-surface: rgba(18, 40, 31, 0.82);
  --pg-surface-solid: #12281f;
  --pg-surface-hi: linear-gradient(180deg, rgba(22, 50, 38, 0.94) 0%, rgba(15, 58, 41, 0.90) 100%);
  --pg-border: rgba(164, 214, 191, 0.13);
  --pg-border-strong: rgba(164, 214, 191, 0.23);
  --pg-hi-border: rgba(94, 230, 168, 0.44);
  --pg-ink: #eef7f2;
  --pg-ink-secondary: #a5c0b3;
  --pg-ink-tertiary: #759486;
  --pg-accent: #228765;
  --pg-accent-hover: #299d76;
  --pg-accent-soft: rgba(94, 230, 168, 0.15);
  --pg-accent-ink: #6ee7b7;
  --pg-btn-dark-bg: #edf6f1;
  --pg-btn-dark-hover: #d7e7df;
  --pg-btn-dark-ink: #0d2018;
  --pg-divider: rgba(164, 214, 191, 0.13);
  --pg-input-bg: rgba(10, 25, 19, 0.72);
  --pg-shadow-card:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 14px 34px -18px rgba(0, 0, 0, 0.56);
  --pg-shadow-receipt:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 26px 56px -22px rgba(0, 0, 0, 0.65);
  --pg-brand-ink: #f1faf5;
  --lg-bar-bg: rgba(20, 36, 29, 0.76);
  --lg-bar-rim: rgba(255, 255, 255, 0.18);
  --lg-ink: #cdeedd;
  --lg-accent: #5ee6a8;
  --lg-select-bg: rgba(46, 160, 120, 0.28);
  --lg-lens-bg: rgba(38, 134, 100, 0.32);
  --lg-back: #0d2018;
  color-scheme: dark;
}

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

/* Zero visible right-edge vertical scrollbar while keeping smooth scrolling */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--pg-bg);
  color: var(--pg-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html {
  background:
    radial-gradient(880px 460px at 14% 0%, rgba(29, 104, 80, 0.07), transparent 68%),
    radial-gradient(740px 420px at 88% 6%, rgba(52, 168, 128, 0.055), transparent 66%),
    var(--pg-bg);
  background-repeat: no-repeat;
}

html[data-theme="dark"] {
  background:
    radial-gradient(880px 460px at 14% 0%, rgba(46, 170, 124, 0.14), transparent 68%),
    radial-gradient(740px 420px at 88% 6%, rgba(24, 120, 88, 0.12), transparent 66%),
    var(--pg-bg);
  background-repeat: no-repeat;
}

body {
  background: transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

button, input {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }

/* ==========================================================================
   1. EXACT HOMEPAGE MULTI-WAVE RADIAL THEME REVEAL (View Transition API)
   ========================================================================== */
@keyframes aibuy-multi-theme-hold {
  from { opacity: 1; }
  to { opacity: 1; }
}

html.aibuy-multi-theme,
html.aibuy-multi-theme *,
html.aibuy-multi-theme *::before,
html.aibuy-multi-theme *::after {
  transition: none !important;
}

html.aibuy-multi-theme::view-transition,
html.aibuy-multi-theme::view-transition-group(*),
html.aibuy-multi-theme::view-transition-image-pair(*),
html.aibuy-multi-theme::view-transition-old(*),
html.aibuy-multi-theme::view-transition-new(*) {
  pointer-events: none !important;
}

html.aibuy-multi-theme::view-transition-group(root) {
  animation: none !important;
}

html.aibuy-multi-theme::view-transition-old(root) {
  animation: aibuy-multi-theme-hold 60s linear both !important;
  mix-blend-mode: normal !important;
  z-index: 1;
}

html.aibuy-multi-theme::view-transition-new(root) {
  animation: aibuy-multi-theme-hold 60s linear both !important;
  mix-blend-mode: normal !important;
  z-index: 2;
  mask-image: var(--aibuy-theme-mask, none);
  -webkit-mask-image: var(--aibuy-theme-mask, none);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
}

/* ==========================================================================
   2. VERBATIM HOMEPAGE LIQUID GLASS ENGINE STYLES (from aibuy-social.css)
   ========================================================================== */
.lg-capsule {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--lg-bar-bg);
  border: 1px solid var(--lg-bar-rim);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(16, 48, 34, 0.05),
    0 10px 26px -14px rgba(10, 36, 26, 0.22);
  backdrop-filter: blur(20px) saturate(185%);
  -webkit-backdrop-filter: blur(20px) saturate(185%);
}

html[data-theme="dark"] .lg-capsule {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 14px 30px -12px rgba(0, 0, 0, 0.56);
}

html:not(#_s1):not(#_s2):not(#_s3) [data-aibuy-lg="1"] {
  position: relative !important;
  overflow: visible !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
html:not(#_s1):not(#_s2):not(#_s3) [data-aibuy-lg="1"][data-lg-lifted="1"] { z-index: 20 !important; }
html:not(#_s1):not(#_s2):not(#_s3) [data-aibuy-lg="1"] > button,
html:not(#_s1):not(#_s2):not(#_s3) [data-aibuy-lg="1"] > a {
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
html:not(#_s1):not(#_s2):not(#_s3) [data-aibuy-lg="1"][data-lg-dragging="1"] > button,
html:not(#_s1):not(#_s2):not(#_s3) [data-aibuy-lg="1"][data-lg-dragging="1"] > a { cursor: grabbing !important; }

.aibuy-lg-select {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  border-radius: 999px !important;
  background: var(--lg-select-bg) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -0.5px 0 rgba(18, 42, 32, 0.05),
    0 2px 8px -2px rgba(10, 34, 24, 0.14),
    0 0 0 0.5px rgba(15, 42, 31, 0.05) !important;
  will-change: transform;
}
html[data-theme="dark"] .aibuy-lg-select {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(110, 231, 183, 0.2),
    0 2px 8px -2px rgba(0, 0, 0, 0.35) !important;
}

#aibuy-lg-portal {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  overflow: visible !important;
  z-index: 99999 !important;
}

.aibuy-lg-lens {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  z-index: 6 !important;
  pointer-events: none !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  opacity: 0;
  border: 0 !important;
  box-sizing: border-box !important;
  transform-origin: 50% 50% !important;
  contain: layout paint style !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background:
    radial-gradient(120% 95% at var(--lg-sheen-x, 50%) 0%, rgba(255, 255, 255, 0.46), rgba(240, 245, 238, 0.16) 54%, rgba(20, 44, 32, 0.04)),
    var(--lg-back, #d6ddd3) !important;
  box-shadow:
    0 0 0 1px rgba(18, 42, 32, 0.24),
    0 12px 28px -6px rgba(14, 34, 24, 0.24),
    0 2px 6px -1px rgba(14, 34, 24, 0.12) !important;
  will-change: transform;
}

html[data-theme="dark"] .aibuy-lg-lens {
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background:
    radial-gradient(120% 95% at var(--lg-sheen-x, 50%) 0%, rgba(255, 255, 255, 0.12), rgba(22, 46, 36, 0.26) 56%, rgba(8, 20, 15, 0.34)),
    var(--lg-back, #0d2018) !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.72),
    0 0 0 1.5px rgba(210, 245, 230, 0.24),
    0 14px 32px -6px rgba(0, 0, 0, 0.62),
    0 2px 8px -2px rgba(0, 0, 0, 0.36) !important;
}

.aibuy-lg-lens .aibuy-lg-stage {
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.aibuy-lg-lens .aibuy-lg-mirror {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  transform-origin: 0 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  will-change: transform;
}

html:not(#_s1):not(#_s2):not(#_s3):not(#_s4):not(#_s5):not(#_s6) .aibuy-lg-mirror > [data-lg-copy="1"] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  max-height: none !important;
  box-sizing: border-box !important;
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

html:not(#_s1):not(#_s2):not(#_s3):not(#_s4):not(#_s5) .aibuy-lg-mirror > [data-lg-copy="1"]::before {
  display: none !important;
  opacity: 0 !important;
}

html:not(#_s1):not(#_s2):not(#_s3):not(#_s4):not(#_s5) .aibuy-lg-mirror > [data-lg-copy="1"]::after {
  content: "" !important;
  display: block !important;
  opacity: 1 !important;
  position: absolute !important;
  inset: 4px 4px !important;
  border-radius: 999px !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background: rgba(255, 255, 255, 0.30) !important;
  box-shadow:
    inset 0 0 0 1.25px rgba(24, 54, 40, 0.30),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.72),
    inset 0 -0.5px 0 rgba(255, 255, 255, 0.45) !important;
}

html[data-theme="dark"]:not(#_s1):not(#_s2):not(#_s3):not(#_s4):not(#_s5) .aibuy-lg-mirror > [data-lg-copy="1"]::after {
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow:
    inset 0 0 0 1.25px rgba(206, 246, 228, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    inset 0 -1px 0 rgba(164, 224, 198, 0.34) !important;
}

html:not(#_s1):not(#_s2):not(#_s3):not(#_s4) .aibuy-lg-mirror > [data-lg-copy="1"] > .aibuy-lg-select,
html:not(#_s1):not(#_s2):not(#_s3):not(#_s4) .aibuy-lg-mirror > [data-lg-copy="1"] > .aibuy-lg-lens {
  display: none !important;
}

html:not(#_s1):not(#_s2):not(#_s3):not(#_s4) .aibuy-lg-mirror > [data-lg-copy="1"] > button,
html:not(#_s1):not(#_s2):not(#_s3):not(#_s4) .aibuy-lg-mirror > [data-lg-copy="1"] > a {
  z-index: 2 !important;
  border: 0 !important;
  outline: 0 !important;
  text-decoration: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--lg-accent) !important;
  font-weight: 600 !important;
  -webkit-mask: none !important;
  mask: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

html:not(#_s1):not(#_s2):not(#_s3):not(#_s4) .aibuy-lg-mirror > [data-lg-copy="1"] > button:after,
html:not(#_s1):not(#_s2):not(#_s3):not(#_s4) .aibuy-lg-mirror > [data-lg-copy="1"] > a:after {
  display: none !important;
  content: none !important;
}

.aibuy-lg-rim {
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 3 !important;
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.92),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.65),
    inset 1px 0 1px rgba(255, 255, 255, 0.45),
    inset -1px 0 1px rgba(255, 255, 255, 0.45) !important;
}

.aibuy-lg-rim:before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  padding: 1.25px !important;
  box-sizing: border-box !important;
  background: conic-gradient(
    from var(--lg-rim-ang, 200deg),
    rgba(255, 255, 255, 0.88),
    rgba(86, 224, 245, 0.56),
    rgba(164, 152, 255, 0.48),
    rgba(255, 134, 96, 0.46),
    rgba(255, 255, 255, 0.82),
    rgba(110, 231, 183, 0.50),
    rgba(255, 255, 255, 0.88)
  ) !important;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0) !important;
  opacity: 0.58 !important;
}

html[data-theme="dark"] .aibuy-lg-rim {
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.62),
    inset 0 -1px 0.5px rgba(186, 248, 224, 0.36),
    inset 0 0 0 1px rgba(0, 0, 0, 0.46) !important;
}

html[data-theme="dark"] .aibuy-lg-rim:before { opacity: 0.48 !important; }

/* ==========================================================================
   3. EXACT HOMEPAGE TOPBAR (Brand Capsule Tap-Back/Long-Press + Right Avatar)
   ========================================================================== */
.directory-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 60;
  pointer-events: none;
}

.directory-topbar > .brand {
  position: fixed;
  left: 10px;
  top: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--pg-brand-ink);
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  transform-origin: left center;
  background: var(--lg-bar-bg);
  border: 1px solid var(--lg-bar-rim);
  backdrop-filter: blur(20px) saturate(185%);
  -webkit-backdrop-filter: blur(20px) saturate(185%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    0 8px 22px -12px rgba(10, 36, 26, 0.22);
  transition:
    transform 220ms var(--pg-ease),
    box-shadow 260ms ease,
    border-color 240ms ease,
    background-color 220ms ease,
    padding-right 340ms var(--pg-ease);
}

.directory-topbar > .brand * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

html[data-theme="dark"] .directory-topbar > .brand {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 26px -10px rgba(0, 0, 0, 0.56);
}

.directory-topbar > .brand:hover { transform: translateY(-1px); }
.directory-topbar > .brand.is-hint-open { padding-right: 16px; z-index: 125; }
.directory-topbar > .brand.is-holding { transform: scale(0.968); border-color: rgba(29, 104, 80, 0.44); }
html[data-theme="dark"] .directory-topbar > .brand.is-holding { border-color: rgba(110, 231, 183, 0.44); }
.directory-topbar > .brand.is-home-fired {
  transform: scale(1.015);
  box-shadow: inset 0 0 0 1.5px rgba(29, 104, 80, 0.55), 0 10px 28px -8px rgba(20, 128, 99, 0.42);
}

.directory-topbar > .brand .aibuy-brand-wordmark {
  display: block;
  width: 101.5px;
  height: 34px;
  flex: 0 0 auto;
}

/* Dynamic-Island 1s Hover Rightward Extension & Bottom Hold Progress Shimmer */
.brand .aibuy-brand-ext {
  display: inline-grid;
  grid-template-columns: 0fr;
  align-items: center;
  flex: 0 0 auto;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-columns 340ms cubic-bezier(0.32, 0.72, 0, 1), opacity 190ms ease;
}

.brand.is-hint-open .aibuy-brand-ext {
  grid-template-columns: 1fr;
  opacity: 1;
  transition: grid-template-columns 440ms cubic-bezier(0.22, 1.04, 0.36, 1), opacity 240ms ease 55ms;
}

.brand .aibuy-brand-ext-inner {
  min-width: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.brand .aibuy-brand-sep {
  display: inline-block;
  width: 1px;
  height: 15px;
  margin: 0 10px 0 11px;
  border-radius: 999px;
  background: rgba(18, 42, 32, 0.16);
  flex: 0 0 1px;
}

html[data-theme="dark"] .brand .aibuy-brand-sep { background: rgba(210, 240, 226, 0.22); }

.brand .aibuy-brand-tip {
  display: inline-flex;
  align-items: center;
  padding-right: 4px;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.01em;
  line-height: 1;
  color: rgba(18, 44, 34, 0.78);
  transform: translate3d(-6px, 0, 0);
  transition: transform 380ms var(--pg-ease), color 180ms ease;
}

html[data-theme="dark"] .brand .aibuy-brand-tip { color: rgba(226, 245, 236, 0.84); }
.brand.is-hint-open .aibuy-brand-tip { transform: translate3d(0, 0, 0); }
.brand.is-holding .aibuy-brand-tip { color: #166549; }
html[data-theme="dark"] .brand.is-holding .aibuy-brand-tip { color: #6ee7b7; }

.brand .aibuy-brand-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981 0%, #1b6b51 65%, #34d399 100%);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 140ms ease, opacity 140ms ease;
}

html[data-theme="dark"] .brand .aibuy-brand-progress { background: linear-gradient(90deg, #34d399 0%, #6ee7b7 100%); }
.brand.is-holding .aibuy-brand-progress {
  opacity: 1;
  transform: scaleX(1);
  transition: transform 340ms cubic-bezier(0.25, 0.6, 0.35, 1), opacity 80ms ease;
}
.brand.is-home-fired .aibuy-brand-progress { opacity: 1; transform: scaleX(1); transition: none; }

/* Exact Homepage Top-Right Capsule (Theme Toggle + User Avatar / Login — NO Search Box!) */
.directory-topbar > .top-actions {
  position: fixed;
  right: 10px;
  top: 8px;
  height: 42px;
  padding: 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  pointer-events: auto;
  background: var(--lg-bar-bg);
  border: 1px solid var(--lg-bar-rim);
  backdrop-filter: blur(20px) saturate(185%);
  -webkit-backdrop-filter: blur(20px) saturate(185%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    0 8px 22px -12px rgba(10, 36, 26, 0.22);
}

html[data-theme="dark"] .directory-topbar > .top-actions {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 26px -10px rgba(0, 0, 0, 0.56);
}

.top-actions .theme-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pg-ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--pg-ease);
}

.top-actions .theme-toggle:hover {
  background: rgba(20, 48, 36, 0.08);
  color: var(--pg-ink);
}

html[data-theme="dark"] .top-actions .theme-toggle:hover { background: rgba(255, 255, 255, 0.10); }
.top-actions .theme-toggle:active { transform: scale(0.92); }
.top-actions .theme-toggle svg { width: 17px; height: 17px; }

.topbar-account-slot {
  position: static;
  display: inline-flex;
  align-items: center;
}

.top-actions .account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pg-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.top-actions .account-link:hover {
  background: rgba(20, 48, 36, 0.07);
}

html[data-theme="dark"] .top-actions .account-link:hover {
  background: rgba(255, 255, 255, 0.10);
}

.top-actions .account-link svg { width: 15px; height: 15px; }

.top-actions .account-email-trigger {
  height: 34px;
  min-height: 34px;
  padding: 0 10px 0 5px;
  gap: 7px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--pg-ink);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  max-width: 190px;
  transition: background-color 160ms ease, color 160ms ease;
}

.top-actions .account-email-trigger:hover,
.top-actions .account-email-trigger[aria-expanded="true"] {
  background: color-mix(in srgb, var(--pg-ink, #162921) 6%, transparent);
  border-color: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .top-actions .account-email-trigger:hover,
html[data-theme="dark"] .top-actions .account-email-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.09);
}

.top-actions .account-email-trigger img.profile-menu-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
  flex: 0 0 24px;
  object-fit: cover;
  background: var(--pg-accent-soft);
}

.top-actions .account-email-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions .account-email-trigger svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Verbatim live main-site .account-email-dropdown (from aibuy-social-4fbd00b0e4.css) */
.account-email-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 192px;
  padding: 6px;
  border-radius: 24px;
  corner-shape: round;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(28, 48, 38, 0.14);
  background: rgba(226, 232, 223, 0.96);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 14px 36px -12px rgba(10, 34, 24, 0.2), 0 2px 6px rgba(10, 34, 24, 0.06);
  z-index: 120;
}

html[data-theme="dark"] .account-email-dropdown {
  background: rgba(18, 36, 29, 0.96);
  border-color: rgba(154, 204, 181, 0.16);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.55);
}

.account-email-dropdown > a,
.account-email-dropdown > button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 13px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  corner-shape: round;
  box-sizing: border-box;
  background: transparent;
  color: var(--pg-ink);
  font-size: 13px;
  font-weight: 550;
  line-height: 1;
  text-decoration: none;
  text-align: left;
  transition: background-color 140ms ease, color 140ms ease;
}

.account-email-dropdown > a:hover,
.account-email-dropdown > button:hover {
  background: color-mix(in srgb, var(--pg-accent, #1f6b53) 10%, transparent);
  color: var(--pg-accent-ink, #1f6b53);
}

.account-email-dropdown > a svg,
.account-email-dropdown > button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.86;
}

/* ==========================================================================
   4. STEP 1 — ALL-PLANS SELECTION VIEW (Elevated Porcelain Glass Craft)
   ========================================================================== */
.pricing-page {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px 28px;
}

.step-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: stepFadeIn 280ms var(--pg-ease) both;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pricing-header {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 16px;
}

.pricing-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--pg-ink);
}

.pricing-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pricing-seg {
  padding: 4px;
  gap: 2px;
  height: 44px;
}

.pricing-seg > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 36px;
  padding: 0 22px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pg-ink-secondary);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms ease;
}

.pricing-seg > button.active,
.pricing-seg > button[aria-checked="true"] {
  color: var(--lg-accent);
  font-weight: 650;
}

.pricing-grid {
  width: 100%;
  max-width: 1384px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pricing-grid.is-team {
  max-width: 780px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
  border-radius: 22px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-border);
  box-shadow: var(--pg-shadow-card);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform 220ms var(--pg-ease), border-color 200ms ease, box-shadow 220ms ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: var(--pg-border-strong);
}

.plan-card.is-highlight {
  background: var(--pg-surface-hi);
  border: 1.5px solid var(--pg-hi-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 44px -22px rgba(29, 104, 80, 0.28);
}

html[data-theme="dark"] .plan-card.is-highlight {
  box-shadow:
    inset 0 1px 0 rgba(110, 231, 183, 0.16),
    0 22px 48px -20px rgba(0, 0, 0, 0.65);
}

.plan-top {
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pg-divider);
}

.plan-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.plan-name {
  margin: 0;
  font-size: 26px;
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--pg-ink);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 660;
  background: var(--pg-accent-soft);
  color: var(--pg-accent-ink);
}

.plan-headline {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--pg-ink);
}

.plan-summary {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.44;
  color: var(--pg-ink-secondary);
  min-height: 34px;
}

.plan-cta {
  width: 100%;
  height: 41px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 640;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color 180ms ease, transform 140ms var(--pg-ease), box-shadow 200ms ease;
}

.plan-cta svg { width: 15px; height: 15px; }
.plan-cta:active:not(:disabled) { transform: scale(0.98); }

.plan-cta.is-solid {
  background: var(--pg-btn-dark-bg);
  color: var(--pg-btn-dark-ink);
}

.plan-cta.is-solid:hover:not(:disabled) {
  background: var(--pg-btn-dark-hover);
}

.plan-cta.is-accent {
  background: linear-gradient(135deg, #1d6850 0%, #157d5d 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px -10px rgba(21, 125, 93, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.plan-cta.is-accent:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.plan-cta.is-outline {
  background: transparent;
  border-color: var(--pg-border-strong);
  color: var(--pg-ink-tertiary);
}

.plan-price-block {
  margin-top: 14px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.plan-currency {
  font-size: 17px;
  font-weight: 600;
  color: var(--pg-ink-secondary);
  transform: translateY(-10px);
}

.plan-amount {
  font-size: 38px;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--pg-ink);
}

.plan-unit {
  font-size: 13px;
  color: var(--pg-ink-tertiary);
  margin-left: 4px;
}

.plan-promo-line {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 620;
  color: var(--pg-accent-ink);
}

.plan-promo-line.is-muted {
  font-weight: 500;
  color: var(--pg-ink-tertiary);
}

.plan-perks-section {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.plan-perks-lead {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 640;
  color: var(--pg-ink-secondary);
}

.plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.48;
  color: var(--pg-ink);
}

.plan-feat-ico {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--pg-accent-ink);
  opacity: 0.88;
}

.pricing-footer {
  margin-top: 18px;
}

.footer-link-btn {
  border: 0;
  background: transparent;
  color: var(--pg-ink-secondary);
  font-size: 13px;
  font-weight: 560;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background-color 150ms ease, color 150ms ease;
}

.footer-link-btn:hover {
  background: var(--pg-accent-soft);
  color: var(--pg-accent-ink);
}

/* ==========================================================================
   5. STEP 2 — APPLE / STRIPE EDITORIAL ORDER CONFIGURATOR (Centered & Compact)
   ========================================================================== */
#step-configure.step-view {
  flex: 1 1 auto;
  justify-content: center;
  width: 100%;
}

.cfg-wrap {
  width: 100%;
  max-width: 1280px;
  margin: auto 0;
  padding-top: 52px;
  padding-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cfg-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cfg-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cfg-title-block h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 740;
  letter-spacing: -0.032em;
  line-height: 1.15;
  color: var(--pg-ink);
  overflow: visible;
}

.cfg-title-block p {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--pg-ink-secondary);
}

.cfg-tier-pill {
  padding: 4px;
  height: 42px;
  gap: 2px;
}

.cfg-tier-pill > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 18px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--pg-ink-secondary);
  white-space: nowrap;
  transition: color 160ms ease;
}

.cfg-tier-pill > button.active {
  color: var(--lg-accent);
  font-weight: 660;
}

/* Main 2-Column Split: Wide Editorial Left + Generous 420px Receipt Right */
.cfg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: start;
}

.cfg-canvas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cfg-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cfg-section + .cfg-section {
  padding-top: 12px;
  border-top: 1px solid var(--pg-divider);
}

.cfg-section-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cfg-section-label {
  margin: 0;
  font-size: 14.5px;
  font-weight: 680;
  letter-spacing: -0.01em;
  color: var(--pg-ink);
}

.cfg-promo-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--pg-accent-soft);
  color: var(--pg-accent-ink);
  font-size: 12px;
  font-weight: 640;
}

/* 2×2 Tactile Billing Duration Cards */
.cycle-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cycle-opt {
  position: relative;
  text-align: left;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--pg-border);
  background: var(--pg-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 180ms var(--pg-ease), background-color 180ms ease, transform 160ms var(--pg-ease), box-shadow 200ms ease;
}

html[data-theme="dark"] .cycle-opt {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cycle-opt:hover {
  border-color: var(--pg-border-strong);
  transform: translateY(-1px);
}

.cycle-opt.is-selected {
  border-color: var(--pg-accent);
  background: var(--pg-surface-hi);
  box-shadow:
    0 0 0 1px var(--pg-accent),
    0 14px 28px -18px rgba(29, 104, 80, 0.36);
}

html[data-theme="dark"] .cycle-opt.is-selected {
  border-color: #4ade9d;
  box-shadow:
    0 0 0 1px #4ade9d,
    0 16px 32px -16px rgba(0, 0, 0, 0.62);
}

.cycle-opt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cycle-opt-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cycle-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--pg-border-strong);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.cycle-radio::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  transform: scale(0);
  transition: transform 180ms var(--pg-ease);
}

.cycle-opt.is-selected .cycle-radio {
  border-color: var(--pg-accent);
  background: var(--pg-accent);
}

html[data-theme="dark"] .cycle-opt.is-selected .cycle-radio {
  border-color: #34d399;
  background: #34d399;
}

html[data-theme="dark"] .cycle-opt.is-selected .cycle-radio::after {
  background: #0d2018;
}

.cycle-opt.is-selected .cycle-radio::after {
  transform: scale(1);
}

.cycle-opt-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--pg-ink);
  letter-spacing: -0.015em;
}

.cycle-opt-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pg-accent-soft);
  color: var(--pg-accent-ink);
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
}

.cycle-opt-tag.is-muted {
  background: rgba(20, 48, 36, 0.06);
  color: var(--pg-ink-secondary);
  font-weight: 560;
}

html[data-theme="dark"] .cycle-opt-tag.is-muted {
  background: rgba(255, 255, 255, 0.07);
}

.cycle-opt-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.cycle-opt-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.cycle-opt-days {
  font-size: 13px;
  font-weight: 620;
  color: var(--pg-ink);
  white-space: nowrap;
  overflow: visible;
}

.cycle-opt-eff {
  font-size: 12px;
  color: var(--pg-ink-tertiary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: visible;
}

.cycle-opt-price {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  font-size: 20px;
  font-weight: 730;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--pg-ink);
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
}

/* Sleek Horizontal Validity Timeline (Compact!) */
.validity-rail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 2px 0;
}

.validity-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}

.validity-node.is-end {
  text-align: right;
  align-items: flex-end;
}

.validity-k {
  font-size: 11.5px;
  color: var(--pg-ink-tertiary);
}

.validity-date {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  color: var(--pg-ink);
  white-space: nowrap;
  overflow: visible;
}

.validity-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  min-width: 0;
}

.validity-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pg-accent) 0%, rgba(29, 104, 80, 0.25) 100%);
  transform: translateY(-50%);
}

html[data-theme="dark"] .validity-track::before {
  background: linear-gradient(90deg, #34d399 0%, rgba(52, 211, 153, 0.25) 100%);
}

.validity-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--pg-bg);
  border: 1px solid var(--pg-hi-border);
  color: var(--pg-accent-ink);
  font-size: 12px;
  font-weight: 660;
  line-height: 1.35;
  white-space: nowrap;
  overflow: visible;
}

/* Team Seats & Branding Controls (Real Snell Liquid Glass Presets + Glass Stepper!) */
.seat-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.seat-controls-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.seat-presets.lg-capsule {
  padding: 4px;
  height: 42px;
  gap: 2px;
}

.seat-presets.lg-capsule > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 13px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pg-ink-secondary);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color 160ms ease;
}

.seat-presets.lg-capsule > button.active {
  color: var(--lg-accent);
  font-weight: 660;
}

/* Dynamic-Island Smooth Pop-Out Custom Seat Stepper */
.seat-stepper-shell {
  display: inline-grid;
  grid-template-columns: 0fr;
  align-items: center;
  opacity: 0;
  transform: translate3d(-12px, 0, 0) scale(0.92);
  transform-origin: left center;
  pointer-events: none;
  overflow: hidden;
  transition:
    grid-template-columns 340ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.seat-stepper-shell.is-open {
  grid-template-columns: 1fr;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
  overflow: visible;
}

.seat-stepper-inner {
  min-width: 0;
  padding: 2px 0;
}

.seat-stepper.lg-capsule {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 42px;
  padding: 4px;
  border-color: var(--pg-hi-border);
  transition: border-color 180ms ease;
}

.seat-step-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--pg-ink);
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 140ms ease, color 140ms ease, transform 120ms ease;
}

.seat-step-btn:hover:not(:disabled) {
  background: var(--pg-accent-soft);
  color: var(--pg-accent-ink);
}

.seat-step-btn:active:not(:disabled) { transform: scale(0.92); }
.seat-step-btn:disabled { opacity: 0.35; }

.seat-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 0 4px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--pg-accent-ink);
  white-space: nowrap;
  overflow: visible;
}

.seat-metrics {
  font-size: 12.5px;
  line-height: 1.5;
  min-height: 20px;
  color: var(--pg-accent-ink);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

.cfg-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cfg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cfg-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pg-ink-secondary);
}

.cfg-input {
  width: 100%;
  height: 39px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--pg-border-strong);
  background: var(--pg-input-bg);
  color: var(--pg-ink);
  font-size: 13.5px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.cfg-input:focus {
  border-color: var(--pg-accent);
  box-shadow: 0 0 0 3px var(--pg-accent-soft);
}

/* Right Elevated Order Receipt Card */
.cfg-receipt {
  position: sticky;
  top: 64px;
  padding: 22px 22px 20px;
  border-radius: 22px;
  background: var(--pg-surface-solid);
  border: 1px solid var(--pg-border);
  box-shadow: var(--pg-shadow-receipt);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.receipt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.receipt-eyebrow {
  font-size: 12px;
  font-weight: 640;
  color: var(--pg-ink-tertiary);
}

.receipt-plan-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pg-divider);
}

.receipt-plan-name {
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.02em;
  color: var(--pg-ink);
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
}

.receipt-plan-rate {
  font-size: 13px;
  color: var(--pg-ink-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
}

.receipt-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.receipt-k {
  color: var(--pg-ink-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.receipt-v {
  font-weight: 620;
  color: var(--pg-ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  overflow: visible;
}

.receipt-row.is-accent .receipt-v {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pg-accent-ink);
  background: var(--pg-accent-soft);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 660;
  white-space: nowrap;
  overflow: visible;
}

.receipt-total {
  padding-top: 12px;
  border-top: 1px dashed var(--pg-border-strong);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.receipt-total-k {
  font-size: 14px;
  font-weight: 650;
  color: var(--pg-ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.receipt-total-v {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
}

.receipt-total-num {
  display: inline-flex;
  align-items: baseline;
  font-size: 30px;
  font-weight: 760;
  letter-spacing: -0.03em;
  color: var(--pg-ink);
  white-space: nowrap;
  overflow: visible;
}

.receipt-total-cur {
  font-size: 13px;
  font-weight: 620;
  color: var(--pg-ink-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

.cfg-error {
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.10);
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.45;
}

html[data-theme="dark"] .cfg-error {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-actions .plan-cta {
  height: 46px;
  font-size: 14.5px;
}

.receipt-secondary-btn {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--pg-border-strong);
  background: transparent;
  color: var(--pg-ink-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease;
}

.receipt-secondary-btn:hover:not(:disabled) {
  background: var(--pg-accent-soft);
  color: var(--pg-accent-ink);
}

.receipt-footnote {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--pg-ink-tertiary);
  text-align: center;
}

/* ==========================================================================
   6. RIGHT-TO-LEFT SLIDING UNPAID-ORDER TOAST (Active Pending Return ONLY!)
   ========================================================================== */
.aibuy-pay-toast-wrap {
  position: fixed;
  top: 62px;
  right: 14px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  max-width: min(390px, calc(100vw - 24px));
}

.aibuy-pay-toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px 11px 14px;
  border-radius: 16px;
  border: 1px solid var(--pg-border);
  border-left: 3.5px solid var(--pg-accent);
  background: rgba(255, 255, 255, 0.94);
  color: var(--pg-ink);
  backdrop-filter: blur(22px) saturate(185%);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 34px -12px rgba(10, 34, 24, 0.25);
  transform: translate3d(calc(100% + 32px), 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: transform 320ms var(--pg-ease), opacity 220ms ease;
}

html[data-theme="dark"] .aibuy-pay-toast {
  background: rgba(18, 38, 29, 0.94);
  border-color: rgba(164, 214, 191, 0.18);
  border-left-color: #34d399;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 38px -12px rgba(0, 0, 0, 0.56);
}

.aibuy-pay-toast.is-show {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

.aibuy-pay-toast.is-leaving {
  transform: translate3d(calc(100% + 28px), 0, 0);
  opacity: 0;
  pointer-events: none;
}

.aibuy-pay-toast.is-pending { border-left-color: #d97706; }
html[data-theme="dark"] .aibuy-pay-toast.is-pending { border-left-color: #fbbf24; }

.aibuy-pay-toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pg-accent);
  flex-shrink: 0;
}

.aibuy-pay-toast.is-pending .aibuy-pay-toast-dot {
  background: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.16);
}

html[data-theme="dark"] .aibuy-pay-toast.is-pending .aibuy-pay-toast-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.aibuy-pay-toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.aibuy-pay-toast-title {
  font-size: 13px;
  font-weight: 660;
  line-height: 1.35;
}

.aibuy-pay-toast-sub {
  font-size: 12px;
  color: var(--pg-ink-secondary);
  line-height: 1.35;
}

.aibuy-pay-toast-action {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--pg-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 640;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.aibuy-pay-toast-action:hover { background: var(--pg-accent-hover); }

.aibuy-pay-toast-close {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pg-ink-tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aibuy-pay-toast-close:hover {
  background: rgba(20, 48, 36, 0.08);
  color: var(--pg-ink);
}

.aibuy-pay-toast-close svg { width: 14px; height: 14px; }

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
  }
  .pricing-grid.is-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 780px;
  }
}

@media (max-width: 900px) {
  .directory-topbar > .brand .aibuy-brand-wordmark {
    width: 77.6px;
    height: 26px;
  }
  .cfg-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .cfg-receipt {
    position: static;
  }
}

@media (max-width: 640px) {
  .pricing-page {
    padding: 58px 14px 36px;
  }
  .pricing-grid,
  .pricing-grid.is-team {
    grid-template-columns: minmax(0, 1fr);
  }
  .cfg-wrap {
    padding-top: 12px;
  }
  .cfg-title-block h1 {
    font-size: 25px;
  }
  .cycle-cards,
  .cfg-inputs {
    grid-template-columns: minmax(0, 1fr);
  }
  .validity-rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .validity-node.is-end {
    align-items: flex-start;
    text-align: left;
  }
}
