/* Storm Calm — premium dark UI */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Manrope:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;600&family=Roboto:wght@400;500&display=swap");

:root {
  --bg-void: #06080d;
  --bg-deep: #0a0e14;
  --bg-elevated: #101620;
  --bg-card: rgba(18, 24, 36, 0.72);
  --stroke: rgba(255, 255, 255, 0.06);
  --stroke-strong: rgba(255, 255, 255, 0.12);
  --text: #e8ecf4;
  --text-soft: #9aa4b8;
  --text-faint: #5c677d;
  --accent: #c4a962;
  --accent-dim: rgba(196, 169, 98, 0.15);
  --teal: #6ee7d8;
  --teal-dim: rgba(110, 231, 216, 0.12);
  --danger: #f472b6;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Cormorant Garamond", "Noto Sans KR", Georgia, serif;
  --font-ui: "Manrope", "Noto Sans KR", system-ui, sans-serif;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-void);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(110, 231, 216, 0.08), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(196, 169, 98, 0.05), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-void) 45%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
  color: #9cf5ea;
}

/* ——— Nav ——— */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--stroke);
  background: rgba(6, 8, 13, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 1.2vw, 0.75rem);
  min-width: 0;
  flex-shrink: 1;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: clamp(26px, 5vw, 36px);
  height: clamp(26px, 5vw, 36px);
  border-radius: clamp(7px, 1.1vw, 10px);
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--teal) 0%, #2dd4bf 40%, var(--accent) 100%);
  opacity: 0.95;
  box-shadow: 0 4px 20px rgba(45, 212, 191, 0.25);
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.66rem, 0.34rem + 2.35vw, 1.35rem);
  font-weight: 600;
  letter-spacing: clamp(0.04em, 0.02em + 0.85vw, 0.12em);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tag {
  display: block;
  font-size: clamp(0.38rem, 0.22rem + 1.05vw, 0.65rem);
  letter-spacing: clamp(0.04em, 0.015em + 0.65vw, 0.28em);
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.5rem 1.25rem;
    background: rgba(10, 14, 20, 0.96);
    border-bottom: 1px solid var(--stroke);
    gap: 0.5rem;
  }
}

.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.nav-link--accent {
  color: var(--bg-void);
  background: linear-gradient(135deg, var(--teal), #5eead4);
  font-weight: 600;
}
.nav-link--accent:hover {
  filter: brightness(1.06);
  color: var(--bg-void);
}

button.nav-link {
  font: inherit;
  cursor: pointer;
}

.nav-logout-btn {
  color: var(--text-soft) !important;
  border: 1px solid var(--stroke-strong) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}
.nav-logout-btn:hover {
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

.is-hidden {
  display: none !important;
}

/* Google Sign-In 스타일 (브랜드 가이드에 맞춘 흰 배경 + 컬러 G) */
.btn-google-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  font-family: "Roboto", var(--font-ui), system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-transform: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-google-signin:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  color: #1f1f1f;
}
.btn-google-signin__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn-google-signin__label {
  font-family: "Roboto", var(--font-ui), system-ui, sans-serif;
}
.btn-google-signin--nav {
  padding: 0.42rem 0.85rem 0.42rem 0.6rem;
  font-size: 0.78rem;
}
.btn-google-signin--nav .btn-google-signin__icon {
  width: 18px;
  height: 18px;
}
.btn-google-signin--hero {
  padding: 0.65rem 1.35rem 0.65rem 1rem;
}
.btn-google-signin--block {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-width: 12.5rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.7rem 1.4rem 0.7rem 1rem;
  font-size: 0.9375rem;
}
@media (max-width: 768px) {
  .nav-links.is-open .btn-google-signin--nav {
    width: 100%;
    justify-content: center;
  }
  .nav-links.is-open .nav-logout-btn {
    width: 100%;
    text-align: center;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-soft);
  border-radius: 1px;
}

/* ——— Layout ——— */
.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  flex: 1;
  width: 100%;
}

.footer-premium {
  border-top: 1px solid var(--stroke);
  margin-top: auto;
  background: var(--bg-deep);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 42%);
  padding: clamp(2rem, 5vw, 2.85rem) 1.5rem clamp(1.75rem, 4vw, 2.35rem);
}

.footer-shell {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1.25rem, 4vw, 2.75rem);
}

.footer-shell__brand {
  min-width: 0;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  line-height: 1.25;
  position: relative;
  padding-bottom: 0.7rem;
}

.footer-wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(255, 200, 80, 0.85), rgba(110, 231, 216, 0.35), transparent);
}

.footer-lede {
  margin: 0.65rem 0 0;
  max-width: 22rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: 1.05rem;
}

.footer-legal {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  opacity: 0.88;
}

.footer-legal-row .footer-ig {
  flex-shrink: 0;
}

.footer-shell__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  flex-shrink: 0;
}

.footer-ig {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.footer-ig:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 200, 80, 0.12);
  transform: translateY(-1px);
}

.footer-ig:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-ig__img {
  display: block;
  width: 13px;
  height: 13px;
}

.footer-account {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.footer-withdraw {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  background: none;
  border: none;
  padding: 0.35rem 0;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  font-family: inherit;
  opacity: 0.92;
}

.footer-withdraw:hover {
  color: var(--text-soft);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.footer-withdraw-msg {
  margin: 0;
  font-size: 0.6875rem;
  max-width: min(20rem, 88vw);
  line-height: 1.45;
}

@media (max-width: 560px) {
  .footer-shell {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 1.5rem;
  }

  .footer-shell__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .footer-account {
    align-items: flex-end;
    margin-left: auto;
  }
}

/* ——— Typography ——— */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
  background: linear-gradient(120deg, #fff 0%, var(--text-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--text);
}
h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--text-soft);
  font-weight: 600;
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: min(40rem, 92vw);
  margin: 0 auto 1.5rem;
  font-weight: 300;
  text-align: center;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* 히어로 문장 블록: 좁은 화면에서는 쉼표 뒤 줄바꿈, 넓으면 한 줄 */
.lead--phrase-lines .lead-line-block {
  display: block;
}
.lead--phrase-lines .lead-line-block--spaced {
  margin-top: 1rem;
}
@media (min-width: 700px) {
  .lead--phrase-lines br.lead-br-sm {
    display: none;
  }
}
/* index 히어로 영문 리드: 모바일에서만 글자 축소 + 줄바꿈 위치(lead-br-sm)로 4줄 레이아웃 */
.lead--index-hero {
  word-break: normal;
}
@media (max-width: 699px) {
  .lead--index-hero {
    font-size: clamp(0.58rem, 2.35vw + 0.42rem, 0.82rem);
    line-height: 1.65;
    max-width: min(100%, 21.5rem);
    padding-inline: 0.35rem;
  }
}
@media (max-width: 380px) {
  .lead--index-hero {
    font-size: clamp(0.55rem, 2.1vw + 0.38rem, 0.76rem);
  }
}
.hint {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 0 0 1rem;
}
code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--teal);
}

/* ——— Hero ——— */
.hero {
  padding: 3rem 0 3.5rem;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(196, 169, 98, 0.25);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  text-decoration: none;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  color: var(--bg-void);
  background: linear-gradient(135deg, #5eead4, #2dd4bf);
  box-shadow: 0 8px 32px rgba(45, 212, 191, 0.25);
}
.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 40px rgba(45, 212, 191, 0.35);
}
.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke-strong);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

/* 텍스트 입력과 한 줄에 둘 때 높이 맞춤 (padding 0.5rem 입력과 대응) */
.btn.btn--input-paired {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ——— Cards ——— */
.card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.85rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}
.card--tight {
  padding: 1.25rem 1.5rem;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.feature-card:hover {
  border-color: rgba(110, 231, 216, 0.25);
  background: rgba(110, 231, 216, 0.04);
  transform: translateY(-2px);
}
a.feature-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.feature-card--link:visited {
  color: inherit;
}
a.feature-card--link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.feature-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.feature-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.feature-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 300;
}

/* ——— Auth / split layout ——— */
.auth-page {
  min-height: calc(100vh - var(--nav-h) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(22, 30, 45, 0.95) 0%, rgba(12, 16, 24, 0.98) 100%);
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
}
.auth-card h1 {
  -webkit-text-fill-color: unset;
  background: none;
  color: var(--text);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* 로그인 전용 — 제목 한 줄 유지, 뷰포트가 좁아지면 글자만 축소 */
.auth-card.login-card {
  max-width: min(420px, calc(100vw - 2rem));
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem);
}

/* STILLNESS 뱃지 — 좁은 화면에서 Feel the Calm과 같이 비례 축소 */
.auth-card.login-card .hero-eyebrow.login-eyebrow {
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: clamp(0.55rem, 0.3rem + 1.5vw, 1rem);
  white-space: nowrap;
  font-size: clamp(0.5rem, 0.32rem + 1.05vw, 0.72rem);
  letter-spacing: clamp(0.1em, 0.04em + 1.8vw, 0.35em);
  padding: clamp(0.2rem, 0.1rem + 0.75vw, 0.35rem) clamp(0.38rem, 0.15rem + 2vw, 0.9rem);
  line-height: 1.2;
}

.auth-card.login-card .login-title {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-display);
  /* 카드 폭 ≈ min(420px, 100vw − 2rem) 이므로 vw로 같이 줄어듦 */
  font-size: clamp(0.68rem, 0.42rem + 3.6vw, 1.9rem);
  line-height: 1.12;
  margin-bottom: 0.65rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.auth-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke-strong), transparent);
  margin: 1.75rem 0;
}

/* ——— Dashboard stats ——— */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.stat-pill {
  padding: 1rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  text-align: center;
}
.stat-pill__value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--teal);
  line-height: 1.1;
}
.stat-pill__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-top: 0.35rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.form-row label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.form-row input {
  min-width: 140px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font-ui);
}
.form-row input:focus {
  outline: none;
  border-color: rgba(110, 231, 216, 0.45);
  box-shadow: 0 0 0 3px var(--teal-dim);
}

.pre-json {
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow: auto;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--stroke);
  color: var(--text-soft);
  margin: 0;
}

/* Register page — product code status (replaces legacy .qr-code-display) */
.register-status {
  position: relative;
  margin: 1.25rem 0 0.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(16, 22, 34, 0.95) 0%, rgba(12, 16, 24, 0.88) 100%);
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  text-align: left;
}

.register-status__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal) 0%, rgba(110, 231, 216, 0.35) 100%);
  opacity: 0.9;
}

.register-status__inner {
  position: relative;
  padding: 1.15rem 1.15rem 1.15rem 1.35rem;
  margin-left: 4px;
}

.register-status__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.register-status__eyebrow:empty {
  display: none;
  margin: 0;
}

.register-status__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.02em;
}

.register-status__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-soft);
  font-weight: 400;
  white-space: pre-line;
}

.register-status__body:empty {
  display: none;
}

.register-status__foot {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-faint);
}

.register-status__foot:empty {
  display: none;
}

.register-status__code-block {
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--stroke);
}

.register-status__code-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}

.register-status__code {
  display: block;
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--teal);
  word-break: break-all;
}

.register-status[data-state="ready"] .register-status__accent {
  background: linear-gradient(180deg, var(--teal) 0%, #2dd4bf 100%);
}

.register-status[data-state="success"] {
  border-color: rgba(110, 231, 216, 0.25);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(110, 231, 216, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.register-status[data-state="success"] .register-status__accent {
  background: linear-gradient(180deg, #5eead4 0%, rgba(94, 234, 212, 0.4) 100%);
}

.register-status[data-state="pending-login"] .register-status__accent {
  background: linear-gradient(180deg, var(--accent) 0%, rgba(196, 169, 98, 0.35) 100%);
}

.register-status[data-state="already-registered"] {
  border-color: rgba(110, 231, 216, 0.22);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(110, 231, 216, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.register-status[data-state="already-registered"] .register-status__accent {
  background: linear-gradient(180deg, var(--teal) 0%, rgba(45, 212, 191, 0.38) 100%);
}

.register-status[data-state="already-registered"] .register-status__title {
  font-family: var(--font-ui), "Noto Sans KR", system-ui, sans-serif;
  word-break: normal;
  letter-spacing: -0.02em;
}

.register-status__body.register-status__body--mat-rows {
  white-space: normal;
  word-break: normal;
}

.register-status[data-state="already-registered"] .register-status__body {
  font-family: var(--font-ui), "Noto Sans KR", system-ui, sans-serif;
  word-break: break-word;
}

.register-status[data-state="already-registered"] .register-status__body.register-status__body--mat-rows {
  word-break: normal;
  white-space: normal;
}

.register-mat-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.register-mat-item__code {
  font-family: ui-monospace, "Consolas", "Noto Sans KR", monospace;
  font-size: clamp(0.62rem, 2.35vw + 0.32rem, 0.8rem);
  letter-spacing: 0.03em;
  color: var(--text-soft);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.register-mat-item__meta {
  font-family: var(--font-ui), "Noto Sans KR", system-ui, sans-serif;
  font-size: clamp(0.58rem, 2.05vw + 0.3rem, 0.78rem);
  color: var(--text-soft);
  line-height: 1.4;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.qr-how-steps {
  margin: 1.25rem 0 0.5rem;
  padding-left: 1.35rem;
  text-align: left;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}
.qr-how-steps li {
  margin-bottom: 0.55rem;
}
.qr-how-steps li:last-child {
  margin-bottom: 0;
}
/* 홈 챌린지 리워드: 불릿 없이 카드 좌측에 맞춤 */
.qr-how-steps.qr-how-steps--home-reward {
  list-style: none;
  padding-left: 0;
  padding-inline-start: 0;
  margin-left: 0;
  max-width: 100%;
}
.qr-code-inline {
  font-family: ui-monospace, monospace;
  font-size: 0.78em;
  letter-spacing: 0.02em;
  color: var(--teal);
  word-break: break-all;
}

.status-msg {
  min-height: 1.5rem;
  font-size: 0.9rem;
  color: var(--teal);
  margin-top: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.admin-table th,
.admin-table td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--stroke);
  vertical-align: middle;
}
.admin-table th {
  color: var(--text-faint);
  font-weight: 600;
  white-space: nowrap;
}
.admin-table code {
  font-size: 0.85em;
  color: var(--accent);
}

.admin-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
}
.admin-list-toolbar input[type="search"],
.admin-list-toolbar select {
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-strong);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 0.82rem;
  min-width: 0;
}
.admin-list-toolbar input[type="search"] {
  flex: 1 1 12rem;
  min-width: 10rem;
}
.admin-list-toolbar select {
  max-width: 100%;
}
.admin-list-toolbar .admin-list-count {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-left: auto;
}
.admin-table th.admin-th-sort {
  cursor: pointer;
  user-select: none;
}
.admin-table th.admin-th-sort:hover {
  color: var(--text);
}
.admin-table th.admin-th-sort--asc::after {
  content: " ▲";
  font-size: 0.65em;
  opacity: 0.85;
}
.admin-table th.admin-th-sort--desc::after {
  content: " ▼";
  font-size: 0.65em;
  opacity: 0.85;
}

.admin-qr-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.admin-qr-thumb {
  display: block;
  border-radius: 6px;
  border: 1px solid var(--stroke-strong);
  background: #fff;
  object-fit: contain;
}
.admin-qr-links {
  font-size: 0.72rem;
}
.admin-qr-links a {
  color: var(--teal);
}
