/* ═══════════════════════════════════════════════════════════
   AKETINGMONGO — Design Platform  |  Complete Stylesheet v3.0
═══════════════════════════════════════════════════════════ */
:root {
  --white:    #ffffff;
  --bg:       #ffffff;
  --bg2:      #ebebeb;
  --card:     #ffffff;
  --border:   #e2e0dc;
  --border2:  #ccc9c2;
  --text-1:   #0d0d0d;
  --text-2:   #444440;
  --text-3:   #888880;
  --black:    #0d0d0d;
  --accent:   #1a1a1a;
  --blue:     #3b5bdb;
  --blue-lt:  #eef2ff;
  --green:    #099268;
  --orange:   #e8590c;
  --red:      #e03131;
  --gold:     #c9a84c;
  --hdr-h:    56px;
  --tb-h:     46px;
  --sb-w:     260px;
  --rp-w:     268px;
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px;
  --sh-sm: 0 1px 4px rgba(0,0,0,.07);
  --sh-md: 0 4px 20px rgba(0,0,0,.10);
  --sh-lg: 0 8px 40px rgba(0,0,0,.15);
  --tr: .18s ease;
}
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { font-size:15px; scroll-behavior:smooth }
body {
  font-family:'Noto Sans KR','Inter',-apple-system,sans-serif;
  background:var(--bg); color:var(--text-1);
  min-height:100vh; overflow-x:hidden; line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeSpeed;
}
button { cursor:pointer; font-family:inherit; border:none; background:none }
input,select,textarea { font-family:inherit; outline:none }
::-webkit-scrollbar { width:5px; height:5px }
::-webkit-scrollbar-track { background:transparent }
::-webkit-scrollbar-thumb { background:var(--border2); border-radius:3px }
a { text-decoration:none; color:inherit }
/* GPU 가속 — 슬라이드/패널/모달 */
.ham-sidebar,.search-panel,.modal-box,.bottom-tab-bar {
  will-change:transform;
  transform:translateZ(0);
}

/* ═══════════════════════ SITE HEADER ═══════════════════════ */
.site-header {
  position:fixed; top:0; left:0; right:0; height:var(--hdr-h);
  background:var(--white); border-bottom:1.5px solid var(--border);
  z-index:1000; display:flex; align-items:center;
}
.site-header-inner {
  width:100%; display:flex; align-items:center;
  justify-content:space-between; padding:0 18px; gap:12px;
  overflow:hidden;
}
/* Hamburger */
.hamburger-btn {
  width:36px; height:36px; border-radius:var(--r-sm);
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:5px; transition:var(--tr); flex-shrink:0;
}
.hamburger-btn:hover { background:var(--bg) }
.hamburger-btn span {
  display:block; width:19px; height:2px;
  background:var(--black); border-radius:2px; transition:var(--tr);
}
.hamburger-btn.open span:nth-child(1) { transform:translateY(7px) rotate(45deg) }
.hamburger-btn.open span:nth-child(2) { opacity:0; transform:scaleX(0) }
.hamburger-btn.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg) }

/* Brand logo */
.brand-logo {
  font-family:'Inter',sans-serif; font-size:19px; font-weight:900;
  letter-spacing:3px; color:var(--black); text-transform:uppercase;
  user-select:none; flex-shrink:0; white-space:nowrap;
}
.brand-logo span { color:var(--gold) }

/* Main nav */
.main-nav {
  display:flex; align-items:center; gap:2px;
  background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-lg); padding:4px;
}
.nav-tab {
  padding:6px 14px; border-radius:var(--r-md);
  font-size:12px; font-weight:500; color:#4b5563;
  display:flex; align-items:center; gap:5px;
  transition:var(--tr); white-space:nowrap;
  border:none; background:none; cursor:pointer;
}
.nav-tab i { font-size:11px; color:#6b7280; }
.nav-tab:hover { color:#111827; background:#f3f4f6; }
.nav-tab:hover i { color:#111827; }
.nav-tab.active { background:#111827; color:#fff; }
.nav-tab.active i { color:#fff; }

/* Header right */
.hdr-right {
  display:flex; align-items:center; gap:6px;
  flex-shrink:0; margin-left:auto; min-width:0;
}
.hdr-btn {
  width:34px; height:34px; border-radius:50%;
  color:var(--text-2); font-size:14px;
  display:flex; align-items:center; justify-content:center;
  transition:var(--tr); border:1.5px solid transparent;
  flex-shrink:0;
}
.hdr-btn:hover { background:var(--bg); border-color:var(--border) }

/* 아이콘만 있는 헤더 버튼 */
.hdr-icon-btn {
  width:36px; height:36px; border-radius:50%;
  color:var(--text-2); font-size:15px;
  display:flex; align-items:center; justify-content:center;
  transition:var(--tr); border:none; background:none;
  cursor:pointer; flex-shrink:0;
}
.hdr-icon-btn:hover { background:var(--bg2) }

/* 텍스트+아이콘 헤더 버튼 */
.hdr-text-btn {
  display:flex; align-items:center; gap:5px;
  padding:7px 14px; border-radius:var(--r-md);
  background:var(--black); color:#fff;
  font-size:12px; font-weight:600;
  border:none; cursor:pointer; transition:var(--tr);
  white-space:nowrap; flex-shrink:0;
}
.hdr-text-btn:hover { background:#333; transform:translateY(-1px) }

/* 태블릿에서 텍스트 버튼 숨기기 */
@media(max-width:900px) {
  .hdr-text-btn span { display:none }
  .hdr-text-btn { padding:7px 10px }
}

.hdr-btn-primary {
  padding:0 14px; height:34px; border-radius:var(--r-md);
  background:var(--black); color:#fff; font-size:12px; font-weight:600;
  display:flex; align-items:center; gap:5px; transition:var(--tr);
}
.hdr-btn-primary:hover { background:#333 }

/* ═══════════════════════ HAMBURGER SIDEBAR ═══════════════════════ */
.ham-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  backdrop-filter:blur(4px); z-index:1800;
  opacity:0; pointer-events:none; transition:opacity .25s;
}
.ham-overlay.open { opacity:1; pointer-events:all }
.ham-sidebar {
  position:fixed; top:0; left:-400px; width:380px; height:100vh;
  background:var(--white); border-right:1.5px solid var(--border);
  z-index:1900; transition:left .3s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column; overflow:hidden;
}
.ham-sidebar.open { left:0 }
.ham-top {
  height:var(--hdr-h); display:flex; align-items:center;
  justify-content:space-between; padding:0 20px;
  border-bottom:1.5px solid var(--border); flex-shrink:0;
}
.ham-logo { font-size:17px; font-weight:900; letter-spacing:2px }
.ham-close {
  width:30px; height:30px; border-radius:50%;
  background:var(--bg); border:1.5px solid var(--border);
  color:var(--text-2); font-size:13px;
  display:flex; align-items:center; justify-content:center; transition:var(--tr);
}
.ham-close:hover { background:var(--bg2) }
.ham-body { flex:1; overflow-y:auto; padding:0 }
.ham-section { border-bottom:1px solid var(--border) }
.ham-section-title {
  padding:14px 20px 8px; font-size:9px; font-weight:700;
  color:var(--text-3); text-transform:uppercase; letter-spacing:1.5px;
}
.ham-item {
  display:flex; align-items:center; gap:12px; padding:11px 20px;
  font-size:13px; color:var(--text-2); cursor:pointer; transition:var(--tr);
}
.ham-item:hover { background:var(--bg); color:var(--text-1) }
.ham-item.active { color:var(--black); font-weight:600; background:var(--bg) }
.ham-item i { width:18px; text-align:center; color:var(--text-3); font-size:14px }
.ham-item.active i { color:var(--black) }
.ham-item-badge {
  margin-left:auto; font-size:9px; font-weight:700;
  padding:2px 7px; border-radius:20px;
}
.badge-new { background:#ecfdf5; color:var(--green) }
.badge-hot { background:#fff7ed; color:var(--orange) }
.badge-pro { background:var(--blue-lt); color:var(--blue) }

/* Feature cards inside sidebar */
.ham-feature-cards { padding:12px 16px; display:flex; flex-direction:column; gap:8px }
.hfc {
  background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-md); padding:12px 14px; cursor:pointer; transition:var(--tr);
}
.hfc:hover { border-color:var(--black); background:var(--white) }
.hfc-top { display:flex; align-items:center; gap:8px; margin-bottom:5px }
.hfc-icon { font-size:18px; width:28px; text-align:center }
.hfc-title { font-size:12px; font-weight:700; color:var(--text-1) }
.hfc-badge {
  margin-left:auto; font-size:9px; font-weight:600;
  padding:2px 7px; border-radius:10px; background:var(--black); color:#fff;
}
.hfc-desc { font-size:10px; color:var(--text-3); line-height:1.5; padding-left:36px }

/* Pricing table inside sidebar */
.ham-price-table { padding:12px 16px }
.hpt-group { margin-bottom:14px }
.hpt-group-title { font-size:10px; font-weight:700; color:var(--text-2); margin-bottom:7px }
.hpt-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 10px; background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-sm); margin-bottom:4px; font-size:11px; transition:var(--tr);
}
.hpt-row:hover { border-color:var(--border2) }
.hpt-name { color:var(--text-2); flex:1 }
.hpt-price { font-weight:700; color:var(--black) }
.hpt-desc { font-size:9px; color:var(--text-3) }

/* ── 서브메뉴 아이템 (새 메뉴 구조) ── */
.ham-sub-items { padding:4px 12px 10px 16px; display:flex; flex-direction:column; gap:2px; }
.ham-sub-item {
  display:flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:8px;
  cursor:pointer; font-size:12px; color:var(--text-2);
  transition:background .15s, color .15s;
}
.ham-sub-item:hover { background:var(--bg); color:var(--text-1); }
.hsi-icon { font-size:14px; flex-shrink:0; width:22px; text-align:center; }
.hsi-label { flex:1; font-weight:500; line-height:1.3; }
.hsi-price { font-size:10px; color:var(--text-3); font-weight:600; white-space:nowrap; margin-left:4px; }
.hsi-badge { flex-shrink:0; }

/* ── 섹션 타이틀 (더 굵게) ── */
.ham-section-title {
  padding:14px 20px 6px !important;
  font-size:10px; font-weight:800;
  color:var(--text-3); text-transform:uppercase; letter-spacing:1.2px;
}

/* ── acc-title 링크형 서브헤더 ── */
.ham-acc-title:hover { background:var(--bg); }

/* ── 섹션 구분 강조 ── */
.ham-section:nth-child(odd) .ham-section-title { color:var(--text-2); }

/* Subscription cards */
.ham-sub-cards { padding:12px 16px; display:flex; gap:8px }
.sub-card {
  flex:1; border:1.5px solid var(--border); border-radius:var(--r-md);
  padding:12px; text-align:center; cursor:pointer; transition:var(--tr);
}
.sub-card:hover { border-color:var(--black) }
.sub-card.featured { border-color:var(--gold); background:#fffbf0 }
.sub-card-label { font-size:9px; font-weight:700; color:var(--text-3); margin-bottom:4px }
.sub-card-price { font-size:18px; font-weight:900; color:var(--black); margin-bottom:2px }
.sub-card-sub { font-size:9px; color:var(--text-3); margin-bottom:8px }
.sub-card-badge {
  display:inline-block; font-size:9px; font-weight:700;
  padding:2px 8px; border-radius:10px;
  background:var(--gold); color:#fff; margin-bottom:8px;
}
.sub-card-btn {
  width:100%; padding:7px; border-radius:var(--r-sm);
  font-size:11px; font-weight:600; cursor:pointer; transition:var(--tr);
}
.sub-card-btn-outline { border:1.5px solid var(--border2); color:var(--text-1); background:none }
.sub-card-btn-outline:hover { border-color:var(--black) }
.sub-card-btn-filled { border:none; background:var(--black); color:#fff }
.sub-card-btn-filled:hover { background:#333 }
.sub-card-perks { list-style:none; text-align:left; margin-top:10px; display:flex; flex-direction:column; gap:4px }
.sub-card-perks li { font-size:10px; color:var(--text-3); display:flex; align-items:center; gap:5px }
.sub-card-perks li i { color:var(--green); font-size:9px }

/* ═══════════════════════ SUBSCRIPTION 4-TIER ═══════════════════════ */
/* 레거시 2-card 스타일 유지 (다른 곳 참조용) */
.ham-sub-cards { padding:12px 16px; display:flex; gap:8px }
.sub-card {
  flex:1; border:1.5px solid var(--border); border-radius:var(--r-md);
  padding:12px; text-align:center; cursor:pointer; transition:var(--tr);
}
.sub-card:hover { border-color:var(--black) }
.sub-card.featured { border-color:var(--gold); background:#fffbf0 }
.sub-card-label { font-size:9px; font-weight:700; color:var(--text-3); margin-bottom:4px }
.sub-card-price { font-size:18px; font-weight:900; color:var(--black); margin-bottom:2px }
.sub-card-sub { font-size:9px; color:var(--text-3); margin-bottom:8px }
.sub-card-badge {
  display:inline-block; font-size:9px; font-weight:700;
  padding:2px 8px; border-radius:10px;
  background:var(--gold); color:#fff; margin-bottom:8px;
}
.sub-card-btn {
  width:100%; padding:7px; border-radius:var(--r-sm);
  font-size:11px; font-weight:600; cursor:pointer; transition:var(--tr);
}
.sub-card-btn-outline { border:1.5px solid var(--border2); color:var(--text-1); background:none }
.sub-card-btn-outline:hover { border-color:var(--black) }
.sub-card-btn-filled { border:none; background:var(--black); color:#fff }
.sub-card-btn-filled:hover { background:#333 }
.sub-card-perks { list-style:none; text-align:left; margin-top:10px; display:flex; flex-direction:column; gap:4px }
.sub-card-perks li { font-size:10px; color:var(--text-3); display:flex; align-items:center; gap:5px }
.sub-card-perks li i { color:var(--green); font-size:9px }

/* ── 4-Tier 카드 그리드 ── */
.tier-cards {
  display:grid; grid-template-columns:1fr 1fr;
  gap:10px; padding:12px 14px;
}
.tier-card {
  border:1.5px solid var(--border); border-radius:var(--r-lg);
  overflow:hidden; transition:var(--tr); position:relative;
  background:var(--white);
}
.tier-card:hover { border-color:var(--border2); box-shadow:var(--sh-md); transform:translateY(-2px) }
.tier-card-featured {
  border-color:#7c3aed !important;
  box-shadow:0 0 0 2px #7c3aed40;
}
.tier-card-featured:hover { box-shadow:0 4px 20px #7c3aed30 !important }

/* Tier 헤더 */
.tier-head {
  padding:12px 12px 8px; text-align:center;
}
.tier-head-free    { background:linear-gradient(135deg,#f3f4f6,#e5e7eb) }
.tier-head-basic   { background:linear-gradient(135deg,#eff6ff,#dbeafe) }
.tier-head-creator { background:linear-gradient(135deg,#f5f3ff,#ede9fe) }
.tier-head-pro     { background:linear-gradient(135deg,#0d0d0d,#2d2d2d) }

.tier-name-en {
  font-size:9px; font-weight:900; letter-spacing:2px;
  color:var(--text-3); margin-bottom:4px;
}
.tier-head-pro .tier-name-en { color:rgba(255,255,255,.5) }

.tier-price-row { display:flex; align-items:baseline; justify-content:center; gap:3px }
.tier-price {
  font-size:20px; font-weight:900; color:var(--black);
}
.tier-head-pro .tier-price { color:#fff }
.tier-head-creator .tier-price { color:#7c3aed }
.tier-head-basic .tier-price { color:#3b82f6 }
.tier-period { font-size:9px; color:var(--text-3) }
.tier-head-pro .tier-period { color:rgba(255,255,255,.4) }

.tier-tagline {
  font-size:9px; font-weight:600; color:var(--text-3);
  margin-top:4px;
}
.tier-head-pro .tier-tagline { color:rgba(255,255,255,.55) }

/* Tier 혜택 목록 */
.tier-perks {
  list-style:none; padding:10px 12px; display:flex;
  flex-direction:column; gap:5px; min-height:130px;
}
.tier-perks li { font-size:10px; display:flex; align-items:flex-start; gap:5px; line-height:1.3 }
.tier-perks li i { font-size:9px; flex-shrink:0; margin-top:1px }
.tier-perks li.ok { color:var(--text-1) }
.tier-perks li.ok i { color:#22c55e }
.tier-perks li.no { color:var(--text-3) }
.tier-perks li.no i { color:#d1d5db }

/* Tier BEP 메모 */
.tier-bep {
  margin:0 12px 6px; padding:5px 8px;
  background:#eff6ff; border-radius:var(--r-sm);
  font-size:9px; color:#1d4ed8; font-weight:600;
}

/* Tier 버튼 */
.tier-btn {
  width:calc(100% - 24px); margin:4px 12px 12px;
  padding:8px; border-radius:var(--r-sm);
  font-size:11px; font-weight:700; cursor:pointer; transition:var(--tr);
  text-align:center;
}
.tier-btn-outline { border:1.5px solid var(--border2); color:var(--text-1); background:none }
.tier-btn-outline:hover { border-color:var(--black) }
.tier-btn-creator { border:none; background:linear-gradient(135deg,#7c3aed,#a855f7); color:#fff }
.tier-btn-creator:hover { opacity:.88; transform:translateY(-1px) }
.tier-btn-dark { border:none; background:#0d0d0d; color:#fff }
.tier-btn-dark:hover { background:#333 }

/* Featured 뱃지 */
.tier-badge-wrap {
  position:absolute; top:8px; right:8px; z-index:1;
}
.tier-feat-badge {
  background:linear-gradient(135deg,#7c3aed,#a855f7);
  color:#fff; font-size:8px; font-weight:800;
  padding:2px 7px; border-radius:10px;
  display:inline-block;
}

/* 비교 테이블 */
.tier-compare { padding:4px 14px 14px }
.tier-compare-title {
  font-size:10px; font-weight:700; color:var(--text-2);
  margin-bottom:8px;
}
.tier-table {
  width:100%; border-collapse:collapse; font-size:10px;
}
.tier-table th, .tier-table td {
  padding:5px 6px; text-align:center;
  border-bottom:1px solid var(--border);
}
.tier-table th { font-weight:700; color:var(--text-3); font-size:9px }
.tier-table td:first-child { text-align:left; font-weight:600; color:var(--text-1) }
.tier-table tr.tc-hl td { background:#f5f3ff; color:#7c3aed; font-weight:700 }

.tier-card-active {
  border-color:#7c3aed !important;
  box-shadow:0 0 0 2px #7c3aed40 !important;
  background:#faf5ff !important;
}
.tier-card[data-tier="free"].tier-card-active  { border-color:#6b7280 !important; box-shadow:0 0 0 2px #6b728040 !important; background:#f9fafb !important }
.tier-card[data-tier="basic"].tier-card-active { border-color:#3b82f6 !important; box-shadow:0 0 0 2px #3b82f640 !important; background:#eff6ff !important }
.tier-card[data-tier="pro"].tier-card-active   { border-color:#0d0d0d !important; box-shadow:0 0 0 2px rgba(0,0,0,.25) !important }
.hpt-row-sub .hpt-name { font-size:9px; color:var(--text-3); padding-left:8px }
.hpt-row-sub .hpt-price { font-size:10px; color:var(--text-3) }

/* 주문 요약 Tier 뱃지 */
.sum-tier-badge {
  display:flex; align-items:center; gap:6px;
  background:var(--bg); border-radius:var(--r-sm);
  padding:7px 10px; margin-bottom:10px;
  border:1px solid var(--border);
  font-size:11px; font-weight:600;
}
.sum-tier-discount {
  margin-left:auto; font-size:10px; font-weight:700;
  color:#22c55e; background:#f0fdf4;
  padding:2px 6px; border-radius:8px;
}
.sum-row-discount span { font-size:11px }
.sum-upgrade-hint {
  font-size:10px; color:var(--text-3); text-align:center; margin-top:8px;
}
.sum-upgrade-hint a { color:#7c3aed; cursor:pointer; font-weight:600; text-decoration:underline }
.editor-toolbar {
  position:fixed; top:var(--hdr-h); left:0; right:0; height:var(--tb-h);
  background:var(--white); border-bottom:1.5px solid var(--border);
  z-index:900; display:none !important; align-items:center; padding:0 14px; gap:8px;
  overflow-x:auto; overflow-y:hidden;
}
.editor-toolbar.visible {
  display:flex !important;
}
.editor-toolbar::-webkit-scrollbar { height:0 }
.editor-section { display:none }
.editor-section.active { display:flex }

/* ── 툴바 우측 저장/내보내기 버튼 ── */
.tb-right-actions { margin-left:auto; display:flex; align-items:center; gap:6px; flex-shrink:0 }
.tb-save-quick-btn {
  display:flex; align-items:center; gap:6px;
  padding:7px 14px; background:#0d0d0d; color:#fff;
  border-radius:8px; font-size:12px; font-weight:700;
  transition:all .18s; white-space:nowrap; flex-shrink:0;
}
.tb-save-quick-btn:hover { background:#333; transform:translateY(-1px); box-shadow:0 3px 10px rgba(0,0,0,.2) }
.tb-save-quick-btn i { font-size:12px }
.tb-export-quick-btn {
  display:flex; align-items:center; gap:6px;
  padding:7px 14px; background:#fff; color:var(--text-1);
  border:1.5px solid var(--border2); border-radius:8px;
  font-size:12px; font-weight:600; transition:all .18s; white-space:nowrap; flex-shrink:0;
}
.tb-export-quick-btn:hover { border-color:var(--black); background:var(--bg); transform:translateY(-1px) }
.tb-export-quick-btn i { font-size:12px; color:var(--blue) }

.tb-group { display:flex; align-items:center; gap:2px }
.tb-sep { width:1px; height:24px; background:var(--border); flex-shrink:0; margin:0 4px }
.tb-sep-v { width:1px; height:20px; background:var(--border); margin:0 3px }

.tb-btn {
  width:32px; height:32px; border-radius:var(--r-sm);
  color:var(--text-2); font-size:13px; font-weight:700;
  display:flex; align-items:center; justify-content:center; transition:var(--tr);
  flex-shrink:0;
}
.tb-btn:hover { background:var(--bg2); color:var(--text-1) }
.tb-btn.active { background:var(--black); color:#fff }

.zoom-display {
  background:var(--bg); border:1.5px solid var(--border); border-radius:var(--r-sm);
  padding:0 8px; height:28px; min-width:52px; display:flex; align-items:center; justify-content:center;
}
.zoom-display span { font-size:11px; font-weight:600; color:var(--text-2) }
.tb-select {
  height:28px; background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-sm); color:var(--text-1); padding:0 6px;
  font-size:11px; cursor:pointer; flex-shrink:0;
}
.tb-num {
  width:48px; height:28px; background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-sm); color:var(--text-1); padding:0 6px;
  font-size:11px; text-align:center;
}
.font-sel { min-width:130px }
.ctx-fmt-btn {
  width:28px; height:28px; border-radius:var(--r-xs);
  color:var(--text-2); font-size:12px;
  display:flex; align-items:center; justify-content:center; transition:var(--tr);
}
.ctx-fmt-btn:hover { background:var(--bg2) }
.ctx-fmt-btn.active { background:var(--bg2); color:var(--black) }
.ctx-btn {
  width:28px; height:28px; border-radius:var(--r-xs);
  color:var(--text-2); font-size:12px;
  display:flex; align-items:center; justify-content:center; transition:var(--tr);
}
.ctx-btn:hover { background:var(--bg2) }
.ctx-del:hover { background:#fef2f2; color:var(--red) }
.ctx-label { font-size:10px; color:var(--text-3); white-space:nowrap }
#ctxColor { width:28px; height:28px; border:1.5px solid var(--border); border-radius:var(--r-sm); cursor:pointer; padding:2px }
.ctx-text-opts { display:flex; align-items:center; gap:3px }

/* ═══════════════════════ MAIN WRAPPER ═══════════════════════ */
.main-wrapper {
  margin-top:var(--hdr-h);
  min-height:calc(100vh - var(--hdr-h));
  transition: margin-top .15s ease;
  width:100%;
  overflow-x:hidden;
}
.app-section { display:none !important }
.app-section.active { display:block !important }

/* ═══════════════════════ EDITOR LAYOUT ═══════════════════════ */
#sec-editor.active { display:block !important }
.editor-body {
  display:grid;
  grid-template-columns:var(--sb-w) 1fr var(--rp-w);
  height:calc(100vh - var(--hdr-h) - var(--tb-h));
  overflow:hidden;
  min-height:600px;
}

/* ─── LEFT SIDEBAR ─── */
.left-sb {
  background:var(--white); border-right:1.5px solid var(--border);
  display:flex; flex-direction:column; overflow:hidden;
}
.sb-icon-tabs {
  display:flex; border-bottom:1.5px solid var(--border); flex-shrink:0;
}
.sbt {
  flex:1; padding:10px 4px 8px;
  display:flex; flex-direction:column; align-items:center; gap:3px;
  color:var(--text-3); font-size:9px; font-weight:500;
  transition:var(--tr); border-bottom:2.5px solid transparent;
}
.sbt i { font-size:15px }
.sbt:hover { color:var(--text-2); background:var(--bg) }
.sbt.active { color:var(--black); border-bottom-color:var(--black) }

.sb-panels { flex:1; overflow:hidden; position:relative }
.sb-panel { display:none; height:100%; overflow-y:auto; padding:12px }
.sb-panel.active { display:block }
.sb-panel-title { font-size:13px; font-weight:700; margin-bottom:12px; color:var(--text-1) }
.sb-sec-label {
  font-size:9px; font-weight:700; color:var(--text-3);
  text-transform:uppercase; letter-spacing:1px; margin:10px 0 6px;
}
.sb-divider { height:1px; background:var(--border); margin:12px 0 }
.sb-search {
  display:flex; align-items:center; gap:6px;
  background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-md); padding:7px 10px; margin-bottom:10px;
}
.sb-search i { color:var(--text-3); font-size:11px; flex-shrink:0 }
.sb-search input { background:none; border:none; color:var(--text-1); font-size:12px; width:100% }
.sb-search input::placeholder { color:var(--text-3) }

/* Category pills */
.cat-scroll { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:10px }
.cat-pill {
  padding:4px 10px; border-radius:20px; font-size:10px; font-weight:500;
  background:var(--bg); border:1.5px solid var(--border); color:var(--text-2);
  transition:var(--tr); white-space:nowrap;
}
.cat-pill:hover { background:var(--bg2) }
.cat-pill.active { background:var(--black); color:#fff; border-color:var(--black) }

/* Template grid */
.tpl-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px }
.tpl-card {
  border-radius:var(--r-md); overflow:hidden;
  border:1.5px solid var(--border); cursor:pointer;
  transition:var(--tr); background:var(--white);
}
.tpl-card:hover { border-color:var(--border2); box-shadow:var(--sh-md); transform:translateY(-1px) }
.tpl-card.selected { border-color:var(--black); box-shadow:0 0 0 2px var(--black) }
.tpl-thumb { width:100%; aspect-ratio:3/4; position:relative; overflow:hidden }
.tpl-card[data-cat="goods"] .tpl-thumb,
.tpl-thumb.goods-thumb { aspect-ratio:1/1 }

/* 굿즈 카드 하단 이름+가격 행 */
.tpl-name-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:5px 8px; gap:4px;
}
.tpl-price-tag {
  font-size:9px; font-weight:800; color:#e0005c;
  background:rgba(224,0,92,.08); border-radius:8px;
  padding:2px 6px; white-space:nowrap; flex-shrink:0;
}
/* 굿즈 뱃지 (HOT/NEW/PREMIUM) */
.tpl-goods-badge {
  position:absolute; top:5px; right:5px;
  font-size:7px; font-weight:800; padding:2px 5px; border-radius:3px;
  color:#fff; letter-spacing:.5px; z-index:2;
}
.tpl-badge-hot     { background:#ff3366 }
.tpl-badge-new     { background:#0ea5e9 }
.tpl-badge-premium { background:#a855f7 }
.tpl-cat-badge {
  position:absolute; top:4px; left:4px;
  background:rgba(0,0,0,.72); color:#fff;
  font-size:7px; font-weight:700; padding:2px 5px; border-radius:3px;
}
.tpl-name { padding:5px 8px; font-size:10px; font-weight:500; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.tpl-name-row .tpl-name { padding:0; flex:1; min-width:0; }

/* Photos panel */
.img-drop-zone {
  border:2px dashed var(--border2); border-radius:var(--r-md);
  padding:18px 12px; text-align:center; cursor:pointer; transition:var(--tr);
  margin-bottom:12px;
}
.img-drop-zone:hover { border-color:var(--black); background:var(--bg) }
.img-drop-zone i { font-size:24px; color:var(--text-3); margin-bottom:6px; display:block }
.img-drop-zone p { font-size:11px; color:var(--text-3); margin-bottom:8px; line-height:1.4 }
.uploaded-imgs { display:grid; grid-template-columns:repeat(3,1fr); gap:5px }
.uimg-item {
  aspect-ratio:1; border-radius:var(--r-sm); overflow:hidden;
  cursor:pointer; border:1.5px solid var(--border); transition:var(--tr);
  position:relative;
}
.uimg-item:hover { border-color:var(--black); transform:scale(1.03) }
.uimg-item img { width:100%; height:100%; object-fit:cover }
.uimg-add-btn {
  aspect-ratio:1; border-radius:var(--r-sm); border:2px dashed var(--border2);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:var(--tr); color:var(--text-3); font-size:18px;
}
.uimg-add-btn:hover { border-color:var(--black); color:var(--black) }

/* Color grid */
.color-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:5px }
.cg-item {
  aspect-ratio:1; border-radius:var(--r-sm); cursor:pointer;
  border:1.5px solid rgba(0,0,0,.08); transition:var(--tr);
}
.cg-item:hover { transform:scale(1.12); box-shadow:var(--sh-sm) }
.cg-custom {
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#f00,#ff0,#0f0,#0ff,#00f,#f0f);
  color:#fff; font-size:12px;
}

/* Text panel */
.text-add-section { display:flex; flex-direction:column; gap:5px; margin-bottom:4px }
.text-add-btn {
  width:100%; padding:10px 12px; border-radius:var(--r-md);
  border:1.5px solid var(--border); background:var(--white);
  text-align:left; cursor:pointer; transition:var(--tr);
}
.text-add-btn:hover { border-color:var(--black); background:var(--bg) }
.font-list { display:flex; flex-direction:column; gap:4px }
.font-item {
  padding:8px 10px; border-radius:var(--r-sm);
  border:1.5px solid var(--border); background:var(--white);
  cursor:pointer; font-size:12px; transition:var(--tr); color:var(--text-1);
}
.font-item:hover { border-color:var(--black); background:var(--bg) }
.font-item.active { border-color:var(--black); background:var(--bg) }
.font-drop-zone {
  border:2px dashed var(--border2); border-radius:var(--r-md);
  padding:14px; text-align:center; cursor:pointer; transition:var(--tr);
}
.font-drop-zone:hover { border-color:var(--black) }
.font-drop-zone i { font-size:20px; color:var(--text-3); margin-bottom:5px; display:block }
.font-drop-zone p { font-size:10px; color:var(--text-3); margin-bottom:8px }
.custom-font-list { display:flex; flex-direction:column; gap:4px; margin-top:8px }
.custom-font-item {
  display:flex; align-items:center; gap:8px; padding:7px 10px;
  background:var(--bg); border:1.5px solid var(--border); border-radius:var(--r-sm);
  cursor:pointer; font-size:11px; transition:var(--tr);
}
.custom-font-item:hover { border-color:var(--black) }
.custom-font-item i { color:var(--text-3); font-size:11px }

/* Elements panel */
.shape-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-bottom:8px }
.shape-btn {
  aspect-ratio:1; border:1.5px solid var(--border); border-radius:var(--r-sm);
  background:var(--white); cursor:pointer; transition:var(--tr);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  font-size:10px; color:var(--text-2);
}
.shape-btn:hover { border-color:var(--black); background:var(--bg) }
.sh-ico { font-size:20px; line-height:1 }
.rect-ico { width:22px; height:14px; background:var(--text-2); border-radius:2px }
.circle-ico { width:18px; height:18px; background:var(--text-2); border-radius:50% }
.tri-ico { width:0; height:0; border-left:10px solid transparent; border-right:10px solid transparent; border-bottom:18px solid var(--text-2) }
.line-ico { width:22px; height:3px; background:var(--text-2); border-radius:2px }
.sticker-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:5px }
.sticker-btn {
  aspect-ratio:1; font-size:20px; border:1.5px solid var(--border);
  border-radius:var(--r-sm); background:var(--white); cursor:pointer; transition:var(--tr);
  display:flex; align-items:center; justify-content:center;
}
.sticker-btn:hover { border-color:var(--black); transform:scale(1.1) }

/* Upload panel */
.upload-zone {
  border:2px dashed var(--border2); border-radius:var(--r-md);
  padding:18px 12px; text-align:center; cursor:pointer; transition:var(--tr);
}
.upload-zone:hover { border-color:var(--black); background:var(--bg) }
.upload-zone i { font-size:24px; color:var(--text-3); margin-bottom:6px; display:block }
.upload-zone p { font-size:11px; color:var(--text-3); margin-bottom:6px; line-height:1.4 }
.upload-hint { font-size:10px; color:var(--text-3); display:block; margin-bottom:8px }
.big-upload { padding:22px 12px }
.big-upload i { font-size:32px }

/* ─── CANVAS AREA ─── */
.canvas-area {
  background:#1e1e22; display:flex; flex-direction:column; overflow:hidden;
}
.page-tabs-wrap {
  display:flex; align-items:center; gap:6px;
  background:rgba(30,30,34,.95); border-bottom:1px solid rgba(255,255,255,.07);
  padding:7px 14px; flex-shrink:0; overflow-x:auto;
}
.page-tabs-wrap::-webkit-scrollbar { height:0 }
.page-tabs { display:flex; gap:4px; align-items:center }
.pg-tab {
  padding:5px 12px; border-radius:var(--r-sm);
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.55); font-size:11px; font-weight:500;
  transition:var(--tr); white-space:nowrap; cursor:pointer;
}
.pg-tab:hover { background:rgba(255,255,255,.12); color:rgba(255,255,255,.8) }
.pg-tab.active { background:rgba(255,255,255,.18); color:#fff; border-color:rgba(255,255,255,.25) }
.pg-add-btn {
  padding:5px 10px; border-radius:var(--r-sm);
  background:rgba(255,255,255,.06); border:1px dashed rgba(255,255,255,.2);
  color:rgba(255,255,255,.45); font-size:11px; font-weight:500;
  transition:var(--tr); white-space:nowrap; flex-shrink:0;
}
.pg-add-btn:hover { background:rgba(255,255,255,.12); color:rgba(255,255,255,.75) }

.canvas-viewport {
  flex:1; overflow:auto; display:flex; align-items:flex-start;
  justify-content:center; padding:32px;
}
.canvas-stage { position:relative; display:inline-block }
#fabricCanvas { display:block }
.canvas-stage .canvas-container {
  box-shadow:0 8px 40px rgba(0,0,0,.55); border-radius:2px;
}

.canvas-bottombar {
  background:rgba(26,26,30,.96); border-top:1px solid rgba(255,255,255,.07);
  padding:8px 16px; display:flex; align-items:center; justify-content:space-between;
  flex-shrink:0;
}
.cb-hint { font-size:11px; color:rgba(255,255,255,.4) }
.cb-zoom { display:flex; align-items:center; gap:8px }
.cbz-btn {
  width:26px; height:26px; border-radius:var(--r-sm);
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.7); font-size:16px; font-weight:700;
  display:flex; align-items:center; justify-content:center; transition:var(--tr); line-height:1;
}
.cbz-btn:hover { background:rgba(255,255,255,.15); color:#fff }
.zoom-slider {
  -webkit-appearance:none; width:100px; height:3px;
  background:rgba(255,255,255,.2); border-radius:2px; outline:none;
}
.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance:none; width:13px; height:13px;
  border-radius:50%; background:#fff; cursor:pointer;
  box-shadow:0 1px 4px rgba(0,0,0,.4);
}
.cbz-val { font-size:11px; font-weight:600; color:rgba(255,255,255,.6); min-width:36px }

/* ─── RIGHT PROPERTIES ─── */
.right-props {
  background:var(--white); border-left:1.5px solid var(--border);
  overflow-y:auto; display:flex; flex-direction:column; gap:0;
}
.rp-card { border-bottom:1.5px solid var(--border) }
.rp-card-title {
  padding:11px 14px; font-size:11px; font-weight:700; color:var(--text-2);
  display:flex; align-items:center; justify-content:space-between; gap:6px;
}
.rp-card-title i { color:var(--blue); margin-right:2px }
.rp-title-btn {
  width:24px; height:24px; border-radius:var(--r-xs);
  background:var(--bg); border:1.5px solid var(--border);
  color:var(--text-3); font-size:10px;
  display:flex; align-items:center; justify-content:center; transition:var(--tr);
}
.rp-title-btn:hover { color:var(--red); border-color:var(--red) }
.rp-card-body { padding:6px 14px 14px }
.prop-section-label { font-size:9px; font-weight:700; color:var(--text-3); text-transform:uppercase; letter-spacing:.5px; margin:8px 0 6px }
.prop-row { display:flex; gap:8px; margin-bottom:6px }
.prop-field { display:flex; flex-direction:column; gap:3px; flex:1; min-width:0 }
.prop-field label { font-size:9px; color:var(--text-3); font-weight:600 }
.prop-field-full { flex:none; width:100% }
.prop-input {
  width:100%; height:28px; background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-sm); color:var(--text-1); padding:0 7px; font-size:11px;
  transition:var(--tr);
}
.prop-input:focus { border-color:var(--black) }
.prop-color { width:100%; height:28px; border:1.5px solid var(--border); border-radius:var(--r-sm); cursor:pointer; padding:2px }
.prop-select {
  width:100%; height:28px; background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-sm); color:var(--text-1); padding:0 6px; font-size:11px;
}
.prop-divider { height:1px; background:var(--border); margin:10px 0 }
.fmt-row { flex-wrap:wrap; gap:4px }
.fmt-btn {
  width:27px; height:27px; border-radius:var(--r-xs);
  border:1.5px solid var(--border); background:var(--white);
  color:var(--text-2); font-size:11px;
  display:flex; align-items:center; justify-content:center; transition:var(--tr);
}
.fmt-btn:hover { border-color:var(--black) }
.fmt-btn.active { background:var(--black); color:#fff; border-color:var(--black) }
.fmt-sep { width:1px; height:22px; background:var(--border) }

/* Layer list */
.layer-list { padding:6px; max-height:200px; overflow-y:auto }
.layer-item {
  display:flex; align-items:center; gap:7px; padding:6px 8px;
  border-radius:var(--r-sm); font-size:11px; cursor:pointer;
  transition:var(--tr); color:var(--text-2);
}
.layer-item:hover { background:var(--bg) }
.layer-item.active { background:var(--bg2); color:var(--text-1); font-weight:600 }
.layer-item i { font-size:12px; color:var(--text-3); width:14px; text-align:center }
.layer-item .li-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.layer-item .li-vis { margin-left:auto; opacity:0; transition:var(--tr) }
.layer-item:hover .li-vis { opacity:1 }
.layer-empty { font-size:11px; color:var(--text-3); text-align:center; padding:16px 8px }

/* Page settings */
.btn-outline-full {
  width:100%; padding:8px; border-radius:var(--r-sm);
  border:1.5px solid var(--border2); background:none; color:var(--text-1);
  font-size:11px; font-weight:600; cursor:pointer; transition:var(--tr);
  display:flex; align-items:center; justify-content:center; gap:5px; margin-top:6px;
}
.btn-outline-full:hover { border-color:var(--black); background:var(--bg) }

/* ── 에디터 오른쪽 패널 – 파일 관리 & 저장 카드 ── */
.rp-action-card {
  padding:14px;
  display:flex; flex-direction:column; gap:8px;
}
.rp-action-label {
  font-size:10px; font-weight:700; color:var(--text-3);
  text-transform:uppercase; letter-spacing:.5px;
  display:flex; align-items:center; gap:5px; margin-bottom:2px;
}
.rp-action-label i { color:var(--blue); font-size:11px }

/* 파일 추가 버튼 */
.rp-file-add-btn {
  width:100%; padding:10px 12px;
  background:linear-gradient(135deg,#f0f7ff 0%,#e8f4ff 100%);
  border:1.5px dashed #4a90d9;
  border-radius:10px;
  color:#1a6bb5; font-size:12px; font-weight:700;
  cursor:pointer; transition:all .18s;
  display:flex; align-items:center; gap:8px;
}
.rp-file-add-btn:hover {
  background:linear-gradient(135deg,#4a90d9 0%,#1a6bb5 100%);
  border-color:#1a6bb5; color:#fff; border-style:solid;
}
.rp-file-add-btn i { font-size:16px; flex-shrink:0 }
.rp-file-add-btn span:first-of-type { flex:1; text-align:left }
.rp-file-hint {
  font-size:9px; font-weight:400; opacity:.7;
  background:rgba(255,255,255,.5); padding:2px 5px; border-radius:4px;
  white-space:nowrap;
}
.rp-file-add-btn:hover .rp-file-hint { background:rgba(255,255,255,.2) }

.rp-action-divider {
  height:1px; background:var(--border); margin:2px 0;
}

/* 저장 버튼 */
.rp-save-btn {
  width:100%; padding:10px 12px;
  background:#0d0d0d; color:#fff;
  border:none; border-radius:10px;
  font-size:12px; font-weight:700; cursor:pointer; transition:all .18s;
  display:flex; align-items:center; justify-content:center; gap:7px;
}
.rp-save-btn:hover { background:#333; transform:translateY(-1px); box-shadow:0 3px 10px rgba(0,0,0,.2) }
.rp-save-btn i { font-size:13px }

/* PNG / JPG 내보내기 버튼 */
.rp-export-btn {
  width:100%; padding:9px 12px;
  background:#fff; color:var(--text-1);
  border:1.5px solid var(--border2); border-radius:10px;
  font-size:11px; font-weight:600; cursor:pointer; transition:all .18s;
  display:flex; align-items:center; justify-content:center; gap:7px;
}
.rp-export-btn:hover { border-color:var(--black); background:var(--bg); transform:translateY(-1px) }
.rp-export-btn i { font-size:12px; color:var(--blue) }
.rp-export-btn.rp-export-jpg i { color:#e67e22 }

/* ══════════════════════════════════════════════════════
   SAVE OPTIONS MODAL  (saveOptModal)
══════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════
   SAVE OPTIONS MODAL  (saveOptModal) — 심플 흑백 디자인
══════════════════════════════════════════════════════ */
.som-box {
  max-width:480px !important; width:92vw;
  max-height:92vh; overflow:hidden;
  display:flex; flex-direction:column;
  padding:0 !important; border-radius:20px !important;
  background:#fff;
}
.som-close-btn {
  position:absolute; top:16px; right:16px;
  width:32px; height:32px; border-radius:50%;
  border:none; background:rgba(255,255,255,.18);
  color:#fff; font-size:13px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s; z-index:1;
}
.som-close-btn:hover { background:rgba(255,255,255,.32); }

/* 헤더 — 검은 배경 */
.som-hero {
  background:#0d0d0d;
  padding:28px 24px 22px;
  text-align:center; flex-shrink:0;
  border-radius:20px 20px 0 0; position:relative;
}
.som-hero-icon {
  font-size:22px; color:#fff; margin-bottom:10px; display:block;
}
.som-hero-title { font-size:18px; font-weight:800; color:#fff; margin-bottom:4px; }
.som-hero-sub { font-size:11px; color:rgba(255,255,255,.55); line-height:1.5; }

/* 본문 */
.som-body { overflow-y:auto; flex:1; padding:22px 24px 8px; }

/* 라벨 */
.som-lbl {
  font-size:11px; font-weight:700; color:#333;
  text-transform:uppercase; letter-spacing:.3px;
  margin-bottom:6px; display:flex; align-items:center; gap:5px;
}
.som-lbl-opt { font-weight:400; color:#aaa; text-transform:none; letter-spacing:0; }

/* 입력 필드 공용 */
.som-inp {
  width:100%; height:42px; padding:0 13px;
  border:1.5px solid #e0e0e0; border-radius:10px;
  font-size:13px; color:#0d0d0d; background:#fff;
  transition:border-color .15s; box-sizing:border-box;
  -webkit-appearance:none; appearance:none;
}
.som-inp:focus { outline:none; border-color:#0d0d0d; box-shadow:0 0 0 3px rgba(0,0,0,.06); }
.som-sel {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center;
  padding-right:32px; cursor:pointer;
}

/* 행 간격 */
.som-row { margin-bottom:16px; }
.som-row-2col { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* 메타 정보 */
.som-meta-row {
  display:flex; gap:8px; flex-wrap:wrap;
  margin:0 0 20px; padding:10px 0;
  border-top:1px solid #f0f0f0;
}
.som-meta-row span {
  font-size:10px; color:#999; font-weight:500;
  padding:3px 10px; background:#f5f5f5; border-radius:20px;
}

/* 저장 모드 선택 버튼 */
.som-save-modes {
  display:grid; grid-template-columns:1fr 1fr; gap:10px;
  margin-bottom:16px;
}
.som-mode-btn {
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:14px 10px; border-radius:12px;
  border:1.5px solid #e0e0e0; background:#fff;
  cursor:pointer; transition:all .16s;
}
.som-mode-btn i { font-size:18px; color:#aaa; transition:color .16s; }
.som-mode-title { font-size:12px; font-weight:700; color:#555; transition:color .16s; }
.som-mode-desc { font-size:10px; color:#bbb; transition:color .16s; }
.som-mode-btn:hover { border-color:#555; }
.som-mode-btn:hover i { color:#333; }
.som-mode-btn:hover .som-mode-title { color:#0d0d0d; }
.som-mode-active {
  border-color:#0d0d0d !important; background:#0d0d0d !important;
}
.som-mode-active i { color:#fff !important; }
.som-mode-active .som-mode-title { color:#fff !important; }
.som-mode-active .som-mode-desc { color:rgba(255,255,255,.6) !important; }

/* 새 파일 이름 행 */
.som-newname-row { margin-bottom:16px; animation:somFadeIn .18s ease; }
@keyframes somFadeIn { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:none} }

/* 내보내기 링크 */
.som-export-link {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  padding:12px 0 4px;
  border-top:1px solid #f0f0f0;
  font-size:11px; color:#aaa;
}
.som-export-link button {
  padding:4px 12px; border-radius:20px;
  border:1.5px solid #e0e0e0; background:#fff;
  font-size:11px; font-weight:700; color:#555; cursor:pointer; transition:all .14s;
}
.som-export-link button:hover { border-color:#0d0d0d; color:#0d0d0d; background:#f8f8f8; }

/* 새 폴더 추가 인라인 입력 */
.som-new-folder-input { margin-top:6px; animation:somFadeIn .15s ease; }
.som-new-folder-input .som-inp { height:38px; font-size:12px; }

/* 하단 액션 영역 */
.som-footer {
  display:flex; gap:10px;
  padding:16px 24px 20px;
  border-top:1.5px solid #f0f0f0; flex-shrink:0;
}
.som-btn-cancel {
  flex:1; height:46px; border-radius:12px;
  border:1.5px solid #e0e0e0; background:#fff;
  font-size:13px; font-weight:600; color:#666; cursor:pointer; transition:all .15s;
}
.som-btn-cancel:hover { border-color:#999; color:#333; }
.som-btn-save {
  flex:2; height:46px; border-radius:12px;
  background:#0d0d0d; border:none;
  font-size:13px; font-weight:800; color:#fff; cursor:pointer; transition:all .15s;
  display:flex; align-items:center; justify-content:center; gap:7px;
}
.som-btn-save:hover { background:#333; transform:translateY(-1px); }
.som-btn-save i { font-size:13px; }

@media(max-width:480px) {
  .som-row-2col { grid-template-columns:1fr; }
  .som-save-modes { grid-template-columns:1fr 1fr; }
}

/* ══════════════════════════════════════════════════════
   SAVE CONFIRM MODAL  (saveConfirmModal)
══════════════════════════════════════════════════════ */
.scm-box {
  max-width:520px !important; width:94vw;
  max-height:94vh; overflow:hidden;
  display:flex; flex-direction:column;
  padding:0 !important; border-radius:18px !important;
  background:#fff;
}
.scm-close-btn {
  position:absolute; top:14px; right:14px;
  width:32px; height:32px; border-radius:50%;
  background:rgba(255,255,255,.18); border:none;
  color:#fff; font-size:13px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s; z-index:10;
}
.scm-close-btn:hover { background:rgba(255,255,255,.35); }
.scm-hero {
  background:#0d0d0d; padding:28px 24px 24px;
  text-align:center; flex-shrink:0;
  border-radius:18px 18px 0 0; position:relative;
}
.scm-hero-check {
  width:52px; height:52px; border-radius:50%;
  background:#fff; color:#0d0d0d;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:22px; font-weight:900; margin-bottom:12px;
}
.scm-hero-title { font-size:19px; font-weight:800; color:#fff; margin-bottom:5px; }
.scm-hero-sub { font-size:12px; color:rgba(255,255,255,.6); line-height:1.5; }
.scm-body { overflow-y:auto; flex:1; padding:20px 22px 10px; }
.scm-summary-card {
  background:#f8f8f8; border:1.5px solid #e8e8e8;
  border-radius:12px; padding:14px 16px; margin-bottom:20px;
}
.scm-sum-row { display:flex; gap:12px; }
.scm-sum-row + .scm-sum-row { margin-top:10px; padding-top:10px; border-top:1px solid #eee; }
.scm-sum-item { flex:1; min-width:0; }
.scm-sum-label { display:block; font-size:10px; color:#999; font-weight:600; text-transform:uppercase; letter-spacing:.4px; margin-bottom:3px; }
.scm-sum-val { display:block; font-size:13px; font-weight:700; color:#0d0d0d; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.scm-section-title {
  font-size:11px; font-weight:800; color:#0d0d0d;
  text-transform:uppercase; letter-spacing:.6px;
  padding-bottom:10px; margin-bottom:14px;
  border-bottom:2px solid #0d0d0d;
}
.scm-field { }
.scm-field-mb { margin-bottom:14px; }
.scm-field-group { display:flex; gap:12px; margin-bottom:14px; }
.scm-field-group .scm-field { flex:1; }
.scm-label {
  display:flex; align-items:center; justify-content:space-between;
  font-size:11px; font-weight:700; color:#333;
  margin-bottom:6px; text-transform:uppercase; letter-spacing:.3px;
}
.scm-input {
  width:100%; height:40px; padding:0 12px;
  border:1.5px solid #e0e0e0; border-radius:9px;
  font-size:13px; color:#0d0d0d; background:#fff;
  transition:border-color .15s; box-sizing:border-box;
}
.scm-input:focus { outline:none; border-color:#0d0d0d; }
.scm-textarea {
  width:100%; height:80px; padding:10px 12px;
  border:1.5px solid #e0e0e0; border-radius:9px;
  font-size:13px; color:#0d0d0d; background:#fff;
  resize:vertical; transition:border-color .15s;
  box-sizing:border-box; font-family:inherit; line-height:1.5;
}
.scm-textarea:focus { outline:none; border-color:#0d0d0d; }
.scm-priority-row { display:flex; gap:6px; }
.scm-priority-btn {
  flex:1; padding:9px 4px; text-align:center;
  border:1.5px solid #e0e0e0; border-radius:9px;
  background:#fff; font-size:11px; font-weight:700; color:#666;
  cursor:pointer; transition:all .14s;
}
.scm-priority-btn:hover { border-color:#0d0d0d; color:#0d0d0d; }
.scm-priority-btn.active { background:#0d0d0d; border-color:#0d0d0d; color:#fff; }
.scm-priority-btn[data-priority="4"].active { background:#c0392b; border-color:#c0392b; }
.scm-progress-val { font-size:14px; font-weight:800; color:#0d0d0d; }
.scm-progress-wrap { position:relative; margin-bottom:6px; }
.scm-range { width:100%; height:4px; appearance:none; background:transparent; cursor:pointer; position:relative; z-index:2; margin-bottom:4px; }
.scm-range::-webkit-slider-thumb {
  -webkit-appearance:none; width:20px; height:20px;
  border-radius:50%; background:#fff; border:3px solid #0d0d0d;
  box-shadow:0 2px 6px rgba(0,0,0,.2); cursor:grab;
}
.scm-range::-webkit-slider-thumb:active { cursor:grabbing; }
.scm-progress-bar-bg { width:100%; height:6px; background:#e8e8e8; border-radius:99px; overflow:hidden; margin-top:-14px; }
.scm-progress-bar-fill { height:100%; border-radius:99px; background:#0d0d0d; transition:width .2s ease; }
.scm-progress-labels { display:flex; justify-content:space-between; font-size:9px; color:#aaa; margin-top:5px; }
.scm-progress-presets { display:flex; gap:5px; flex-wrap:wrap; margin-top:8px; }
.scm-progress-presets button {
  padding:5px 10px; border:1.5px solid #e0e0e0; border-radius:20px;
  background:#fff; font-size:11px; font-weight:600; color:#555;
  cursor:pointer; transition:all .12s;
}
.scm-progress-presets button:hover { background:#0d0d0d; color:#fff; border-color:#0d0d0d; }
.scm-tag-input-wrap { border:1.5px solid #e0e0e0; border-radius:10px; overflow:hidden; background:#fff; }
.scm-tags-list { display:flex; flex-wrap:wrap; gap:5px; padding:8px 10px; min-height:36px; }
.scm-tag { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border-radius:20px; background:#0d0d0d; color:#fff; font-size:11px; font-weight:600; }
.scm-tag-del { background:none; border:none; color:rgba(255,255,255,.6); cursor:pointer; padding:0; font-size:10px; display:flex; align-items:center; }
.scm-tag-del:hover { color:#fff; }
.scm-tag-add-row { display:flex; gap:6px; padding:6px 8px; border-top:1px solid #eee; background:#fafafa; align-items:center; }
.scm-tag-add-row .scm-input { border:none; background:transparent; height:32px; padding:0 6px; }
.scm-tag-add-row .scm-input:focus { border:none; box-shadow:none; }
.scm-tag-add-btn { width:32px; height:32px; border-radius:8px; background:#0d0d0d; color:#fff; border:none; font-size:12px; cursor:pointer; flex-shrink:0; display:flex; align-items:center; justify-content:center; transition:background .12s; }
.scm-tag-add-btn:hover { background:#333; }
.scm-suggested-tags { display:flex; align-items:center; gap:5px; flex-wrap:wrap; margin-top:7px; }
.scm-sug-label { font-size:10px; color:#999; font-weight:700; text-transform:uppercase; letter-spacing:.3px; }
.scm-sug-tag { padding:4px 10px; border:1.5px solid #e0e0e0; border-radius:20px; background:#fff; font-size:11px; font-weight:600; color:#555; cursor:pointer; transition:all .12s; }
.scm-sug-tag:hover { background:#0d0d0d; color:#fff; border-color:#0d0d0d; }

/* ── 하단 고정 액션 버튼 3개 ── */
.scm-actions {
  display:flex; flex-direction:column; gap:10px;
  padding:14px 22px 18px;
  border-top:1.5px solid #e8e8e8; background:#fff; flex-shrink:0;
}

/* 저장 완료 후 인쇄 안내 배너 */
.scm-upload-guide {
  background:linear-gradient(135deg,#f0f9ff 0%,#e8f5e9 100%);
  border:1.5px solid #b2dfdb; border-radius:12px; overflow:hidden;
}
.scm-upload-guide-inner {
  display:flex; align-items:center; gap:12px; padding:12px 14px;
}
.scm-upload-guide-icon {
  font-size:20px; color:#0d9488; flex-shrink:0;
}
.scm-upload-guide-text {
  flex:1; font-size:11px; line-height:1.5;
}
.scm-upload-guide-text strong {
  display:block; font-size:12px; font-weight:800; color:#0d0d0d; margin-bottom:2px;
}
.scm-upload-guide-text span { color:#444; }
.scm-upload-guide-text em { font-style:normal; font-weight:700; color:#0d7060; }
.scm-go-print-btn {
  display:flex; align-items:center; gap:5px;
  padding:8px 14px; background:#0d0d0d; color:#fff;
  border-radius:8px; font-size:11px; font-weight:700;
  white-space:nowrap; flex-shrink:0; transition:all .18s;
}
.scm-go-print-btn:hover { background:#333; transform:translateY(-1px) }
.scm-go-print-btn i { font-size:10px }

/* 버튼 행 */
.scm-btn-row {
  display:grid; grid-template-columns:1fr 1fr 2fr; gap:8px;
}
.scm-btn-diary {
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:12px 8px; border-radius:12px;
  border:1.5px solid #e0e0e0; background:#fff;
  font-size:10px; font-weight:700; color:#555; cursor:pointer; transition:all .15s;
}
.scm-btn-diary i { font-size:16px; color:#0d0d0d; }
.scm-btn-diary:hover { border-color:#0d0d0d; color:#0d0d0d; background:#f8f8f8; }
.scm-btn-close {
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:12px 8px; border-radius:12px;
  border:1.5px solid #e0e0e0; background:#fff;
  font-size:10px; font-weight:700; color:#555; cursor:pointer; transition:all .15s;
}
.scm-btn-close i { font-size:16px; color:#0d0d0d; }
.scm-btn-close:hover { border-color:#c0392b; color:#c0392b; background:#fff8f8; }
.scm-btn-close:hover i { color:#c0392b; }
.scm-btn-confirm {
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 12px; border-radius:12px;
  background:#0d0d0d; color:#fff; border:none;
  font-size:13px; font-weight:800; cursor:pointer; transition:all .15s;
}
.scm-btn-confirm:hover { background:#333; transform:translateY(-1px); }
.scm-btn-confirm i { font-size:14px; }

/* calDayModal 파일 카드 – 중요도/완성도/태그 배지 */
.cdm-file-badges { display:flex; align-items:center; gap:5px; flex-wrap:wrap; margin-top:4px; }
.cdm-badge-priority { font-size:9px; font-weight:700; padding:2px 6px; border-radius:8px; border:1px solid; }
.cdm-badge-priority.p1 { background:#f5f5f5; color:#666; border-color:#ddd; }
.cdm-badge-priority.p2 { background:#f0f0f0; color:#444; border-color:#ccc; }
.cdm-badge-priority.p3 { background:#0d0d0d; color:#fff; border-color:#0d0d0d; }
.cdm-badge-priority.p4 { background:#fff1f0; color:#c0392b; border-color:#f5c6c3; }
.cdm-badge-progress { font-size:9px; font-weight:700; padding:2px 6px; border-radius:8px; background:#f5f5f5; color:#555; border:1px solid #e0e0e0; }
.cdm-badge-progress.done { background:#0d0d0d; color:#fff; border-color:#0d0d0d; }
.cdm-badge-tag { font-size:9px; font-weight:600; padding:2px 7px; border-radius:8px; background:#f0f0f0; color:#333; border:1px solid #ddd; }
.cdm-progress-mini { width:100%; height:3px; background:#e8e8e8; border-radius:99px; margin-top:5px; overflow:hidden; }
.cdm-progress-mini-fill { height:100%; border-radius:99px; background:#0d0d0d; transition:width .3s; }

@media(max-width:480px) {
  .scm-field-group { flex-direction:column; }
  .scm-priority-row { gap:4px; }
  .scm-priority-btn { font-size:10px; padding:8px 3px; }
  .scm-btn-row { grid-template-columns:1fr 1fr; }
  .scm-btn-confirm { grid-column:1/-1; }
  .scm-upload-guide-inner { flex-direction:column; align-items:flex-start; gap:8px; }
  .scm-go-print-btn { width:100%; justify-content:center; }
}


/* 내보내기 그리드 (레거시 호환) */
.som-export-grid { display:none; }

/* 반응형 */
@media(max-width:520px){
  .som-row-2col { grid-template-columns:1fr; }
  .som-save-modes { grid-template-columns:1fr 1fr; }
}


.section-wrap {
  padding:32px 40px; max-width:1600px; margin:0 auto;
  min-height:calc(100vh - var(--hdr-h));
  overflow-y:auto;
}
.section-hd {
  display:flex; align-items:center; gap:16px; margin-bottom:24px; flex-wrap:wrap;
}
.section-hd h2 { font-size:22px; font-weight:800; display:flex; align-items:center; gap:8px }
.section-hd h2 i { color:var(--blue) }
.section-sub { font-size:12px; color:var(--text-3); flex:1 }
.search-box {
  display:flex; align-items:center; gap:7px;
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--r-md); padding:7px 12px;
}
.search-box i { color:var(--text-3); font-size:11px }
.search-box input { background:none; border:none; font-size:12px; color:var(--text-1); width:160px }
.search-box input::placeholder { color:var(--text-3) }

/* ═══════════════════════ DIARY SECTION ═══════════════════════ */
/* ═══════════════════════════════════════════════════════════
   DIARY PAGE — 전면 재설계
═══════════════════════════════════════════════════════════ */
.diary-page {
  padding: 32px 40px 60px;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 56px);
  background: #f8f7f5;
}

/* 페이지 헤더 */
.diary-page-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 14px; flex-wrap: wrap;
}
.diary-page-hd-left { display: flex; align-items: center; gap: 12px; }
.diary-page-title {
  font-size: 22px; font-weight: 900; color: #0d0d0d;
  margin: 0; letter-spacing: -.4px;
}
.diary-page-hd-right { display: flex; align-items: center; gap: 10px; }
.diary-search-box {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1.5px solid #e2e0dc;
  border-radius: 14px; padding: 10px 16px;
  min-width: 240px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.diary-search-box i { color: #bbb; font-size: 13px; flex-shrink:0; }
.diary-search-box input {
  border: none; background: none; font-size: 13px;
  color: #0d0d0d; width: 100%; outline: none;
}
.diary-search-box input::placeholder { color: #ccc; }
.diary-new-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 22px; background: #0d0d0d; color: #fff;
  border: none; border-radius: 14px; font-size: 13px;
  font-weight: 800; cursor: pointer; transition: .18s ease;
  white-space: nowrap; letter-spacing: -.2px;
}
.diary-new-btn:hover { background: #c9a84c; transform: translateY(-1px); }

/* 메인 레이아웃: 왼쪽 달력(넓게) + 오른쪽 사이드 */
.diary-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

/* ── 왼쪽 패널 ── */
.diary-left { display: flex; flex-direction: column; gap: 18px; }

/* ════ 달력 카드 (메인, 크게) ════ */
.diary-cal-card {
  background: #fff;
  border: 1.5px solid #e8e6e0;
  border-radius: 22px;
  padding: 28px 28px 22px;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}
.diary-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.diary-cal-nav {
  width: 38px; height: 38px; border-radius: 12px;
  background: #f5f4f2; border: 1.5px solid #e2e0dc;
  color: #555; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: .15s ease; flex-shrink: 0;
}
.diary-cal-nav:hover { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }
.diary-cal-month {
  font-size: 20px; font-weight: 900; color: #0d0d0d; letter-spacing: -.5px;
}

/* 달력 그리드 — calBody에 직접 적용 */
.diary-cal-grid,
#calBody {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 4px !important;
}

/* 요일 헤더 */
.cal-dh {
  text-align: center; font-size: 12px; font-weight: 700;
  color: #bbb; padding: 6px 0 10px; letter-spacing: .3px;
}

/* 날짜 셀 — 충분히 크게 */
.cal-d {
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 12px; cursor: pointer;
  transition: .15s ease; position: relative;
  padding: 4px;
  min-height: 44px;
}
.cal-d:hover {
  background: #f5f4f2;
  transform: scale(1.05);
}
.cal-d.today {
  background: #0d0d0d; color: #fff;
  border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.cal-d.today:hover { background: #333; transform: scale(1.05); }
.cal-d.has-proj {
  background: linear-gradient(135deg,#eff6ff,#dbeafe);
  border: 1px solid #bfdbfe;
}
.cal-d.has-file {
  background: linear-gradient(135deg,#fffbeb,#fef3c7);
  border: 1px solid #fde68a;
}
.cal-d-num {
  font-size: 14px; font-weight: 600; color: #0d0d0d; line-height: 1;
}
.cal-d.today .cal-d-num { color: #fff; }
.cal-d-dot {
  font-size: 11px; line-height: 1; margin-top: 2px;
}
.cal-empty { pointer-events: none; opacity: .15; }

/* 달력 범례 */
.diary-cal-legend {
  display: flex; align-items: center; gap: 18px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1.5px solid #f0ede8;
}
.dcl-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #888; font-weight: 500;
}
.dcl-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.today-dot {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: #888; font-weight: 500;
}
.today-dot::before {
  content: '';
  display: inline-block; width: 20px; height: 20px;
  background: #0d0d0d; border-radius: 7px;
}

/* ════ 인쇄 카드 ════ */
.diary-print-card {
  background: linear-gradient(135deg,#0d0d0d 0%,#1a1a2e 100%);
  border-radius: 22px; padding: 22px;
  color: #fff;
}
.dpc-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.dpc-title {
  font-size: 15px; font-weight: 900; color: #fff; letter-spacing: -.3px;
}
.dpc-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 16px;
  background: rgba(255,255,255,.08); border-radius: 14px; padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
}
.dpc-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.4);
}
.dpc-step i { font-size: 20px; }
.dpc-step.active { color: #c9a84c; }
.dpc-arrow { font-size: 11px; color: rgba(255,255,255,.2); }
.dpc-desc {
  font-size: 12px; color: rgba(255,255,255,.55);
  margin-bottom: 16px; line-height: 1.6;
}
.dpc-btn {
  width: 100%; padding: 13px; background: #c9a84c; color: #0d0d0d;
  border: none; border-radius: 14px; font-size: 13px; font-weight: 900;
  cursor: pointer; transition: .18s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.dpc-btn:hover { background: #e0bc60; transform: translateY(-1px); }

/* ── 오른쪽 사이드바 ── */
.diary-right { display: flex; flex-direction: column; gap: 18px; }

/* ════ 프로젝트 카드 ════ */
.diary-proj-card {
  background: #fff; border: 1.5px solid #e8e6e0;
  border-radius: 22px; padding: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.dpr-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.dpr-title { font-size: 15px; font-weight: 900; color: #0d0d0d; }
.dpr-view-tabs { display: flex; gap: 4px; }
.vt {
  width: 30px; height: 30px; border-radius: 8px;
  background: #f5f4f2; border: 1.5px solid #e2e0dc;
  color: #aaa; font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .15s ease;
}
.vt.active, .vt:hover { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }

/* 프로젝트 리스트 */
.diary-proj-card .proj-grid { display: flex; flex-direction: column; gap: 8px; }
.diary-proj-card .proj-card {
  padding: 10px 14px; border-radius: 14px; gap: 12px;
}
.diary-proj-card .proj-thumb {
  width: 44px; height: 56px; border-radius: 8px; font-size: 20px;
}
.diary-proj-card .proj-name { font-size: 13px; font-weight: 700; }
.diary-proj-card .proj-sub { font-size: 11px; color: #888; }
.diary-proj-card .proj-actions { opacity: 0; }
.diary-proj-card .proj-card:hover .proj-actions { opacity: 1; }
.diary-proj-card .proj-act { width: 28px; height: 28px; font-size: 11px; }

/* ════ 폴더 카드 ════ */
.diary-folder-card {
  background: #fff; border: 1.5px solid #e8e6e0;
  border-radius: 22px; padding: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.dfc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.dfc-title { font-size: 15px; font-weight: 900; color: #0d0d0d; }
.dfc-add-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 12px; background: #f5f4f2; color: #555;
  border: 1.5px solid #e2e0dc; border-radius: 10px;
  font-size: 11px; font-weight: 700; cursor: pointer; transition: .15s ease;
}
.dfc-add-btn:hover { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }
.diary-folder-card .folder-item {
  padding: 10px 12px; border-radius: 10px; font-size: 13px;
}
.diary-folder-card .folder-count {
  font-size: 11px; padding: 2px 9px; border-radius: 12px;
}

/* ─── 반응형 ─── */
@media(max-width:1200px) {
  .diary-main { grid-template-columns: 1fr 300px; }
}
@media(max-width:960px) {
  .diary-main { grid-template-columns: 1fr; }
  .diary-right { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media(max-width:640px) {
  .diary-page { padding: 16px 14px 80px; background: #f8f7f5; }
  .diary-page-hd { flex-direction: column; align-items: stretch; }
  .diary-page-hd-right { flex-direction: column; gap: 8px; }
  .diary-search-box { min-width: 0; }
  .diary-new-btn { justify-content: center; }
  .diary-right { grid-template-columns: 1fr; }
  .cal-d { min-height: 36px; border-radius: 8px; }
  .cal-d-num { font-size: 12px; }
  .diary-cal-month { font-size: 16px; }
}

/* 기존 호환 (숨김) */
.diary-grid { display: none !important; }
.d-card { display: none !important; }

/* Folders */
.folder-list { display:flex; flex-direction:column; gap:2px }
.folder-item {
  display:flex; align-items:center; gap:8px; padding:8px 10px;
  border-radius:var(--r-sm); font-size:12px; cursor:pointer; transition:var(--tr); color:var(--text-2);
  position:relative;
}
.folder-item:hover { background:var(--bg) }
.folder-item.active { background:var(--bg2); color:var(--text-1); font-weight:600 }
.folder-count { margin-left:auto; font-size:10px; color:var(--text-3); background:var(--bg2); padding:1px 6px; border-radius:10px; flex-shrink:0 }
.folder-add-btn {
  margin-top:6px; padding:7px 10px; width:100%; border-radius:var(--r-sm);
  border:1.5px dashed var(--border2); color:var(--text-3); font-size:11px;
  cursor:pointer; transition:var(--tr); text-align:left; display:flex; align-items:center; gap:6px;
}
.folder-add-btn:hover { border-color:var(--black); color:var(--black) }

/* 폴더 삭제 버튼 */
.folder-del-btn {
  width:22px; height:22px; border-radius:var(--r-xs);
  background:none; border:none; cursor:pointer;
  color:var(--text-3); font-size:10px;
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition:var(--tr); flex-shrink:0; margin-left:4px;
}
.folder-item:hover .folder-del-btn { opacity:1 }
.folder-del-btn:hover { background:#fef2f2; color:var(--red) }
.folder-item.active .folder-del-btn { opacity:0.5 }
.folder-item.active:hover .folder-del-btn { opacity:1 }

/* Project grid */
.proj-grid { display:flex; flex-direction:column; gap:7px }
.proj-card {
  display:flex; align-items:center; gap:10px; padding:10px 12px;
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--r-md); cursor:pointer; transition:var(--tr);
}
.proj-card:hover { background:var(--bg); border-color:var(--border2) }
.proj-thumb {
  width:42px; height:54px; border-radius:3px; overflow:hidden;
  flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:20px;
}
.proj-name { font-size:12px; font-weight:600; color:var(--text-1) }
.proj-sub { font-size:10px; color:var(--text-3); margin-top:1px }
.proj-actions { display:flex; gap:3px; margin-left:auto; opacity:0; transition:var(--tr) }
.proj-card:hover .proj-actions { opacity:1 }
.proj-act {
  width:26px; height:26px; border-radius:var(--r-sm);
  background:var(--bg); border:1.5px solid var(--border);
  color:var(--text-3); font-size:10px;
  display:flex; align-items:center; justify-content:center; transition:var(--tr);
}
.proj-act:hover { color:var(--text-1) }
.proj-act.del:hover { color:var(--red); border-color:var(--red) }

.view-tabs { display:flex; gap:2px }
.vt {
  width:28px; height:28px; border-radius:var(--r-sm);
  background:var(--bg); border:1.5px solid var(--border);
  color:var(--text-3); font-size:11px;
  display:flex; align-items:center; justify-content:center; transition:var(--tr);
}
.vt:hover { color:var(--text-2) }
.vt.active { background:var(--black); color:#fff; border-color:var(--black) }

/* Print mini flow */
.print-mini-flow {
  display:flex; align-items:center; gap:6px; margin-bottom:12px;
}
.pmf-step {
  flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
  font-size:10px; color:var(--text-3); padding:8px 6px;
  background:var(--bg); border-radius:var(--r-sm); border:1.5px solid var(--border);
}
.pmf-step.active { color:var(--black); border-color:var(--black); background:var(--white) }
.pmf-step i { font-size:14px }
.pmf-arrow { font-size:10px; color:var(--border2) }

/* ═══════════════════════ PRINT SECTION ═══════════════════════ */
.step-bar {
  display:flex; align-items:center; justify-content:center;
  gap:6px; margin-bottom:28px; flex-wrap:wrap;
}
.step { display:flex; flex-direction:column; align-items:center; gap:4px; opacity:.35; transition:var(--tr) }
.step.done { opacity:1 }
.step-dot {
  width:32px; height:32px; border-radius:50%;
  background:var(--bg); border:2px solid var(--border2);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; color:var(--text-3); transition:var(--tr);
}
.step.done .step-dot { background:var(--black); border-color:var(--black); color:#fff }
.step span { font-size:10px; color:var(--text-3); white-space:nowrap }
.step.done span { color:var(--text-1); font-weight:600 }
.step-line { flex:1; height:1.5px; background:var(--border); max-width:40px }

.print-layout { display:grid; grid-template-columns:1fr 380px; gap:28px }
.print-card {
  background:var(--card); border:1.5px solid var(--border);
  border-radius:var(--r-lg); padding:18px; margin-bottom:16px;
}
.pc-title {
  font-size:13px; font-weight:700; color:var(--text-1);
  margin-bottom:14px; display:flex; align-items:center; gap:7px;
}
.pc-title i { color:var(--blue) }
.badge-tag {
  margin-left:auto; font-size:9px; font-weight:600;
  background:var(--blue-lt); color:var(--blue);
  padding:2px 8px; border-radius:10px;
}

/* 인쇄소 선택 스타일은 파일 하단 새 디자인 섹션 참조 */
.partner-opt input { display:none }


/* Paper options */
.paper-options { display:flex; gap:8px }
.paper-opt { flex:1; cursor:pointer; transition:var(--tr) }
.paper-opt input { display:none }
.paper-card {
  border:2px solid var(--border); border-radius:var(--r-md);
  padding:10px 6px; transition:var(--tr);
}
.paper-opt.active .paper-card { border-color:var(--black); box-shadow:0 0 0 2px var(--black) }
.paper-preview { aspect-ratio:3/4; border-radius:4px; margin-bottom:6px }
.paper-card.art .paper-preview { background:linear-gradient(160deg,#f8f9ff,#eef0f8) }
.paper-card.semi .paper-preview { background:linear-gradient(160deg,rgba(220,220,255,.5),rgba(200,200,240,.3)); border:1px dashed #ccc }
.paper-card.kraft .paper-preview { background:linear-gradient(160deg,#c8a87a,#a07840) }
.paper-card.photo .paper-preview { background:linear-gradient(160deg,#fff,#f0f0f8); box-shadow:inset 0 0 0 1px #dde }
.paper-info { text-align:center }
.paper-name { font-size:10px; font-weight:700; color:var(--text-1) }
.paper-desc { font-size:9px; color:var(--text-3); margin-top:1px }

/* Binding options */
.binding-options { display:flex; gap:8px }
.bind-opt { flex:1; cursor:pointer }
.bind-opt input { display:none }
.bind-card {
  padding:12px 8px; border:2px solid var(--border); border-radius:var(--r-md);
  display:flex; flex-direction:column; align-items:center; gap:4px; transition:var(--tr);
  background:var(--bg);
}
.bind-card i { font-size:20px; color:var(--text-3) }
.bind-card span { font-size:11px; color:var(--text-2); font-weight:500 }
.bind-card em { font-size:10px; color:var(--text-3); font-style:normal }
.bind-opt.active .bind-card { border-color:var(--black); background:var(--white) }
.bind-opt.active .bind-card i { color:var(--black) }

/* Page count */
.page-count-ui {}
.pcu-row { display:flex; justify-content:space-between; margin-bottom:8px; font-size:11px; color:var(--text-2) }
.pcu-range-badge { font-size:9px; color:var(--text-3) }
.pcu-slider-row { display:flex; align-items:center; gap:12px; margin-bottom:12px }
.print-slider {
  flex:1; -webkit-appearance:none; height:5px;
  background:linear-gradient(to right,var(--black) 16%,var(--border) 16%);
  border-radius:3px; outline:none;
}
.print-slider::-webkit-slider-thumb {
  -webkit-appearance:none; width:18px; height:18px; border-radius:50%;
  background:#fff; border:3px solid var(--black); cursor:pointer;
  box-shadow:0 1px 6px rgba(0,0,0,.2);
}
.pcu-val { font-size:22px; font-weight:900; color:var(--black); min-width:38px; text-align:right }
.price-display {
  display:flex; align-items:baseline; gap:10px;
  padding:14px; background:var(--bg); border:1.5px solid var(--border); border-radius:var(--r-md);
}
.price-main { font-size:26px; font-weight:900; color:var(--text-1) }
.price-per { font-size:11px; color:var(--text-3) }

/* Delivery form */
.delivery-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:#ecfdf5; color:var(--green);
  padding:7px 12px; border-radius:var(--r-md);
  font-size:12px; font-weight:600; margin-bottom:14px;
}
.delivery-form { display:flex; flex-direction:column; gap:8px }
.df-row { display:flex; align-items:center; gap:10px }
.df-row label { font-size:10px; color:var(--text-3); min-width:58px; font-weight:600 }
.df-row input {
  flex:1; background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-sm); color:var(--text-1); padding:8px 10px; font-size:12px; transition:var(--tr);
}
.df-row input:focus { border-color:var(--black) }
.df-row input::placeholder { color:var(--text-3) }

/* Addons */
.addon-list { display:flex; flex-direction:column; gap:6px }
.addon-item {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px; background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-md); cursor:pointer; transition:var(--tr);
}
.addon-item:hover { border-color:var(--border2) }
.addon-info { display:flex; align-items:center; gap:8px }
.addon-emoji { font-size:22px; width:32px; text-align:center }
.addon-name { font-size:11px; font-weight:600; color:var(--text-1) }
.addon-price { font-size:10px; color:var(--orange) }
.addon-chk { width:16px; height:16px; cursor:pointer; accent-color:var(--black) }

/* ── 커스터마이징 편집 버튼 영역 ── */
.addon-custom-edit-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px solid var(--border);
}
.addon-custom-edit-desc {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.addon-custom-edit-desc i { color: #7c3aed; }
.addon-custom-edit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  background: #0d0d0d;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
  letter-spacing: .2px;
}
.addon-custom-edit-btn:hover { background: #333; transform: translateY(-1px); }

/* ── 커스터마이징 편집 다음단계 안내 ── */
.addon-custom-guide {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #faf5ff 0%, #f0fdf4 100%);
  border: 1.5px solid #e9d5ff;
  border-radius: 10px;
  flex-wrap: wrap;
}
.acg-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #374151;
  flex-shrink: 0;
}
.acg-step strong { color: #0d0d0d; }
.acg-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.acg-arrow { font-size: 9px; color: #9ca3af; flex-shrink: 0; }

/* ── 추가 커스터마이징 옵션 선택 패널 ── */
.addon-type-panel {
  margin-top: 12px;
  background: #fafafa;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  animation: fadeSlideIn .2s ease;
}
@keyframes fadeSlideIn {
  from { opacity:0; transform:translateY(-6px) }
  to   { opacity:1; transform:translateY(0) }
}
.atp-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.atp-title i { color: #7c3aed; }
.atp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 10px;
}
.atp-opt { display: block; cursor: pointer; }
.atp-opt input { display: none; }
.atp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: .15s ease;
  text-align: center;
}
.atp-opt:hover .atp-inner { border-color: #7c3aed; background: #faf5ff; }
.atp-opt input:checked ~ .atp-inner {
  border-color: #7c3aed;
  background: #f5f3ff;
  box-shadow: 0 0 0 2px rgba(124,58,237,.15);
}
.atp-icon { font-size: 22px; line-height: 1; }
.atp-name { font-size: 11px; font-weight: 700; color: var(--text-1); }
.atp-desc { font-size: 9px; color: var(--text-3); }
.atp-other-row { margin-bottom: 8px; }
.atp-other-input {
  width: 100%; height: 34px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 0 10px; font-size: 12px;
  color: var(--text-1); transition: .15s;
  box-sizing: border-box;
}
.atp-other-input:focus { border-color: #7c3aed; outline: none; }
.atp-selected-info {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #166534;
  background: #f0fdf4; border: 1.5px solid #bbf7d0;
  border-radius: 8px; padding: 7px 10px; margin-bottom: 8px;
}
.atp-go-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}
.atp-go-btn:hover:not(:disabled) { background: #6d28d9; transform: translateY(-1px); }
.atp-go-btn:disabled {
  background: #e5e7eb; color: #9ca3af; cursor: not-allowed; transform: none;
}

/* ── STEP2 업로드 안내 (빈 상태) ── */
.cf-upload-guide {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 14px;
  width: 100%;
  max-width: 380px;
}
.cf-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 12px;
  color: #374151;
  width: 100%;
}
.cf-guide-step strong { color: #0d0d0d; }
.cf-guide-step-final { background: #f0fdf4; border-color: #bbf7d0; }
.cf-guide-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #0d0d0d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.cf-guide-num-final { background: #059669; }
.cf-guide-arrow {
  font-size: 10px;
  color: #9ca3af;
  padding-left: 21px;
}

/* ── 커스터마이징 작업물 목록 (유지) ── */
.addon-custom-projects {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px solid var(--border);
}
.addon-custom-proj-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.addon-custom-proj-title span {
  background: #7c3aed;
  color: #fff;
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 10px;
}
.addon-custom-proj-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 6px;
  transition: .15s ease;
}
.addon-custom-proj-item:hover { border-color: #7c3aed40; background: #faf5ff; }
.addon-custom-proj-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.addon-custom-proj-info { flex: 1; min-width: 0; }
.addon-custom-proj-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.addon-custom-proj-meta { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.addon-custom-proj-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.addon-custom-proj-link, .addon-custom-proj-del {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-2);
  text-decoration: none;
  transition: .15s ease;
}
.addon-custom-proj-link:hover { border-color: #7c3aed; color: #7c3aed; }
.addon-custom-proj-del:hover  { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

/* ════════════════════════════════════════════════════════
   커스터마이징 에디터 모달 (cem-)
════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════
   CUSTOMIZING EDITOR MODAL — 드래그·리사이즈 지원
═══════════════════════════════════════════════ */

/* 오버레이: pointer-events none으로 배경 클릭 허용 */
.cem-overlay {
  background: rgba(0,0,0,.45) !important;
  pointer-events: all;
}

/* 모달 박스: position:fixed + 자유 배치 */
.cem-box {
  position: fixed !important;
  /* 초기값 — JS에서 덮어씀 */
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92vw);
  height: 88vh;
  min-width: 480px;
  min-height: 360px;
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  border-radius: 14px;
  overflow: hidden; /* 내부 콘텐츠 클립 */
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.35), 0 4px 20px rgba(0,0,0,.18);
  user-select: none;
  will-change: transform, width, height;
  transition: box-shadow .15s ease;
  z-index: 10001;
}
.cem-box:focus-within { box-shadow: 0 28px 90px rgba(0,0,0,.4), 0 4px 20px rgba(0,0,0,.2); }

/* ── 리사이즈 핸들 8방향 ── */
.cem-resize-handle {
  position: absolute;
  z-index: 10;
  background: transparent;
}
/* 상하좌우 엣지 */
.cem-resize-n  { top:-4px;    left:12px;  right:12px; height:8px;  cursor:n-resize; }
.cem-resize-s  { bottom:-4px; left:12px;  right:12px; height:8px;  cursor:s-resize; }
.cem-resize-e  { right:-4px;  top:12px;   bottom:12px; width:8px;  cursor:e-resize; }
.cem-resize-w  { left:-4px;   top:12px;   bottom:12px; width:8px;  cursor:w-resize; }
/* 모서리 */
.cem-resize-ne { top:-6px;    right:-6px; width:16px; height:16px; cursor:ne-resize; border-radius:0 14px 0 0; }
.cem-resize-nw { top:-6px;    left:-6px;  width:16px; height:16px; cursor:nw-resize; border-radius:14px 0 0 0; }
.cem-resize-se { bottom:-6px; right:-6px; width:16px; height:16px; cursor:se-resize; border-radius:0 0 14px 0; }
.cem-resize-sw { bottom:-6px; left:-6px;  width:16px; height:16px; cursor:sw-resize; border-radius:0 0 0 14px; }

/* ── 헤더 (드래그 영역) ── */
.cem-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 13px 20px;
  border-bottom: 1.5px solid #f0ede8;
  background: #fff;
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
  gap: 12px;
}
.cem-header:active { cursor: grabbing; }

/* 드래그 중일 때 iframe이 이벤트 가로채는 것 방지 */
.cem-box.cem-dragging .cem-iframe { pointer-events: none !important; }
.cem-box.cem-resizing .cem-iframe { pointer-events: none !important; }

.cem-header-left { flex:1; min-width:0; }
.cem-header-title {
  font-size: 14px;
  font-weight: 800;
  color: #0d0d0d;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  white-space: nowrap;
}
.cem-header-title i { color: #7c3aed; }
.cem-header-sub {
  font-size: 10px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cem-header-sub strong { color: #0d0d0d; }

/* 헤더 우측 버튼 그룹 */
.cem-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.cem-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1.5px solid #e8e6e0;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
  flex-shrink: 0;
  transition: .15s ease;
}
.cem-action-btn:hover { border-color: #0d0d0d; color: #0d0d0d; background: #f8f8f8; }
.cem-action-btn.cem-close-btn:hover { border-color: #e03131; color: #e03131; background: #fff5f5; }

/* 전체화면 상태 */
.cem-box.cem-fullscreen {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  transform: none !important;
  min-width: unset;
  min-height: unset;
}
.cem-box.cem-fullscreen .cem-resize-handle { display: none; }

/* 최소화 상태 */
.cem-box.cem-minimized .cem-iframe-wrap,
.cem-box.cem-minimized .cem-footer { display: none !important; }
.cem-box.cem-minimized { height: auto !important; min-height: unset !important; }

/* iframe 영역 */
.cem-iframe-wrap {
  flex: 1;
  position: relative;
  background: #f7f6f2;
  overflow: hidden;
  min-height: 0;
}
.cem-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.cem-loading {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.cem-loading-inner { text-align: center; }

/* 푸터 */
.cem-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-top: 1.5px solid #e9d5ff;
  background: linear-gradient(135deg, #faf5ff 0%, #f0fdf4 100%);
  flex-shrink: 0;
  gap: 12px;
}
.cem-footer-info {
  font-size: 11.5px;
  color: #374151;
  flex: 1;
  line-height: 1.6;
}
.cem-footer-info strong { color: #0d0d0d; font-weight: 800; }
.cem-footer-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cem-cancel-btn {
  padding: 9px 18px;
  border: 1.5px solid #e8e6e0;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: .15s ease;
}
.cem-cancel-btn:hover { border-color: #0d0d0d; color: #0d0d0d; }
.cem-confirm-btn {
  padding: 9px 22px;
  background: #0d0d0d;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cem-confirm-btn:hover:not(:disabled) { background: #333; transform: translateY(-1px); }
.cem-confirm-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }

/* 크기 조절 힌트 배지 */
.cem-resize-hint {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 9px;
  color: #bbb;
  pointer-events: none;
  user-select: none;
  letter-spacing: .5px;
}

@media(max-width: 600px) {
  .cem-box {
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    border-radius: 0 !important; transform: none !important;
    min-width: unset; min-height: unset;
  }
  .cem-resize-handle { display: none; }
  .cem-footer { flex-direction: column; align-items: stretch; }
  .cem-footer-btns { justify-content: flex-end; }
}



/* cem-overlay: 자유배치 모달이므로 flex 정렬 해제 */
.cem-overlay {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  backdrop-filter: blur(3px) !important;
}
.cem-overlay .modal-box {
  /* cem-box가 position:fixed로 직접 배치되므로 modal-box 기본값 무효화 */
  position: fixed !important;
  max-width: none !important;
}


.order-summary {}
.sum-list { display:flex; flex-direction:column; gap:7px; margin-bottom:8px }
.sum-row { display:flex; justify-content:space-between; font-size:12px; color:var(--text-2) }
.sum-total { font-size:16px; font-weight:900; color:var(--text-1) }
.sum-divider { height:1.5px; background:var(--border); margin:4px 0 }
.sum-delivery-note {
  display:flex; align-items:center; gap:6px; font-size:11px; color:var(--text-3);
  padding:7px 8px; background:var(--bg); border-radius:var(--r-sm); margin-bottom:12px;
}
.sum-delivery-note strong { color:var(--green) }
.btn-order {
  width:100%; padding:14px; background:var(--black); color:#fff;
  border-radius:var(--r-md); font-size:14px; font-weight:700;
  cursor:pointer; border:none; transition:var(--tr);
  display:flex; align-items:center; justify-content:center; gap:7px;
}
.btn-order:hover { background:#333 }

/* ═══════════════════════ QR SECTION ═══════════════════════ */
.qr-layout { display:grid; grid-template-columns:1fr 400px; gap:24px; align-items:start }
.qr-info-card {
  background:var(--card); border:1.5px solid var(--border);
  border-radius:var(--r-xl); padding:28px;
}
.qr-chip {
  display:inline-block; background:var(--bg2); color:var(--text-2);
  padding:4px 12px; border-radius:20px; font-size:10px; font-weight:700;
  margin-bottom:12px; letter-spacing:.5px;
}
.qr-info-card h3 { font-size:20px; font-weight:900; margin-bottom:8px }
.qr-desc { font-size:12px; color:var(--text-3); line-height:1.7; margin-bottom:18px }
.qr-features { display:flex; flex-direction:column; gap:10px; margin-bottom:24px }
.qr-feat {
  display:flex; align-items:flex-start; gap:12px; padding:12px;
  background:var(--bg); border:1.5px solid var(--border); border-radius:var(--r-md);
}
.qf-icon {
  width:36px; height:36px; border-radius:var(--r-sm);
  background:var(--black); color:#fff; font-size:16px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.qr-feat strong { font-size:12px; font-weight:700; display:block; margin-bottom:2px }
.qr-feat p { font-size:10px; color:var(--text-3) }
.qr-flow { display:flex; align-items:center; gap:8px; flex-wrap:wrap }
.qr-flow-step {
  flex:1; min-width:70px; display:flex; flex-direction:column;
  align-items:center; gap:5px; padding:10px 8px;
  background:var(--bg); border:1.5px solid var(--border); border-radius:var(--r-md);
  font-size:10px; font-weight:600; color:var(--text-2); text-align:center;
}
.qr-flow-step.active { border-color:var(--black); background:var(--white) }
.qfs-icon { font-size:22px }
.qfs-arr { font-size:14px; color:var(--border2); flex-shrink:0 }
.qr-reg-card {
  background:var(--card); border:1.5px solid var(--border);
  border-radius:var(--r-xl); padding:24px;
}
.qr-reg-card h3 { font-size:16px; font-weight:700; margin-bottom:6px }
.qr-reg-card > p { font-size:12px; color:var(--text-3); margin-bottom:16px }
.qr-input-row { display:flex; gap:8px; margin-bottom:16px }
.qr-input-row input {
  flex:1; background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-md); color:var(--text-1); padding:9px 12px; font-size:12px;
}
.qr-input-row input:focus { border-color:var(--black) }
.qr-input-row input::placeholder { color:var(--text-3) }
.qr-diary-list { display:flex; flex-direction:column; gap:7px }
.qr-item {
  display:flex; align-items:center; gap:10px; padding:10px 12px;
  background:var(--bg); border:1.5px solid var(--border); border-radius:var(--r-md);
}
.qi-icon { font-size:22px }
.qi-body { flex:1 }
.qi-name { font-size:12px; font-weight:600 }
.qi-code { font-size:10px; color:var(--text-3); font-family:monospace }
.qi-badge { font-size:10px; font-weight:600; background:#ecfdf5; color:var(--green); padding:2px 8px; border-radius:10px }

/* ═══════════════════════ BUTTONS ═══════════════════════ */
.btn-primary {
  background:var(--black); color:#fff; padding:9px 16px;
  border-radius:var(--r-md); font-size:12px; font-weight:600;
  display:inline-flex; align-items:center; gap:5px;
  border:none; cursor:pointer; transition:var(--tr);
}
.btn-primary:hover { background:#333 }
.btn-outline {
  background:transparent; color:var(--text-1); padding:9px 16px;
  border-radius:var(--r-md); font-size:12px; font-weight:600;
  display:inline-flex; align-items:center; gap:5px;
  border:1.5px solid var(--border2); cursor:pointer; transition:var(--tr);
}
.btn-outline:hover { border-color:var(--black); background:var(--bg) }
.btn-full { width:100%; justify-content:center }
.btn-sm-outline {
  padding:6px 12px; border-radius:var(--r-sm); font-size:11px; font-weight:600;
  border:1.5px solid var(--border2); color:var(--text-2); background:none; cursor:pointer; transition:var(--tr);
}
.btn-sm-outline:hover { border-color:var(--black) }
.btn-primary-sm {
  padding:7px 14px; border-radius:var(--r-sm); font-size:11px; font-weight:600;
  background:var(--black); color:#fff; border:none; cursor:pointer; transition:var(--tr);
  display:inline-flex; align-items:center; gap:5px;
}
.btn-primary-sm:hover { background:#333 }
.mt8 { margin-top:8px } .mt16 { margin-top:16px }

/* ═══════════════════════ MODAL ═══════════════════════ */
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px);
  display:none; align-items:center; justify-content:center;
  z-index:2000; padding:20px;
}
.modal-overlay.open { display:flex }
.modal-box {
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--r-xl); max-width:700px; width:100%;
  position:relative; overflow:hidden;
  box-shadow:var(--sh-lg); animation:mIn .25s ease;
  padding: 28px 28px 24px;
}
.modal-sm { max-width:400px }
.modal-md { max-width:560px }
.modal-lg { max-width:860px }
@keyframes mIn { from{opacity:0;transform:scale(.95) translateY(12px)} to{opacity:1;transform:none} }
.modal-close {
  position:absolute; top:14px; right:14px; width:30px; height:30px;
  border-radius:50%; background:var(--bg); border:1.5px solid var(--border);
  color:var(--text-2); font-size:12px;
  display:flex; align-items:center; justify-content:center; transition:var(--tr); z-index:1;
}
.modal-close:hover { background:var(--bg2) }
.modal-inner { display:grid; grid-template-columns:1fr 1fr }
.modal-preview {
  background:var(--bg); min-height:320px;
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.modal-preview-inner {
  width:100%; aspect-ratio:210/297; overflow:hidden;
  border-radius:8px; box-shadow:var(--sh-md);
}
.modal-preview-inner.goods-preview {
  aspect-ratio:1/1; max-width:280px; margin:0 auto;
}
.modal-info { padding:26px }
.mod-tag {
  display:inline-block; background:var(--bg2); color:var(--text-2);
  padding:3px 10px; border-radius:10px; font-size:9px; font-weight:700;
  margin-bottom:8px; text-transform:uppercase; letter-spacing:.5px;
}
.modal-info h2 { font-size:18px; font-weight:800; margin-bottom:6px }
.modal-info p { font-size:11px; color:var(--text-3); line-height:1.6; margin-bottom:14px }
.mod-meta-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-bottom:16px }
.mm-cell {
  display:flex; align-items:flex-start; gap:7px; padding:9px;
  background:var(--bg); border:1.5px solid var(--border); border-radius:var(--r-md);
}
.mm-cell i { color:var(--blue); margin-top:2px; font-size:12px }
.mm-cell span { display:block; font-size:9px; color:var(--text-3); margin-bottom:2px }
.mm-cell strong { font-size:11px; color:var(--text-1) }

/* Order success */
.order-success { padding:32px 24px; text-align:center }
.os-icon { font-size:50px; margin-bottom:12px }
.order-success h2 { font-size:22px; font-weight:900; margin-bottom:18px }
.os-info {
  background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-md); padding:14px; margin-bottom:16px; text-align:left;
}
.osi-row { display:flex; justify-content:space-between; font-size:12px; color:var(--text-3); margin-bottom:7px }
.osi-row:last-child { margin-bottom:0 }
.osi-row strong { color:var(--text-1); font-family:monospace }

/* Custom size modal */
.custom-size-form { padding:28px }
.custom-size-form h3 { font-size:16px; font-weight:700; margin-bottom:18px }
.csf-row { margin-bottom:12px }
.csf-row label { display:block; font-size:11px; font-weight:600; color:var(--text-3); margin-bottom:5px }
.csf-row input {
  width:100%; background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-sm); color:var(--text-1); padding:9px 12px; font-size:13px;
}
.csf-row input:focus { border-color:var(--black) }

/* ═══════════════════════ TEMPLATE THUMBNAILS ═══════════════════════ */
.tmpl-mag{background:#fff;height:100%;display:flex;flex-direction:column}
.tmpl-mag-top{background:#111;padding:5px 8px;font-size:6px;color:#fff;letter-spacing:2px}
.tmpl-mag-hl{padding:7px 8px;font-size:15px;font-weight:900;line-height:1.1;color:#111}
.tmpl-mag-body{padding:0 8px;font-size:6px;color:#777;line-height:1.6;flex:1}
.tmpl-album{background:linear-gradient(135deg,#667eea,#764ba2);height:100%;padding:8px;display:flex;flex-direction:column;gap:4px}
.ta-top{background:rgba(255,255,255,.25);border-radius:2px;flex:2}
.ta-bot{display:flex;gap:4px;flex:1}
.ta-bl,.ta-br{background:rgba(255,255,255,.15);border-radius:2px;flex:1}
.tmpl-card-th{background:linear-gradient(160deg,#ffecd2,#fcb69f);height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px;text-align:center}
.tc-em{font-size:22px}.tc-txt{font-size:9px;font-weight:700;color:#7a3010}.tc-sub{font-size:7px;color:#a0522d}
.tmpl-gift{background:#111;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.tg-rib{font-size:24px}.tg-txt{font-size:8px;color:#a78bfa;text-align:center;line-height:1.4}
.tmpl-diary{background:#fffbf0;height:100%;padding:8px}
.td-date{font-size:6px;color:#aaa;margin-bottom:4px}
.td-img{height:44px;background:linear-gradient(135deg,#ffecd2,#fcb69f);border-radius:2px;margin:6px 0}
.td-lines{display:flex;flex-direction:column;gap:4px}.td-line{height:1px;background:#e0d8cc}
.tmpl-minimal{background:#111;height:100%;display:flex;flex-direction:column;padding:10px}
.tm-acc{width:24px;height:2px;background:var(--blue);margin-bottom:5px}
.tm-hl{font-size:13px;font-weight:900;color:#fff;line-height:1.1;margin-bottom:5px}
.tm-sub{font-size:6px;color:#555}
.tmpl-birthday{background:linear-gradient(160deg,#ff9a9e,#fecfef);height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px}
.tb-em{font-size:26px}.tb-txt{font-size:9px;font-weight:700;color:#8b2252;text-align:center}
.tmpl-grad{background:linear-gradient(160deg,#0f2027,#203a43,#2c5364);height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center}
.tgr-icon{font-size:26px}.tgr-txt{font-size:8px;color:#fbbf24;font-weight:700}.tgr-sub{font-size:6px;color:rgba(255,255,255,.4)}
.tmpl-seasonal{background:linear-gradient(160deg,#a1c4fd,#c2e9fb);height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.ts-icon{font-size:26px}.ts-txt{font-size:8px;font-weight:700;color:#1a4a7a;text-align:center}

/* ── 커스텀 굿즈 템플릿 썸네일 ── */
.cat-pill-goods { background:linear-gradient(135deg,#ff6b9d,#c44dff) !important; color:#fff !important; border-color:transparent !important; font-weight:700 }
.cat-pill-goods:hover { opacity:.88 }
.cat-pill-goods.active { background:linear-gradient(135deg,#e0005c,#8b00ff) !important; border-color:transparent !important; }

/* 굿즈 그리드 상단 헤더 */
.goods-grid-header {
  grid-column:1/-1;
  background:linear-gradient(135deg,rgba(255,107,157,.12),rgba(196,77,255,.12));
  border:1px solid rgba(196,77,255,.25);
  border-radius:var(--r-md); padding:10px 12px;
  margin-bottom:4px; text-align:center;
}
.ggh-title { font-size:13px; font-weight:800; color:#c44dff; margin-bottom:2px; }
.ggh-sub   { font-size:9px;  font-weight:400; color:#888; line-height:1.4; }

.tmpl-goods {
  height:100%; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:5px; padding:10px 6px; position:relative; text-align:center;
}
.tmpl-goods-sticker { background:linear-gradient(145deg,#fff0f6,#ffd6e7,#ffb3c6); }
.tmpl-goods-card    { background:linear-gradient(145deg,#f0f4ff,#d6e0ff,#b3c1ff); }
.tmpl-goods-mug     { background:linear-gradient(145deg,#fff8e7,#ffe8b3,#ffd080); }
.tmpl-goods-frame   { background:linear-gradient(145deg,#f5ffe7,#d6f0b3,#b3e07a); }
.tmpl-goods-bag     { background:linear-gradient(145deg,#e7fff8,#b3f0d6,#7ae0bb); }
.tmpl-goods-tshirt  { background:linear-gradient(145deg,#ffe7f5,#f0b3d6,#e07ab3); }

.tg-badge {
  position:absolute; top:5px; left:5px;
  background:#ff3366; color:#fff;
  font-size:6px; font-weight:800; padding:2px 5px; border-radius:3px;
  letter-spacing:.5px;
}
.tg-badge-new  { background:#0ea5e9 }
.tg-badge-prem { background:#a855f7 }
.tg-icon  { font-size:26px; line-height:1; }
.tg-name  { font-size:8px; font-weight:700; color:#333; line-height:1.3; }
.tg-price {
  font-size:9px; font-weight:800; color:#e0005c;
  background:rgba(255,255,255,.7); border-radius:10px;
  padding:2px 8px; margin-top:2px;
}

/* 굿즈 옵션 선택 행 */
.goods-opt-row { display:flex; flex-wrap:wrap; gap:5px }
.goods-opt-btn {
  padding:4px 10px; border-radius:12px; border:1.5px solid var(--border2);
  font-size:10px; font-weight:500; cursor:pointer; transition:var(--tr);
  background:var(--bg);
}
.goods-opt-btn:hover { border-color:var(--black) }
.goods-opt-btn.active { background:var(--black); color:#fff; border-color:var(--black) }

/* 굿즈 주문 버튼 */
.btn-goods-order {
  display:block; width:100%; padding:11px; border-radius:var(--r-md);
  background:linear-gradient(135deg,#ff6b9d,#c44dff); color:#fff;
  border:none; font-size:13px; font-weight:700; cursor:pointer;
  transition:var(--tr); text-align:center;
}
.btn-goods-order:hover { opacity:.88; transform:translateY(-1px); box-shadow:0 4px 16px rgba(196,77,255,.35) }

/* ═══════════════════════ TOAST ═══════════════════════ */
.toast {
  position:fixed; bottom:24px; left:50%;
  transform:translateX(-50%) translateY(80px);
  background:var(--black); color:#fff;
  padding:11px 22px; border-radius:var(--r-md); font-size:12px; font-weight:500;
  box-shadow:var(--sh-lg); z-index:9999;
  transition:transform .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events:none; white-space:nowrap;
}
.toast.show { transform:translateX(-50%) translateY(0) }

/* ═══════════════════════ DRAG-OVER STATES ═══════════════════════ */
.img-drop-zone.drag-over,
.upload-zone.drag-over,
.font-drop-zone.drag-over {
  border-color: var(--black);
  background: var(--bg2);
  transform: scale(1.02);
}

/* ═══════════════════════ CANVAS VIEWPORT SCROLL ═══════════════════════ */
.canvas-viewport {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.canvas-viewport::-webkit-scrollbar { width: 7px; height: 7px }
.canvas-viewport::-webkit-scrollbar-track { background: transparent }
.canvas-viewport::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18); border-radius: 4px;
}

/* ═══════════════════════ CANVAS STAGE CENTERING ═══════════════════════ */
.canvas-stage {
  cursor: default;
  user-select: none;
}
.canvas-stage canvas {
  display: block;
}

/* ═══════════════════════ CONTEXT TOOLBAR FLEX FIX ═══════════════════════ */
.ctx-toolbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap }
.ctx-text-opts { display: flex; align-items: center; gap: 3px }

/* ═══════════════════════ LAYER VISIBILITY ICON ═══════════════════════ */
.layer-item .li-vis {
  background: none; border: none; cursor: pointer; padding: 2px 4px;
  border-radius: var(--r-xs); transition: var(--tr); opacity: 0;
  display: flex; align-items: center; justify-content: center;
}
.layer-item:hover .li-vis { opacity: 1 }

/* ═══════════════════════ EDITOR TOOLBAR OVERFLOW FIX ═══════════════════════ */
.editor-toolbar {
  scrollbar-width: none;
}
.editor-toolbar::-webkit-scrollbar { display: none }

/* ═══════════════════════ ZOOM SLIDER THUMB ═══════════════════════ */
.zoom-slider::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; cursor: pointer; border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ═══════════════════════ PRINT SLIDER THUMB ═══════════════════════ */
.print-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--black); cursor: pointer;
}

/* ═══════════════════════ BUTTON FOCUS RING ═══════════════════════ */
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* ═══════════════════════ UPLOADED IMAGE HOVER DELETE ═══════════════════════ */
.uimg-item::after {
  content: '×';
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: 12px; line-height: 18px; text-align: center;
  opacity: 0; transition: var(--tr); cursor: pointer;
  pointer-events: none;
}
.uimg-item:hover::after { opacity: 1 }

/* ═══════════════════════ TOAST MAX-WIDTH ═══════════════════════ */
.toast { max-width: 90vw; white-space: normal; text-align: center; line-height: 1.4 }

/* ═══════════════════════ HAM SIDEBAR MOBILE FULL WIDTH ═══════════════════════ */
@media(max-width:440px){
  .ham-sidebar { width:100vw }
}

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media(max-width:1200px){
  :root{--sb-w:230px;--rp-w:240px}
  .diary-grid{grid-template-columns:260px 1fr 240px}
  .d-card-wide{grid-column:2;grid-row:1/3}
}
@media(max-width:1280px){
  .print-layout{grid-template-columns:1fr 340px}
}
@media(max-width:1024px){
  .editor-body{grid-template-columns:58px 1fr 0}
  .sbt span{display:none}
  .right-props{display:none}
  .diary-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto}
  .d-card-wide{grid-column:1/3}
  .print-layout{grid-template-columns:1fr}
  .qr-layout{grid-template-columns:1fr}
  .section-wrap{padding:24px 28px}
}
@media(max-width:768px){
  .editor-body{grid-template-columns:52px 1fr}
  .modal-inner{grid-template-columns:1fr}
  .modal-preview{display:none}
  .diary-grid{grid-template-columns:1fr}
  .d-card-wide{grid-column:1}
  .section-wrap{padding:16px 18px}
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE LAYOUT — PC / TABLET / MOBILE
═══════════════════════════════════════════════════════════ */

/* ── PC (≥1025px): 상단 네비 표시, 하단탭 숨김 ── */
.pc-nav { display:flex }
.join-txt { display:inline }

/* ── 태블릿 (769px~1024px): 네비 숨김, 햄버거만 ── */
@media(max-width:1024px){
  .pc-nav { display:none !important }
  .hdr-right .hdr-text-btn .join-txt { display:none }
  .hdr-right .hdr-text-btn { padding:7px 10px }
  .site-header-inner { gap:8px }
  .brand-logo { font-size:16px; letter-spacing:2px }
}

/* ── 모바일 (≤768px): 하단 탭바 표시 ── */
@media(max-width:768px){
  .pc-nav { display:none !important }
  .hdr-right .hdr-text-btn { display:none !important }
  .hdr-right .hdr-icon-btn:first-of-type { display:none }
  .hdr-right { gap:4px }
  .site-header-inner { padding:0 12px; gap:6px }
  .brand-logo { font-size:15px; letter-spacing:1.5px }
  /* 하단 탭바 활성화 */
  .bottom-tab-bar { display:flex !important }
  /* 콘텐츠 아래 패딩 (탭바 높이만큼) */
  body { padding-bottom:60px }
}

/* ── 하단 탭바 기본 (항상 숨김, 모바일에서만 flex) ── */
.bottom-tab-bar {
  display:none;
  position:fixed; bottom:0; left:0; right:0;
  height:60px; background:var(--white);
  border-top:1.5px solid var(--border);
  z-index:1100; padding:0;
  box-shadow:0 -4px 16px rgba(0,0,0,.10);
}
.btb-item {
  flex:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:3px; border:none; background:none;
  color:var(--text-3); font-size:10px; font-weight:500;
  cursor:pointer; transition:var(--tr); padding:8px 0;
  position:relative;
}
.btb-item i { font-size:20px; line-height:1 }
.btb-item span { font-size:9px; margin-top:1px }
.btb-item.active { color:var(--black) }
.btb-item.active i { color:var(--black) }
.btb-item:hover { color:var(--black) }
/* 활성 표시 점 */
.btb-item.active::after {
  content:''; position:absolute;
  top:6px; width:4px; height:4px;
  background:var(--black); border-radius:50%;
}

/* ── 홈 섹션 ── */
.home-wrap {
  padding-bottom:20px;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
/* 홈 섹션 항상 올바르게 표시 */
#sec-home { width:100%; }
#sec-home.active { display:block; }

/* 히어로 배너 */
.hero-banner {
  position:relative; overflow:hidden;
  border-radius:0; margin-bottom:24px;
  width:100%;
}
.hero-slides {
  position:relative !important; height:300px !important;
  overflow:hidden !important; display:block !important;
}
@media(max-width:768px){ .hero-slides{ height:200px !important; } }
.hero-slide {
  position:absolute !important;
  top:0 !important; left:0 !important; right:0 !important; bottom:0 !important;
  display:flex !important; align-items:center;
  padding:40px; opacity:0 !important; transition:opacity .5s ease;
  width:100% !important; height:100% !important;
}
.hero-slide.active { opacity:1 !important; z-index:2 !important; }
.hero-content { max-width:600px }
.hero-badge {
  display:inline-block; background:rgba(255,255,255,.2);
  color:#fff; font-size:11px; font-weight:700;
  padding:4px 12px; border-radius:20px; margin-bottom:12px;
}
.hero-title {
  font-size:42px; font-weight:900; color:#fff;
  line-height:1.15; margin-bottom:12px;
  text-transform:uppercase; letter-spacing:-1px;
}
.hero-title span { color:var(--gold) }
@media(max-width:768px){
  .hero-title{ font-size:28px }
  .hero-slide{ padding:24px }
}
.hero-desc { font-size:14px; color:rgba(255,255,255,.8); line-height:1.6; margin-bottom:20px }
.hero-btn {
  display:inline-flex; align-items:center; gap:8px;
  background:#fff; color:#0d0d0d;
  padding:12px 24px; border-radius:var(--r-md);
  font-size:13px; font-weight:700; border:none; cursor:pointer;
  transition:var(--tr);
}
.hero-btn:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.2) }
.hero-btn-dark { background:var(--black); color:#fff }
.hero-dots {
  position:absolute; bottom:14px; left:50%; transform:translateX(-50%);
  display:flex; gap:6px; z-index:2;
}
.hero-dot {
  width:6px; height:6px; border-radius:50%;
  background:rgba(255,255,255,.4); cursor:pointer; transition:var(--tr);
}
.hero-dot.active { background:#fff; width:20px; border-radius:3px }

/* 카테고리 아이콘 */
.home-section-title {
  font-size:15px; font-weight:800; color:var(--text-1);
  padding:0 20px; margin-bottom:12px;
  display:flex; align-items:center; gap:8px;
}
.sec-badge {
  font-size:9px; font-weight:700; padding:2px 7px;
  border-radius:10px; background:var(--bg2); color:var(--text-3);
}
.sec-badge-hot { background:#ff3366; color:#fff }
.cat-icons {
  display:grid; grid-template-columns:repeat(8,1fr);
  gap:8px; padding:0 20px 20px; overflow-x:auto;
}
@media(max-width:768px){
  .cat-icons{ grid-template-columns:repeat(4,1fr); gap:12px; padding:0 16px 20px }
}
@media(max-width:480px){
  .cat-icons{ grid-template-columns:repeat(4,1fr) }
}
.cat-icon-item {
  display:flex; flex-direction:column; align-items:center;
  gap:6px; cursor:pointer; transition:var(--tr);
}
.cat-icon-item:hover { transform:translateY(-2px) }
.cat-icon-circle {
  width:52px; height:52px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; box-shadow:var(--sh-sm);
}
@media(max-width:768px){
  .cat-icon-circle{ width:48px; height:48px; border-radius:14px; font-size:20px }
}
.cat-icon-item span {
  font-size:10px; font-weight:600; color:var(--text-2);
  text-align:center; white-space:nowrap;
}

/* ── 홈 카테고리 모듈 ── */
.home-cat-module {
  padding:0 0 8px;
  display:flex; flex-direction:column; gap:0;
  background:#fff;
}
.hcm-block {
  border-bottom:1px solid #f0ede8;
  padding:16px 16px 12px;
}
.hcm-block:last-child { border-bottom:none; }
.hcm-title {
  font-size:12px; font-weight:800; color:#0d0d0d;
  margin-bottom:14px; display:flex; align-items:center; gap:6px;
  letter-spacing:0.3px;
}
.hcm-row {
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:8px;
}
@media(max-width:900px){
  .hcm-row { grid-template-columns:repeat(4,1fr) !important; gap:12px; }
}
@media(max-width:480px){
  .hcm-row { grid-template-columns:repeat(4,1fr) !important; gap:8px; }
}
.hcm-item {
  display:flex; flex-direction:column; align-items:center;
  gap:6px; cursor:pointer; transition:.18s ease;
  padding:4px 2px; border-radius:10px;
}
.hcm-item:hover { transform:translateY(-3px); background:#f9f8f6; }
.hcm-circle {
  width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; box-shadow:0 2px 8px rgba(0,0,0,.08);
  transition:.18s ease;
}
.hcm-item:hover .hcm-circle { box-shadow:0 4px 16px rgba(0,0,0,.14); }
.hcm-item span {
  font-size:10px; font-weight:600; color:#333330;
  text-align:center; line-height:1.3; word-break:keep-all;
}
@media(max-width:768px){
  .hcm-circle{ width:46px; height:46px; font-size:20px; }
  .hcm-item span { font-size:9px; }
}
@media(max-width:768px){
  .hcm-circle { width:44px; height:44px; border-radius:12px; font-size:18px; }
  .hcm-item span { font-size:9px; }
}

/* 다운로드 그리드 */
.download-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:16px; padding:0 20px 24px;
}
@media(max-width:1024px){ .download-grid{ grid-template-columns:repeat(2,1fr) } }
@media(max-width:600px){ .download-grid{ grid-template-columns:1fr } }
.dl-card {
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--r-lg); padding:20px;
  display:flex; flex-direction:column; gap:12px;
  transition:var(--tr); box-shadow:var(--sh-sm);
}
.dl-card:hover { box-shadow:var(--sh-md); transform:translateY(-2px) }
.dl-featured { border-color:var(--black); box-shadow:0 0 0 2px var(--black) }
.dl-icon {
  width:56px; height:56px; border-radius:14px;
  background:var(--bg); display:flex; align-items:center; justify-content:center;
  font-size:24px; color:var(--text-2);
}
.dl-featured .dl-icon { background:var(--black); color:#fff }
.dl-title { font-size:14px; font-weight:700; color:var(--text-1); margin-bottom:4px }
.dl-desc { font-size:12px; color:var(--text-3); line-height:1.5 }
.dl-meta {
  display:flex; justify-content:space-between;
  font-size:10px; color:var(--text-3); margin-top:4px;
}
.dl-btn {
  display:flex; align-items:center; justify-content:center; gap:6px;
  padding:10px; border-radius:var(--r-md);
  background:var(--black); color:#fff;
  border:none; font-size:12px; font-weight:600; cursor:pointer;
  transition:var(--tr); margin-top:auto;
}
.dl-btn:hover { background:#333 }
.dl-btn-primary { background:var(--black) }

/* 인기 템플릿 스크롤 */
.home-tpl-scroll {
  display:flex; gap:12px; padding:0 20px 20px;
  overflow-x:auto; scrollbar-width:none;
}
.home-tpl-scroll::-webkit-scrollbar { display:none }

/* 빠른 편집 배너 */
.quick-edit-banner {
  margin:0 20px 24px; padding:16px 20px;
  background:var(--bg); border:1.5px solid var(--border);
  border-radius:var(--r-lg); display:flex;
  align-items:center; justify-content:space-between;
  cursor:pointer; transition:var(--tr);
}
.quick-edit-banner:hover { box-shadow:var(--sh-md); transform:translateY(-1px) }
.qeb-title { font-size:14px; font-weight:700; color:var(--text-1); margin-bottom:3px }
.qeb-sub { font-size:11px; color:var(--text-3) }
.qeb-arrow { font-size:18px; color:var(--text-3) }

/* ── 베스트 섹션 ── */
.best-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:20px; flex-wrap:wrap; gap:12px;
}
.best-header h2 { font-size:20px; font-weight:800 }
.best-tabs { display:flex; gap:6px }
.best-tab {
  padding:6px 16px; border-radius:20px; border:1.5px solid var(--border);
  font-size:11px; font-weight:600; cursor:pointer; transition:var(--tr);
  background:var(--bg); color:var(--text-2);
}
.best-tab.active { background:var(--black); color:#fff; border-color:var(--black) }
.best-list { display:grid; grid-template-columns:repeat(3,1fr); gap:16px }
@media(max-width:768px){ .best-list{ grid-template-columns:repeat(2,1fr) } }
@media(max-width:480px){ .best-list{ grid-template-columns:1fr } }

.best-item {
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--r-lg); overflow:hidden; cursor:pointer;
  transition:var(--tr); display:flex; flex-direction:column;
}
.best-item:hover { box-shadow:var(--sh-md); transform:translateY(-2px) }
.best-rank {
  position:absolute; top:8px; left:8px;
  background:var(--black); color:#fff;
  font-size:10px; font-weight:800; width:22px; height:22px;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
}
.best-rank-1 { background:#c9a84c }
.best-rank-2 { background:#888 }
.best-rank-3 { background:#cd7f32 }
.best-thumb {
  position:relative; aspect-ratio:3/4; overflow:hidden;
  background:var(--bg);
}
.best-thumb.square { aspect-ratio:1/1 }
.best-info { padding:12px }
.best-name { font-size:12px; font-weight:700; color:var(--text-1); margin-bottom:4px }
.best-price { font-size:11px; font-weight:800; color:#e0005c }
.best-rating { font-size:10px; color:var(--text-3) }

/* ── 서비스 섹션 ── */
.service-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:16px; margin-bottom:20px;
}
@media(max-width:1024px){ .service-grid{ grid-template-columns:repeat(2,1fr) } }
@media(max-width:600px){ .service-grid{ grid-template-columns:1fr } }
.svc-card {
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--r-lg); padding:20px;
  display:flex; flex-direction:column; gap:12px;
  transition:var(--tr); cursor:pointer;
}
.svc-card:hover { box-shadow:var(--sh-md); transform:translateY(-2px) }
.svc-featured { border-color:var(--black); box-shadow:0 0 0 2px var(--black) }
.svc-icon {
  width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center; font-size:22px;
}
.svc-title { font-size:14px; font-weight:700; color:var(--text-1); margin-bottom:4px }
.svc-desc { font-size:12px; color:var(--text-3); line-height:1.5 }
.svc-meta { font-size:10px; color:var(--text-3) }
.svc-btn {
  display:flex; align-items:center; justify-content:center; gap:6px;
  padding:10px; border-radius:var(--r-md);
  background:var(--black); color:#fff;
  border:none; font-size:12px; font-weight:600; cursor:pointer;
  transition:var(--tr); margin-top:auto;
}
.svc-btn:hover { background:#333 }
.svc-btn-primary { background:var(--black) }

/* ── 멤버십 섹션 ── */
.membership-grid {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:16px; margin-bottom:28px;
}
@media(max-width:1024px){ .membership-grid{ grid-template-columns:repeat(2,1fr) } }
@media(max-width:600px){ .membership-grid{ grid-template-columns:1fr } }
.mem-card {
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--r-lg); padding:24px;
  display:flex; flex-direction:column; gap:10px;
  transition:var(--tr);
}
.mem-card.featured {
  border-color:var(--gold); box-shadow:0 0 0 2px var(--gold);
  background:linear-gradient(160deg,#fffbf0,#fff);
}
.mem-tier { font-size:9px; font-weight:700; color:var(--text-3); text-transform:uppercase; letter-spacing:1px }
.mem-price { font-size:28px; font-weight:900; color:var(--text-1); line-height:1 }
.mem-price span { font-size:12px; font-weight:400; color:var(--text-3) }
.mem-tagline { font-size:12px; color:var(--text-3) }
.mem-perks { list-style:none; display:flex; flex-direction:column; gap:6px; flex:1 }
.mem-perks li { font-size:11px; color:var(--text-2); display:flex; gap:6px; align-items:flex-start }
.mem-perks li.ok::before { content:'✓'; color:#059669; font-weight:700; flex-shrink:0 }
.mem-perks li.no::before { content:'—'; color:#ccc; flex-shrink:0 }
.mem-btn {
  padding:11px; border-radius:var(--r-md); border:none;
  font-size:12px; font-weight:700; cursor:pointer; transition:var(--tr);
  background:var(--black); color:#fff;
}
.mem-btn:hover { background:#333; transform:translateY(-1px) }
.mem-btn-outline {
  background:none; border:1.5px solid var(--border2); color:var(--text-1);
}
.mem-btn-outline:hover { background:var(--bg); border-color:var(--black) }
.mem-btn-gold { background:linear-gradient(135deg,#c9a84c,#f5d478); color:#0d0d0d }

/* 플랜 비교표 */
.plan-compare { overflow-x:auto }
.pc-title { font-size:14px; font-weight:800; color:var(--text-1); margin-bottom:12px }
.pc-table { min-width:500px; border:1.5px solid var(--border); border-radius:var(--r-md); overflow:hidden }
.pc-row { display:grid; grid-template-columns:1.5fr 1fr 1fr 1.5fr 1fr }
.pc-row:not(:last-child) { border-bottom:1px solid var(--border) }
.pc-cell { padding:10px 12px; font-size:11px; color:var(--text-2) }
.pc-head .pc-cell { background:var(--bg); font-weight:700; font-size:10px; color:var(--text-3) }
.pc-highlight { background:#fffbf0; font-weight:700; color:var(--gold) }

/* ── 모바일 반응형 ── */
@media(max-width:768px){
  .pc-nav { display:none }
  .hdr-btn-txt { display:none }
  .hdr-btn-join { padding:5px 8px }
  .bottom-tab-bar { display:flex }
  .main-wrapper { padding-bottom:60px }
  .home-wrap { padding-bottom:70px }
  .hero-slides { height:220px }
  .hero-title { font-size:24px }
  .hero-desc { font-size:12px }
  .hero-btn { padding:10px 18px; font-size:12px }
  .hero-slide { padding:20px }
  .download-grid { padding:0 16px 20px }
  .quick-edit-banner { margin:0 16px 20px }
  .home-section-title { padding:0 16px }
  .home-tpl-scroll { padding:0 16px 20px }
  .service-grid { grid-template-columns:1fr }
  .membership-grid { grid-template-columns:1fr 1fr }
  .mem-price { font-size:22px }
}
@media(max-width:480px){
  .membership-grid { grid-template-columns:1fr }
}

/* 홈 인기 템플릿 카드 */
.home-tpl-card {
  flex-shrink:0; width:110px; cursor:pointer; transition:var(--tr);
}
.home-tpl-card:hover { transform:translateY(-2px) }
.htc-thumb {
  width:110px; height:146px; border-radius:var(--r-md);
  overflow:hidden; margin-bottom:6px;
  border:1.5px solid var(--border); background:var(--bg);
}
.htc-name { font-size:10px; font-weight:600; color:var(--text-1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.htc-cat  { font-size:9px; color:var(--text-3) }

/* ═══════════════════════════════════════════════════════════
   SEARCH MEGA PANEL
═══════════════════════════════════════════════════════════ */

/* 오버레이 */
.search-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.45); backdrop-filter:blur(4px);
  z-index:1900; opacity:0; transition:opacity .25s ease;
}
.search-overlay.open { display:block; opacity:1 }

/* 패널 본체 */
.search-panel {
  position:fixed; top:0; right:0;
  width:min(500px, 100vw);
  height:100vh; overflow-y:auto;
  background:var(--white);
  box-shadow:-8px 0 40px rgba(0,0,0,.18);
  z-index:1950;
  transform:translateX(100%);
  transition:transform .32s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column; gap:0;
}
.search-panel.open { transform:translateX(0) }

/* 스크롤바 */
.search-panel::-webkit-scrollbar { width:4px }
.search-panel::-webkit-scrollbar-track { background:transparent }
.search-panel::-webkit-scrollbar-thumb { background:var(--border); border-radius:4px }

/* 패널 헤더 */
.sp-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 22px 14px;
  border-bottom:1.5px solid var(--border);
  position:sticky; top:0; background:var(--white); z-index:10;
}
.sp-logo {
  font-family:'Inter',sans-serif; font-size:17px; font-weight:900;
  letter-spacing:3px; text-transform:uppercase; color:var(--black);
}
.sp-logo span { color:var(--gold) }
.sp-close {
  width:34px; height:34px; border-radius:50%;
  border:none; background:var(--bg); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:var(--text-2); font-size:14px; transition:var(--tr);
}
.sp-close:hover { background:var(--border); color:var(--black) }

/* ① 검색 박스 영역 */
.sp-search-box {
  padding:20px 22px 16px;
  background:linear-gradient(135deg,#f8f6ff 0%,#fff9f0 100%);
  border-bottom:1.5px solid var(--border);
}
.sp-search-label {
  font-size:11px; font-weight:700; color:var(--text-3);
  text-transform:uppercase; letter-spacing:1.2px;
  margin-bottom:10px; display:flex; align-items:center; gap:6px;
}
.sp-search-wrap {
  display:flex; align-items:center; gap:0;
  background:#fff; border:2px solid var(--black);
  border-radius:var(--r-md); overflow:hidden;
  transition:box-shadow .2s;
}
.sp-search-wrap:focus-within {
  box-shadow:0 0 0 3px rgba(201,168,76,.3);
  border-color:var(--gold);
}
.sp-search-icon {
  padding:0 12px; color:var(--text-3); font-size:14px; flex-shrink:0;
}
.sp-search-input {
  flex:1; padding:13px 8px; border:none; outline:none;
  font-size:14px; font-family:inherit; color:var(--black);
  background:transparent;
}
.sp-search-input::placeholder { color:#aaa }
.sp-ask-btn {
  padding:0 16px; height:48px; border:none; cursor:pointer;
  background:var(--black); color:#fff;
  font-size:12px; font-weight:700;
  display:flex; align-items:center; gap:6px;
  flex-shrink:0; transition:var(--tr);
}
.sp-ask-btn:hover { background:#333 }
.sp-ask-btn i { font-size:12px }

/* AI 답변 박스 */
.sp-answer {
  margin-top:12px; padding:14px 16px;
  background:#fff; border:1.5px solid var(--gold);
  border-radius:var(--r-md);
  font-size:13px; line-height:1.7; color:var(--text-1);
  position:relative;
}
.sp-answer::before {
  content:''; font-size:14px;
}

/* 추천 질문 태그 */
.sp-tag-row {
  display:flex; flex-wrap:wrap; gap:6px; margin-top:12px;
}
.sp-tag {
  padding:5px 12px; border-radius:20px;
  background:#fff; border:1.5px solid var(--border);
  font-size:11px; font-weight:500; color:var(--text-2);
  cursor:pointer; transition:var(--tr); white-space:nowrap;
}
.sp-tag:hover {
  background:var(--black); color:#fff; border-color:var(--black);
}

/* ② 섹션 공통 */
.sp-section {
  padding:18px 22px 16px;
  border-bottom:1.5px solid var(--border);
}
.sp-section:last-child { border-bottom:none; padding-bottom:30px }
.sp-section-title {
  font-size:10px; font-weight:800; color:var(--text-3);
  text-transform:uppercase; letter-spacing:1.5px;
  margin-bottom:14px;
}

/* ② 서비스 그리드 */
.sp-service-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px;
}
.sp-svc-btn {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:14px 8px; border-radius:var(--r-md);
  background:var(--bg); border:1.5px solid var(--border);
  cursor:pointer; transition:var(--tr);
  font-size:11px; font-weight:600; color:var(--text-1);
}
.sp-svc-btn:hover {
  border-color:var(--black); background:#fff;
  transform:translateY(-2px); box-shadow:var(--sh-sm);
}
.sp-svc-icon {
  width:44px; height:44px; border-radius:var(--r-md);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:20px;
}

/* ③ 빠른 이동 그리드 */
.sp-quick-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:8px;
}
.sp-quick-btn {
  display:flex; flex-direction:column; align-items:center;
  gap:4px; padding:12px 6px;
  border-radius:var(--r-md);
  background:var(--bg); border:1.5px solid var(--border);
  cursor:pointer; transition:var(--tr);
}
.sp-quick-btn i { font-size:22px; line-height:1 }
.sp-quick-btn span {
  font-size:10px; font-weight:600; color:var(--text-1);
  text-align:center; line-height:1.3;
}
.sp-quick-btn small {
  font-size:9px; font-weight:700;
  color:var(--text-3); background:var(--border);
  padding:1px 5px; border-radius:6px;
}
.sp-quick-btn:hover {
  border-color:var(--black); background:#fff;
  transform:translateY(-2px); box-shadow:var(--sh-sm);
}
.sp-quick-btn:hover small { background:var(--black); color:#fff }

/* ② 카테고리 탭 네비게이션 */
.sp-cat-tabs {
  display:flex; gap:6px; flex-wrap:wrap;
  margin-bottom:16px;
}
.sp-cat-tab {
  padding:6px 14px; border-radius:20px;
  border:1.5px solid var(--border);
  background:#fff; color:var(--text-2);
  font-size:11px; font-weight:700; cursor:pointer;
  transition:var(--tr); white-space:nowrap;
}
.sp-cat-tab:hover {
  border-color:var(--black); color:var(--black);
}
.sp-cat-tab.active {
  background:var(--black); color:#fff; border-color:var(--black);
}

/* 카테고리 패널 (탭 전환) */
.sp-cat-panel {
  display:none;
}
.sp-cat-panel.active {
  display:block;
}

/* 링크 그리드 */
.sp-link-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px;
}
.sp-link-item {
  display:flex; flex-direction:column; align-items:center; gap:7px;
  padding:12px 8px; border-radius:var(--r-md);
  background:var(--bg); border:1.5px solid var(--border);
  cursor:pointer; transition:var(--tr);
  font-size:11px; font-weight:600; color:var(--text-1);
  text-align:center; text-decoration:none;
}
.sp-link-item i {
  font-size:18px; color:var(--text-2);
  transition:color .2s;
}
.sp-link-item:hover {
  border-color:var(--black); background:#fff;
  transform:translateY(-2px); box-shadow:var(--sh-sm);
}
.sp-link-item:hover i { color:var(--black) }

/* FAQ 그리드 (고객지원 탭) */
.sp-faq-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:8px;
  margin-bottom:12px;
}
.sp-faq-card {
  padding:12px 14px; border-radius:var(--r-md);
  background:var(--bg); border:1.5px solid var(--border);
  cursor:pointer; transition:var(--tr);
}
.sp-faq-card:hover {
  border-color:var(--black); background:#fff;
  box-shadow:var(--sh-sm);
}
.sp-faq-icon {
  font-size:22px; margin-bottom:6px;
  color:var(--text-2);
}
.sp-faq-icon i {
  font-size:18px;
}
.sp-faq-title {
  font-size:12px; font-weight:700; color:var(--black);
  margin-bottom:3px;
}
.sp-faq-desc {
  font-size:10px; color:var(--text-3); line-height:1.4;
}

/* 고객지원 버튼 행 */
.sp-support-row {
  display:flex; gap:8px;
}
.sp-support-btn {
  flex:1; padding:10px 14px; border-radius:var(--r-md);
  border:1.5px solid var(--border); background:#fff;
  font-size:12px; font-weight:600; color:var(--text-1);
  cursor:pointer; transition:var(--tr);
  display:flex; align-items:center; justify-content:center; gap:6px;
}
.sp-support-btn:hover {
  border-color:var(--black); background:var(--black); color:#fff;
}
.sp-support-btn i { font-size:13px }

/* ═══════════════════════════════════════════════════════════
   로그인 / 회원가입 — Auth Pages
═══════════════════════════════════════════════════════════ */

/* sec-login 섹션 — 로그인+회원가입 통합 */
#sec-login {
  background: #ffffff !important;
}
/* sec-register는 sec-login에 통합됨 — 절대 표시 안 함 */
#sec-register {
  display: none !important;
}

/* 전체 래퍼: 좌(브랜드) + 우(폼) 2단 레이아웃 */
.auth-wrap {
  display: grid !important;
  grid-template-columns: 340px 1fr !important;
  width: 100% !important;
  min-height: calc(100vh - 56px) !important;
  background: #ffffff !important;
  align-items: stretch !important;
  position: relative !important;
  overflow: hidden !important;
}
/* 구분선 — 왼쪽 패널 우측에 항상 그림 */
.auth-wrap::after {
  content: '';
  position: absolute;
  left: 340px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: #e8e6e0;
  pointer-events: none;
  z-index: 1;
}
@media(max-width:900px){
  .auth-wrap { grid-template-columns: 1fr !important; }
  .auth-wrap::after { display: none !important; }
}

/* ── 왼쪽 브랜드 패널 ── */
.auth-brand {
  background: #ffffff !important;
  color: #0d0d0d;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 60px 44px;
  min-height: calc(100vh - 56px);
}
/* 회원가입 브랜드 패널 */
.auth-brand-join {
  background: #ffffff !important;
}
@media(max-width:900px){
  .auth-brand { display: none !important; }
}

.auth-brand-inner {
  max-width: 260px;
  position: sticky;
  top: 80px;
}

/* 브랜드 로고 텍스트 */
.auth-logo {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(0,0,0,.35);
  margin-bottom: 48px;
}
.auth-logo span { color: #c9a84c; }

/* Welcome Back / Join AKETING 헤드라인 */
.auth-headline {
  font-family: 'Inter', sans-serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.05;
  color: #0d0d0d;
  margin-bottom: 20px;
  letter-spacing: -2px;
}
.auth-hl-gold { color: #c9a84c; }

/* 서브 태그라인 */
.auth-tagline {
  font-size: 13px;
  font-weight: 400;
  color: rgba(0,0,0,.5);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── 오른쪽 폼 패널 ── */
.auth-form-panel {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 60px 32px !important;
  background: #ffffff !important;
  overflow-y: auto;
  min-height: calc(100vh - 56px);
}

/* 폼 카드 */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 16px;
  padding: 44px 40px;
  border: 1.5px solid #e8e6e3;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
@media(max-width:480px){
  .auth-card { padding: 28px 20px; border-radius: 12px; }
}

/* 카드 제목 */
.auth-card-title {
  font-size: 26px;
  font-weight: 900;
  color: #0d0d0d;
  margin-bottom: 28px;
  letter-spacing: -.5px;
}

/* ── 입력 필드 ── */
.auth-field { margin-bottom: 18px; }

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 7px;
}
.auth-req { color: #e53e3e; }

.auth-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #d8d5d0;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: #0d0d0d;
  background: #ffffff;
  transition: border-color .18s ease, box-shadow .18s ease;
  outline: none;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
}
.auth-input:focus {
  border-color: #1a1a1a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,0,0,.07);
}
.auth-input.error { border-color: #e53e3e; box-shadow: 0 0 0 3px rgba(229,62,62,.08); }
.auth-input::placeholder { color: #b0aaa0; font-size: 13px; }

.auth-pw-wrap { position: relative; }
.auth-pw-wrap .auth-input { padding-right: 42px; }
.auth-pw-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  border: none; background: none;
  color: #aaa; cursor: pointer;
  font-size: 14px; padding: 4px;
  transition: .18s ease;
}
.auth-pw-toggle:hover { color: #0d0d0d; }

.auth-field-err {
  display: block;
  font-size: 11px;
  color: #e53e3e;
  margin-top: 4px;
  min-height: 14px;
}

/* 비밀번호 강도 바 */
.pw-strength-bar {
  height: 4px;
  background: #e2e0dc;
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width .3s ease, background .3s ease;
}
.pw-strength-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-top: 4px;
  min-height: 14px;
}

/* 체크박스 행 */
.auth-row-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.auth-check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
}
.auth-check-label input { accent-color: #000; width:15px; height:15px; }

.auth-agree-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  margin-bottom: 8px;
  line-height: 1.5;
}
.auth-agree-label input { accent-color: #000; margin-top: 2px; flex-shrink:0; width:15px; height:15px; }

/* 링크 버튼 */
.auth-link-btn {
  border: none; background: none;
  color: #888; font-size: 13px;
  cursor: pointer; padding: 0;
  transition: .18s ease;
}
.auth-link-btn:hover { color: #000; }
.auth-link-bold { color: #000; font-weight: 700; text-decoration: underline; font-size: 13px; }

/* 제출 버튼 */
.auth-submit-btn {
  width: 100%;
  height: 52px;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .18s ease, transform .18s ease;
  margin-bottom: 22px;
  letter-spacing: .2px;
}
.auth-submit-btn:hover { background: #222; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.auth-submit-btn:active { transform: translateY(0); }
.auth-submit-btn:disabled { background: #aaa; cursor: not-allowed; transform: none; }

/* 구분선 */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: #bbb;
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e6e3;
}

/* 소셜 로그인 버튼 */
.auth-social-btn {
  width: 100%;
  height: 48px;
  border: 1.5px solid #d8d5d0;
  border-radius: 10px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
  margin-bottom: 10px;
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
}
.auth-social-btn:hover { border-color: #888; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.auth-google img { border-radius: 2px; }
.auth-kakao { background: #FEE500; border-color: #FEE500; color: #3c1e1e; }
.auth-kakao:hover { background: #f5dc00; border-color: #f5dc00; box-shadow: 0 2px 8px rgba(254,229,0,.4); }
/* 네이버 */
.auth-naver { background: #03C75A; border-color: #03C75A; color: #ffffff; }
.auth-naver:hover { background: #02ae4f; border-color: #02ae4f; box-shadow: 0 2px 8px rgba(3,199,90,.35); }
.naver-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: #ffffff; color: #03C75A;
  font-size: 12px; font-weight: 900;
  border-radius: 3px; flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

/* 하단 전환 텍스트 */
.auth-switch-txt {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* 로그인 완료 후 헤더 유저 영역 */
.hdr-user-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hdr-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #f5d478);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #0d0d0d;
  cursor: pointer; flex-shrink: 0;
}
.hdr-user-name {
  font-size: 12px; font-weight: 600; color: #0d0d0d;
  white-space: nowrap; max-width: 80px;
  overflow: hidden; text-overflow: ellipsis;
}
.hdr-logout-btn {
  padding: 5px 10px;
  border: 1.5px solid #e2e0dc;
  border-radius: 8px;
  background: #fff; color: #888880;
  font-size: 11px; font-weight: 600;
  cursor: pointer; transition: .18s ease;
  white-space: nowrap;
}
.hdr-logout-btn:hover { border-color: #0d0d0d; color: #0d0d0d; }

/* ═══════════════════════════════════════════════════════════
   파일 선택 섹션 — 인쇄 주문 STEP 1
═══════════════════════════════════════════════════════════ */

/* 탭 행 */
/* ──────────────────────────────────────────
   인쇄 주문 파일 선택 — 개선된 UI v20250322b
────────────────────────────────────────── */

/* 탭 버튼 — 큰 2분할 버튼 */
.pf-tab-row {
  display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:16px;
}
.pf-tab {
  padding:0; border:1.5px solid #e2e0dc;
  border-radius:14px; background:#fff;
  cursor:pointer; transition:.18s ease; text-align:left;
}
.pf-tab.active {
  border-color:#0d0d0d; background:#0d0d0d;
}
.pf-tab:not(.active):hover {
  border-color:#0d0d0d; background:#f9f8f6;
}
.pf-tab-inner {
  display:flex; flex-direction:column; gap:3px;
  padding:14px 18px;
}
.pf-tab-inner > i {
  font-size:18px; color:#888880; margin-bottom:4px;
}
.pf-tab.active .pf-tab-inner > i { color:#c9a84c; }
.pf-tab-label {
  font-size:13px; font-weight:700; color:#0d0d0d; display:block;
}
.pf-tab.active .pf-tab-label { color:#fff; }
.pf-tab-sub {
  font-size:11px; color:#888880; display:block;
}
.pf-tab.active .pf-tab-sub { color:rgba(255,255,255,.6); }

/* 검색 영역 */
.pf-search-row {
  display:flex; align-items:center; gap:10px; margin-bottom:10px;
}
.pf-search-wrap {
  flex:1; position:relative; display:flex; align-items:center;
}
.pf-search-wrap > i {
  position:absolute; left:12px; color:#aaa; font-size:13px; pointer-events:none;
}
.pf-search-input {
  width:100%; padding:9px 12px 9px 34px;
  border:1.5px solid #e2e0dc; border-radius:10px;
  font-size:12px; color:#0d0d0d; background:#fafaf8;
  outline:none; transition:.15s ease; font-family:inherit;
}
.pf-search-input:focus { border-color:#0d0d0d; background:#fff; }
.pf-proj-count {
  font-size:11px; color:#888880; white-space:nowrap; font-weight:600;
}

/* ── 프로젝트 리스트형 (이전 그리드형 대체) */
.pf-project-list {
  display:flex; flex-direction:column; gap:6px;
  max-height:320px; overflow-y:auto;
  padding-right:2px;
}
.pf-project-list::-webkit-scrollbar { width:4px; }
.pf-project-list::-webkit-scrollbar-track { background:transparent; }
.pf-project-list::-webkit-scrollbar-thumb { background:#e2e0dc; border-radius:2px; }

.pf-proj-row {
  display:flex; align-items:center; gap:12px;
  padding:10px 14px; border:1.5px solid #e8e6e0;
  border-radius:12px; background:#fff;
  cursor:pointer; transition:.18s ease;
}
.pf-proj-row:hover { border-color:#0d0d0d; background:#fafafa; }
.pf-proj-row.selected {
  border-color:#059669; background:#f0fdf4;
  box-shadow:0 0 0 3px rgba(5,150,105,.1);
}
.pf-proj-row-thumb {
  width:44px; height:44px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; flex-shrink:0; overflow:hidden;
}
.pf-proj-row-info { flex:1; min-width:0; }
.pf-proj-row-name {
  font-size:13px; font-weight:700; color:#0d0d0d;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  margin-bottom:2px;
}
.pf-proj-row-meta { font-size:11px; color:#888880; }
.pf-proj-row-right {
  display:flex; align-items:center; flex-shrink:0;
}
.pf-row-sel-badge {
  display:inline-flex; align-items:center; gap:4px;
  background:#059669; color:#fff;
  font-size:10px; font-weight:700;
  padding:3px 8px; border-radius:6px;
}
.pf-row-arrow { color:#ccc; font-size:12px; }
.pf-proj-row:hover .pf-row-arrow { color:#0d0d0d; }
.pf-proj-row.selected { border-color:#0d0d0d !important; background:#f8f8f8 !important; box-shadow:0 0 0 2px #0d0d0d !important; }
.pf-upload-item.selected { border-color:#0d0d0d !important; background:#f8f8f8 !important; box-shadow:0 0 0 2px #0d0d0d !important; }
.badge-multi-sel { display:inline-flex; align-items:center; background:#0d0d0d; color:#fff; font-size:10px; font-weight:700; padding:2px 8px; border-radius:10px; margin-left:6px; vertical-align:middle; }

.pf-empty {
  text-align:center; padding:40px 16px;
  color:#888880; font-size:12px; line-height:1.8;
}
.pf-empty i { font-size:36px; color:#d0cec8; margin-bottom:12px; display:block; }
.btn-outline-sm {
  margin-top:12px; padding:8px 18px;
  border:1.5px solid #0d0d0d; border-radius:8px;
  background:#fff; color:#0d0d0d;
  font-size:11px; font-weight:600; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px;
  transition:.18s ease;
}
.btn-outline-sm:hover { background:#0d0d0d; color:#fff; }

/* 파일 업로드 존 */
.pf-upload-zone {
  border:2px dashed #c9c6c0; border-radius:14px;
  padding:36px 20px; text-align:center;
  cursor:pointer; transition:.18s ease; background:#fafaf8;
}
.pf-upload-zone:hover, .pf-upload-zone.drag-over {
  border-color:#0d0d0d; background:#f5f4f2;
}
.pf-upload-zone i {
  font-size:36px; color:#c9c6c0; margin-bottom:12px; display:block;
}
.pf-upload-zone:hover i, .pf-upload-zone.drag-over i { color:#0d0d0d; }
.pf-upload-main { font-size:14px; font-weight:700; color:#0d0d0d; margin-bottom:4px; }
.pf-upload-sub  { font-size:11px; color:#888880; }

/* 업로드 파일 리스트 */
.pf-upload-list { margin-top:12px; display:flex; flex-direction:column; gap:8px; }
.pf-upload-item {
  display:flex; align-items:center; gap:10px;
  padding:10px 14px; border:1.5px solid #e2e0dc;
  border-radius:10px; background:#fff; cursor:pointer;
  transition:.18s ease;
}
.pf-upload-item:hover { border-color:#0d0d0d; }
.pf-upload-item.selected { border-color:#059669; background:#f0fdf4; }
.pf-upload-item-icon {
  width:36px; height:36px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; flex-shrink:0;
}
.pf-upload-item-info { flex:1; min-width:0; }
.pf-upload-item-name {
  font-size:12px; font-weight:600; color:#0d0d0d;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.pf-upload-item-size { font-size:10px; color:#888880; margin-top:1px; }
.pf-upload-item-del {
  width:28px; height:28px; border-radius:50%;
  border:none; background:none; color:#ccc;
  font-size:14px; cursor:pointer; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  transition:.18s ease;
}
.pf-upload-item-del:hover { background:#fee2e2; color:#dc2626; }

/* 선택 완료 요약 바 */
.pf-selected-summary {
  margin-top:14px; padding:14px 18px;
  background:#f0fdf4; border:1.5px solid #059669;
  border-radius:12px;
}
.pf-selected-inner {
  display:flex; align-items:center; gap:12px;
}
.pf-sel-check {
  width:36px; height:36px; border-radius:50%;
  background:#059669; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; flex-shrink:0;
}
.pf-sel-text { flex:1; min-width:0; }
.pf-sel-name {
  font-size:13px; font-weight:700; color:#0d0d0d;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.pf-sel-info { font-size:11px; color:#059669; margin-top:2px; }
.pf-sel-change {
  padding:7px 16px; border:1.5px solid #0d0d0d;
  border-radius:8px; background:#fff; color:#0d0d0d;
  font-size:11px; font-weight:600; cursor:pointer;
  flex-shrink:0; transition:.18s ease;
  display:flex; align-items:center; gap:5px;
}
.pf-sel-change:hover { background:#0d0d0d; color:#fff; }

/* 모바일 대응 */
@media(max-width:600px) {
  .pf-tab-inner { padding:12px 14px; }
  .pf-tab-label { font-size:12px; }
  .pf-project-list { max-height:260px; }
  .pf-tab-row { gap:8px; }
}

/*   캐시 우회용 최종 강제 규칙 (배포 환경에서도 반드시 적용)
═══════════════════════════════════════════════════════════ */

/* 레이아웃 기본 */
body { overflow-x:hidden !important; background:#ffffff !important; }
.main-wrapper {
  margin-top:56px !important;
  width:100% !important;
  overflow-x:hidden !important;
}

/* 에디터 툴바 */
#editorToolbar { display:none !important; }
#editorToolbar.visible { display:flex !important; }

/* 섹션 표시 제어 */
.app-section { display:none !important; }
.app-section.active { display:block !important; }

/* 히어로 배너 슬라이더 */
.hero-banner {
  position:relative !important;
  overflow:hidden !important;
  margin-bottom:0 !important;
}
.hero-slides {
  position:relative !important;
  height:300px !important;
  overflow:hidden !important;
}
@media(max-width:768px){
  .hero-slides { height:210px !important; }
}
.hero-slide {
  position:absolute !important;
  top:0 !important; left:0 !important;
  right:0 !important; bottom:0 !important;
  width:100% !important; height:100% !important;
  display:flex !important;
  align-items:center !important;
  opacity:0 !important;
  transition:opacity .5s ease !important;
  z-index:0 !important;
}
.hero-slide.active {
  opacity:1 !important;
  z-index:2 !important;
}

/* 홈 카테고리 모듈 최종 */
.home-cat-module {
  padding:0 !important;
  background:#fff !important;
}
.hcm-block {
  padding:16px 16px 12px !important;
}
.hcm-row {
  display:grid !important;
}
.hcm-circle {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* 헤더 */
.site-header {
  position:fixed !important;
  top:0 !important; left:0 !important; right:0 !important;
  height:56px !important;
  z-index:1000 !important;
  background:#fff !important;
}

/* 모바일 조정 */
@media(max-width:480px){
  .search-panel { width:100vw }
  .sp-service-grid { grid-template-columns:repeat(3,1fr) }
  .sp-quick-grid { grid-template-columns:repeat(4,1fr) }
  .sp-quick-btn span { font-size:9px }
}

/* ═══════════════════════════════════════════════════════════
   CALENDAR DAY MODAL (calDayModal) — 날짜별 파일 관리
═══════════════════════════════════════════════════════════ */
.cdm-wrap { padding: 6px 0 4px; }
.cdm-header {
  display:flex; align-items:center; gap:14px;
  padding:0 4px 18px; border-bottom:1.5px solid #f0ede8;
  margin-bottom:18px;
}
.cdm-date-badge {
  display:inline-flex; align-items:center; justify-content:center;
  background:#0d0d0d; color:#fff;
  font-size:14px; font-weight:900;
  padding:8px 18px; border-radius:100px;
  letter-spacing:-.3px; flex-shrink:0;
}
.cdm-title {
  font-size:18px; font-weight:900; color:#0d0d0d; margin:0;
  letter-spacing:-.3px;
}

/* 탭 */
.cdm-tabs {
  display:flex; gap:6px; margin-bottom:18px;
  background:#f5f4f2; padding:5px; border-radius:14px;
}
.cdm-tab {
  flex:1; padding:11px 10px; border:none; background:transparent;
  border-radius:10px; font-size:13px; font-weight:700;
  color:#999; cursor:pointer; transition:.18s ease;
  display:flex; align-items:center; justify-content:center; gap:6px;
}
.cdm-tab.active {
  background:#fff; color:#0d0d0d;
  box-shadow:0 2px 8px rgba(0,0,0,.10);
}
.cdm-tab:not(.active):hover { color:#0d0d0d; background:rgba(255,255,255,.5); }

/* 파일 목록 */
.cdm-file-list { display:flex; flex-direction:column; gap:8px; min-height:80px; }
.cdm-file-item {
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; border:1.5px solid #f0ede8;
  border-radius:12px; background:#fff;
  transition:.15s ease; user-select:none;
}
.cdm-file-item:hover { border-color:#c9a84c; background:#fffdf5; }
.cdm-file-item.selected {
  border-color:#0d0d0d; background:#f9f8f6;
  border-bottom-left-radius:0; border-bottom-right-radius:0;
  border-bottom-color:transparent;
}
/* 저장 모달로 저장된 파일 강조 */
.cdm-file-item.cdm-file-saved {
  border-color:#d1e8ff; background:#f8fbff;
}
.cdm-file-item.cdm-file-saved:hover { border-color:#4a90d9; background:#edf5ff; }
.cdm-file-item.cdm-file-saved.selected { border-color:#1a6bb5; background:#e8f2ff; border-bottom-color:transparent; }
.cdm-saved-badge {
  display:inline-block; font-size:9px; font-weight:700;
  background:#4a90d9; color:#fff;
  padding:1px 6px; border-radius:10px; vertical-align:middle;
}
.cdm-file-icon {
  width:40px; height:40px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0;
}
.cdm-file-info { flex:1; min-width:0; }
.cdm-file-name {
  font-size:13px; font-weight:700; color:#0d0d0d;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.cdm-file-meta { font-size:11px; color:#888; margin-top:2px; }

/* 화살표 아이콘 */
.cdm-item-arrow {
  font-size:11px; color:#bbb; flex-shrink:0;
  transition:transform .2s ease;
}

/* 액션 바 */
.cdm-action-bar {
  display:flex; gap:8px;
  padding:10px 14px 12px;
  border:1.5px solid #0d0d0d; border-top:none;
  border-bottom-left-radius:12px; border-bottom-right-radius:12px;
  background:#f9f8f6;
  margin-top:-2px;
}
.cdm-action-btn {
  flex:1; display:flex; align-items:center; justify-content:center;
  gap:6px; padding:10px 8px; border-radius:10px; border:none;
  font-size:12px; font-weight:700; cursor:pointer;
  transition:.15s ease;
}
.cdm-action-print {
  background:#0d0d0d; color:#fff;
}
.cdm-action-print:hover { background:#333; }
.cdm-action-edit {
  background:#fff; color:#0d0d0d;
  border:1.5px solid #0d0d0d;
}
.cdm-action-edit:hover { background:#0d0d0d; color:#fff; }
.cdm-action-del {
  background:#fff; color:#ef4444;
  border:1.5px solid #ef4444;
}
.cdm-action-del:hover { background:#ef4444; color:#fff; }

/* 기존 act-btn (호환) */
.cdm-file-actions { display:flex; gap:6px; flex-shrink:0; }
.cdm-act-btn {
  width:30px; height:30px; border-radius:8px;
  border:1.5px solid #e8e6e0; background:#fff;
  color:#666; cursor:pointer; font-size:11px;
  display:flex; align-items:center; justify-content:center;
  transition:.15s ease;
}
.cdm-act-btn:hover { border-color:#0d0d0d; color:#0d0d0d; }
.cdm-act-btn.del:hover { border-color:#ef4444; color:#ef4444; background:#fff5f5; }

/* 빈 상태 */
.cdm-empty {
  text-align:center; padding:32px 16px; color:#aaa;
}
.cdm-empty i { font-size:32px; margin-bottom:10px; display:block; }
.cdm-empty p { font-size:13px; margin-bottom:14px; }

/* 업로드 존 */
.cdm-upload-zone {
  border:2px dashed #d4d0ca; border-radius:14px;
  padding:28px 20px; text-align:center;
  cursor:pointer; transition:.18s ease; margin-bottom:12px;
}
.cdm-upload-zone:hover, .cdm-upload-zone.drag {
  border-color:#c9a84c; background:#fffdf5;
}
.cdm-upload-zone i { font-size:28px; color:#c9a84c; margin-bottom:10px; display:block; }
.cdm-upload-zone p { font-size:13px; color:#444; margin-bottom:4px; }
.cdm-upload-zone small { font-size:11px; color:#888; }

/* 업로드 목록 */
.cdm-upload-list { display:flex; flex-direction:column; gap:6px; }
.cdm-upload-item {
  display:flex; align-items:center; gap:8px;
  padding:8px 12px; border:1.5px solid #f0ede8;
  border-radius:10px; font-size:12px; color:#444;
}
.cdm-upload-item span:first-of-type { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cdm-up-size { color:#888; flex-shrink:0; }
.cdm-upload-item button {
  width:24px; height:24px; border-radius:6px; border:none;
  background:transparent; color:#aaa; cursor:pointer; font-size:11px;
  flex-shrink:0; transition:.15s;
}
.cdm-upload-item button:hover { background:#fff0f0; color:#ef4444; }

/* 새로 만들기 패널 */
.cdm-new-desc { font-size:13px; color:#666; margin-bottom:16px; }
.cdm-new-fields { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.cdm-field { display:flex; flex-direction:column; gap:4px; }
.cdm-field label { font-size:11px; font-weight:700; color:#555; }
.cdm-input {
  width:100%; padding:9px 12px; border:1.5px solid #e8e6e0;
  border-radius:10px; font-size:13px; color:#0d0d0d;
  background:#fff; box-sizing:border-box; outline:none;
  transition:.15s ease;
}
.cdm-input:focus { border-color:#0d0d0d; }
.cdm-select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; padding-right:28px; }
.cdm-design-btn {
  width:100%; padding:13px; background:#0d0d0d; color:#fff;
  border:none; border-radius:12px; font-size:14px; font-weight:700;
  cursor:pointer; transition:.18s ease;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.cdm-design-btn:hover { background:#1a1a1a; }

/* ════════════════════════════════════
   CDM ACTION PANEL — 작업 선택 패널
════════════════════════════════════ */
.cdm-action-header { padding:4px 0 10px; }
.cdm-action-desc {
  font-size:12px; color:#888; margin:0;
  display:flex; align-items:center; gap:6px;
}
.cdm-action-grid {
  display:flex; flex-direction:column; gap:6px;
  padding-bottom:8px;
}
.cdm-action-card {
  display:flex; align-items:center; gap:12px;
  padding:12px 14px;
  border:1.5px solid #ece9e4;
  border-radius:12px;
  cursor:pointer;
  background:#fff;
  transition:border-color .15s, background .15s, transform .12s;
  position:relative;
}
.cdm-action-card:hover {
  border-color:#0d0d0d;
  background:#fafaf9;
  transform:translateX(3px);
}
.cdm-action-card:active { transform:scale(.99); }
.cdm-action-icon {
  width:40px; height:40px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; color:#fff; font-size:16px;
}
.cdm-action-body { flex:1; min-width:0; }
.cdm-action-title {
  font-size:13px; font-weight:700; color:#0d0d0d;
  margin-bottom:2px;
}
.cdm-action-desc-sm {
  font-size:10px; color:#888; line-height:1.4;
}
.cdm-action-badge {
  display:inline-block;
  margin-top:3px;
  font-size:8px; font-weight:700;
  padding:2px 6px; border-radius:4px;
}
.cdm-action-arrow {
  font-size:10px; color:#ccc;
  flex-shrink:0; margin-left:auto;
}

/* 작업 선택 탭 버튼 강조 */
#cdmTabAction {
  background:linear-gradient(135deg,#fff9e6,#fef3c7);
  color:#92400e;
  font-weight:700;
}
#cdmTabAction.active {
  background:linear-gradient(135deg,#fbbf24,#f59e0b) !important;
  color:#fff !important;
  border-color:#f59e0b !important;
}


/* 캘린더에 파일 있는 날 dot */
.cal-d.has-file::after {
  content:''; display:block;
  width:5px; height:5px; border-radius:50%;
  background:#c9a84c; margin:2px auto 0;
}

/* ═══════════════════════════════════════════════════════════
   NEW DIARY MODAL (newDiaryModal) — 새 다이어리 설정
═══════════════════════════════════════════════════════════ */
.ndm-wrap { padding:4px 0; }
.ndm-header { margin-bottom:24px; }

/* 스텝 바 */
.ndm-step-bar {
  display:flex; align-items:center; gap:0; justify-content:center;
}
.ndm-step {
  display:flex; align-items:center; gap:7px;
  font-size:12px; font-weight:600; color:#bbb;
  padding:6px 12px; border-radius:100px; transition:.2s;
}
.ndm-step span {
  width:22px; height:22px; border-radius:50%;
  background:#e8e6e0; color:#999;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:800; flex-shrink:0; transition:.2s;
}
.ndm-step.active { color:#0d0d0d; }
.ndm-step.active span { background:#0d0d0d; color:#fff; }
.ndm-step.done { color:#059669; }
.ndm-step.done span { background:#059669; color:#fff; }
.ndm-step-line { flex:1; max-width:40px; height:1.5px; background:#e8e6e0; }

/* 페이지 제목 */
.ndm-page-title {
  font-size:17px; font-weight:800; color:#0d0d0d;
  margin:0 0 20px; padding-bottom:12px;
  border-bottom:1.5px solid #f0ede8;
}

/* 필드 그리드 */
.ndm-fields { display:flex; flex-direction:column; gap:14px; }
.ndm-field-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ndm-field { display:flex; flex-direction:column; gap:5px; }
.ndm-label {
  font-size:12px; font-weight:700; color:#444;
}
.ndm-label .req { color:#ef4444; }
.ndm-input {
  width:100%; padding:10px 12px; border:1.5px solid #e8e6e0;
  border-radius:10px; font-size:13px; color:#0d0d0d;
  background:#fff; box-sizing:border-box; outline:none;
  transition:.15s ease; font-family:inherit;
}
.ndm-input:focus { border-color:#0d0d0d; }
.ndm-select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; padding-right:28px; }
.ndm-textarea { resize:vertical; min-height:80px; line-height:1.6; }

/* 컬러 선택 */
.ndm-color-row {
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
}
.ndm-color-item {
  width:32px; height:32px; border-radius:50%;
  border:3px solid transparent; cursor:pointer; transition:.15s;
}
.ndm-color-item:hover { transform:scale(1.15); }
.ndm-color-item.selected { border-color:#c9a84c; box-shadow:0 0 0 2px #fff,0 0 0 4px #c9a84c; }

/* 옵션 그리드 */
.ndm-options-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px;
  margin-bottom:16px;
}
.ndm-opt-card {
  border:1.5px solid #e8e6e0; border-radius:12px;
  padding:12px 14px; cursor:pointer; transition:.15s ease;
  display:flex; align-items:center; gap:10px;
}
.ndm-opt-card:hover { border-color:#0d0d0d; }
.ndm-opt-card.selected { border-color:#c9a84c; background:#fffdf5; }
.ndm-opt-icon {
  width:36px; height:36px; border-radius:9px;
  background:#f5f4f2; display:flex; align-items:center;
  justify-content:center; font-size:15px; flex-shrink:0; color:#555;
}
.ndm-opt-name { font-size:12px; font-weight:700; color:#0d0d0d; margin-bottom:4px; }
.ndm-opt-sel {
  width:100%; border:1px solid #e8e6e0; border-radius:6px;
  padding:4px 6px; font-size:11px; color:#555; background:#fff;
  outline:none;
}
.ndm-memo-field { margin-top:4px; }

/* 푸터 버튼 */
.ndm-footer {
  display:flex; gap:10px; justify-content:flex-end;
  margin-top:20px; padding-top:16px;
  border-top:1.5px solid #f0ede8;
}

/* 요약 블록 */
.ndm-sum-block {
  display:grid; grid-template-columns:100px 1fr; gap:20px;
  padding:16px; border:1.5px solid #f0ede8; border-radius:14px;
  background:#f9f8f6;
}
.ndm-sum-cover {
  width:100%; aspect-ratio:3/4; border-radius:10px;
  display:flex; align-items:flex-end; padding:8px;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}
.ndm-sum-cover-text {
  font-size:10px; font-weight:700; color:#fff;
  text-shadow:0 1px 4px rgba(0,0,0,.4);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  width:100%;
}
.ndm-sum-details { display:flex; flex-direction:column; gap:6px; }
.ndm-sum-row {
  display:flex; justify-content:space-between; align-items:center;
  font-size:12px;
}
.ndm-sum-row span { color:#888; }
.ndm-sum-row strong { color:#0d0d0d; font-weight:700; }
.ndm-sum-divider { height:1px; background:#e8e6e0; margin:4px 0; }
.ndm-start-btn {
  background:#c9a84c !important; color:#fff !important;
  padding:13px 24px !important; font-size:14px !important;
}
.ndm-start-btn:hover { background:#b8963e !important; }

/* 반응형 */
@media(max-width:600px) {
  .ndm-field-row { grid-template-columns:1fr; }
  .ndm-options-grid { grid-template-columns:1fr; }
  .ndm-sum-block { grid-template-columns:1fr; }
  .ndm-sum-cover { width:80px; aspect-ratio:3/4; }
  .ndm-step { font-size:10px; padding:5px 6px; gap:5px; }
  .ndm-step-line { max-width:20px; }
  .cdm-tabs { flex-direction:column; }
}

/* ═══════════════════════════════════════════════════════════
   인쇄 주문 — 새 디자인 (파일선택 + 인쇄소 + 옵션모달)
═══════════════════════════════════════════════════════════ */

/* 안내 텍스트 */
.pc-desc-hint {
  font-size:12px; color:var(--text-3);
  background:var(--bg2); border-radius:8px;
  padding:8px 12px; margin:0 0 14px;
  border-left:3px solid #0d0d0d;
}

/* 탭 버튼 */
.pf-tab-row { display:flex; gap:8px; margin-bottom:14px; }
.pf-tab {
  flex:1; display:flex; align-items:center; justify-content:center; gap:6px;
  padding:10px 14px; border:1.5px solid var(--border);
  border-radius:10px; background:#fff; cursor:pointer;
  font-size:12px; font-weight:600; color:var(--text-2);
  transition:var(--tr);
}
.pf-tab i { font-size:14px; }
.pf-tab.active { background:#0d0d0d; color:#fff; border-color:#0d0d0d; }

/* 옵션 설정 버튼 */
.pf-row-add-btn {
  padding:5px 12px; background:#fff; border:1.5px solid #0d0d0d;
  border-radius:7px; font-size:11px; font-weight:600;
  cursor:pointer; display:flex; align-items:center; gap:5px;
  white-space:nowrap; transition:var(--tr);
}
.pf-row-add-btn:hover { background:#0d0d0d; color:#fff; }

/* 선택된 파일 목록 */
.pf-sel-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0 8px; margin-top:14px;
  border-top:2px solid #0d0d0d;
}
.pf-sel-title { font-size:13px; font-weight:700; color:#0d0d0d; }
.pf-sel-clear-btn {
  padding:4px 10px; border:1.5px solid #e53e3e;
  border-radius:7px; background:#fff; color:#e53e3e;
  font-size:11px; cursor:pointer; display:flex; align-items:center; gap:4px;
}
.pf-sel-card {
  display:flex; align-items:center; gap:12px;
  padding:10px 12px; border:1.5px solid #e8e6e0;
  border-radius:10px; margin-bottom:8px; background:#fafafa;
}
.pf-sel-card-thumb {
  width:40px; height:40px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0;
}
.pf-sel-card-info { flex:1; min-width:0; }
.pf-sel-card-name { font-size:13px; font-weight:700; color:#0d0d0d; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pf-sel-card-opts { font-size:11px; color:#888; margin-top:2px; }
.pf-sel-card-price { font-size:12px; font-weight:700; color:#0d0d0d; margin-top:3px; }
.pf-sel-card-del {
  width:28px; height:28px; border-radius:50%;
  border:1.5px solid #e8e6e0; background:#fff; color:#999;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:11px; flex-shrink:0;
  transition:var(--tr);
}
.pf-sel-card-del:hover { border-color:#e53e3e; color:#e53e3e; }

/* 인쇄소 선택 — 새 디자인 */
/* ── 인쇄 종류 탭 (일반 종이 / 굿즈) ── */
.printer-type-tabs {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.ptt-tab {
  flex: 1; padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 10px; background: #fafafa;
  font-size: 13px; font-weight: 700; color: #666;
  cursor: pointer; transition: .18s ease;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.ptt-tab:hover { border-color: #aaa; background: #fff; color: #0d0d0d; }
.ptt-tab.active {
  border-color: #0d0d0d; background: #0d0d0d; color: #fff;
}

/* ── QR / NFC 추가 옵션 ── */
.qrnfc-section {
  margin-top: 20px; padding-top: 18px;
  border-top: 2px dashed #e8e6e0;
}
.qrnfc-title {
  font-size: 13px; font-weight: 800; color: #0d0d0d;
  margin-bottom: 6px; display: flex; align-items: center; gap: 7px;
}
.qrnfc-desc {
  font-size: 11px; color: #888; margin-bottom: 14px; line-height: 1.5;
}
.qrnfc-options {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin-bottom: 14px;
}
@media(max-width:480px){ .qrnfc-options{ grid-template-columns:1fr; } }

.qrnfc-opt {
  cursor: pointer; display: block;
}
.qrnfc-opt input { display: none; }
.qrnfc-opt-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 12px; background: #fafafa;
  transition: .15s ease;
}
.qrnfc-opt:has(input:checked) .qrnfc-opt-inner {
  border-color: #0d0d0d; background: #fff;
  box-shadow: 0 0 0 2px #0d0d0d;
}
.qrnfc-opt-icon {
  font-size: 22px; flex-shrink: 0; width: 32px; text-align: center;
}
.qrnfc-opt-name {
  font-size: 12px; font-weight: 700; color: #0d0d0d; margin-bottom: 2px;
}
.qrnfc-opt-desc { font-size: 10px; color: #888; margin-bottom: 3px; }
.qrnfc-opt-price {
  font-size: 12px; font-weight: 800; color: #0d0d0d;
  display: flex; align-items: center; gap: 6px;
}
.qrnfc-best-price { color: #7c3aed; }
.qrnfc-save-badge {
  font-size: 9px; background: #ede9fe; color: #7c3aed;
  border-radius: 20px; padding: 2px 7px; font-weight: 700;
}

/* URL 입력 */
.qrnfc-url-wrap {
  padding: 12px 14px;
  background: #f7f6f2; border-radius: 10px;
  border: 1.5px solid #e8e6e0;
}
.qrnfc-url-label {
  font-size: 11px; font-weight: 700; color: #666;
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.qrnfc-url-input {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #e8e6e0; border-radius: 8px;
  font-size: 13px; outline: none; box-sizing: border-box;
  transition: .15s; background: #fff;
}
.qrnfc-url-input:focus { border-color: #0d0d0d; }
.qrnfc-url-hint { font-size: 10px; color: #aaa; margin-top: 6px; }

/* ══════════════════════════════════════════════════
   QR · NFC 전문 상세 옵션 패널
══════════════════════════════════════════════════ */
.qrnfc-detail-panel {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #e0e7ff;
  animation: qdpIn .22s ease;
}
@keyframes qdpIn {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(0); }
}
.qdp-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #0d0d0d; color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .2px;
}
.qdp-header i { font-size: 14px; }
.nfc-header  { background: linear-gradient(135deg,#1e3a5f,#0d0d0d); }
.set-header  { background: linear-gradient(135deg,#4c1d95,#1e3a5f); }

.qdp-body {
  padding: 16px; background: #fafbff;
  display: flex; flex-direction: column; gap: 14px;
}
.qdp-field {
  display: flex; flex-direction: column; gap: 6px;
}
.qdp-label {
  font-size: 11px; font-weight: 700; color: #374151;
  display: flex; align-items: center; gap: 5px;
}
.qdp-label i { color: #6366f1; font-size: 11px; }
.qdp-req {
  font-size: 9px; background: #fee2e2; color: #b91c1c;
  border-radius: 4px; padding: 1px 5px; font-weight: 700; margin-left: 4px;
}
.qdp-opt {
  font-size: 9px; background: #f3f4f6; color: #6b7280;
  border-radius: 4px; padding: 1px 5px; font-weight: 600; margin-left: 4px;
}
.qdp-input {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: 13px; outline: none; box-sizing: border-box;
  background: #fff; transition: border-color .15s;
}
.qdp-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.qdp-hint { font-size: 10px; color: #9ca3af; line-height: 1.5; }
.qdp-row2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media(max-width:520px){ .qdp-row2 { grid-template-columns: 1fr; } }
.qdp-select {
  width: 100%; padding: 9px 10px;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: 12px; color: #111; background: #fff;
  outline: none; cursor: pointer; transition: border-color .15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.qdp-select:focus { border-color: #6366f1; }
.qdp-textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: 12px; color: #111; background: #fff;
  outline: none; resize: vertical; min-height: 72px;
  line-height: 1.6; transition: border-color .15s; box-sizing: border-box;
}
.qdp-textarea:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }

/* 수량 조절 */
.qdp-qty-wrap {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid #d1d5db; border-radius: 8px; overflow: hidden; background: #fff;
}
.qdp-qty-btn {
  width: 36px; height: 36px; background: #f9fafb;
  border: none; font-size: 12px; color: #374151;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.qdp-qty-btn:hover { background: #e5e7eb; }
.qdp-qty-input {
  flex: 1; text-align: center; border: none;
  font-size: 14px; font-weight: 700; color: #0d0d0d;
  outline: none; background: #fff; min-width: 0;
  padding: 0 6px;
}
/* 토글 스위치 */
.qdp-toggle-row {
  display: flex; align-items: center; gap: 10px;
}
.qdp-toggle {
  position: relative; width: 40px; height: 22px; flex-shrink: 0;
}
.qdp-toggle input { opacity: 0; width: 0; height: 0; }
.qdp-toggle-slider {
  position: absolute; inset: 0;
  background: #d1d5db; border-radius: 22px;
  cursor: pointer; transition: .2s;
}
.qdp-toggle-slider::before {
  content:''; position:absolute;
  width: 16px; height: 16px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.qdp-toggle input:checked + .qdp-toggle-slider { background: #4f46e5; }
.qdp-toggle input:checked + .qdp-toggle-slider::before { transform: translateX(18px); }
.qdp-toggle-label { font-size: 11px; color: #374151; }

/* 세트 안내 */
.qdp-set-notice {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  background: #ede9fe; border-radius: 8px;
  font-size: 11px; color: #4c1d95; font-weight: 600;
}
.qdp-set-notice i { color: #7c3aed; flex-shrink: 0; margin-top: 1px; }

.partner-opt {
  display:flex; align-items:center; gap:14px;
  padding:14px 16px; border:2px solid var(--border);
  border-radius:12px; cursor:pointer; margin-bottom:8px;
  background:#fafafa; transition:var(--tr); position:relative;
}
.partner-opt:hover { border-color:#aaa; background:#fff; }
.partner-opt.active {
  border-color:#0d0d0d; background:#fff;
  box-shadow:0 0 0 2px #0d0d0d;
}
.partner-check-box {
  width:24px; height:24px; border-radius:50%;
  border:2px solid #ddd; display:flex; align-items:center;
  justify-content:center; flex-shrink:0;
  color:transparent; font-size:11px; transition:var(--tr);
}
.partner-opt.active .partner-check-box {
  background:#0d0d0d; border-color:#0d0d0d; color:#fff;
}

/* ── 추가 커스터마이징: 선택 후 편집 영역 ── */
.addon-edit-section { animation: fadeSlideIn .2s ease; }
.addon-edit-divider { height:1.5px; background:var(--border); margin:14px 0 12px; }
.addon-selected-summary { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.addon-sel-chip {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 10px; background:#f0fdf4;
  border:1.5px solid #bbf7d0; border-radius:20px;
  font-size:11px; font-weight:600; color:#166534;
}
.addon-sel-chip .asc-emoji { font-size:13px; }

/* ── NFC 칩 디자인 선택 그리드 ── */
.nfc-design-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:8px;
}
.nfc-design-opt { display:block; cursor:pointer; }
.nfc-design-opt input[type="radio"] { display:none; }
.nfc-design-inner {
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:8px 4px 6px; background:#fff; border:1.5px solid var(--border);
  border-radius:10px; transition:.15s ease; text-align:center;
}
.nfc-design-opt:hover .nfc-design-inner { border-color:#6366f1; background:#eef2ff; }
.nfc-design-opt input[type="radio"]:checked ~ .nfc-design-inner {
  border-color:#4f46e5; background:#eef2ff; box-shadow:0 0 0 2px rgba(99,102,241,.2);
}
.nfc-design-preview {
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; margin-bottom:2px;
}
.nfc-design-none { background:#f3f4f6; color:#9ca3af; border:1.5px dashed #d1d5db; }
.nfc-design-circle { background:linear-gradient(135deg,#6366f1,#818cf8); border:2px solid #e0e7ff; }
.nfc-design-square { background:linear-gradient(135deg,#0d0d0d,#374151); border:2px solid #d1d5db; border-radius:8px; }
.nfc-design-wave { background:linear-gradient(135deg,#06b6d4,#0891b2); border:2px solid #cffafe; }
.nfc-design-heart { background:linear-gradient(135deg,#f43f5e,#fb7185); border:2px solid #fce7f3; color:#fff; }
.nfc-design-custom { background:linear-gradient(135deg,#7c3aed,#a78bfa); border:2px solid #ede9fe; color:#fff; }
.nfc-design-name { font-size:10px; font-weight:700; color:var(--text-1); line-height:1.2; }
.nfc-design-price { font-size:9px; color:#6366f1; font-weight:600; }
.nfc-design-upload-zone {
  display:flex; align-items:center; gap:8px; padding:10px 12px;
  background:#faf5ff; border:1.5px dashed #c4b5fd; border-radius:8px;
  cursor:pointer; font-size:11px; color:#7c3aed; transition:.15s;
}
.nfc-design-upload-zone:hover { background:#f5f3ff; border-color:#7c3aed; }

/* 주문 요약 — 파일/인쇄소 목록 */
.sum-files-wrap, .sum-printers-wrap {
  margin-bottom:12px; padding:10px 12px;
  background:var(--bg2); border-radius:10px;
}
.sum-files-label {
  font-size:11px; font-weight:700; color:var(--text-2);
  margin-bottom:6px; display:flex; align-items:center; gap:6px;
}
.sum-file-item {
  padding:4px 0; display:flex; flex-direction:column; gap:2px;
  border-bottom:1px solid #f0ede8;
}
.sum-file-item:last-child { border-bottom:none; }
.sum-file-name { font-size:12px; font-weight:600; color:#0d0d0d; }
.sum-file-opts { font-size:10px; color:#888; }
.sum-file-price { font-size:11px; font-weight:700; color:#0d0d0d; }
.sum-printer-item { font-size:12px; color:#0d0d0d; padding:3px 0; display:flex; align-items:center; }

/* ═══ 인쇄 옵션 모달 ═══ */
.pom-section {
  margin-bottom:20px; padding-bottom:20px;
  border-bottom:1px solid #f0ede8;
}
.pom-section:last-of-type { border-bottom:none; margin-bottom:0; }
.pom-label {
  font-size:12px; font-weight:700; color:#0d0d0d;
  margin-bottom:10px; display:flex; align-items:center; gap:6px;
}
.pom-qty-row {
  display:flex; align-items:center; gap:10px; margin-bottom:10px;
}
.pom-qty-btn {
  width:36px; height:36px; border-radius:8px;
  border:1.5px solid #e8e6e0; background:#fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:14px; transition:var(--tr);
}
.pom-qty-btn:hover { background:#0d0d0d; color:#fff; border-color:#0d0d0d; }
.pom-qty-input {
  width:70px; text-align:center; height:36px;
  border:1.5px solid #e8e6e0; border-radius:8px;
  font-size:14px; font-weight:700;
}
.pom-presets {
  display:flex; flex-wrap:wrap; gap:6px;
}
.pom-preset {
  padding:4px 10px; border:1.5px solid #e8e6e0;
  border-radius:6px; background:#fff; font-size:11px;
  cursor:pointer; transition:var(--tr); font-weight:600;
}
.pom-preset:hover { background:#0d0d0d; color:#fff; border-color:#0d0d0d; }
.pom-slider-row {
  display:flex; align-items:center; gap:12px; margin-bottom:10px;
}
.pom-val {
  font-size:13px; font-weight:700; color:#0d0d0d;
  white-space:nowrap; min-width:70px;
}
.pom-opt-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:8px;
}
.pom-opt {
  padding:10px 8px; border:1.5px solid #e8e6e0;
  border-radius:10px; background:#fafafa; cursor:pointer;
  text-align:center; transition:var(--tr);
}
.pom-opt:hover { border-color:#aaa; background:#fff; }
.pom-opt.active { border-color:#0d0d0d; background:#0d0d0d; color:#fff; }
.pom-opt.active .pom-opt-desc { color:#ccc; }
.pom-opt-icon { font-size:18px; margin-bottom:4px; }
.pom-opt-name { font-size:12px; font-weight:700; }
.pom-opt-desc { font-size:10px; color:#888; margin-top:2px; }
.pom-memo {
  width:100%; min-height:70px; padding:10px 12px;
  border:1.5px solid #e8e6e0; border-radius:10px;
  font-size:12px; resize:vertical; box-sizing:border-box;
}
.pom-price-preview {
  background:#0d0d0d; color:#fff; border-radius:12px;
  padding:16px 18px; margin-top:4px;
}
.pom-price-label { font-size:11px; color:#aaa; margin-bottom:4px; }
.pom-price-val { font-size:22px; font-weight:900; }
.pom-price-sub { font-size:11px; color:#aaa; margin-top:4px; }
.pom-discount-label {
  margin-top:6px; font-size:11px; font-weight:700;
  color:#34d399; background:rgba(52,211,153,0.15);
  padding:3px 8px; border-radius:20px; display:inline-block;
}
.pom-cancel-btn {
  flex:1; padding:12px; border:1.5px solid #e8e6e0;
  border-radius:10px; background:#fff; cursor:pointer;
  font-size:13px; font-weight:600;
}
.pom-confirm-btn {
  flex:2; padding:12px; border:none;
  border-radius:10px; background:#0d0d0d; color:#fff;
  cursor:pointer; font-size:13px; font-weight:700;
  display:flex; align-items:center; justify-content:center; gap:6px;
  transition:var(--tr);
}
.pom-confirm-btn:hover { background:#333; }

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

/* 인쇄 사이즈 그리드 — 8개 */
.pom-size-grid { grid-template-columns:repeat(4,1fr) !important; }
@media(max-width:480px) {
  .pom-size-grid { grid-template-columns:repeat(2,1fr) !important; }
}

/* 직접 입력 옵션 강조 */
.pom-opt-custom { border-style:dashed !important; }
.pom-opt-custom.active { border-style:solid !important; }

/* 직접 입력 필드 영역 */
.pom-custom-size-wrap {
  margin-top:12px; padding:14px 16px;
  background:#f8f8f8; border-radius:12px;
  border:1.5px solid #e8e6e0;
  animation:fadeIn .18s ease;
}
.pom-custom-size-row {
  display:flex; align-items:flex-end; gap:10px; margin-bottom:12px;
}
.pom-custom-field { flex:1; display:flex; flex-direction:column; gap:4px; }
.pom-custom-label {
  font-size:10px; font-weight:700; color:#666; text-transform:uppercase; letter-spacing:.5px;
}
.pom-custom-input {
  width:100%; height:40px; padding:0 12px;
  border:1.5px solid #e8e6e0; border-radius:8px;
  font-size:15px; font-weight:700; text-align:center;
  box-sizing:border-box; transition:.18s ease;
}
.pom-custom-input:focus {
  outline:none; border-color:#0d0d0d;
  box-shadow:0 0 0 2px rgba(13,13,13,.1);
}
.pom-custom-x {
  font-size:18px; font-weight:700; color:#aaa;
  padding-bottom:8px; flex-shrink:0;
}
.pom-custom-presets {
  display:flex; flex-wrap:wrap; align-items:center; gap:6px;
}
.pom-custom-preset-label {
  font-size:10px; color:#999; flex-shrink:0;
}
.pom-custom-preset-btn {
  padding:3px 9px; border:1.5px solid #e8e6e0;
  border-radius:6px; background:#fff; font-size:10px;
  font-weight:600; cursor:pointer; transition:.15s ease;
  color:#555;
}
.pom-custom-preset-btn:hover { background:#0d0d0d; color:#fff; border-color:#0d0d0d; }
.pom-custom-size-info {
  display:flex; align-items:center; gap:6px;
  margin-top:10px; padding:8px 12px;
  background:#ecfdf5; border-radius:8px;
  font-size:11px; font-weight:600; color:#059669;
  border:1px solid #a7f3d0;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }


/* ═══════════════════════════════════════════════════════════
   MEMBERSHIP v2  —  플랜 선택 전면 리디자인
═══════════════════════════════════════════════════════════ */
#sec-membership { background:#f7f6f2; padding:0 }
.mem2-wrap { max-width:1100px; margin:0 auto; padding:60px 20px 80px; }

/* ── Hero ── */
.mem2-hero { text-align:center; margin-bottom:48px; }
.mem2-hero-title {
  font-size:clamp(32px,6vw,52px); font-weight:900;
  font-family: 'Noto Serif KR', serif;
  color:#0d0d0d; letter-spacing:-.02em; margin-bottom:12px;
}
.mem2-hero-sub { font-size:14px; color:#888; }

/* ── Hero Desc ── */
.mem2-hero-desc { font-size:14px; color:#666; line-height:1.7; margin-top:8px; }

/* ── Concept Banner (배달의민족 + 젠스파크) ── */
.mem2-concept-banner {
  display:grid; grid-template-columns:1fr auto 1fr auto 1fr;
  gap:0; border:2px solid #0d0d0d; border-radius:12px;
  overflow:hidden; margin-bottom:48px; background:#fff;
}
@media(max-width:768px) { .mem2-concept-banner { grid-template-columns:1fr; } }
.mem2-concept-col {
  padding:28px 24px; display:flex; flex-direction:column; gap:8px;
}
.mem2-concept-result { background:#0d0d0d; }
.mem2-concept-result .mem2-concept-name { color:#fff; }
.mem2-concept-result .mem2-concept-desc { color:rgba(255,255,255,.8); }
.mem2-concept-plus {
  display:flex; align-items:center; justify-content:center;
  font-size:32px; font-weight:900; color:#0d0d0d; padding:0 8px;
  background:#f3f4f6; min-width:50px;
}
@media(max-width:768px) { .mem2-concept-plus { padding:6px; min-width:auto; font-size:24px; } }
.mem2-concept-icon { font-size:36px; margin-bottom:4px; }
.mem2-concept-name { font-size:14px; font-weight:800; color:#0d0d0d; }
.mem2-concept-desc { font-size:12px; color:#666; line-height:1.65; }
.mem2-concept-desc strong { color:#0d0d0d; }
.mem2-concept-result .mem2-concept-desc strong { color:#fbbf24; }

/* ── Per-Job Banner ── */
.mem2-per-job-banner {
  background:#fffbeb; border:1.5px solid #fcd34d; border-radius:10px;
  padding:16px 20px; margin-bottom:28px;
  display:flex; align-items:flex-start; gap:12px;
}
.mem2-per-job-icon { font-size:24px; flex-shrink:0; }
.mem2-per-job-text { font-size:13px; color:#92400e; line-height:1.65; }
.mem2-per-job-text strong { color:#78350f; }

/* ── 5-Column Why Grid ── */
.mem2-why-grid-5 {
  display:grid; grid-template-columns:repeat(5,1fr) !important;
  gap:0; border:2px solid #0d0d0d; border-radius:4px; overflow:hidden;
  margin-bottom:24px;
}
@media(max-width:1100px){ .mem2-why-grid-5{ grid-template-columns:repeat(3,1fr) !important; } }
@media(max-width:700px){ .mem2-why-grid-5{ grid-template-columns:1fr 1fr !important; } }
@media(max-width:480px){ .mem2-why-grid-5{ grid-template-columns:1fr !important; } }
.mem2-why-grid-5 .mem2-why-card { border-right:1.5px solid #e8e6e0; border-bottom:1.5px solid #e8e6e0; position:relative; }
.mem2-why-grid-5 .mem2-why-card:nth-child(5n) { border-right:none; }
.mem2-why-card-new { background:#fffbeb !important; }
.mem2-why-badge {
  position:absolute; top:12px; right:12px;
  background:#ef4444; color:#fff; font-size:9px; font-weight:800;
  padding:2px 7px; border-radius:20px; letter-spacing:.5px;
}

/* ── Credit Total Badge ── */
.mem2-credit-total {
  margin:12px 0 16px; padding:10px 14px; background:#f3f4f6;
  border-radius:8px; font-size:12px; color:#666; text-align:center;
}
.mem2-credit-total strong { color:#0d0d0d; font-size:14px; }
.mem2-credit-total-gold { background:rgba(253,230,138,.15); }
.mem2-credit-total-gold strong { color:#fbbf24; }

/* ── PRO Recommend Badge ── */
.mem2-recommend-badge-pro {
  border:1.5px solid #0d0d0d !important;
  color:#0d0d0d !important; background:#f3f4f6;
}

/* ── Flow Note ── */
.mem2-flow-note { font-size:11px; color:rgba(255,255,255,.55); margin-top:14px; line-height:1.6; }

/* ── Fee Grid (건별 수수료 시각화) ── */
.mem2-fee-grid {
  display:grid; grid-template-columns:1fr auto 1fr 1fr 1fr;
  gap:0; border:2px solid #0d0d0d; border-radius:4px; overflow:hidden;
  margin-bottom:28px;
}
@media(max-width:900px){ .mem2-fee-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:500px){ .mem2-fee-grid{ grid-template-columns:1fr; } }
.mem2-fee-card {
  padding:24px 18px; display:flex; flex-direction:column; gap:4px;
  background:#fff; border-right:1.5px solid #e8e6e0;
  align-items:flex-start;
}
.mem2-fee-card:last-child { border-right:none; }
.mem2-fee-arrow {
  display:flex; align-items:center; justify-content:center;
  font-size:28px; font-weight:900; color:#d1d5db; padding:0 4px;
  background:#faf9f7; min-width:40px;
}
.mem2-fee-emoji { font-size:28px; margin-bottom:6px; }
.mem2-fee-service { font-size:11px; font-weight:800; letter-spacing:.5px; color:#888; text-transform:uppercase; }
.mem2-fee-type { font-size:12px; font-weight:600; color:#444; margin-top:2px; }
.mem2-fee-amount { font-size:20px; font-weight:900; color:#0d0d0d; margin-top:6px; }
.mem2-fee-amount span { font-size:11px; color:#888; font-weight:400; }
.mem2-fee-desc { font-size:11px; color:#999; line-height:1.5; margin-top:4px; }
.mem2-fee-card-print { background:#eff6ff; }
.mem2-fee-card-book { background:#f0fdf4; }
.mem2-fee-card-sched { background:#fef9c3; }
.mem2-fee-card-publish { background:#fdf2f8; }

/* ── Credit Pack ── */
.mem2-creditpack-box {
  background:#0d0d0d; border-radius:12px; padding:28px 28px 24px; color:#fff;
  margin-top:0;
}
.mem2-creditpack-title { font-size:16px; font-weight:800; color:#fff; margin-bottom:8px; }
.mem2-creditpack-desc { font-size:13px; color:rgba(255,255,255,.7); line-height:1.6; margin-bottom:20px; }
.mem2-creditpack-grid {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:12px; margin-bottom:20px;
}
@media(max-width:768px){ .mem2-creditpack-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:400px){ .mem2-creditpack-grid{ grid-template-columns:1fr; } }
.mem2-cp-card {
  background:rgba(255,255,255,.07); border:1.5px solid rgba(255,255,255,.15);
  border-radius:10px; padding:16px; position:relative;
  display:flex; flex-direction:column; gap:4px;
}
.mem2-cp-card-popular { background:rgba(251,191,36,.1); border-color:#fbbf24; }
.mem2-cp-card-pro { background:rgba(99,102,241,.1); border-color:#818cf8; }
.mem2-cp-badge {
  position:absolute; top:-8px; left:50%; transform:translateX(-50%);
  background:#fbbf24; color:#0d0d0d; font-size:9px; font-weight:800;
  padding:2px 10px; border-radius:20px; letter-spacing:.5px;
}
.mem2-cp-name { font-size:11px; font-weight:700; color:rgba(255,255,255,.6); letter-spacing:.5px; }
.mem2-cp-price { font-size:22px; font-weight:900; color:#fff; margin:4px 0; }
.mem2-cp-credit { font-size:12px; color:rgba(255,255,255,.8); font-weight:600; }
.mem2-cp-bonus { font-size:10px; color:#86efac; font-weight:700; margin-top:2px; }
.mem2-creditpack-btn {
  background:#fff; color:#0d0d0d; border:none; border-radius:8px;
  padding:13px 24px; font-size:14px; font-weight:800; cursor:pointer;
  transition:.18s ease; display:flex; align-items:center; gap:8px;
}
.mem2-creditpack-btn:hover { background:#f5c842; }

/* ── Table Category Row ── */
.mem2-tr-category td {
  background:#0d0d0d !important; color:#fff !important;
  font-size:11px !important; font-weight:800 !important;
  letter-spacing:1px; padding:10px 18px !important;
}
.mem2-tr-highlight { background:#fffbeb !important; }

/* ── Why Grid override for border fix ── */
.mem2-why-grid { border:2px solid #0d0d0d; }

/* ── Plan Cards ── */
.mem2-plans {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:0; border:2px solid #0d0d0d; border-radius:4px;
  overflow:hidden; margin-bottom:60px;
}
@media(max-width:900px){ .mem2-plans{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .mem2-plans{ grid-template-columns:1fr; } }

.mem2-card {
  padding:32px 24px; display:flex; flex-direction:column;
  gap:0; background:#fff;
}
.mem2-card-free   { border-right:1.5px solid #e8e6e0; }
.mem2-card-basic  { border-right:1.5px solid #e8e6e0; }
.mem2-card-creator{ background:#0d0d0d; border-right:1.5px solid #333; position:relative; }
.mem2-card-pro    { background:#fff; }
.mem2-divider { border:none; border-top:1px solid #e8e6e0; margin:16px 0; }

.mem2-recommend-badge {
  display:inline-block; font-size:10px; font-weight:700;
  letter-spacing:.5px; color:#fff;
  border:1.5px solid rgba(255,255,255,.45);
  border-radius:20px; padding:3px 12px; margin-bottom:12px;
  width:fit-content;
}

.mem2-plan-label {
  font-size:9px; font-weight:700; letter-spacing:2px;
  text-transform:uppercase; color:#888; margin-bottom:10px;
}
.mem2-price-big {
  font-size:clamp(28px,4vw,42px); font-weight:900;
  color:#0d0d0d; letter-spacing:-.02em; line-height:1;
  margin-bottom:6px;
}
.mem2-price-period { font-size:12px; color:#aaa; margin-bottom:12px; }
.mem2-plan-desc { font-size:12px; color:#666; line-height:1.6; margin-bottom:0; }
.mem2-card-creator .mem2-price-big { color:#fff; }
.mem2-card-creator .mem2-price-period { color:rgba(255,255,255,.6); }
.mem2-card-creator .mem2-plan-desc { color:rgba(255,255,255,.75); }
.mem2-card-creator .mem2-divider { border-color:rgba(255,255,255,.2); }

.mem2-perks {
  list-style:none; display:flex; flex-direction:column;
  gap:8px; flex:1; margin-bottom:24px;
}
.mem2-ok, .mem2-no {
  font-size:12px; display:flex; align-items:flex-start; gap:8px;
}
.mem2-ok { color:#0d0d0d; }
.mem2-ok i { color:#059669; font-size:10px; margin-top:2px; flex-shrink:0; }
.mem2-no { color:#aaa; }
.mem2-no i { color:#ccc; font-size:10px; margin-top:2px; flex-shrink:0; }
.mem2-ok-gold { color:rgba(255,255,255,.9); }
.mem2-ok-gold i { color:#f5c842; }

/* Plan Buttons */
.mem2-btn {
  padding:13px 16px; border-radius:8px; border:none;
  font-size:13px; font-weight:700; cursor:pointer;
  transition:.18s ease; width:100%; text-align:center;
}
.mem2-btn-outline {
  background:none; border:2px solid #0d0d0d; color:#0d0d0d;
}
.mem2-btn-outline:hover { background:#0d0d0d; color:#fff; }
.mem2-btn-creator {
  background:#fff; color:#0d0d0d;
}
.mem2-btn-creator:hover { background:#f5f5f5; }
.mem2-btn-dark {
  background:#0d0d0d; color:#fff;
}
.mem2-btn-dark:hover { background:#333; transform:translateY(-1px); }

/* ── Features Section (Lifetime Benefits) ── */
.mem2-features-section { margin-bottom:60px; }
.mem2-features-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:0; border:2px solid #0d0d0d; border-radius:4px;
  overflow:hidden; margin-bottom:0;
}
@media(max-width:600px){ .mem2-features-grid{ grid-template-columns:1fr; } }

.mem2-feat-card {
  padding:28px 24px; display:flex; gap:18px; align-items:flex-start;
  border-bottom:1.5px solid #e8e6e0; border-right:1.5px solid #e8e6e0;
  background:#fff;
}
.mem2-feat-card:nth-child(even) { border-right:none; }
.mem2-feat-card:nth-last-child(-n+2) { border-bottom:none; }

.mem2-feat-icon {
  width:44px; height:44px; background:#0d0d0d; border-radius:6px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.mem2-feat-icon i { color:#fff; font-size:18px; }
.mem2-feat-title { font-size:14px; font-weight:700; color:#0d0d0d; margin-bottom:6px; }
.mem2-feat-desc { font-size:12px; color:#666; line-height:1.6; }

/* Premium vs Lifetime 비교표 */
.mem2-pvl-table {
  border:2px solid #0d0d0d; border-radius:4px; overflow:hidden;
  margin-top:20px; background:#fff;
}
.mem2-pvl-title {
  font-size:11px; font-weight:800; letter-spacing:2px;
  text-transform:uppercase; background:#0d0d0d; color:#fff;
  text-align:center; padding:14px;
}
.mem2-cmp-table { width:100%; border-collapse:collapse; }
.mem2-cmp-table th, .mem2-cmp-table td {
  padding:12px 20px; font-size:13px; border-bottom:1px solid #e8e6e0;
  text-align:center;
}
.mem2-cmp-table th:first-child,
.mem2-cmp-table td:first-child { text-align:left; color:#0d0d0d; }
.mem2-cmp-table thead th { font-size:11px; color:#888; font-weight:600; background:#faf9f7; }
.mem2-cmp-table tbody tr:last-child td { border-bottom:none; }

/* ── Section Title ── */
.mem2-section-title {
  font-size:clamp(24px,4vw,36px); font-weight:900;
  font-family: 'Noto Serif KR', serif;
  text-align:center; color:#0d0d0d; margin-bottom:10px;
}
.mem2-section-sub { font-size:13px; color:#888; text-align:center; margin-bottom:36px; }

/* ── Detail Comparison Table ── */
.mem2-detail-section { margin-bottom:60px; }
.mem2-detail-table-wrap { overflow-x:auto; }
.mem2-detail-table {
  width:100%; border-collapse:collapse;
  border:2px solid #0d0d0d; border-radius:4px; overflow:hidden;
  min-width:520px;
}
.mem2-detail-table thead tr { background:#0d0d0d; }
.mem2-detail-table thead th {
  padding:14px 18px; font-size:12px; font-weight:700; color:#fff;
  text-align:center; letter-spacing:.3px;
}
.mem2-detail-table thead th:first-child { text-align:left; }
.mem2-th-creator { background:#333 !important; }
.mem2-detail-table tbody tr { border-bottom:1px solid #e8e6e0; }
.mem2-detail-table tbody tr:last-child { border-bottom:none; }
.mem2-detail-table tbody tr:nth-child(even) { background:#faf9f7; }
.mem2-detail-table td {
  padding:13px 18px; font-size:13px; color:#444;
  text-align:center;
}
.mem2-detail-table td:first-child { text-align:left; font-weight:500; color:#0d0d0d; }
.mem2-chk { color:#059669; font-weight:700; font-size:15px; }
.mem2-x   { color:#ccc; font-size:13px; }

/* ── Why / Credit Guide Section ── */
.mem2-why-section { margin-bottom:60px; }
.mem2-why-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:0; border:2px solid #0d0d0d; border-radius:4px; overflow:hidden;
  margin-bottom:24px;
}
@media(max-width:768px){ .mem2-why-grid{ grid-template-columns:1fr; } }
@media(min-width:601px) and (max-width:768px){ .mem2-why-grid{ grid-template-columns:repeat(2,1fr); } }

.mem2-why-card {
  padding:28px 24px; border-right:1.5px solid #e8e6e0;
  border-bottom:1.5px solid #e8e6e0; background:#fff;
  display:flex; flex-direction:column;
}
.mem2-why-card:nth-child(3n) { border-right:none; }
.mem2-why-card:nth-last-child(-n+3) { border-bottom:none; }

.mem2-why-icon {
  width:44px; height:44px; background:#0d0d0d; border-radius:6px;
  display:flex; align-items:center; justify-content:center; margin-bottom:14px;
  font-size:22px;
}
.mem2-why-icon i { color:#fff; font-size:18px; }
.mem2-why-title { font-size:15px; font-weight:800; color:#0d0d0d; margin-bottom:2px; }
.mem2-why-sub { font-size:9px; letter-spacing:1.5px; color:#aaa; text-transform:uppercase; margin-bottom:10px; font-weight:600; }
.mem2-why-desc { font-size:12px; color:#666; line-height:1.65; flex:1; margin-bottom:12px; }
.mem2-why-tags {
  display:flex; flex-wrap:wrap; gap:4px; margin-bottom:12px;
}
.mem2-why-tags span {
  font-size:10px; background:#f3f4f6; border-radius:20px;
  padding:3px 8px; color:#555;
}
.mem2-why-credit {
  display:flex; gap:10px; flex-wrap:wrap;
  font-size:11px; color:#888; padding-top:10px;
  border-top:1px solid #e8e6e0;
}
.mem2-why-credit strong { color:#0d0d0d; }

/* ── Credit Flow Banner ── */
.mem2-flow-banner {
  background:#0d0d0d; border-radius:12px;
  padding:24px 28px; color:#fff; margin-top:0;
}
.mem2-flow-title { font-size:13px; font-weight:700; margin-bottom:18px; color:#fff; }
.mem2-flow-steps {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
}
.mem2-flow-step {
  display:flex; align-items:center; gap:10px;
  font-size:11px; color:rgba(255,255,255,.8); line-height:1.5;
}
.mem2-flow-num {
  width:24px; height:24px; background:#fff; color:#0d0d0d;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:800; flex-shrink:0;
}
.mem2-flow-arrow { color:rgba(255,255,255,.4); font-size:16px; }
@media(max-width:600px){
  .mem2-flow-steps { flex-direction:column; align-items:flex-start; }
  .mem2-flow-arrow { transform:rotate(90deg); }
}

/* ── FAQ ── */
.mem2-faq-section { margin-bottom:20px; }
.mem2-faq-list { border-top:1.5px solid #e8e6e0; }
.mem2-faq-item {
  border-bottom:1.5px solid #e8e6e0; cursor:pointer;
  transition:.18s ease;
}
.mem2-faq-item:hover { background:#faf9f7; }
.mem2-faq-q {
  padding:20px 0; font-size:14px; font-weight:600; color:#0d0d0d;
  display:flex; justify-content:space-between; align-items:center;
}
.mem2-faq-icon { color:#aaa; font-size:12px; transition:transform .25s ease; flex-shrink:0; }
.mem2-faq-item.open .mem2-faq-icon { transform:rotate(180deg); }
.mem2-faq-a {
  font-size:13px; color:#666; line-height:1.7;
  padding:0 0 16px; display:none;
}
.mem2-faq-item.open .mem2-faq-a { display:block; }

/* ═══════════════════════════════════════════════════════════
   결제 모달
═══════════════════════════════════════════════════════════ */
.pay-modal-box {
  max-width:480px; padding:0; border-radius:16px;
  overflow:hidden; max-height:90vh; overflow-y:auto;
}
.pay-modal-header {
  background:#0d0d0d; padding:20px 24px;
  display:flex; align-items:center; justify-content:space-between;
}
.pay-modal-header .modal-close { color:#fff; position:static; margin:0; }
.pay-modal-plan-name { font-size:16px; font-weight:800; color:#fff; margin-bottom:3px; }
.pay-modal-plan-price { font-size:13px; color:#aaa; }
.pay-modal-body { padding:24px; }
.pay-section-title {
  font-size:12px; font-weight:700; color:#888;
  text-transform:uppercase; letter-spacing:1px;
  margin-bottom:14px; display:flex; align-items:center; gap:6px;
}
.pay-form-row { margin-bottom:12px; }
.pay-form-row label { font-size:11px; font-weight:600; color:#666; display:block; margin-bottom:5px; }
.pay-input {
  width:100%; padding:11px 14px; border:1.5px solid #e8e6e0;
  border-radius:8px; font-size:13px; outline:none; box-sizing:border-box;
  transition:.15s ease; background:#fff;
}
.pay-input:focus { border-color:#0d0d0d; }
.pay-method-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:8px; margin-bottom:16px;
}
.pay-method-opt {
  display:flex; align-items:center; gap:8px;
  padding:10px 14px; border:1.5px solid #e8e6e0; border-radius:8px;
  cursor:pointer; font-size:12px; font-weight:600; transition:.15s ease;
}
.pay-method-opt:has(input:checked) { border-color:#0d0d0d; background:#f7f6f2; }
.pay-method-opt input { display:none; }
.pay-card-row2 { display:flex; gap:10px; }
.pay-order-summary {
  background:#f7f6f2; border-radius:10px; padding:14px 16px;
  margin:20px 0 14px;
}
.pay-os-row {
  display:flex; justify-content:space-between;
  font-size:12px; padding:4px 0; color:#666;
}
.pay-os-total {
  border-top:1.5px solid #e8e6e0; margin-top:8px; padding-top:10px;
  font-size:14px; font-weight:800; color:#0d0d0d;
}
.pay-agree-row { margin-bottom:16px; }
.pay-agree-label { font-size:11px; color:#888; display:flex; align-items:center; gap:6px; cursor:pointer; }
.pay-agree-label input { width:14px; height:14px; }
.pay-confirm-btn {
  width:100%; padding:14px; background:#0d0d0d; color:#fff;
  border:none; border-radius:10px; font-size:14px; font-weight:700;
  cursor:pointer; transition:.18s ease; display:flex; align-items:center;
  justify-content:center; gap:8px;
}
.pay-confirm-btn:hover { background:#333; }
.pay-done-detail {
  background:#f7f6f2; border-radius:10px; padding:14px 18px;
  font-size:12px; color:#555; text-align:left; line-height:1.8;
}

/* ══════════════════════════════════════════════════════════
   인쇄 주문 결제 모달 (printPayModal)
══════════════════════════════════════════════════════════ */
.ppm-box {
  max-width: 500px;
  width: 100%;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  max-height: 92vh;
  overflow-y: auto;
}

/* 헤더 */
.ppm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1.5px solid #f0ede8;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.ppm-header-label {
  font-size: 20px;
  font-weight: 900;
  color: #0d0d0d;
  margin-bottom: 4px;
}
.ppm-header-total {
  font-size: 26px;
  font-weight: 900;
  color: #0d0d0d;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.ppm-header-delivery {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ppm-header-delivery i { color: #22c55e; }
.ppm-header-delivery strong { color: #0d0d0d; }
.ppm-header .modal-close {
  position: static;
  background: none;
  border: none;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
  margin-top: 2px;
}

/* 바디 */
.ppm-body { padding: 20px 24px 28px; }

.ppm-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ppm-form-row { margin-bottom: 10px; }
.ppm-form-row label {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  display: block;
  margin-bottom: 5px;
}
.ppm-input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #e8e6e0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
  background: #fff;
  color: #0d0d0d;
}
.ppm-input:focus { border-color: #0d0d0d; }
.ppm-input::placeholder { color: #bbb; }

/* 거래수단 그리드 */
.ppm-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.ppm-method-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1.5px solid #e8e6e0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #0d0d0d;
  transition: .15s ease;
  background: #fff;
}
.ppm-method-opt:has(input:checked) {
  border-color: #0d0d0d;
  background: #f7f6f2;
}
.ppm-method-opt input { display: none; }

/* 카드 2열 */
.ppm-card-row2 { display: flex; gap: 10px; }

/* 주문 요약 */
.ppm-order-summary {
  background: #f7f6f2;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 20px 0 14px;
}
.ppm-os-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  color: #666;
}
.ppm-os-row span:last-child { color: #0d0d0d; font-weight: 500; }
.ppm-os-divider {
  border: none;
  border-top: 1.5px solid #e8e6e0;
  margin: 10px 0;
}
.ppm-os-total {
  font-size: 16px;
  font-weight: 900;
  color: #0d0d0d;
  padding-top: 2px;
}
.ppm-os-total span:last-child { font-size: 18px; }

/* 동의 */
.ppm-agree-row { margin-bottom: 16px; }
.ppm-agree-label {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.ppm-agree-label input { width: 15px; height: 15px; }

/* 결제 버튼 */
.ppm-confirm-btn {
  width: 100%;
  padding: 16px;
  background: #0d0d0d;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: .3px;
}
.ppm-confirm-btn:hover { background: #333; transform: translateY(-1px); }
.ppm-confirm-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }

@media(max-width: 520px) {
  .ppm-box { border-radius: 16px 16px 0 0; max-height: 95vh; }
  .ppm-method-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 반응형 보정 ── */
@media(max-width:600px){
  .mem2-card { padding:24px 18px; }
  .mem2-feat-card { padding:18px 16px; }
  .mem2-why-card { padding:18px 16px; }
  .mem2-why-grid { grid-template-columns:1fr; }
  .mem2-feat-card:nth-child(even) { border-right:none; }
  .mem2-feat-card { border-right:none !important; }
  .mem2-detail-table th, .mem2-detail-table td { padding:10px 10px; font-size:11px; }
  .pay-method-grid { grid-template-columns:1fr 1fr; }
  .pay-card-row2 { flex-direction:column; }
}

/* ─────────────────────────────────────────────────────────
   홈 → Membership 프로모 배너
───────────────────────────────────────────────────────── */
.mem-promo-banner {
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; background:#0d0d0d; border-radius:14px;
  padding:20px 24px; margin-bottom:24px; cursor:pointer;
  transition:.2s ease; overflow:hidden; position:relative;
}
.mem-promo-banner::before {
  content:''; position:absolute; top:-30px; right:120px;
  width:140px; height:140px; background:rgba(255,255,255,.04);
  border-radius:50%;
}
.mem-promo-banner:hover { background:#1a1a1a; transform:translateY(-1px); }
.mpb-badge {
  display:inline-block; font-size:9px; font-weight:700;
  letter-spacing:1px; background:rgba(255,255,255,.12);
  color:#fff; border-radius:20px; padding:3px 10px; margin-bottom:8px;
}
.mpb-title {
  font-size:18px; font-weight:900; color:#fff;
  letter-spacing:-.02em; margin-bottom:4px;
}
.mpb-sub { font-size:11px; color:rgba(255,255,255,.6); line-height:1.5; }
.mpb-right { display:flex; align-items:center; gap:14px; flex-shrink:0; }
.mpb-plans { display:flex; gap:6px; }
.mpb-plan {
  font-size:9px; font-weight:700; letter-spacing:1px;
  padding:4px 10px; border-radius:20px;
  border:1.5px solid rgba(255,255,255,.25); color:rgba(255,255,255,.7);
}
.mpb-plan-dark { background:#fff; color:#0d0d0d; border-color:#fff; }
.mpb-plan-gold {
  background:linear-gradient(135deg,#c9a84c,#f5d478);
  color:#0d0d0d; border-color:transparent;
}
.mpb-arrow { color:rgba(255,255,255,.5); font-size:14px; }
@media(max-width:540px){
  .mpb-plans { display:none; }
  .mpb-title { font-size:15px; }
  .mem-promo-banner { padding:16px 18px; }
}

/* ═══════════════════════════════════════════════════════════
   🏆 플랫폼 목표 배너 — K-인디 크리에이터 전방위 지원
═══════════════════════════════════════════════════════════ */
.platform-goal-banner {
  margin: 0 0 4px;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 50%, #2d1b69 100%);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.platform-goal-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(196,77,255,.18) 0%, transparent 70%);
  pointer-events: none;
}
.platform-goal-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(59,91,219,.15) 0%, transparent 70%);
  pointer-events: none;
}
.pgb-inner {
  position: relative;
  z-index: 1;
  padding: 36px 20px 32px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.pgb-top-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pgb-top-label i { color: #c9a84c; }
.pgb-headline {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.25;
  margin: 0 0 10px;
}
.pgb-highlight {
  background: linear-gradient(90deg, #c44dff, #ff6b9d, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pgb-tagline {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin: 0 0 28px;
}
/* 4 pillars row */
.pgb-pillars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  flex-wrap: wrap;
  row-gap: 16px;
}
.pgb-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 72px;
  transition: transform .2s ease;
}
.pgb-pillar:hover { transform: translateY(-3px); }
.pgb-pillar-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.pgb-pillar-name {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  text-align: center;
  line-height: 1.45;
}
.pgb-pillar-num {
  font-size: 9px;
  font-weight: 800;
  color: rgba(255,255,255,.3);
  letter-spacing: 1px;
}
.pgb-pillar-line {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.3), rgba(255,255,255,.1));
  flex-shrink: 0;
  margin-bottom: 28px;
}
/* stats bar */
.pgb-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 14px 20px;
  flex-wrap: wrap;
  row-gap: 10px;
}
.pgb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 20px;
}
.pgb-stat-val {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
}
.pgb-stat-lbl {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  font-weight: 600;
}
.pgb-stat-div {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}
/* pillars section label */
.home-pillars-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 8px;
}
.hpl-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.hpl-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════════════════
   🧩 공통 — 홈 모듈 섹션 (home-module-section)
═══════════════════════════════════════════════════════════ */
.home-module-section {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 0 0 28px;
  margin-bottom: 4px;
}
.hms-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid #f0efeb;
}
.hms-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.hms-icon-badge {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.hms-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.hms-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
  font-weight: 500;
}
.hms-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.hms-badge-phase { background: #c44dff; }
.hms-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   🎲 가챠·캐릭터 굿즈 파트너 마켓
═══════════════════════════════════════════════════════════ */
.gacha-goods-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gacha-goods-scroll::-webkit-scrollbar { display: none; }
.gacha-card {
  flex-shrink: 0;
  width: 148px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.gacha-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.gc-thumb {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gc-emoji { font-size: 32px; }
.gc-body { padding: 10px 12px 12px; }
.gc-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.gc-price {
  font-size: 13px;
  font-weight: 900;
  color: #c44dff;
  margin-bottom: 4px;
}
.gc-margin { margin-bottom: 4px; }
.gc-fee {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #7c3aed;
  border-radius: 6px;
  padding: 2px 7px;
}
.gc-fee-coming { background: #555; }
.gc-tag {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 500;
}
.gacha-card-coming { opacity: .85; }
.gc-coming-overlay {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,.65);
  border-radius: 6px;
  padding: 3px 8px;
  letter-spacing: 1px;
}
/* 파트너 입점 플로우 */
.gacha-partner-flow {
  margin: 0 20px;
  background: linear-gradient(135deg, #fdf4ff, #f3e8ff);
  border-radius: 16px;
  padding: 18px 18px 20px;
  border: 1.5px solid #e9d5ff;
}
.gpf-title {
  font-size: 13px;
  font-weight: 800;
  color: #5b21b6;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.gpf-steps {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.gpf-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.gpf-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gpf-step-body { flex: 1; }
.gpf-step-title {
  font-size: 12px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.gpf-step-desc {
  font-size: 11px;
  color: #555;
  line-height: 1.55;
}
.gpf-arrow {
  font-size: 16px;
  color: #c44dff;
  font-weight: 900;
  margin-top: 4px;
  flex-shrink: 0;
}
.gpf-apply-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #c44dff, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .2s ease;
}
.gpf-apply-btn:hover { opacity: .9; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════
   📚 인디 출판 플랫폼
═══════════════════════════════════════════════════════════ */
.publish-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 20px;
}
.publish-card {
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.publish-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
}
.ptc-header {
  padding: 16px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ptc-emoji { font-size: 28px; }
.ptc-type-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .5px;
}
.ptc-body { padding: 0 14px 14px; }
.ptc-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-1);
  margin-bottom: 3px;
  letter-spacing: -.01em;
}
.ptc-spec {
  font-size: 10px;
  color: var(--text-3);
  margin-bottom: 6px;
  line-height: 1.45;
}
.ptc-price {
  font-size: 14px;
  font-weight: 900;
  color: #1d4ed8;
  margin-bottom: 5px;
}
.ptc-unit { font-size: 11px; font-weight: 600; color: var(--text-3); }
.ptc-revenue {
  font-size: 12px;
  color: #374151;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ptc-revenue strong { color: #d97706; }
.ptc-target {
  font-size: 10px;
  color: var(--text-3);
  line-height: 1.4;
}
/* 출판 플로우 스트립 */
.publish-flow-strip {
  margin: 0 20px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 16px;
  padding: 18px 18px 20px;
  border: 1.5px solid #bae6fd;
}
.pfs-title {
  font-size: 13px;
  font-weight: 800;
  color: #0369a1;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pfs-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  row-gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}
.pfs-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1.5px solid #bae6fd;
  min-width: 64px;
  text-align: center;
}
.pfs-step-icon { font-size: 18px; }
.pfs-step-label { font-size: 10px; font-weight: 700; color: #0369a1; line-height: 1.3; }
.pfs-step-highlight { background: #0369a1; border-color: #0369a1; }
.pfs-step-highlight .pfs-step-label { color: #fff; }
.pfs-arrow {
  font-size: 18px;
  color: #7dd3fc;
  font-weight: 900;
  flex-shrink: 0;
}
.pfs-start-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #1d4ed8, #3b5bdb);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .2s ease;
}
.pfs-start-btn:hover { opacity: .9; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════
   📅 제작 스케줄 예약 시스템
═══════════════════════════════════════════════════════════ */
.schedule-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 20px;
}
.sfg-card {
  display: flex;
  gap: 12px;
  background: #fafaf9;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .15s;
}
.sfg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(0,0,0,.08);
  background: #fff;
}
.sfg-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sfg-body { flex: 1; min-width: 0; }
.sfg-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.sfg-desc {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 6px;
}
.sfg-benefit {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
}
.user-benefit { background: #dbeafe; color: #1d4ed8; }
.creator-benefit { background: #fce7f3; color: #be185d; }
.printer-benefit { background: #fef9c3; color: #b45309; }
/* 시나리오 */
.schedule-scenarios {
  margin: 0 20px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 16px;
  padding: 18px 18px 20px;
  border: 1.5px solid #bbf7d0;
}
.ss-title {
  font-size: 13px;
  font-weight: 800;
  color: #15803d;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ss-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ss-item {
  display: flex;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #bbf7d0;
  transition: .15s ease;
}
.ss-item:hover { background: #f7fdf9; }
.ss-avatar { font-size: 22px; flex-shrink: 0; }
.ss-body { flex: 1; min-width: 0; }
.ss-who {
  font-size: 12px;
  font-weight: 800;
  color: #15803d;
  margin-bottom: 3px;
}
.ss-flow {
  font-size: 11px;
  color: #374151;
  line-height: 1.6;
}
.ss-goto-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .2s ease;
}
.ss-goto-btn:hover { opacity: .9; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════
   ⚙️ 3자 Win-Win-Win 구조
═══════════════════════════════════════════════════════════ */
.home-winwin-module { background: #f7f6f2; }
.winwin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 20px;
}
.ww-card {
  border-radius: 18px;
  border: 1.5px solid var(--border);
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.ww-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.09); }
.ww-card-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ww-avatar { font-size: 28px; flex-shrink: 0; }
.ww-who {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-1);
  flex: 1;
}
.ww-win-badge {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  padding: 4px 11px;
  border-radius: 20px;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.ww-body { padding: 14px 18px 18px; }
.ww-section-title {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .2px;
}
.ww-before { color: #ef4444; }
.ww-after { color: #059669; margin-top: 12px; }
.ww-list {
  list-style: none;
  margin: 0 0 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ww-list li {
  font-size: 12px;
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}
.ww-list-bad li::before {
  content: '✕';
  position: absolute;
  left: 0;
  font-size: 9px;
  color: #ef4444;
  font-weight: 900;
}
.ww-list-good li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-size: 10px;
  color: #059669;
  font-weight: 900;
}
.ww-list-bad li { color: #9ca3af; }
.ww-list-good li { color: var(--text-2); }
.ww-result {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid;
  font-size: 12px;
  text-align: center;
}
/* Win-Win CTA */
.winwin-cta {
  margin: 0 20px;
  background: #0d0d0d;
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.ww-cta-title {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.ww-cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
}
.ww-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.ww-btn-white, .ww-btn-gold {
  flex: 1;
  min-width: 130px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: .2s ease;
}
.ww-btn-white {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.2);
}
.ww-btn-white:hover { background: rgba(255,255,255,.2); }
.ww-btn-gold {
  background: linear-gradient(135deg, #c9a84c, #f5d478);
  color: #0d0d0d;
}
.ww-btn-gold:hover { opacity: .9; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════
   📱 반응형 — 4-pillar 모듈
═══════════════════════════════════════════════════════════ */
@media(min-width: 600px) {
  .pgb-headline { font-size: 34px; }
  .pgb-inner { padding: 48px 24px 40px; }
  .winwin-grid { grid-template-columns: repeat(3, 1fr); }
  .publish-type-grid { grid-template-columns: repeat(3, 1fr); }
  .schedule-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .gacha-card { width: 160px; }
  .pgb-pillar-line { width: 36px; }
}
@media(max-width: 400px) {
  .pgb-headline { font-size: 24px; }
  .pgb-pillar-icon { width: 44px; height: 44px; font-size: 18px; }
  .pgb-pillar-line { width: 16px; }
  .publish-type-grid { grid-template-columns: 1fr; }
  .schedule-feature-grid { grid-template-columns: 1fr; }
  .sfg-card { flex-direction: column; gap: 8px; }
  .pgb-stat { padding: 0 12px; }
  .pgb-stat-val { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════
   SEC-ORDER — 주문 내역  v1.0
═══════════════════════════════════════════════════════════ */
.order-tabs {
  display:flex; gap:6px; margin-bottom:20px; flex-wrap:wrap;
}
.order-tab {
  padding:7px 16px; border:1.5px solid var(--border);
  background:#fff; border-radius:20px; font-size:12px; font-weight:600;
  color:var(--text-2); cursor:pointer; transition:.15s ease;
}
.order-tab:hover { border-color:#aaa; color:var(--text-1); }
.order-tab.active { background:#0d0d0d; color:#fff; border-color:#0d0d0d; }

.order-list { display:flex; flex-direction:column; gap:12px; margin-bottom:20px; }
.order-card {
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:16px; background:#fff;
  border:1.5px solid var(--border); border-radius:14px; transition:.15s ease;
}
.order-card:hover { border-color:#aaa; box-shadow:0 2px 12px rgba(0,0,0,.06); }
.order-card-left { display:flex; align-items:center; gap:14px; flex:1; min-width:0; }
.order-type-badge { font-size:10px; font-weight:700; padding:4px 10px; border-radius:6px; white-space:nowrap; flex-shrink:0; }
.order-info { min-width:0; }
.order-name { font-size:13px; font-weight:700; color:var(--text-1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.order-meta { font-size:11px; color:var(--text-3); margin-top:2px; }
.order-items { font-size:11px; color:var(--text-2); margin-top:2px; }
.order-card-right { display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex-shrink:0; }
.order-price { font-size:15px; font-weight:800; color:var(--text-1); }
.order-status { font-size:10px; font-weight:700; display:flex; align-items:center; gap:4px; padding:3px 8px; border-radius:6px; white-space:nowrap; }
.order-status-done { background:#dcfce7; color:#15803d; }
.order-status-ship { background:#dbeafe; color:#1d4ed8; }
.order-status-prep { background:#fef3c7; color:#b45309; }
.order-reorder-btn, .order-track-btn {
  background:none; border:1.5px solid var(--border); padding:5px 12px;
  border-radius:7px; font-size:11px; font-weight:600; cursor:pointer; transition:.15s;
}
.order-reorder-btn:hover { background:#0d0d0d; color:#fff; border-color:#0d0d0d; }
.order-track-btn:hover { background:#3b5bdb; color:#fff; border-color:#3b5bdb; }

.order-empty { text-align:center; padding:48px 20px; color:var(--text-3); }
.order-empty i { font-size:40px; margin-bottom:12px; display:block; }
.order-empty p { font-size:14px; margin-bottom:16px; }

.order-credit-banner {
  display:flex; align-items:center; gap:10px;
  padding:14px 16px; background:#fefce8; border:1.5px solid #fde68a;
  border-radius:12px; font-size:12px; color:#92400e;
}

/* ═══════════════════════════════════════════════════════════
   SEC-CLOUD — 클라우드 저장소  v1.0
═══════════════════════════════════════════════════════════ */
.cloud-usage-card {
  background:#fff; border:1.5px solid var(--border); border-radius:14px;
  padding:20px; margin-bottom:20px;
}
.cloud-usage-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; }
.cloud-usage-label { font-size:11px; color:var(--text-3); margin-bottom:4px; }
.cloud-usage-val { font-size:16px; font-weight:800; color:var(--text-1); }
.cloud-plan-badge { font-size:10px; font-weight:700; background:#f3f4f6; color:#374151; padding:4px 10px; border-radius:6px; }
.cloud-usage-bar { height:8px; background:#f0ede8; border-radius:4px; overflow:hidden; margin-bottom:10px; }
.cloud-usage-fill { height:100%; background:linear-gradient(90deg,#3b5bdb,#6366f1); border-radius:4px; transition:width .4s ease; }
.cloud-upgrade-row { display:flex; align-items:center; justify-content:space-between; }
.cloud-upgrade-btn { background:#0d0d0d; color:#fff; border:none; padding:6px 14px; border-radius:7px; font-size:11px; font-weight:700; cursor:pointer; transition:.15s; }
.cloud-upgrade-btn:hover { background:#1a1a1a; }

.cloud-folder-tabs { display:flex; gap:6px; margin-bottom:16px; flex-wrap:wrap; }
.cloud-ftab {
  display:flex; align-items:center; gap:5px; padding:7px 14px;
  border:1.5px solid var(--border); background:#fff; border-radius:20px;
  font-size:11px; font-weight:600; color:var(--text-2); cursor:pointer; transition:.15s;
}
.cloud-ftab:hover { border-color:#aaa; color:var(--text-1); }
.cloud-ftab.active { background:#0d0d0d; color:#fff; border-color:#0d0d0d; }

.cloud-file-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:12px; margin-bottom:20px;
}
.cloud-file-card {
  background:#fff; border:1.5px solid var(--border); border-radius:12px;
  overflow:hidden; transition:.15s ease;
}
.cloud-file-card:hover { border-color:#aaa; box-shadow:0 2px 12px rgba(0,0,0,.06); }
.cloud-file-thumb {
  height:80px; display:flex; align-items:center; justify-content:center;
}
.cloud-file-info { padding:10px 12px 4px; }
.cloud-file-name { font-size:12px; font-weight:700; color:var(--text-1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cloud-file-meta { font-size:10px; color:var(--text-3); margin-top:2px; }
.cloud-file-actions { display:flex; gap:4px; padding:6px 10px 10px; justify-content:flex-end; }
.cloud-file-actions button {
  width:28px; height:28px; border-radius:6px; border:1px solid var(--border);
  background:#fff; color:var(--text-2); font-size:12px; cursor:pointer; transition:.15s;
}
.cloud-file-actions button:hover { background:#f0ede8; }

.cloud-file-add {
  border:1.5px dashed var(--border); border-radius:12px; background:#fafaf9;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; padding:24px 16px; cursor:pointer; color:var(--text-3); transition:.15s; min-height:130px;
}
.cloud-file-add:hover { border-color:#aaa; color:var(--text-1); background:#fff; }
.cloud-file-add i { font-size:24px; }
.cloud-file-add span { font-size:12px; font-weight:600; }

.cloud-sync-row {
  display:flex; align-items:center; gap:8px;
  padding:12px 16px; background:#ecfdf5; border:1px solid #a7f3d0; border-radius:10px;
  font-size:12px; color:#065f46;
}

/* ═══════════════════════════════════════════════════════════
   SEC-SCHEDULE — 스케줄 예약 시스템 v2.0
═══════════════════════════════════════════════════════════ */

/* 탑 탭 */
.sch-top-tabs {
  display:flex; gap:8px; margin-bottom:24px;
  border-bottom:2px solid var(--border); padding-bottom:0;
}
.sch-top-tab {
  padding:10px 18px; border:none; background:none; cursor:pointer;
  font-size:13px; font-weight:700; color:var(--text-3);
  border-bottom:2.5px solid transparent; margin-bottom:-2px;
  transition:.15s; display:flex; align-items:center; gap:6px;
}
.sch-top-tab:hover { color:var(--text-1); }
.sch-top-tab.active { color:#3b5bdb; border-bottom-color:#3b5bdb; }

/* 탭 패널 */
.sch-tab-panel { display:none; }
.sch-tab-panel.active { display:block; }

/* 안내 배너 */
.sch-hero-banner {
  display:flex; align-items:center; gap:16px;
  padding:18px 22px; background:#3b5bdb;
  border-radius:14px; color:#fff; margin-bottom:24px;
}
.sch-hero-icon-wrap {
  width:52px; height:52px; background:rgba(255,255,255,.2);
  border-radius:12px; display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.sch-hero-icon-wrap i { font-size:22px; color:#fff; }
.sch-hero-title { font-size:16px; font-weight:800; margin-bottom:5px; }
.sch-hero-desc { font-size:12px; opacity:.85; line-height:1.6; }

/* ── 카테고리 필터 탭 ── */
.sch-cat-filter-tabs {
  display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px;
}
.sch-cf-tab {
  display:flex; align-items:center; gap:5px;
  padding:7px 14px; border:1.5px solid var(--border);
  background:#fff; border-radius:20px; cursor:pointer;
  font-size:12px; font-weight:700; color:var(--text-2);
  transition:.15s; white-space:nowrap;
}
.sch-cf-tab:hover { border-color:#3b5bdb; color:#3b5bdb; }
.sch-cf-tab.active { background:#3b5bdb; border-color:#3b5bdb; color:#fff; }
.sch-cf-tab i { font-size:11px; }

/* 카테고리 블록 */
.sch-cat-block { margin-bottom:28px; }
.sch-cat-hd {
  display:flex; align-items:center; gap:8px;
  padding:12px 16px; background:#fff;
  border:1.5px solid var(--border); border-left-width:4px;
  border-radius:10px; margin-bottom:14px;
}
.sch-cat-hd i { font-size:14px; }
.sch-cat-hd span:first-of-type { font-size:15px; font-weight:800; color:var(--text-1); flex:1; }
.sch-cat-count {
  font-size:10px; font-weight:700; background:var(--bg);
  color:var(--text-3); padding:3px 8px; border-radius:12px;
}

/* 서비스 카드 그리드 */
.sch-svc-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:12px;
}
.sch-svc-card {
  background:#fff; border:1.5px solid var(--border); border-radius:12px;
  padding:18px 16px; transition:.18s ease; cursor:pointer;
}
.sch-svc-card:hover { border-color:#3b5bdb; box-shadow:0 4px 16px rgba(59,91,219,.1); transform:translateY(-2px); }
.sch-svc-icon {
  width:48px; height:48px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; margin-bottom:12px;
}
.sch-svc-icon i { font-size:20px; }
.sch-svc-title { font-size:14px; font-weight:800; color:var(--text-1); margin-bottom:6px; }
.sch-svc-desc { font-size:11px; color:var(--text-3); line-height:1.5; margin-bottom:14px; }
.sch-svc-btn {
  width:100%; padding:9px; background:#0d0d0d; color:#fff; border:none;
  border-radius:8px; font-size:12px; font-weight:700; cursor:pointer;
  transition:.15s; text-align:center;
}
.sch-svc-btn:hover { background:#3b5bdb; }

/* ══════════════════════════════════════
   예약 캘린더 (내 예약 탭)
══════════════════════════════════════ */
.sch-bkcal-section {
  margin-bottom:28px;
}
.sch-bkcal-title-row {
  display:flex; align-items:center; gap:8px;
  font-size:15px; font-weight:800; color:var(--text-1);
  margin-bottom:14px;
}
.sch-bkcal-title-row i { font-size:15px; }
.sch-bkcal-wrap {
  background:#fff; border:1.5px solid var(--border);
  border-radius:16px; padding:20px 18px;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
}
.sch-bkcal-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:18px;
}
.sch-bkcal-nav {
  width:34px; height:34px; border:1.5px solid var(--border);
  background:#fff; border-radius:8px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; color:var(--text-2); transition:.15s;
}
.sch-bkcal-nav:hover { background:#f0f4ff; border-color:#3b5bdb; color:#3b5bdb; }
.sch-bkcal-month {
  font-size:16px; font-weight:900; color:var(--text-1);
}
/* 7컬럼 그리드: 요일헤더 + 날짜셀 */
.sch-bkcal-grid {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:1px;
  background:var(--border);
  border-radius:10px;
  overflow:hidden;
}
.sch-bkcal-day-hd {
  background:#f8f9fc; text-align:center;
  padding:8px 2px; font-size:12px; font-weight:700; color:var(--text-3);
}
.sch-bkcal-day-hd.sun { color:#ef4444; }
.sch-bkcal-day-hd.sat { color:#3b5bdb; }
.sch-bkcal-cell {
  background:#fff; min-height:72px; padding:6px 5px;
  font-size:11px; vertical-align:top; transition:.12s;
}
.sch-bkcal-cell:hover { background:#f8f9ff; }
.sch-bkcal-cell.other-month { background:#fafafa; }
.sch-bkcal-cell.other-month .sch-bkcal-date { color:#ccc; }
.sch-bkcal-cell.today { background:#eff3ff; }
.sch-bkcal-cell.today .sch-bkcal-date {
  background:#3b5bdb; color:#fff; border-radius:50%;
  width:22px; height:22px; display:inline-flex;
  align-items:center; justify-content:center; font-size:11px;
}
.sch-bkcal-date {
  font-size:12px; font-weight:700; color:var(--text-2);
  display:block; margin-bottom:4px;
}
.sch-bkcal-event {
  display:flex; align-items:center; gap:3px;
  font-size:10px; font-weight:700;
  padding:2px 5px; border-radius:4px;
  margin-bottom:2px; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis;
  max-width:100%;
}
.sch-bkcal-event i { font-size:9px; flex-shrink:0; }
.sch-bkcal-event-more {
  font-size:9px; color:var(--text-3); font-weight:600;
  padding:1px 4px;
}

/* 내 예약 목록 */
.sch-mybook-hd { margin-bottom:16px; }
.sch-mybook-title { font-size:15px; font-weight:800; color:var(--text-1); }
.sch-booking-list { display:flex; flex-direction:column; gap:10px; margin-bottom:20px; }
.sch-booking-item {
  background:#fff; border:1.5px solid var(--border); border-radius:12px;
  display:flex; overflow:hidden; align-items:stretch;
}
.sch-bk-bar { width:4px; flex-shrink:0; }
.sch-bk-body { flex:1; padding:14px 16px; }
.sch-bk-meta { display:flex; align-items:center; justify-content:space-between; margin-bottom:5px; }
.sch-bk-cat { font-size:10px; font-weight:800; letter-spacing:1px; }
.sch-bk-status { font-size:10px; font-weight:700; padding:3px 8px; border-radius:10px; }
.sch-status-done { background:#dcfce7; color:#15803d; }
.sch-status-pending { background:#fee2e2; color:#dc2626; }
.sch-status-wait { background:#fef3c7; color:#d97706; }
.sch-bk-name { font-size:14px; font-weight:700; color:var(--text-1); margin-bottom:3px; }
.sch-bk-date { font-size:11px; color:var(--text-3); }
.sch-bk-cancel {
  background:none; border:none; cursor:pointer; color:var(--text-3);
  font-size:13px; padding:0 14px; transition:.15s; flex-shrink:0;
  display:flex; align-items:center;
}
.sch-bk-cancel:hover { color:#ef4444; }
.sch-add-btn {
  display:flex; align-items:center; justify-content:flex-end; gap:8px;
  background:#0d0d0d; color:#fff; border:none;
  padding:12px 22px; border-radius:24px; font-size:13px; font-weight:700;
  cursor:pointer; transition:.15s; margin-left:auto;
}
.sch-add-btn:hover { background:#3b5bdb; }

/* 알림 빈 상태 */
.sch-notify-empty {
  text-align:center; padding:60px 20px; color:var(--text-3);
}
.sch-notify-empty i { font-size:40px; display:block; margin-bottom:14px; opacity:.4; }
.sch-notify-empty p { font-size:14px; margin-bottom:6px; }
.sch-notify-empty small { font-size:11px; }

/* 반응형 */
@media(max-width:768px) {
  .sch-svc-grid { grid-template-columns:repeat(2,1fr); }
  .sch-cat-filter-tabs { gap:6px; }
  .sch-cf-tab { padding:6px 10px; font-size:11px; }
  .sch-bkcal-cell { min-height:56px; }
}
@media(max-width:480px) {
  .sch-svc-grid { grid-template-columns:1fr 1fr; }
  .sch-top-tab { font-size:11px; padding:8px 12px; }
  .sch-cf-tab { font-size:10px; padding:5px 8px; }
  .sch-bkcal-cell { min-height:44px; padding:4px 3px; }
  .sch-bkcal-event { font-size:9px; padding:1px 3px; }
}
@media(max-width:360px) {
  .sch-svc-grid { grid-template-columns:1fr; }
}

/* 기존 호환 클래스 */
.schedule-hero-banner {
  display:flex; align-items:center; gap:16px;
  padding:20px 24px; background:linear-gradient(135deg,#0d0d0d,#1e3a5f);
  border-radius:14px; color:#fff; margin-bottom:24px;
}
.schedule-type-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:24px; }
.schedule-type-card {
  background:#fff; border:1.5px solid var(--border); border-radius:14px;
  padding:20px 16px; cursor:pointer; transition:.18s ease; text-align:center;
}
.stc-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin:0 auto 12px; }
.stc-icon i { font-size:20px; }
.stc-title { font-size:14px; font-weight:800; color:var(--text-1); margin-bottom:6px; }
.stc-desc { font-size:11px; color:var(--text-3); line-height:1.5; margin-bottom:12px; }
.stc-btn {
  background:#0d0d0d; color:#fff; border:none; padding:8px 16px;
  border-radius:8px; font-size:11px; font-weight:700; cursor:pointer;
}
.schedule-list-section { background:#fff; border:1.5px solid var(--border); border-radius:14px; padding:16px 20px; margin-bottom:24px; }
.schedule-empty { text-align:center; padding:32px 20px; color:var(--text-3); }
.schedule-form-panel { background:#fff; border:2px solid var(--border); border-radius:14px; padding:20px; margin-top:16px; }
.sfp-hd { display:flex; justify-content:space-between; align-items:center; font-size:14px; font-weight:800; margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.sfp-hd button { background:none; border:none; cursor:pointer; color:var(--text-3); font-size:16px; }
.sfp-field { margin-bottom:14px; }
.sfp-field label { display:block; font-size:12px; font-weight:600; color:var(--text-2); margin-bottom:6px; }
.sfp-input { width:100%; padding:10px 12px; border:1.5px solid var(--border); border-radius:8px; font-size:13px; box-sizing:border-box; transition:.15s; }
.sfp-input:focus { outline:none; border-color:#0d0d0d; }
.sfp-submit { width:100%; padding:13px; background:#0d0d0d; color:#fff; border:none; border-radius:10px; font-size:13px; font-weight:700; cursor:pointer; transition:.15s; display:flex; align-items:center; justify-content:center; gap:8px; }
.sfp-submit:hover { background:#1a1a1a; }
.sch-top-tabs {
  display:flex; gap:8px; margin-bottom:24px;
  border-bottom:2px solid var(--border); padding-bottom:0;
}
.sch-top-tab {
  padding:10px 18px; border:none; background:none; cursor:pointer;
  font-size:13px; font-weight:700; color:var(--text-3);
  border-bottom:2.5px solid transparent; margin-bottom:-2px;
  transition:.15s; display:flex; align-items:center; gap:6px;
}
.sch-top-tab:hover { color:var(--text-1); }
.sch-top-tab.active { color:#3b5bdb; border-bottom-color:#3b5bdb; }

/* 탭 패널 */
.sch-tab-panel { display:none; }
.sch-tab-panel.active { display:block; }

/* 안내 배너 */
.sch-hero-banner {
  display:flex; align-items:center; gap:16px;
  padding:18px 22px; background:#3b5bdb;
  border-radius:14px; color:#fff; margin-bottom:24px;
}
.sch-hero-icon-wrap {
  width:52px; height:52px; background:rgba(255,255,255,.2);
  border-radius:12px; display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.sch-hero-icon-wrap i { font-size:22px; color:#fff; }
.sch-hero-title { font-size:16px; font-weight:800; margin-bottom:5px; }
.sch-hero-desc { font-size:12px; opacity:.85; line-height:1.6; }

/* ── 카테고리 필터 탭 ── */
.sch-cat-filter-tabs {
  display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px;
}
.sch-cf-tab {
  display:flex; align-items:center; gap:5px;
  padding:7px 14px; border:1.5px solid var(--border);
  background:#fff; border-radius:20px; cursor:pointer;
  font-size:12px; font-weight:700; color:var(--text-2);
  transition:.15s; white-space:nowrap;
}
.sch-cf-tab:hover { border-color:#3b5bdb; color:#3b5bdb; }
.sch-cf-tab.active { background:#3b5bdb; border-color:#3b5bdb; color:#fff; }
.sch-cf-tab i { font-size:11px; }

/* 카테고리 블록 */
.sch-cat-block { margin-bottom:28px; }
.sch-cat-hd {
  display:flex; align-items:center; gap:8px;
  padding:12px 16px; background:#fff;
  border:1.5px solid var(--border); border-left-width:4px;
  border-radius:10px; margin-bottom:14px;
}
.sch-cat-hd i { font-size:14px; }
.sch-cat-hd span:first-of-type { font-size:15px; font-weight:800; color:var(--text-1); flex:1; }
.sch-cat-count {
  font-size:10px; font-weight:700; background:var(--bg);
  color:var(--text-3); padding:3px 8px; border-radius:12px;
}

/* 서비스 카드 그리드 */
.sch-svc-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:12px;
}
.sch-svc-card {
  background:#fff; border:1.5px solid var(--border); border-radius:12px;
  padding:18px 16px; transition:.18s ease; cursor:pointer;
}
.sch-svc-card:hover { border-color:#3b5bdb; box-shadow:0 4px 16px rgba(59,91,219,.1); transform:translateY(-2px); }
.sch-svc-icon {
  width:48px; height:48px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; margin-bottom:12px;
}
.sch-svc-icon i { font-size:20px; }
.sch-svc-title { font-size:14px; font-weight:800; color:var(--text-1); margin-bottom:6px; }
.sch-svc-desc { font-size:11px; color:var(--text-3); line-height:1.5; margin-bottom:14px; }
.sch-svc-btn {
  width:100%; padding:9px; background:#0d0d0d; color:#fff; border:none;
  border-radius:8px; font-size:12px; font-weight:700; cursor:pointer;
  transition:.15s; text-align:center;
}
.sch-svc-btn:hover { background:#3b5bdb; }

/* 내 예약 목록 */
.sch-mybook-hd { margin-bottom:16px; }
.sch-mybook-title { font-size:15px; font-weight:800; color:var(--text-1); }
.sch-booking-list { display:flex; flex-direction:column; gap:10px; margin-bottom:20px; }
.sch-booking-item {
  background:#fff; border:1.5px solid var(--border); border-radius:12px;
  display:flex; overflow:hidden; align-items:stretch;
}
.sch-bk-bar { width:4px; flex-shrink:0; }
.sch-bk-body { flex:1; padding:14px 16px; }
.sch-bk-meta { display:flex; align-items:center; justify-content:space-between; margin-bottom:5px; }
.sch-bk-cat { font-size:10px; font-weight:800; letter-spacing:1px; }
.sch-bk-status { font-size:10px; font-weight:700; padding:3px 8px; border-radius:10px; }
.sch-status-done { background:#dcfce7; color:#15803d; }
.sch-status-pending { background:#fee2e2; color:#dc2626; }
.sch-status-wait { background:#fef3c7; color:#d97706; }
.sch-bk-name { font-size:14px; font-weight:700; color:var(--text-1); margin-bottom:3px; }
.sch-bk-date { font-size:11px; color:var(--text-3); }
.sch-bk-cancel {
  background:none; border:none; cursor:pointer; color:var(--text-3);
  font-size:13px; padding:0 14px; transition:.15s; flex-shrink:0;
  display:flex; align-items:center;
}
.sch-bk-cancel:hover { color:#ef4444; }
.sch-add-btn {
  display:flex; align-items:center; justify-content:flex-end; gap:8px;
  background:#0d0d0d; color:#fff; border:none;
  padding:12px 22px; border-radius:24px; font-size:13px; font-weight:700;
  cursor:pointer; transition:.15s; margin-left:auto;
}
.sch-add-btn:hover { background:#3b5bdb; }

/* 알림 빈 상태 */
.sch-notify-empty {
  text-align:center; padding:60px 20px; color:var(--text-3);
}
.sch-notify-empty i { font-size:40px; display:block; margin-bottom:14px; opacity:.4; }
.sch-notify-empty p { font-size:14px; margin-bottom:6px; }
.sch-notify-empty small { font-size:11px; }

/* 반응형 */
@media(max-width:768px) {
  .sch-svc-grid { grid-template-columns:repeat(2,1fr); }
  .sch-cat-filter-tabs { gap:6px; }
  .sch-cf-tab { padding:6px 10px; font-size:11px; }
}
@media(max-width:480px) {
  .sch-svc-grid { grid-template-columns:1fr 1fr; }
  .sch-top-tab { font-size:11px; padding:8px 12px; }
  .sch-cf-tab { font-size:10px; padding:5px 8px; }
}
@media(max-width:360px) {
  .sch-svc-grid { grid-template-columns:1fr; }
}

/* 기존 호환 클래스 */
.schedule-hero-banner {
  display:flex; align-items:center; gap:16px;
  padding:20px 24px; background:linear-gradient(135deg,#0d0d0d,#1e3a5f);
  border-radius:14px; color:#fff; margin-bottom:24px;
}
.schedule-type-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:24px; }
.schedule-type-card {
  background:#fff; border:1.5px solid var(--border); border-radius:14px;
  padding:20px 16px; cursor:pointer; transition:.18s ease; text-align:center;
}
.stc-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin:0 auto 12px; }
.stc-icon i { font-size:20px; }
.stc-title { font-size:14px; font-weight:800; color:var(--text-1); margin-bottom:6px; }
.stc-desc { font-size:11px; color:var(--text-3); line-height:1.5; margin-bottom:12px; }
.stc-btn {
  background:#0d0d0d; color:#fff; border:none; padding:8px 16px;
  border-radius:8px; font-size:11px; font-weight:700; cursor:pointer;
}
.schedule-list-section { background:#fff; border:1.5px solid var(--border); border-radius:14px; padding:16px 20px; margin-bottom:24px; }
.schedule-empty { text-align:center; padding:32px 20px; color:var(--text-3); }
.schedule-form-panel { background:#fff; border:2px solid var(--border); border-radius:14px; padding:20px; margin-top:16px; }
.sfp-hd { display:flex; justify-content:space-between; align-items:center; font-size:14px; font-weight:800; margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.sfp-hd button { background:none; border:none; cursor:pointer; color:var(--text-3); font-size:16px; }
.sfp-field { margin-bottom:14px; }
.sfp-field label { display:block; font-size:12px; font-weight:600; color:var(--text-2); margin-bottom:6px; }
.sfp-input { width:100%; padding:10px 12px; border:1.5px solid var(--border); border-radius:8px; font-size:13px; box-sizing:border-box; transition:.15s; }
.sfp-input:focus { outline:none; border-color:#0d0d0d; }
.sfp-submit { width:100%; padding:13px; background:#0d0d0d; color:#fff; border:none; border-radius:10px; font-size:13px; font-weight:700; cursor:pointer; transition:.15s; display:flex; align-items:center; justify-content:center; gap:8px; }
.sfp-submit:hover { background:#1a1a1a; }

/* ═══════════════════════════════════════════════════════════
   SCHEDULE BOOK MODAL — 4단계 예약 등록 모달  v2.0
═══════════════════════════════════════════════════════════ */

/* 오버레이 */
#schBookModal {
  position:fixed; inset:0; z-index:9999;
  background:rgba(0,0,0,.55); backdrop-filter:blur(4px);
  align-items:center; justify-content:center; padding:16px;
}

/* 모달 박스 */
.schm-box {
  background:#fff; border-radius:20px; width:100%; max-width:560px;
  max-height:90vh; display:flex; flex-direction:column;
  box-shadow:0 24px 64px rgba(0,0,0,.25); overflow:hidden;
}

/* 헤더 */
.schm-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 24px; border-bottom:3px solid #3b5bdb;
  background:#fff; flex-shrink:0;
}
.schm-header-left { display:flex; align-items:center; gap:14px; }
.schm-cat-badge {
  width:46px; height:46px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; flex-shrink:0;
}
.schm-title { font-size:16px; font-weight:900; color:#111; line-height:1.2; }
.schm-subtitle { font-size:11px; color:#888; margin-top:2px; font-weight:600; }
.schm-close {
  background:none; border:none; cursor:pointer; color:#888;
  font-size:18px; padding:6px; border-radius:8px;
  transition:.15s; flex-shrink:0;
}
.schm-close:hover { background:#f3f4f6; color:#333; }

/* 단계 바 */
.schm-steps {
  display:flex; align-items:center; padding:14px 24px;
  background:#f9fafb; border-bottom:1px solid #e5e7eb; flex-shrink:0;
}
.schm-step {
  display:flex; align-items:center; gap:6px; flex:1; min-width:0;
}
.schm-step-num {
  width:26px; height:26px; border-radius:50%;
  background:#e5e7eb; color:#9ca3af; font-size:11px; font-weight:900;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:.2s;
}
.schm-step-label { font-size:11px; font-weight:700; color:#9ca3af; transition:.2s; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.schm-step.active .schm-step-num { background:#3b5bdb; color:#fff; }
.schm-step.active .schm-step-label { color:#3b5bdb; }
.schm-step.done .schm-step-num { background:#10b981; color:#fff; }
.schm-step.done .schm-step-label { color:#10b981; }
.schm-step-line { flex:1; height:2px; background:#e5e7eb; margin:0 6px; border-radius:2px; }

/* 폼 본문 */
.schm-body {
  flex:1; overflow-y:auto; padding:20px 24px;
  display:flex; flex-direction:column; gap:0;
}
.schm-body::-webkit-scrollbar { width:5px; }
.schm-body::-webkit-scrollbar-track { background:#f1f5f9; }
.schm-body::-webkit-scrollbar-thumb { background:#cbd5e1; border-radius:4px; }

/* 섹션 타이틀 */
.scmf-section-title {
  font-size:13px; font-weight:800; color:#374151;
  margin-bottom:16px; display:flex; align-items:center; gap:8px;
  padding-bottom:10px; border-bottom:1px solid #f3f4f6;
}
.scmf-section-title i { color:#3b5bdb; }

/* 필드 공통 */
.scmf-field { margin-bottom:14px; }
.scmf-field-check { margin-bottom:10px; }
.scmf-label {
  display:block; font-size:12px; font-weight:700; color:#374151;
  margin-bottom:6px;
}
.scmf-req { color:#ef4444; margin-left:3px; }

/* 입력 요소 */
.scmf-input,
.scmf-textarea,
.scmf-select {
  width:100%; padding:10px 13px;
  border:1.5px solid #e5e7eb; border-radius:10px;
  font-size:13px; color:#111; background:#fff;
  box-sizing:border-box; transition:.15s;
  font-family:inherit;
}
.scmf-input:focus,
.scmf-textarea:focus,
.scmf-select:focus { outline:none; border-color:#3b5bdb; box-shadow:0 0 0 3px rgba(59,91,219,.08); }
.scmf-textarea { resize:vertical; min-height:72px; }
.scmf-select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:36px; }

/* 라디오 그룹 */
.scmf-radio-group {
  display:flex; flex-wrap:wrap; gap:8px;
}
.scmf-radio-opt {
  display:flex; align-items:center; gap:5px;
  padding:7px 12px; border:1.5px solid #e5e7eb;
  border-radius:20px; cursor:pointer; font-size:12px;
  font-weight:600; color:#374151; transition:.15s;
}
.scmf-radio-opt:hover { border-color:#3b5bdb; color:#3b5bdb; }
.scmf-radio-opt input[type="radio"] { display:none; }
.scmf-radio-opt:has(input:checked) { background:#3b5bdb; border-color:#3b5bdb; color:#fff; }

/* 체크박스 단일 */
.scmf-check-wrap {
  display:flex; align-items:center; gap:10px;
  padding:11px 14px; border:1.5px solid #e5e7eb;
  border-radius:10px; cursor:pointer; font-size:13px;
  font-weight:600; color:#374151; transition:.15s;
}
.scmf-check-wrap:hover { border-color:#3b5bdb; }
.scmf-check-wrap input[type="checkbox"] { width:16px; height:16px; accent-color:#3b5bdb; }

/* 체크박스 그룹 (칩) */
.scmf-check-group {
  display:flex; flex-wrap:wrap; gap:7px;
}
.scmf-check-chip {
  display:flex; align-items:center; gap:5px;
  padding:6px 12px; border:1.5px solid #e5e7eb;
  border-radius:16px; cursor:pointer; font-size:11px;
  font-weight:700; color:#374151; transition:.15s;
}
.scmf-check-chip:hover { border-color:#3b5bdb; color:#3b5bdb; }
.scmf-check-chip:has(input:checked) { background:#eff6ff; border-color:#3b5bdb; color:#3b5bdb; }
.scmf-check-chip input { display:none; }

/* 빈 메시지 */
.scmf-empty {
  text-align:center; padding:32px 20px; color:#9ca3af;
  font-size:13px; display:flex; align-items:center; justify-content:center; gap:8px;
}
.scmf-empty i { color:#10b981; }

/* 최종 확인 박스 */
.scmf-confirm-box {
  display:flex; align-items:center; gap:14px;
  padding:16px 18px; border:2px solid #3b5bdb;
  border-radius:14px; background:#eff6ff; margin-top:16px;
}
.scmf-confirm-box i { font-size:24px; flex-shrink:0; }
.scmf-confirm-title { font-size:15px; font-weight:900; color:#111; }
.scmf-confirm-cat { font-size:12px; color:#6b7280; margin-top:3px; }

/* 하단 버튼 바 */
.schm-footer {
  display:flex; align-items:center; gap:10px;
  padding:16px 24px; border-top:1px solid #e5e7eb;
  background:#f9fafb; flex-shrink:0;
}
.schm-btn-prev {
  display:flex; align-items:center; gap:6px;
  padding:11px 18px; background:#fff; border:1.5px solid #e5e7eb;
  border-radius:10px; font-size:13px; font-weight:700; cursor:pointer;
  color:#374151; transition:.15s;
}
.schm-btn-prev:hover { border-color:#3b5bdb; color:#3b5bdb; }
.schm-btn-next {
  display:flex; align-items:center; gap:6px;
  padding:11px 22px; background:#3b5bdb; border:none;
  border-radius:10px; font-size:13px; font-weight:700; cursor:pointer;
  color:#fff; transition:.15s;
}
.schm-btn-next:hover { background:#2d4fc4; }
.schm-btn-submit {
  display:flex; align-items:center; gap:7px;
  padding:11px 22px; background:#10b981; border:none;
  border-radius:10px; font-size:13px; font-weight:700; cursor:pointer;
  color:#fff; transition:.15s;
}
.schm-btn-submit:hover { background:#059669; }

/* ── 옵션 섹션 구분선 ── */
.scmf-common-divider {
  display:flex; align-items:center; gap:8px;
  font-size:11px; font-weight:800; color:#9ca3af;
  margin:16px 0 12px; letter-spacing:.5px;
  text-transform:uppercase;
}
.scmf-common-divider::before, .scmf-common-divider::after {
  content:''; flex:1; height:1px; background:#f3f4f6;
}
.scmf-common-divider i { font-size:11px; }

/* ── 기본 알림 카드 (4단계) ── */
.scmf-notify-cards {
  display:flex; flex-direction:column; gap:10px;
}
.scmf-notify-card {
  display:block; cursor:pointer;
}
.scmf-notify-card input[type="checkbox"] { display:none; }
.scmf-notify-card-inner {
  display:flex; align-items:flex-start; gap:12px;
  padding:14px 16px; border:1.5px solid #e5e7eb;
  border-radius:12px; transition:.18s; background:#fff;
  position:relative;
}
.scmf-notify-card:hover .scmf-notify-card-inner { border-color:#3b5bdb; }
.scmf-notify-card:has(input:checked) .scmf-notify-card-inner {
  border-color:#3b5bdb; background:#eff6ff;
}
.scmf-notify-icon {
  width:40px; height:40px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; flex-shrink:0;
}
.scmf-notify-text { flex:1; min-width:0; }
.scmf-notify-title {
  font-size:13px; font-weight:800; color:#111; margin-bottom:4px;
}
.scmf-notify-desc {
  font-size:11px; color:#6b7280; line-height:1.55;
}
.scmf-notify-check {
  width:22px; height:22px; border-radius:50%;
  background:#e5e7eb; color:#e5e7eb; font-size:11px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:.18s; margin-top:2px;
}
.scmf-notify-card:has(input:checked) .scmf-notify-check {
  background:#3b5bdb; color:#fff;
}

/* 알림 카드 내 태그 뱃지 */
.scmf-notify-tags {
  display:flex; flex-wrap:wrap; gap:5px; margin-top:8px;
}
.scmf-ntag {
  display:inline-flex; align-items:center; gap:4px;
  font-size:10px; font-weight:700; padding:3px 8px;
  border-radius:10px; white-space:nowrap;
}
.scmf-ntag i { font-size:9px; }
.scmf-ntag-orange { background:#fff7ed; color:#ea580c; border:1px solid #fed7aa; }
.scmf-ntag-purple { background:#faf5ff; color:#9333ea; border:1px solid #e9d5ff; }

/* 대기·진행 실시간 알림 설정 박스 */
.scmf-wait-setting {
  display:flex; flex-direction:column; gap:10px;
  padding:14px 16px; background:#f9fafb;
  border:1.5px solid #e5e7eb; border-radius:12px;
}
.scmf-wait-row {
  display:flex; align-items:flex-start; gap:12px;
}
.scmf-wait-icon {
  width:34px; height:34px; border-radius:10px;
  background:#fff; border:1.5px solid #e5e7eb;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; color:#6b7280; flex-shrink:0; margin-top:2px;
}
.scmf-wait-body { flex:1; min-width:0; }
.scmf-wait-title {
  font-size:12px; font-weight:700; color:#374151; margin-bottom:7px;
}
.scmf-wait-chips {
  display:flex; flex-wrap:wrap; gap:6px;
}

/* 예약 확인 박스 알림 문구 목록 */
.scmf-confirm-notice-list {
  display:flex; flex-direction:column; gap:5px; margin-top:8px;
}
.scmf-confirm-notice {
  font-size:11px; font-weight:600;
  display:flex; align-items:center; gap:5px;
}
.scmf-confirm-notice i { font-size:10px; }

/* ── 담당의·주치의 선택 조합 필드 ── */
.scmf-doctor-wrap { display:flex; flex-direction:column; gap:8px; }
.scmf-doctor-sel { width:100%; }
.scmf-doctor-name-wrap {
  display:flex; align-items:center; gap:8px;
  padding:10px 13px; border:1.5px solid #3b5bdb;
  border-radius:10px; background:#eff6ff;
  animation: fadeInDown .2s ease;
}
.scmf-doctor-name-icon { color:#3b5bdb; font-size:14px; flex-shrink:0; }
.scmf-doctor-name-input {
  border:none !important; background:transparent !important;
  padding:0 !important; box-shadow:none !important;
  font-size:13px; flex:1;
}
.scmf-doctor-name-input:focus { outline:none !important; }

@keyframes fadeInDown {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ────────────────────────────────────────────
   4단계 — 예약 내용 최종 확인 카드 (Review Card)
──────────────────────────────────────────── */
.scmf-review-card {
  background:#fff;
  border:2px solid var(--rv-color, #3b5bdb);
  border-radius:16px;
  overflow:hidden;
  margin-bottom:4px;
  box-shadow:0 4px 18px rgba(59,91,219,.08);
}
.scmf-rv-header {
  display:flex; align-items:center; gap:12px;
  padding:14px 16px 12px;
  background:linear-gradient(135deg, #f8faff 0%, #eff6ff 100%);
  border-bottom:1.5px solid #e8eeff;
}
.scmf-rv-badge {
  width:42px; height:42px; border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0;
}
.scmf-rv-titles { flex:1; min-width:0; }
.scmf-rv-svc {
  font-size:15px; font-weight:900; color:#111; line-height:1.2;
}
.scmf-rv-cat {
  font-size:11px; color:#6b7280; font-weight:600; margin-top:2px;
}
.scmf-rv-edit-btn {
  display:flex; align-items:center; gap:5px;
  padding:7px 13px; background:#fff;
  border:1.5px solid var(--rv-color,#3b5bdb);
  border-radius:20px; font-size:11px; font-weight:800;
  color:var(--rv-color,#3b5bdb); cursor:pointer;
  transition:.15s; white-space:nowrap; flex-shrink:0;
}
.scmf-rv-edit-btn:hover {
  background:var(--rv-color,#3b5bdb); color:#fff;
}
.scmf-rv-rows {
  display:flex; flex-direction:column; gap:0;
  padding:6px 0;
}
.scmf-rv-row {
  display:flex; align-items:center; gap:10px;
  padding:9px 16px;
  border-bottom:1px solid #f3f5f9;
  transition:.12s;
}
.scmf-rv-row:last-child { border-bottom:none; }
.scmf-rv-row:hover { background:#fafbff; }
.scmf-rv-icon {
  width:28px; height:28px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; flex-shrink:0;
  background:rgba(59,91,219,.07);
}
.scmf-rv-label {
  flex:0 0 90px; font-size:11px; font-weight:700;
  color:#6b7280; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.scmf-rv-val {
  flex:1; font-size:13px; font-weight:700; color:#111;
  word-break:break-word;
}
.scmf-rv-empty {
  display:flex; align-items:center; gap:8px; justify-content:center;
  padding:20px; color:#9ca3af; font-size:12px;
}
.scmf-rv-empty i { color:#f59e0b; }

/* ────────────────────────────────────────────
   4단계 — 최종 제출 안내 배너 (Submit Banner)
──────────────────────────────────────────── */
.scmf-submit-banner {
  display:flex; align-items:flex-start; gap:14px;
  padding:16px 18px; margin-top:4px;
  background:linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border:2px solid #10b981; border-radius:14px;
}
.scmf-sb-icon {
  width:44px; height:44px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; flex-shrink:0;
}
.scmf-sb-body { flex:1; min-width:0; }
.scmf-sb-title {
  font-size:14px; font-weight:900; color:#065f46; margin-bottom:4px;
}
.scmf-sb-desc {
  font-size:11px; color:#059669; line-height:1.5; margin-bottom:9px;
}
.scmf-sb-tags {
  display:flex; flex-wrap:wrap; gap:6px;
}
.scmf-sb-tag {
  display:inline-flex; align-items:center; gap:4px;
  font-size:10px; font-weight:800;
  padding:4px 9px; border-radius:12px;
  border:1.5px solid; background:#fff;
  white-space:nowrap;
}
.scmf-sb-tag i { font-size:9px; }

/* 반응형 */
@media(max-width:480px) {
  .schm-box { border-radius:14px; max-height:95vh; }
  .schm-header { padding:16px 18px; }
  .schm-body { padding:16px 18px; }
  .schm-footer { padding:12px 18px; }
  .schm-steps { padding:10px 14px; }
  .schm-step-label { display:none; }
  .schm-step-num { width:24px; height:24px; font-size:10px; }
  .schm-btn-prev, .schm-btn-next, .schm-btn-submit { padding:10px 14px; font-size:12px; }
  .scmf-notify-card-inner { padding:12px; gap:10px; }
  .scmf-notify-icon { width:34px; height:34px; font-size:14px; }
  .scmf-rv-label { flex:0 0 72px; }
  .scmf-rv-val { font-size:12px; }
}

/* ═══════════════════════════════════════════════════════════
   SEC-CREDIT — 크레딧 관리  v1.0
═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════
   크레딧 대시보드 (NEW — 5종 크레딧)
═══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════
   크레딧 대시보드 v2 — 스플릿 레이아웃
══════════════════════════════════════════════════════ */

/* 전체 잔액 헤더 바 */
.crd-total-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: #0d0d0d; border-radius: 14px; padding: 22px 28px;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.crd-total-bar-left { display: flex; flex-direction: column; gap: 3px; }
.crd-total-bar-label { font-size: 11px; color: rgba(255,255,255,.5); font-weight: 700; letter-spacing: .5px; }
.crd-total-bar-amount { font-size: clamp(26px,4vw,40px); font-weight: 900; color: #fff; line-height: 1.1; }
.crd-total-bar-sub { font-size: 11px; color: rgba(255,255,255,.4); }
.crd-total-bar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crd-total-bar-btn {
  background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 8px; padding: 9px 16px; font-size: 12px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: .15s;
}
.crd-total-bar-btn:hover { background: rgba(255,255,255,.2); }
.crd-total-bar-btn--history { background: rgba(251,191,36,.15); border-color: rgba(251,191,36,.4); color: #fbbf24; }
.crd-total-bar-btn--history:hover { background: rgba(251,191,36,.25); }

/* 스플릿 레이아웃 래퍼 */
.crd-split-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  border: 2px solid #0d0d0d;
  border-radius: 16px;
  overflow: hidden;
  min-height: 520px;
}
@media(max-width:900px) { .crd-split-layout { grid-template-columns: 1fr; } }

/* ── 왼쪽 패널 ── */
.crd-split-left {
  background: #fafaf9;
  border-right: 2px solid #0d0d0d;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
@media(max-width:900px) { .crd-split-left { border-right: none; border-bottom: 2px solid #0d0d0d; } }

/* 크레딧 항목 행 */
.crd-item {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #e8e6e0;
  cursor: pointer;
  transition: background .13s;
  position: relative;
}
.crd-item:last-child { border-bottom: none; }
.crd-item:hover { background: #f3f4f6; }
.crd-item.active {
  background: #fff;
  border-left: 4px solid #0d0d0d;
}
.crd-item.active::after {
  content: '';
  position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 40px; background: #0d0d0d; border-radius: 2px 0 0 2px;
}
@media(max-width:900px) { .crd-item.active::after { display: none; } }

.crd-item-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.crd-item-body { flex: 1; min-width: 0; }
.crd-item-header-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.crd-item-name { font-size: 13px; font-weight: 800; color: #0d0d0d; }
.crd-item-badge { font-size: 9px; font-weight: 800; border-radius: 20px; padding: 2px 7px; letter-spacing: .3px; }
.crd-item-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.crd-item-tags span { font-size: 9px; background: #f3f4f6; border-radius: 20px; padding: 2px 6px; color: #888; }
.crd-item-bar-wrap { height: 3px; background: #e8e6e0; border-radius: 2px; overflow: hidden; }
.crd-item-bar { height: 100%; border-radius: 2px; transition: width .4s ease; }

.crd-item-right { text-align: right; flex-shrink: 0; }
.crd-item-amount { font-size: clamp(15px,2vw,19px); font-weight: 900; color: #0d0d0d; }
.crd-item-per { font-size: 9px; color: #aaa; margin-top: 2px; }

/* ── 오른쪽 패널 ── */
.crd-split-right { background: #fff; display: flex; flex-direction: column; }

.crd-right-header {
  padding: 22px 24px 0;
  border-bottom: 1.5px solid #e8e6e0;
}
.crd-right-title-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.crd-right-icon { font-size: 28px; }
.crd-right-title { font-size: 18px; font-weight: 900; color: #0d0d0d; }
.crd-right-amount-pill {
  margin-left: auto;
  background: #f0f9ff; color: #2563eb;
  font-size: 16px; font-weight: 900;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px; padding: 4px 14px;
}

/* 탭 바 */
.crd-tab-bar { display: flex; gap: 0; border-bottom: none; }
.crd-tab {
  flex: 1; padding: 12px 8px;
  background: none; border: none;
  border-bottom: 3px solid transparent;
  font-size: 13px; font-weight: 700; color: #aaa;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: .15s;
}
.crd-tab:hover { color: #0d0d0d; }
.crd-tab.active { color: #0d0d0d; border-bottom-color: #0d0d0d; }

/* 탭 콘텐츠 */
.crd-tab-content { padding: 24px; flex: 1; overflow-y: auto; }
.crd-tab-desc { font-size: 13px; color: #888; margin-bottom: 20px; line-height: 1.5; }

/* 충전팩 그리드 (2×2) */
.crd-pack-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 16px; }
@media(max-width:600px) { .crd-pack-grid { grid-template-columns: 1fr; } }
.crd-pack {
  border: 2px solid #e8e6e0; border-radius: 12px; padding: 18px 14px;
  cursor: pointer; position: relative; transition: .15s; text-align: center;
}
.crd-pack:hover { border-color: #0d0d0d; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.07); }
.crd-pack.selected { border-color: #0d0d0d; background: #fafaf9; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.crd-pack-hot { border-color: #f59e0b; background: #fffbeb; }
.crd-pack-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #f59e0b; color: #0d0d0d; font-size: 9px; font-weight: 800;
  padding: 2px 12px; border-radius: 20px;
}
.crd-pack-name { font-size: 10px; font-weight: 700; color: #999; letter-spacing: 1px; margin-bottom: 6px; }
.crd-pack-price { font-size: 22px; font-weight: 900; color: #0d0d0d; }
.crd-pack-credit { font-size: 13px; color: #059669; font-weight: 700; margin-top: 4px; }
.crd-pack-bonus { font-size: 10px; color: #f59e0b; font-weight: 700; margin-top: 2px; }

/* 충전 요약 박스 */
.crd-charge-summary {
  background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 12px;
  padding: 18px 20px; margin-top: 4px;
}
.crd-charge-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 13px; color: #555;
  border-bottom: 1px solid #f1f5f9;
}
.crd-charge-summary-row:last-child { border-bottom: none; }
.crd-charge-confirm-btn {
  width: 100%; margin-top: 16px;
  background: #0d0d0d; color: #fff; border: none;
  border-radius: 10px; padding: 14px 20px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: .15s;
}
.crd-charge-confirm-btn:hover { background: #333; }

/* 내역 툴바 */
.crd-hist-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.crd-hist-toolbar-label { font-size: 13px; font-weight: 800; color: #0d0d0d; }
.crd-hist-select {
  font-size: 12px; border: 1.5px solid #e8e6e0; border-radius: 6px;
  padding: 6px 10px; outline: none; cursor: pointer;
}
.crd-hist-list { display: flex; flex-direction: column; gap: 0; max-height: 380px; overflow-y: auto; }
.crd-hist-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid #f3f4f6; gap: 12px;
}
.crd-hist-left { flex: 1; }
.crd-hist-cat { font-size: 12px; font-weight: 700; color: #0d0d0d; }
.crd-hist-desc { font-size: 11px; color: #888; margin-top: 2px; }
.crd-hist-date { font-size: 10px; color: #bbb; margin-top: 3px; }
.crd-hist-right { text-align: right; flex-shrink: 0; }
.crd-hist-charge .crd-hist-amount { font-size: 15px; font-weight: 900; color: #059669; }
.crd-hist-use    .crd-hist-amount { font-size: 15px; font-weight: 900; color: #dc2626; }
.crd-hist-balance { font-size: 10px; color: #aaa; margin-top: 3px; }
.crd-hist-empty { text-align: center; padding: 48px 0; color: #bbb; }
.crd-hist-empty i { font-size: 36px; margin-bottom: 12px; display: block; }
.crd-hist-empty p { font-size: 13px; margin-bottom: 16px; }
.crd-hist-empty-btn {
  background: #0d0d0d; color: #fff; border: none; border-radius: 8px;
  padding: 10px 20px; font-size: 12px; font-weight: 700; cursor: pointer;
}

/* 구독 없을 때 안내 바 */
.crd-no-plan-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 10px;
  padding: 14px 20px; margin-top: 16px;
  font-size: 13px; color: #92400e;
}
.crd-no-plan-bar i { color: #f59e0b; }
.crd-no-plan-bar button {
  margin-left: auto; background: #f59e0b; color: #0d0d0d;
  border: none; border-radius: 7px; padding: 7px 16px;
  font-size: 12px; font-weight: 800; cursor: pointer;
}

/* 기존 .crd-dashboard 관련 구버전 클래스 → 숨김 처리 */
.crd-dashboard, .crd-charge-panel, .crd-hist-panel { display: none !important; }

.credit-balance-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:24px; }
.credit-balance-card {
  background:#fff; border:1.5px solid var(--border); border-radius:14px;
  padding:20px; display:flex; gap:14px; align-items:flex-start;
}
.cbc-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.cbc-icon i { font-size:20px; }
.cbc-body { flex:1; }
.cbc-label { font-size:11px; font-weight:700; color:var(--text-2); margin-bottom:4px; }
.cbc-amount { font-size:22px; font-weight:900; color:var(--text-1); margin-bottom:4px; }
.cbc-desc { font-size:10px; color:var(--text-3); line-height:1.4; margin-bottom:4px; }
.cbc-expire { font-size:9px; color:var(--text-3); }
.cbc-charge-btn {
  background:#0d0d0d; color:#fff; border:none; padding:7px 14px;
  border-radius:8px; font-size:11px; font-weight:700; cursor:pointer; transition:.15s;
  flex-shrink:0; align-self:center;
}
.cbc-charge-btn:hover { background:#1a1a1a; }

.credit-charge-section { background:#fff; border:1.5px solid var(--border); border-radius:14px; padding:20px; margin-bottom:24px; }
.ccs-title { font-size:14px; font-weight:800; margin-bottom:16px; display:flex; align-items:center; gap:8px; }

.credit-pack-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:12px; }
.credit-pack {
  padding:16px 10px; border:1.5px solid var(--border); border-radius:12px;
  text-align:center; cursor:pointer; transition:.15s ease; background:#fff; position:relative;
}
.credit-pack:hover { border-color:#aaa; }
.cp-featured { border-color:#c9a84c !important; background:#fefce8; }
.cp-badge {
  position:absolute; top:-8px; left:50%; transform:translateX(-50%);
  background:#c9a84c; color:#fff; font-size:9px; font-weight:800;
  padding:2px 8px; border-radius:10px;
}
.cp-name { font-size:11px; font-weight:800; color:var(--text-1); margin-bottom:4px; }
.cp-price { font-size:16px; font-weight:900; color:var(--text-1); margin-bottom:2px; }
.cp-credit { font-size:10px; font-weight:700; color:#3b5bdb; margin-bottom:2px; }
.cp-bonus { font-size:9px; color:var(--text-3); }
.cp-bonus-on { color:#059669; font-weight:700; }

.credit-earn-section { margin-bottom:24px; }
.ces-title { font-size:14px; font-weight:800; color:var(--text-1); margin-bottom:14px; }
.credit-earn-grid { display:flex; flex-direction:column; gap:10px; }
.credit-earn-item {
  display:flex; align-items:center; gap:14px;
  padding:14px 16px; background:#fff; border:1.5px solid var(--border); border-radius:12px;
  cursor:pointer; transition:.15s;
}
.credit-earn-item:hover { border-color:#aaa; }
.cei-icon { font-size:24px; flex-shrink:0; }
.cei-body { flex:1; }
.cei-name { font-size:13px; font-weight:700; color:var(--text-1); margin-bottom:2px; }
.cei-desc { font-size:11px; color:var(--text-3); }
.cei-val { font-size:12px; font-weight:800; color:#3b5bdb; flex-shrink:0; }

.credit-history-section { margin-bottom:20px; }
.chs-title { font-size:14px; font-weight:800; color:var(--text-1); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.credit-history-empty { text-align:center; padding:32px 20px; color:var(--text-3); }
.credit-history-empty i { font-size:32px; display:block; margin-bottom:10px; }

/* ══════════════════════════════════════════════════════
   검색 패널 — 크레딧 미니 위젯  (sp-credit-*)
══════════════════════════════════════════════════════ */

/* 상세 보기 버튼 (섹션 타이틀 오른쪽) */
.sp-credit-detail-btn {
  background: none; border: none; cursor: pointer;
  font-size: 11px; font-weight: 700; color: #f59e0b;
  display: flex; align-items: center; gap: 4px;
  padding: 0; letter-spacing: 0;
}
.sp-credit-detail-btn:hover { color: #d97706; }
.sp-credit-detail-btn i { font-size: 10px; }

/* 총 잔액 바 */
.sp-credit-total-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: #0d0d0d; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 12px;
}
.sp-credit-total-left { display: flex; flex-direction: column; gap: 2px; }
.sp-credit-total-label { font-size: 10px; color: rgba(255,255,255,.5); font-weight: 600; }
.sp-credit-total-amount {
  font-size: 22px; font-weight: 900; color: #fff;
  line-height: 1.1;
}
.sp-credit-charge-shortcut {
  background: #f59e0b; color: #0d0d0d;
  border: none; border-radius: 8px;
  padding: 8px 14px; font-size: 12px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: .15s; white-space: nowrap;
}
.sp-credit-charge-shortcut:hover { background: #fbbf24; }

/* 5종 칩 그리드 */
.sp-credit-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
@media(max-width:480px) { .sp-credit-chips { grid-template-columns: repeat(3, 1fr); } }

/* 각 칩 */
.sp-credit-chip {
  background: #fff; border: 1.5px solid #e8e6e0;
  border-radius: 12px; padding: 12px 8px 8px;
  cursor: pointer; transition: .15s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative; overflow: hidden;
}
.sp-credit-chip:hover {
  border-color: #0d0d0d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.sp-chip-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.sp-chip-body { text-align: center; width: 100%; }
.sp-chip-name {
  font-size: 10px; font-weight: 700; color: #555;
  margin-bottom: 3px;
}
.sp-chip-amount {
  font-size: 13px; font-weight: 900; color: #0d0d0d;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 진행 바 */
.sp-chip-bar-wrap {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: #f3f4f6;
}
.sp-chip-bar {
  height: 100%; border-radius: 0 0 12px 12px;
  transition: width .4s ease;
}

/* 구독 없을 때 안내 */
.sp-credit-no-plan {
  display: none; /* JS로 제어 */
  align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fffbeb; border: 1.5px solid #fde68a;
  border-radius: 10px; padding: 10px 14px;
  font-size: 11px; color: #92400e;
}
.sp-credit-no-plan i { color: #f59e0b; flex-shrink: 0; }
.sp-credit-no-plan button {
  margin-left: auto; background: #f59e0b; color: #0d0d0d;
  border: none; border-radius: 6px; padding: 5px 12px;
  font-size: 11px; font-weight: 800; cursor: pointer;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   SEC-SETTING — 설정  v1.0
═══════════════════════════════════════════════════════════ */
.setting-groups { display:flex; flex-direction:column; gap:20px; margin-bottom:24px; }
.setting-group { background:#fff; border:1.5px solid var(--border); border-radius:14px; overflow:hidden; }
.sg-title {
  padding:14px 18px; font-size:13px; font-weight:800; color:var(--text-1);
  background:#f7f6f2; border-bottom:1.5px solid var(--border);
  display:flex; align-items:center; gap:8px;
}
.setting-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; border-bottom:1px solid var(--border); gap:16px;
}
.setting-row:last-child { border-bottom:none; }
.sr-label { font-size:13px; font-weight:600; color:var(--text-1); flex-shrink:0; }
.sr-control { display:flex; align-items:center; gap:8px; }
.sr-input {
  padding:8px 12px; border:1.5px solid var(--border); border-radius:8px;
  font-size:12px; width:200px; box-sizing:border-box; transition:.15s;
}
.sr-input:focus { outline:none; border-color:#0d0d0d; }
.sr-select {
  padding:8px 12px; border:1.5px solid var(--border); border-radius:8px;
  font-size:12px; background:#fff; cursor:pointer;
}
.sr-plan-badge { background:#f0f9ff; color:#0284c7; border:1px solid #bae6fd; padding:4px 10px; border-radius:6px; font-size:11px; font-weight:700; }
.sr-upgrade-btn { background:#0d0d0d; color:#fff; border:none; padding:6px 12px; border-radius:7px; font-size:11px; font-weight:700; cursor:pointer; }
.sr-action-btn { background:#fff; border:1.5px solid var(--border); padding:7px 14px; border-radius:8px; font-size:11px; font-weight:600; cursor:pointer; transition:.15s; }
.sr-action-btn:hover { background:#f0ede8; }
.sr-danger-btn { border-color:#fecaca !important; color:#ef4444; }
.sr-danger-btn:hover { background:#fee2e2 !important; }
.sr-desc-sm { font-size:10px; color:var(--text-3); }

/* 토글 스위치 */
.sr-toggle { position:relative; display:inline-block; width:42px; height:24px; }
.sr-toggle input { opacity:0; width:0; height:0; }
.sr-slider {
  position:absolute; top:0; left:0; right:0; bottom:0;
  background:#ccc; border-radius:12px; cursor:pointer; transition:.2s;
}
.sr-slider::before {
  content:''; position:absolute; width:18px; height:18px;
  left:3px; bottom:3px; background:#fff; border-radius:50%; transition:.2s;
}
.sr-toggle input:checked + .sr-slider { background:#0d0d0d; }
.sr-toggle input:checked + .sr-slider::before { transform:translateX(18px); }

/* ═══════════════════════════════════════════════════════════
   SEC-SUPPORT — 고객 지원  v1.0
═══════════════════════════════════════════════════════════ */
.support-channel-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:24px; }
.support-channel-card {
  background:#fff; border:1.5px solid var(--border); border-radius:14px;
  padding:20px 16px; text-align:center; cursor:pointer; transition:.18s ease;
}
.support-channel-card:hover { border-color:#3b5bdb; box-shadow:0 4px 16px rgba(59,91,219,.1); transform:translateY(-2px); }
.scc-icon { width:56px; height:56px; border-radius:14px; display:flex; align-items:center; justify-content:center; margin:0 auto 12px; }
.scc-name { font-size:13px; font-weight:800; color:var(--text-1); margin-bottom:6px; }
.scc-desc { font-size:11px; color:var(--text-3); line-height:1.5; margin-bottom:10px; }
.scc-badge { font-size:9px; font-weight:700; padding:3px 8px; border-radius:6px; background:#f3f4f6; color:#374151; }
.scc-fast { background:#dcfce7; color:#15803d; }

.support-guarantee {
  background:#fff; border:1.5px solid var(--border); border-radius:14px;
  padding:20px; margin-bottom:24px;
}
.sg-hd { font-size:14px; font-weight:800; color:var(--text-1); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.sg-items { display:flex; flex-direction:column; gap:8px; }
.sg-item { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--text-1); }

.support-faq-section { margin-bottom:24px; }
.sfaq-title { font-size:14px; font-weight:800; color:var(--text-1); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.sfaq-list { display:flex; flex-direction:column; gap:0; background:#fff; border:1.5px solid var(--border); border-radius:14px; overflow:hidden; }
.sfaq-item { border-bottom:1px solid var(--border); cursor:pointer; padding:0 16px; }
.sfaq-item:last-child { border-bottom:none; }
.sfaq-q { display:flex; align-items:center; gap:10px; padding:14px 0; font-size:13px; font-weight:600; color:var(--text-1); }
.sfaq-icon { transition:transform .2s; flex-shrink:0; color:var(--text-3); font-size:10px; margin-left:auto; }
.sfaq-item.open .sfaq-icon { transform:rotate(180deg); }
.sfaq-a { font-size:12px; color:var(--text-3); line-height:1.7; padding:0 0 14px; display:none; }
.sfaq-item.open .sfaq-a { display:block; }

.support-form-panel {
  background:#fff; border:1.5px solid var(--border); border-radius:14px;
  padding:20px; margin-top:8px;
}
.sfp2-hd {
  display:flex; justify-content:space-between; align-items:center;
  font-size:14px; font-weight:800; margin-bottom:16px; padding-bottom:12px;
  border-bottom:1px solid var(--border);
}
.sfp2-hd button { background:none; border:none; cursor:pointer; color:var(--text-3); font-size:16px; }
.sfp2-field { margin-bottom:14px; }
.sfp2-field label { display:block; font-size:12px; font-weight:600; color:var(--text-2); margin-bottom:6px; }
.sfp2-input {
  width:100%; padding:10px 12px; border:1.5px solid var(--border);
  border-radius:8px; font-size:13px; box-sizing:border-box; transition:.15s; background:#fff;
}
.sfp2-input:focus { outline:none; border-color:#0d0d0d; }
.sfp2-textarea { min-height:90px; resize:vertical; }
.sfp2-submit {
  width:100%; padding:13px; background:#3b5bdb; color:#fff; border:none;
  border-radius:10px; font-size:13px; font-weight:700; cursor:pointer; transition:.15s;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.sfp2-submit:hover { background:#2d4fc9; }

/* ═══════════════════════════════════════════════════════════
   SEC-MYPAGE — 마이페이지  v1.0
═══════════════════════════════════════════════════════════ */
.mypage-activity-item {
  display:flex; align-items:center; gap:12px;
  padding:12px 20px; border-bottom:1px solid var(--border); cursor:pointer; transition:.15s;
}
.mypage-activity-item:last-child { border-bottom:none; }
.mypage-activity-item:hover { background:#f7f6f2; }
.mai-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.mai-icon i { font-size:14px; }
.mai-body { flex:1; }
.mai-title { font-size:12px; font-weight:700; color:var(--text-1); }
.mai-time { font-size:10px; color:var(--text-3); margin-top:2px; }

.mypage-nav-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; background:#fff; border:1.5px solid var(--border);
  border-radius:12px; cursor:pointer; transition:.15s; gap:12px;
}
.mypage-nav-row:hover { border-color:#aaa; background:#f7f6f2; }
.mnr-left { display:flex; align-items:center; gap:12px; font-size:13px; font-weight:600; color:var(--text-1); }
.mnr-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 섹션들 모바일 최적화
═══════════════════════════════════════════════════════════ */
@media(max-width:640px) {
  .credit-balance-row { grid-template-columns:1fr; }
  .credit-pack-grid   { grid-template-columns:repeat(2,1fr); }
  .support-channel-grid { grid-template-columns:1fr; }
  .schedule-type-grid { grid-template-columns:1fr; }
  .cloud-file-grid    { grid-template-columns:repeat(2,1fr); }
  .order-card         { flex-direction:column; align-items:flex-start; }
  .order-card-right   { flex-direction:row; width:100%; justify-content:space-between; align-items:center; }
  .credit-balance-card { flex-direction:column; }
}

/* ═══════════════════════════════════════════════════════════
   ⚙️ Win-Win-Win 블랙/화이트 리스타일
═══════════════════════════════════════════════════════════ */
.home-winwin-module { background:#f7f6f2; }
.ww-hms-header { background:#fff; border-bottom:1px solid #e8e6e0; }
.ww-title { font-family:'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',sans-serif !important; }
.ww-sub   { font-family:'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',sans-serif !important; }
.ww-desc  { font-family:'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',sans-serif !important; }

/* 카드 공통 */
.ww-card-bw {
  border-radius: 16px;
  border: 1.5px solid #e2e0dc;
  background: #fff;
  overflow: hidden;
  font-family: 'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',sans-serif;
}
.ww-card-dark { background: #0d0d0d !important; border-color:#333 !important; }

/* 카드 헤더 */
.ww-header-user  { background:#f7f6f2; padding:16px 18px; display:flex; align-items:center; gap:12px; border-bottom:1.5px solid #e8e6e0; }
.ww-header-biz   { background:#0d0d0d; padding:16px 18px; display:flex; align-items:center; gap:12px; border-bottom:1.5px solid #333; }
.ww-header-print { background:#f7f6f2; padding:16px 18px; display:flex; align-items:center; gap:12px; border-bottom:1.5px solid #e8e6e0; }

.ww-num-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #0d0d0d;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.ww-num-inv { background: #fff !important; color: #0d0d0d !important; }

.ww-who-wrap { flex: 1; }
.ww-who-bw  { font-size:15px; font-weight:900; color:#0d0d0d; line-height:1.2; }
.ww-who-inv { font-size:15px; font-weight:900; color:#fff; line-height:1.2; }
.ww-who-sub      { font-size:10px; color:#888; margin-top:2px; font-weight:500; }
.ww-who-sub-inv  { font-size:10px; color:rgba(255,255,255,.45); margin-top:2px; font-weight:500; }

.ww-win-bw  { font-size:10px; font-weight:800; color:#fff; background:#0d0d0d; padding:4px 11px; border-radius:20px; letter-spacing:.5px; flex-shrink:0; }
.ww-win-inv { font-size:10px; font-weight:800; color:#0d0d0d; background:#fff; padding:4px 11px; border-radius:20px; letter-spacing:.5px; flex-shrink:0; }

/* 카드 바디 */
.ww-body-dark { background:#0d0d0d; padding:14px 18px 18px; }

.ww-section-title { font-size:11px; font-weight:800; margin-bottom:8px; display:flex; align-items:center; gap:7px; }
.ww-before-bw  { color:#888; margin-top:0; }
.ww-after-bw   { color:#0d0d0d; margin-top:12px; }
.ww-before-inv { color:rgba(255,255,255,.45); margin-top:0; }
.ww-after-inv  { color:#fff; margin-top:12px; }

.ww-dot { width:12px; height:12px; border-radius:50%; display:inline-block; flex-shrink:0; }
.ww-dot-x       { background:#ccc; position:relative; }
.ww-dot-x::before, .ww-dot-x::after { content:''; position:absolute; top:50%; left:50%; width:7px; height:1.5px; background:#888; border-radius:2px; }
.ww-dot-x::before { transform:translate(-50%,-50%) rotate(45deg); }
.ww-dot-x::after  { transform:translate(-50%,-50%) rotate(-45deg); }
.ww-dot-check     { background:#0d0d0d; }
.ww-dot-x-inv     { background:rgba(255,255,255,.2); }
.ww-dot-check-inv { background:#fff; }

.ww-list { list-style:none; margin:0 0 0 4px; padding:0; display:flex; flex-direction:column; gap:5px; }
.ww-list li { font-size:12px; line-height:1.55; padding-left:14px; position:relative; }
.ww-list-bad-bw  li { color:#aaa; }
.ww-list-good-bw li { color:#0d0d0d; font-weight:500; }
.ww-list-bad-inv  li { color:rgba(255,255,255,.35); }
.ww-list-good-inv li { color:rgba(255,255,255,.88); font-weight:500; }
.ww-list-bad-bw  li::before { content:'—'; position:absolute; left:0; font-size:9px; color:#ccc; }
.ww-list-good-bw li::before { content:'✓'; position:absolute; left:0; font-size:10px; color:#0d0d0d; font-weight:900; }
.ww-list-bad-inv  li::before { content:'—'; position:absolute; left:0; font-size:9px; color:rgba(255,255,255,.25); }
.ww-list-good-inv li::before { content:'✓'; position:absolute; left:0; font-size:10px; color:#fff; font-weight:900; }

.ww-result-bw {
  margin-top:14px; padding:10px 14px; border-radius:10px;
  background:#0d0d0d; color:#fff;
  font-size:12px; font-weight:700; text-align:center;
  letter-spacing:-.01em;
}
.ww-result-inv {
  margin-top:14px; padding:10px 14px; border-radius:10px;
  background:#fff; color:#0d0d0d;
  font-size:12px; font-weight:700; text-align:center;
}

/* ═══════════════════════════════════════════════════════════
   🛒 홈 쇼핑 모듈 (home-shop-module)
═══════════════════════════════════════════════════════════ */
.home-shop-module {
  background: #fff;
  border-top: 1px solid var(--border);
  padding-bottom: 0;
}
/* 탭 */
.hsm-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1.5px solid #f0efeb;
  padding: 0 16px;
}
.hsm-tabs::-webkit-scrollbar { display:none; }
.hsm-tab {
  flex-shrink: 0;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition: .15s ease;
  white-space: nowrap;
}
.hsm-tab.active { color: #0d0d0d; border-bottom-color: #0d0d0d; font-weight: 800; }
.hsm-tab:hover  { color: #333; }
/* 신상품 배너 */
.hsm-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #f7f6f2;
  border-bottom: 1px solid #ece9e3;
}
.hsm-banner-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  color: #0d0d0d; text-transform: uppercase; margin-bottom: 2px;
}
.hsm-banner-title { font-size: 18px; font-weight: 900; color: #0d0d0d; letter-spacing: -.02em; }
.hsm-banner-right  { font-size: 11px; color: #888; }
/* 상품 그리드 */
.hsm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid #f0efeb;
}
.hsm-item {
  padding: 12px;
  border-right: 1px solid #f0efeb;
  border-bottom: 1px solid #f0efeb;
  cursor: pointer;
  transition: background .15s ease;
}
.hsm-item:hover { background: #fafaf9; }
.hsm-item:nth-child(even) { border-right: none; }
/* 썸네일 */
.hsm-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 9px;
  aspect-ratio: 1/1;
  border: 1px solid #f0efeb;
}
.hsm-thumb-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.hsm-thumb-emoji { font-size: 42px; }
.hsm-wish {
  position: absolute; top: 7px; right: 7px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #ccc;
  transition: .15s ease;
}
.hsm-wish.wished { color: #0d0d0d; }
.hsm-wish:hover   { background: #fff; color: #0d0d0d; }
/* 배지 */
.hsm-new-badge, .hsm-hot-badge, .hsm-coming-badge {
  position: absolute; top: 7px; left: 7px;
  font-size: 9px; font-weight: 800; padding: 2px 7px;
  border-radius: 4px; letter-spacing: .5px;
}
.hsm-new-badge    { background: #0d0d0d; color: #fff; }
.hsm-hot-badge    { background: #e03131; color: #fff; }
.hsm-coming-badge { background: #888; color: #fff; }
/* 상품 정보 */
.hsm-name  { font-size: 12px; font-weight: 700; color: #0d0d0d; margin-bottom: 3px; line-height:1.35; }
.hsm-price { font-size: 14px; font-weight: 900; color: #0d0d0d; margin-bottom: 3px; }
.hsm-meta  { font-size: 10px; color: #999; line-height: 1.4; }
/* 파트너 유도 배너 */
.hsm-partner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: #0d0d0d;
  cursor: pointer;
  transition: .15s ease;
}
.hsm-partner-cta:hover { background: #1a1a1a; }
.hsm-pcta-left { display: flex; align-items: center; gap: 12px; }
.hsm-pcta-icon { font-size: 22px; flex-shrink: 0; }
.hsm-pcta-title { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.hsm-pcta-sub   { font-size: 11px; color: rgba(255,255,255,.55); line-height: 1.5; }
.hsm-pcta-btn {
  flex-shrink: 0; font-size: 12px; font-weight: 700;
  color: #0d0d0d; background: #fff;
  padding: 9px 16px; border-radius: 20px;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
@media(min-width:540px) {
  .hsm-grid { grid-template-columns: repeat(3, 1fr); }
  .hsm-item:nth-child(even)  { border-right: 1px solid #f0efeb; }
  .hsm-item:nth-child(3n)    { border-right: none; }
}
@media(min-width:900px) {
  .hsm-grid { grid-template-columns: repeat(4, 1fr); }
  .hsm-item:nth-child(3n) { border-right: 1px solid #f0efeb; }
  .hsm-item:nth-child(4n) { border-right: none; }
}

/* ═══════════════════════════════════════════════════════════
   📦 택배 시스템 페이지 (sec-delivery)
═══════════════════════════════════════════════════════════ */
.dlv-wrap {
  min-height: 100vh;
  background: #f7f6f2;
  padding-bottom: 80px;
  position: relative;
}
/* ── 새 히어로 레이아웃 ── */
.dlv-hero {
  background: #0d0d0d;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}
.dlv-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 28px,
    rgba(255,255,255,.018) 28px,
    rgba(255,255,255,.018) 30px
  );
  pointer-events: none;
}
.dlv-hero-inner {
  flex: 1; position: relative; z-index: 1;
  padding: 32px 0;
  max-width: 380px;
}
.dlv-hero-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: rgba(255,255,255,.4); text-transform: uppercase;
  margin-bottom: 10px;
}
.dlv-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff; flex-shrink: 0; opacity: .6;
}
.dlv-hero-h1 {
  font-size: 38px; font-weight: 900; color: #fff;
  letter-spacing: -.04em; line-height: 1; margin: 0 0 10px;
}
.dlv-hero-p {
  font-size: 13px; color: rgba(255,255,255,.5);
  line-height: 1.7; margin: 0 0 20px;
}
.dlv-hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.dlv-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.65);
  cursor: pointer; transition: .15s ease;
}
.dlv-chip:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
/* 히어로 우측 비주얼 */
.dlv-hero-visual {
  flex-shrink: 0; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 0;
}
.dlv-truck-anim {
  position: relative; width: 180px; height: 80px;
  display: flex; align-items: center;
}
.dlv-road {
  position: absolute; bottom: 10px; left: 0; right: 0;
  height: 2px; background: rgba(255,255,255,.12);
  border-radius: 2px;
}
.dlv-road::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 40%; height: 100%;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  animation: roadAnim 1.8s linear infinite;
}
@keyframes roadAnim { 0% { left: -40%; } 100% { left: 110%; } }
.dlv-truck {
  font-size: 44px; position: absolute;
  animation: truckBob .6s ease-in-out infinite alternate;
  left: 50%; transform: translateX(-50%);
  bottom: 14px;
}
@keyframes truckBob { from { transform: translateX(-50%) translateY(0); } to { transform: translateX(-50%) translateY(-3px); } }
.dlv-location-pin {
  font-size: 22px; position: absolute; right: 10px; top: 0;
  animation: pinPulse 1.2s ease-in-out infinite alternate;
}
@keyframes pinPulse { from { opacity: 1; transform: scale(1); } to { opacity: .5; transform: scale(.85); } }
.dlv-status-cards {
  display: flex; flex-direction: column; gap: 6px;
}
.dlv-sc {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.4);
}
.dlv-sc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.2); flex-shrink: 0;
}
.dlv-sc-dot.done   { background: rgba(255,255,255,.5); }
.dlv-sc-dot.active { background: #fff; }
.dlv-sc-dot.pulse  { animation: scPulse .9s ease-in-out infinite alternate; }
@keyframes scPulse { from { box-shadow: 0 0 0 0 rgba(255,255,255,.4); } to { box-shadow: 0 0 0 5px rgba(255,255,255,0); } }

/* ── 퀵 메뉴 그리드 ── */
.dlv-quickmenu {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #fff;
  border-bottom: 1.5px solid #f0efeb;
}
.dlv-qm-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 8px;
  border-right: 1px solid #f0efeb;
  cursor: pointer; transition: background .15s;
  text-align: center;
}
.dlv-qm-item:last-child { border-right: none; }
.dlv-qm-item:hover { background: #f7f6f2; }
.dlv-qm-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: #0d0d0d; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-bottom: 8px;
  transition: transform .15s;
}
.dlv-qm-item:hover .dlv-qm-icon { transform: scale(1.08); }
.dlv-qm-label { font-size: 12px; font-weight: 800; color: #0d0d0d; margin-bottom: 2px; }
.dlv-qm-sub   { font-size: 10px; color: #aaa; }

/* ── 패널 헤더 ── */
.dlv-panel-hd {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 20px 18px;
  background: #fff; border-bottom: 1.5px solid #f0efeb;
  margin-bottom: 16px;
}
.dlv-panel-hd-icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: #0d0d0d; color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

/* ── 빈 상태 추가 텍스트 ── */
.dlv-empty-sub { font-size: 11px; color: #ccc; margin-top: 6px; }

/* ── 지원 택배사 스트립 ── */
.dlv-carrier-strip {
  margin: 0 20px 20px;
  background: #fff; border: 1.5px solid #f0efeb; border-radius: 14px;
  padding: 16px 20px;
}
.dlv-carrier-strip-title {
  font-size: 11px; font-weight: 800; color: #aaa;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 12px;
}
.dlv-carrier-logos {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.dlv-carrier-logo-item {
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid #e8e6e0;
  font-size: 11px; font-weight: 700; color: #444;
  background: #fff;
}

/* ── 서비스 안내 카드 ── */
.dlv-info-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; padding: 0 20px 16px;
}
.dlv-info-card {
  background: #fff; border: 1.5px solid #e8e6e0; border-radius: 14px;
  padding: 16px; text-align: center;
}
.dlv-info-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #f7f6f2; color: #0d0d0d;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin: 0 auto 10px;
}
.dlv-info-card-title { font-size: 12px; font-weight: 800; color: #0d0d0d; margin-bottom: 4px; }
.dlv-info-card-desc  { font-size: 10px; color: #aaa; line-height: 1.5; }

/* ── 반품 프로세스 스트립 ── */
.dlv-process-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 0 20px 16px; flex-wrap: nowrap; overflow-x: auto;
}
.dlv-proc-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex-shrink: 0;
}
.dlv-proc-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: #0d0d0d; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
}
.dlv-proc-txt { font-size: 11px; font-weight: 700; color: #444; white-space: nowrap; }
.dlv-proc-arrow { color: #ccc; font-size: 11px; padding: 0 10px; margin-bottom: 14px; flex-shrink: 0; }

/* ── 지점 영업종료 ── */
.dlv-branch-closed { background: #ccc !important; }

/* ── 하단 CTA ── */
.dlv-bottom-cta {
  margin: 24px 20px 0;
  background: #0d0d0d; border-radius: 16px;
  padding: 22px 20px;
}
.dlv-bcta-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.dlv-bcta-title { font-size: 15px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.dlv-bcta-sub   { font-size: 12px; color: rgba(255,255,255,.5); }
.dlv-bcta-btns  { display: flex; gap: 10px; flex-shrink: 0; }
.dlv-bcta-btn-outline {
  height: 40px; padding: 0 16px;
  border: 1.5px solid rgba(255,255,255,.3); border-radius: 10px;
  background: transparent; color: rgba(255,255,255,.7);
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 7px; transition: .15s;
}
.dlv-bcta-btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.dlv-bcta-btn-dark {
  height: 40px; padding: 0 16px;
  background: #fff; color: #0d0d0d; border: none; border-radius: 10px;
  font-size: 13px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; gap: 7px; transition: .15s;
}
.dlv-bcta-btn-dark:hover { background: #eee; }

/* ── 홈 배너 (홈화면에서 택배로 이동) ── */
.home-delivery-banner {
  margin: 0 0 16px;
  background: #0d0d0d; border-radius: 14px;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: .15s ease;
  border: 1.5px solid #1a1a1a;
}
.home-delivery-banner:hover { background: #1a1a1a; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.hdb-left { display: flex; align-items: center; gap: 14px; }
.hdb-icon { font-size: 28px; }
.hdb-title { font-size: 14px; font-weight: 900; color: #fff; margin-bottom: 3px; }
.hdb-sub   { font-size: 11px; color: rgba(255,255,255,.45); }
.hdb-arrow { color: rgba(255,255,255,.4); font-size: 14px; }

/* ── 서브 탭 네비게이션 ── */
.dlv-subnav {
  display: flex;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1.5px solid #e8e6e0;
  position: sticky;
  top: 56px;
  z-index: 100;
  scrollbar-width: none;
}
.dlv-subnav::-webkit-scrollbar { display: none; }
.dlv-snav {
  flex-shrink: 0;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: .15s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dlv-snav:hover { color: #0d0d0d; }
.dlv-snav.active {
  color: #0d0d0d;
  border-bottom-color: #0d0d0d;
  background: none;
}

/* ── 서브 탭 아이콘 포함 ── */
.dlv-snav i { font-size: 11px; }

/* ── 패널 컨테이너 ── */
.dlv-panels { width: 100%; }
.dlv-panel  { display: none; }
.dlv-panel.active { display: block; }

/* ── 패널 타이틀·설명 ── */
.dlv-panel-title {
  font-size: 17px; font-weight: 900; color: #0d0d0d;
  margin: 0 0 3px;
}
.dlv-panel-desc {
  font-size: 12px; color: #aaa; margin: 0;
}

/* ── 조회 유형 카드 그리드 ── */
.dlv-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px 16px;
}
.dlv-type-card {
  background: #fff;
  border: 2px solid #e8e6e0;
  border-radius: 14px;
  padding: 18px 16px;
  cursor: pointer;
  transition: .15s ease;
  text-align: center;
}
.dlv-type-card:hover  { border-color: #0d0d0d; background: #f9f9f9; }
.dlv-type-card.active { border-color: #0d0d0d; background: #0d0d0d; }
.dlv-type-icon {
  font-size: 22px; margin-bottom: 8px; color: #555;
}
.dlv-type-card.active .dlv-type-icon { color: #fff; }
.dlv-type-label {
  font-size: 13px; font-weight: 800; color: #0d0d0d; margin-bottom: 4px;
}
.dlv-type-card.active .dlv-type-label { color: #fff; }
.dlv-type-desc {
  font-size: 11px; color: #aaa;
}
.dlv-type-card.active .dlv-type-desc { color: rgba(255,255,255,.6); }

/* ── 검색 박스 ── */
.dlv-search-box {
  margin: 0 20px 16px;
  background: #fff;
  border: 1.5px solid #e8e6e0;
  border-radius: 14px;
  padding: 18px 16px;
}
.dlv-sb-label {
  font-size: 12px; font-weight: 700; color: #555;
  margin-bottom: 10px;
}
.dlv-sb-row {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap;
}
.dlv-carrier-sel {
  height: 44px; padding: 0 12px;
  border: 1.5px solid #e8e6e0; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: #0d0d0d;
  background: #fff; cursor: pointer;
  flex-shrink: 0;
}
.dlv-num-input {
  flex: 1; height: 44px; padding: 0 14px;
  border: 1.5px solid #e8e6e0; border-radius: 10px;
  font-size: 13px; color: #0d0d0d; background: #fff;
  min-width: 160px;
}
.dlv-num-input:focus  { outline: none; border-color: #0d0d0d; }
.dlv-search-btn {
  height: 44px; padding: 0 20px;
  background: #0d0d0d; color: #fff;
  border: none; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: .15s ease;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.dlv-search-btn:hover { background: #333; }
.dlv-sb-hint {
  margin-top: 8px; font-size: 11px; color: #aaa;
  display: flex; align-items: center; gap: 5px;
}

/* ── 결과 영역 ── */
.dlv-result-area {
  margin: 0 20px 16px;
  background: #fff; border: 1.5px solid #e8e6e0; border-radius: 14px;
  overflow: hidden;
}
.dlv-result-hd {
  padding: 14px 16px; border-bottom: 1.5px solid #f0efeb;
  display: flex; align-items: center; gap: 10px;
}
.dlv-result-carrier {
  font-size: 12px; font-weight: 800; color: #0d0d0d;
}
.dlv-result-invoice {
  font-size: 12px; color: #888; margin-left: auto;
}
/* 진행 단계 */
.dlv-progress {
  display: flex; align-items: center;
  padding: 18px 16px; overflow-x: auto;
  gap: 0; scrollbar-width: none;
}
.dlv-progress::-webkit-scrollbar { display: none; }
.dlv-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex-shrink: 0; min-width: 60px; text-align: center;
}
.dlv-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #e8e6e0; color: #aaa;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900;
}
.dlv-step.done   .dlv-step-dot { background: #0d0d0d; color: #fff; }
.dlv-step.active .dlv-step-dot { background: #0d0d0d; color: #fff;
  box-shadow: 0 0 0 4px rgba(13,13,13,.15); }
.dlv-step-label {
  font-size: 10px; font-weight: 700; color: #bbb; white-space: nowrap;
}
.dlv-step.done  .dlv-step-label  { color: #444; }
.dlv-step.active .dlv-step-label { color: #0d0d0d; }
.dlv-step-line {
  flex: 1; height: 2px; background: #e8e6e0; margin-bottom: 14px;
  min-width: 20px; flex-shrink: 0;
}
.dlv-step.done + .dlv-step-line { background: #0d0d0d; }
/* 히스토리 */
.dlv-hist-list { padding: 0 16px 12px; }
.dlv-hist-row {
  display: flex; gap: 14px; padding: 10px 0;
  border-top: 1px solid #f5f4f2;
}
.dlv-hist-time {
  min-width: 120px; font-size: 11px; color: #aaa;
  flex-shrink: 0;
}
.dlv-hist-msg { font-size: 12px; color: #444; font-weight: 600; }
.dlv-hist-loc { font-size: 11px; color: #bbb; margin-top: 2px; }
/* 빈 상태 */
.dlv-empty {
  padding: 40px 20px;
  text-align: center;
}
.dlv-empty-icon { font-size: 36px; margin-bottom: 10px; opacity: .4; }
.dlv-empty-txt  { font-size: 13px; font-weight: 700; color: #aaa; }

/* ── 공통 폼 카드 ── */
.dlv-form-card {
  margin: 0 20px 12px;
  background: #fff; border: 1.5px solid #e8e6e0; border-radius: 14px;
  padding: 20px 16px;
}
.dlv-form-section-title {
  font-size: 13px; font-weight: 900; color: #0d0d0d;
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 6px;
}
.dlv-field-row  { display: flex; flex-direction: column; gap: 10px; }
.dlv-field-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlv-field-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.dlv-field-group { display: flex; flex-direction: column; gap: 5px; }
.dlv-field-label {
  font-size: 11px; font-weight: 700; color: #555;
}
.dlv-field-input,
.dlv-field-select,
.dlv-field-textarea {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1.5px solid #e8e6e0; border-radius: 10px;
  font-size: 13px; color: #0d0d0d; background: #fff;
  box-sizing: border-box;
}
.dlv-field-input:focus,
.dlv-field-select:focus { outline: none; border-color: #0d0d0d; }
.dlv-field-textarea {
  height: 80px; padding: 10px 12px;
  resize: vertical; line-height: 1.5;
}
.dlv-addr-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 8px;
}
.dlv-addr-input  { flex: 1; height: 42px; padding: 0 12px;
  border: 1.5px solid #e8e6e0; border-radius: 10px;
  font-size: 13px; color: #0d0d0d; background: #fff; }
.dlv-addr-btn {
  height: 42px; padding: 0 14px;
  background: #f5f4f2; color: #0d0d0d;
  border: 1.5px solid #e8e6e0; border-radius: 10px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  white-space: nowrap; display: flex; align-items: center; gap: 5px;
}
.dlv-addr-btn:hover { background: #ece9e3; }

/* ── 제출 버튼 ── */
.dlv-submit-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  width: calc(100% - 40px); margin: 4px 20px 20px;
  height: 50px;
  background: #0d0d0d; color: #fff;
  border: none; border-radius: 12px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  transition: .15s ease;
}
.dlv-submit-btn:hover { background: #333; }

/* ── 국제 배송 카드 ── */
.dlv-intl-services {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 12px; padding: 0 20px 16px;
}
.dlv-intl-card {
  background: #fff; border: 1.5px solid #e8e6e0; border-radius: 14px;
  padding: 18px 12px; text-align: center; position: relative;
  cursor: pointer; transition: .15s ease;
}
.dlv-intl-card:hover { border-color: #0d0d0d; }
.dlv-intl-icon  { font-size: 26px; margin-bottom: 8px; }
.dlv-intl-name  { font-size: 13px; font-weight: 800; color: #0d0d0d; margin-bottom: 3px; }
.dlv-intl-desc  { font-size: 10px; color: #aaa; line-height: 1.5; }
.dlv-intl-badge {
  position: absolute; top: 8px; right: 8px;
  background: #f5f4f2; color: #aaa;
  font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
}

/* ── 지점 리스트 ── */
.dlv-branch-list { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.dlv-branch-card {
  background: #fff; border: 1.5px solid #e8e6e0; border-radius: 14px;
  padding: 16px;
}
.dlv-branch-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.dlv-branch-name  { font-size: 13px; font-weight: 800; color: #0d0d0d; }
.dlv-branch-open  { font-size: 11px; font-weight: 700; color: #10b981; }
.dlv-branch-closed-txt { font-size: 11px; font-weight: 700; color: #aaa; }
.dlv-branch-addr  { font-size: 12px; color: #666; margin-bottom: 4px; }
.dlv-branch-phone { font-size: 12px; color: #aaa; margin-bottom: 4px; }
.dlv-branch-hours { font-size: 11px; color: #bbb; margin-bottom: 10px; }
.dlv-branch-btns  { display: flex; gap: 8px; }
.dlv-branch-btn {
  flex: 1; height: 36px;
  border: 1.5px solid #e8e6e0; border-radius: 8px;
  background: #fff; color: #0d0d0d;
  font-size: 12px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: .15s;
}
.dlv-branch-btn:hover { background: #f5f4f2; }

/* ── 요금 계산기 ── */
.dlv-rate-box {
  margin: 0 20px 12px;
  background: #fff; border: 1.5px solid #e8e6e0; border-radius: 14px;
  padding: 20px 16px;
}
.dlv-rate-box-title {
  font-size: 13px; font-weight: 900; color: #0d0d0d;
  margin: 0 0 14px; display: flex; align-items: center; gap: 6px;
}
.dlv-rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.dlv-rate-result {
  display: none; margin-top: 14px; padding-top: 14px;
  border-top: 1.5px solid #f0efeb; text-align: center;
}
.dlv-rate-result.visible { display: block; }
.dlv-rate-amount {
  font-size: 28px; font-weight: 900; color: #0d0d0d; margin-bottom: 4px;
}
.dlv-rate-note { font-size: 11px; color: #aaa; }
/* 기본 요금표 */
.dlv-rate-table {
  margin: 0 20px 20px;
  background: #fff; border: 1.5px solid #e8e6e0; border-radius: 14px;
  overflow: hidden;
}
.dlv-rate-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dlv-rate-table th {
  background: #f5f4f2; padding: 10px 14px;
  text-align: left; font-weight: 800; color: #555;
  border-bottom: 1.5px solid #e8e6e0;
}
.dlv-rate-table td {
  padding: 10px 14px; border-bottom: 1px solid #f5f4f2; color: #333;
}
.dlv-rate-table tr:last-child td { border-bottom: none; }
.dlv-rate-table-note {
  padding: 10px 14px; font-size: 11px; color: #aaa;
  border-top: 1px solid #f5f4f2;
}

/* ── 반품 유형 선택 ── */
.dlv-return-types {
  display: flex; gap: 10px; margin-bottom: 14px;
}
.dlv-return-opt {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid #e8e6e0; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #555;
  transition: .15s;
}
.dlv-return-opt:has(input:checked) { border-color: #0d0d0d; background: #0d0d0d; color: #fff; }
.dlv-return-opt input[type="radio"] { accent-color: #0d0d0d; }

/* ── 폼 섹션 소제목 ── */
.dlv-form-section {
  font-size: 13px; font-weight: 900; color: #0d0d0d;
  margin: 0 0 12px; display: flex; align-items: center; gap: 6px;
}

/* ── 공통 입력 필드 ── */
.dlv-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.dlv-label { font-size: 11px; font-weight: 700; color: #555; }
.dlv-req   { color: #ef4444; }
.dlv-input {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1.5px solid #e8e6e0; border-radius: 10px;
  font-size: 13px; color: #0d0d0d; background: #fff;
  box-sizing: border-box; transition: border-color .15s;
}
.dlv-input:focus { outline: none; border-color: #0d0d0d; }
.dlv-textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #e8e6e0; border-radius: 10px;
  font-size: 13px; color: #0d0d0d; background: #fff;
  box-sizing: border-box; resize: vertical; line-height: 1.6;
  font-family: inherit;
}
.dlv-textarea:focus { outline: none; border-color: #0d0d0d; }

/* ── 지점 검색 박스 ── */
.dlv-branch-search {
  margin: 0 20px 14px;
  background: #fff; border: 1.5px solid #e8e6e0; border-radius: 14px;
  padding: 16px;
}
.dlv-branch-search-title {
  font-size: 12px; font-weight: 700; color: #555; margin-bottom: 10px;
}
.dlv-branch-row {
  display: flex; gap: 8px;
}
.dlv-branch-row .dlv-carrier-sel  { flex-shrink: 0; }
.dlv-branch-row .dlv-num-input    { flex: 1; }

/* ── 반응형 공통 패딩 ── */
.dlv-form-pad { padding: 0 20px 16px; }

/* ── 기존 HTML 클래스 호환 ── */
/* 결과 헤더 */
.dlv-result-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1.5px solid #f0efeb;
}
/* 진행 스텝 */
.dlv-progress-wrap {
  padding: 18px 16px;
  overflow-x: auto; scrollbar-width: none;
}
.dlv-progress-wrap::-webkit-scrollbar { display: none; }
.dlv-progress-steps {
  display: flex; align-items: center; gap: 0;
  min-width: max-content;
}
.dlv-ps {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex-shrink: 0; min-width: 56px; text-align: center;
}
.dlv-ps-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: #e8e6e0; color: #bbb;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.dlv-ps.done    .dlv-ps-dot { background: #0d0d0d; color: #fff; }
.dlv-ps.current .dlv-ps-dot {
  background: #0d0d0d; color: #fff;
  box-shadow: 0 0 0 5px rgba(13,13,13,.12);
}
.dlv-ps-label { font-size: 10px; font-weight: 700; color: #bbb; white-space: nowrap; }
.dlv-ps.done    .dlv-ps-label { color: #444; }
.dlv-ps.current .dlv-ps-label { color: #0d0d0d; }
.dlv-ps-line {
  flex: 1; height: 2px; background: #e8e6e0;
  margin-bottom: 14px; min-width: 16px; flex-shrink: 0;
}
.dlv-ps-line.done { background: #0d0d0d; }
/* 배송 이력 */
.dlv-history { border-top: 1.5px solid #f0efeb; padding: 0 16px 12px; }
.dlv-history-title {
  font-size: 11px; font-weight: 800; color: #aaa;
  padding: 12px 0 8px;
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: 1px;
}
.dlv-history-row {
  display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid #f5f4f2;
}
.dlv-history-time { min-width: 120px; font-size: 11px; color: #aaa; flex-shrink: 0; }
.dlv-history-msg  { font-size: 12px; font-weight: 600; color: #444; }
.dlv-history-loc  { font-size: 11px; color: #bbb; margin-top: 2px; }
/* 빈 상태 */
.dlv-empty-state {
  padding: 44px 20px; text-align: center;
}
.dlv-empty-icon { font-size: 36px; color: #ccc; margin-bottom: 10px; }
.dlv-empty-text { font-size: 13px; font-weight: 700; color: #aaa; margin-bottom: 6px; }
.dlv-empty-sub  { font-size: 11px; color: #ccc; }

/* ── 히어로 레거시 제거 ── */
.dlv-hero-bg, .dlv-hero-content, .dlv-hero-tag, .dlv-hero-title, .dlv-hero-desc,
.dlv-quick-btns, .dlv-qb, .dlv-float-btns, .dlv-float-btn { display: none !important; }

/* 기존 패널 히어로 → 패널 헤더로 대체 */
.dlv-panel-hero { display: none; }

/* 반응형 */
@media(max-width: 680px) {
  .dlv-hero { flex-direction: column; align-items: flex-start; min-height: unset; }
  .dlv-hero-visual { display: none; }
  .dlv-hero-h1 { font-size: 28px; }
  .dlv-quickmenu { grid-template-columns: repeat(3, 1fr); }
  .dlv-qm-item { border-bottom: 1px solid #f0efeb; }
}
@media(max-width:520px) {
  .dlv-hero-h1    { font-size: 24px; }
  .dlv-type-grid  { grid-template-columns: 1fr 1fr; }
  .dlv-field-row2 { grid-template-columns: 1fr; }
  .dlv-field-row3 { grid-template-columns: 1fr 1fr; }
  .dlv-intl-services { grid-template-columns: 1fr 1fr; }
  .dlv-hist-time  { min-width: 90px; font-size: 10px; }
  .dlv-sb-row     { flex-direction: column; }
  .dlv-carrier-sel, .dlv-num-input, .dlv-search-btn { width: 100%; }
  .dlv-info-cards { grid-template-columns: 1fr; }
  .dlv-quickmenu  { grid-template-columns: repeat(3, 1fr); }
  .dlv-bcta-inner { flex-direction: column; align-items: flex-start; }
  .dlv-hero-title { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════
   📋 파트너 입점신청 페이지 (sec-partner-apply)
═══════════════════════════════════════════════════════════ */
.pa-wrap { padding: 0 0 60px; max-width: 720px; margin: 0 auto; }
/* 히어로 */
.pa-hero {
  background: #0d0d0d;
  padding: 36px 20px 28px;
  text-align: center;
  margin-bottom: 0;
}
.pa-hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: rgba(255,255,255,.45); text-transform: uppercase;
  margin-bottom: 12px;
}
.pa-hero-title {
  font-size: 28px; font-weight: 900; color: #fff;
  letter-spacing: -.03em; line-height: 1.2;
  margin: 0 0 10px;
}
.pa-hero-title span { color: #fff; opacity: .85; }
.pa-hero-desc {
  font-size: 13px; color: rgba(255,255,255,.55);
  line-height: 1.7; margin: 0 0 22px;
}
/* 탭 */
.pa-tabs {
  display: inline-flex; gap: 8px;
  background: rgba(255,255,255,.1);
  border-radius: 12px; padding: 6px;
}
.pa-tab {
  padding: 9px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  border: none; cursor: pointer;
  color: rgba(255,255,255,.55);
  background: transparent;
  transition: .15s ease;
}
.pa-tab.active { background: #fff; color: #0d0d0d; }
.pa-tab:hover:not(.active) { color: #fff; }
/* 패널 */
.pa-panel { display: none; padding: 24px 20px 0; }
.pa-panel.active { display: block; }
/* 섹션 타이틀 */
.pa-section-title {
  font-size: 14px; font-weight: 800; color: #0d0d0d;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1.5px solid #f0efeb;
}
/* 라인업 테이블 */
.pa-lineup-table {
  border: 1.5px solid #e8e6e0;
  border-radius: 14px;
  overflow: hidden;
  font-size: 12px;
}
.pa-lineup-head {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.2fr 0.8fr 1.6fr;
  background: #0d0d0d; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 10px 14px; gap: 8px;
  letter-spacing: .3px;
}
.pa-lineup-row {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.2fr 0.8fr 1.6fr;
  padding: 11px 14px; gap: 8px;
  align-items: center;
  border-top: 1px solid #f0efeb;
  color: #333; transition: background .12s;
}
.pa-lineup-row:hover { background: #fafaf9; }
.pa-lineup-row-coming { opacity: .55; }
.pa-fee {
  font-size: 11px; font-weight: 700;
  background: #0d0d0d; color: #fff;
  padding: 2px 7px; border-radius: 5px;
  display: inline-block; white-space: nowrap;
}
.pa-partner { font-size: 11px; color: #888; }
.pa-partner-coming { font-size: 11px; color: #aaa; font-style: italic; }
/* 플로우 */
.pa-flow {
  display: flex; align-items: flex-start;
  gap: 8px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.pa-flow-step {
  flex: 1; min-width: 140px;
  background: #f7f6f2; border-radius: 12px;
  padding: 14px; border: 1.5px solid #e8e6e0;
  display: flex; gap: 10px; align-items: flex-start;
}
.pa-flow-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: #0d0d0d; color: #fff;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pa-flow-title { font-size: 13px; font-weight: 800; color: #0d0d0d; margin-bottom: 4px; }
.pa-flow-desc  { font-size: 11px; color: #666; line-height: 1.55; }
.pa-flow-arr {
  font-size: 14px; color: #ccc; flex-shrink: 0;
  margin-top: 20px;
}
/* 폼 카드 */
.pa-form-card {
  background: #fff; border: 1.5px solid #e8e6e0;
  border-radius: 16px; padding: 24px 20px;
}
.pa-form-section-head {
  font-size: 13px; font-weight: 800; color: #0d0d0d;
  padding-bottom: 10px; margin-bottom: 16px;
  border-bottom: 1.5px solid #f0efeb;
}
.pa-field { margin-bottom: 14px; }
.pa-field-row { margin-bottom: 0; }
.pa-field-row-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 14px;
}
.pa-label {
  display: block; font-size: 12px; font-weight: 700;
  color: #444; margin-bottom: 6px;
}
.pa-req { color: #e03131; }
.pa-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #e8e6e0; border-radius: 10px;
  font-size: 13px; outline: none;
  box-sizing: border-box; transition: border-color .15s;
  background: #fff; color: #0d0d0d;
}
.pa-input:focus { border-color: #0d0d0d; }
.pa-input::placeholder { color: #bbb; }
.pa-textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #e8e6e0; border-radius: 10px;
  font-size: 13px; outline: none; resize: vertical;
  box-sizing: border-box; transition: border-color .15s;
  background: #fff; color: #0d0d0d; line-height: 1.6;
}
.pa-textarea:focus { border-color: #0d0d0d; }
.pa-hint { font-size: 11px; color: #aaa; margin-top: 4px; }
.pa-radio-group, .pa-check-group {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pa-radio-opt, .pa-check-opt {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid #e8e6e0; border-radius: 8px;
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: .12s ease; color: #444; background: #fff;
}
.pa-radio-opt:hover, .pa-check-opt:hover { border-color: #0d0d0d; }
.pa-radio-opt input, .pa-check-opt input { display: none; }
.pa-radio-opt:has(input:checked), .pa-check-opt:has(input:checked) {
  border-color: #0d0d0d; background: #0d0d0d; color: #fff;
}
/* 파일 업로드 존 */
.pa-file-zone {
  border: 1.5px dashed #ccc; border-radius: 10px;
  padding: 16px; text-align: center;
  color: #aaa; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: .15s;
}
.pa-file-zone:hover { border-color: #0d0d0d; color: #0d0d0d; background: #fafaf9; }
/* 동의 박스 */
.pa-agree-box {
  border: 1.5px solid #e8e6e0; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 14px;
  background: #fafaf9;
}
.pa-agree-title { font-size: 12px; font-weight: 800; color: #0d0d0d; margin-bottom: 10px; }
.pa-agree-body {
  font-size: 11px; color: #666; line-height: 1.7;
  margin-bottom: 12px; border-left: 2px solid #e8e6e0;
  padding-left: 10px;
}
.pa-agree-body strong { color: #0d0d0d; }
.pa-agree-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: #333; cursor: pointer;
}
.pa-agree-check input { width: 16px; height: 16px; accent-color: #0d0d0d; }
/* 버튼 */
.pa-form-btns {
  display: flex; gap: 10px; margin-top: 24px;
}
.pa-cancel-btn {
  flex: 1; padding: 14px;
  background: #fff; color: #333;
  border: 1.5px solid #e8e6e0; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: .15s ease;
}
.pa-cancel-btn:hover { border-color: #0d0d0d; color: #0d0d0d; }
.pa-submit-btn {
  flex: 2; padding: 14px;
  background: #0d0d0d; color: #fff;
  border: none; border-radius: 12px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: .15s ease;
}
.pa-submit-btn:hover { background: #333; transform: translateY(-1px); }
/* 반응형 */
@media(max-width:520px) {
  .pa-lineup-head,
  .pa-lineup-row { grid-template-columns: 1.8fr 1.2fr 0.8fr; }
  .pa-lineup-head span:nth-child(3),
  .pa-lineup-row  span:nth-child(3),
  .pa-lineup-head span:nth-child(5),
  .pa-lineup-row  span:nth-child(5) { display:none; }
  .pa-field-row-2 { grid-template-columns: 1fr; }
  .pa-hero-title  { font-size:22px; }
  .pa-flow { flex-direction:column; }
  .pa-flow-arr { display:none; }
}