:root {
  --ink: #18212b;
  --muted: #66717f;
  --paper: #f7fbff;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --line: rgba(255, 255, 255, 0.64);
  --shadow: 0 24px 80px rgba(42, 70, 100, 0.18);
  --cyan: #43d4dc;
  --rose: #ff7ca8;
  --gold: #ffcf6b;
  --mint: #73e2b7;
  --blue: #7397ff;
  --violet: #a78bfa;
  --radius: 24px;
  color-scheme: light;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(115, 226, 183, 0.32), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(255, 124, 168, 0.28), transparent 24rem),
    linear-gradient(135deg, #eff8ff 0%, #fff5f7 42%, #f4fff9 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 75%);
  z-index: -3;
}

button,
input,
select {
  font: inherit;
}

button,
label,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 80px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.ambient {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.56;
  pointer-events: none;
  z-index: -2;
  animation: drift 16s ease-in-out infinite alternate;
}

.ambient-a {
  left: -15vw;
  top: 8vh;
  background: rgba(67, 212, 220, 0.35);
}

.ambient-b {
  right: -18vw;
  top: 22vh;
  background: rgba(255, 124, 168, 0.32);
  animation-delay: -4s;
}

.ambient-c {
  left: 34vw;
  bottom: -25vw;
  background: rgba(255, 207, 107, 0.28);
  animation-delay: -8s;
}

.glass,
.glass-lite {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.25);
}

.glass::before,
.glass-lite::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.76), transparent 28%),
    radial-gradient(circle at 18% 0, rgba(255, 255, 255, 0.85), transparent 18rem);
  opacity: 0.7;
}

.glass-lite {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 48px rgba(42, 70, 100, 0.12);
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  width: min(1480px, calc(100% - 40px));
  transform: translateX(-50%);
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px 16px;
  border-radius: 22px;
}

.brand,
.top-actions,
.nav-links,
.hero-actions,
.stage-toolbar,
.zoom-tools,
.control-label,
.shape-tools,
.edit-tools,
.order-actions {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 26% 26%, #fff 0 13%, transparent 14%),
    radial-gradient(circle at 68% 28%, #fff 0 11%, transparent 12%),
    radial-gradient(circle at 38% 70%, #fff 0 12%, transparent 13%),
    linear-gradient(135deg, var(--cyan), var(--rose));
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.75), 0 12px 24px rgba(67, 212, 220, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #445260;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  transform: translateY(-1px);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-chip,
.bag-btn,
.icon-btn {
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.sync-chip:hover,
.bag-btn:hover,
.icon-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.shape-btn:hover,
.tool-toggle:hover {
  transform: translateY(-2px);
}

.sync-chip:active,
.bag-btn:active,
.icon-btn:active,
.primary-btn:active,
.secondary-btn:active,
.shape-btn:active,
.tool-toggle:active {
  transform: translateY(1px) scale(0.98);
}

.sync-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

.sync-chip b,
.sync-chip small {
  display: block;
  text-align: left;
  line-height: 1.1;
}

.sync-chip b {
  font-size: 13px;
}

.sync-chip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 207, 107, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}

.icon-btn {
  width: 42px;
  display: grid;
  place-items: center;
  font-size: 21px;
}

.bag-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 15px;
}

.bag-btn b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--blue));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: 36px;
  min-height: 540px;
  align-items: center;
  padding: 32px 0 44px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #19777d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(44px, 7vw, 92px);
}

.hero-lede {
  max-width: 760px;
  margin: 24px 0 0;
  color: #4c5a68;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-trust span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #3f5961;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.primary-btn,
.secondary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  overflow: hidden;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #0bb8c5, #7d8dff 48%, #ff73a4);
  box-shadow: 0 18px 34px rgba(110, 132, 255, 0.32);
}

.primary-btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 46%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transition: left 0.55s ease;
}

.primary-btn:hover::after {
  left: 120%;
}

.secondary-btn {
  color: #24404a;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 14px 28px rgba(42, 70, 100, 0.1);
}

.full {
  width: 100%;
}

.hero-showcase {
  min-height: 480px;
  border-radius: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-showcase::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  background: conic-gradient(from 90deg, rgba(67, 212, 220, 0.22), rgba(255, 124, 168, 0.24), rgba(255, 207, 107, 0.2), rgba(67, 212, 220, 0.22));
  filter: blur(26px);
  animation: spin 14s linear infinite;
}

.mini-phone,
.hero-card {
  position: relative;
  z-index: 1;
}

.mini-phone {
  width: 220px;
  height: 410px;
  border-radius: 34px;
  padding: 12px;
  background: linear-gradient(145deg, #202b37, #607081);
  box-shadow: 0 30px 70px rgba(31, 44, 57, 0.28);
  transform: rotate(-5deg) translateX(-38px);
}

.phone-speaker {
  width: 58px;
  height: 5px;
  margin: 4px auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.phone-screen {
  height: calc(100% - 19px);
  border-radius: 25px;
  padding: 18px 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(238, 249, 255, 0.72)),
    #fff;
  overflow: hidden;
}

.phone-status {
  display: block;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(67, 212, 220, 0.13);
  color: #1a7378;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.phone-beads,
.case-art {
  --dot: 16px;
  margin: 28px auto 20px;
  width: 160px;
  height: 160px;
  border-radius: 28px;
  background-image:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.78) 0 18%, transparent 19%),
    radial-gradient(circle at center, var(--rose) 0 46%, transparent 48%),
    radial-gradient(circle at center, var(--cyan) 0 46%, transparent 48%),
    radial-gradient(circle at center, var(--gold) 0 46%, transparent 48%),
    radial-gradient(circle at center, var(--blue) 0 46%, transparent 48%);
  background-size: var(--dot) var(--dot), calc(var(--dot) * 2) calc(var(--dot) * 2), calc(var(--dot) * 2) calc(var(--dot) * 2), calc(var(--dot) * 2) calc(var(--dot) * 2), calc(var(--dot) * 2) calc(var(--dot) * 2);
  background-position: 0 0, 0 0, var(--dot) 0, 0 var(--dot), var(--dot) var(--dot);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.55), 0 22px 30px rgba(110, 132, 255, 0.18);
  mask-image: radial-gradient(circle at 50% 44%, #000 0 58%, transparent 59%);
}

.phone-cta {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--rose));
  font-weight: 800;
}

.hero-card {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 245px;
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 20px 48px rgba(42, 70, 100, 0.16);
}

.hero-card span,
.hero-card p {
  color: var(--muted);
}

.hero-card strong {
  display: block;
  margin: 6px 0;
  font-size: 20px;
}

.hero-card p {
  margin: 0;
  line-height: 1.6;
}

.hero-card small {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(67, 212, 220, 0.12);
  color: #19777d;
  font-weight: 800;
}

.designer-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 330px;
  gap: 18px;
  min-height: 780px;
  padding: 18px;
  border-radius: 34px;
}

.tool-panel,
.canvas-stage,
.mobile-flow,
.process {
  position: relative;
  z-index: 1;
}

.tool-panel {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-heading span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.panel-heading h2,
.stage-toolbar h2,
.section-heading h2 {
  margin: 0;
}

.panel-heading h2 {
  font-size: 19px;
}

.upload-drop {
  display: grid;
  place-items: center;
  min-height: 164px;
  padding: 20px;
  border: 1px dashed rgba(47, 130, 145, 0.38);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.75), transparent 70%),
    rgba(255, 255, 255, 0.44);
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.upload-drop:hover,
.upload-drop.dragging {
  transform: translateY(-2px);
  border-color: rgba(25, 119, 125, 0.72);
  box-shadow: 0 18px 36px rgba(67, 212, 220, 0.14);
}

.upload-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 12%, transparent 13%),
    radial-gradient(circle at 70% 66%, #fff 0 11%, transparent 12%),
    linear-gradient(135deg, var(--cyan), var(--rose));
}

.upload-drop strong,
.upload-drop small {
  display: block;
}

.upload-drop small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.control-group {
  margin-top: 20px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.control-label b {
  color: var(--ink);
}

input[type="range"] {
  width: 100%;
  height: 16px;
  appearance: none;
  background: transparent;
  cursor: grab;
}

input[type="range"]:active {
  cursor: grabbing;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--rose));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: linear-gradient(135deg, #fff, #dff9ff);
  box-shadow: 0 8px 18px rgba(42, 70, 100, 0.25);
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.08);
}

.shape-tools,
.edit-tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.shape-btn,
.tool-toggle {
  min-height: 44px;
  border-radius: 14px;
  color: #415160;
  background: rgba(255, 255, 255, 0.56);
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.shape-btn.active,
.tool-toggle.active {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 26px rgba(84, 136, 240, 0.24);
}

.sync-card {
  margin-top: 20px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.sync-card span,
.sync-card small {
  color: var(--muted);
}

.sync-card strong,
.sync-card small {
  display: block;
}

.sync-card strong {
  margin: 6px 0;
}

.sync-card small {
  line-height: 1.55;
}

.draft-meta,
.order-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.draft-meta {
  grid-template-columns: 1fr;
}

.draft-meta div,
.order-breakdown div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.48);
}

.draft-meta span,
.order-breakdown span {
  color: var(--muted);
  font-size: 12px;
}

.draft-meta b,
.order-breakdown b {
  color: #243644;
  font-size: 12px;
  text-align: right;
}

.canvas-stage {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-width: 0;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 4px 0;
}

.stage-kicker {
  color: #19777d;
  font-size: 13px;
  font-weight: 900;
}

.stage-toolbar h2 {
  margin-top: 4px;
  font-size: clamp(22px, 3vw, 34px);
}

.zoom-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.zoom-tools button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--rose));
  font-size: 20px;
  line-height: 1;
}

.zoom-tools span {
  min-width: 52px;
  text-align: center;
  font-weight: 800;
}

.canvas-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.4) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.4) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.4) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.4) 75%),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.26));
  background-position: 0 0, 16px 16px, 0 0;
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#beadCanvas {
  width: min(94%, 640px);
  height: auto;
  max-height: 640px;
  border-radius: 24px;
  filter: drop-shadow(0 26px 36px rgba(42, 70, 100, 0.2));
  transition: transform 0.22s ease;
  touch-action: none;
}

.canvas-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 26px rgba(42, 70, 100, 0.12);
  color: #4d5d68;
  font-size: 13px;
  white-space: nowrap;
}

.canvas-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.stage-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stage-metrics article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.stage-metrics span,
.price-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stage-metrics strong,
.price-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.palette-list {
  display: grid;
  gap: 10px;
  max-height: 430px;
  padding-right: 4px;
  overflow: auto;
  scrollbar-width: thin;
}

.palette-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.palette-item:hover {
  transform: translateX(-2px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(42, 70, 100, 0.08);
}

.palette-item.active {
  background:
    linear-gradient(135deg, rgba(67, 212, 220, 0.18), rgba(115, 151, 255, 0.12)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 34px rgba(67, 128, 220, 0.16);
}

.swatch {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.65), 0 8px 18px rgba(42, 70, 100, 0.12);
}

.palette-meta {
  min-width: 0;
}

.palette-meta strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.palette-meta select {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #30404c;
  padding: 0 10px;
}

.price-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
}

.price-card > * {
  position: relative;
  z-index: 1;
}

.price-card strong {
  font-size: 36px;
  background: linear-gradient(135deg, #0c9aaa, #827cff, #ff6f9d);
  -webkit-background-clip: text;
  color: transparent;
}

.price-card small {
  color: var(--muted);
  line-height: 1.6;
}

.order-breakdown {
  position: relative;
  z-index: 1;
}

.order-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-flow,
.materials,
.process,
.cases {
  margin-top: 34px;
}

.mobile-flow {
  display: none;
  padding: 20px;
  border-radius: 28px;
}

.mobile-sync-strip {
  display: grid;
  gap: 4px;
  margin: -4px 0 14px;
  padding: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(67, 212, 220, 0.22), transparent 60%),
    rgba(255, 255, 255, 0.52);
}

.mobile-sync-strip span,
.mobile-sync-strip small {
  color: var(--muted);
  font-size: 12px;
}

.mobile-sync-strip strong {
  font-size: 17px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.flow-step {
  padding: 14px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  text-align: center;
}

.flow-step b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0 auto 8px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.flow-step span {
  font-weight: 800;
  font-size: 13px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 56px);
}

.material-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.material-card,
.case-card {
  position: relative;
  border-radius: 24px;
  padding: 20px;
  overflow: hidden;
}

.material-card {
  min-height: 226px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 48px rgba(42, 70, 100, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.material-card:hover,
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(42, 70, 100, 0.17);
}

.material-sample {
  width: 100%;
  height: 106px;
  border-radius: 18px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.86) 0 12%, transparent 13%),
    radial-gradient(circle at center, var(--sample, var(--cyan)) 0 48%, transparent 50%);
  background-size: 22px 22px, 22px 22px;
  box-shadow: inset 0 10px 22px rgba(255, 255, 255, 0.32);
}

.material-card h3,
.case-card h3,
.process-card h3 {
  margin: 0 0 8px;
}

.material-card p,
.case-card p,
.process-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.process {
  padding: 28px;
  border-radius: 34px;
}

.process > * {
  position: relative;
  z-index: 1;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.process-card {
  min-height: 210px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
  scroll-snap-align: start;
  transition: transform 0.28s ease, background 0.28s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.72);
}

.process-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #19777d;
  font-weight: 900;
}

.process-card small {
  display: block;
  margin-top: 12px;
  color: #2f6f79;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 800;
}

.process-visual {
  height: 94px;
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.86) 0 9%, transparent 10%),
    radial-gradient(circle at center, var(--cyan) 0 46%, transparent 48%);
  background-size: 20px 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -18px 34px rgba(67, 91, 114, 0.06);
}

.visual-image {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 34% 40%, #ff7ca8 0 16%, transparent 17%),
    radial-gradient(circle at 62% 42%, #43d4dc 0 17%, transparent 18%),
    linear-gradient(135deg, #fff6fb, #e9fbff);
}

.visual-pixel {
  background-image:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.82) 0 14%, transparent 15%),
    radial-gradient(circle at center, #f472b6 0 46%, transparent 48%),
    radial-gradient(circle at center, #60a5fa 0 46%, transparent 48%),
    radial-gradient(circle at center, #34d399 0 46%, transparent 48%),
    radial-gradient(circle at center, #fbbf24 0 46%, transparent 48%);
  background-size: 14px 14px, 28px 28px, 28px 28px, 28px 28px, 28px 28px;
  background-position: 0 0, 0 0, 14px 0, 0 14px, 14px 14px;
}

.visual-material {
  background:
    radial-gradient(circle at 25% 54%, rgba(255, 255, 255, 0.9) 0 7%, transparent 8%),
    radial-gradient(circle at 25% 54%, #ff7ca8 0 19%, transparent 20%),
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.8) 0 7%, transparent 8%),
    radial-gradient(circle at 50% 54%, #43d4dc 0 19%, transparent 20%),
    radial-gradient(circle at 75% 54%, rgba(255, 255, 255, 0.92) 0 7%, transparent 8%),
    radial-gradient(circle at 75% 54%, #ffcf6b 0 19%, transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.32));
}

.visual-board {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.44) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.44) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.8) 0 11%, transparent 12%),
    radial-gradient(circle at center, #7397ff 0 46%, transparent 48%);
  background-size: 16px 16px, 16px 16px, 16px 16px, 16px 16px;
  background-color: rgba(255, 255, 255, 0.32);
}

.visual-iron {
  background:
    linear-gradient(145deg, transparent 34%, rgba(31, 41, 55, 0.72) 35% 58%, transparent 59%),
    radial-gradient(circle at 54% 40%, rgba(255, 255, 255, 0.74) 0 7%, transparent 8%),
    radial-gradient(circle at center, #ff9f7c 0 45%, transparent 47%);
  background-size: auto, 18px 18px, 18px 18px;
  background-color: rgba(255, 246, 240, 0.72);
}

.visual-pack {
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.74) 43% 47%, transparent 48%),
    linear-gradient(90deg, rgba(67, 212, 220, 0.52), rgba(255, 124, 168, 0.42)),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.85) 0 10%, transparent 11%),
    radial-gradient(circle at center, #a78bfa 0 45%, transparent 47%);
  background-size: auto, auto, 18px 18px, 18px 18px;
}

.case-grid {
  grid-template-columns: repeat(3, 1fr);
}

.case-card {
  padding: 18px;
}

.case-art {
  width: 100%;
  height: 220px;
  margin: 0 0 18px;
  border-radius: 22px;
  mask-image: none;
}

.case-art.pet {
  --cyan: #64d7e8;
  --rose: #f28bb0;
  --gold: #ffd269;
  --blue: #7a96ff;
}

.case-art.bouquet {
  --cyan: #78e4b5;
  --rose: #ff7aa9;
  --gold: #ffe27d;
  --blue: #b69bff;
}

.case-art.coaster {
  --cyan: #5bd2d0;
  --rose: #ff9f7c;
  --gold: #ffd676;
  --blue: #78a8ff;
  border-radius: 999px;
}

.mobile-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: none;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
  padding: 10px;
  border-radius: 22px;
}

.mobile-dock button {
  min-height: 44px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-weight: 800;
}

.mobile-dock button:last-child {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--rose));
}

.login-dialog {
  width: min(460px, calc(100% - 32px));
  border: 0;
  border-radius: 28px;
  padding: 0;
  color: var(--ink);
}

.login-dialog::backdrop {
  background: rgba(21, 32, 44, 0.24);
  backdrop-filter: blur(8px);
}

.login-dialog form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 26px;
}

.login-dialog h2 {
  margin: 0 0 6px;
  line-height: 1.25;
}

.dialog-helper {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.login-dialog label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.login-dialog input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  outline: 0;
}

.login-dialog input:focus {
  box-shadow: 0 0 0 4px rgba(67, 212, 220, 0.18);
}

.form-error {
  min-height: 20px;
  color: #d63d63;
  font-size: 13px;
  font-weight: 800;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  font-size: 22px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translate(-50%, 24px);
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(27, 39, 52, 0.84);
  box-shadow: 0 18px 38px rgba(27, 39, 52, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5vw, -3vh, 0) scale(1.06);
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 10px rgba(255, 207, 107, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 1180px) {
  .designer-shell {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .panel-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 18px;
  }

  .panel-right .panel-heading {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .palette-list {
    max-height: 250px;
    grid-template-columns: repeat(2, 1fr);
  }

  .price-card,
  .order-actions {
    margin-top: 0;
  }

  .material-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stage-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  main {
    width: min(100% - 24px, 720px);
    padding-top: 94px;
    padding-bottom: 92px;
  }

  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr auto;
    min-height: 62px;
    border-radius: 20px;
  }

  .nav-links,
  .sync-chip,
  .icon-btn {
    display: none;
  }

  .brand small {
    display: none;
  }

  .bag-btn span {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 24px;
    padding-top: 20px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-showcase {
    min-height: 390px;
  }

  .mini-phone {
    transform: rotate(-4deg);
  }

  .hero-card {
    right: 18px;
    bottom: 18px;
    width: min(240px, calc(100% - 36px));
  }

  .designer-shell {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 28px;
  }

  .tool-panel {
    padding: 15px;
  }

  .panel-left {
    order: 1;
  }

  .canvas-stage {
    order: 2;
  }

  .panel-right {
    order: 3;
    display: block;
  }

  .palette-list {
    grid-template-columns: 1fr;
    max-height: 360px;
  }

  .canvas-wrap {
    min-height: 390px;
  }

  #beadCanvas {
    width: 96%;
  }

  .canvas-hint {
    flex-direction: column;
    gap: 2px;
    width: calc(100% - 36px);
    border-radius: 18px;
    white-space: normal;
    text-align: center;
  }

  .stage-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage-metrics {
    grid-template-columns: 1fr;
  }

  .stage-metrics article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .stage-metrics strong {
    margin-top: 0;
    font-size: 20px;
  }

  .mobile-flow {
    display: block;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .material-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .process {
    padding: 18px;
  }

  .mobile-dock {
    display: grid;
  }

  .order-breakdown div {
    padding: 11px 12px;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    display: grid;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .shape-tools,
  .edit-tools {
    grid-template-columns: 1fr 1fr;
  }

  .mini-phone {
    width: 190px;
    height: 355px;
  }

  .phone-beads {
    width: 136px;
    height: 136px;
  }

  .hero-showcase {
    min-height: 350px;
  }

  .flow-steps {
    gap: 8px;
  }

  .flow-step {
    padding: 12px 8px;
  }

  .mobile-dock {
    grid-template-columns: 0.9fr 0.9fr 1.1fr;
  }

  .mobile-dock button {
    font-size: 13px;
  }
}

/* Material fidelity refinements */
.palette-item {
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
}

.swatch {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  box-shadow:
    inset 0 2px 10px rgba(255, 255, 255, 0.72),
    0 10px 22px rgba(42, 70, 100, 0.14);
}

.swatch::after {
  content: attr(data-code);
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: #fff;
  background: rgba(24, 33, 43, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.palette-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.palette-detail span {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #4c5d69;
  font-size: 11px;
  font-weight: 800;
}

.palette-pick-btn {
  width: 100%;
  min-height: 34px;
  border-radius: 12px;
  color: #24515e;
  background: rgba(255, 255, 255, 0.66);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.catalog-picker {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(67, 212, 220, 0.18), transparent 60%),
    rgba(255, 255, 255, 0.5);
}

.catalog-preview {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
}

.catalog-preview-bead {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  box-shadow:
    inset 0 2px 10px rgba(255, 255, 255, 0.72),
    0 12px 24px rgba(42, 70, 100, 0.14);
}

.catalog-preview-bead::after {
  content: attr(data-code);
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 33, 43, 0.78);
  font-size: 11px;
  font-weight: 900;
}

.catalog-preview span,
.catalog-preview small,
.catalog-search span {
  color: var(--muted);
  font-size: 12px;
}

.catalog-preview strong {
  display: block;
  margin: 4px 0;
  font-size: 18px;
}

.catalog-search {
  display: grid;
  gap: 7px;
}

.catalog-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  outline: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  min-height: 374px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.86), rgba(255,255,255,.52) 47%, rgba(42,70,100,.08) 49%, rgba(42,70,100,.13) 50%, rgba(255,255,255,.5) 52%, rgba(255,255,255,.86)),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    inset 18px 0 30px rgba(255,255,255,.24),
    inset -18px 0 30px rgba(42,70,100,.06),
    0 18px 34px rgba(42,70,100,.12);
}

.book-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.book-toolbar button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #24404a;
  background: rgba(255,255,255,.66);
  font-weight: 900;
}

.book-toolbar button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.book-toolbar strong {
  color: #344a5b;
  font-size: 13px;
  text-align: center;
}

.catalog-chip {
  display: grid;
  gap: 4px;
  place-items: center;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.catalog-chip.active {
  border-color: rgba(13, 139, 214, 0.86);
  box-shadow: 0 0 0 2px rgba(13, 139, 214, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.catalog-chip-bead {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--chip), #000 34%) 0 16%, color-mix(in srgb, var(--chip), #000 15%) 17% 27%, transparent 28%),
    radial-gradient(circle at 30% 23%, rgba(255, 255, 255, 0.88) 0 11%, transparent 12%),
    radial-gradient(circle at 45% 62%, color-mix(in srgb, var(--chip), #fff 12%) 0 46%, var(--chip) 68%, color-mix(in srgb, var(--chip), #000 24%) 100%);
  box-shadow:
    inset -2px -3px 6px rgba(38, 50, 61, 0.16),
    inset 1px 2px 5px rgba(255, 255, 255, 0.54),
    0 5px 10px rgba(42, 70, 100, 0.13);
}

.catalog-chip b {
  color: #253745;
  font-size: 11px;
}

.catalog-chip:hover {
  transform: translateY(-1px);
}

.material-sample {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.material-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #19777d;
  background: rgba(67, 212, 220, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.material-card small {
  display: block;
  margin-top: 12px;
  color: #2f6f79;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.material-bead {
  display: block;
  width: calc(24px * var(--scale, 1));
  height: calc(24px * var(--scale, 1));
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.92) 0 14%, transparent 15%),
    radial-gradient(circle at center, var(--sample) 0 58%, color-mix(in srgb, var(--sample), #000 22%) 100%);
  box-shadow:
    inset 0 2px 7px rgba(255, 255, 255, 0.48),
    0 8px 16px rgba(42, 70, 100, 0.16);
}

.finish-clear .material-bead,
.material-bead.finish-clear {
  opacity: 0.68;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 48%),
    radial-gradient(circle at center, color-mix(in srgb, var(--sample), #fff 25%) 0 55%, transparent 56%);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.finish-glow .material-bead,
.material-bead.finish-glow {
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.9) 0 13%, transparent 14%),
    radial-gradient(circle at center, #b7ffd8 0 50%, #73e2b7 100%);
  box-shadow:
    0 0 18px rgba(115, 226, 183, 0.82),
    0 0 34px rgba(115, 226, 183, 0.34),
    inset 0 2px 8px rgba(255, 255, 255, 0.52);
}

.finish-pearl .material-bead,
.material-bead.finish-pearl {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), transparent 38%, rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at center, var(--sample) 0 58%, #d8c2ff 100%);
}

.finish-matte .material-bead,
.material-bead.finish-matte {
  filter: saturate(0.72);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 5px),
    radial-gradient(circle at center, var(--sample) 0 58%, #607080 100%);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.22), 0 6px 14px rgba(42, 70, 100, 0.12);
}

.finish-metal .material-bead,
.material-bead.finish-metal {
  background:
    linear-gradient(115deg, transparent 0 30%, rgba(255, 255, 255, 0.9) 42%, transparent 54%),
    radial-gradient(circle at center, var(--sample) 0 48%, #b9821e 100%);
  box-shadow:
    inset 0 2px 7px rgba(255, 255, 255, 0.58),
    0 8px 16px rgba(255, 207, 107, 0.28);
}

.finish-mini .material-bead,
.material-bead.finish-mini {
  width: calc(18px * var(--scale, 1));
  height: calc(18px * var(--scale, 1));
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.material-scenes {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  padding: 28px;
  border-radius: 34px;
}

.material-scenes > * {
  position: relative;
  z-index: 1;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(210px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.scene-card {
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 18px 48px rgba(42, 70, 100, 0.12);
  scroll-snap-align: start;
}

.scene-stage {
  display: grid;
  place-items: center;
  min-height: 160px;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.8), transparent 45%),
    linear-gradient(135deg, #f8fdff, #fff2f8);
}

.scene-beads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 150px;
}

.scene-copy {
  padding: 18px;
}

.scene-copy span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #19777d;
  background: rgba(67, 212, 220, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.scene-copy h3 {
  margin: 0 0 8px;
}

.scene-copy p,
.scene-copy small {
  color: var(--muted);
  line-height: 1.65;
}

.scene-copy p {
  margin: 0;
}

.scene-copy small {
  display: block;
  margin-top: 12px;
  color: #2f6f79;
  font-weight: 800;
}

.scene-clear .scene-stage {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0 10%, transparent 10% 22%, rgba(255, 255, 255, 0.55) 22% 32%, transparent 32%),
    linear-gradient(135deg, #dff9ff, #ffffff);
}

.scene-glow .scene-stage {
  background:
    radial-gradient(circle at 50% 48%, rgba(115, 226, 183, 0.34), transparent 35%),
    radial-gradient(circle at 20% 18%, rgba(156, 255, 210, 0.22), transparent 16%),
    linear-gradient(135deg, #08111d, #162436 58%, #071018);
}

.scene-glow .scene-copy {
  background: linear-gradient(180deg, rgba(12, 24, 36, 0.98), rgba(17, 33, 48, 0.94));
}

.scene-glow .scene-copy h3,
.scene-glow .scene-copy p,
.scene-glow .scene-copy small {
  color: #dffdf0;
}

.scene-glow .scene-copy span {
  color: #a7ffd0;
  background: rgba(115, 226, 183, 0.16);
}

.scene-pearl .scene-stage {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.9), transparent 22%),
    linear-gradient(135deg, #fff6fb, #eee7ff);
}

.scene-matte .scene-stage {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(#dce7ec, #f7fbff);
  background-size: 18px 18px, auto;
}

.scene-metal .scene-stage {
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.62) 42%, transparent 50%),
    linear-gradient(135deg, #fff0b8, #f6fbff);
}

.scene-mini .scene-stage {
  background:
    linear-gradient(90deg, rgba(115, 151, 255, 0.2) 1px, transparent 1px),
    linear-gradient(rgba(115, 151, 255, 0.2) 1px, transparent 1px),
    linear-gradient(135deg, #f6f9ff, #ffffff);
  background-size: 12px 12px, 12px 12px, auto;
}

@media (max-width: 880px) {
  .scene-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .material-scenes {
    padding: 18px;
  }
}

.spec-toggle,
.preset-grid {
  display: grid;
  gap: 8px;
}

.spec-toggle {
  grid-template-columns: repeat(2, 1fr);
}

.spec-btn,
.preset-grid button {
  min-height: 38px;
  border-radius: 13px;
  color: #415160;
  background: rgba(255, 255, 255, 0.56);
  font-weight: 900;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.spec-btn.active,
.preset-grid button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 24px rgba(84, 136, 240, 0.22);
}

.preset-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
}

.size-guide {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  padding: 28px;
  border-radius: 34px;
}

.size-guide > * {
  position: relative;
  z-index: 1;
}

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

.guide-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 18px 48px rgba(42, 70, 100, 0.11);
}

.guide-card h3 {
  margin: 0 0 8px;
}

.guide-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.size-rows {
  display: grid;
  gap: 8px;
}

.size-rows span {
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
  color: #364756;
  font-size: 13px;
  font-weight: 800;
}

.material-sample {
  isolation: isolate;
  height: 142px;
  padding: 14px;
  align-items: stretch;
  justify-content: stretch;
  background:
    radial-gradient(circle at 18% 0, rgba(255, 255, 255, 0.95), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--sample), #fff 82%), color-mix(in srgb, var(--sample), #fff 62%));
  background-size: auto;
}

.bead-tray {
  position: absolute;
  inset: 14px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  padding: 12px;
  border-radius: 20px;
  transform: perspective(700px) rotateX(10deg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.28)),
    color-mix(in srgb, var(--sample), #fff 74%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -20px 36px rgba(48, 75, 96, 0.08),
    0 16px 28px rgba(42, 70, 100, 0.12);
}

.bead-tray .material-bead {
  width: 15px;
  height: 15px;
  justify-self: center;
  align-self: center;
}

.macro-beads {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.macro-beads .material-bead {
  width: 31px;
  height: 31px;
}

.material-bead {
  position: relative;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.96) 0 12%, transparent 13%),
    radial-gradient(circle at 44% 62%, color-mix(in srgb, var(--sample), #fff 9%) 0 44%, color-mix(in srgb, var(--sample), #000 12%) 72%, color-mix(in srgb, var(--sample), #000 24%) 100%);
  box-shadow:
    inset -3px -5px 9px rgba(38, 50, 61, 0.18),
    inset 2px 3px 8px rgba(255, 255, 255, 0.58),
    0 8px 14px rgba(42, 70, 100, 0.18);
}

.material-bead::after {
  content: "";
  position: absolute;
  left: 26%;
  top: 18%;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(0.5px);
}

.finish-standard .material-bead,
.material-bead.finish-standard {
  filter: saturate(0.95) contrast(0.98);
}

.finish-standard .material-bead::before,
.material-bead.finish-standard::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.26);
}

.finish-pe-eva .material-bead,
.material-bead.finish-pe-eva {
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--sample), #000 34%) 0 16%, color-mix(in srgb, var(--sample), #000 15%) 17% 27%, transparent 28%),
    radial-gradient(circle at 30% 23%, rgba(255, 255, 255, 0.9) 0 11%, transparent 12%),
    radial-gradient(circle at 45% 62%, color-mix(in srgb, var(--sample), #fff 12%) 0 46%, var(--sample) 68%, color-mix(in srgb, var(--sample), #000 24%) 100%);
  box-shadow:
    inset -3px -5px 9px rgba(38, 50, 61, 0.2),
    inset 2px 3px 8px rgba(255, 255, 255, 0.58),
    0 8px 14px rgba(42, 70, 100, 0.18);
}

.finish-pe-eva .material-bead::before,
.material-bead.finish-pe-eva::before {
  content: "";
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 40%, rgba(255, 255, 255, 0.2), transparent 38%),
    color-mix(in srgb, var(--sample), #000 28%);
  box-shadow:
    inset 2px 2px 4px rgba(0, 0, 0, 0.22),
    inset -1px -1px 3px rgba(255, 255, 255, 0.32);
}

.finish-pe-eva .material-bead::after,
.material-bead.finish-pe-eva::after {
  left: 25%;
  top: 18%;
  width: 22%;
  height: 22%;
}

.scene-pe-eva .scene-stage {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(135deg, #eef8ff, #fff6f8);
  background-size: 18px 18px, 18px 18px, auto;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.reference-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  overflow: hidden;
}

.reference-card > * {
  position: relative;
  z-index: 1;
}

.reference-card img {
  width: 150px;
  height: 118px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(42, 70, 100, 0.14);
}

.reference-card h3 {
  margin: 0 0 8px;
}

.reference-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 1180px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .reference-card {
    grid-template-columns: 1fr;
  }

  .reference-card img {
    width: 100%;
    height: 180px;
  }

  .size-guide {
    padding: 18px;
  }

  .preset-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .material-sample {
    height: 132px;
  }
}
