:root {
  --bg: #eaf8ff;
  --bg-accent: #d7f0ff;
  --surface: rgba(255, 255, 255, 0.9);
  --line: rgba(76, 150, 186, 0.18);
  --text: #15384c;
  --muted: #567889;
  --primary: #4cc3ff;
  --primary-deep: #1499df;
  --surface-soft: rgba(76, 195, 255, 0.08);
  --shadow: 0 20px 50px rgba(57, 127, 160, 0.18);
}

body[data-theme="dark"] {
  --bg: #071c2c;
  --bg-accent: #0a3144;
  --surface: rgba(10, 27, 40, 0.88);
  --line: rgba(129, 212, 255, 0.15);
  --text: #e7f8ff;
  --muted: #a5c9d7;
  --primary: #5ed0ff;
  --primary-deep: #8ce3ff;
  --surface-soft: rgba(94, 208, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(160deg, var(--bg) 0%, #f5fdff 45%, var(--bg-accent) 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 40px; }
.topbar, .section-head, .hero, .catalog-layout, .dual-layout, .product-footer, .hero-actions, .topbar-actions, .auth-switch { display: flex; gap: 16px; }
.topbar, .section-head, .hero, .catalog-layout, .dual-layout { align-items: stretch; }
.topbar, .section-head { justify-content: space-between; align-items: center; }
.topbar { margin-bottom: 20px; }
.topbar h1, .hero h2, .section-head h3, .product-card h4 { margin: 0; }
.eyebrow, .hero-badge { margin: 0 0 6px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-deep); font-weight: 700; }
.card, .modal-card, .product-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px); border-radius: 28px; }
.card { padding: 24px; }
.hero { padding: 28px; margin-bottom: 20px; justify-content: space-between; background: linear-gradient(135deg, rgba(76, 195, 255, 0.18), rgba(255, 255, 255, 0.08)), var(--surface); }
.hero-copy { flex: 1.35; }
.hero-copy h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.04; max-width: 12ch; }
.hero-copy p:not(.hero-badge) { max-width: 58ch; color: var(--muted); line-height: 1.7; }
.hero-panel { flex: 0.9; display: grid; gap: 14px; }
.hero-stat { padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(76, 195, 255, 0.18); }
.hero-stat span, .product-description, .account-panel p, .orders-table td, .cloudpages-note { color: var(--muted); }
.hero-stat strong { display: block; margin-top: 8px; font-size: 1.7rem; }
.primary-button, .secondary-button, .ghost-button, .chip, .close-button { border: 0; border-radius: 999px; cursor: pointer; transition: transform 0.2s ease; padding: 12px 18px; }
.primary-button { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; font-weight: 700; }
.secondary-button { background: var(--surface-soft); color: var(--primary-deep); font-weight: 700; }
.ghost-button, .chip { background: rgba(255, 255, 255, 0.7); color: var(--text); border: 1px solid var(--line); }
.chip.active { background: rgba(76, 195, 255, 0.16); color: var(--primary-deep); }
.close-button { width: 40px; height: 40px; background: var(--surface-soft); color: var(--primary-deep); font-size: 1.2rem; }
.catalog-layout, .dual-layout { margin-bottom: 20px; }
.catalog-layout > :first-child { flex: 1.5; }
.side-panel { width: min(320px, 100%); }
.search-input, .stack-form input, .stack-form select, .stack-form textarea, #authForm input { width: 100%; margin-top: 8px; border: 1px solid rgba(76, 150, 186, 0.22); border-radius: 16px; padding: 14px 16px; background: rgba(255, 255, 255, 0.9); color: var(--text); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.product-card { padding: 20px; border-radius: 24px; }
.product-tag { display: inline-flex; align-items: center; border-radius: 999px; background: rgba(76, 195, 255, 0.12); color: var(--primary-deep); padding: 7px 12px; font-size: 0.82rem; font-weight: 700; }
.product-description { min-height: 72px; line-height: 1.65; }
.product-footer { justify-content: space-between; align-items: center; }
.account-panel, .stack-form { display: grid; gap: 14px; }
.account-box { padding: 16px; border-radius: 22px; background: var(--surface-soft); }
.full { width: 100%; justify-content: center; }
.orders-table { overflow-x: auto; }
.orders-table table { width: 100%; border-collapse: collapse; }
.orders-table th, .orders-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.orders-table th { font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary-deep); }
.modal { border: 0; padding: 0; background: transparent; }
.modal::backdrop { background: rgba(8, 40, 58, 0.35); backdrop-filter: blur(8px); }
.modal-card { width: min(520px, calc(100vw - 24px)); padding: 24px; }
.hidden { display: none; }
.notice-strip { margin-bottom: 20px; padding: 14px 18px; border-radius: 18px; background: var(--surface-soft); border: 1px solid var(--line); }
.status-banner { display: none; margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(76, 195, 255, 0.12); color: var(--primary-deep); font-weight: 700; }
.status-banner.visible { display: block; }
@media (max-width: 900px) {
  .hero, .catalog-layout, .dual-layout, .topbar { flex-direction: column; }
  .side-panel { width: 100%; }
}
