/* ═══════════════════════════════════════════════
   Snap 彈指電商 — onboarding wizard
   dark ink canvas · amber accent · Jost + Noto Sans TC
   ═══════════════════════════════════════════════ */

:root {
  --ink: #111114;
  --ink-2: #16161b;
  --ink-3: #1d1d24;
  --txt: #ececf0;
  --txt-dim: #9a9aa6;
  --txt-faint: #62626e;
  --accent: #f2a65a;
  --accent-soft: rgba(242, 166, 90, .14);
  --accent-glow: rgba(242, 166, 90, .45);
  --hairline: rgba(255, 255, 255, .09);
  --hairline-strong: rgba(255, 255, 255, .18);
  --radius: 14px;
  --font-display: "Jost", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans TC", "Jost", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { color-scheme: dark; }

body {
  background: var(--ink);
  color: var(--txt);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── 進站響指動畫 ─── */

#intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity .35s ease;
}
#intro.out { opacity: 0; pointer-events: none; }

.intro-core { position: relative; display: grid; place-items: center; }

.intro-hand {
  width: clamp(88px, 18vw, 130px);
  color: var(--accent);
  filter: drop-shadow(0 0 18px var(--accent-glow));
  animation: hand-in .45s var(--ease) both;
}
@keyframes hand-in {
  from { transform: scale(.6) rotate(-14deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.hand-spark { opacity: 0; }
#intro.snapped .hand-spark { animation: spark .3s ease .02s both; }
.hand-spark.s2 { animation-delay: .06s !important; }
.hand-spark.s3 { animation-delay: .1s !important; }
@keyframes spark {
  0% { opacity: 0; stroke-dashoffset: 10; }
  40% { opacity: 1; }
  100% { opacity: 0; }
}

.intro-flash, .gen-flash {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
#intro.snapped .intro-flash { animation: flash .42s ease-out both; }
@keyframes flash {
  0% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
  100% { opacity: 0; transform: scale(34); box-shadow: 0 0 80px 40px transparent; }
}

.intro-particles { position: absolute; inset: 0; pointer-events: none; }
.intro-particles i {
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
#intro.snapped .intro-particles i { animation: particle .6s ease-out both; }
@keyframes particle {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); }
}

.intro-word {
  position: absolute;
  bottom: -64px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .55em;
  text-indent: .55em;
  font-size: 15px;
  color: var(--txt-dim);
  opacity: 0;
}
#intro.snapped .intro-word { animation: word-in .4s ease .15s both; }
@keyframes word-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── 框架 ─── */

#app { opacity: 0; transition: opacity .5s ease; }
#app.in { opacity: 1; }

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 56px) 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--txt);
}
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: .12em;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--txt-dim);
  letter-spacing: .3em;
  margin-left: 6px;
}
.topbar-tag {
  font-size: 12.5px;
  color: var(--txt-faint);
  letter-spacing: .22em;
}
@media (max-width: 560px) { .topbar-tag { display: none; } }

.layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 7vh, 84px) clamp(20px, 5vw, 56px) 90px;
}

/* ─── 側邊步驟 rail ─── */

.rail ol { list-style: none; position: sticky; top: 48px; }
.rail li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--txt-faint);
  transition: color .3s ease;
}
.rail-no {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .12em;
}
.rail-label { font-size: 13.5px; letter-spacing: .14em; }
.rail li[aria-current="step"] { color: var(--txt); }
.rail li[aria-current="step"] .rail-no { color: var(--accent); }
.rail li.done-step { color: var(--txt-dim); }
.rail li.done-step .rail-no::after { content: " ✓"; color: var(--accent); }

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; gap: 28px; }
  .rail ol { position: static; display: flex; gap: 0; border-bottom: 1px solid var(--hairline); overflow-x: auto; }
  .rail li { border-bottom: none; padding: 8px 14px 12px 0; flex: none; }
  .rail-label { display: none; }
  .rail li[aria-current="step"] .rail-label { display: inline; }
}

/* ─── 步驟內容 ─── */

.stage { min-width: 0; }

.step { animation: step-in .55s var(--ease) both; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.6vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.step-desc {
  color: var(--txt-dim);
  font-size: 15px;
  max-width: 44em;
  margin-bottom: 42px;
}

/* ─── 表單 ─── */

.field { margin-bottom: 30px; max-width: 560px; }
.field label, .field-label, fieldset legend.field-label {
  display: block;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--txt-dim);
  margin-bottom: 10px;
}
.req {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 1px 8px;
  margin-left: 6px;
  letter-spacing: .1em;
}

input[type="text"], input[type="url"], textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--txt);
  font: inherit;
  font-size: 16px;
  padding: 14px 18px;
  transition: border-color .25s ease, background .25s ease;
}
input::placeholder, textarea::placeholder { color: var(--txt-faint); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--ink-3);
}
textarea { resize: vertical; min-height: 86px; }

.hint { font-size: 12.5px; color: var(--txt-faint); margin-top: 9px; }
.error {
  margin-top: 16px;
  font-size: 13.5px;
  color: #f0968c;
  background: rgba(240, 100, 90, .08);
  border: 1px solid rgba(240, 100, 90, .28);
  border-radius: var(--radius);
  padding: 13px 17px;
  max-width: 560px;
}

/* logo 上傳 */
.logo-row { display: flex; gap: 18px; align-items: center; }
.logo-drop {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px; height: 128px;
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  color: var(--txt-dim);
  transition: border-color .25s ease, background .25s ease;
}
.logo-drop:hover, .logo-drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.logo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.logo-drop small { color: var(--txt-faint); font-size: 10.5px; letter-spacing: .04em; }
.logo-preview {
  position: relative;
  width: 128px; height: 128px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  display: grid;
  place-items: center;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-clear {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .65);
  color: var(--txt);
  font-size: 11px;
  cursor: pointer;
}

/* tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 30px;
  max-width: 560px;
}
.tabs [role="tab"] {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--txt-dim);
  font: inherit;
  font-size: 14.5px;
  letter-spacing: .08em;
  padding: 11px 16px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
}
.tabs [role="tab"]:hover { color: var(--txt); }
.tabs [role="tab"][aria-selected="true"] {
  color: var(--txt);
  border-bottom-color: var(--accent);
}

/* 型態 toggle */
.mode-toggle, .styles { border: none; margin-bottom: 36px; }
.seg {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 99px;
  padding: 4px;
  background: var(--ink-2);
  gap: 4px;
}
.seg-opt { position: relative; }
.seg-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg-opt span {
  display: inline-block;
  padding: 8px 26px;
  border-radius: 99px;
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--txt-dim);
  transition: all .25s ease;
}
.seg-opt input:checked + span { background: var(--accent); color: var(--ink); font-weight: 500; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.badge {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 2px 11px;
  margin-right: 6px;
}

/* 風格卡片 */
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  max-width: 860px;
}
.style-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  background: var(--ink-2);
  transition: border-color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.style-card:hover { transform: translateY(-3px); border-color: var(--hairline-strong); }
.style-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.style-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 36px -18px var(--accent-glow);
}
.style-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.style-name { font-size: 15px; font-weight: 500; letter-spacing: .12em; margin-top: 10px; }
.style-sub { font-size: 11.5px; color: var(--txt-faint); letter-spacing: .06em; }

/* 迷你 mockup（純 CSS） */
.style-mock {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  height: 92px;
  border-radius: 9px;
  padding: 12px;
  overflow: hidden;
}
.m-line { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.m-line.w60 { width: 60%; } .m-line.w58 { width: 58%; } .m-line.w55 { width: 55%; }
.m-line.w50 { width: 50%; } .m-line.w40 { width: 40%; } .m-line.w35 { width: 35%; }
.m-bar { display: block; width: 26%; height: 5px; background: #222; border-radius: 2px; }
.m-grid2 { display: block; width: 68%; height: 20px;
  background: linear-gradient(90deg, rgba(0,0,0,.14) 0 47%, transparent 47% 53%, rgba(0,0,0,.14) 53% 100%);
  border-radius: 3px; }
.mock-min { background: #f4f2ee; }
.mock-min .m-line { background: #c9c5bd; }
.mock-lux { background: linear-gradient(160deg, #15121c, #241a28); border: 1px solid rgba(214,178,110,.3); }
.m-serif { font-family: Georgia, serif; font-size: 21px; color: #d6b26e; font-style: italic; line-height: 1; }
.m-line.gold { background: linear-gradient(90deg, #d6b26e, rgba(214,178,110,.15)); }
.m-grid2.gold { background: linear-gradient(90deg, rgba(214,178,110,.22) 0 47%, transparent 47% 53%, rgba(214,178,110,.22) 53% 100%); }
.mock-tech { background: radial-gradient(circle at 80% 15%, rgba(90,200,250,.28), transparent 55%), #0b0f1c; }
.m-glow { display: block; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,200,250,.9), transparent 70%); filter: blur(2px); }
.m-line.neon { background: linear-gradient(90deg, #5ac8fa, rgba(90,200,250,.12)); box-shadow: 0 0 8px rgba(90,200,250,.5); }
.mock-warm { background: linear-gradient(160deg, #f6e8d6, #efd7bd); }
.m-sun { display: block; width: 26px; height: 26px; border-radius: 50%; background: #e8a25c; }
.m-line.warm { background: #c9966a; }
.m-grid2.warm { background: linear-gradient(90deg, rgba(180,120,70,.28) 0 47%, transparent 47% 53%, rgba(180,120,70,.28) 53% 100%); }
.mock-auto { background: linear-gradient(135deg, #1c1b26, #2a2030); align-items: center; }
.m-spark { font-style: normal; font-size: 30px; color: var(--accent);
  text-shadow: 0 0 16px var(--accent-glow); animation: spark-float 2.6s ease-in-out infinite; }
@keyframes spark-float { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-4px); } }

.note-menu { max-width: 560px; border-left: 2px solid var(--accent-soft); padding-left: 14px; }

/* 匯入卡片 */
.import-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  max-width: 560px;
  margin-bottom: 30px;
}
.import-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.import-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.import-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.import-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.import-title { font-size: 15.5px; font-weight: 500; letter-spacing: .1em; }
.import-sub { font-size: 12.5px; color: var(--txt-faint); }

.csv-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.csv-result {
  margin-top: 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 16px 20px;
  max-width: 560px;
}
.csv-summary { font-size: 14px; color: var(--accent); margin-bottom: 8px; }
.csv-list { list-style: none; font-size: 13px; color: var(--txt-dim); }
.csv-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
}
.csv-list li:last-child { border-bottom: none; }
.csv-list .price { color: var(--txt); font-family: var(--font-display); }

/* 摘要 */
.summary {
  max-width: 560px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 8px 24px;
  margin-bottom: 20px;
}
.summary > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}
.summary > div:last-child { border-bottom: none; }
.summary dt { color: var(--txt-faint); font-size: 13px; letter-spacing: .14em; flex: none; }
.summary dd { font-size: 14.5px; text-align: right; overflow-wrap: anywhere; }

/* 按鈕 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .12em;
  border-radius: 99px;
  padding: 13px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn.primary {
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--accent);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px var(--accent-glow); }
.btn.ghost {
  background: transparent;
  color: var(--txt);
  border: 1px solid var(--hairline-strong);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.wizard-nav .btn:only-child { margin-left: auto; }

/* ─── 生成舞台 ─── */

#gen-stage {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--ink) 94%, black);
  display: grid;
  place-items: center;
  padding: 24px;
}
.gen-core {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  width: min(430px, 100%);
}
.gen-hand {
  width: 92px;
  color: var(--accent);
  filter: drop-shadow(0 0 16px var(--accent-glow));
  animation: gen-pulse 1.6s ease-in-out infinite;
  margin-bottom: 30px;
}
@keyframes gen-pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.07); opacity: 1; }
}
#gen-stage.finishing .gen-flash { animation: flash .5s ease-out both; }
.gen-phase {
  font-size: 17px;
  letter-spacing: .14em;
  margin-bottom: 22px;
  min-height: 1.6em;
}
.gen-bar {
  width: 100%;
  height: 3px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.gen-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #f7c98f);
  border-radius: 2px;
  transition: width .5s var(--ease);
  box-shadow: 0 0 12px var(--accent-glow);
}
.gen-meta {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--txt-dim);
}
.gen-detail { margin-top: 8px; font-size: 12.5px; color: var(--txt-faint); min-height: 1.5em; }

/* ─── 完成畫面 ─── */

.vibe-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.pill {
  font: inherit;
  font-size: 13.5px;
  letter-spacing: .14em;
  color: var(--txt-dim);
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 99px;
  padding: 9px 22px;
  cursor: pointer;
  transition: all .25s ease;
}
.pill:hover { border-color: var(--accent); color: var(--txt); }
.pill[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 500;
}
.pill.loading { opacity: .55; pointer-events: none; }

.preview-frame {
  margin-top: 26px;
  border: 1px solid var(--hairline-strong);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
  aspect-ratio: 16 / 10;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
}
.preview-frame.reveal { animation: reveal .7s var(--ease) both; }
@keyframes reveal {
  0% { opacity: 0; transform: scale(.92); filter: brightness(2.4); }
  45% { filter: brightness(1.35); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1); }
}
.preview-frame iframe { width: 100%; height: 100%; border: none; background: #fff; }

.done-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ─── reduced motion ─── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #intro { transition-duration: .3s !important; }
}

/* ─── mobile ─── */

@media (max-width: 480px) {
  .step-desc { margin-bottom: 30px; }
  .btn { padding: 12px 24px; width: 100%; }
  .csv-row .btn, .done-actions .btn { width: auto; flex: 1; }
  .wizard-nav { flex-direction: row; }
  .wizard-nav .btn { width: auto; flex: 1; }
}

/* ═══════════════════════════════════════════════
   品牌後台 dashboard
   ═══════════════════════════════════════════════ */

.topbar-right { display: flex; align-items: center; gap: 16px; }
.user-email { font-size: 12.5px; color: var(--txt-faint); letter-spacing: .06em; }
.btn-sm { padding: 9px 20px; font-size: 13px; }

.dash {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 7vh, 84px) clamp(20px, 5vw, 56px) 90px;
}

.dash-state { text-align: center; padding: 18vh 0; animation: step-in .55s var(--ease) both; }
.dash-state-text { color: var(--txt-dim); font-size: 15px; letter-spacing: .12em; }

/* 登入卡片 */
.auth-wrap { display: grid; place-items: center; padding: 8vh 0; animation: step-in .55s var(--ease) both; }
.auth-card {
  width: min(420px, 100%);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--ink-2);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9);
}
.auth-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  margin-bottom: 8px;
}
.auth-sub { color: var(--txt-dim); font-size: 13.5px; margin-bottom: 26px; }
.auth-tabs { max-width: none; margin-bottom: 26px; }
.auth-card .field { max-width: none; margin-bottom: 20px; }
.auth-card input[type="email"], .auth-card input[type="password"] {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--txt);
  font: inherit;
  font-size: 16px;
  padding: 13px 17px;
  transition: border-color .25s ease;
}
.auth-card input:focus { outline: none; border-color: var(--accent); }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-card .error { max-width: none; margin-bottom: 14px; }

/* 品牌卡片格 */
#stores { animation: step-in .55s var(--ease) both; }
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 10px;
}
.store-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--ink-2);
  padding: 24px;
  transition: border-color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.store-card:hover { transform: translateY(-3px); border-color: var(--hairline-strong); }
.store-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.store-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  color: var(--txt-faint);
  letter-spacing: .06em;
}
.store-building { color: var(--accent); }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }

.c-badge {
  flex: none;
  font-size: 11px;
  letter-spacing: .1em;
  border-radius: 99px;
  padding: 3px 11px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.b-none { color: var(--txt-faint); border-color: var(--hairline-strong); }
.b-pending { color: #f2d25a; border-color: rgba(242, 210, 90, .3); background: rgba(242, 210, 90, .08); }
.b-done { color: #7ddba3; border-color: rgba(125, 219, 163, .3); background: rgba(125, 219, 163, .08); }
.b-failed { color: #f0968c; border-color: rgba(240, 150, 140, .32); background: rgba(240, 100, 90, .08); }

/* 新品牌卡 */
.new-card {
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  color: var(--txt-dim);
  border-style: dashed;
  border-color: var(--hairline-strong);
  min-height: 170px;
}
.new-card:hover { border-color: var(--accent); color: var(--txt); background: var(--accent-soft); }
.new-plus {
  font-size: 34px;
  line-height: 1;
  color: var(--accent);
  font-weight: 300;
}
.new-label { font-size: 16px; font-weight: 500; letter-spacing: .16em; }
.new-sub { font-size: 12px; color: var(--txt-faint); letter-spacing: .08em; }

@media (max-width: 480px) {
  .store-actions .btn { width: auto; flex: 1; }
  .user-email { display: none; }
}
