:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #1e293b;
  --text-muted: #475569;   /* 기존 회색보다 더 진하게: 밝은 배경에서도 확실히 읽히도록 */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #4f8ef7;
  --accent-2: #2563eb;
  --accent-tint: #eff6ff;
  --accent-tint-strong: #dbeafe;
  --danger: #dc2626;
  --danger-tint: #fef2f2;
  --success: #16a34a;
  --success-tint: #f0fdf4;
  --warning-tint: #fffbeb;
  --warning-text: #92400e;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 로그인 이후 화면의 공통 배경.
   흰 바탕 위에 파랑·보라 빛이 아주 옅게 번지게 한다. 색은 결과물
   템플릿에서 가져왔다(브랜드 파랑, 네온의 보라).
   blur를 쓰면 저사양 기기에서 스크롤이 버벅이므로, 흐림 없이
   radial-gradient만으로 같은 느낌을 낸다(비용 거의 없음).
   position: fixed라 스크롤해도 배경이 따라오지 않는다. */
body.app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58vmax 58vmax at -8% -12%, rgba(79, 142, 247, .20), transparent 62%),
    radial-gradient(52vmax 52vmax at 108% 112%, rgba(129, 96, 245, .14), transparent 62%);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* 사이트 하단 (사업자 정보 + 정책 링크) */
.site-footer {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
}
.footer-links a { color: var(--text-muted); font-weight: 600; }
.footer-links a:hover { color: var(--accent-2); }
.footer-biz { color: #94a3b8; }
.footer-copy { margin-top: 12px; color: #94a3b8; }

/* AI 고객센터 채팅 위젯 */
#support-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 10px 28px -6px rgba(37, 99, 235, 0.55);
  z-index: 1000;
  transition: transform 0.15s ease;
}
#support-fab:hover { transform: translateY(-2px); }
#support-fab.hidden { display: none; }

/* 기본은 숨김. .open 클래스가 붙을 때만 보인다
   (hidden 속성만으로는 아래 display:flex에 덮여서 안 숨겨지므로 클래스로 제어) */
#support-panel {
  display: none;
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 44px);
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 56px -14px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  z-index: 1000;
}
#support-panel.open { display: flex; }

.support-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
/* 전역 button의 padding(14px 22px)이 새어 들어오면 동그라미가 타원으로 뭉개진다.
   padding을 0으로 되돌리고 flex로 ✕를 정중앙에 놓는다. */
.support-head button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 30px;
  height: 30px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.support-head button:hover { background: rgba(255, 255, 255, 0.32); }

.support-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-msg {
  max-width: 82%;
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.support-msg.user {
  align-self: flex-end;
  background: var(--accent-2);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.support-msg.assistant {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--text);
  border-bottom-left-radius: 5px;
}

/* 입력줄: 전역 form(세로 정렬)에 덮이지 않도록 flex-direction을 명시 */
.support-input {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
.support-input input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
.support-input input:focus {
  outline: none;
  border-color: var(--accent);
}
.support-input button {
  flex: 0 0 auto;
  padding: 11px 18px;
  border: none;
  border-radius: 999px;
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.support-input button:hover { background: var(--accent); }
.support-input button:disabled { opacity: 0.5; cursor: default; }

.support-note {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.support-note a { color: var(--accent-2); font-weight: 600; }

h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 32px;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 13.5px;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.back-link:hover { color: var(--accent-2); }

/* 브랜드 헤더 */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover .brand-mark { transform: translateY(-1px); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.5);
  transition: transform 0.15s ease;
}

.header-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
}

.user-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.user-email {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.credit-badge .dot { font-size: 10px; }

.logout-btn {
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.logout-btn:hover { background: var(--danger-tint); color: #991b1b; border-color: #fecaca; }

/* ── 프로필 드롭다운 ───────────────────────────────────────────── */
.user-dropdown { position: relative; }

.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.user-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}

.user-btn .user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-btn .caret {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}
.user-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.user-menu-panel[hidden] { display: none; }

/* 드롭다운 안의 항목은 링크든 버튼이든 동일한 모양으로 */
.user-menu-panel a,
.user-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
/* :not(:disabled)를 붙여 전역 button:hover 규칙(파란 배경)보다 우선하게 만든다.
   안 붙이면 우선순위가 같아 나중에 선언된 전역 규칙이 이겨서 글자가 안 보인다. */
.user-menu-panel a:hover,
.user-menu-panel button:hover:not(:disabled) { background: var(--accent-tint); color: var(--accent-2); }

.user-menu-panel form { margin: 0; }
.user-menu-panel .danger { color: var(--text-muted); }
.user-menu-panel .danger:hover:not(:disabled) { background: var(--danger-tint); color: #991b1b; }

.user-menu-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}

@media (max-width: 560px) {
  /* 좁은 화면에서는 헤더가 두 줄로 자연스럽게 나뉘도록:
     로고는 왼쪽 위, 메뉴는 그 아래 오른쪽 정렬 */
  .site-header { align-items: center; }
  .credit-badge { padding: 5px 10px; font-size: 12px; }
  .charge-link { padding: 6px 11px; font-size: 12px; }
  .user-btn .user-name { display: none; }   /* 폰에선 이름 숨기고 아바타만 */
  .back-link { font-size: 13px; }
}

/* 공통 포커스 스타일: 키보드로 탭 이동할 때 확실히 보이게 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.voice-card input:focus-visible + .voice-body,
.tpl-card input:focus-visible + .tpl-body,
.switch input:focus-visible + .slider {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 게이트 페이지 */
.gate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gate-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.gate-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(37, 99, 235, 0.28);
}

.gate-icon { font-size: 34px; }
.gate-card strong { font-size: 18px; }
.gate-card small { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; }

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

/* 업로드 모드 */
.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 20px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.upload-drop:hover { border-color: var(--accent); background: var(--accent-tint); }
.upload-icon { font-size: 30px; }
.upload-drop small { color: var(--text-muted); font-size: 13px; }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.preview-item img,
.preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: white;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.preview-remove:hover { background: var(--danger); }

.style-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.style-btn {
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.style-btn:hover { border-color: var(--accent); }
.style-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

#style-prompt {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  resize: vertical;
}

#style-prompt::placeholder { color: #94a3b8; }

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input[type="url"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 16px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15.5px;
  font-family: inherit;
}

input[type="url"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder { color: #94a3b8; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

/* 로그인 / 회원가입 */
.auth-wrap {
  max-width: 380px;
  margin: 64px auto 0;
}

.auth-wrap .site-header { justify-content: center; margin-bottom: 32px; }

.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-switch a { color: var(--accent-2); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 17px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.4);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12.5px;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* 소셜 로그인 버튼 — 제공자별 색만 다르고 모양·크기는 공통 */
.social-login-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.social-login-btn:hover { filter: brightness(0.96); }

/* 관리자 표에서 로그인 수단을 한눈에 구분하는 배지 */
.provider-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.provider-tag.kakao { background: #FEE500; color: #191600; border-color: #e6cf00; }
.provider-tag.naver { background: #03C75A; color: #fff; border-color: #02a94d; }
.provider-tag.google { background: #fff; color: #1f1f1f; border-color: var(--border-strong); }

.kakao-login-btn { background: #FEE500; color: #191600; }
.naver-login-btn { background: #03C75A; color: #fff; }
.google-login-btn {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid var(--border-strong);
}

/* "최근 로그인" 표시: 지난번에 쓴 수단 위에 말풍선처럼 떠서 살짝 움직인다.
   버튼 위 공간에 겹쳐 띄우므로 버튼 배치 자체는 흐트러지지 않는다. */
.social-btn-wrap { position: relative; }

.recent-tag {
  position: absolute;
  top: -11px;
  right: 12px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 4px 10px -3px rgba(37, 99, 235, 0.6);
  animation: recent-bob 1.6s ease-in-out infinite;
}

/* 말풍선 꼬리 — 아래 버튼을 가리킨다 */
.recent-tag::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 14px;
  border: 5px solid transparent;
  border-top-color: var(--accent-2);
}

@keyframes recent-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 움직임을 불편해하는 사용자에게는 애니메이션을 끈다 */
@media (prefers-reduced-motion: reduce) {
  .recent-tag { animation: none; }
}

.intro-panel .pick-sub {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13.5px;
}

.intro-file,
.intro-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.intro-file { margin-bottom: 10px; }

.intro-toggle-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.arrow-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.arrow-panel .arrow-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.product-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.product-code-input {
  flex: none;
  width: 90px;
  padding: 9px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14.5px;
  text-align: center;
}

.product-code-input::placeholder { color: #94a3b8; }

.product-code-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.intro-file input[type="file"] {
  flex: none;
  max-width: 220px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.badge.free {
  background: var(--success-tint);
  color: #15803d;
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.intro-text strong { font-size: 15.5px; }
.intro-text small { color: var(--text-muted); font-size: 13px; line-height: 1.55; }

/* 좁은 화면: "설명 텍스트 | 파일선택/토글"을 가로로 두면 텍스트가 한 글자씩
   세로로 쪼개지므로, 위아래로 쌓아서 각 요소가 온전한 폭을 갖게 한다 */
@media (max-width: 560px) {
  .intro-file,
  .intro-toggle {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .intro-file input[type="file"] { max-width: 100%; }
  .product-code-row { flex-wrap: wrap; }
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  margin-left: 4px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 10px;
  background: var(--warning-tint);
  color: var(--warning-text);
  vertical-align: middle;
}

.switch {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 14px;
  transition: background 0.2s;
}

.slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); }

button {
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button:hover:not(:disabled) { background: var(--accent-2); }

button:disabled {
  opacity: 0.55;
  cursor: default;
}

.progress-panel {
  display: none;
  margin-top: 20px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}

.progress-head strong { color: var(--accent-2); font-size: 17px; }

.progress-track {
  height: 12px;
  background: var(--surface-2);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 6px;
  transition: width 0.6s ease;
}

.progress-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.error {
  margin-top: 24px;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: var(--danger-tint);
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 14.5px;
}

/* 오류 안내 안에 붙는 "다음에 할 것" 버튼. 글자만 보여주면 같은 글로 계속
   다시 누르게 되므로(2026-08-21), 빠져나갈 길을 눈에 띄게 준다. */
.btn-inline-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #991b1b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.btn-inline-link:hover { background: #7f1d1d; }

.result {
  margin-top: 40px;
}

.intro-note {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: var(--warning-tint);
  color: var(--warning-text);
  font-size: 13.5px;
  border: 1px solid #fde68a;
}

.result video {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  display: block;
  margin: 16px 0;
  background: black;
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.35);
}

.result a {
  color: var(--accent-2);
  font-weight: 600;
}

.result details {
  margin-top: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 16px;
}

.result ol {
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.8;
}

.source {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.gallery {
  margin-top: 48px;
}

.gallery h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.gallery-item.latest {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-tint-strong);
}

.gallery-item video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  background: black;
  display: block;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.gallery-meta a {
  color: var(--accent-2);
  font-weight: 600;
}

.qr-box {
  margin-top: 10px;
  color: var(--text);
  font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 16px;
}

.qr-box summary {
  cursor: pointer;
  color: var(--accent-2);
  font-weight: 600;
  padding: 12px 0;
  list-style: none;
}

.qr-box summary::-webkit-details-marker { display: none; }

/* 갤러리에서 예전 영상의 업로드용 문구를 펼쳐 볼 때 */
.meta-body { padding-bottom: 12px; font-size: 14px; }

.meta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.meta-row strong {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--muted);
}

.meta-row p {
  margin: 0;
  word-break: break-word;
  white-space: pre-wrap;
}

.meta-row button {
  padding: 4px 12px;
  font-size: 12.5px;
  align-self: center;
}

.qr-box img {
  display: block;
  margin: 12px auto 4px;
  width: 220px;
  max-width: 100%;
  border-radius: 10px;
  background: white;
  padding: 8px;
  border: 1px solid var(--border);
}

.qr-box.small { padding: 4px 10px; }

.qr-box.small summary {
  font-size: 12.5px;
  white-space: nowrap;
  padding: 9px 0;
}

.qr-box.small img {
  width: 150px;
}

.qr-box .hint {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  padding-bottom: 14px;
}

.cta-box {
  margin-top: 10px;
  padding: 4px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14.5px;
}

.cta-box summary {
  cursor: pointer;
  color: var(--accent-2);
  font-weight: 600;
  padding: 12px 0;
}

.cta-field {
  margin-top: 12px;
}

.cta-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.cta-field textarea {
  width: 100%;
  resize: vertical;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
  font-family: inherit;
}

.copy-btn {
  margin-top: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--accent-tint);
  border-color: var(--accent);
}

.pick-label {
  margin: 0 0 12px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
}

.pick-label + .pick-label,
.tpl-row + .pick-label,
.voice-row + .pick-label {
  margin-top: 24px;
}

.pick-sub { font-weight: 400; color: var(--text-muted); font-size: 13px; }

.required-mark { color: var(--danger); }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-radio input {
  position: absolute;
  opacity: 0;
}

.pill-radio span {
  display: inline-block;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pill-radio input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.pill-radio input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.voice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.voice-card input,
.tpl-card input {
  position: absolute;
  opacity: 0;
}

.voice-card .voice-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.voice-card .voice-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.voice-card input:checked + .voice-body {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.voice-card strong { font-size: 15.5px; }
.voice-card small { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; }

.play-btn {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 13px;
  background: var(--surface-2);
  color: var(--accent-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}

.play-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

.tpl-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tpl-card .tpl-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s;
}

.tpl-card input:checked + .tpl-body {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.tpl-card .tpl-body { position: relative; }

.premium-badge {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  /* 글자를 노란 알약 안에서 가로·세로 정확히 가운데 둔다.
     예전엔 padding만 주고 글자 높이(line-height)에 맡겨서, 한글과 ★의
     기준선 차이 때문에 아래로 살짝 치우쳐 보였다(2026-08-17 사장님 지적). */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  /* 글자 획(잉크) 기준으로 정중앙에 오게 맞춘 값(2026-08-17 실측).
     보정 없을 때 위 7.75 / 아래 5.25 → 아래로 2.5px 치우침 → 절반인
     1.25px을 아래 padding으로 줘서 위·아래를 6.5 / 6.5로 맞춤. */
  padding: 0 12px 1.25px;
  line-height: 1;
  font-size: 11.5px;
  font-weight: 700;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(180, 120, 10, 0.35);
  pointer-events: none;
}

.tpl-card.premium input:checked + .tpl-body {
  border-color: #f59e0b;
  background: #fffbeb;
}

/* ── 마이페이지 ── */
.tx-plus { color: var(--success); font-weight: 700; }
.tx-minus { color: var(--danger); font-weight: 700; }
.tx-date { color: var(--text-muted); font-size: 13px; white-space: nowrap; }

.credit-guide {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
  font-size: 14.5px;
}

a.credit-badge:hover { border-color: var(--accent); }

/* 제작 버튼 위 소모 크레딧 안내 */
.cost-note {
  margin: 18px 0 10px;
  padding: 12px 16px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-strong);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text);
}
.cost-note strong { color: var(--accent-2); font-size: 16px; }

/* 썸네일 2장 나란히 (세로 9:16 포스터형) */
.thumb-box { margin-top: 16px; }
.thumb-box > summary { font-weight: 700; font-size: 14.5px; cursor: pointer; margin-bottom: 12px; }
.thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.thumb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.thumb-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.thumb-item a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
}

.tpl-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
}

.tpl-card strong { font-size: 15px; margin-top: 8px; }
.tpl-card small { color: var(--text-muted); font-size: 12.5px; }

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

.gallery-pager {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-pager button {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-pager button:hover:not(:disabled) { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-2); }
.gallery-pager button:disabled { opacity: 0.35; cursor: default; }

.gallery-pager .gallery-page-info {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 42px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-actions form { margin: 0; }

.del-btn {
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.del-btn:hover { background: var(--danger-tint); border-color: var(--danger); color: #991b1b; }

/* 관리자 페이지 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-card .stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.admin-section {
  margin-top: 40px;
}

.admin-section h2 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table tr:last-child td { border-bottom: none; }

/* 관리자 페이지: 표가 12칸이라 920px에선 오른쪽(크레딧 지급·구독·삭제)이 잘려
   쓰기 어려웠다(2026-08-16 사장님 지적). 칸을 8개로 합치고 페이지 폭을 넓혀
   한 화면에 다 들어가게 한다. */
.admin-main { max-width: 1240px; }

/* 고객센터 문의 기록 (2026-08-16). 문의·답변은 길이가 제각각이라 표 대신
   카드 목록으로 두고, 답변 실패한 건은 왼쪽에 빨간 띠로 바로 눈에 띄게 한다. */
.admin-section h2 .section-more {
  float: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
}
.support-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.support-tab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
}
.support-tab.on { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.support-retention { margin-left: auto; font-size: 12px; color: var(--text-muted); }

.support-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.support-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.support-item.failed { border-left-color: #e04a4a; }
.support-item.needs-help { border-left-color: #e8912a; }
.support-item.is-unread { background: #f7fbff; border-color: #cfe4fb; }
.support-new {
  background: var(--accent-2);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.support-help {
  background: #fdf1e0;
  color: #9a5b00;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 700;
}
.unread-dot {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #e04a4a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}
.stat-card.alert .stat-num { color: #d33; }
.mark-read-form, .mark-read-one { margin: 0; }
.mark-read-one { margin-left: auto; }
.mark-read-one .copy-btn, .mark-read-form .copy-btn { margin-top: 0; padding: 5px 12px; font-size: 12.5px; }
.support-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 13px;
}
.support-time { color: var(--text-muted); font-size: 12px; }
.support-failed {
  background: #fdeaea;
  color: #b32020;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 700;
}
.support-q, .support-a, .support-mine {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.support-a { color: var(--text-muted); }

/* 사람이 직접 쓴 답변 — AI 답변과 한눈에 구분되어야 두 번 답하지 않는다. */
.support-mine {
  padding: 10px 12px;
  border-left: 3px solid var(--brand, #2563eb);
  background: rgba(37, 99, 235, .06);
  border-radius: 0 8px 8px 0;
}
.support-sent {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.support-reply { margin-top: 4px; }
.support-reply > summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand, #2563eb);
}
.support-reply textarea {
  width: 100%;
  margin: 8px 0 6px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--line, #e2e6ee);
  border-radius: 8px;
  resize: vertical;
}
.support-list.compact .support-q { margin-bottom: 0; }
.support-label {
  display: inline-block;
  min-width: 34px;
  margin-right: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.support-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 14px;
}
.support-pager a { color: var(--accent-2); font-weight: 600; }
.admin-users th, .admin-users td { padding-left: 12px; padding-right: 12px; }
.admin-users th.num, .admin-users td.num { text-align: right; }
.admin-users .sub {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}
.admin-users th .sub { margin-top: 0; }
.admin-users .credit-grant-form { flex-wrap: nowrap; }
.admin-users .credit-grant-form input[type="number"] { width: 60px; }
/* 표 위쪽에도 가로 스크롤 감각이 있도록: 좁은 화면에선 표가 스크롤되고 첫 칸은 고정 */
@media (max-width: 1100px) {
  .admin-users th:first-child, .admin-users td:first-child {
    position: sticky; left: 0; background: var(--surface); z-index: 1;
  }
}

.admin-table a { color: var(--accent-2); font-weight: 600; }

.credit-grant-form {
  display: flex;
  gap: 6px;
  margin: 0;
}

.credit-grant-form input[type="number"] {
  width: 64px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}

.credit-grant-form .copy-btn { margin-top: 0; padding: 6px 12px; }

.credit-grant-form select {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}

/* 인트로(스플래시) 페이지 */
.intro-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.intro-blob {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 18%, #4f8ef7 0%, transparent 60%),
    radial-gradient(55% 50% at 26% 78%, #8b5cf6 0%, transparent 65%),
    radial-gradient(65% 55% at 92% 88%, #38bdf8 0%, transparent 60%);
  filter: blur(60px);
  opacity: 0.85;
}

.intro-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
}

.intro-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.intro-nav .login-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.intro-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 110px;
}

.intro-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.06em;
  margin-bottom: 30px;
}

.intro-headline {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0f172a;
  max-width: 16ch;
  margin: 0;
}

.intro-sub {
  margin-top: 24px;
  font-size: 19px;
  color: #334155;
  max-width: 42ch;
}

.intro-cta {
  margin-top: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 46px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.intro-cta:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.5); }

/* 게이트(로그인 후) 화면에서 소식 띠를 가운데 정렬로 앉히는 줄 */
.notice-strip-row { text-align: center; margin: 4px 0 22px; }
.notice-strip-row .intro-notice-strip { margin: 0; }

.intro-notice-strip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 32px auto 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.3);
  max-width: 90vw;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.intro-notice-strip:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(15, 23, 42, 0.35); }
.intro-notice-label {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.intro-notice-link {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .intro-notice-strip { margin-top: 22px; padding: 8px 16px; }
  .intro-notice-link { max-width: 42vw; }
}

/* 인트로 쇼케이스 — 뷰컷으로 만든 실제 숏폼을 세로 카드로 나열 */
.intro-showcase {
  padding: 72px 24px 84px;
  text-align: center;
  background: #f8fafc;
}
.showcase-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 10px;
}
.showcase-title em { font-style: normal; color: var(--accent-2); }
.showcase-sub {
  color: #64748b;
  font-size: 16px;
  margin: 0 0 36px;
}
.showcase-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 4px 0;
}
.showcase-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.45);
}
.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-cta { margin-top: 40px; }

@media (max-width: 900px) {
  .showcase-track { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .intro-showcase { padding: 52px 14px 64px; }
  .showcase-track { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* 폰 목업 자동재생 섹션 */
.intro-phones {
  padding: 72px 24px 84px;
  text-align: center;
  background: #eef2f9;
}
.phone-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  max-width: 1080px;
  margin: 0 auto;
}
.phone-frame {
  position: relative;
  aspect-ratio: 9 / 18.4;
  background: #0b1220;
  border-radius: 30px;
  padding: 12px 9px;
  box-shadow: 0 18px 38px -20px rgba(15, 23, 42, 0.55);
}
.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  background: #000;
}
.phone-notch {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 5px;
  border-radius: 4px;
  background: #26324a;
}
.phone-homebar {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 4px;
  border-radius: 3px;
  background: #26324a;
}
@media (max-width: 900px) {
  .phone-row { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
}
@media (max-width: 560px) {
  .intro-phones { padding: 52px 14px 64px; }
  .phone-row { gap: 16px; }
}

@media (max-width: 560px) {
  .intro-hero { padding: 24px 20px 80px; }
  .intro-sub { font-size: 16px; }
  .intro-cta { padding: 18px 36px; font-size: 16px; }
}

@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .voice-row, .tpl-row { grid-template-columns: 1fr; }
}

/* 크레딧 충전/업그레이드 유도 모달 */
.charge-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.charge-link:hover { background: var(--accent-2); }

.credit-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.credit-modal-backdrop.open { display: flex; }

.credit-modal {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 24px;
  padding: 36px 40px 32px;
  box-shadow: 0 32px 64px -20px rgba(15, 23, 42, 0.35);
}

.credit-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.credit-modal-close:hover { background: var(--border); color: var(--text); }

.credit-modal h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.credit-modal p.credit-modal-sub {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* 결제 준비 중 안내 박스 (요금제 카드는 결제 연동 전까지 노출하지 않는다) */
.prep-box {
  padding: 34px 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent-tint);
  text-align: center;
}

.prep-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prep-lead {
  margin: 16px 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.prep-desc {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.prep-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* 전역 button/a 스타일에 덮이지 않도록 크기·색을 명시한다 */
.prep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent-2);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.prep-btn:hover:not(:disabled) { background: var(--accent); color: #fff; }

.prep-btn.ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.prep-btn.ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }

/* 마이페이지: 로그인 수단 연결 */
.link-result {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
}

.link-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.link-name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* 제공자별 색을 점으로만 표시한다(로고를 쓰면 각 사의 사용 규정을 따라야 한다). */
.link-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.link-item.kakao  .link-dot { background: #FEE500; }
.link-item.naver  .link-dot { background: #03C75A; }
.link-item.google .link-dot { background: #fff; }

.link-state {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
}

/* 전역 button 규칙의 padding을 덮어써야 <a>와 <button>의 크기가 같아진다. */
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent-2);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.link-btn:hover:not(:disabled) { background: var(--accent); color: #fff; }

.link-btn.ghost {
  background: var(--surface);
  color: var(--text-muted);
  border-color: var(--border-strong);
}
.link-btn.ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }

.link-item form { margin: 0; }

/* 관리자: 크레딧 코드 발행 화면 */
.coupon-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.coupon-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.coupon-form label.grow { flex: 1; min-width: 180px; }
.coupon-form input {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.coupon-form input:focus { outline: none; border-color: var(--accent-2); }
.coupon-form button {
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent-2);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.coupon-form button:hover:not(:disabled) { background: var(--accent); color: #fff; }

.coupon-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.coupon-code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.csv-link { color: var(--accent-2); font-weight: 600; font-size: 13px; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.pill.used { background: var(--accent-tint); color: var(--accent-2); }

/* 크레딧 코드 등록 (크라우드펀딩 리워드·이벤트 코드) */
.redeem-box {
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.redeem-lead {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.redeem-form {
  display: flex;
  gap: 8px;
}

.redeem-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.redeem-form input::placeholder {
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.redeem-form input:focus {
  outline: none;
  border-color: var(--accent-2);
}

/* 전역 button 규칙이 padding을 덮어쓰므로 여기서 다시 잡아준다. */
.redeem-form button {
  flex: 0 0 auto;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent-2);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.redeem-form button:hover:not(:disabled) { background: var(--accent); color: #fff; }
.redeem-form button:disabled { opacity: 0.55; cursor: default; }

.redeem-msg {
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.redeem-msg.ok  { color: var(--accent-2); font-weight: 700; }
.redeem-msg.err { color: #d64545; font-weight: 700; }

.credit-modal-note {
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 720px) {
  .credit-modal { padding: 28px 22px 24px; }
}

/* ===== 활용 팁 (tips) ===== */
/* 헤더 사이트 메뉴 — 로고 오른쪽에 나란히. 링크와 버튼(고객센터)이 같은 모양이어야
   "붙여넣은" 느낌이 안 난다. 현재 페이지는 파란 밑줄. */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 28px;
  margin-right: auto;
  padding-left: 22px;
  border-left: 1px solid var(--border);
  height: 28px;
}
.header-nav a,
.header-nav button {
  appearance: none;
  background: none;
  border: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}
.header-nav a:hover,
.header-nav button:hover { color: var(--text); background: var(--surface); }
.header-nav a.is-active { color: var(--accent-2); }
.header-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-2);
}

/* 대기 화면 안 "기다리는 동안 읽어보세요" */
.waiting-tips {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
}
.waiting-tips-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}
.waiting-tips ul { margin: 0; padding-left: 18px; }
.waiting-tips li { margin: 5px 0; font-size: 14.5px; line-height: 1.5; }
.waiting-tips a { color: var(--text); text-decoration: none; }
.waiting-tips a:hover { color: var(--accent-2); text-decoration: underline; }

/* 목록 */
.tips-list { display: grid; gap: 14px; margin-top: 8px; }
.tip-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tip-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.35);
}
.tip-card h2 { margin: 0 0 8px; font-size: 19px; font-weight: 800; line-height: 1.4; }
.tip-card p { margin: 0 0 10px; color: var(--text-muted); line-height: 1.65; font-size: 15px; }
.tip-card time { font-size: 13px; color: var(--text-muted); }
.tips-empty { color: var(--text-muted); padding: 40px 0; text-align: center; }

/* 본문 */
.tip-breadcrumb { margin: 0 0 6px; font-size: 14px; }
.tip-breadcrumb a { color: var(--accent-2); font-weight: 700; text-decoration: none; }
.tip-article h1 { font-size: 30px; line-height: 1.35; margin: 0 0 8px; }
.tip-date { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 26px; }
.tip-body { line-height: 1.85; font-size: 16.5px; }
.tip-body h2 { font-size: 22px; margin: 36px 0 12px; font-weight: 800; }
.tip-body h3 { font-size: 18px; margin: 28px 0 10px; font-weight: 800; }
.tip-body p { margin: 0 0 16px; }
.tip-body ul, .tip-body ol { margin: 0 0 16px; padding-left: 24px; }
.tip-body li { margin: 6px 0; }
.tip-body img { max-width: 100%; border-radius: var(--radius-sm); }
.tip-body blockquote {
  margin: 18px 0; padding: 12px 18px;
  border-left: 4px solid var(--accent); background: var(--surface);
  color: var(--text-muted);
}
.tip-body code {
  background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: 0.92em;
}
.tip-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.tip-body th, .tip-body td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.tip-body th { background: var(--surface); }
.tip-cta {
  margin: 44px 0 20px;
  padding: 24px 26px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #eff4ff, #e6eefc);
  border: 1px solid #d3e0fb;
  text-align: center;
}
.tip-cta p { margin: 0 0 14px; line-height: 1.7; }
.tip-others { margin-top: 32px; }
.tip-others h2 { font-size: 17px; margin: 0 0 10px; }
.tip-others ul { margin: 0; padding-left: 20px; }
.tip-others li { margin: 6px 0; }
.tip-others a { color: var(--text); text-decoration: none; }
.tip-others a:hover { color: var(--accent-2); text-decoration: underline; }

@media (max-width: 720px) {
  /* 좁은 화면에선 메뉴가 크레딧·프로필과 겹치므로 숨긴다 — 같은 링크가
     푸터와 대기 화면에도 있어서 접근 경로는 유지된다 */
  .header-nav { display: none; }
}
@media (max-width: 560px) {
  .tip-article h1 { font-size: 24px; }
  .tip-body { font-size: 16px; }
}


/* 이벤트 크레딧 받기 화면 (2026-08-16) */
.event-form { display: grid; gap: 14px; margin-top: 18px; }
.event-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.event-form input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.event-form .btn { margin-top: 4px; }
.event-result {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}
.event-result.good { border-color: #7fc8a9; background: #f2fbf7; }
.event-result.bad { border-color: #e7b4b4; background: #fdf3f3; }
.event-result p { margin: 8px 0 14px; font-size: 15px; line-height: 1.6; }
.event-emoji { font-size: 40px; }
.event-paste textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text); font: inherit; line-height: 1.6; resize: vertical;
}
.paste-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.event-reply-sample {
  background: var(--surface); border: 1px dashed var(--border-strong, var(--border));
  border-radius: var(--radius); padding: 14px 16px; font-size: 14.5px; line-height: 1.7;
}

/* 공지 본문에 넣은 이미지 — 에디터로 올리면 클래스가 안 붙어서 본문 폭을
   넘어가 삐져나왔다(2026-08-18 사장님 지적). 본문 안 모든 이미지에 적용한다. */
.notice-body img,
.notice-editor img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}


}

/* 소식 띠 옆 전체 보기 - 지난 소식이 있다는 것만 알린다 */
/* 알약 안에 세로선으로 구분해 넣는다. 밖에 두면 어정쩡하게 떠 보인다. */
.notice-all-link {
  margin-left: 12px;
  padding-left: 14px;
  border-left: 1px solid #e3e7ef;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #9ca3af);
  white-space: nowrap;
}
.intro-notice-strip:hover .notice-all-link { color: var(--accent-2, #2563eb); }


/* 헤더 공지사항 - 드롭다운 안에 있으면 사실상 숨겨진 메뉴가 된다.
   헤더의 다른 요소(크레딧 배지·충전·프로필)가 전부 알약 모양이라
   글씨만 두면 혼자 튄다. 같은 알약으로 맞춘다. */
.header-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--soft, #f1f3f7);
  color: var(--muted, #6b7280);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.header-notice svg { width: 16px; height: 16px; flex: none; }
.header-notice:hover { background: #e6e9f0; color: var(--text, #111827); }
.header-notice.is-current { background: #e8f0ff; color: var(--accent-2, #2563eb); }
/* 좁은 화면에서는 글씨를 빼고 종 아이콘만 남긴다 */
@media (max-width: 860px) {
  .header-notice span { display: none; }
  .header-notice { padding: 0 10px; }
}


/* 충전 팝업(오픈 후) - 혜택을 첫 줄에 올리고 버튼을 크게.
   사려는 사람이 두 번 눌러야 와디즈에 가므로 두 번째를 쉽게 만든다. */
.credit-modal-hero {
  margin: 4px 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.credit-modal-hero em {
  font-style: normal;
  color: var(--accent-2, #2563eb);
}
.credit-modal-hero + .credit-modal-sub {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.6;
}
.prep-btn.big {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .28);
}
.credit-modal-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted, #6b7280);
}
.credit-modal-note b { color: var(--text, #374151); }

/* 코드 입력칸은 접어둔다 - 펼쳐두면 구매 버튼과 시선이 갈린다 */
details.redeem-box > summary.redeem-lead {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  color: var(--muted, #6b7280);
}
details.redeem-box > summary.redeem-lead::-webkit-details-marker { display: none; }
details.redeem-box > summary.redeem-lead::after { content: " ▾"; opacity: .6; }
details.redeem-box[open] > summary.redeem-lead::after { content: " ▴"; }

/* 왜 늦게 주는지 - 숨기면 문의가 쏟아진다. 이유와 함께 밝힌다 */
.credit-modal-why {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft, #f5f6f9);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted, #6b7280);
}
.credit-modal-why b { color: var(--text, #374151); }


/* 맨 위 전체 폭 띠 - 본문 안에 넣으면 소식 띠·부제목과 겹쳐 지저분해진다.
   헤더보다 위에 깔아 본문 레이아웃을 건드리지 않는다.
   빛이 좌우로 훑고 지나가게 해서 눈에 걸리게 한다. */
/* 답변 도착 알림 띠. 파란 띠(광고성) 바로 아래에 붙되, 색을 달리해서
   "나에게 온 것"으로 읽히게 한다. 파란색으로 하면 위 띠와 한 덩어리로 보여
   그냥 안내문처럼 지나친다. */
.reply-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 20px;
  margin-bottom: 14px;                  /* 아래 헤더와 붙으면 한 덩어리로 보인다 */
  background: #fff8e1;
  border-bottom: 1px solid #f3d98b;
  color: #6b4e00;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.reply-bar-text strong { font-weight: 800; color: #8a5a00; }
.reply-bar-text em {                    /* 그 사람이 남긴 질문 — 내 얘기임을 알아보게 */
  font-style: normal;
  font-weight: 700;
  color: #4a3600;
}
.reply-bar-btn {
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: #8a5a00;
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.reply-bar-btn:hover { opacity: .9; }

.trial-bar {
  position: relative;
  overflow: hidden;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 2px 10px rgba(29, 78, 216, .18);
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.4;
  text-align: center;
}
/* 펀딩이 끝난 뒤의 가입 안내 띠는 눌리는 링크다(2026-09-13).
   글자색·밑줄은 그대로 두고 손가락 커서만 준다 — 띠 모양은 같게. */
.trial-bar-link { display: block; text-decoration: none; color: #fff; cursor: pointer; }
.trial-bar-link:hover { filter: brightness(1.06); }
.trial-bar-text { position: relative; z-index: 1; }
.trial-bar-text strong {
  font-weight: 800;
  color: #ffe27a;                       /* 숫자만 노랑으로 튀게 */
}
/* 빛 한 줄기가 좌우로 훑고 지나간다 */
.trial-bar::after {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.38) 50%,
    rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  animation: trialSweep 3.4s ease-in-out infinite;
}
@keyframes trialSweep {
  0%   { left: -40%; }
  55%  { left: 115%; }
  100% { left: 115%; }
}
/* 움직임을 줄이도록 설정한 사람에게는 빛을 띄우지 않는다 */
@media (prefers-reduced-motion: reduce) {
  .trial-bar::after { animation: none; opacity: 0; }
}
@media (max-width: 560px) {
  .trial-bar { padding: 13px 14px; font-size: 14.5px; }
}


/* 제작 시작 화면 간격 - 제목과 소식 띠는 벌리고, 질문은 카드에 붙인다.
   질문("어떤 방식으로 시작할까요?")은 바로 아래 카드를 고르라는 말이라
   카드와 한 덩어리로 읽혀야 한다. 소식 띠는 별개 알림이라 떨어져야 한다. */
.app main > .notice-strip-row {
  margin: 26px 0 34px;
  text-align: left;
}
.app main > .notice-strip-row + .subtitle {
  margin-bottom: 14px;
}

/* ── 회원 탈퇴 ─────────────────────────────────────────────
   맨 아래 조용한 진입점 + 확인 화면. 되돌릴 수 없는 일이라
   눈에 띄되 실수로는 안 눌리게 한다. (2026-08-31) */
.withdraw-entry {
  margin: 34px 0 12px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}
.withdraw-entry a {
  margin-left: 6px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.withdraw-entry a:hover { color: var(--danger); }

.withdraw-list { margin: 6px 0 0; padding-left: 20px; line-height: 1.9; font-size: 15px; }
.withdraw-list strong { color: var(--text); }

.withdraw-warn {
  margin-top: 16px; padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--warning-tint); color: var(--warning-text);
  font-size: 14.5px; line-height: 1.65;
}
.withdraw-warn a { text-decoration: underline; font-weight: 700; }

.withdraw-blocked {
  margin: 0; padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent-tint); color: var(--text);
  font-size: 15px; line-height: 1.7;
}

.withdraw-error { margin: 10px 0 0; color: var(--danger); font-size: 14px; font-weight: 700; }

.withdraw-form label { display: block; font-size: 14.5px; margin-bottom: 10px; }
.withdraw-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.withdraw-agree {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; color: var(--text); cursor: pointer;
}
.withdraw-agree input { width: 17px; height: 17px; cursor: pointer; }

.withdraw-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.wd-btn {
  display: inline-block; padding: 11px 20px; border: 0;
  border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.wd-btn-ghost {
  background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--border);
}
.wd-btn-ghost:hover { background: var(--surface); border-color: var(--border-strong); }
.wd-btn-danger { background: var(--danger); color: #fff; }
.wd-btn-danger:hover { background: #b91c1c; }

.withdraw-reasons {
  margin: 0 0 26px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.withdraw-reasons legend {
  padding: 0 6px; font-size: 14.5px; font-weight: 700; color: var(--text);
}
.withdraw-reasons legend span { font-weight: 500; color: var(--text-muted); }
.withdraw-reason {
  display: block; margin: 9px 0; font-size: 14.5px;
  color: var(--text); cursor: pointer;
}
.withdraw-reason input { margin-right: 8px; }
.withdraw-detail {
  width: 100%; max-width: 100%; margin-top: 10px; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 14.5px; background: var(--surface); color: var(--text);
}

/* 관리자 미리보기 띠 — 손님에겐 안 보인다 */
.withdraw-preview {
  margin: 0 0 22px; padding: 13px 16px;
  border: 1px dashed var(--accent); border-radius: var(--radius-sm);
  background: var(--accent-tint); color: var(--text);
  font-size: 14.5px; line-height: 1.6;
}
.withdraw-preview strong {
  display: inline-block; margin-right: 8px; padding: 2px 9px;
  border-radius: 999px; background: var(--accent-2); color: #fff;
  font-size: 12px; font-weight: 700;
}
.withdraw-preview.done {
  border-style: solid; border-color: var(--success);
  background: var(--success-tint);
}
