/* ==========================================================================
   민원타운 (MinwonTown) — 공통 스타일
   다크 네이비 + 골드 / 모바일 퍼스트 반응형
   breakpoints: 640 / 1024 / 1280
   ========================================================================== */
@font-face {
  font-family: 'Pretendard Variable';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('fonts/PretendardVariable.woff2') format('woff2-variations');
}

:root {
  --bg: #050b1a;
  --bg-2: #08122a;
  --panel: #0c1730;
  --panel-2: #101e3d;
  --line: rgba(232, 195, 106, .28);
  --line-soft: rgba(255, 255, 255, .09);
  --gold: #e8c36a;
  --gold-2: #c9a24b;
  --gold-grad: linear-gradient(180deg, #f4d98c 0%, #e2b955 55%, #c9a24b 100%);
  --text: #f4f6fb;
  --muted: #a3afc7;
  --faint: #6f7b94;
  --danger: #ff5a64;
  --danger-bg: rgba(255, 90, 100, .12);
  --purple: #a98bff;
  --purple-bg: rgba(130, 90, 255, .16);
  --ok: #3ddc97;
  --info: #4aa8ff;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --container: 1280px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.55; letter-spacing: -.01em; word-break: keep-all;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
main { flex: 1 0 auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--gold); color: #1a1405; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.gold { color: var(--gold); }
.ico { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s, filter .15s, background .15s;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-grad); color: #1b1405; box-shadow: 0 6px 22px rgba(226, 185, 85, .28), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-gold:hover { filter: brightness(1.07); box-shadow: 0 8px 28px rgba(226, 185, 85, .4), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-gold[disabled], .btn-gold.is-disabled { filter: grayscale(.85) brightness(.55); box-shadow: none; cursor: not-allowed; }
.btn-outline { border-color: var(--gold-2); color: var(--text); background: rgba(5, 11, 26, .55); }
.btn-outline:hover { background: rgba(232, 195, 106, .12); }
.btn-lg { min-height: 58px; font-size: 18px; padding: 0 30px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* ==========================================================================
   Header / GNB / Mega menu
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(5, 11, 26, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hd-inner { height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-name { font-size: 24px; font-weight: 800; color: var(--gold); letter-spacing: -.03em; }
.brand-tag { display: none; font-size: 12px; color: var(--muted); line-height: 1.3; padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--line-soft); max-width: 110px; }

.gnb { display: none; flex: 1; height: 100%; }
.gnb-list { display: flex; height: 100%; margin: 0 auto; }
.gnb-item { position: static; height: 100%; }
.gnb-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 22px;
  font-size: 17px; font-weight: 600; color: #e9edf6; transition: color .15s;
}
.gnb-link::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold-grad); transform: scaleX(0); transition: transform .2s; }
.gnb-item:hover > .gnb-link, .gnb-item:focus-within > .gnb-link, .gnb-item.is-open > .gnb-link, .gnb-link.is-current { color: var(--gold); }
.gnb-item:hover > .gnb-link::after, .gnb-item:focus-within > .gnb-link::after, .gnb-item.is-open > .gnb-link::after, .gnb-link.is-current::after { transform: scaleX(1); }
.gnb-link .caret { width: 14px; height: 14px; opacity: .7; transition: transform .2s; }
.gnb-item:hover .caret, .gnb-item.is-open .caret { transform: rotate(180deg); }

/* mega panel — 헤더 전체 폭 */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: linear-gradient(180deg, rgba(8, 18, 42, .98), rgba(5, 11, 26, .98));
  border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none;
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.gnb-item:hover > .mega, .gnb-item:focus-within > .mega, .gnb-item.is-open > .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.mega-inner { max-width: var(--container); margin: 0 auto; padding: 32px 16px 36px; display: grid; grid-template-columns: 220px repeat(4, 1fr); gap: 28px; }
.mega-inner.cols-3 { grid-template-columns: 220px repeat(3, 1fr); }
.mega-inner.cols-2 { grid-template-columns: 220px repeat(2, 1fr) 1fr; }
.mega-intro h3 { font-size: 24px; color: var(--gold); font-weight: 800; margin-bottom: 8px; }
.mega-intro p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.mega-intro .btn { min-height: 40px; font-size: 14px; }
.mega-col h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--gold); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.mega-col li a { display: block; padding: 7px 0; font-size: 15px; color: #d9e0ee; transition: color .15s, transform .15s; }
.mega-col li a:hover { color: var(--gold); transform: translateX(3px); }
.mega-promo { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: radial-gradient(120% 120% at 100% 0, rgba(232, 195, 106, .18), transparent 60%), var(--panel); display: flex; flex-direction: column; gap: 8px; }
.mega-promo .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: #1b1405; background: var(--gold-grad); padding: 2px 10px; border-radius: 999px; }
.mega-promo strong { font-size: 18px; line-height: 1.35; }
.mega-promo p { font-size: 13.5px; color: var(--muted); }
.mega-promo a { margin-top: auto; color: var(--gold); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }

.hd-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; color: #e9edf6; transition: background .15s, color .15s; }
.icon-btn:hover { background: rgba(232, 195, 106, .12); color: var(--gold); }
.icon-btn .ico { width: 22px; height: 22px; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; border-radius: 999px; font-size: 14px; color: #e9edf6; }
.dd-btn:hover { background: rgba(232, 195, 106, .12); }
.dd-btn .ico { width: 18px; height: 18px; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow); display: none; z-index: 5; }
.dd.is-open .dd-menu { display: block; }
.dd-menu a, .dd-menu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: #dfe5f1; }
.dd-menu a:hover, .dd-menu button:hover { background: rgba(232, 195, 106, .12); color: var(--gold); }
.dd-menu [aria-current="true"] { color: var(--gold); font-weight: 700; }
.hd-auth { display: none; align-items: center; gap: 8px; margin-left: 6px; }
.hd-auth .login-link { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 42px; border-radius: 999px; }
.hd-auth .login-link:hover { color: var(--gold); }
.hd-auth .join { height: 36px; padding: 0 16px; border: 1px solid var(--gold-2); border-radius: 999px; font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; }
.hd-auth .join:hover { background: rgba(232, 195, 106, .12); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 4px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.user-chip img { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--gold-2); }
.burger { display: inline-grid; }

/* 검색 오버레이 */
.search-ov { position: fixed; inset: 0; z-index: 200; background: rgba(3, 7, 18, .86); backdrop-filter: blur(8px); display: none; padding: 80px 16px 16px; }
.search-ov.is-open { display: block; }
.search-box { max-width: 720px; margin: 0 auto; }
.search-field { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--gold-2); border-radius: 999px; padding: 0 20px; height: 60px; }
.search-field input { flex: 1; background: none; border: 0; outline: 0; font-size: 18px; min-width: 0; }
.search-res { margin-top: 14px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); max-height: 60vh; overflow: auto; }
.search-res a { display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.search-res a:last-child { border: 0; }
.search-res a:hover, .search-res a:focus { background: rgba(232, 195, 106, .1); }
.search-res small { color: var(--gold); font-size: 12px; }
.search-res .none { padding: 24px 20px; color: var(--muted); }

/* 모바일 드로어 */
.m-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--bg); overflow-y: auto; padding: 8px 16px 40px; display: none; border-top: 1px solid var(--line); }
.m-nav.is-open { display: block; }
.m-nav > ul > li { border-bottom: 1px solid var(--line-soft); }
.m-nav .m-top { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 4px; font-size: 18px; font-weight: 700; }
.m-nav .m-top[aria-expanded="true"] { color: var(--gold); }
.m-nav .m-top .ico { transition: transform .2s; }
.m-nav .m-top[aria-expanded="true"] .ico { transform: rotate(180deg); }
.m-sub { display: none; padding: 0 4px 16px; }
.m-sub.is-open { display: block; }
.m-sub h4 { font-size: 13px; color: var(--gold); margin: 12px 0 4px; }
.m-sub a { display: block; padding: 9px 8px; color: #d9e0ee; font-size: 15px; }
.m-sub a:active { color: var(--gold); }
.m-auth { display: flex; gap: 10px; margin-top: 22px; }
.m-auth .btn { flex: 1; min-height: 46px; }
body.nav-locked { overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: #040915; color: var(--muted); font-size: 13px; }
.ft-inner { max-width: var(--container); margin: 0 auto; padding: 26px 16px; display: grid; gap: 16px; }
.ft-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; }
.ft-brand img { width: 30px; height: 30px; border-radius: 8px; }
.ft-brand small { color: var(--muted); font-weight: 400; font-size: 12px; }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ft-links a:hover { color: var(--gold); }
.ft-links a + a { position: relative; }
.ft-copy { color: var(--faint); }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 300; background: var(--panel-2); border: 1px solid var(--gold-2); color: var(--text); padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; max-width: 92vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Landing (index)
   ========================================================================== */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 48px 0 40px;
  background: radial-gradient(90% 60% at 20% 0, #0f1f45 0, transparent 70%), var(--bg); }
.hero-bg { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 78%; background: url("../img/hero-bg.jpg") right center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%); mask-image: linear-gradient(90deg, transparent 0, #000 42%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 11, 26, .55), rgba(5, 11, 26, 0) 30%, rgba(5, 11, 26, .55)); pointer-events: none; }
.hero-in { display: grid; gap: 28px; }
.hero-brand { display: flex; align-items: center; gap: 16px; }
.hero-brand img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 40px rgba(232, 195, 106, .3); }
.hero-brand strong { display: block; font-size: 38px; line-height: 1.1; color: var(--gold); font-weight: 800; letter-spacing: -.03em; }
.hero-brand small { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .38em; color: var(--gold-2); }
.hero h1 { font-size: clamp(34px, 8.4vw, 64px); line-height: 1.22; font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: clamp(16px, 2.4vw, 19px); color: #e4e9f4; max-width: 520px; }
.hero-cta { display: grid; gap: 14px; max-width: 400px; margin-top: 8px; }
.hero-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.hero-feat a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(5, 11, 26, .55); border: 1px solid var(--line-soft); backdrop-filter: blur(4px); font-size: 13.5px; line-height: 1.35; color: #e2e8f4; transition: border-color .15s, transform .15s; }
.hero-feat a:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.hero-feat .ico { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.4; }

.section { padding: 64px 0 0; }
.sec-head { text-align: center; margin-bottom: 32px; }
.sec-head .eyebrow { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .12em; }
.sec-head h2 { font-size: clamp(26px, 4.5vw, 38px); font-weight: 800; margin-top: 6px; letter-spacing: -.03em; }
.sec-head p { color: var(--muted); margin-top: 8px; }
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { position: relative; padding: 24px 22px 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), #091227); }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 18px; right: 20px; font-size: 30px; font-weight: 800; color: rgba(232, 195, 106, .22); }
.step .ico { width: 34px; height: 34px; color: var(--gold); margin-bottom: 14px; stroke-width: 1.4; }
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14.5px; }
.cards { display: grid; gap: 14px; }
.card-link { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: linear-gradient(160deg, var(--panel-2), var(--panel)); transition: border-color .2s, transform .2s, box-shadow .2s; }
.card-link:hover { border-color: var(--gold-2); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.card-link .ico { width: 36px; height: 36px; color: var(--gold); stroke-width: 1.4; }
.card-link h3 { font-size: 19px; }
.card-link p { color: var(--muted); font-size: 14.5px; flex: 1; }
.card-link .more { color: var(--gold); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.cta-band { margin-top: 64px; padding: 36px 24px; border-radius: 24px; border: 1px solid var(--line); text-align: center; background: radial-gradient(70% 140% at 50% 0, rgba(232, 195, 106, .2), transparent 70%), var(--panel); }
.cta-band h2 { font-size: clamp(22px, 4vw, 32px); font-weight: 800; }
.cta-band p { color: var(--muted); margin: 8px 0 22px; }

/* ==========================================================================
   Auth pages (login / verify / terms)
   ========================================================================== */
.auth-main { position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; padding: 36px 16px 20px; min-height: calc(100vh - var(--header-h) - 120px);
  background: radial-gradient(80% 60% at 50% 0, #0d1b3d 0, var(--bg) 70%); }
.deco { position: absolute; z-index: -1; pointer-events: none; mix-blend-mode: screen; opacity: .95; }
.deco.otp-r { right: 0; top: 40px; width: min(36vw, 406px); -webkit-mask-image: linear-gradient(270deg, #000 45%, transparent), linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(270deg, #000 45%, transparent), linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-composite: intersect; }
.deco.otp-l { left: 0; bottom: 0; width: min(46vw, 560px); -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent), linear-gradient(0deg, #000 45%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 45%, transparent), linear-gradient(0deg, #000 45%, transparent); mask-composite: intersect; }
.deco.t-l { left: 0; top: 0; height: 100%; width: auto; object-fit: cover; opacity: .55; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); mix-blend-mode: normal; }
.deco.t-r { right: 0; top: 0; height: 100%; width: auto; object-fit: cover; opacity: .55; -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent); mask-image: linear-gradient(270deg, #000 30%, transparent); mix-blend-mode: normal; }
.auth-card { width: 100%; max-width: 640px; padding: 40px 28px 32px; border-radius: 28px; text-align: center; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 28, 62, .92), rgba(8, 17, 40, .94)); box-shadow: var(--shadow), 0 0 0 1px rgba(232, 195, 106, .05) inset; backdrop-filter: blur(6px); }
.auth-card .shield { width: 104px; height: 104px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; mix-blend-mode: screen; }
.auth-card h1 { font-size: clamp(24px, 5vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.auth-card h1 em { font-style: normal; color: var(--gold); }
.auth-card .sub { color: #aab6d6; margin-top: 10px; }
.auth-card form { margin-top: 28px; }

.field { text-align: left; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.input-wrap { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--gold-2); background: rgba(5, 11, 26, .6); transition: box-shadow .15s; }
.input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(232, 195, 106, .22); }
.input-wrap .ico { width: 22px; height: 22px; color: var(--muted); }
.input-wrap input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 20px; letter-spacing: .02em; }
.input-wrap input::placeholder { color: #5d6b88; }
.input-wrap .clear { width: 26px; height: 26px; border-radius: 50%; background: #3a4560; display: none; place-items: center; }
.input-wrap .clear .ico { width: 14px; height: 14px; color: #0b1226; stroke-width: 2.4; }
.input-wrap.has-val .clear { display: grid; }
.field-msg { min-height: 20px; margin-top: 8px; font-size: 13.5px; color: var(--danger); text-align: left; }
.auth-card .btn-gold { margin-top: 18px; }
.note-sec { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 13.5px; }
.note-sec .ico { width: 16px; height: 16px; }
.divider-link { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; }
.divider-link a { color: var(--gold); font-weight: 700; margin-left: 6px; }
.demo-hint { margin-top: 16px; font-size: 12.5px; color: var(--faint); }

.otp { display: flex; justify-content: center; gap: clamp(6px, 2vw, 14px); }
.otp input { width: clamp(38px, 11.5vw, 80px); height: clamp(52px, 14vw, 82px); text-align: center; font-size: clamp(24px, 6vw, 34px); font-weight: 700; border-radius: 14px; border: 1px solid var(--gold-2); background: rgba(5, 11, 26, .6); outline: 0; caret-color: var(--gold); transition: box-shadow .15s, border-color .15s; }
.otp input:focus { box-shadow: 0 0 0 3px rgba(232, 195, 106, .3); border-color: var(--gold); }
.otp.error input { border-color: var(--danger); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.otp-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.otp-meta .time { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.otp-meta .sep { width: 1px; height: 16px; background: var(--line-soft); }
.otp-meta .resend { color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 4px; }
.otp-meta .resend[disabled] { opacity: .45; cursor: not-allowed; text-decoration: none; }
.otp-meta .resend .ico { width: 16px; height: 16px; }

/* terms */
.terms-wrap { width: 100%; max-width: 1040px; }
.terms-head { text-align: center; margin-bottom: 26px; }
.terms-head .top { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin-bottom: 14px; }
.terms-head .top::before, .terms-head .top::after { content: ""; width: clamp(40px, 12vw, 120px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.terms-head .top::after { transform: scaleX(-1); }
.terms-head .top .ico { width: 44px; height: 44px; stroke-width: 1.4; }
.terms-head h1 { font-size: clamp(24px, 5vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.terms-head h1 em { font-style: normal; color: var(--gold); }
.terms-head p { color: #c3cce2; margin-top: 12px; font-size: 15px; }
.terms-panel { display: grid; gap: 16px; padding: 16px; border-radius: 24px; border: 1px solid var(--line); background: rgba(8, 17, 40, .78); backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.agree-list { display: grid; gap: 10px; align-content: start; }
.agree { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(14, 26, 56, .7); transition: border-color .15s; }
.agree:hover { border-color: var(--gold-2); }
.agree.on { border-color: rgba(232, 195, 106, .45); }
.agree .chk { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid #4a5877; color: transparent; transition: .15s; background: transparent; }
.agree .chk .ico { width: 20px; height: 20px; stroke-width: 3; }
.agree.on .chk { background: var(--gold-grad); border-color: transparent; color: #1b1405; }
.agree .txt { flex: 1; min-width: 0; text-align: left; }
.agree .txt b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; }
.agree .txt small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.badge { font-size: 11.5px; font-weight: 600; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--gold-2); color: var(--gold); }
.badge.opt { border-color: #5a6785; color: #aab6d6; }
.agree .view { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.agree .view:hover { color: var(--gold); background: rgba(232, 195, 106, .1); }
.agree.all { background: rgba(20, 36, 78, .85); }
.agree.all .txt b { font-size: 17px; }
.trust { padding: 22px; border-radius: 18px; border: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(16, 30, 64, .9), rgba(8, 16, 38, .9)); text-align: left; display: flex; flex-direction: column; }
.trust img { width: min(100%, 260px); margin: 0 auto 6px; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
.trust h2 { font-size: 20px; font-weight: 800; line-height: 1.35; }
.trust h2 em { font-style: normal; color: var(--gold); display: block; }
.trust p { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.trust ul { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: auto; padding-top: 18px; }
.trust li { text-align: center; font-size: 12px; color: #d3dbee; padding: 14px 4px 0; display: grid; gap: 6px; justify-items: center; border-top: 1px solid var(--line-soft); margin-top: 16px; }
.trust li + li { border-left: 1px solid var(--line-soft); }
.trust li .ico { width: 22px; height: 22px; color: var(--gold); }
.terms-next { display: flex; justify-content: center; margin-top: 22px; }
.terms-next .btn { width: min(100%, 440px); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 250; display: none; place-items: center; padding: 16px; background: rgba(3, 7, 18, .78); backdrop-filter: blur(4px); }
.modal.is-open { display: grid; }
.modal-box { width: 100%; max-width: 560px; max-height: 82vh; display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.modal-box header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.modal-box h2 { font-size: 18px; }
.modal-body { padding: 18px 20px; overflow: auto; color: #cbd3e6; font-size: 14.5px; }
.modal-body p + p { margin-top: 10px; }
.modal-box footer { padding: 14px 20px; border-top: 1px solid var(--line-soft); }

/* ==========================================================================
   Sub-hero banner (dashboard / stay)
   ========================================================================== */
.banner { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.banner-bg { position: absolute; inset: 0; z-index: -1; background: var(--bg) url("../img/banner-home.jpg") right center / cover no-repeat; }
.banner-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 8%, rgba(5, 11, 26, .55) 55%, rgba(5, 11, 26, .2)); }
.banner-bg.stay { background-image: url("../img/banner-stay.jpg"); }
.banner-in { max-width: var(--container); margin: 0 auto; padding: 28px 16px; }
.hello { display: flex; align-items: center; gap: 16px; }
.hello img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold-2); box-shadow: 0 0 24px rgba(232, 195, 106, .3); }
.hello h1 { font-size: clamp(22px, 4vw, 30px); font-weight: 800; }
.hello h1 em { font-style: normal; color: var(--gold); }
.hello p { color: #cfd7ea; font-size: 14.5px; margin-top: 2px; }
.now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; font-size: 14px; color: #dfe5f1; }
.now span { display: inline-flex; align-items: center; gap: 8px; }
.now .ico { width: 18px; height: 18px; color: var(--gold); }
.banner h2.slogan { font-size: clamp(22px, 4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.banner h2.slogan em { font-style: normal; color: var(--gold); }
.banner .slogan-sub { color: #d6dded; margin-top: 8px; }
.banner .small { font-size: 16px; font-weight: 600; color: #e9edf6; margin-bottom: 4px; }

/* ==========================================================================
   Dashboard (home)
   ========================================================================== */
.dash { display: grid; gap: 16px; padding: 20px 16px 0; max-width: var(--container); margin: 0 auto; width: 100%; }
.panel { border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(12, 23, 48, .95), rgba(8, 16, 36, .95)); padding: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; }
.panel-head h2 .ico { color: var(--gold); width: 24px; height: 24px; }
.panel-head .more { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.panel-head .more:hover { color: var(--gold); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(5, 11, 26, .7); border: 1px solid var(--line-soft); overflow-x: auto; max-width: 100%; }
.tabs button { padding: 7px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: #b9c3da; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--gold-grad); color: #1b1405; }
.alerts { display: grid; gap: 14px; }
.alert { --c: var(--gold); --cbg: rgba(232, 195, 106, .1); position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 6px 16px; align-items: center; padding: 18px; border-radius: 18px; border: 1.5px solid var(--c); background: linear-gradient(135deg, var(--cbg), rgba(8, 16, 36, .6) 60%); box-shadow: 0 0 28px color-mix(in srgb, var(--c) 14%, transparent); }
.alert.danger { --c: var(--danger); --cbg: var(--danger-bg); }
.alert.purple { --c: var(--purple); --cbg: var(--purple-bg); }
.alert[hidden] { display: none; }
.alert .ic { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: radial-gradient(circle, color-mix(in srgb, var(--c) 28%, transparent), transparent 75%); border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent); grid-row: span 2; }
.alert .ic .ico { width: 30px; height: 30px; stroke-width: 1.5; }
.alert .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 6px; color: #12102a; background: var(--c); margin-bottom: 4px; }
.alert h3 { font-size: 19px; font-weight: 800; }
.alert p { color: #c8d1e6; font-size: 13.5px; margin-top: 4px; }
.alert .dday { text-align: center; }
.alert .dday b { display: block; min-width: 92px; padding: 6px 14px; border-radius: 12px; border: 1.5px solid var(--c); background: rgba(5, 11, 26, .55); color: var(--c); font-size: 28px; font-weight: 800; line-height: 1.2; }
.alert .dday time { display: block; margin-top: 8px; color: var(--c); font-size: 14px; }
.alert .foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line-soft); }
.alert .rel { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); min-width: 0; }
.alert .rel .ico { color: var(--c); width: 18px; height: 18px; }
.alert .rel b { display: block; color: #e4e9f4; font-weight: 600; }
.btn-detail { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; background: rgba(5, 11, 26, .6); }
.btn-detail:hover { border-color: var(--gold); color: var(--gold); }
.btn-detail .ico { width: 14px; height: 14px; }
.empty { padding: 40px 10px; text-align: center; color: var(--muted); }

.sched li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.sched li:last-child { border: 0; }
.sched .ic { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); background: rgba(232, 195, 106, .08); }
.sched .ic .ico { width: 22px; height: 22px; }
.sched .tx { flex: 1; min-width: 0; }
.sched .tx b { display: block; font-size: 15px; }
.sched .tx small { color: var(--muted); font-size: 13px; }
.pill { flex: none; padding: 3px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; border: 1px solid var(--gold-2); color: var(--gold); background: rgba(232, 195, 106, .1); }
.pill.red { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }
.pill.pur { border-color: var(--purple); color: var(--purple); background: var(--purple-bg); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(14, 26, 56, .6); transition: .15s; min-width: 0; }
.quick a:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.quick .ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(232, 195, 106, .1); color: var(--gold); }
.quick .ic .ico { width: 21px; height: 21px; }
.quick b { display: block; font-size: 14px; }
.quick small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.promo-strip { display: grid; gap: 14px; align-items: center; margin-top: 4px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(14, 26, 56, .95), rgba(8, 16, 36, .8)); }
.promo-strip .lg { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--gold); }
.promo-strip .lg img { width: 34px; height: 34px; border-radius: 9px; }
.promo-strip .lg small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.promo-strip ul { display: grid; gap: 12px; }
.promo-strip li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.promo-strip li .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(232, 195, 106, .1); color: var(--gold); }
.promo-strip li b { display: block; }
.promo-strip li small { color: var(--muted); font-size: 12.5px; }

/* ==========================================================================
   Stay (체류관리 상세)
   ========================================================================== */
.crumbs { max-width: var(--container); margin: 0 auto; width: 100%; padding: 14px 16px 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumbs .ico { width: 14px; height: 14px; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: #e4e9f4; }
.stay-grid { display: grid; gap: 16px; padding: 12px 16px 0; max-width: var(--container); margin: 0 auto; width: 100%; }
.stay-main { padding: 22px 18px; display: grid; gap: 22px; }
.stay-top { display: grid; gap: 18px; align-items: center; }
.cat { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.cat .ico { width: 26px; height: 26px; color: var(--gold); padding: 4px; border: 1px solid var(--line); border-radius: 8px; box-sizing: content-box; }
.stay-top h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 800; letter-spacing: -.035em; margin: 10px 0; }
.stay-top p { color: #d3dbee; }
.stay-top p b { color: #fff; }
.dbadge { justify-self: start; text-align: center; padding: 14px 34px 12px; border-radius: 30px; background: var(--gold-grad); color: #1b1405; box-shadow: 0 12px 40px rgba(226, 185, 85, .35), inset 0 2px 0 rgba(255, 255, 255, .5); }
.dbadge small { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.dbadge strong { display: block; font-size: clamp(48px, 9vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.dbadge + .until { display: none; }
.until { text-align: center; color: var(--gold); font-weight: 600; margin-top: 10px; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); padding: 18px 6px 16px; border-radius: 16px; border: 1px solid var(--line-soft); background: rgba(5, 11, 26, .55); position: relative; }
.tl { position: relative; text-align: center; padding: 0 2px; }
.tl::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: #2a3a63; }
.tl:first-child::before { display: none; }
.tl.done::before, .tl.cur::before { background: linear-gradient(90deg, #3c5aa5, #3c5aa5); }
.tl.cur::before { background: linear-gradient(90deg, #3c5aa5, var(--gold)); }
.tl .dot { position: relative; z-index: 1; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #3c5aa5; background: #0a1430; color: #8fb0ff; }
.tl .dot .ico { width: 16px; height: 16px; stroke-width: 3; }
.tl.cur .dot { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 5px rgba(232, 195, 106, .18); background: #1b1a12; }
.tl b { display: block; font-size: clamp(14px, 2.4vw, 17px); }
.tl.cur b, .tl.cur time { color: var(--gold); }
.tl span { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.tl time { display: block; font-size: 12px; margin-top: 6px; color: #dfe5f1; }
.checklist { border-radius: 16px; border: 1px solid var(--line-soft); background: rgba(5, 11, 26, .55); overflow: hidden; }
.checklist > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.checklist h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.checklist h2 .ico { color: var(--gold); }
.cl-row { display: grid; grid-template-columns: auto auto 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.cl-row:last-child { border: 0; }
.cl-row .cb { position: relative; width: 24px; height: 24px; }
.cl-row .cb input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cl-row .cb span { position: absolute; inset: 0; border-radius: 6px; border: 1.5px solid #5a6b92; display: grid; place-items: center; color: transparent; background: transparent; transition: .15s; pointer-events: none; }
.cl-row .cb input:checked + span { background: var(--info); border-color: var(--info); color: #fff; }
.cl-row .cb input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.cl-row .cb .ico { width: 16px; height: 16px; stroke-width: 3; }
.cl-row .ti { color: var(--muted); }
.cl-row .ti .ico { width: 24px; height: 24px; }
.cl-row .nm { font-weight: 700; font-size: 15px; }
.cl-row .ds { grid-column: 3 / 4; color: var(--muted); font-size: 13px; }
.chip { justify-self: end; grid-row: 1; grid-column: 4; font-size: 12.5px; font-weight: 700; padding: 3px 14px; border-radius: 8px; white-space: nowrap; }
.chip.ok { color: var(--ok); background: rgba(61, 220, 151, .14); }
.chip.ing { color: var(--info); background: rgba(74, 168, 255, .16); }
.chip.wait { color: #c3cce2; background: rgba(255, 255, 255, .08); }
.cta-pair { display: grid; gap: 12px; }
.cta-box { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 14px; border: 1.5px solid var(--gold-2); background: rgba(5, 11, 26, .6); text-align: left; transition: .15s; }
.cta-box:hover { transform: translateY(-2px); }
.cta-box .ico { width: 34px; height: 34px; color: var(--gold); stroke-width: 1.4; }
.cta-box b { display: block; font-size: 17px; }
.cta-box small { color: var(--muted); font-size: 13px; }
.cta-box .go { margin-left: auto; width: 20px; height: 20px; }
.cta-box.gold { background: var(--gold-grad); color: #1b1405; border-color: transparent; }
.cta-box.gold .ico, .cta-box.gold small { color: #3a2c08; }
.side-list li + li { margin-top: 8px; }
.side-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(14, 26, 56, .6); transition: .15s; }
.side-item:hover { border-color: var(--gold-2); }
.side-item .ic { width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--gold); background: rgba(232, 195, 106, .08); border: 1px solid var(--line); }
.side-item .ic .ico { width: 22px; height: 22px; }
.side-item .tx { flex: 1; min-width: 0; }
.side-item b { display: block; font-size: 15px; }
.side-item small { color: var(--muted); font-size: 12.5px; }
.side-item .go { width: 18px; height: 18px; color: var(--muted); }
.side-stack { display: grid; gap: 16px; align-content: start; }
.side-item.sm { padding: 10px 12px; }
.side-item.sm .ic { width: 34px; height: 34px; border-radius: 50%; }

/* ==========================================================================
   Sub pages: services / life / support
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: radial-gradient(90% 140% at 100% 0, rgba(232, 195, 106, .14), transparent 60%), var(--bg-2); }
.page-hero .container { padding-top: 40px; padding-bottom: 34px; }
.page-hero .crumb { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(28px, 5.5vw, 42px); font-weight: 800; letter-spacing: -.035em; }
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero p { color: #cbd4e8; margin-top: 8px; max-width: 640px; }
.subnav { display: flex; gap: 8px; margin-top: 22px; overflow-x: auto; padding-bottom: 4px; }
.subnav a { flex: none; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-soft); font-size: 14.5px; font-weight: 600; color: #cfd7ea; }
.subnav a:hover { border-color: var(--gold-2); color: var(--gold); }
.group { padding-top: 40px; }
.group > h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.group > h2 .ico { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.5; }
.svc-grid { display: grid; gap: 14px; }
.svc { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: linear-gradient(160deg, var(--panel-2), var(--panel)); scroll-margin-top: 90px; }
.svc:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 195, 106, .25); }
.svc h3 { font-size: 18px; }
.svc p { color: var(--muted); font-size: 14.5px; flex: 1; }
.svc .acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.svc .acts a { color: var(--gold); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.faq details { border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold-grad); color: #1b1405; font-size: 13px; font-weight: 800; }
.faq summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] { border-color: var(--gold-2); }
.faq .ans { padding: 0 20px 18px 58px; color: #c4cde1; font-size: 14.5px; }
.form-grid { display: grid; gap: 16px; }
.form-grid .field input, .form-grid .field select, .form-grid .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 11, 26, .6); outline: 0; font-size: 16px; }
.form-grid .field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.form-grid .field select option { background: #0c1730; }
.form-grid .field textarea { min-height: 120px; resize: vertical; }
.form-grid .field input:focus, .form-grid .field select:focus, .form-grid .field textarea:focus { box-shadow: 0 0 0 3px rgba(232, 195, 106, .22); border-color: var(--gold); }
.form-grid .field label { color: #dfe5f1; }
.form-ok { display: none; text-align: center; padding: 30px 10px; }
.form-ok.show { display: block; }
.form-ok .ico { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { padding: 13px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.table th { color: var(--gold); font-weight: 700; font-size: 13px; }
.table td.dt { color: var(--muted); white-space: nowrap; }
.two-col { display: grid; gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; }
.contact-card .tel { font-size: 30px; font-weight: 800; color: var(--gold); }
.policy-box h3 { font-size: 16px; margin: 14px 0 4px; color: var(--gold); }
.policy-box p { color: #c4cde1; font-size: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .container, .hd-inner, .dash, .stay-grid, .crumbs, .banner-in, .ft-inner, .mega-inner { padding-left: 24px; padding-right: 24px; }
  .hero-feat { grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; }
  .hero-feat a { border: 0; background: none; backdrop-filter: none; padding: 4px 22px; border-radius: 0; }
  .hero-feat a + a { border-left: 1px solid var(--line-soft); }
  .steps, .cards, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 48px 48px 36px; }
  .cta-pair { grid-template-columns: 1fr 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .ft-inner { grid-template-columns: 1fr auto; align-items: center; }
  .ft-copy { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .hero { padding: 40px 0 56px; }
  .hero-bg { width: 72%; }
  .hero-brand img { width: 84px; height: 84px; border-radius: 20px; }
  .hero-brand strong { font-size: 54px; }
  .hero-brand small { font-size: 12px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .terms-panel { grid-template-columns: 1.35fr 1fr; padding: 20px; gap: 20px; }
  .dash { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; padding-top: 24px; }
  .dash .col-main { display: grid; gap: 16px; }
  .dash .col-side { display: grid; gap: 16px; }
  .dash .full { grid-column: 1 / -1; }
  .alerts { grid-template-columns: 1fr 1fr; }
  .alerts .alert:nth-child(3) { grid-column: 1 / -1; }
  .promo-strip { grid-template-columns: auto 1fr auto; padding: 14px 24px; }
  .promo-strip ul { grid-template-columns: repeat(3, 1fr); }
  .stay-grid { grid-template-columns: minmax(0, 1fr) 430px; align-items: start; }
  .stay-main { padding: 28px; }
  .stay-top { grid-template-columns: 1fr auto; }
  .dbadge { justify-self: end; }
  .two-col.l3 { grid-template-columns: 2fr 1fr; }
  .banner-in { padding-top: 34px; padding-bottom: 34px; }
}
@media (min-width: 1100px) {
  .gnb { display: flex; }
  .burger { display: none; }
  .hd-auth { display: flex; }
  .m-nav { display: none !important; }
  .gnb-link { padding: 0 9px; font-size: 15px; }
  .gnb-link::after { left: 9px; right: 9px; }
  .gnb-link .caret { width: 12px; height: 12px; }
}
@media (min-width: 1280px) {
  .gnb-link { padding: 0 13px; font-size: 15.5px; }
  .gnb-link::after { left: 13px; right: 13px; }
}
@media (min-width: 1600px) { .brand-tag { display: block; } }
@media (min-width: 1440px) {
  .gnb-link { padding: 0 20px; font-size: 16.5px; }
  .gnb-link::after { left: 20px; right: 20px; }
}
@media (max-width: 1099px) {
  .mega { display: none; }
  .hero-bg { width: 100%; opacity: .55; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 25%); mask-image: linear-gradient(180deg, transparent 0, #000 25%); }
  .deco.otp-r, .deco.t-r { opacity: .35; }
  .deco.t-l, .deco.t-r { display: none; }
  .brand-tag { display: none; }
}
@media (max-width: 639px) {
  .alert { grid-template-columns: auto 1fr; }
  .alert .dday { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .alert .dday time { margin-top: 0; }
  .alert .ic { width: 52px; height: 52px; }
  .cl-row { grid-template-columns: auto auto 1fr; }
  .cl-row .chip { grid-column: 3; grid-row: 2; justify-self: start; }
  .cl-row .ds { grid-column: 3; }
  .tl span { display: none; }
  .tl time { font-size: 10.5px; }
  .hero-brand strong { font-size: 32px; }
  .hello img { width: 52px; height: 52px; }
  .table .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Text FX (assets/js/fx.js)
   ========================================================================== */
.fx-w { display: inline-block; white-space: nowrap; }

/* 1) 글자가 아래에서 차례로 올라오며 등장 */
.fx-split:not(.fx-in) .fx-rc { opacity: 0; }
.fx-rc { display: inline-block; }
.fx-split.fx-in .fx-rc { animation: fxChar .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 32ms); }
@keyframes fxChar { from { opacity: 0; transform: translateY(.75em) rotate(5deg); } to { opacity: 1; transform: none; } }

/* 블록 단위 등장 */
.fx-up:not(.fx-in) { opacity: 0; }
.fx-up.fx-in { animation: fxUp .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) both; }
@keyframes fxUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* 2) 형광펜 */
.hl { color: inherit; font-weight: 700; padding: 0 .14em; margin: 0 -.14em; background: linear-gradient(transparent 56%, rgba(232, 195, 106, .46) 56%) no-repeat 0 0 / 0% 100%; transition: background-size .9s cubic-bezier(.6, .1, .2, 1); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl.hl-on { background-size: 100% 100%; }

/* 3) 웨이브 (마우스 오버) */
.fx-wc { display: inline-block; }
.fx-wave:hover .fx-wc, .fx-wave:focus-visible .fx-wc { animation: fxHop .55s cubic-bezier(.3, .7, .4, 1) both; animation-delay: calc(var(--i, 0) * 34ms); }
@keyframes fxHop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-.42em) scale(1.14); color: var(--gold); } 70% { transform: translateY(.06em); } }

/* 5) 흔들림 (마우스 오버) */
.fx-shake { animation: fxShake .6s ease both; }
@keyframes fxShake { 0%, 100% { transform: translateX(0) rotate(0); } 15% { transform: translateX(-5px) rotate(-4deg); } 30% { transform: translateX(5px) rotate(4deg); } 45% { transform: translateX(-4px) rotate(-3deg); } 60% { transform: translateX(4px) rotate(3deg); } 80% { transform: translateX(-2px) rotate(-1deg); } }

@media (prefers-reduced-motion: reduce) {
  .fx-split .fx-rc, .fx-up { opacity: 1 !important; }
  .hl { background-size: 100% 100%; }
}

/* 그리드 자식이 콘텐츠 때문에 넘치지 않도록 */
.dash > *, .stay-grid > *, .two-col > *, .terms-panel > * { min-width: 0; }
.col-main, .col-side { display: grid; gap: 16px; align-content: start; }
.dash, .stay-grid, .col-main, .col-side, .side-stack, .two-col, .terms-panel, .agree-list, .alerts { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } .cta-pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .dash { grid-template-columns: minmax(0, 1fr) 380px; }
  .stay-grid { grid-template-columns: minmax(0, 1fr) 430px; }
  .terms-panel { grid-template-columns: 1.35fr 1fr; }
  .alerts { grid-template-columns: 1fr 1fr; }
  .two-col.l3 { grid-template-columns: 2fr 1fr; }
}
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 639px) { .tabs button { padding: 7px 11px; font-size: 13.5px; } }

@media (max-width: 639px) { .auth-card { padding: 36px 20px 28px; } .otp { gap: 6px; } }

/* 모바일 햄버거 버튼을 우측 끝에 정렬 */
.hd-tools { margin-left: auto; }
.burger { margin-right: -10px; }
@media (min-width: 1100px) { .hd-tools { margin-left: 0; } }

/* 랜딩 히어로: 화면 폭 전체로 펼쳐지는 배경 (넓은 PC 대응) */
.hero-bg { right: 0; left: 0; width: 100%; background: url("../img/hero-bg-wide.jpg") 72% 72% / cover no-repeat; }
@media (min-width: 1024px) {
  .hero-bg { opacity: 1; background-position: center 72%; -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .22) calc(50% - 640px), rgba(0, 0, 0, .5) calc(50% - 240px), #000 calc(50% + 200px)); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .22) calc(50% - 640px), rgba(0, 0, 0, .5) calc(50% - 240px), #000 calc(50% + 200px)); }
}

/* 모바일/태블릿: 오른쪽의 남산타워가 보이도록 배경을 오른쪽 기준으로 정렬 */
@media (max-width: 1023px) {
  .hero-bg {
    opacity: .9;
    background: linear-gradient(90deg, rgba(5, 11, 26, .72) 0, rgba(5, 11, 26, .25) 55%, rgba(5, 11, 26, 0) 100%), url("../img/hero-bg-wide.jpg") 98% 50% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%); mask-image: linear-gradient(180deg, transparent 0, #000 10%);
  }
}

/* ==========================================================================
   SPEC v2.2 반영 — 준비중 표시 / 메가메뉴 / 첫 화면 / 기관 찾기 / 만료일 알림
   ========================================================================== */
/* 상태 태그 */
.tag-soon, .tag-new { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; font-style: normal; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.tag-soon { color: #c3cce2; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.tag-new { color: #1b1405; background: var(--gold-grad); }
.chip-soon { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(5, 11, 26, .16); border: 1px solid rgba(27, 20, 5, .35); color: inherit; margin-left: 4px; }
.btn-outline .chip-soon, .consult-strip .chip-soon { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.btn[disabled] { cursor: not-allowed; }

/* 시연용 안내 바 */
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 16px; background: rgba(232, 195, 106, .12); border-bottom: 1px solid var(--line); font-size: 13px; color: #e8dcb8; justify-content: center; text-align: center; }
.preview-bar b { color: var(--gold); }

/* 메가메뉴: 대분류 개수에 맞춘 열 + 프로모 */
.mega-inner { grid-template-columns: 220px repeat(var(--n, 3), minmax(0, 1fr)) 250px; }
.mega-col li a { display: flex; align-items: center; flex-wrap: wrap; }
.mega-col li a .tag-soon, .mega-col li a .tag-new, .m-sub a .tag-soon, .m-sub a .tag-new { margin-left: 6px; }
.m-sub a.m-all { color: var(--gold); font-weight: 700; }
.m-sub a { display: flex; align-items: center; flex-wrap: wrap; }

/* 푸터 */
.ft-hours, .ft-note { margin: 0; }
.ft-note { color: var(--faint); font-size: 12.5px; max-width: 760px; }
.ft-hours { color: #c3cce2; }
@media (min-width: 640px) { .ft-hours, .ft-note { grid-column: 1 / -1; } }

/* ---------- 메인 첫 화면 ---------- */
.hero { min-height: 0; padding: 28px 0 36px; align-items: flex-start; }
.hero-in { gap: 18px; }
.hero-brand { display: none; }
.hero h1 { font-size: clamp(32px, 8.6vw, 58px); }
.hero p.lead { font-size: clamp(16px, 4.2vw, 20px); max-width: 560px; }
.hero-cta { max-width: 460px; gap: 8px; }
.cta-sub { color: #c3cce2; font-size: 13px; }
.core-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.core-cards a { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border-radius: 16px; background: rgba(8, 17, 40, .72); border: 1px solid var(--line); backdrop-filter: blur(6px); transition: border-color .15s, transform .15s, background .15s; min-width: 0; }
.core-cards a:hover { border-color: var(--gold); transform: translateY(-3px); background: rgba(14, 26, 58, .85); }
.core-cards .ico { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.4; margin-bottom: 6px; }
.core-cards b { font-size: 16px; line-height: 1.3; }
.core-cards span { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.section { padding-top: 44px; }
.sec-head.left { display: flex; align-items: baseline; justify-content: space-between; text-align: left; margin-bottom: 16px; }
.sec-head.left h2 { font-size: clamp(20px, 4vw, 26px); margin: 0; }
.more-link { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 14px; }
.more-link:hover { color: var(--gold); }
.more-link .ico { width: 16px; height: 16px; }
.post-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.post { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.post.is-empty { border-style: dashed; }
.post .tag-soon { margin: 0 0 8px; }
.post h3 { font-size: 16px; color: #dfe5f1; }
.post p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.post .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.post .meta div { display: flex; gap: 6px; }
.post .meta dt { color: var(--faint); }
.post .meta dd { margin: 0; }
.consult-strip { display: grid; gap: 14px; align-items: center; padding: 22px 20px; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(70% 140% at 100% 0, rgba(232, 195, 106, .14), transparent 70%), var(--panel); }
.consult-strip h2 { font-size: 20px; font-weight: 800; }
.consult-strip p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: 1fr 1fr; } .core-cards a { padding: 18px 16px; } }
@media (min-width: 1024px) {
  .hero { min-height: min(720px, calc(100vh - var(--header-h))); align-items: center; padding: 48px 0 56px; }
  .hero-in { gap: 22px; }
  .hero-brand { display: flex; }
  .core-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 880px; margin-top: 18px; }
  .consult-strip { grid-template-columns: 1fr auto; padding: 28px 32px; }
}

/* ---------- 카탈로그 카드 ---------- */
.svc { gap: 6px; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.svc-ic .ico { width: 30px; height: 30px; color: var(--gold); stroke-width: 1.4; }
.svc .chips { display: inline-flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.svc .chips .tag-soon, .svc .chips .tag-new { margin-left: 0; }
.group > h2 .tag-new, .group > h2 .tag-soon { font-size: 12px; }
.svc-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.page-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 40px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 13.5px; }
.page-note .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }

/* ---------- 기관 찾기 (공통 UI 틀) ---------- */
.finder-sub { color: var(--muted); margin: -6px 0 14px; }
.finder-panel { display: grid; gap: 16px; }
.finder-msg { color: #c3cce2; font-size: 13.5px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(5, 11, 26, .7); border: 1px solid var(--line-soft); justify-self: start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { padding: 9px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: #b9c3da; white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--gold-grad); color: #1b1405; }
.seg-type { margin-bottom: -4px; }
.type-note { margin-top: -6px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.finder-panel .btn { justify-self: start; }
.finder-result { padding: 16px; border-radius: 14px; border: 1px dashed var(--line); background: rgba(5, 11, 26, .5); }
.finder-result h3 { font-size: 15px; color: var(--gold); margin-bottom: 10px; }
.finder-result p { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.chips-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-list li { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-soft); font-size: 13px; color: #cfd7ea; }
.finder-notes, .rule-notes { display: grid; gap: 6px; color: var(--muted); font-size: 13.5px; }
.finder-notes li, .rule-notes li { position: relative; padding-left: 14px; }
.finder-notes li::before, .rule-notes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2); }
.finder-src { font-size: 13px; color: var(--muted); }
.finder-src b { color: #e4e9f4; margin-right: 8px; }
.finder-src a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 만료일 알림 ---------- */
.free-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 16px; margin-bottom: 14px; }
.free-line .big { display: inline-grid; place-items: center; min-width: 64px; padding: 6px 14px; border-radius: 14px; background: var(--gold-grad); color: #1b1405; font-size: 26px; font-weight: 800; }
.table-wrap { overflow-x: auto; margin-bottom: 14px; }
.rules-table th, .rules-table td { text-align: center; font-size: 15px; }
.rules-table tbody th { color: #fff; text-align: left; font-size: 15px; }
.rules-table td { font-weight: 800; color: var(--gold); font-size: 17px; }
.status-panel h3 { font-size: 16px; margin-bottom: 8px; }
.status-list { margin-bottom: 16px; }
.status-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.status-list li:last-child { border: 0; }
.status-link { color: var(--gold); font-weight: 700; font-size: 14px; }
.limit-note { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(232, 195, 106, .08); border: 1px solid var(--line); font-size: 13.5px; color: #e4e9f4; }
.limit-note .ico { width: 18px; height: 18px; color: var(--gold); }

/* ---------- 고객센터 폼 미리보기 ---------- */
.form-grid fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
.form-grid fieldset[disabled] { opacity: .55; }
.check-line { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #cfd7ea; }
.check-line input { width: 18px; height: 18px; accent-color: #e2b955; }
.form-grid.is-preview { gap: 18px; }
.contact-card h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.contact-card h3 .ico { color: var(--gold); }

/* 타임라인: 3단계 */
.timeline { grid-template-columns: repeat(3, 1fr); }
.tl span { display: block; }
@media (max-width: 639px) { .tl span { display: block; font-size: 11px; } }

.gnb-link { white-space: nowrap; }

/* ==========================================================================
   실시간 번역 (translate.js)
   ========================================================================== */
.tr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding: 8px 16px; background: rgba(74, 168, 255, .1); border-bottom: 1px solid rgba(74, 168, 255, .3); font-size: 12.5px; color: #cfe3ff; text-align: center; }
.tr-bar button { padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(207, 227, 255, .5); color: #fff; font-size: 12px; font-weight: 600; }
.tr-bar button:hover { background: rgba(255, 255, 255, .12); }
.sent-phone { display: inline-block; margin-bottom: 4px; color: var(--gold); font-size: 20px; font-weight: 800; letter-spacing: .02em; }

/* 번역 중 표시: 헤더 아래 진행선 */
body.is-translating .site-header::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 40%; background: var(--gold-grad); animation: trBar 1.1s ease-in-out infinite; }
@keyframes trBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* 한국어 외 언어: 단어 단위 줄바꿈, 언어별 글꼴 대체 */
html:not([lang="ko"]) body { word-break: normal; overflow-wrap: break-word; letter-spacing: 0; }
html[lang="zh"] body { font-family: "Pretendard Variable", Pretendard, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans KR", system-ui, sans-serif; }
html[lang="ru"] body, html[lang="vi"] body, html[lang="en"] body { font-family: "Pretendard Variable", Pretendard, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif; }
html:not([lang="ko"]) .gnb-link { white-space: normal; text-align: center; line-height: 1.2; }
html:not([lang="ko"]) .btn, html:not([lang="ko"]) .tabs button { white-space: normal; }
html:not([lang="ko"]) .fx-w { white-space: normal; }
/* 번역 언어: 메뉴 글자가 단어 중간에서 끊기지 않게 (공백에서만 줄바꿈) */
html:not([lang="ko"]) .gnb-link { overflow-wrap: normal; word-break: normal; padding-left: 8px; padding-right: 8px; font-size: 14.5px; }
html:not([lang="ko"]) .gnb-link::after { left: 8px; right: 8px; }
html:not([lang="ko"]) .gnb-link .caret { flex: none; }
html:not([lang="ko"]) .gnb-item { min-width: 0; }
/* 긴 안내 문구 토스트 */
.toast { border-radius: 16px; max-width: min(92vw, 560px); line-height: 1.5; padding: 12px 18px; }

/* 상단 로고: 가로형 로고 이미지 (아이콘 + 민원타운 + KOREA CIVIC SERVICE) */
.brand .brand-logo { width: auto; height: 44px; border-radius: 0; display: block; }
@media (min-width: 1100px) { .brand .brand-logo { height: 54px; } }
/* 번역 언어(영어 등)는 메뉴 글자가 길어 화살표를 숨기고 간격을 줄여 2줄 이내로 */
html:not([lang="ko"]) .hd-inner { gap: 14px; }
html:not([lang="ko"]) .gnb-link { font-size: 13.5px; padding-left: 7px; padding-right: 7px; line-height: 1.2; }
html:not([lang="ko"]) .gnb-link::after { left: 7px; right: 7px; }
html:not([lang="ko"]) .gnb-link .caret { display: none; }
