:root {
  --primary: #1a6b3c;
  --primary-light: #2d9b57;
  --primary-pale: #e8f5ee;
  --primary-mid: #4dbd7b;
  --accent: #f4a422;
  --accent-light: #fff3dc;
  --accent2: #2667cc;
  --accent2-light: #e8f0fe;
  --bg: #f5f6f0;
  --bg2: #ffffff;
  --card: #ffffff;
  --text: #1a1e16;
  --text2: #4a5545;
  --text3: #8a9485;
  --border: #d8ddd2;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(26,107,60,0.08);
  --shadow-md: 0 4px 24px rgba(26,107,60,0.13);
  --nav-h: 64px;
  --bottom-h: 68px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg); color: var(--text);
  max-width: 430px; margin: 0 auto; min-height: 100vh;
  position: relative; overflow-x: hidden;
}
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: var(--nav-h);
}
.topbar-logo { display: flex; align-items: center; gap: 8px; }
.topbar-logo .logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; box-shadow: 0 2px 8px rgba(26,107,60,0.25); flex-shrink: 0;
}
.topbar-logo .logo-text { font-size: 18px; font-weight: 700; color: var(--primary); letter-spacing: -0.5px; }
.topbar-logo .logo-sub { font-size: 10px; color: var(--text3); letter-spacing: 0.3px; }
.topbar-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 16px; transition: background 0.15s;
}
.icon-btn:active { background: var(--primary-pale); }
.reviewdeal-btn {
  display: flex; align-items: center; gap: 4px; background: var(--accent); color: white;
  border: none; border-radius: 16px; padding: 7px 12px; font-size: 11px; font-weight: 800;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.badge-dot {
  position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%;
  background: #e53935; box-shadow: 0 0 0 2px var(--bg2);
}
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 100;
  background: var(--bg2); border-top: 1px solid var(--border);
  display: flex; height: var(--bottom-h); padding-bottom: env(safe-area-inset-bottom, 0);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bottom-nav::-webkit-scrollbar { display: none; }
.nav-item {
  flex: 0 0 auto; width: 64px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; border: none; background: none; position: relative;
  transition: color 0.15s; color: var(--text3); font-size: 9px; font-weight: 500; padding: 6px 0;
}
.nav-item svg { transition: color 0.15s; }
.nav-item.active { color: var(--primary); }
.nav-item.active svg { color: var(--primary); }
.nav-item .nav-live-dot {
  position: absolute; top: 4px; right: 14px; width: 6px; height: 6px; border-radius: 50%;
  background: #e53935; box-shadow: 0 0 0 2px var(--bg2);
}
.page-wrap { padding-top: 0; padding-bottom: calc(var(--bottom-h) + 16px); min-height: calc(100vh - var(--nav-h)); }
.page { display: none; }
.page.active { display: block; }
.sec-header { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; margin-bottom: 12px; }
.sec-title { font-size: 15px; font-weight: 700; color: var(--text); }
.sec-more { font-size: 12px; color: var(--primary); font-weight: 500; cursor: pointer; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 500; background: var(--primary-pale); color: var(--primary);
}
.chip.accent { background: var(--accent-light); color: #b86d00; }
.chip.blue { background: var(--accent2-light); color: var(--accent2); }
.chip.gray { background: #f0f0ec; color: var(--text2); }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 14px 16px; box-shadow: var(--shadow); }
.card-list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.h-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  margin: 12px 16px; border-radius: var(--radius); padding: 20px 20px 18px; color: white; position: relative; overflow: hidden;
}
.hero-banner h2 { font-size: 19px; font-weight: 800; margin-bottom: 8px; position:relative; line-height: 1.35; }
.hero-banner p { font-size: 13px; opacity: 0.88; line-height: 1.5; position:relative; }
.hero-decor {
  position: absolute; right: 16px; top: 16px; width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center;
}
.hero-btn {
  margin-top: 14px; padding: 8px 18px; background: white; color: var(--primary);
  border-radius: 20px; font-size: 12px; font-weight: 700; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; position:relative;
}
.qi-badge {
  position: absolute; top: 4px; right: 4px; background: #e53935; color: white; font-size: 8px;
  font-weight: 800; padding: 1px 5px; border-radius: 8px; letter-spacing: 0.2px;
}
.reco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.reco-grid .recommend-card { min-width: 0; }
.recommend-card {
  min-width: 200px; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); cursor: pointer;
}
.recommend-card .thumb { height: 100px; background: var(--primary-pale); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.recommend-card .info { padding: 10px 12px; }
.recommend-card .info .name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.recommend-card .info .sub { font-size: 11px; color: var(--text3); margin-bottom: 6px; }
.recommend-card .info .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 16px; }
.region-btn {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 4px; text-align: center; cursor: pointer; font-size: 12px; color: var(--text2); font-weight: 500; transition: all 0.15s;
}
.region-btn:active { background: var(--primary-pale); color: var(--primary); border-color: var(--primary-mid); }
.support-card {
  min-width: 220px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow);
}
.support-card .title { font-size: 13px; font-weight: 600; margin: 6px 0 4px; }
.support-card .org { font-size: 11px; color: var(--text3); }
.support-card .bar-wrap { margin-top: 10px; background: #f0f0ec; border-radius: 4px; height: 4px; }
.support-card .bar { height: 4px; border-radius: 4px; background: var(--accent); }
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0 16px; }
.quick-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 4px 8px; text-align: center; cursor: pointer; transition: all 0.15s; position: relative;
}
.quick-item svg { display: block; margin: 0 auto 5px; width: 20px; height: 20px; }
.quick-item span { font-size: 10px; color: var(--text2); font-weight: 500; }
.quick-item:active { background: var(--primary-pale); }
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.filter-chip {
  flex-shrink: 0; padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--card); color: var(--text2); transition: all 0.15s;
}
.filter-chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.map-placeholder {
  margin: 0 16px; border-radius: var(--radius); overflow: hidden; height: 220px; background: #d1e8da; position: relative;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.map-placeholder .map-inner { text-align: center; color: var(--primary); }
.map-placeholder .map-inner i { font-size: 40px; margin-bottom: 8px; display: block; }
.map-placeholder .map-inner p { font-size: 13px; font-weight: 600; }
.map-placeholder .map-inner small { font-size: 11px; color: var(--text3); }
.company-item { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.company-item .ci-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--primary-pale);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.company-item .ci-info { flex: 1; min-width: 0; }
.company-item .ci-name { font-size: 14px; font-weight: 600; }
.company-item .ci-sub { font-size: 12px; color: var(--text3); margin-top: 2px; }
.company-item .ci-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.detail-overlay {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 100%; z-index: 200;
  background: var(--bg); overflow-y: auto; display: none;
}
.detail-overlay.active { display: block; }
.detail-header { background: var(--primary); padding: 16px 16px 20px; color: white; position: relative; }
.detail-back {
  background: rgba(255,255,255,0.2); border: none; color: white;
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 14px;
}
.detail-header h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.detail-header .d-meta { font-size: 12px; opacity: 0.85; }
.detail-hero-icon { position: absolute; right: 20px; top: 16px; font-size: 50px; opacity: 0.25; }
.info-section { padding: 16px; }
.info-label { font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.info-item { background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; }
.info-item .i-label { font-size: 11px; color: var(--text3); margin-bottom: 2px; }
.info-item .i-val { font-size: 13px; font-weight: 600; }
.action-btns { display: flex; gap: 8px; padding: 0 16px 16px; }
.action-btn {
  flex: 1; padding: 12px 0; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px; transition: opacity 0.15s;
}
.action-btn.primary { background: var(--primary); color: white; }
.action-btn.outline { background: var(--bg); border: 1.5px solid var(--primary); color: var(--primary); }
.action-btn:active { opacity: 0.8; }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.cat-tab {
  flex-shrink: 0; padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--card); color: var(--text2); transition: all 0.15s;
}
.cat-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.product-card .p-img { height: 110px; background: var(--primary-pale); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.product-card .p-info { padding: 10px 10px 12px; }
.product-card .p-name { font-size: 12px; font-weight: 600; margin-bottom: 3px; line-height: 1.4; }
.product-card .p-company { font-size: 10px; color: var(--text3); margin-bottom: 6px; }
.product-card .p-price { font-size: 14px; font-weight: 700; color: var(--primary); }
.product-card .p-original { font-size: 10px; color: var(--text3); text-decoration: line-through; }
.match-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px; }
.match-type-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 12px; cursor: pointer; transition: all 0.15s; text-align: center;
}
.match-type-card:active { background: var(--primary-pale); border-color: var(--primary-mid); }
.match-type-card i { font-size: 24px; color: var(--primary); margin-bottom: 6px; display: block; }
.match-type-card span { font-size: 12px; font-weight: 600; color: var(--text); }
.match-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; }
.match-card .m-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.match-card .m-title { font-size: 14px; font-weight: 700; }
.match-card .m-company { font-size: 12px; color: var(--text3); margin-bottom: 10px; }
.match-card .m-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.match-card .m-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.match-card .m-date { font-size: 11px; color: var(--text3); }
.support-list-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; }
.support-list-card .sl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.support-list-card .sl-title { font-size: 14px; font-weight: 700; flex: 1; line-height: 1.4; }
.support-list-card .sl-amount { font-size: 14px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.support-list-card .sl-org { font-size: 12px; color: var(--text3); margin: 5px 0 8px; }
.support-list-card .sl-bar-wrap { background: #f0f0ec; border-radius: 4px; height: 5px; margin-bottom: 6px; }
.support-list-card .sl-bar { height: 5px; border-radius: 4px; background: var(--accent); }
.support-list-card .sl-deadline { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 4px; }
.ai-rec-banner {
  margin: 12px 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, #1a4b8c 0%, var(--accent2) 100%); padding: 16px; color: white; cursor: pointer;
}
.ai-rec-banner h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.ai-rec-banner p { font-size: 12px; opacity: 0.88; }
.ai-btn { margin-top: 12px; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); color: white; padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; }
.consult-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; display: flex; align-items: center; gap: 14px; cursor: pointer;
}
.consult-card .cc-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--primary-pale);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.consult-card .cc-info { flex: 1; min-width: 0; }
.consult-card .cc-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.consult-card .cc-sub { font-size: 12px; color: var(--text3); }
.consult-card .cc-price { font-size: 13px; font-weight: 700; color: var(--primary); }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; }
.post-card .post-cat { font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.post-card .post-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.post-card .post-meta { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 10px; }
.post-card .post-meta span { display: flex; align-items: center; gap: 3px; }
.profile-head { background: var(--primary); padding: 20px 16px 28px; color: white; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 20px; background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 12px;
}
.profile-head h2 { font-size: 18px; font-weight: 700; margin-bottom: 3px; }
.profile-head .p-role { font-size: 12px; opacity: 0.85; }
.profile-stats { display: flex; gap: 0; margin-top: 16px; }
.p-stat { flex: 1; text-align: center; }
.p-stat:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.2); }
.p-stat .s-num { font-size: 18px; font-weight: 700; }
.p-stat .s-label { font-size: 10px; opacity: 0.8; margin-top: 2px; }
.menu-group { margin: 16px 16px 0; }
.menu-group .mg-title { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; padding-left: 4px; }
.menu-group .mg-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; border-bottom: 1px solid var(--border); }
.menu-item:last-child { border-bottom: none; }
.menu-item svg { color: var(--primary); width: 22px; height: 22px; flex-shrink: 0; }
.menu-item .mi-arr-svg { color: var(--text3); width: 14px; height: 14px; flex-shrink: 0; }
.menu-item .mi-label { flex: 1; font-size: 14px; }
.menu-item .mi-badge { background: var(--primary); color: white; border-radius: 10px; padding: 2px 8px; font-size: 10px; font-weight: 700; }
.reg-form { padding: 0 16px; }
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; display: block; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  background: var(--card); color: var(--text); outline: none; transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary-mid); }
.form-textarea { resize: none; min-height: 80px; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cert-option { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px; text-align: center; cursor: pointer; transition: all 0.15s; background: var(--card); }
.cert-option.selected { border-color: var(--primary); background: var(--primary-pale); color: var(--primary); }
.cert-option i { font-size: 20px; display: block; margin-bottom: 4px; }
.cert-option span { font-size: 11px; font-weight: 600; }
.submit-btn { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 8px; font-family: inherit; }
.toast {
  position: fixed; bottom: calc(var(--bottom-h) + 16px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: white; padding: 10px 20px; border-radius: 24px; font-size: 13px; font-weight: 500; z-index: 999;
  pointer-events: none; opacity: 0; transition: opacity 0.3s; white-space: nowrap;
}
.toast.show { opacity: 1; }
.admin-page { padding: 0 16px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px; }
.stat-box .sb-num { font-size: 24px; font-weight: 700; color: var(--primary); }
.stat-box .sb-label { font-size: 11px; color: var(--text3); margin-top: 2px; }
.stat-box .sb-change { font-size: 11px; color: #2d9b57; font-weight: 600; margin-top: 4px; }
.bid-filter-chip {
  flex-shrink:0; padding:6px 12px; border-radius:20px; font-size:12px; font-weight:600; cursor:pointer;
  border:1.5px solid var(--border); background:var(--card); color:var(--text2); transition:all .15s;
}
.bid-filter-chip.active { background:#e53935; color:white; border-color:#e53935; }
.bid-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; margin:0 16px 10px; box-shadow:var(--shadow); }
.bid-card-inner { padding:13px 14px; cursor:pointer; }
.bid-card-inner:active { background:var(--bg); }
.bid-header-row { display:flex; align-items:center; gap:6px; margin-bottom:7px; }
.bid-type-badge { font-size:10px; font-weight:700; padding:2px 8px; border-radius:20px; }
.bid-src-badge  { font-size:10px; font-weight:700; padding:2px 8px; border-radius:20px; }
.bid-dday       { font-size:11px; font-weight:800; margin-left:auto; }
.bid-title { font-size:14px; font-weight:700; color:var(--text); line-height:1.4; margin-bottom:5px; }
.bid-meta  { font-size:12px; color:var(--text3); display:flex; gap:5px; align-items:center; margin-bottom:8px; }
.bid-footer { display:flex; align-items:center; justify-content:space-between; padding-top:8px; border-top:1px solid var(--border); font-size:11px; color:var(--text3); }
.bid-status-open { background:#e8f5ee; color:var(--primary); padding:2px 8px; border-radius:10px; font-weight:700; font-size:10px; }
.bid-status-close { background:#fce4ec; color:#e53935; padding:2px 8px; border-radius:10px; font-weight:700; font-size:10px; }
.step-dot { font-size:9px; font-weight:700; color:var(--text3); transition:color .2s; }
.active-dot { color:var(--primary); font-weight:800; }
.done-dot { color:var(--primary-light); }
.reg-step { animation:fadeIn .25s ease; }
.reg-chip {
  display:inline-flex; align-items:center; padding:6px 12px; border-radius:20px; font-size:12px; font-weight:600;
  background:var(--card); border:1.5px solid var(--border); color:var(--text2); cursor:pointer; transition:all .15s; user-select:none;
}
.reg-chip.selected { background:var(--primary-pale); border-color:var(--primary-mid); color:var(--primary); font-weight:700; }
.reg-next-btn {
  width:100%; padding:13px; background:var(--primary); color:white; border:none; border-radius:var(--radius-sm);
  font-size:14px; font-weight:700; cursor:pointer; font-family:inherit; margin-bottom:20px;
  display:flex; align-items:center; justify-content:center; gap:6px;
}
.reg-next-btn:active { opacity:.85; }
.reg-prev-btn {
  padding:13px 18px; background:var(--bg); border:1.5px solid var(--border); color:var(--text2);
  border-radius:var(--radius-sm); font-size:13px; font-weight:600; cursor:pointer; font-family:inherit; margin-bottom:20px; white-space:nowrap;
}
.section-space { margin-bottom: 20px; }
.page-illust-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 14px; margin-bottom: 0; position: relative; overflow: hidden; }
.page-illust-header::before { content: ''; position: absolute; right: -30px; bottom: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,0.07); }
.pih-text { flex: 1; }
.pih-title { font-size: 16px; font-weight: 800; color: white; margin-bottom: 3px; letter-spacing: -0.3px; }
.pih-sub { font-size: 11px; color: rgba(255,255,255,0.82); line-height: 1.4; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideUp { from { transform: translateY(100%); opacity:0; } to { transform: translateY(0); opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.52); z-index: 500; display: flex; align-items: flex-end; animation: fadeIn 0.22s ease; }
.modal-sheet {
  width: 100%; max-width: 430px; margin: 0 auto; background: var(--bg2); border-radius: 24px 24px 0 0;
  overflow: hidden; animation: slideUp 0.3s cubic-bezier(.22,.68,0,1.2); max-height: 92vh; overflow-y: auto;
}
.modal-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 12px auto 0; }
.modal-header { padding: 14px 20px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 17px; font-weight: 800; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 15px;
}
.modal-body { padding: 16px 20px 32px; }
.pv-gauge-wrap { background: var(--bg); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; text-align: center; }
.pv-big-num { font-size: 36px; font-weight: 800; color: var(--accent); letter-spacing: -1px; line-height: 1.1; }
.pv-label { font-size: 12px; color: var(--text3); margin-top: 3px; }
.pv-bar-outer { height: 10px; background: var(--border); border-radius: 5px; margin: 14px 0 6px; overflow: hidden; }
.pv-bar-inner { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #f4a422 0%, #ffdb57 100%); transition: width 0.8s cubic-bezier(.4,0,.2,1); }
.pv-milestone { display: flex; justify-content: space-between; font-size: 10px; color: var(--text3); }
.invite-link-box {
  background: var(--bg); border: 1.5px dashed var(--primary-mid); border-radius: var(--radius-sm); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; cursor: pointer;
}
.invite-link-box .il-url { flex: 1; font-size: 12px; color: var(--primary); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-link-box .il-copy {
  font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-pale);
  padding: 4px 10px; border-radius: 6px; border: none; cursor: pointer; flex-shrink: 0; font-family: inherit;
}
.invite-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.invite-row:last-child { border-bottom: none; }
.invite-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fee500; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.invite-row .ir-info { flex: 1; min-width: 0; }
.invite-row .ir-name { font-size: 13px; font-weight: 600; }
.invite-row .ir-date { font-size: 11px; color: var(--text3); margin-top: 1px; }
.invite-row .ir-pv { font-size: 13px; font-weight: 700; color: var(--accent); }
.cashback-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius); padding: 18px; color: white; margin-bottom: 16px; text-align: center;
}
.cashback-card .cb-amount { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.cashback-card .cb-sub { font-size: 12px; opacity: 0.85; }
.cashback-step { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.cashback-step .cs-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; margin-top: 1px;
}
.cashback-step .cs-text { flex: 1; font-size: 13px; color: var(--text2); line-height: 1.5; }
.cashback-step .cs-text b { color: var(--text); }
.reviewdeal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.38); z-index: 500; display: flex; align-items: flex-end; animation: fadeIn 0.22s ease; }
.reviewdeal-popup {
  width: 100%; max-width: 430px; margin: 0 auto; background: #fffde7; border-radius: 18px 18px 0 0;
  overflow: hidden; animation: slideUp 0.28s cubic-bezier(.22,.68,0,1.2); border-top: 3px solid #f4c400;
}
.rdp-handle { width: 28px; height: 3px; background: #e8c200; border-radius: 2px; margin: 8px auto 0; }
.rdp-header { background: #f4c400; padding: 10px 14px 10px; color: #3a2c00; position: relative; display: flex; align-items: center; gap: 8px; }
.rdp-close {
  position: absolute; top: 8px; right: 10px; background: rgba(0,0,0,0.1); border: none; color: #3a2c00;
  width: 22px; height: 22px; border-radius: 50%; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.rdp-header-logo { font-size: 20px; }
.rdp-header h2 { font-size: 13px; font-weight: 800; margin: 0; line-height: 1.3; color: #3a2c00; }
.rdp-header p { font-size: 10px; color: #5a4200; margin: 1px 0 0; }
.rdp-body { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 0; }
.rdp-points { display: flex; gap: 6px; margin-bottom: 8px; }
.rdp-point { flex: 1; background: #fff9c4; border: 1px solid #f4c400; border-radius: 8px; padding: 6px 8px; text-align: center; }
.rdp-point .rp-icon { font-size: 14px; display: block; margin-bottom: 2px; }
.rdp-point .rp-text { font-size: 9px; font-weight: 700; color: #5a3d00; line-height: 1.3; }
.rdp-cta {
  display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; padding: 9px;
  background: #f4c400; color: #3a2c00; border: none; border-radius: 8px; font-size: 12px;
  font-weight: 800; cursor: pointer; font-family: inherit; margin-bottom: 5px;
}
.rdp-cta:active { opacity: 0.85; }
.rdp-skip { display: block; text-align: center; font-size: 10px; color: #a89030; cursor: pointer; padding: 3px; background: none; border: none; font-family: inherit; width: 100%; }

/* ─── 소셜 로그인 ─── */
.social-login-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; margin-bottom: 10px; border: 1.5px solid var(--border);
  transition: opacity 0.15s;
}
.social-login-btn:active { opacity: 0.82; }
.social-login-btn .sl-icon { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; }
.social-login-btn.google { background: white; color: #1f1f1f; border-color: var(--border); }
.social-login-btn.kakao { background: #FEE500; color: #191919; border-color: #FEE500; }
.social-login-btn.naver { background: #03C75A; color: white; border-color: #03C75A; }
.social-login-btn.guest { background: var(--bg); color: var(--text2); border-color: var(--border); font-weight: 600; }
.login-divider { display: flex; align-items: center; text-align: center; margin: 14px 0; color: var(--text3); font-size: 11px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border); }
.login-divider span { padding: 0 10px; }
.user-avatar-img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.profile-avatar.has-img { padding: 0; overflow: hidden; }
.provider-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 10px; margin-top: 6px;
}
.provider-badge.google { background: rgba(255,255,255,0.25); color: white; }
.provider-badge.kakao { background: #FEE500; color: #191919; }
.provider-badge.naver { background: #03C75A; color: white; }
.provider-badge.guest { background: rgba(255,255,255,0.2); color: white; }
