/*
 * LUCE Lookbook Platform 기본 스타일 시트
 * index.html 구조에 맞게 작성되었습니다.
 */

:root {
  --primary-color: #050505;
  --primary-hover: #1a1a1a;
  --text-color: #111111;
  --text-light: #3a3a3a;
  --text-lighter: #7d7d7d;
  --text-secondary: #555555;

  --border-color: #dcdcdc;
  --border-default: #d8d8d8;
  --border-subtle: #e8e8e8;

  --background-color: #ffffff;
  --background-light: #f5f5f5;
  --surface-muted: #f2f2f2;

  --accent-primary: #000000;
  --container-width: 1200px;

  --danger-strong: #a40000;
  --success-strong: #111111;

  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 1. 기본 및 레이아웃 */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

a:not(.btn) {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 2. 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  background-color: var(--background-color);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
}

.logo img {
  height: 48px;
  width: auto;
}

.logo__text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav a {
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  color: var(--text-light);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-media {
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0));
  padding: 56px 0;
}

.hero-media__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero-media__text h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin: 8px 0;
}

.hero-media__price {
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 8px 0;
}

.hero-media__description {
  color: var(--text-secondary);
  margin: 0;
}

.hero-media__player video {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
  background: #000;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.main-nav a.active {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom-color: var(--primary-color);
}

/* 3. 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-family);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn.ghost {
  border-color: var(--border-color);
  color: var(--text-color);
  background-color: transparent;
}

.btn.ghost:hover {
  background-color: var(--background-light);
}

.btn.primary {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.btn.primary:hover {
  background-color: var(--primary-hover);
}

.btn.tertiary {
  background-color: var(--background-light);
  border-color: var(--border-color);
  color: var(--text-color);
}

.btn.tertiary:hover {
  background-color: #f0f0f0;
}

/* 4. 섹션 공통 */
main section {
  padding: 48px 0;
}

[data-view-section][aria-hidden="true"] {
  display: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0;
  font-size: 28px;
}

.section-subtitle {
  margin: 4px 0 0;
  max-width: 650px;
  color: var(--text-light);
  font-size: 16px;
}

.tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
  letter-spacing: 0.4px;
}

/* 5. 룩북 상단 */
.lookbook-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.lookbook-title h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 15px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background-color: var(--background-color);
  color: var(--text-light);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  background-color: var(--background-light);
}

.filter-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  font-weight: 500;
}

/* 6. 지표 카드 */
.lookbook-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.metric-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
}

.metric-card--primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.metric-label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.metric-value {
  margin: 4px 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.metric-caption {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}

.metric-card--primary .metric-caption {
  opacity: 0.7;
}

.metric-error[hidden] {
  display: none;
}

.metric-error {
  grid-column: 1 / -1;
  color: var(--text-color);
  background-color: var(--background-light);
  border: 1px solid var(--border-default);
  padding: 16px;
  border-radius: var(--radius-md);
}

.signup-status {
  margin-top: 48px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.signup-status__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.signup-status__description {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 320px;
}

.signup-status__table {
  overflow-x: auto;
}

.signup-status__table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.signup-status__table th,
.signup-status__table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  font-size: 0.95rem;
}

.signup-status__table th {
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.signup-status__table tbody tr:hover {
  background: var(--background-light);
}

.signup-status__table td a {
  color: var(--primary-color);
  text-decoration: none;
  word-break: break-all;
}

.signup-status__table td a:hover {
  text-decoration: underline;
}

/* 7. 룩북 그리드 */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.look-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--background-light);
  cursor: pointer;
}

.look-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.look-card__image-wrapper {
  aspect-ratio: 3 / 4;
  background-color: #f0f0f0;
}

.look-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.look-card__image.error {
  object-fit: contain;
  padding: 10%;
  opacity: 0.5;
}

.look-card__body {
  padding: 12px 16px;
}

.look-card__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.look-card__supplier {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
}

.lookbook-loader {
  text-align: center;
  padding: 32px;
  font-size: 16px;
  color: var(--text-light);
}

/* 8. 모달 */
.look-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.look-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.look-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.look-modal__dialog {
  position: relative;
  z-index: 210;
  background-color: var(--background-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
}

.look-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--background-light);
  font-size: 24px;
  font-weight: 300;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.look-modal__close:hover {
  background-color: #f0f0f0;
}

.look-modal__media {
  flex-basis: 60%;
  background-color: #f0f0f0;
  overflow-y: auto;
}

.look-modal__media img,
.look-modal__media iframe,
.look-modal__media video {
  width: 100%;
  display: block;
}

.look-modal__media video {
  height: 100%;
  background-color: #000;
  object-fit: contain;
}

.look-modal__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 300px;
  color: var(--text-light);
}

.look-modal__body {
  flex-basis: 40%;
  padding: 32px;
  overflow-y: auto;
}

.look-modal__body h2 {
  margin-top: 0;
  font-size: 24px;
}

.look-modal__body p {
  color: var(--text-light);
}

.look-modal__price {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.look-modal__supplier {
  margin-top: 0;
  font-size: 16px;
}

.look-modal__body .btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
}

/* 9. 셀렉션 */
.selection-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

.selection-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.selection-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.selection-item:last-child {
  border-bottom: none;
}

.selection-item__img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #f0f0f0;
}

.selection-item__info {
  flex: 1;
}

.selection-item__title {
  margin: 0;
  font-weight: 600;
}

.selection-item__supplier {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
}

.selection-item__remove {
  font-size: 14px;
  color: #d9534f;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.selection-item__remove:hover {
  text-decoration: underline;
}

.selection-summary {
  position: sticky;
  top: 100px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  background-color: var(--background-light);
}

.selection-summary h3 {
  margin-top: 0;
}

.selection-summary p,
.selection-summary ul {
  font-size: 15px;
  color: var(--text-light);
}

.selection-summary ul {
  padding-left: 20px;
}

/* 10. 스튜디오 폼 */
.studio-form {
  max-width: 650px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  background-color: var(--background-light);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-family);
  background-color: var(--background-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.form-feedback {
  margin-top: 16px;
  font-size: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-feedback.success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-feedback.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  display: block;
}

/* 11. 체크리스트 */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.checklist-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  background-color: var(--background-light);
}

.checklist-card h3 {
  margin-top: 0;
  font-size: 18px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.checklist-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-light);
  font-size: 15px;
}

.checklist-card li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* 12. 헤더 언어 선택 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
}

.lang-switcher button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-switcher button:hover {
  color: var(--text-color);
}

.lang-switcher button.active {
  color: var(--primary-color);
  font-weight: 600;
}

.lang-switcher span {
  color: var(--border-color);
  font-size: 12px;
  user-select: none;
}

/* 13. 푸터 */
.site-footer {
  margin-top: 64px;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--background-light);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  color: var(--text-lighter);
}

.footer-inner .logo {
  filter: grayscale(100%);
  opacity: 0.8;
}

.footer-inner p {
  margin: 0 0 4px;
  font-size: 14px;
}

.footer-meta {
  text-align: right;
  font-size: 14px;
}

/* 14. 반응형 디자인 */
@media (max-width: 992px) {
  .selection-content {
    grid-template-columns: 1fr;
  }

  .selection-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav {
    width: 100%;
    order: 3;
    justify-content: space-between;
    gap: 12px;
  }

  .lookbook-title h1 {
    font-size: 26px;
  }

  .lookbook-metrics {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .look-card__title {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .lookbook-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .studio-form {
    padding: 24px;
  }
}

/* =========================
   Signup Page Styles
   ========================= */
body.signup-body {
  background: var(--surface-muted);
  min-height: 100vh;
  font-family: var(--font-family, 'Pretendard', sans-serif);
}

.signup-header {
  background: #fff;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 20;
}

.signup-header .header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.signup-main {
  padding: clamp(2rem, 5vw, 4rem) 1.5rem 4rem;
}

.signup-card {
  max-width: 840px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.signup-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.signup-card__subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.signup-type-callout {
  border: 1px solid var(--border-default);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.tag--muted {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-light);
}

.signup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.signup-step {
  appearance: none;
  border: 1px solid var(--border-default);
  background: var(--background-light);
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.signup-step[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.signup-step.is-active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.15);
}

.signup-panel {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.signup-panel__title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
}

.signup-panel__description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.member-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}


.member-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: 1rem;
  padding: 1.5rem;
  background: var(--background-light);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 100%;
}

.member-type-card:hover,
.member-type-card.is-selected {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.member-type-card input {
  appearance: none;
  position: absolute;
  opacity: 0;
}

.member-type-card__badge {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.08);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}

.member-type-card__title {
  font-weight: 600;
  font-size: 1rem;
}

.member-type-card__description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.member-type-card__actions {
  margin-top: auto;
}

.signup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.signup-actions .btn {
  min-width: 140px;
}

.signup-panel .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.signup-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.signup-card .form-group label {
  font-weight: 600;
}

.signup-card .form-group .required {
  color: var(--primary-color);
  margin-left: 0.25rem;
}

.signup-card .form-group input,
.signup-card .form-group textarea,
.signup-card .form-group select {
  border-radius: 0.75rem;
  border: 1px solid var(--border-default);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.form-group__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
}

.checkbox-grid .checkbox {
  border: 1px solid var(--border-default);
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.checkbox-grid .checkbox:hover {
  border-color: var(--primary-color);
  background: var(--background-light);
}

.signup-card .form-group input:focus,
.signup-card .form-group textarea:focus,
.signup-card .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.signup-card .form-hint {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.signup-card .form-group.is-hidden {
  display: none;
}

.signup-card [data-extra="business"].is-hidden,
.signup-card [data-extra="channels"].is-hidden,
.signup-card [data-extra="platforms"].is-hidden {
  display: none;
}

.signup-panel .consent-fieldset {
  border: 1px solid var(--border-default);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signup-panel .consent-fieldset legend {
  font-weight: 700;
  padding: 0 0.5rem;
}

.signup-panel .policy-box {
  background: var(--surface-muted);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
}

.signup-panel .policy-box h3 {
  font-size: 1rem;
  font-weight: 600;
}

.policy-box__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.policy-details {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.signup-panel .policy-box ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
}

.signup-card .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.signup-card .checkbox input {
  margin-top: 0.2rem;
}

.signup-feedback {
  font-weight: 600;
  text-align: center;
  min-height: 1.5rem;
}

.signup-feedback.error {
  color: var(--danger-strong, #c2273d);
}

.signup-feedback.success {
  color: var(--success-strong, #188160);
}

.signup-feedback.loading {
  color: var(--text-secondary);
}

.signup-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.signup-complete h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
}

.signup-complete p {
  color: var(--text-secondary);
  max-width: 440px;
}

.signup-complete__preview {
  width: 100%;
  max-width: 560px;
  text-align: left;
  border: 1px solid var(--border-default);
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 1rem 0 0;
}

.preview-list dt {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
}

.preview-list dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text-color);
}

@media (max-width: 640px) {
  .signup-card {
    border-radius: 1rem;
    padding: 1.75rem;
  }

  .signup-header .header-inner {
    padding: 1rem 1.25rem;
  }

  .signup-type-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .signup-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .signup-actions .btn {
    width: 100%;
  }

  .signup-status {
    padding: 24px;
  }

  .signup-status__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Admin gate page */
.admin-gate {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 80px 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(235, 240, 255, 0.9));
}

.admin-gate__inner {
  display: flex;
  justify-content: center;
}

.admin-gate__content {
  max-width: 640px;
  text-align: center;
}

.admin-gate__description {
  margin: 16px 0 32px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.admin-gate__card {
  padding: 32px;
  margin-bottom: 32px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
  font-size: 1.1rem;
  line-height: 1.7;
}

.admin-gate__card p + p {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .admin-gate {
    padding: 48px 0;
  }

  .admin-gate__card {
    padding: 24px;
  }
}
