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

html { overflow-y: scroll; }
body {
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: #222;
  background: #fff;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.logo span {
  color: #FF7A1A;
  font-style: italic;
  font-weight: 900;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.footer-brand .logo-img { height: 36px; }

.tab-nav {
  display: flex;
  gap: 0;
  flex: 1;
  justify-content: flex-start;
}
.tab-btn {
  padding: 0 14px;
  height: 64px;
  min-width: 96px;
  border: none;
  background: none;
  color: #555;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  font-family: inherit;
  text-decoration: none;
  gap: 2px;
}
.tab-btn:hover { color: #e84545; }
.tab-btn.active { color: #e84545; border-bottom-color: #e84545; }
.tab-btn .tab-name { font-size: 14px; font-weight: 600; }
.tab-btn .tab-sub { font-size: 11px; font-weight: 400; opacity: .85; }

.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 80px 40px;
  text-align: center;
}
.hero h1 { font-size: 42px; font-weight: 900; letter-spacing: -2px; line-height: 1.2; }
.hero h1 em { color: #f5a623; font-style: normal; }
.hero p { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,.75); }
.hero-badge {
  display: inline-flex;
  gap: 16px;
  margin-top: 32px;
}
.hero-badge span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
}

/* ── AI포토북 소개 섹션 ── */
.ai-promo {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(139,92,246,.10), transparent 60%),
    radial-gradient(700px 400px at 90% 100%, rgba(236,72,153,.08), transparent 60%),
    #fff;
  text-align: center;
}
.ai-promo .ai-promo-inner { max-width: 1000px; padding-top: 56px; padding-bottom: 72px; }
.ai-promo-label {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #6d28d9;
  background: #f3efff;
  border: 1px solid #ddd6fe;
  border-radius: 30px;
  padding: 10px 28px;
  margin-bottom: 24px;
}

/* 고민 카드 */
.ai-promo-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ai-promo-pain-card {
  background: #fff;
  border: 1px solid #ececf4;
  border-radius: 16px;
  padding: 26px 18px 22px;
  box-shadow: 0 2px 10px rgba(30,27,75,.04);
  transition: transform .2s, box-shadow .2s;
}
.ai-promo-pain-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(30,27,75,.10); }
.ai-promo-pain-icon { font-size: 36px; line-height: 1; margin-bottom: 12px; }
.ai-promo-pain-title { font-size: 16px; font-weight: 800; color: #222; letter-spacing: -.3px; margin-bottom: 8px; }
.ai-promo-pain-desc { font-size: 13px; line-height: 1.6; color: #777; }

/* 전환 */
.ai-promo-arrow {
  margin: 32px 0 14px;
  font-size: 18px;
  color: #8b5cf6;
  animation: ai-promo-bounce 1.6s ease-in-out infinite;
}
@keyframes ai-promo-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.ai-promo-headline {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.3;
  color: #1a1a2e;
}
.ai-promo-headline em {
  font-style: normal;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ai-promo-br { display: none; }
.ai-promo-sub { margin-top: 12px; font-size: 16px; color: #666; }

/* 진행 3단계 */
.ai-promo-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-top: 36px;
}
.ai-promo-step {
  flex: 1;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 26px 16px 22px;
  background: #fff;
  border: 1px solid #ececf4;
  border-radius: 16px;
}
.ai-promo-step-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(139,92,246,.35);
}
.ai-promo-step-icon { font-size: 32px; line-height: 1; margin-top: 4px; }
.ai-promo-step-name { font-size: 15px; font-weight: 800; color: #222; }
.ai-promo-step-desc { font-size: 12.5px; line-height: 1.55; color: #777; }
.ai-promo-step-line {
  width: 40px;
  align-self: center;
  height: 2px;
  background: repeating-linear-gradient(90deg, #c4b5fd 0 6px, transparent 6px 10px);
}

/* AI 기능 */
.ai-promo-feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.ai-promo-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(160deg, #f5f3ff, #fdf2f8);
  border: 1px solid #e9d5ff;
  border-radius: 14px;
  padding: 20px 10px 18px;
  transition: transform .2s, box-shadow .2s;
}
.ai-promo-feature:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(139,92,246,.18); }
.ai-promo-feature-icon { font-size: 30px; line-height: 1; margin-bottom: 4px; }
.ai-promo-feature-name { font-size: 14px; font-weight: 800; color: #4c1d95; letter-spacing: -.3px; }
.ai-promo-feature-desc { font-size: 12px; color: #7c6fa0; line-height: 1.4; }

/* 이래서 좋아요 */
.ai-promo-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
  text-align: left;
}
.ai-promo-benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #ececf4;
  border-radius: 14px;
  padding: 18px 20px;
}
.ai-promo-benefit-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #f3efff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.ai-promo-benefit-title { font-size: 15px; font-weight: 800; color: #222; margin-bottom: 4px; }
.ai-promo-benefit-desc { font-size: 13px; line-height: 1.55; color: #777; }

/* 대량 제작 활용 사례 */
.ai-promo-usecase {
  margin-top: 44px;
  padding: 36px 28px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 55%, #7c3aed 100%);
  color: #fff;
}
.ai-promo-usecase-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 14px;
}
.ai-promo-usecase-head h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.4;
}
.ai-promo-usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.ai-promo-usecase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 20px 12px 18px;
}
.ai-promo-usecase-icon { font-size: 32px; line-height: 1; margin-bottom: 4px; }
.ai-promo-usecase-name { font-size: 15px; font-weight: 800; }
.ai-promo-usecase-desc { font-size: 12.5px; color: rgba(255,255,255,.7); line-height: 1.4; }

/* 마무리 + CTA */
.ai-promo-tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  background: #f7f6fc;
  border: 1px solid #e6e2f5;
  border-radius: 40px;
  padding: 10px 22px 10px 10px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}
.ai-promo-tagline-time {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}
.ai-promo-tagline-text strong { color: #7c3aed; }
.ai-promo-cta { margin-top: 22px; }
.ai-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  color: #fff;
  border: 0;
  border-radius: 30px;
  padding: 16px 38px;
  font-size: 17px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(139,92,246,.35);
  transition: transform .2s, box-shadow .2s;
}
.ai-promo-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(139,92,246,.45); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.section-subtitle {
  font-size: 15px;
  color: #888;
  margin-bottom: 40px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 8px 18px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: #222;
  color: #fff;
  border-color: #222;
}

.cover-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}
.cover-tab {
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #555;
  transition: all .2s;
}
.cover-tab.active { background: #e84545; color: #fff; border-color: #e84545; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.product-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  transform: translateY(-4px);
}
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.product-img .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e84545;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.product-img .badge-new { background: #4caf50; }
.product-img .badge-hot { background: #ff9800; }
.product-info { padding: 16px; }
.product-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.product-desc { font-size: 12px; color: #888; margin-bottom: 10px; line-height: 1.5; }
.product-price {
  font-size: 16px;
  font-weight: 800;
  color: #e84545;
}
.product-price span { font-size: 12px; font-weight: 400; color: #aaa; margin-left: 4px; }

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.theme-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.theme-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.theme-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-info { padding: 12px; }
.theme-name { font-size: 14px; font-weight: 700; }
.theme-count { font-size: 12px; color: #aaa; margin-top: 2px; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  font-size: 14px;
}
.price-table th {
  background: #f7f7f7;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: #444;
  border-bottom: 2px solid #eee;
}
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}
.price-table tr:hover td { background: #fafafa; }
.price-highlight { color: #e84545; font-weight: 700; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.feature-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
}
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: #888; line-height: 1.6; }

.slim-hero {
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  color: #fff;
  padding: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
}
.slim-hero-text h2 { font-size: 32px; font-weight: 900; margin-bottom: 12px; }
.slim-hero-text p { color: rgba(255,255,255,.7); line-height: 1.7; font-size: 15px; }
.slim-hero-visual {
  flex-shrink: 0;
  font-size: 80px;
  line-height: 1;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-links a {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.header-links a:hover { color: #e84545; }
.header-links .hdr-form { display: inline; margin: 0; padding: 0; }
.header-links .hdr-link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #555; font-family: inherit;
  white-space: nowrap; transition: color .2s;
}
.header-links .hdr-link-btn:hover { color: #e84545; }
.btn-make {
  background: #e84545;
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 20px;
}
.btn-make:hover { background: #c73652; }
.btn-ai {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(139, 92, 246, .25);
  transition: transform .15s, box-shadow .15s;
}
.btn-ai:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, .4);
}
.btn-ai .ai-icon { font-size: 13px; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 560px;
  max-width: 95vw;
  max-height: 96vh;
  overflow-y: auto;
  padding: 22px 28px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.m-size-selector { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.m-size-card {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  min-width: 100px;
  background: #fafafa;
}
.m-size-card:hover { border-color: #e84545; }
.m-size-card.active { border-color: #e84545; background: #fff7f7; }
.m-size-card .si { font-size: 24px; margin-bottom: 4px; }
.m-size-card .sl { font-size: 12px; font-weight: 700; color: #333; }
.m-size-card .ss { font-size: 11px; color: #999; margin-top: 2px; }

.m-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.m-form-group label { display: block; font-size: 12px; color: #666; margin-bottom: 3px; }
.m-form-group input,
.m-form-group select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fafafa;
}
.m-form-group input:focus,
.m-form-group select:focus { outline: none; border-color: #e84545; background: #fff; }

.m-page-selector { margin-bottom: 10px; }
.m-page-selector label { font-size: 12px; color: #666; display: block; margin-bottom: 4px; }
.m-slider-wrap { display: flex; align-items: center; gap: 12px; }
.m-slider-wrap input[type=range] { flex: 1; accent-color: #e84545; }
.m-page-badge {
  background: #e84545; color: #fff;
  border-radius: 6px; padding: 4px 12px;
  font-size: 13px; font-weight: 700;
  min-width: 52px; text-align: center;
}

.m-price-preview {
  background: #f8f9ff;
  border: 1px solid #d0d8f0;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.m-price-label { font-size: 12px; color: #666; }
.m-price-value { font-size: 20px; font-weight: 800; color: #e84545; }
.m-price-detail { font-size: 11px; color: #999; margin-top: 2px; }

.btn-modal-create {
  width: 100%;
  background: #e84545;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn-modal-create:hover { background: #c73652; }
.btn-modal-create:disabled { background: #aaa; cursor: not-allowed; }

#ai-modal .modal-box {
  width: 860px;
  max-width: 95vw;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 20px;
}
.ai-modal-hdr {
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #7c3aed 100%);
  padding: 26px 36px 22px;
  position: relative;
  color: #fff;
  flex-shrink: 0;
}
.ai-modal-hdr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #e0d7ff;
  margin-bottom: 10px;
}
.ai-modal-hdr h2 {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 5px;
}
.ai-modal-hdr p { font-size: 13px; opacity: .72; }
.ai-modal-hdr-close {
  position: absolute;
  top: 16px; right: 20px;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ai-modal-hdr-close:hover { background: rgba(255,255,255,.3); }

.ai-progress {
  display: flex;
  align-items: center;
  padding: 14px 36px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.ai-prog-step {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-prog-num {
  width: 27px; height: 27px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}
.ai-prog-label { font-size: 12px; font-weight: 600; color: #94a3b8; transition: color .2s; }
.ai-prog-step.active .ai-prog-num { background: linear-gradient(135deg,#7c3aed,#ec4899); color: #fff; }
.ai-prog-step.active .ai-prog-label { color: #7c3aed; }
.ai-prog-step.done .ai-prog-num { background: #10b981; color: #fff; }
.ai-prog-step.done .ai-prog-label { color: #10b981; }
.ai-prog-line { flex: 1; height: 2px; background: #e2e8f0; margin: 0 12px; transition: background .2s; }
.ai-prog-line.done { background: #10b981; }

.ai-panels { flex: 1; overflow-y: auto; }
.ai-panel { display: none; padding: 26px 36px; }
.ai-panel.active { display: block; }

.ai-drop-zone {
  border: 2px dashed #c4b5fd;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(135deg,rgba(124,58,237,.03),rgba(236,72,153,.03));
  transition: all .2s;
  min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ai-drop-zone:hover, .ai-drop-zone.drag-over {
  border-color: #7c3aed;
  background: linear-gradient(135deg,rgba(124,58,237,.07),rgba(236,72,153,.07));
}
.ai-drop-zone.has-files {
  border-color: #7c3aed;
  padding: 16px;
  justify-content: flex-start;
  align-items: stretch;
}
.ai-drop-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ai-drop-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg,rgba(124,58,237,.1),rgba(236,72,153,.1));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 4px;
}
.ai-drop-title { font-size: 15px; font-weight: 700; color: #374151; }
.ai-drop-hint { font-size: 12px; color: #9ca3af; margin-bottom: 6px; }
.ai-drop-btn {
  background: linear-gradient(135deg,#7c3aed,#ec4899);
  color: #fff; border: none;
  padding: 9px 22px; border-radius: 20px;
  font-size: 13px; font-weight: 700; cursor: pointer; pointer-events: auto;
}
.ai-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(80px,1fr));
  gap: 8px; width: 100%;
}
.ai-photo-thumb {
  aspect-ratio: 1;
  border-radius: 8px; overflow: hidden;
  background: #f3f4f6; position: relative;
}
.ai-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ai-thumb-more {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; border-radius: 8px;
}
.ai-upload-count {
  margin-top: 14px;
  padding: 10px 16px;
  background: linear-gradient(135deg,rgba(124,58,237,.07),rgba(236,72,153,.07));
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 10px;
  font-size: 13px; font-weight: 700; color: #7c3aed;
  display: flex; align-items: center; gap: 8px;
}

.ai-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.ai-field-label {
  font-size: 11px; font-weight: 800; color: #6b7280;
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px;
}
.ai-text-input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 14px; background: #fafafa;
  font-family: inherit; color: #111; transition: border-color .15s, box-shadow .15s;
}
.ai-text-input:focus {
  outline: none; border-color: #7c3aed; background: #fff;
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.ai-mood-list { display: flex; flex-direction: column; gap: 7px; }
.ai-mood-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  cursor: pointer; transition: all .15s; background: #fff;
}
.ai-mood-item:hover { border-color: #c4b5fd; background: rgba(124,58,237,.02); }
.ai-mood-item.active {
  border-color: #7c3aed;
  background: linear-gradient(135deg,rgba(124,58,237,.06),rgba(236,72,153,.06));
}
.ai-mood-swatch { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.ai-mood-texts { flex: 1; }
.ai-mood-item-name { font-size: 13px; font-weight: 700; color: #111; line-height: 1.2; }
.ai-mood-item-desc { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.ai-mood-check { color: #7c3aed; font-weight: 900; font-size: 14px; opacity: 0; transition: opacity .15s; }
.ai-mood-item.active .ai-mood-check { opacity: 1; }

.ai-size-list { display: flex; flex-direction: column; gap: 7px; }
.ai-size-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  cursor: pointer; transition: all .15s; background: #fff;
}
.ai-size-item:hover { border-color: #c4b5fd; }
.ai-size-item.active {
  border-color: #7c3aed;
  background: linear-gradient(135deg,rgba(124,58,237,.06),rgba(236,72,153,.06));
}
.ai-size-shape-wrap { width: 46px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-size-texts { flex: 1; }
.ai-size-item-name { font-size: 13px; font-weight: 700; color: #111; line-height: 1.2; }
.ai-size-item-dim { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.ai-size-check { color: #7c3aed; font-weight: 900; font-size: 14px; opacity: 0; transition: opacity .15s; }
.ai-size-item.active .ai-size-check { opacity: 1; }

.ai-features-box {
  margin-top: 18px;
  background: linear-gradient(135deg,rgba(124,58,237,.05),rgba(236,72,153,.05));
  border: 1px solid rgba(124,58,237,.15);
  border-radius: 12px; padding: 14px 16px;
}
.ai-feature-row {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0; font-size: 12px; color: #4b5563;
}
.ai-feature-row + .ai-feature-row { border-top: 1px solid rgba(124,58,237,.08); }
.ai-feature-ico { font-size: 15px; flex-shrink: 0; }

.ai-footer {
  padding: 14px 36px;
  border-top: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; background: #fff;
}
.ai-btn-back {
  background: none; border: 1.5px solid #e5e7eb;
  color: #6b7280; padding: 10px 20px;
  border-radius: 10px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.ai-btn-back:hover { border-color: #9ca3af; color: #374151; }
.ai-btn-back.hidden { visibility: hidden; }
.ai-btn-next {
  background: linear-gradient(135deg,#7c3aed,#ec4899);
  color: #fff; border: none;
  padding: 11px 28px; border-radius: 10px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  display: flex; align-items: center; gap: 8px;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
.ai-btn-next:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,.45); }
.ai-btn-next:disabled { background: #aaa; cursor: not-allowed; box-shadow: none; transform: none; }
.ai-step-dots { display: flex; gap: 6px; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: #e2e8f0; transition: background .2s; }
.ai-dot.active { background: #7c3aed; }

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .tab-btn { padding: 0 10px; font-size: 12px; }
  .hero { padding: 48px 20px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero-badge { flex-wrap: wrap; gap: 8px; }
  .ai-promo-label { font-size: 17px; padding: 8px 20px; }
  .ai-promo-pain-grid { grid-template-columns: 1fr; gap: 10px; }
  .ai-promo-pain-card { padding: 18px 14px; }
  .ai-promo-pain-icon { font-size: 28px; margin-bottom: 8px; }
  .ai-promo-headline { font-size: 23px; }
  .ai-promo-sub { font-size: 14px; }
  .ai-promo-br { display: inline; }
  .ai-promo-steps { flex-direction: column; gap: 22px; align-items: center; }
  .ai-promo-step { max-width: 100%; width: 100%; }
  .ai-promo-step-line { display: none; }
  .ai-promo-feature-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ai-promo-feature { padding: 14px 6px 12px; }
  .ai-promo-feature-icon { font-size: 24px; }
  .ai-promo-feature-name { font-size: 12.5px; }
  .ai-promo-feature-desc { display: none; }
  .ai-promo-benefits { grid-template-columns: 1fr; gap: 10px; }
  .ai-promo-usecase { padding: 26px 18px 22px; border-radius: 16px; }
  .ai-promo-usecase-head h3 { font-size: 18px; }
  .ai-promo-usecase-grid { grid-template-columns: 1fr; gap: 8px; }
  .ai-promo-tagline { flex-direction: column; gap: 8px; border-radius: 16px; padding: 14px 16px; font-size: 14px; }
  .ai-promo-btn { padding: 14px 28px; font-size: 15px; }
  .section { padding: 40px 16px; }
  .section-title { font-size: 22px; }
  .section-subtitle { margin-bottom: 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .slim-hero { flex-direction: column; padding: 28px; gap: 24px; text-align: center; }
  .slim-hero-text h2 { font-size: 26px; }
  .price-table { font-size: 12px; display: block; overflow-x: auto; white-space: nowrap; }
  .price-table th, .price-table td { padding: 8px 10px; }
  .header-links a:not(.btn-make) { display: none; }
  .m-options { grid-template-columns: 1fr; }
  /* AI 모달 */
  .ai-settings-grid { grid-template-columns: 1fr; gap: 20px; }
  .ai-modal-hdr { padding: 20px 20px 18px; }
  .ai-modal-hdr h2 { font-size: 18px; }
  .ai-progress { padding: 12px 16px; }
  .ai-gpu-status { margin: 8px 16px 0; }
  .ai-panel { padding: 20px 18px; }
  .ai-footer { padding: 12px 18px; }
  .ai-prog-label { display: none; }
  .modal-box { padding: 20px 18px 22px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 23px; letter-spacing: -1px; }
  .ai-promo-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-promo-headline { font-size: 21px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .product-img, .theme-img { font-size: 36px; }
  .filter-bar, .cover-tabs { margin-bottom: 24px; }
  .ai-btn-next { padding: 10px 18px; font-size: 13px; }
  .ai-footer .ai-step-dots { display: none; }
}

/* ── AI 포토북 분석 미리보기 (인라인 패널) ── */
.ai-analysis-result {
  margin-top: 18px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.ai-analysis-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ai-analysis-title {
  font-weight: 700;
  color: #7c3aed;
  font-size: 14px;
}
.ai-analysis-summary {
  font-size: 13px;
  color: #475569;
}
/* GPU AI 추천 서버 상태 줄 + LLM 사용 여부 안내 (2026-10-07) — AI 모달 상단 / 분석 결과 / 생성 진행 모달 공용 */
.ai-gpu-status, .ai-llm-note {
  font-size: 12px; line-height: 1.5; padding: 7px 12px; border-radius: 8px; margin: 10px 0 0;
  background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0;
}
.ai-gpu-status { margin: 10px 36px 0; flex-shrink: 0; }   /* .ai-progress / .ai-panel 의 좌우 36px 에 맞춤 */
.ai-gpu-status.ok,   .ai-llm-note.ok   { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.ai-gpu-status.wait                    { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.ai-gpu-status.warn, .ai-llm-note.warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.ai-llm-note.info                      { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }   /* 정상 생략 (중립) */
.ai-llm-note[hidden], .ai-gpu-status[hidden] { display: none; }
.ai-analysis-clusters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-cluster-card {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.ai-cluster-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #1e293b;
  flex-wrap: wrap;
}
.ai-cluster-badge {
  background: #ede9fe;
  color: #7c3aed;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.ai-cluster-date { color: #64748b; font-size: 12px; }
.ai-cluster-place {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}
.ai-cluster-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ai-cluster-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 6px;
  overflow: hidden;
  background: #e2e8f0;
}
.ai-cluster-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.ai-cluster-thumb.is-hero {
  outline: 2px solid #7c3aed;
  outline-offset: 1px;
}
.ai-cluster-thumb .ai-face-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: rgba(124, 58, 237, .85);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
}
.ai-analysis-dropped-wrap { margin-top: 10px; }
.ai-analysis-dropped-toggle {
  background: transparent;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.ai-analysis-dropped {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ai-dropped-thumb {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: #e2e8f0;
  opacity: .65;
}
.ai-dropped-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ai-dropped-thumb .reason {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(15, 23, 42, .7);
  color: #fff;
  font-size: 9px;
  padding: 1px 2px;
  text-align: center;
}
.ai-photo-analysis-wrap {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.ai-photo-analysis-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}
.ai-photo-analysis-scroll {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}
.ai-photo-analysis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: #1e293b;
}
.ai-photo-analysis-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #1e3a8a;
  color: #fff;
}
.ai-photo-analysis-table thead th {
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid #2563eb;
}
.ai-photo-analysis-table thead th:last-child { border-right: none; }
.ai-photo-analysis-table tbody td {
  padding: 5px 8px;
  border-top: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-photo-analysis-table tbody td:last-child {
  white-space: normal;
  max-width: none;
}
.ai-photo-analysis-table tbody tr:nth-child(even) {
  background: #f8fafc;
}
.ai-photo-analysis-table tbody tr.is-dropped {
  color: #94a3b8;
  background: #fafafa;
  font-style: italic;
}
.ai-photo-analysis-table tbody tr.is-dropped td:nth-child(2),
.ai-photo-analysis-table tbody tr.is-dropped td:nth-child(6) {
  color: #ef4444;
  font-style: normal;
}
.ai-analysis-loading {
  margin-top: 14px;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  color: #475569;
}
.ai-analysis-error {
  margin-top: 14px;
  padding: 10px 12px;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 6px;
  font-size: 13px;
}
.ai-spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid #cbd5e1;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: ai-spin .8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }

/* ── AI 분석 진행 모달 (사진 업로드 직후) ── */
.ai-analysis-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
}
.ai-analysis-modal-overlay.open { display: flex; }
.ai-analysis-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 36px 44px;
  min-width: 320px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  animation: ai-analysis-modal-pop .25s ease-out;
}
@keyframes ai-analysis-modal-pop {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.ai-analysis-modal-spinner {
  width: 48px; height: 48px;
  border: 4px solid #e9d5ff;
  border-top-color: #7c3aed;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: ai-spin 1s linear infinite;
}
.ai-analysis-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.ai-analysis-modal-sub {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
}
.ai-analysis-modal-count {
  margin-top: 14px;
  font-size: 12px;
  color: #7c3aed;
  font-weight: 600;
}
.ai-analysis-modal-count:empty { display: none; }
/* 진행 바 + 예상 시간 (2026-09-13) */
.ai-analysis-modal-track {
  margin-top: 14px;
  width: 100%; height: 7px;
  background: #ede9fe;
  border-radius: 99px;
  overflow: hidden;
}
.ai-analysis-modal-bar {
  height: 100%; width: 0;
  background: #7c3aed;
  border-radius: 99px;
  transition: width .4s ease;
}
.ai-analysis-modal-bar.indeterminate {
  width: 40%;
  animation: ai-analysis-bar-slide 1.2s ease-in-out infinite alternate;
}
@keyframes ai-analysis-bar-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(150%); }
}
.ai-analysis-modal-eta {
  margin-top: 10px;
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  min-height: 1.5em;
}
.ai-analysis-modal-eta strong { color: #7c3aed; }

/* ── 분석 단계 안내 / 사진 순환 / 팁 (2026-09-13) ── */
.ai-analysis-modal-box.rich {
  max-width: 520px; min-width: 360px; padding: 30px 36px 26px;
  /* 단계·결정 사항·미리보기·팁이 쌓이면 720px 화면을 넘길 수 있다 → 박스 안에서 스크롤 (2026-09-13) */
  max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box;
}
.ai-analysis-steps {
  list-style: none; margin: 18px 0 0; padding: 0;
  text-align: left;
  display: grid; row-gap: 6px;
}
.ai-analysis-steps li {
  display: grid; grid-template-columns: 22px 92px 1fr; align-items: baseline; column-gap: 8px;
  font-size: 12.5px; color: #94a3b8; line-height: 1.45;
}
.ai-analysis-steps li[hidden] { display: none; }   /* display:grid 가 hidden 속성을 덮어쓰지 않도록 */
.ai-analysis-steps .ai-step-icon {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #e2e8f0; display: inline-block; position: relative; top: 3px;
  box-sizing: border-box;
}
.ai-analysis-steps .ai-step-name { font-weight: 600; color: #94a3b8; }
.ai-analysis-steps .ai-step-desc { color: #a8b3c4; }
.ai-analysis-steps li.done .ai-step-icon { border-color: #7c3aed; background: #7c3aed; }
.ai-analysis-steps li.done .ai-step-icon::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 7px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ai-analysis-steps li.done .ai-step-name { color: #475569; }
.ai-analysis-steps li.active .ai-step-icon {
  border-color: #7c3aed; border-top-color: transparent;
  animation: ai-spin .9s linear infinite;
}
.ai-analysis-steps li.active .ai-step-name { color: #7c3aed; }
.ai-analysis-steps li.active .ai-step-desc { color: #475569; }

.ai-analysis-peek {
  margin-top: 16px; padding: 10px 12px;
  display: flex; align-items: center; gap: 12px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; text-align: left;
}
.ai-analysis-peek[hidden] { display: none; }
.ai-analysis-peek-frame {
  width: 72px; height: 72px; flex: 0 0 72px; border-radius: 8px; overflow: hidden; background: #e2e8f0;
}
.ai-analysis-peek-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.ai-analysis-peek-label { font-size: 11px; color: #7c3aed; font-weight: 600; }
.ai-analysis-peek-name { font-size: 13px; color: #1e293b; margin-top: 2px; word-break: break-all; }
.ai-analysis-peek-idx { font-size: 11px; color: #94a3b8; margin-top: 2px; font-variant-numeric: tabular-nums; }

.ai-analysis-tip {
  margin-top: 14px; padding: 12px 14px; text-align: left;
  background: linear-gradient(135deg, #f5f3ff, #fdf2f8); border-radius: 10px;
  min-height: 62px;
}
.ai-analysis-tip-label { font-size: 11px; font-weight: 700; color: #7c3aed; margin-bottom: 4px; }
.ai-analysis-tip-text { font-size: 12.5px; color: #334155; line-height: 1.55; transition: opacity .35s; }
.ai-analysis-tip-text.fade { opacity: 0; }

/* ── AI 포토북 생성 진행 모달 — AI 결정 사항 + 표지 미리보기 (2026-09-13) ──
   분석 모달(.ai-analysis-modal-*) 의 스피너/진행바/단계/팁을 그대로 쓰고, 생성 단계 전용 패널만 추가.
   서버(/api/ai/progress)가 단계마다 보내는 mood·배경·제목·문구·현재 저장 사진을 실시간으로 채운다. */
.ai-create-decisions {
  margin-top: 14px; padding: 12px 14px; text-align: left;
  background: #fff; border: 1px solid #e9d5ff; border-radius: 10px;
  display: grid; row-gap: 7px;
}
.ai-create-decisions[hidden] { display: none; }
.ai-create-decisions-label { font-size: 11px; font-weight: 700; color: #7c3aed; }
.ai-create-decision {
  display: grid; grid-template-columns: 20px 1fr; column-gap: 8px; align-items: start;
  font-size: 12.5px; color: #334155; line-height: 1.5; min-height: 1.5em;
}
.ai-create-decision[hidden] { display: none; }
.ai-create-decision .ai-cd-icon { font-size: 13px; line-height: 1.5; }
.ai-create-decision .ai-cd-text b { color: #1e293b; }
.ai-create-decision .ai-cd-text q { quotes: '“' '”'; color: #1e293b; }
.ai-create-decision .ai-cd-src { font-size: 11px; color: #94a3b8; margin-left: 4px; }
.ai-create-decision.pending .ai-cd-text { color: #94a3b8; }
.ai-create-palette { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 6px; }
.ai-create-palette span {
  width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .08); display: inline-block;
}

/* 표지 미리보기 — 스토리가 정해지면 앞표지 사진 + 제목·부제를 작은 책 표지처럼 */
.ai-create-cover {
  margin-top: 14px; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 10px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
}
.ai-create-cover[hidden] { display: none; }
.ai-create-cover-book {
  flex: 0 0 96px; width: 96px; height: 96px; border-radius: 6px 10px 10px 6px;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, .18), inset 3px 0 0 rgba(0, 0, 0, .08);
  position: relative; overflow: hidden; background: #FFF0ED; transition: background .4s;
}
.ai-create-cover-book img {
  position: absolute; left: 8%; top: 8%; width: 84%; height: 60%; object-fit: cover; border-radius: 2px; display: block;
}
.ai-create-cover-book .ai-cover-title {
  position: absolute; left: 6%; right: 6%; top: 71%;
  font-size: 9px; font-weight: 700; color: #222; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ai-create-cover-book .ai-cover-sub {
  position: absolute; left: 6%; right: 6%; top: 84%;
  font-size: 6px; color: #666; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ai-create-cover-meta { min-width: 0; flex: 1; }
.ai-create-cover-label { font-size: 11px; color: #7c3aed; font-weight: 600; }
.ai-create-cover-title { font-size: 14px; font-weight: 700; color: #1e293b; margin-top: 2px; word-break: keep-all; }
.ai-create-cover-sub { font-size: 12px; color: #64748b; margin-top: 2px; }
.ai-create-cover-quote { font-size: 12px; color: #475569; margin-top: 6px; line-height: 1.5; font-style: italic; }

/* ── 푸터 ── */
.site-footer {
  margin-top: 60px;
  background: #111;
  color: #ddd;
  padding: 40px 0 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand .logo {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
  text-decoration: none;
}
.footer-brand .logo span {
  color: #FF7A1A;
  font-style: italic;
  font-weight: 900;
}
.footer-tag {
  margin: 8px 0 0;
  font-size: 13px;
  color: #aaa;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
  transition: color .15s ease;
}
.footer-nav a:hover { color: #FF7A1A; }
.footer-nav-invest {
  color: #FF7A1A !important;
  font-weight: 600;
}
.footer-meta {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid #2a2a2a;
  color: #aaa;
  font-size: 12.5px;
  line-height: 1.9;
  text-align: center;
}
.footer-meta a {
  color: #aaa;
  text-decoration: underline;
}
.footer-meta a:hover { color: #FF7A1A; }
.footer-meta .sep { color: #555; margin: 0 8px; }
.footer-copy {
  max-width: 1280px;
  margin: 16px auto 0;
  padding: 0 24px;
  color: #777;
  font-size: 12px;
  text-align: center;
}
