/* Moonistarz — night sky, chrome gothic lettering, violet glow, chains, hearts and butterflies. */
:root {
  --bg: #07010f;
  --bg-2: #12042a;
  --ink: #f5ecff;
  --muted: #bfa8dc;
  --faint: #8b74a8;
  --line: rgba(222, 186, 255, 0.32);
  --line-soft: rgba(222, 186, 255, 0.14);
  --panel: rgba(30, 9, 56, 0.78);
  --panel-2: rgba(14, 3, 28, 0.86);
  --violet: #b678ff;
  --violet-deep: #7a2fe0;
  --lilac: #e8d2ff;
  --pink: #ff86e6;
  --accent: #c58bff;
  --accent-2: #ff8be8;
  --accent-rgb: 182, 120, 255;
  --good: #8ff0c4;
  --bad: #ff8fa8;
  --radius: 20px;
  --font-display: "Grenze Gotisch", "Cinzel", serif;
  --font-label: "Cinzel", Georgia, serif;
  --font-script: "Pinyon Script", cursive;
  --font-body: "Nunito", system-ui, sans-serif;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C13 8 16 11 24 12C16 13 13 16 12 24C11 16 8 13 0 12C8 11 11 8 12 0Z' fill='%23f6eaff'/%3E%3C/svg%3E");
  color-scheme: dark;
}
.theme-yongs { --accent: #4d8dff; --accent-2: #36d6ff; --accent-rgb: 61, 123, 255; }
.theme-alice { --accent: #4b93e6; --accent-2: #b9a2ff; --accent-rgb: 110, 180, 255; }
.theme-mooni { --accent: #c58bff; --accent-2: #ff8be8; --accent-rgb: 182, 120, 255; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(120, 40, 200, 0.35), transparent 60%),
    radial-gradient(900px 600px at 95% 10%, rgba(200, 70, 220, 0.22), transparent 60%),
    radial-gradient(1000px 800px at 50% 110%, rgba(110, 40, 190, 0.35), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
#butterflies { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
a { color: var(--lilac); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.chrome {
  background: linear-gradient(180deg, #ffffff 0%, #f4e6ff 28%, #c7a0f5 46%, #7434c4 52%, #dcbcff 66%, #ffffff 86%, #e6cfff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.55)) drop-shadow(0 2px 0 rgba(30, 0, 60, 0.9));
}
.theme-yongs .chrome { background-image: linear-gradient(180deg, #fff 0%, #e6f0ff 30%, #8fb4ff 46%, #1d4fd8 52%, #b9d0ff 68%, #fff 88%); }
.theme-alice .chrome { background-image: linear-gradient(180deg, #fff 0%, #effaff 30%, #a8dcff 46%, #5a62c9 52%, #d9e9ff 68%, #fff 88%); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; }
.display { font-family: var(--font-display); font-weight: 900; letter-spacing: 0.01em; }
.h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.script { font-family: var(--font-script); font-weight: 400; color: #f3dcff; text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.8); }
.label { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; color: var(--lilac); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.section-head { text-align: center; margin: 0 auto 36px; max-width: 760px; }
.section-head .script { font-size: clamp(1.8rem, 3.4vw, 2.6rem); display: block; margin-top: -6px; }
.section-head p { margin: 10px auto 0; color: var(--muted); }

/* ---------- layout ---------- */
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 64px 0; position: relative; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 10px max(16px, calc((100% - 1240px) / 2));
  background: linear-gradient(180deg, rgba(10, 2, 22, 0.92), rgba(10, 2, 22, 0.72));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-moon { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(190, 130, 255, 0.8)); }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; line-height: 1;
  background: linear-gradient(180deg, #fff, #e3c8ff 45%, #9a5ae6 55%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(182, 120, 255, 0.6)); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-drop-btn {
  padding: 8px 14px; border-radius: 999px; font-family: var(--font-label); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav-drop-btn:hover, .nav > a.active { color: #fff; background: rgba(182, 120, 255, 0.14); text-shadow: 0 0 10px rgba(200, 150, 255, 0.9); }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 200px;
  padding: 8px; border-radius: 16px; background: rgba(16, 4, 32, 0.97); border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(150, 70, 255, 0.2);
  display: none;
}
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: block; }
.nav-drop:hover .nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 700; }
.nav-drop-menu a:hover { background: rgba(182, 120, 255, 0.14); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 10px currentColor; }
.dot.mooni { background: #c58bff; color: #c58bff; }
.dot.yongs { background: #3d7bff; color: #3d7bff; }
.dot.alice { background: #8fd8ff; color: #8fd8ff; }
.nav-user { margin-left: 8px; display: flex; align-items: center; }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: rgba(182, 120, 255, 0.12); border: 1px solid var(--line); font-weight: 700; font-size: 0.9rem;
}
.user-chip img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); }
.user-chip .stars { font-family: var(--font-label); font-size: 0.75rem; color: var(--pink); letter-spacing: 0.06em; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 12px; padding: 9px 9px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--lilac); margin: 4px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  --b: rgba(255, 255, 255, 0.38);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; cursor: pointer; text-align: center;
  font-family: var(--font-label); font-weight: 900; font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; border: 1px solid var(--b);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, white) 0%, var(--accent) 35%, color-mix(in srgb, var(--accent) 55%, #2a0055) 100%);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16), 0 10px 26px rgba(var(--accent-rgb), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 2px rgba(40, 0, 70, 0.6);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s;
}
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.22), 0 14px 34px rgba(var(--accent-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; filter: grayscale(0.4); }
.btn-ghost { background: rgba(var(--accent-rgb), 0.1); border-color: var(--line); box-shadow: none; text-shadow: none; color: var(--lilac); }
.btn-ghost:hover { background: rgba(var(--accent-rgb), 0.2); box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.25); }
.btn-discord { --accent: #5865f2; --accent-rgb: 88, 101, 242; }
.btn-sm { padding: 9px 16px; font-size: 0.74rem; }
.btn-lg { padding: 17px 32px; font-size: 0.95rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-btn { background: none; border: 0; color: var(--lilac); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

/* ---------- ornate frame ---------- */
.frame {
  position: relative; border-radius: var(--radius); padding: 28px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(var(--accent-rgb), 0.2), transparent 62%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 4px rgba(18, 4, 36, 0.7),
    0 0 0 5px rgba(var(--accent-rgb), 0.2),
    0 22px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 40px rgba(var(--accent-rgb), 0.1);
}
.frame::before {
  content: ""; position: absolute; inset: -11px; pointer-events: none;
  background: var(--star) 0 0 / 20px no-repeat, var(--star) 100% 0 / 20px no-repeat, var(--star) 0 100% / 20px no-repeat, var(--star) 100% 100% / 20px no-repeat;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 1));
}
.frame::after {
  content: ""; position: absolute; inset: 7px; border-radius: calc(var(--radius) - 6px); pointer-events: none;
  border: 1px solid rgba(240, 220, 255, 0.1);
}
.frame > .gem { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); width: 34px; height: 30px; z-index: 2; filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.9)); }
.frame.tight { padding: 20px; }
.frame.flat::before { display: none; }
a.frame, button.frame { display: block; color: inherit; transition: transform 0.2s ease, box-shadow 0.25s ease; text-align: left; }
a.frame:hover, button.frame:hover { transform: translateY(-4px); box-shadow: 0 0 0 4px rgba(18, 4, 36, 0.7), 0 0 0 5px rgba(var(--accent-rgb), 0.45), 0 26px 70px rgba(0, 0, 0, 0.55), 0 0 50px rgba(var(--accent-rgb), 0.3), inset 0 0 40px rgba(var(--accent-rgb), 0.16); }

.chain-divider {
  height: 14px; margin: 0 auto; width: min(900px, 90%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='14'%3E%3Crect x='1.5' y='2.5' width='17' height='9' rx='4.5' fill='none' stroke='%23d9bdf7' stroke-width='2'/%3E%3Cpath d='M16 7h13' stroke='%23b993e6' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 30px 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  filter: drop-shadow(0 0 4px rgba(190, 130, 255, 0.7));
  opacity: 0.75;
}
.heart-divider { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 8px auto 46px; width: min(520px, 90%); }
.heart-divider::before, .heart-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.heart-divider svg { width: 26px; height: 24px; filter: drop-shadow(0 0 8px rgba(255, 120, 230, 0.8)); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 0; }
.hero-art { position: relative; width: 100%; max-height: 82vh; overflow: hidden; }
.hero-art img { width: 100%; height: auto; max-height: 82vh; object-fit: cover; object-position: center 40%; }
.hero-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(7, 1, 15, 0.7) 55%, var(--bg)); }
.hero-content { position: relative; margin-top: -150px; text-align: center; z-index: 2; padding: 0 16px; }
.hero-content .script { font-size: clamp(2rem, 4.5vw, 3.4rem); display: block; line-height: 1.1; }
.hero-content p { margin: 10px auto 26px; max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.page-hero { padding: 56px 0 24px; text-align: center; }
.page-hero .script { font-size: clamp(1.8rem, 3.6vw, 2.8rem); display: block; margin-top: -4px; }
.page-hero p { margin: 14px auto 0; max-width: 640px; color: var(--muted); }

/* ---------- designer cards ---------- */
.designer-card { padding: 0; display: flex; flex-direction: column; }
.designer-card .dc-art { height: 190px; position: relative; overflow: hidden; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.designer-card .dc-art > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.designer-card .dc-art img { object-fit: cover; }
.designer-card .dc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.designer-card .dc-name { font-family: var(--font-display); font-weight: 900; font-size: 2.3rem; line-height: 1; }
.designer-card .dc-tag { color: var(--muted); }
.designer-card .dc-from { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.designer-card .dc-from b { font-family: var(--font-label); font-size: 1.3rem; color: #fff; }

.art-mooni { background: radial-gradient(circle at 50% 35%, #a467ff 0, #42127a 38%, #12041f 75%); }
.art-yongs { background: radial-gradient(circle at 50% 40%, #2f6bff 0, #0a1f6b 40%, #020617 78%); }
.art-alice { background: radial-gradient(circle at 50% 35%, #5aa7d6 0, #222a6b 42%, #070514 80%); }

/* ---------- steps ---------- */
.steps { counter-reset: s; }
.step-card { text-align: center; padding: 30px 22px; }
.step-card svg { width: 64px; height: 64px; margin: 0 auto 12px; filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.7)); }
.step-card h3 { font-family: var(--font-label); font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.step-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- price boards ---------- */
.price-board { padding: 34px 28px 28px; }
.price-board .pb-head { text-align: center; margin-bottom: 20px; }
.price-board .pb-head .display { font-size: clamp(2.2rem, 4vw, 3rem); }
.price-board .pb-head .script { font-size: 1.9rem; display: block; margin-top: -2px; }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 16px 4px; border-top: 1px solid var(--line-soft); }
.price-row:first-of-type { border-top: 0; }
.price-row h4 { margin: 0; font-family: var(--font-label); font-size: 1.02rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.price-row h4 small { display: block; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.12em; margin-top: 2px; }
.art-prices { display: grid; grid-template-columns: auto auto; gap: 2px 10px; align-items: baseline; justify-items: end; }
.art-prices > span:not(.price-tag) { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.art-prices .price-tag { font-size: 1.4rem; }
.art-prices .price-tag.quote { font-size: 0.78rem; }
.price-row ul { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 0.9rem; }
.price-row li::before { content: "✦"; margin-right: 6px; color: var(--accent); }
.price-tag {
  font-family: var(--font-label); font-weight: 900; font-size: 1.9rem; line-height: 1; color: #fff;
  text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.9), 0 2px 0 rgba(30, 0, 60, 0.9);
}
.price-tag.quote { font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lilac); }
.price-row.shop-only { opacity: 0.8; }
.pb-foot { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- loyalty card ---------- */
.star-card {
  position: relative; border-radius: 24px; padding: 26px 26px 22px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(255, 140, 230, 0.35), transparent 50%),
    radial-gradient(140% 120% at 100% 100%, rgba(120, 200, 255, 0.28), transparent 50%),
    linear-gradient(135deg, #2b0a52, #160433 50%, #2a0748);
  border: 1px solid rgba(240, 215, 255, 0.45);
  box-shadow: 0 0 0 5px rgba(20, 4, 40, 0.8), 0 0 0 6px rgba(200, 150, 255, 0.3), 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(180, 100, 255, 0.3);
  max-width: 560px;
}
.star-card::before {
  content: ""; position: absolute; inset: -50%; z-index: -1; opacity: 0.35;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.4), transparent 20%, rgba(255, 150, 240, 0.4), transparent 40%, rgba(150, 220, 255, 0.4), transparent 60%);
  animation: holo 9s linear infinite;
}
@keyframes holo { to { transform: rotate(360deg); } }
.star-card .sc-top { display: flex; align-items: center; gap: 14px; }
.star-card .sc-top img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); box-shadow: 0 0 16px rgba(255, 150, 240, 0.6); }
.star-card .sc-title { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; line-height: 1; }
.star-card .sc-name { font-weight: 800; color: var(--lilac); }
.star-card .sc-slots { display: grid; grid-template-columns: repeat(var(--goal, 5), 1fr); gap: 10px; margin: 22px 0 14px; }
.sc-slot {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative;
  border: 1.5px dashed rgba(230, 200, 255, 0.4); background: rgba(10, 2, 24, 0.5);
}
.sc-slot svg { width: 62%; height: 62%; opacity: 0.25; transition: all 0.4s ease; }
.sc-slot.on { border: 1.5px solid rgba(255, 220, 255, 0.85); background: radial-gradient(circle, rgba(255, 150, 240, 0.4), rgba(120, 40, 220, 0.35) 70%); box-shadow: 0 0 18px rgba(255, 140, 240, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.3); }
.sc-slot.on svg { opacity: 1; filter: drop-shadow(0 0 6px #fff); }
.sc-slot.reward { border-style: solid; border-color: rgba(255, 210, 120, 0.6); }
.sc-slot.reward::after { content: "FREE"; position: absolute; bottom: -18px; font-family: var(--font-label); font-size: 0.62rem; letter-spacing: 0.14em; color: #ffd98a; }
.sc-slot.stamp-new { animation: stamp 0.8s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stamp { 0% { transform: scale(2.2) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.star-card .sc-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 20px; font-size: 0.92rem; }
.star-card .sc-msg { font-weight: 800; }
.star-card .sc-msg.reward { color: #ffd98a; text-shadow: 0 0 12px rgba(255, 200, 100, 0.7); }

/* ---------- chips / filters / inputs ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--accent-rgb), 0.06);
  cursor: pointer; font-weight: 700; font-size: 0.88rem; color: var(--lilac); transition: all 0.15s;
}
.chip:hover { background: rgba(var(--accent-rgb), 0.16); }
.chip.on { background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.55), rgba(var(--accent-rgb), 0.3)); color: #fff; border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.45); }
.chip .n { opacity: 0.7; font-weight: 600; margin-left: 4px; font-size: 0.8em; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(10, 2, 24, 0.6); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 0.88rem; color: var(--muted); }
.seg button.on { background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.7), rgba(var(--accent-rgb), 0.4)); color: #fff; box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.45); }
.input, .textarea, .select {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(8, 2, 20, 0.7); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.9); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2), 0 0 18px rgba(var(--accent-rgb), 0.25); }
.textarea { min-height: 130px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.search { max-width: 260px; }
.field { display: block; }
.field > span { display: block; margin-bottom: 6px; font-weight: 800; font-size: 0.92rem; }
.field > span em { font-style: normal; color: var(--faint); font-weight: 600; }
.field .hint { font-size: 0.82rem; color: var(--faint); margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.dropzone {
  display: block;
  border: 1.5px dashed rgba(var(--accent-rgb), 0.55); border-radius: 16px; padding: 20px; text-align: center; cursor: pointer;
  background: rgba(var(--accent-rgb), 0.05); transition: background 0.15s;
}
.dropzone:hover, .dropzone.drag { background: rgba(var(--accent-rgb), 0.14); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer; line-height: 1; }

/* ---------- template + product cards ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.tpl-card {
  position: relative; border-radius: 18px; overflow: hidden; cursor: pointer; text-align: left; padding: 0;
  border: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(36, 12, 64, 0.85), rgba(14, 3, 28, 0.95));
  transition: transform 0.18s ease, border-color 0.18s, box-shadow 0.2s;
}
.tpl-card:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), 0.7); box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.35); }
.tpl-card.picked { border-color: #fff; box-shadow: 0 0 0 2px var(--accent-2), 0 0 30px rgba(var(--accent-rgb), 0.6); }
.tpl-img { position: relative; aspect-ratio: 4 / 5; background: radial-gradient(70% 60% at 50% 45%, rgba(214, 186, 245, 0.55), rgba(120, 80, 170, 0.25) 60%, transparent 85%); }
.tpl-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.25s; }
.tpl-img img.back { opacity: 0; }
.tpl-card:hover .tpl-img img.back { opacity: 1; }
.tpl-card:hover .tpl-img img.front { opacity: 0; }
.tpl-meta { padding: 10px 12px 12px; }
.tpl-code { font-family: var(--font-label); font-weight: 900; font-size: 0.86rem; letter-spacing: 0.06em; color: #fff; }
.tpl-sub { font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.swatches { display: flex; gap: 4px; }
.swatches i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.8); }
.badge {
  position: absolute; top: 9px; left: 9px; z-index: 2; padding: 3px 9px; border-radius: 999px;
  font-family: var(--font-label); font-weight: 900; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: linear-gradient(180deg, #ff9eea, #c04bd8); color: #fff; box-shadow: 0 0 12px rgba(255, 120, 230, 0.6);
}
.badge.soft { background: rgba(10, 2, 24, 0.75); border: 1px solid var(--line); box-shadow: none; color: var(--lilac); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product-card { padding: 0; display: flex; flex-direction: column; }
.product-card .pc-img { aspect-ratio: 1; position: relative; background: radial-gradient(70% 60% at 50% 45%, rgba(214, 186, 245, 0.4), transparent 85%); border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; overflow: hidden; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card h3 { font-family: var(--font-label); font-size: 1.05rem; letter-spacing: 0.04em; }
.product-card .pc-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.product-card .price-tag { font-size: 1.5rem; }
.soldout { filter: grayscale(0.7); opacity: 0.7; }

.empty { text-align: center; padding: 50px 20px; }
.empty svg { width: 90px; height: 90px; margin: 0 auto 10px; opacity: 0.85; }
.load-more { display: flex; justify-content: center; margin-top: 26px; }
.count-note { color: var(--muted); font-size: 0.9rem; }

/* ---------- wizard ---------- */
.stepper { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 0 auto 30px; }
.stepper .st { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--faint); font-weight: 800; font-size: 0.85rem; background: rgba(10, 2, 24, 0.5); }
.stepper .st i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.78rem; background: rgba(var(--accent-rgb), 0.12); border: 1px solid var(--line); }
.stepper .st.done { color: var(--lilac); cursor: pointer; }
.stepper .st.done i { background: rgba(var(--accent-rgb), 0.45); color: #fff; }
.stepper .st.now { color: #fff; border-color: rgba(var(--accent-rgb), 0.8); box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.35); }
.stepper .st.now i { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; border-color: #fff; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.choice { cursor: pointer; border: 0; width: 100%; font: inherit; }
.choice.on { box-shadow: 0 0 0 4px rgba(18, 4, 36, 0.7), 0 0 0 6px var(--accent-2), 0 0 50px rgba(var(--accent-rgb), 0.5), inset 0 0 40px rgba(var(--accent-rgb), 0.2); }
.choice .tick { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 900; opacity: 0; transform: scale(0.6); transition: all 0.2s; z-index: 3; }
.choice.on .tick { opacity: 1; transform: none; }
.service-choice h3 { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.1rem; margin-bottom: 4px; }
.service-choice .price-tag { display: block; margin: 10px 0 8px; font-size: 2.3rem; }
.service-choice ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.service-choice li::before { content: "✦ "; color: var(--accent); }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.picked-tpl { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(var(--accent-rgb), 0.1); border: 1px solid var(--line); }
.picked-tpl .tpl-img { width: 96px; flex: none; border-radius: 12px; overflow: hidden; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 134, 230, 0.16), rgba(var(--accent-rgb), 0.1)); border: 1px solid rgba(255, 170, 240, 0.4);
}
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice.warn { background: rgba(255, 180, 90, 0.1); border-color: rgba(255, 190, 110, 0.45); }
.summary { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; }
.summary dt { color: var(--muted); font-weight: 700; }
.summary dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line-soft); }

/* ---------- designer page ---------- */
.d-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.d-hero-bg { position: absolute; inset: 0; }
.d-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.d-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 1, 15, 0.2), var(--bg) 96%); }
.d-hero-inner { position: relative; padding: 90px 0 50px; text-align: center; }
.d-hero-inner .display { font-size: clamp(3.2rem, 9vw, 6.4rem); }
.d-hero-inner .script { font-size: clamp(1.7rem, 3.4vw, 2.6rem); display: block; }
.d-hero-inner p { max-width: 640px; margin: 14px auto 24px; color: var(--muted); font-size: 1.06rem; }
.price-image { cursor: zoom-in; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }

/* ---------- account / orders ---------- */
.order-list { display: grid; gap: 12px; }
.order-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px; background: rgba(var(--accent-rgb), 0.07); border: 1px solid var(--line-soft); }
.order-row .or-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: rgba(214, 186, 245, 0.25); display: grid; place-items: center; }
.order-row .or-img img { width: 100%; height: 100%; object-fit: contain; }
.order-row .or-title { font-weight: 800; }
.order-row.past { background: rgba(10, 2, 24, 0.45); }
.order-row.past .or-img { opacity: 0.75; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--line); }
.status.open { color: #c9f; }
.status.completed { color: var(--good); border-color: rgba(143, 240, 196, 0.4); }
.status.cancelled { color: var(--bad); border-color: rgba(255, 143, 168, 0.4); }
.status.closed { color: var(--muted); }

/* ---------- admin ---------- */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line-soft); }
table.admin { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 820px; }
table.admin th, table.admin td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.admin th { font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: rgba(10, 2, 24, 0.6); }
table.admin tr:hover td { background: rgba(var(--accent-rgb), 0.05); }

/* ---------- modal / toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(4, 0, 10, 0.78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade 0.18s ease; }
.modal { width: min(920px, 100%); padding: 0; display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.modal-scroll { overflow-y: auto; overflow-x: hidden; padding: 28px; border-radius: inherit; }
.modal.sm { width: min(560px, 100%); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 2, 24, 0.8); cursor: pointer; font-size: 1.2rem; z-index: 3; }
.modal-close:hover { background: rgba(var(--accent-rgb), 0.3); }
.tpl-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start; }
.tpl-detail .tpl-img { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-soft); }
.lightbox img { max-height: calc(100vh - 60px); width: auto; margin: 0 auto; border-radius: 14px; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; width: min(460px, calc(100% - 32px)); }
.toast { padding: 13px 18px; border-radius: 14px; background: rgba(22, 6, 44, 0.97); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--accent-rgb), 0.25); font-weight: 700; animation: fade 0.2s ease; }
.toast.error { border-color: rgba(255, 143, 168, 0.6); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-page { display: grid; place-items: center; min-height: 50vh; }

/* ---------- success ---------- */
.success { text-align: center; max-width: 720px; margin: 0 auto; }
.success .big-moon { width: 120px; height: 120px; margin: 0 auto 10px; filter: drop-shadow(0 0 24px rgba(255, 160, 240, 0.8)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- footer ---------- */
.footer { margin-top: 60px; padding: 30px 0 26px; background: linear-gradient(180deg, transparent, rgba(20, 4, 40, 0.8)); }
.footer-inner { width: min(1180px, calc(100% - 32px)); margin: 26px auto 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.footer-brand { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; line-height: 1; background: linear-gradient(180deg, #fff, #d7b4ff 50%, #8b4dff 56%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-links { display: grid; gap: 6px; align-content: start; }
.footer-fine { text-align: center; color: var(--faint); font-size: 0.8rem; margin: 30px 0 0; }

/* ---------- butterflies (fx.js) ---------- */
.bfly { position: absolute; width: 46px; height: 40px; opacity: 0.75; filter: drop-shadow(0 0 8px rgba(200, 130, 255, 0.8)); animation: drift linear infinite; }
.bfly .wing-l, .bfly .wing-r { transform-box: fill-box; animation: flap 0.45s ease-in-out infinite alternate; }
.bfly .wing-l { transform-origin: right center; }
.bfly .wing-r { transform-origin: left center; }
@keyframes flap { to { transform: scaleX(0.25); } }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(-8deg); }
  25% { transform: translate(8vw, -6vh) rotate(6deg); }
  50% { transform: translate(2vw, -12vh) rotate(-4deg); }
  75% { transform: translate(-6vw, -5vh) rotate(8deg); }
  100% { transform: translate(0, 0) rotate(-8deg); }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .tpl-detail { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-content { margin-top: -80px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 61px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px;
    background: rgba(10, 2, 22, 0.98); border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 61px); overflow: auto;
  }
  .nav.open { display: flex; }
  .nav > a, .nav-drop-btn { padding: 12px 14px; width: 100%; justify-content: flex-start; }
  .nav-drop-menu { position: static; transform: none; display: block; border: 0; box-shadow: none; background: none; padding: 0 0 0 14px; }
  .nav-user { margin: 8px 0 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .frame { padding: 22px 18px; }
  .summary { grid-template-columns: 1fr; gap: 2px; }
  .summary dd { margin-bottom: 10px; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-content { margin-top: -30px; }
  .hero-art img { min-height: 260px; }
  .order-row { grid-template-columns: 52px 1fr; }
  .order-row > :last-child { grid-column: 1 / -1; }
  .brand-name { font-size: 1.5rem; }
  .star-card { padding: 20px 16px; }
  .star-card .sc-slots { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #butterflies { display: none; }
}
