/* ============================================================
   Insight9 Shop — Clean Commercial Design System
   Inspired by Vercel / Stripe / Apple. Light, minimal, high-conversion.
   ============================================================ */

:root {
  /* === COLOR SYSTEM (3-5 colors) === */
  --bg: #ffffff;
  --bg-subtle: #f6f7f9;
  --surface: #ffffff;
  --border: #e6e8eb;
  --border-strong: #d4d8dd;

  --text: #0a0a0a;
  --text-muted: #5b6573;
  --text-soft: #8a93a0;

  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff4ff;
  --ai-cyan: #0891b2;
  --ai-ink: #101828;

  --success: #16a34a;
  --success-soft: #ecfdf3;
  --warning: #b45309;
  --warning-soft: #fff7ed;
  --danger: #dc2626;

  /* === RADIUS === */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* === SHADOWS === */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 1px 3px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 18px 48px rgba(10, 10, 10, 0.10);

  /* === FONTS === */
  --font-sans: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  /* === TRANSITIONS === */
  --t-fast: 140ms ease;
  --t-norm: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  /* === LAYOUT === */
  --nav-height: 64px;
  --max-width: 1120px;
}

* , *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); border: 3px solid var(--bg); }

a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { color: var(--text); letter-spacing: 0; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.text-mono { font-family: var(--font-mono); }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .lead { margin-top: 16px; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.divider { height: 1px; background: var(--border); border: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #2a2a2a; color: #fff; }

.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--text); background: var(--bg-subtle); color: var(--text); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg-subtle); }

.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
}
.badge-brand { background: var(--brand-soft); color: var(--brand-dark); border-color: transparent; }
.badge-soft { background: var(--bg-subtle); color: var(--text-muted); border-color: transparent; }
.badge-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--t-norm), box-shadow var(--t-norm), transform var(--t-norm);
}
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-flat { border-radius: var(--radius-md); padding: 22px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }

.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.nav-logo-mark {
  width: 30px; height: 30px;
  background: var(--surface);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--t-fast);
}
.nav-link:hover { color: var(--text); background: var(--bg-subtle); }
.nav-link.active { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 74px 0 42px; text-align: left; position: relative; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    radial-gradient(48% 52% at 12% 8%, rgba(8, 145, 178, 0.10), transparent 68%),
    linear-gradient(180deg, rgba(246, 247, 249, 0.92), rgba(255, 255, 255, 0.98));
  background-size: 44px 44px, 44px 44px, auto, auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
  gap: 44px;
  align-items: center;
}
.hero h1 { max-width: 740px; }
.hero .lead { max-width: 620px; margin: 22px 0 0; font-size: 1.18rem; }
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.hero-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}
.hero-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
.hero-meta { margin-top: 24px; display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; color: var(--text-soft); font-size: 0.88rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-console {
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 252, 0.94));
  box-shadow: var(--shadow-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.hero-console::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--ai-cyan), var(--success));
}
.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.console-time { color: var(--text-soft); font-size: 0.82rem; font-weight: 700; }
.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.console-metrics div {
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}
.console-metrics strong { display: block; font-size: 1.45rem; line-height: 1; letter-spacing: 0; }
.console-metrics span { display: block; margin-top: 6px; color: var(--text-muted); font-size: 0.78rem; font-weight: 700; }
.console-flow { display: grid; gap: 10px; }
.console-flow div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.console-flow span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--ai-cyan));
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
}
.console-flow b { line-height: 1.1; }
.console-flow small { color: var(--text-muted); font-size: 0.8rem; }
.console-terminal {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--ai-ink);
  color: #d9f7ff;
  display: grid;
  gap: 4px;
}
.console-terminal span {
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.console-terminal code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #f8fafc;
}
.market-strip {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}
.market-strip-copy { display: grid; gap: 2px; min-width: 220px; }
.market-strip-copy b { font-size: 0.96rem; }
.market-strip-copy span { color: var(--text-muted); font-size: 0.86rem; }
.market-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.market-chip {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
}
.market-chip:hover { color: var(--brand-dark); border-color: rgba(37, 99, 235, 0.36); background: var(--brand-soft); }
.home-stats-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.home-stat-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}
.home-stat-card span,
.home-stat-card small { display: block; color: var(--text-muted); font-size: 0.78rem; font-weight: 700; }
.home-stat-card strong { display: block; margin: 6px 0; font-size: 1.55rem; letter-spacing: 0; }
.home-stat-card small { color: var(--text-soft); }


/* ============================================================
   AI SYSTEM ARCHITECTURE
   ============================================================ */
.ai-system {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ai-system-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}
.ai-system-copy .lead {
  margin-top: 16px;
  max-width: 620px;
}
.ai-module-grid {
  display: grid;
  gap: 12px;
}
.ai-module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
}
.ai-module .ic {
  color: var(--ai-cyan);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: #ecfeff;
}
.ai-module strong { display: block; margin-bottom: 4px; }
.ai-module span { color: var(--text-muted); font-size: 0.9rem; }
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pipeline-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.pipeline-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  color: #fff;
  background: var(--ai-ink);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.pipeline-card strong { display: block; margin-bottom: 6px; }
.pipeline-card p { color: var(--text-muted); font-size: 0.88rem; }
.product-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}
.product-command-bar {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  margin: -20px auto 24px;
  padding: 13px 16px;
  max-width: 760px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.product-command-bar span {
  color: var(--ai-cyan);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
}
.product-command-bar b { font-size: 0.9rem; }
.product-command-bar small {
  justify-self: end;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.trust-item .ic { color: var(--brand); }
.trust-item strong { font-size: 1rem; }
.trust-item span { font-size: 0.86rem; color: var(--text-muted); }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.product-tab {
  min-height: 38px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all var(--t-fast);
}
.product-tab:hover { color: var(--text); border-color: var(--text-soft); }
.product-tab.active { background: var(--text); color: #fff; border-color: var(--text); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 430px;
  border-radius: var(--radius-lg);
}
.product-card.is-recommended:hover { transform: translateY(-4px) scale(1.012); }
.product-card .pc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.product-card .pc-name { font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.product-card .pc-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: 0 0 auto; max-width: 45%; }
.product-card .pc-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; min-height: 48px; }
.product-card .pc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.product-card .pc-meta span {
  padding: 5px 9px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}
.product-card .pc-features { list-style: none; display: grid; gap: 8px; margin-bottom: 14px; }
.product-card .pc-features li {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.product-card .pc-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--brand);
}
.product-card .pc-notice {
  margin-bottom: 18px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.82rem;
  line-height: 1.6;
}
.product-card .pc-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 18px; }
.product-card .pc-price .now { font-size: 1.8rem; font-weight: 800; letter-spacing: 0; }
.product-card .pc-price .was { font-size: 0.95rem; color: var(--text-soft); text-decoration: line-through; }
.product-card .pc-stock { font-size: 0.8rem; color: var(--text-soft); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.product-detail-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}



/* Marketplace style product cards inspired by product-listing best practices */
.marketplace-card {
  gap: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(47, 111, 237, 0.10), transparent 34%),
    var(--surface);
}
.pc-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pc-category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}
.pc-subtitle {
  margin: -4px 0 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 750;
}
.product-card .pc-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-card .pc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}
.product-card .pc-stock span:not(.badge) {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 700;
}
.product-card .pc-stock .badge { min-height: 24px; }

/* Product detail page */
.product-detail-header { margin-bottom: 0; }
.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: stretch;
  margin-top: 20px;
  padding: 30px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(47, 111, 237, 0.12), rgba(255,255,255,0) 52%),
    var(--surface);
}
.pdh-main { min-width: 0; }
.pdh-main h1 { margin: 10px 0 12px; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: 0; }
.pdh-subtitle { margin-bottom: 12px; color: var(--text); font-weight: 750; }
.pdh-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pdh-points span {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}
.pdh-buybox {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-md);
}
.pdh-price { font-size: 2.35rem; font-weight: 900; letter-spacing: 0; color: var(--text); }
.pdh-price.small { font-size: 1.65rem; }
.pdh-stock-line { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-muted); font-size: 0.84rem; }
.pdh-stock-line > span:not(.badge) {
  padding: 6px 9px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  font-weight: 700;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.product-detail-main { display: grid; gap: 18px; min-width: 0; }
.product-summary-strip { margin-bottom: 4px; }
.detail-section-card { display: grid; gap: 12px; }
.detail-kicker {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
}
.detail-section-card h3 { margin: 0; }
.detail-bullet-list { display: grid; gap: 10px; padding-left: 0; list-style: none; }
.detail-bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.75;
}
.detail-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.detail-rich-text { display: grid; gap: 10px; color: var(--text-muted); line-height: 1.8; }
.detail-rich-text p { margin: 0; }
.product-detail-side { position: relative; }
.sticky-buy-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}
.sticky-buy-card h3 { margin: 0; }
.sticky-buy-card .pc-stock { margin: 0; }

/* ============================================================
   STEPS / TUTORIAL
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step {
  position: relative;
  padding: 26px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.step .num {
  width: 34px; height: 34px; border-radius: var(--radius-full);
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; margin-bottom: 14px;
}
.step h4 { margin-bottom: 6px; }
.step p { font-size: 0.86rem; color: var(--text-muted); }
.tutorial-guide { display: grid; gap: 32px; margin-top: 34px; }
.tutorial-section {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.tutorial-section-head { max-width: 720px; margin-bottom: 20px; }
.tutorial-section-head h3 { margin: 12px 0 8px; }
.tutorial-section-head p { color: var(--text-muted); font-size: 0.92rem; }
.tutorial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tutorial-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}
.tutorial-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #fff;
}
.tutorial-card figcaption {
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ============================================================
   DOCUMENT / TUTORIAL PAGES
   ============================================================ */
.doc-page {
  background: #fff;
  padding: 56px 0 88px;
}
.doc-container {
  width: min(100% - 48px, 900px);
  margin: 0 auto;
}
.doc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
}
.doc-breadcrumb a { color: var(--text-muted); font-weight: 700; }
.doc-breadcrumb a:hover { color: var(--text); }
.doc-hero {
  padding: 42px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.doc-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0;
  margin-bottom: 14px;
}
.doc-hero p {
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 760px;
}
.doc-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.doc-entry-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.doc-entry-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.doc-entry-card h3 { margin: 14px 0 8px; }
.doc-entry-card p {
  min-height: 72px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 18px;
}
.doc-note {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.doc-back { margin: 24px 0 0; }
.doc-article {
  font-size: 1.02rem;
  line-height: 1.8;
}
.doc-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.doc-section h2 {
  font-size: 1.35rem;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.doc-section p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.85;
}
.doc-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.doc-image-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}
.doc-image {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}
.doc-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #fff;
}
.doc-image figcaption {
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.doc-image-step figcaption {
  display: grid;
  gap: 4px;
  padding: 14px 16px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.doc-image-step figcaption strong {
  color: var(--text);
  font-size: 0.95rem;
}
.doc-image-step figcaption span {
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.65;
}

/* ============================================================
   FAQ (accordion)
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; font-size: 1.02rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: inherit;
}
.faq-q .chev { transition: transform var(--t-norm); color: var(--text-soft); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-norm); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a .inner { min-height: 0; overflow: hidden; padding: 0 22px 20px; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   FEATURE / AFTER-SALES GRID
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { padding: 24px; }
.feature-card .ic {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card h4 { margin-bottom: 6px; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ============================================================
   PRODUCT COMPARISON
   ============================================================ */
.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}
.comparison-table thead th {
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}
.comparison-table tbody th {
  width: 120px;
  color: var(--brand-dark);
  font-weight: 800;
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}
.comparison-table td {
  color: var(--text-muted);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta {
  background: var(--text); color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 40px; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.7); margin-top: 12px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 28px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-wrap { max-width: 520px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-label .opt { color: var(--text-soft); font-weight: 400; margin-left: 6px; font-size: 0.82rem; }
.form-hint { margin-top: 7px; font-size: 0.82rem; color: var(--text-soft); }
.rule-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
  cursor: pointer;
}
.rule-confirm input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: 2px solid transparent;
}
.input::placeholder, .textarea::placeholder { color: var(--text-soft); }
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.textarea { min-height: 96px; resize: vertical; }

/* ============================================================
   ORDER SUMMARY / RESULT
   ============================================================ */
.summary-box { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 22px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 0.92rem; }
.summary-row + .summary-row { border-top: 1px solid var(--border); }
.summary-row .k { color: var(--text-muted); }
.summary-row .v { font-weight: 600; }
.summary-total { font-size: 1.05rem; }
.summary-total .v { font-size: 1.3rem; font-weight: 800; }

.result-card { max-width: 600px; margin: 0 auto; }
.key-box {
  font-family: var(--font-mono);
  background: var(--text); color: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  word-break: break-all;
}
.checklist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.checklist-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.checklist-item strong { display: block; margin-bottom: 6px; }
.checklist-item p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.lookup-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 22px; align-items: start; }
.status-help-list { display: grid; gap: 10px; }
.status-help-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}
.status-help-row strong { color: var(--text); }
.status-help-row span { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }


/* ============================================================
   NOTICE BOXES
   ============================================================ */
.notice {
  padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.88rem; line-height: 1.6;
  border: 1px solid var(--border);
}
.notice-info { background: var(--brand-soft); border-color: transparent; color: var(--brand-dark); }
.notice-warning { background: var(--warning-soft); border-color: transparent; color: var(--warning); }
.notice-success { background: var(--success-soft); border-color: transparent; color: var(--success); }

/* ============================================================
   PAGE HEADER (sub pages)
   ============================================================ */
.page-header { padding: 64px 0 40px; text-align: center; border-bottom: 1px solid var(--border); margin-bottom: 56px; }
.page-header .lead { margin-top: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-subtle); border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0; color: var(--text-soft); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col ul a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .nav-logo-mark { width: 32px; height: 32px; }
.footer-brand b { font-size: 1.05rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-soft); font-size: 0.85rem; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 11px 18px; border-radius: var(--radius-full); font-size: 0.88rem; font-weight: 600;
  background: var(--text); color: #fff; box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s ease, toastOut 0.3s ease 2.4s forwards;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }

.confirm-trust-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; }

.user-menu { position: relative; }
.user-avatar-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.user-avatar-btn:hover { filter: brightness(0.95); }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); width: 220px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); display: none; z-index: 20;
}
.user-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.user-menu.open .user-dropdown, .user-menu:focus-within .user-dropdown { display: block; }
.user-dropdown-email {
  padding: 10px 12px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.user-dropdown a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 0.9rem; }
.user-dropdown a:hover { background: var(--bg-subtle); color: var(--text); }

.auth-section { min-height: calc(100vh - var(--nav-height)); display: flex; align-items: center; padding: 44px 0; }
.auth-single-card { max-width: 460px; margin: 0 auto; }
.auth-card-head { text-align: center; margin-bottom: 22px; }
.auth-card-head h1 { font-size: 1.8rem; margin: 8px 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 22px; border-radius: var(--radius-full); background: var(--bg-subtle); }
.auth-tab { border: 0; border-radius: var(--radius-full); padding: 10px 12px; color: var(--text-muted); background: transparent; font-weight: 700; cursor: pointer; }
.auth-tab.active { color: #fff; background: var(--text); box-shadow: var(--shadow-sm); }
.auth-panel.hidden { display: none; }
.auth-switch-line { margin-top: 14px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.auth-switch-line a { font-weight: 700; }
.auth-note { margin-top: 20px; }
.redeem-header { background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); }
.redeem-card {
  max-width: 780px;
  margin: 0 auto;
}
.redeem-shell { display: grid; gap: 18px; }
.redeem-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: start;
}
.redeem-entry .form-group { margin-bottom: 0; }
.redeem-entry #redeem-submit-btn {
  min-height: 48px;
  margin-top: 30px;
}
.redeem-result { margin-top: 4px; }
.redeem-result.notice-success ~ .post-redeem-hide { display: none; }
.recharge-entry-card { max-width: 620px; margin: 0 auto; text-align: center; }
.recharge-entry-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.auth-card, .user-panel { height: 100%; }
.user-hero-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.user-hero-card h3 { font-size: 1.3rem; margin: 8px 0; word-break: break-word; }
.user-quick-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.balance-pill { display: inline-flex; margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }
.compact-head { text-align: left; margin-bottom: 20px; }
.compact-head h2 { font-size: 1.5rem; }
.security-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.order-list { display: grid; gap: 12px; }
.order-row {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-subtle);
}
.order-row p { margin-top: 4px; font-size: 0.86rem; }
.order-row-rich { align-items: flex-start; }
.order-main { min-width: 180px; }
.order-detail-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.order-detail-grid span { display: grid; gap: 2px; }
.order-detail-grid b { color: var(--text); font-size: 0.78rem; }
.order-meta { display: flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.empty-inline { text-align: center; padding: 28px; border: 1px dashed var(--border); border-radius: var(--radius-md); background: var(--bg-subtle); }
.modal-backdrop { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, 0.42); backdrop-filter: blur(8px); }
.modal-backdrop.hidden { display: none; }
.modal-card { position: relative; width: min(100%, 440px); padding: 28px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.modal-card-wide { width: min(100%, 560px); }
.modal-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface); color: var(--text-muted); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.modal-close:hover { color: var(--text); background: var(--bg-subtle); }
.recharge-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin: 16px 0 20px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
}
.recharge-tab {
  border: 0;
  border-radius: var(--radius-full);
  padding: 10px 12px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 800;
  cursor: pointer;
}
.recharge-tab.active { color: #fff; background: var(--text); box-shadow: var(--shadow-sm); }
.recharge-plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.recharge-plan {
  text-align: left;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.recharge-plan:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.recharge-plan.active { border-color: var(--brand); background: var(--brand-soft); }
.recharge-plan strong { display: block; font-size: 1.25rem; line-height: 1; margin-bottom: 8px; color: var(--text); }
.recharge-plan span, .recharge-plan em { display: block; font-size: 0.82rem; color: var(--text-muted); font-style: normal; }
.recharge-plan em { margin-top: 3px; color: var(--brand-dark); font-weight: 800; }
.recharge-footer-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.admin-panel { display: grid; gap: 18px; }
.admin-key-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}
.admin-tabs { justify-content: flex-start; margin-bottom: 0; }
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.admin-table th {
  color: var(--text);
  background: var(--bg-subtle);
  font-size: 0.78rem;
  letter-spacing: 0;
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-import {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}
.admin-import .textarea { min-height: 82px; }
.admin-template-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.admin-template-toolbar > div { display: flex; align-items: baseline; gap: 10px; }
.admin-template-toolbar span { color: var(--text-muted); font-size: 0.82rem; }
.admin-template-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.52fr) minmax(0, 1.48fr);
  gap: 18px;
  align-items: start;
}
.admin-template-list {
  display: grid;
  gap: 6px;
  max-height: 760px;
  overflow-y: auto;
  padding-right: 4px;
}
.admin-template-row {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
}
.admin-template-row:hover { border-color: var(--text-soft); background: var(--bg-subtle); }
.admin-template-row.active { border-color: var(--brand); background: var(--brand-soft); }
.admin-template-row > span:first-child { min-width: 0; display: grid; gap: 3px; }
.admin-template-row strong, .admin-template-row small { overflow-wrap: anywhere; }
.admin-template-row small { color: var(--text-muted); font-size: 0.76rem; }
.admin-template-row .badge { flex: 0 0 auto; }
.admin-template-workspace { min-width: 0; display: grid; gap: 18px; }
.admin-template-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.admin-template-editor-head > div { min-width: 0; }
.admin-template-editor-head span { color: var(--brand); font-size: 0.78rem; font-weight: 800; }
.admin-template-editor-head h2 { margin: 3px 0 5px; font-size: 1.25rem; line-height: 1.3; }
.admin-template-editor-head small { color: var(--text-muted); overflow-wrap: anywhere; }
.admin-template-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.admin-template-form-supplement { grid-template-columns: 1fr; }
.admin-template-field { min-width: 0; display: grid; gap: 6px; }
.admin-template-field-wide { grid-column: 1 / -1; }
.admin-template-field > span { color: var(--text-muted); font-size: 0.78rem; font-weight: 700; }
.admin-template-field .textarea { min-height: 112px; }
.admin-template-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--text); font-size: 0.86rem; font-weight: 700; }
.admin-template-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.admin-template-enabled { flex: 0 0 auto; }
.admin-template-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-template-actions .btn, .admin-template-toolbar .btn { display: inline-flex; align-items: center; gap: 7px; }
.admin-email-preview { min-width: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface); }
.admin-email-preview-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.admin-email-preview-head > div:first-child { min-width: 0; display: grid; gap: 2px; }
.admin-email-preview-head span { color: var(--text-muted); font-size: 0.72rem; }
.admin-email-preview-head strong { overflow-wrap: anywhere; font-size: 0.88rem; }
.admin-preview-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 6px; }
.admin-preview-tab { min-height: 32px; padding: 5px 9px; border: 0; border-radius: 4px; color: var(--text-muted); background: transparent; cursor: pointer; font-weight: 700; }
.admin-preview-tab.active { color: var(--surface); background: var(--text); }
#admin-email-preview-frame { display: block; width: 100%; height: 620px; border: 0; background: #fff; }
#admin-email-preview-frame.hidden { display: none; }
#admin-email-preview-text { min-height: 420px; max-height: 620px; margin: 0; padding: 20px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); background: var(--surface); font: 13px/1.7 var(--font-mono); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-console { max-width: 620px; }
  .market-strip { align-items: flex-start; flex-direction: column; }
  .market-chips { justify-content: flex-start; }
  .ai-system-grid { grid-template-columns: 1fr; }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .product-command-bar { grid-template-columns: 1fr; border-radius: var(--radius-md); }
  .product-command-bar small { justify-self: start; }
  .trust-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .lookup-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .tutorial-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-entry-grid { grid-template-columns: 1fr; }
  .confirm-trust-grid { grid-template-columns: 1fr; }
  .user-hero-card { align-items: flex-start; flex-direction: column; }
  .user-quick-actions { justify-content: flex-start; }
  .security-form-row { grid-template-columns: 1fr; }
  .admin-key-row, .admin-import { grid-template-columns: 1fr; }
  .admin-template-layout { grid-template-columns: 1fr; }
  .admin-template-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 300px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-height: 58px; }
  html { font-size: 15px; }
  body { line-height: 1.55; }
  h1 { font-size: 2rem; line-height: 1.12; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.12rem; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 36px 0; }
  .section-head { margin-bottom: 28px; text-align: left; }
  .section-head .lead { margin-top: 10px; }
  .lead { font-size: 1rem; line-height: 1.65; }
  .kicker { margin-bottom: 10px; font-size: 0.76rem; }

  .nav-inner { padding: 0 14px; gap: 10px; }
  .nav-logo { min-width: 0; flex: 1; font-size: 1rem; }
  .nav-logo span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-right { gap: 6px; }
  .nav-right .btn-ghost { display: none; }
  .nav-right .btn-dark { min-height: 42px; padding: 9px 12px; font-size: 0.82rem; }
  .nav-menu { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 10px 14px 14px; gap: 4px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 13px 12px; font-size: 0.95rem; min-height: 44px; display: flex; align-items: center; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .nav-menu { order: 3; }

  .trust-grid, .product-grid, .steps, .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .home-stats-grid, .checklist-grid { grid-template-columns: 1fr; }
  .status-help-row { grid-template-columns: 1fr; }
  .tutorial-grid { grid-template-columns: 1fr; }
  .doc-container { width: min(100% - 32px, 900px); }
  .doc-image-grid { grid-template-columns: 1fr; }
  .comparison-table-wrap { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .comparison-table { min-width: 0; display: block; font-size: 0.9rem; }
  .comparison-table thead { display: none; }
  .comparison-table tbody { display: grid; gap: 12px; }
  .comparison-table tr {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
  }
  .comparison-table tbody th,
  .comparison-table td {
    display: grid;
    width: 100%;
    padding: 0;
    border-bottom: 0;
  }
  .comparison-table td::before {
    content: attr(data-label);
    margin-bottom: 2px;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
  }
  .order-row, .order-meta { align-items: flex-start; flex-direction: column; }
  .order-detail-grid { grid-template-columns: 1fr 1fr; width: 100%; }
  .recharge-plan-grid { grid-template-columns: 1fr; }
  .hero { padding: 42px 0 28px; text-align: left; }
  .hero h1, .hero .lead { margin-left: 0; margin-right: 0; }
  .hero .lead { margin-top: 14px; font-size: 1rem; }
  .hero-actions { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-meta { justify-content: flex-start; gap: 10px 14px; margin-top: 18px; font-size: 0.82rem; }
  .hero-meta span { min-height: 28px; }
  .hero-grid { gap: 22px; }
  .hero-console { padding: 16px; box-shadow: var(--shadow-md); }
  .console-metrics { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .console-metrics div { padding: 12px 8px; }
  .console-metrics strong { font-size: 1.2rem; }
  .console-flow div { padding: 10px; }
  .market-strip { margin-top: 22px; padding: 14px; }
  .market-strip-copy { min-width: 0; }
  .market-chips { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .market-chips::-webkit-scrollbar { display: none; }
  .market-chip { flex: 0 0 auto; }
  .ai-system-grid { gap: 18px; }
  .ai-module { padding: 14px; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .pipeline-card { padding: 16px; }
  .product-command-bar { margin: -10px 0 20px; }

  .btn { min-height: 44px; padding: 12px 16px; white-space: normal; text-align: center; line-height: 1.2; }
  .btn-lg { min-height: 48px; padding: 13px 18px; font-size: 0.98rem; }
  .btn-sm { min-height: 38px; }
  .card { padding: 20px; border-radius: var(--radius-md); }
  .card-hover:hover, .product-card.is-recommended:hover { transform: none; box-shadow: var(--shadow-md); }

  .product-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: -4px -16px 24px;
    padding: 4px 16px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .product-tabs::-webkit-scrollbar { display: none; }
  .product-tab { flex: 0 0 auto; min-height: 40px; padding: 9px 15px; scroll-snap-align: start; }
  .product-card { min-height: 0; padding: 18px; }
  .product-card .pc-head { display: grid; gap: 8px; margin-bottom: 8px; }
  .product-card .pc-badges { justify-content: flex-start; max-width: 100%; }
  .product-card .pc-desc { min-height: 0; margin-bottom: 12px; font-size: 0.9rem; }
  .product-card .pc-features { gap: 7px; margin-bottom: 12px; }
  .product-card .pc-features li { font-size: 0.84rem; }
  .product-card .pc-price { margin-bottom: 12px; }
  .product-card .pc-price .now { font-size: 1.55rem; }
  .product-card .pc-stock { margin-bottom: 12px; }
  .product-card .pc-actions { grid-template-columns: 1fr; }
  .pc-topline { display: grid; gap: 8px; }
  .pc-category { width: fit-content; }
  .product-detail-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .product-detail-hero { grid-template-columns: 1fr; padding: 20px; }
  .pdh-buybox { padding: 16px; }
  .pdh-price { font-size: 1.9rem; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-side { display: none; }

  .trust-item, .feature-card, .step { padding: 18px; }
  .page-header { padding: 36px 0 24px; margin-bottom: 34px; text-align: left; }
  .page-header .lead { margin-top: 10px; }
  .form-wrap { max-width: none; }
  .form-group { margin-bottom: 16px; }
  .input, .textarea { min-height: 46px; font-size: 16px; padding: 12px 13px; }
  .textarea { min-height: 90px; }
  .admin-template-toolbar, .admin-template-editor-head, .admin-email-preview-head { align-items: stretch; flex-direction: column; }
  .admin-template-list, .admin-template-form { grid-template-columns: 1fr; }
  .admin-template-actions { display: grid; grid-template-columns: 1fr; }
  .admin-template-actions .btn { width: 100%; justify-content: center; }
  .admin-preview-tabs { width: fit-content; }
  #admin-email-preview-frame { height: 520px; }
  .form-hint { font-size: 0.8rem; line-height: 1.5; }
  .summary-box { padding: 14px 16px; }
  .summary-row { display: grid; grid-template-columns: 1fr; gap: 3px; align-items: start; padding: 10px 0; }
  .summary-row .v { overflow-wrap: anywhere; }
  .summary-total .v { font-size: 1.18rem; }
  .notice { padding: 12px 13px; font-size: 0.84rem; }

  .confirm-trust-grid { gap: 10px; }
  .confirm-trust-grid .feature-card { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
  .confirm-trust-grid .feature-card .ic { margin-bottom: 0; width: 36px; height: 36px; }
  .confirm-trust-grid .feature-card h4 { margin-bottom: 4px; }
  .confirm-trust-grid .feature-card p { grid-column: 2; }

  .auth-section { min-height: auto; padding: 28px 0; align-items: flex-start; }
  .auth-single-card { max-width: none; }
  .auth-card-head { text-align: left; }
  .redeem-card { max-width: none; }
  .redeem-entry { grid-template-columns: 1fr; align-items: stretch; }
  .auth-tabs, .recharge-tabs { border-radius: var(--radius-md); }
  .auth-tab, .recharge-tab { min-height: 42px; border-radius: var(--radius-sm); }
  .user-hero-card { gap: 16px; }
  .user-avatar-btn { width: 40px; height: 40px; }
  .user-quick-actions { display: grid; grid-template-columns: 1fr; width: 100%; gap: 8px; }
  .balance-pill { width: 100%; justify-content: center; border-radius: var(--radius-md); text-align: center; }
  .compact-head { margin-bottom: 16px; }
  .compact-head h2 { font-size: 1.28rem; }
  .security-form-row { gap: 8px; }
  .order-row { padding: 14px; gap: 12px; }
  .order-main { min-width: 0; width: 100%; }
  .order-main strong, .order-main p { overflow-wrap: anywhere; }
  .order-detail-grid { gap: 8px; font-size: 0.82rem; }
  .order-detail-grid span { padding: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
  .order-meta { width: 100%; gap: 8px; }
  .order-meta .btn { width: 100%; }
  .empty-inline { padding: 22px 16px; }

  .modal-backdrop { align-items: flex-end; padding: 12px; }
  .modal-card { width: 100%; max-height: calc(100vh - 24px); overflow-y: auto; padding: 22px 18px; border-radius: 16px; }
  .modal-card h3 { padding-right: 36px; }
  .modal-close { width: 36px; height: 36px; top: 10px; right: 10px; }
  .recharge-plan { padding: 13px; }
  .recharge-footer-note { font-size: 0.8rem; }

  .doc-page { padding: 34px 0 54px; }
  .doc-hero { padding: 30px 0 22px; }
  .doc-hero h1 { font-size: 1.8rem; }
  .doc-hero p, .doc-section p { font-size: 0.96rem; }
  .doc-section { padding: 22px 0; }
  .footer { padding: 42px 0 26px; margin-top: 56px; }
  .footer-bottom { margin-top: 28px; }
  .toast-container { top: auto; bottom: 18px; left: 12px; right: 12px; transform: none; align-items: stretch; }
  .toast { border-radius: var(--radius-md); text-align: center; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .nav-inner { padding: 0 12px; }
  .nav-logo-mark { width: 28px; height: 28px; }
  .nav-right .btn-dark { min-height: 40px; padding: 8px 10px; font-size: 0.78rem; }
  .product-tabs { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .order-detail-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   AI Arsenal brand navigation and cards
   ============================================================ */
.ai-arsenal-nav .nav-inner { max-width: 1320px; gap: 14px; }
.ai-arsenal-nav .nav-logo { flex: 0 0 auto; }
.arsenal-nav-menu { justify-content: center; gap: 6px; min-width: 0; }
.nav-brand-link {
  --brand-accent: var(--brand);
  position: relative;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
}
.nav-brand-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--brand-accent) 72%, transparent);
}
.nav-brand-link:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--brand-accent) 44%, var(--border));
  background: color-mix(in srgb, var(--brand-accent) 10%, #fff);
}
.supply-box-nav { box-shadow: 0 10px 22px rgba(0,0,0,.10); }
.supply-box-fixed {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
  writing-mode: vertical-rl;
  letter-spacing: 0;
  border: 1px solid rgba(0, 229, 255, .45);
  background: linear-gradient(180deg, #07111f, #111827);
  color: #fff;
  border-radius: 999px;
  padding: 18px 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 229, 255, .22), 0 12px 34px rgba(0,0,0,.20);
}
.supply-box-fixed:hover { transform: translateY(-50%) translateX(-2px); }
.product-tab { --brand-accent: var(--text); }
.product-tab[class*="brand-"] { border-color: color-mix(in srgb, var(--brand-accent) 38%, var(--border)); }
.product-tab[class*="brand-"]:hover,
.product-tab[class*="brand-"].active {
  color: #fff;
  border-color: var(--brand-accent);
  background: var(--brand-accent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-accent) 24%, transparent);
}
.market-chip[class*="brand-"] { border-color: color-mix(in srgb, var(--brand-accent) 42%, var(--border)); }
.market-chip[class*="brand-"]:hover { color: #111827; background: color-mix(in srgb, var(--brand-accent) 15%, #fff); border-color: var(--brand-accent); }
.marketplace-card {
  --brand-accent: var(--brand);
  border-color: color-mix(in srgb, var(--brand-accent) 42%, var(--border));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand-accent) 13%, transparent), transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-accent) 4%, #fff), #fff 42%);
}
.marketplace-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--brand-accent);
}
.marketplace-card .pc-category,
.marketplace-card .badge-soft {
  border-color: color-mix(in srgb, var(--brand-accent) 30%, transparent);
  background: color-mix(in srgb, var(--brand-accent) 12%, #fff);
  color: color-mix(in srgb, var(--brand-accent) 76%, #111827);
}
.marketplace-card .pc-features li::before { background: var(--brand-accent); }
.marketplace-card .btn-primary { background: var(--brand-accent); }
.marketplace-card .btn-primary:hover { filter: brightness(.92); }
.brand-google-mail.marketplace-card,
.product-tab.brand-google-mail.active,
.market-chip.brand-google-mail:hover {
  --brand-accent: #4285F4;
}
.brand-google-mail.marketplace-card::before,
.product-tab.brand-google-mail.active {
  background: linear-gradient(90deg, #EA4335 0 25%, #FBBC05 25% 50%, #34A853 50% 75%, #4285F4 75% 100%);
}
.brand-google-mail.marketplace-card .pc-category,
.brand-google-mail.marketplace-card .badge-soft {
  background: linear-gradient(90deg, rgba(234,67,53,.12), rgba(251,188,5,.12), rgba(52,168,83,.12), rgba(66,133,244,.12));
  color: #1f2937;
}
.arsenal-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}
@media (max-width: 1180px) {
  .ai-arsenal-nav .nav-logo span:last-child { display: none; }
  .nav-brand-link { padding-left: 9px; padding-right: 9px; font-size: .82rem; }
}
@media (max-width: 640px) {
  .ai-arsenal-nav .nav-logo span:last-child { display: inline; }
  .supply-box-fixed { right: 12px; top: auto; bottom: 18px; transform: none; writing-mode: horizontal-tb; letter-spacing: 0; padding: 11px 14px; }
  .supply-box-fixed:hover { transform: translateY(-2px); }
  .supply-box-nav { display: none; }
  .arsenal-nav-menu { align-items: stretch; }
  .nav-brand-link::before { display: none; }
}

/* === AI BASE SUPPLY STATION OVERRIDES === */
:root { --bg:#09090B; --bg-subtle:#0D1110; --surface:rgba(15,23,18,.82); --border:rgba(74,222,128,.16); --border-strong:rgba(74,222,128,.32); --text:#E5E7EB; --text-muted:#9CA3AF; --text-soft:#6B7280; --brand:#22C55E; --brand-dark:#16A34A; --brand-soft:rgba(34,197,94,.12); --shadow-sm:0 1px 2px rgba(0,0,0,.35); --shadow-md:0 12px 34px rgba(0,0,0,.38); --shadow-lg:0 24px 80px rgba(0,0,0,.55); }
html { background:#09090B; }
body { background-color:#09090B; background-image:radial-gradient(circle, rgba(34,197,94,.16) 1px, transparent 1px), radial-gradient(circle at 50% 0%, rgba(34,197,94,.12), transparent 34%), linear-gradient(180deg,#09090B 0%,#050806 100%); background-size:26px 26px,100% 760px,auto; color:var(--text); }
body::before { content:""; position:fixed; inset:0; pointer-events:none; z-index:-1; background:linear-gradient(90deg,rgba(34,197,94,.035) 1px,transparent 1px),linear-gradient(180deg,rgba(34,197,94,.025) 1px,transparent 1px); background-size:72px 72px; mask-image:radial-gradient(circle at 50% 18%,#000 0 42%,transparent 78%); }
a { color:#86EFAC; } a:hover { color:#BBF7D0; }
.card,.modal-card,.feature-card,.home-stat-card,.trust-item,.pipeline-card,.doc-entry-card,.recharge-entry-card,.user-panel,.faq-item,.comparison-table-wrap,.hero-console,.market-strip,.product-command-bar,.cta { background:linear-gradient(180deg,rgba(15,23,18,.88),rgba(9,9,11,.78)); border-color:rgba(74,222,128,.16); box-shadow:0 18px 50px rgba(0,0,0,.38); color:var(--text); }
.nav,.footer { background:rgba(9,9,11,.78); border-color:rgba(74,222,128,.16); backdrop-filter:blur(16px); }
.footer { color:var(--text-muted); } .hero{ background:transparent; } .hero-bg{ background:radial-gradient(circle at 20% 20%,rgba(34,197,94,.22),transparent 26%),radial-gradient(circle at 80% 10%,rgba(56,189,248,.14),transparent 28%); }
.kicker,.detail-kicker { color:#86EFAC; }
.btn-primary { background:linear-gradient(135deg,var(--brand-accent,#22C55E),color-mix(in srgb,var(--brand-accent,#22C55E) 72%,#fff)); color:#03130A; border-color:color-mix(in srgb,var(--brand-accent,#22C55E) 68%,transparent); font-weight:900; }
.btn-primary:hover { color:#020617; box-shadow:0 0 26px color-mix(in srgb,var(--brand-accent,#22C55E) 38%,transparent); transform:translateY(-1px); }
.btn-outline,.btn-ghost { border-color:rgba(148,163,184,.24); color:var(--text); background:rgba(15,23,42,.35); }
.btn-outline:hover,.btn-ghost:hover { background:rgba(34,197,94,.10); border-color:rgba(74,222,128,.38); color:#E5E7EB; }
.input,.textarea,select { background:rgba(3,7,18,.64); color:var(--text); border-color:rgba(74,222,128,.18); }
.badge-soft,.badge-brand { background:rgba(34,197,94,.10); border-color:rgba(34,197,94,.22); color:#BBF7D0; }
.badge-muted { background:rgba(107,114,128,.16); color:#9CA3AF; border-color:rgba(107,114,128,.28); }
.ai-arsenal-nav .nav-inner { max-width:1380px; }
.nav-brand-link:hover { background:color-mix(in srgb,var(--brand-accent) 14%,#09090B); color:#fff; }
.supply-box-nav,.supply-box-fixed { background:linear-gradient(135deg,#16A34A,#22C55E); color:#03130A; border-color:rgba(134,239,172,.56); box-shadow:0 0 32px rgba(34,197,94,.30); }
.product-tabs { gap:10px; } .product-tab { background:rgba(15,23,42,.44); color:#CBD5E1; border-color:rgba(148,163,184,.20); }
.product-tab[class*="brand-"].active,.product-tab[class*="brand-"]:hover { color:#020617; background:var(--brand-accent); box-shadow:0 0 24px color-mix(in srgb,var(--brand-accent) 34%,transparent); }
.marketplace-card.arsenal-supply-card { cursor:pointer; position:relative; overflow:hidden; border:1px solid color-mix(in srgb,var(--brand-accent) 34%,rgba(148,163,184,.18)); background:radial-gradient(circle at 82% 8%,color-mix(in srgb,var(--brand-accent) 17%,transparent),transparent 34%),linear-gradient(180deg,rgba(15,23,18,.92),rgba(8,13,10,.94)); transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,filter .22s ease; }
.marketplace-card.arsenal-supply-card:hover { transform:translateY(-4px); border-color:var(--brand-accent); box-shadow:0 0 0 1px color-mix(in srgb,var(--brand-accent) 50%,transparent),0 0 34px color-mix(in srgb,var(--brand-accent) 30%,transparent),0 22px 70px rgba(0,0,0,.52); }
.product-card.is-recommended:hover { transform:translateY(-4px); }
.marketplace-card::before { background:linear-gradient(90deg,transparent,var(--brand-accent),transparent); height:1px; }
.marketplace-card .pc-category,.marketplace-card .badge-soft { background:color-mix(in srgb,var(--brand-accent) 11%,#09090B); color:color-mix(in srgb,var(--brand-accent) 82%,#fff); border-color:color-mix(in srgb,var(--brand-accent) 32%,transparent); }
.pc-corner { position:absolute; top:14px; right:14px; z-index:2; }
.supply-status { display:inline-flex; align-items:center; gap:7px; min-height:28px; padding:6px 10px; border-radius:999px; font-size:.78rem; font-weight:900; border:1px solid; backdrop-filter:blur(10px); }
.supply-status-stock { color:#BBF7D0; background:rgba(22,163,74,.14); border-color:rgba(34,197,94,.34); box-shadow:0 0 18px rgba(34,197,94,.18); }
.supply-status-deploy { color:#FDE68A; background:rgba(245,158,11,.14); border-color:rgba(245,158,11,.38); box-shadow:0 0 18px rgba(245,158,11,.16); }
.supply-status-soldout { color:#CBD5E1; background:rgba(107,114,128,.18); border-color:rgba(148,163,184,.24); }
.pulse-dot { width:8px; height:8px; border-radius:50%; background:#22C55E; box-shadow:0 0 0 rgba(34,197,94,.72); animation:supplyPulse 1.4s infinite; }
.gear { display:inline-block; animation:gearSpin 3.2s linear infinite; }
@keyframes supplyPulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.70)} 70%{box-shadow:0 0 0 9px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }
@keyframes gearSpin { to { transform:rotate(360deg); } }
.arsenal-supply-card.is-soldout { filter:grayscale(.9); opacity:.62; }
.arsenal-supply-card.is-soldout:hover { filter:grayscale(.9); transform:translateY(-2px); box-shadow:0 16px 38px rgba(0,0,0,.34); }
.arsenal-supply-card .pc-topline { padding-right:112px; } .pc-subtitle { color:#A7F3D0; margin:-2px 0 10px; font-size:.9rem; }
.compact-supply-actions { grid-template-columns:1fr 1fr; }
.modal-backdrop { background:rgba(0,0,0,.68); }
.supply-buy-card { max-width:380px; text-align:center; border-color:color-mix(in srgb,var(--brand-accent) 44%,rgba(148,163,184,.18)); box-shadow:0 0 44px color-mix(in srgb,var(--brand-accent) 18%,transparent),0 24px 90px rgba(0,0,0,.72); }
.supply-modal-price { font-family:var(--font-mono); font-size:clamp(2.3rem,8vw,4rem); line-height:1; font-weight:900; color:color-mix(in srgb,var(--brand-accent) 78%,#fff); margin:22px 0 24px; text-shadow:0 0 24px color-mix(in srgb,var(--brand-accent) 28%,transparent); }
.supply-asset-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:24px 0; }
.supply-asset-card { border:1px solid rgba(74,222,128,.18); border-radius:18px; padding:20px; background:linear-gradient(180deg,rgba(34,197,94,.12),rgba(9,9,11,.86)); box-shadow:0 18px 46px rgba(0,0,0,.30); }
.supply-asset-card span { color:#A7F3D0; font-size:.86rem; font-weight:800; }
.supply-asset-card strong { display:block; margin:10px 0 2px; font-family:var(--font-mono); font-size:2.25rem; line-height:1; color:#F8FAFC; }
.supply-asset-card small { color:var(--text-muted); }
.supply-order-row { border-color:rgba(74,222,128,.14); }
.order-credential-box { margin-top:12px; display:grid; grid-template-columns:1fr auto; gap:8px 10px; align-items:center; padding:12px; border-radius:14px; background:rgba(2,6,23,.48); border:1px solid rgba(74,222,128,.16); }
.order-credential-box code { grid-column:1; display:flex; gap:8px; align-items:center; font-family:var(--font-mono); color:#D1FAE5; min-width:0; }
.order-credential-box code b { color:#86EFAC; font-family:var(--font-sans); font-size:.76rem; }
.order-credential-box code span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.order-credential-box button { grid-row:1 / span 3; grid-column:2; }
@media (max-width:760px){ .supply-asset-grid{grid-template-columns:1fr} .arsenal-supply-card .pc-topline{padding-right:0;padding-top:32px} .pc-corner{left:14px;right:auto} .compact-supply-actions{grid-template-columns:1fr} .order-credential-box{grid-template-columns:1fr} .order-credential-box button{grid-row:auto;grid-column:1} }

/* === BRAND NAV 7 UPGRADE === */
.nav-brand-link.brand-chatgpt { --brand-accent:#10A37F; }
.nav-brand-link.brand-claude { --brand-accent:#D97706; }
.nav-brand-link.brand-gemini { --brand-accent:#4285F4; }
.nav-brand-link.brand-grok { --brand-accent:#8B5CF6; }
.nav-brand-link.brand-google-mail { --brand-accent:#4285F4; }
.nav-brand-link.brand-microsoft-mail { --brand-accent:#00A4EF; }
.nav-brand-link.brand-codex-sms { --brand-accent:#00E5FF; }
.brand-chatgpt.marketplace-card { --brand-accent:#10A37F; }
.brand-claude.marketplace-card { --brand-accent:#D97706; }
.brand-gemini.marketplace-card { --brand-accent:#4285F4; }
.brand-grok.marketplace-card { --brand-accent:#8B5CF6; }
.brand-google-mail.marketplace-card { --brand-accent:#4285F4; }
.brand-microsoft-mail.marketplace-card { --brand-accent:#00A4EF; }
.brand-codex-sms.marketplace-card { --brand-accent:#00E5FF; }
.product-tab.brand-chatgpt { --brand-accent:#10A37F; }
.product-tab.brand-claude { --brand-accent:#D97706; }
.product-tab.brand-gemini { --brand-accent:#4285F4; }
.product-tab.brand-grok { --brand-accent:#8B5CF6; }
.product-tab.brand-google-mail { --brand-accent:#4285F4; }
.product-tab.brand-microsoft-mail { --brand-accent:#00A4EF; }
.product-tab.brand-codex-sms { --brand-accent:#00E5FF; }
.market-chip.brand-chatgpt { --brand-accent:#10A37F; }
.market-chip.brand-claude { --brand-accent:#D97706; }
.market-chip.brand-gemini { --brand-accent:#4285F4; }
.market-chip.brand-grok { --brand-accent:#8B5CF6; }
.market-chip.brand-google-mail { --brand-accent:#4285F4; }
.market-chip.brand-microsoft-mail { --brand-accent:#00A4EF; }
.market-chip.brand-codex-sms { --brand-accent:#00E5FF; }
.nav-brand-link.brand-google-mail::before,
.market-chip.brand-google-mail::before { background:linear-gradient(90deg,#EA4335 0 25%,#FBBC05 25% 50%,#34A853 50% 75%,#4285F4 75% 100%); }
.brand-google-mail.marketplace-card::before,
.product-tab.brand-google-mail.active,
.product-tab.brand-google-mail:hover { background:linear-gradient(90deg,#EA4335 0 25%,#FBBC05 25% 50%,#34A853 50% 75%,#4285F4 75% 100%); }
.brand-google-mail.marketplace-card { border-color:rgba(66,133,244,.46); }
.brand-google-mail.marketplace-card .pc-category,
.brand-google-mail.marketplace-card .badge-soft {
  background:linear-gradient(90deg,rgba(234,67,53,.13),rgba(251,188,5,.13),rgba(52,168,83,.13),rgba(66,133,244,.13));
  color:#F8FAFC;
  border-color:rgba(255,255,255,.16);
}
.nav-brand-link.brand-google-mail:hover { background:linear-gradient(90deg,rgba(234,67,53,.12),rgba(251,188,5,.12),rgba(52,168,83,.12),rgba(66,133,244,.12)); }
.supply-box-fixed {
  right:20px;
  writing-mode:vertical-rl;
  text-orientation:mixed;
  letter-spacing:0;
  z-index:80;
}
@media (max-width:640px){ .supply-box-fixed{ writing-mode:horizontal-tb; letter-spacing:0; } }

/* === AI ACCOUNT MARKET PREMIUM POLISH === */
.hero { position: relative; overflow: hidden; padding-top: 104px; }
.hero::after { content:""; position:absolute; inset:90px -10% auto; height:420px; pointer-events:none; background:radial-gradient(circle at 20% 30%, rgba(16,163,127,.24), transparent 28%), radial-gradient(circle at 72% 12%, rgba(66,133,244,.20), transparent 30%), radial-gradient(circle at 88% 60%, rgba(236,72,153,.16), transparent 26%); filter: blur(18px); opacity:.9; }
.hero .container { position:relative; z-index:1; }
.hero-copy h1 { max-width: 760px; font-size: clamp(3rem, 7vw, 6.4rem); line-height:.98; letter-spacing:0; color:#F8FAFC; }
.hero-status-pill { border:1px solid rgba(134,239,172,.28); background:linear-gradient(90deg,rgba(34,197,94,.14),rgba(56,189,248,.10)); color:#D1FAE5; box-shadow:0 0 28px rgba(34,197,94,.16); }
.hero-console { position:relative; overflow:hidden; border-color:rgba(34,197,94,.22); box-shadow:0 0 0 1px rgba(34,197,94,.08), 0 28px 90px rgba(0,0,0,.58); }
.hero-console::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 18%), repeating-linear-gradient(180deg,rgba(134,239,172,.035) 0 1px,transparent 1px 8px); pointer-events:none; }
.console-terminal { border:1px solid rgba(34,197,94,.18); background:rgba(2,6,23,.58); }
.ai-trust-rail { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:22px; }
.ai-trust-rail > div { position:relative; min-height:112px; padding:18px; border-radius:18px; border:1px solid rgba(148,163,184,.16); background:linear-gradient(180deg,rgba(15,23,42,.56),rgba(2,6,23,.44)); box-shadow:0 18px 48px rgba(0,0,0,.28); overflow:hidden; }
.ai-trust-rail > div::after { content:""; position:absolute; right:-30px; top:-30px; width:100px; height:100px; border-radius:50%; background:radial-gradient(circle,rgba(34,197,94,.18),transparent 66%); }
.ai-trust-rail span { display:inline-flex; font-family:var(--font-mono); color:#86EFAC; font-size:.78rem; margin-bottom:12px; }
.ai-trust-rail strong { display:block; color:#F8FAFC; font-size:1rem; margin-bottom:4px; }
.ai-trust-rail small { color:#94A3B8; }
.supply-showcase { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr); gap:18px; align-items:stretch; margin:0 0 24px; padding:22px; border-radius:24px; border:1px solid rgba(34,197,94,.18); background:linear-gradient(135deg,rgba(15,23,42,.70),rgba(6,20,14,.72)); box-shadow:0 22px 70px rgba(0,0,0,.36); }
.supply-showcase h3 { font-size:clamp(1.35rem,2.6vw,2.2rem); margin-bottom:10px; }
.supply-showcase p { color:#9CA3AF; max-width:720px; }
.supply-showcase-terminal { display:grid; gap:9px; padding:16px; border-radius:18px; border:1px solid rgba(148,163,184,.16); background:#020617; font-family:var(--font-mono); box-shadow:inset 0 0 30px rgba(34,197,94,.08); }
.supply-showcase-terminal div { display:flex; align-items:center; justify-content:space-between; color:#BBF7D0; }
.supply-showcase-terminal code { color:#E5E7EB; background:rgba(15,23,42,.88); border:1px solid rgba(148,163,184,.12); border-radius:10px; padding:9px 10px; }
.supply-showcase-terminal small { color:#64748B; }
.supply-led { width:10px; height:10px; border-radius:50%; background:#22C55E; box-shadow:0 0 18px rgba(34,197,94,.85); animation:supplyPulse 1.4s infinite; }
.marketplace-card.arsenal-supply-card .pc-name { font-size:1.22rem; letter-spacing:0; }
.marketplace-card.arsenal-supply-card .pc-price .now { color:#F8FAFC; text-shadow:0 0 18px color-mix(in srgb,var(--brand-accent) 22%,transparent); }
@media (max-width: 920px) { .ai-trust-rail { grid-template-columns:repeat(2,1fr); } .supply-showcase { grid-template-columns:1fr; } }
@media (max-width: 560px) { .ai-trust-rail { grid-template-columns:1fr; } .hero-copy h1 { font-size:clamp(2.6rem,16vw,4.4rem); } }

/* === MANUAL PAYMENT PROOF === */
.payment-proof-panel {
  display:grid;
  gap:16px;
  margin-top:18px;
  padding:20px;
  border:1px solid rgba(34,197,94,.24);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(34,197,94,.08),rgba(2,6,23,.42));
}
.payment-proof-panel h2 { margin:4px 0 6px; font-size:1.16rem; }
.payment-proof-panel p { color:var(--text-muted); line-height:1.65; }
.payment-proof-upload {
  display:grid;
  gap:5px;
  padding:16px;
  border:1px dashed rgba(134,239,172,.36);
  border-radius:14px;
  background:rgba(2,6,23,.38);
  cursor:pointer;
}
.payment-proof-upload > span { display:flex; align-items:center; gap:8px; color:#D1FAE5; font-weight:800; }
.payment-proof-upload small { color:var(--text-muted); }
.payment-proof-upload input { width:100%; margin-top:8px; color:var(--text); }
.payment-proof-upload:focus-within { outline:2px solid var(--brand); outline-offset:3px; }
