/* ════════════════════════════════════════════════════════════
   bekah.ai — get-started.css
   온보딩 3단계 + 관리자 대시보드 공통 스타일
   base.css / components.css 충돌 없음
   ════════════════════════════════════════════════════════════ */

/* ─── Onboarding Wrapper ─────────────────────────────────── */
/* header 높이(56px 기준) 제외한 나머지를 정확히 채움
   overflow: auto → 콘텐츠가 넘칠 때만 스크롤 (소형 기기 대비) */
.gs-page {
  height: calc(100svh - 72px); /* header 높이 여유분 포함 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  /* 스크롤바 숨김 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gs-page::-webkit-scrollbar { display: none; }

/* ─── Progress Steps ─────────────────────────────────────── */
.gs-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 0.3s forwards;
  flex-shrink: 0;
}
.gs-step-item {
  display: flex;
  align-items: center;
  gap: 0;
}
.gs-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--ink-deep);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.gs-step-dot.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 146, 74, 0.1);
}
.gs-step-dot.done {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink-deep);
}
.gs-step-label {
  font-family: var(--f-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-left: 0.55rem;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.gs-step-item.active .gs-step-label { color: var(--white-dim); }
.gs-step-item.done .gs-step-label   { color: var(--gold); opacity: 0.7; }
.gs-step-line {
  width: 60px; height: 1px;
  background: var(--line);
  margin: 0 0.5rem;
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.gs-step-line.done { background: rgba(201, 146, 74, 0.4); }

/* ─── Card ───────────────────────────────────────────────── */
.gs-card {
  width: 100%;
  max-width: 560px;
  background: rgba(8, 12, 20, 0.92);
  border: 1px solid rgba(201, 146, 74, 0.18);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.45s forwards;
  flex-shrink: 0;
}
.gs-card-head {
  padding: 1.1rem 1.6rem;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 27, 46, 0.5);
}
.gs-card-eyebrow {
  font-family: var(--f-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 0.4rem;
}
.gs-card-title {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.01em;
}
.gs-card-title em { font-style: italic; color: var(--gold); }
.gs-card-body { padding: 1.4rem 1.6rem; }

/* ─── Form Elements ──────────────────────────────────────── */
.gs-form { display: flex; flex-direction: column; gap: 0.9rem; }
.gs-field { display: flex; flex-direction: column; gap: 0.4rem; }
.gs-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gs-label {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.gs-input,
.gs-select {
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: 2px;
  padding: 0.72rem 1rem;
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
.gs-input:focus, .gs-select:focus { border-color: rgba(201, 146, 74, 0.5); }
.gs-input::placeholder { color: var(--slate); }
.gs-input.error { border-color: rgba(220, 38, 38, 0.5); }
.gs-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(245,240,232,0.38)' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 10px;
  padding-right: 2.2rem;
}
.gs-select option { background: #0D1520; }
.gs-hint {
  font-family: var(--f-body);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--slate);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* ─── Category Chips ─────────────────────────────────────── */
.gs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gs-chip {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
}
.gs-chip:hover   { color: var(--white-dim); border-color: rgba(245,240,232,0.2); }
.gs-chip.active  { color: var(--gold); border-color: rgba(201,146,74,0.35); background: rgba(201,146,74,0.06); }

/* ─── Buttons ────────────────────────────────────────────── */
.gs-btn-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.4rem;
}
.gs-btn-primary {
  flex: 1;
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-deep);
  background: var(--gold);
  border: none;
  border-radius: 2px;
  padding: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.gs-btn-primary:hover { background: var(--gold-lt); }
.gs-btn-skip {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--slate);
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.gs-btn-skip:hover { color: var(--white-dim); border-color: rgba(245,240,232,0.2); }

/* ─── Step Panels (JS 전환) ──────────────────────────────── */
.gs-panel { display: none; }
.gs-panel.active { display: flex; flex-direction: column; gap: 1.2rem; }

/* ─── Step 2: 메뉴 빠른 입력 ─────────────────────────────── */
.gs-menu-rows { display: flex; flex-direction: column; gap: 0.6rem; }
.gs-menu-row { display: grid; grid-template-columns: 1fr auto auto; gap: 0.6rem; align-items: center; }
.gs-menu-row .gs-input { font-size: 0.82rem; padding: 0.6rem 0.85rem; }
.gs-price-input { width: 90px; }
.gs-menu-remove {
  width: 30px; height: 30px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: none;
  color: var(--slate);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.gs-menu-remove:hover { color: rgba(220,38,38,0.7); border-color: rgba(220,38,38,0.3); }
.gs-menu-remove svg { width: 12px; height: 12px; }
.gs-add-row-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gold);
  opacity: 0.7;
  background: none;
  border: 1px dashed rgba(201,146,74,0.25);
  border-radius: 2px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gs-add-row-btn:hover { opacity: 1; border-color: rgba(201,146,74,0.45); }
.gs-add-row-btn svg { width: 12px; height: 12px; }

/* ─── Step 3: QR 미리보기 ────────────────────────────────── */
.gs-qr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.gs-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(245, 240, 232, 0.02);
}
.gs-qr-canvas-wrap {
  width: 60px; height: 60px;
  background: white;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.gs-qr-label {
  font-family: var(--f-body);
  font-size: 0.58rem;
  font-weight: 400;
  color: var(--slate);
  letter-spacing: 0.06em;
}
.gs-qr-count-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.gs-qr-count-row .gs-label { margin: 0; }
.gs-qr-count-input {
  width: 70px;
  text-align: center;
  font-size: 1rem;
  padding: 0.5rem 0.6rem;
}
.gs-download-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,146,74,0.3);
  border-radius: 2px;
  padding: 0.65rem;
  cursor: pointer;
  background: none;
  width: 100%;
  transition: background 0.2s ease;
}
.gs-download-all:hover { background: rgba(201,146,74,0.06); }
.gs-download-all svg { width: 13px; height: 13px; }

/* ─── Complete State ─────────────────────────────────────── */
.gs-complete {
  text-align: center;
  padding: 1rem 0;
}
.gs-complete-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
}
.gs-complete-icon svg { width: 24px; height: 24px; color: #6EE7B7; }
.gs-complete-title {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.gs-complete-sub {
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 1.8rem;
}
.gs-complete-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.gs-complete-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  background: rgba(8, 12, 20, 0.5);
}
.gs-complete-link:hover { border-color: rgba(201,146,74,0.25); background: rgba(201,146,74,0.03); }
.gs-complete-link-left { display: flex; align-items: center; gap: 1rem; }
.gs-complete-link-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(201,146,74,0.08);
  border: 1px solid rgba(201,146,74,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gs-complete-link-icon svg { width: 15px; height: 15px; color: var(--gold); opacity: 0.8; }
.gs-complete-link-title {
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
}
.gs-complete-link-sub {
  font-family: var(--f-body);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--slate);
  margin-top: 0.15rem;
  letter-spacing: 0.04em;
}
.gs-complete-link-arrow {
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}
.gs-complete-link-arrow svg { width: 14px; height: 14px; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .gs-page       { padding: 1rem; height: calc(100svh - 60px); }
  .gs-card-body  { padding: 1rem 1.2rem; }
  .gs-field-row  { grid-template-columns: 1fr; }
  .gs-step-label { display: none; }
  .gs-step-line  { width: 32px; }
  .gs-qr-grid    { grid-template-columns: repeat(3, 1fr); }
  .gs-menu-row   { grid-template-columns: 1fr auto auto; }
  .gs-form       { gap: 0.75rem; }
}
