@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --bg-cream: #f4f6f4;
  --bg-card: #ffffff;
  --forest-dark: #1b3322;
  --forest-mid: #2f5238;
  --forest-light: #eaf1eb;
  --earth-gold: #8c7651;
  --border-warm: #e2e6e1;
  --text-main: #1d211e;
  --text-muted: #5e665f;
  --accent-orange: #d45d32;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Pretendard', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

/* Topbar */
.topbar {
  background: var(--forest-dark);
  color: #ffffff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--earth-gold);
  flex-wrap: wrap;
  gap: 10px;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 20px;
  color: #dce6dd;
}

.topbar-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  color: #cfd8d0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.tab-btn-adpost {
  border-color: rgba(133, 224, 102, 0.55);
  color: #e4f8d8;
}

.tab-btn-pricing {
  border-color: rgba(240, 196, 113, 0.6);
  color: #ffe8b8;
}

.tab-btn-refresh {
  border-color: rgba(149, 222, 100, 0.65);
  color: #f6ffed;
  font-weight: 700;
}

.tab-btn.active,
.tab-btn-adpost.active,
.tab-btn-pricing.active {
  background: #ffffff !important;
  color: #12351b !important;
  border-color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Main Layout */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 63px);
}

/* Sidebar */
.sidebar {
  background: #fdfcf9;
  border-right: 1px solid var(--border-warm);
  padding: 20px 16px;
  overflow-y: auto;
}

.sidebar-header {
  font-size: 13px;
  font-weight: 800;
  color: var(--forest-dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--forest-dark);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-group {
  margin-bottom: 18px;
}

.cat-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #333c34;
  padding: 6px 8px;
  background: #f1efe8;
  border-radius: 5px;
  margin-bottom: 6px;
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 6px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13.5px;
  color: #454d46;
  margin-bottom: 2px;
  transition: all 0.15s;
}

.cat-item:hover {
  background: var(--forest-light);
}

.cat-item.active {
  background: var(--forest-dark);
  color: #ffffff;
  font-weight: 700;
}

.cat-bullet {
  color: #99a39a;
  margin-right: 6px;
  font-size: 12px;
}

.cat-item.active .cat-bullet {
  color: #b8d1be;
}

.cat-name {
  flex: 1;
}

.cat-ver {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.07);
  padding: 1px 6px;
  border-radius: 10px;
}

.cat-item.active .cat-ver {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Main Content Area */
.main-area {
  padding: 24px 30px;
  overflow-y: auto;
}

/* Daily Check Alert Bar */
.daily-alert-bar {
  background: #fff8eb;
  border: 1px solid #f0d290;
  border-left: 5px solid var(--accent-orange);
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: #5c3c10;
}

.cat-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-left: 5px solid var(--forest-dark);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.cat-banner-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cat-group-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--forest-mid);
}

.cat-badge-pill {
  font-size: 11px;
  font-weight: 700;
  background: var(--forest-light);
  color: var(--forest-dark);
  padding: 3px 9px;
  border-radius: 12px;
}

.cat-banner h1 {
  margin: 0 0 6px 0;
  font-size: 22px;
  color: var(--forest-dark);
}

.persona-preview {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Tab Panels */
.tab-panel {
  display: none;
}

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

/* Studio Grid */
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
}

.card-title {
  margin: 0 0 14px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--forest-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd3cc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 2px rgba(59, 90, 66, 0.15);
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.topic-chip {
  background: #e9f7ec;
  border: 1.5px solid #a8d8b2;
  color: #154521;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.topic-chip:hover {
  background: var(--forest-mid);
  color: #ffffff;
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--forest-dark);
  color: #ffffff;
  border: none;
  padding: 11px 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #2b4d35;
}

.btn-accent {
  background: var(--accent-orange);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(201, 100, 59, 0.25);
}

.btn-accent:hover {
  background: #b3532c;
}

.btn-secondary {
  background: #ebf7ee;
  color: #154521;
  border: 1px solid #a8d8b2;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: #d6eedb;
  border-color: #7bc48a;
  color: #0e3317;
}

.btn-danger {
  background: #fdf0ef;
  color: #b9382c;
  border: 1px solid #f1c6c2;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

/* Quality Scanner */
.score-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 14px;
  font-weight: 700;
}

.score-high {
  background: #e3f3e6;
  color: #196b29;
}

.score-mid {
  background: #fff4db;
  color: #946200;
}

.score-low {
  background: #fde8e8;
  color: #b82525;
}

.scan-item {
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.scan-item.ok {
  background: #f4f9f5;
  color: #25472c;
}

.scan-item.warn {
  background: #fff6ed;
  color: #9a4412;
  border: 1px solid #f7d6b5;
}

/* Naver Preview Container */
.naver-editor-frame {
  border: 1px solid #dcdfe4;
  border-radius: 8px;
  background: #ffffff;
  padding: 24px 20px;
  max-height: 760px;
  overflow-y: auto;
}

/* Photo Prompt Cards */
.photo-card {
  background: #faf9f5;
  border: 1px solid #e3ded1;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.photo-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--forest-dark);
  margin-bottom: 6px;
}

.photo-badge {
  background: var(--earth-gold);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

/* ================================================== */
/* 블로그 지수(블덱스) 진단 스펙트럼 & 게이지 스타일 */
/* ================================================== */
.tier-spectrum {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
  margin: 14px 0 18px 0;
  background: #f2f0e8;
  padding: 6px;
  border-radius: 8px;
}

.tier-step {
  text-align: center;
  padding: 8px 2px;
  font-size: 11.5px;
  font-weight: 700;
  color: #666;
  background: #ffffff;
  border-radius: 5px;
  border: 1px solid #e0ddd3;
  transition: all 0.2s;
}

.tier-step.active {
  background: var(--forest-dark);
  color: #ffffff;
  border-color: var(--forest-dark);
  transform: scale(1.06);
  box-shadow: 0 3px 10px rgba(29, 53, 36, 0.3);
}

.diag-summary-box {
  background: #f5f9f6;
  border: 1px solid #cde0d1;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.diag-big-tier {
  font-size: 19px;
  font-weight: 800;
  color: var(--forest-dark);
}

.metric-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.metric-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #333;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: #eceae2;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b5a42, #26783e);
  border-radius: 6px;
  transition: width 0.4s ease;
}

.diag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.diag-table th {
  background: #f3f5f2;
  color: var(--forest-dark);
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid #cbd6cc;
}

.diag-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eae8e1;
  vertical-align: middle;
}

.tier-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  background: #e3f3e6;
  color: #196b29;
}

/* History & Archive */
.history-item, .archive-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fcfbf9;
}

.hist-date, .arch-date {
  font-size: 12px;
  color: #777;
}

.hist-preview {
  font-size: 12.5px;
  color: #444;
  margin-top: 4px;
}

.btn-restore {
  background: var(--forest-light);
  color: var(--forest-dark);
  border: 1px solid #bdd0bf;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.arch-cat {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--forest-mid);
}

.arch-title {
  margin: 4px 0;
  font-size: 15px;
}

.arch-actions {
  display: flex;
  gap: 6px;
}

.empty-note {
  padding: 20px;
  text-align: center;
  color: #777;
  font-size: 13.5px;
  background: #faf9f5;
  border-radius: 8px;
}

/* Toast */
.studio-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1d3524;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 9999;
}

.studio-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .tier-spectrum {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ================================================== */
/* v3.0: AI 컨셉·카테고리 기획소 챗박스 & 그로스 KPI 스타일 */
/* ================================================== */
.chat-box {
  background: #faf9f5;
  border: 1px solid #e0dcd0;
  border-radius: 8px;
  padding: 14px;
  height: 330px;
  overflow-y: auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.55;
}

.chat-msg.ai {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #d5ded6;
  border-left: 4px solid var(--forest-dark);
  color: #222;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--forest-dark);
  color: #ffffff;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.kpi-box {
  background: #fcfbf8;
  border: 1px solid #e2ddd0;
  border-radius: 8px;
  padding: 14px 16px;
}

.kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  display: block;
}

.kpi-val {
  font-size: 23px;
  font-weight: 800;
  color: var(--forest-dark);
  margin: 4px 0;
}

.kpi-sub {
  font-size: 11.5px;
  color: #2b6b38;
  font-weight: 600;
}

.prob-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 6px;
}

.prob-85 {
  background: #dcf2e1;
  color: #155c24;
}

.prob-65 {
  background: #fff1cc;
  color: #8a5a00;
}

.prob-45 {
  background: #e3effa;
  color: #1a4977;
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================== */
/* v4.0: 멀티블로그(3개) 스위처 & 요금제 플랜 페이지 스타일 */
/* ================================================== */
.blog-switcher-box {
  background: #f2f5f1;
  border: 1px solid #c9d6cb;
  border-radius: 8px;
  padding: 10px 10px;
  margin-bottom: 16px;
}

.blog-slot-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.blog-slot-btn {
  background: #ffffff;
  border: 1px solid #ccd4cd;
  color: #334235;
  padding: 6px 4px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s;
}

.blog-slot-btn:hover {
  background: #e3ece4;
}

.blog-slot-btn.active {
  background: var(--forest-dark);
  color: #ffffff;
  border-color: var(--forest-dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  background: #fdfcf9;
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.plan-card.featured {
  background: #ffffff;
  border: 2px solid var(--forest-dark);
  box-shadow: 0 10px 28px rgba(29, 53, 36, 0.12);
}

.plan-best-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest-dark);
  color: #ffe2a8;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 14px;
  white-space: nowrap;
}

.plan-tag {
  display: inline-block;
  background: #eeeadd;
  color: #5c5340;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.plan-header h3 {
  margin: 0 0 8px 0;
  font-size: 19px;
  color: var(--forest-dark);
}

.plan-price {
  font-size: 28px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.plan-price small {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-left: 4px;
}

.plan-desc {
  font-size: 12.5px;
  color: #666;
  margin: 0 0 16px 0;
  min-height: 36px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  border-top: 1px solid #ece8de;
  padding-top: 16px;
  flex: 1;
}

.plan-features li {
  font-size: 13px;
  margin-bottom: 10px;
  color: #2c332d;
  line-height: 1.45;
}

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

/* ================================================== */
/* v5.5 고가독성 에디토리얼 UI (피로도 제로 레이아웃) */
/* ================================================== */
.studio-grid {
  grid-template-columns: 0.92fr 1.18fr;
  gap: 22px;
}

.card {
  border-radius: 12px;
  border: 1px solid #e3e7e2;
  box-shadow: 0 3px 14px rgba(20, 40, 25, 0.035);
}

.topic-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.topic-chip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  background: #e9f7ec;
  border: 1.5px solid #a8d8b2;
  color: #154521;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(27, 94, 32, 0.05);
}

.topic-chip.active-chip {
  background: #d3f0d9;
  border-color: #2e7d32;
  color: #0d3316;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.14);
}

.topic-chip:hover {
  background: #1b5e20;
  border-color: #1b5e20;
  color: #ffffff;
}

/* ✨ 네이버 알고리즘 후킹 제목 다듬기 버튼 & 추천 박스 */
.btn-title-polish {
  white-space: nowrap;
  background: linear-gradient(135deg, #e3f6e8 0%, #cdecd5 100%);
  border: 1.5px solid #6ebf80;
  color: #11421d;
  font-size: 12.5px;
  font-weight: 800;
  padding: 0 13px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.16s ease;
  box-shadow: 0 2px 5px rgba(27, 94, 32, 0.08);
}

.btn-title-polish:hover {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  border-color: #1b5e20;
  color: #ffffff;
  transform: translateY(-1px);
}

.title-suggestion-box {
  margin-top: 8px;
  background: #f4fbf6;
  border: 1px solid #bddfc4;
  border-radius: 9px;
  padding: 9px 11px;
}

.title-suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #164622;
  margin-bottom: 6px;
}

.title-suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.title-cand-btn {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid #d2e8d6;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 12.2px;
  font-weight: 600;
  color: #1e3323;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.14s ease;
}

.title-cand-btn:hover,
.title-cand-btn.selected {
  background: #e6f6ea;
  border-color: #2e7d32;
  color: #0e3317;
  font-weight: 700;
}

.title-cand-tag {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #b9dfc0;
}

.clean-details {
  background: #f8faf8;
  border: 1px solid #dfe6df;
  border-radius: 8px;
  padding: 9px 13px;
}

.clean-details summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: #2b4731;
  user-select: none;
}

/* 2x2 사진 그리드 */
.photo-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-card-compact {
  background: #fcfcfb;
  border: 1px solid #e2e5df;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.photo-card-compact:hover {
  border-color: #9cb8a0;
  box-shadow: 0 4px 12px rgba(29, 53, 36, 0.06);
}

.photo-thumb-wrap {
  position: relative;
  width: 100%;
  height: 126px;
  border-radius: 7px;
  overflow: hidden;
  background: #f0f2ef;
  margin-bottom: 8px;
  border: 1px solid #e4e7e2;
}

.photo-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-num-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(27, 51, 34, 0.86);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.photo-del-top-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #b82525;
  border: 1px solid #f1c6c2;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
}

.photo-del-top-btn:hover {
  background: #b82525;
  color: #ffffff;
}

.kpi-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f2f7f3;
  border: 1px solid #cfe0d2;
  color: #1f4727;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 14px;
}

.kpi-mini-pill.warn {
  background: #fff6ed;
  border-color: #f5d0a9;
  color: #9a4412;
}

.naver-editor-frame {
  border: 1px solid #dfe3e0;
  border-radius: 10px;
  background: #ffffff;
  padding: 28px 26px;
  max-height: 860px;
  overflow-y: auto;
}

.naver-editor-frame figure img {
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.naver-editor-frame figure img:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14) !important;
}

.photo-thumb-wrap {
  cursor: zoom-in;
}

.photo-thumb-wrap img {
  transition: transform 0.2s ease;
}

.photo-thumb-wrap:hover img {
  transform: scale(1.04);
}

.photo-zoom-hint {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(18, 33, 22, 0.78);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  pointer-events: none;
  backdrop-filter: blur(3px);
}

/* 4K 이미지 확대 보기 라이트박스 모달 */
.img-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.img-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 14, 0.85);
  backdrop-filter: blur(5px);
}

.img-zoom-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  background: #17211a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.img-zoom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #111913;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.img-zoom-close {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.img-zoom-close:hover {
  background: #c93b2b;
  border-color: #c93b2b;
}

.img-zoom-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c120e;
  min-height: 420px;
  max-height: 72vh;
  padding: 16px 56px;
}

.img-zoom-body img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.img-zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.img-zoom-nav:hover {
  background: rgba(43, 84, 56, 0.9);
}

.img-zoom-nav.prev {
  left: 12px;
}

.img-zoom-nav.next {
  right: 12px;
}

.img-zoom-footer {
  padding: 14px 20px 18px 20px;
  background: #141d17;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================================= */
/* v8.5 무테두리 단면(Borderless Flat Surface) 디자인 시스템 */
/* ========================================================= */
body {
  background: #f2f4f3;
}

.cat-banner {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 2px 10px rgba(15, 30, 20, 0.035);
}

.card {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 2px 12px rgba(15, 30, 20, 0.04);
}

.form-control {
  background: #f5f7f6;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.form-control:focus {
  background: #ffffff;
  border-color: rgba(43, 107, 56, 0.35);
  box-shadow: 0 0 0 3px rgba(43, 107, 56, 0.1);
}

.topic-chip {
  background: #f4f7f5;
  border: none;
  color: #243b29;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 10px;
  box-shadow: none;
}

.topic-chip.active-chip {
  background: #e1f2e5;
  border: none;
  color: #103c1b;
  font-weight: 700;
  box-shadow: none;
}

.topic-chip:hover {
  background: #1d3524;
  border: none;
  color: #ffffff;
}

.btn-title-polish {
  background: #e4f3e8;
  border: none;
  color: #134620;
  border-radius: 10px;
  box-shadow: none;
}

.btn-title-polish:hover {
  background: #1d3524;
  color: #ffffff;
}

.clean-details {
  background: #f5f7f6;
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
}

.btn-secondary {
  background: #f2f4f3;
  border: none;
  color: #26382a;
  border-radius: 9px;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #e4e9e6;
}

/* AI 화보 스튜디오 단면(Flat Surface) 전용 컴포넌트 */
.flat-studio-panel {
  background: #f5f7f6;
  border: none;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flat-studio-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flat-studio-divider {
  height: 1px;
  background: rgba(20, 40, 25, 0.06);
  margin: 2px 0;
}

.flat-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.flat-row-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e2d22;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flat-subtle-badge {
  font-size: 11px;
  font-weight: 600;
  color: #5b6d60;
  background: rgba(25, 50, 32, 0.06);
  padding: 2px 7px;
  border-radius: 999px;
}

.flat-pill-btn {
  background: #e6ebe8;
  border: none;
  color: #1d3524;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.flat-pill-btn:hover {
  background: #1d3524;
  color: #ffffff;
}

.flat-pill-btn-danger {
  background: rgba(201, 59, 43, 0.1);
  border: none;
  color: #b42318;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.flat-pill-btn-danger:hover {
  background: #c93b2b;
  color: #ffffff;
}

.flat-white-select {
  width: 100%;
  background: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 9px 12px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #1b2a1f !important;
  box-shadow: 0 1px 2px rgba(15, 30, 20, 0.04);
  cursor: pointer;
}

.flat-white-select:focus {
  box-shadow: 0 0 0 2px rgba(29, 53, 36, 0.18) !important;
}

/* 세그먼트 토글 (Toss / Apple 단면 탭 스타일) */
.flat-seg-bar {
  display: inline-flex;
  background: #e7ece9;
  padding: 3px;
  border-radius: 9px;
  gap: 2px;
}

.flat-seg-btn {
  background: transparent;
  border: none;
  color: #526356;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.flat-seg-btn.active {
  background: #ffffff;
  color: #16301d;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.flat-standby-surface {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8f9f8;
  border: none;
  color: #5a6b5e;
  font-size: 12px;
  text-align: center;
  line-height: 1.55;
}

/* 2x2 포토 카드도 선 없이 단면 처리 */
.photo-card-compact {
  background: #f5f7f6;
  border: none;
  border-radius: 13px;
  padding: 11px;
}

.photo-card-compact:hover {
  background: #eef2ef;
  box-shadow: none;
}

.photo-thumb-wrap {
  border: none;
  border-radius: 9px;
}

.flat-card-action-btn {
  background: #ffffff;
  border: none;
  color: #243628;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 6px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: background 0.14s ease;
}

.flat-card-action-btn:hover {
  background: #1d3524;
  color: #ffffff;
}

.naver-editor-frame {
  border: none;
  background: #fafbfa;
  border-radius: 14px;
  padding: 28px 26px;
}

.kpi-mini-pill {
  border: none;
  background: #edf5ef;
}

/* 사이드바 블로그 슬롯 & 모든 버튼 한글 어절 끊김(줄바꿈) 원천 방지 */
button {
  word-break: keep-all;
}

.blog-switcher-box {
  background: #f3f6f4;
  border: none;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 18px;
}

.sidebar-brand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  background: #ffffff;
  border: none;
  color: #1d3524;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 30, 20, 0.05);
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-brand-btn:hover {
  background: #1d3524;
  color: #ffffff;
}

.blog-slot-btn {
  border: none;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.flat-pill-btn,
.flat-pill-btn-danger,
.flat-seg-btn,
.flat-card-action-btn,
#btnHeaderCustomizeBrand,
#btnSwitchAppEnvMode,
#btnOpenCustomerOnboarding,
#btnOpenAuthMemberModal {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ========================================================= */
/* v8.7 상용화 패키지: 사업자 푸터 · 약관/환불 · 로그인 · 결제 UI */
/* ========================================================= */
.commercial-footer {
  margin-top: 36px;
  padding: 22px 26px;
  background: #eaeeec;
  border: none;
  border-radius: 16px;
  color: #4f5f53;
  font-size: 12px;
  line-height: 1.7;
}

.commercial-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(20, 40, 25, 0.08);
}

.footer-policy-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-link-btn {
  background: #ffffff;
  border: none;
  color: #1f3324;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.footer-link-btn.strong {
  font-weight: 800;
  color: #123d1d;
  background: #dcebe0;
}

.footer-link-btn:hover {
  background: #1d3524;
  color: #ffffff;
}

.commercial-modal-dialog {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  color: #1c2b20;
  border: none;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 22, 14, 0.28);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.commercial-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: #f5f7f6;
  border-radius: 18px 18px 0 0;
}

.commercial-modal-body {
  padding: 20px 22px 24px 22px;
}

.legal-doc-box {
  background: #f6f8f7;
  border: none;
  border-radius: 12px;
  padding: 16px 18px;
  max-height: 52vh;
  overflow-y: auto;
  font-size: 12.8px;
  line-height: 1.72;
  color: #2b3a2e;
}

.legal-doc-box h4 {
  margin: 14px 0 6px 0;
  font-size: 13.5px;
  color: #16331d;
}

.legal-doc-box h4:first-child {
  margin-top: 0;
}

.checkout-summary-surface {
  background: #f4f7f5;
  border: none;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.pay-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.pay-method-card {
  background: #f5f7f6;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #2a3b2e;
  cursor: pointer;
  text-align: center;
  transition: all 0.14s ease;
}

.pay-method-card.active {
  background: #e6f3ea;
  border-color: #1d3524;
  color: #113019;
}

.plan-card {
  background: #f6f8f7;
  border: none;
  border-radius: 16px;
}

.plan-card.featured {
  background: #ffffff;
  border: 2px solid #1d3524;
}



