@charset "UTF-8";
/* ============================================================
 * NextProxy — 폰 프록시 고객 사이트
 * 밝은 톤 · 큰 라운드 카드 · 3D 일러스트(gpt-image-2) · 브랜드 블루 + 민트
 * 접두어 없이 쓰되 모든 컴포넌트 클래스는 n- 로 시작한다.
 * ========================================================== */
:root {
    --brand: #2B5BFF;
    --brand-2: #5B7CFF;
    --brand-soft: #EEF2FF;
    --brand-ink: #1B3FD8;
    --mint: #12C79A;
    --mint-soft: #E3F9F2;
    --amber: #F59E0B;
    --amber-soft: #FFF6E5;
    --red: #EF4444;
    --red-soft: #FEECEC;
    --ink: #0E1530;
    --ink-2: #3A4363;
    --ink-3: #6B7393;
    --ink-4: #9AA1BA;
    --line: #E6E9F2;
    --line-2: #F0F2F8;
    --bg: #F4F6FB;
    --card: #FFFFFF;
    --r: 20px;
    --r-sm: 12px;
    --shadow: 0 1px 2px rgba(14, 21, 48, .04), 0 8px 24px -12px rgba(14, 21, 48, .12);
    --shadow-lg: 0 30px 60px -24px rgba(27, 63, 216, .35);
    --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "D2Coding", monospace;
    --side: 256px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); letter-spacing: -.1px; }
.muted { color: var(--ink-3); }
.sp { flex: 1; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- 레이아웃 */
.n-app { display: flex; min-height: 100vh; }
.n-side {
    position: fixed; inset: 0 auto 0 0; width: var(--side);
    background: var(--card); border-right: 1px solid var(--line);
    display: flex; flex-direction: column; padding: 22px 16px 18px; z-index: 30;
}
.n-logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; }
.n-logo svg { width: 34px; height: 34px; flex: none; }
.n-logo b { font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.n-logo b span { color: var(--brand); }
.n-nav { display: flex; flex-direction: column; gap: 4px; }
.n-nav a {
    display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px;
    border-radius: 14px; font-weight: 600; color: var(--ink-2); font-size: 15px;
    transition: background .15s, color .15s;
}
.n-nav a img { width: 26px; height: 26px; object-fit: contain; filter: saturate(.85); }
.n-nav a:hover { background: var(--line-2); color: var(--ink); }
.n-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.n-nav a[aria-current="page"] img { filter: none; }
.n-nav-sep { height: 1px; background: var(--line); margin: 10px 8px; }

.n-wallet {
    margin-top: auto; border-radius: 18px; padding: 18px;
    background: radial-gradient(120% 120% at 100% 0%, #6E8BFF 0%, var(--brand) 45%, #1733B8 100%);
    color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.n-wallet::after {
    content: ""; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px;
    border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.n-wallet small { display: block; font-size: 12.5px; opacity: .8; font-weight: 500; }
.n-wallet strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.6px; margin: 2px 0 12px; }
.n-wallet strong em { font-style: normal; font-size: 15px; font-weight: 600; margin-left: 2px; opacity: .85; }
.n-wallet .n-btn { width: 100%; background: #fff; color: var(--brand-ink); position: relative; z-index: 1; }
.n-wallet .n-btn:hover { background: #F2F5FF; }
.n-wallet.is-empty { background: radial-gradient(120% 120% at 100% 0%, #FF9A7A 0%, #F05252 50%, #B42335 100%); }
.n-wallet.is-empty .n-btn { color: #B42335; }

.n-main { flex: 1; margin-left: var(--side); min-width: 0; }
.n-top {
    position: sticky; top: 0; z-index: 20; height: 72px; display: flex; align-items: center; gap: 14px;
    padding: 0 36px; background: rgba(244, 246, 251, .85); backdrop-filter: saturate(1.4) blur(12px);
}
.n-top h1 { font-size: 22px; font-weight: 800; letter-spacing: -.6px; margin: 0; }
.n-top .n-menu-btn { display: none; }
.n-user { display: flex; align-items: center; gap: 10px; position: relative; }
.n-user > button {
    display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--card);
    height: 44px; padding: 0 14px 0 6px; border-radius: 100px; cursor: pointer; font-weight: 600; color: var(--ink);
}
.n-avatar {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px;
    color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand));
}
.n-user-menu {
    position: absolute; right: 0; top: 52px; width: 220px; background: var(--card); border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: none;
}
.n-user.open .n-user-menu { display: block; }
.n-user-menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.n-user-menu .who b { display: block; }
.n-user-menu .who span { font-size: 13px; color: var(--ink-3); }
.n-user-menu a, .n-user-menu button {
    display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px;
    font-size: 14.5px; color: var(--ink-2); cursor: pointer; font-weight: 500;
}
.n-user-menu a:hover, .n-user-menu button:hover { background: var(--line-2); }

.n-body { padding: 8px 36px 60px; max-width: 1360px; }

/* ---------------------------------------------------------------- 공통 부품 */
.n-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
    padding: 24px;
}
.n-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.n-card-h h2 { font-size: 17px; font-weight: 750; margin: 0; letter-spacing: -.3px; }
.n-card-h .more { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.n-card-h .more:hover { color: var(--brand); }
.n-grid { display: grid; gap: 20px; }
.n-row { display: flex; align-items: center; gap: 10px; }
.n-stack { display: flex; flex-direction: column; gap: 20px; }

.n-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
    border-radius: 12px; border: 1px solid transparent; font-size: 15px; font-weight: 700; cursor: pointer;
    background: var(--brand); color: #fff; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap;
}
.n-btn:hover { background: var(--brand-ink); }
.n-btn:active { transform: translateY(1px); }
.n-btn:disabled { opacity: .5; cursor: default; }
.n-btn.ghost { background: var(--card); color: var(--ink-2); border-color: var(--line); }
.n-btn.ghost:hover { background: var(--line-2); color: var(--ink); }
.n-btn.soft { background: var(--brand-soft); color: var(--brand-ink); }
.n-btn.soft:hover { background: #E1E8FF; }
.n-btn.danger { background: var(--card); color: var(--red); border-color: #F7C9C9; }
.n-btn.danger:hover { background: var(--red-soft); }
.n-btn.sm { height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.n-btn.lg { height: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 14px; }
.n-btn.block { width: 100%; }
.n-btn svg { width: 18px; height: 18px; }
.n-btn.loading { color: transparent !important; position: relative; pointer-events: none; }
.n-btn.loading::after {
    content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: n-spin .7s linear infinite;
}
.n-btn.ghost.loading::after, .n-btn.soft.loading::after { border-color: rgba(43, 91, 255, .25); border-top-color: var(--brand); }
@keyframes n-spin { to { transform: rotate(360deg); } }

.n-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 100px;
    font-size: 12.5px; font-weight: 700; background: var(--line-2); color: var(--ink-3); white-space: nowrap;
}
.n-chip.on { background: var(--mint-soft); color: #0A8F6E; }
.n-chip.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(18, 199, 154, .2); }
.n-chip.off::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.n-chip.warn { background: var(--amber-soft); color: #B26B00; }
.n-chip.danger { background: var(--red-soft); color: #C42B2B; }
.n-chip.blue { background: var(--brand-soft); color: var(--brand-ink); }

.n-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.n-field > label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.n-field .hint { font-size: 13px; color: var(--ink-3); }
.n-input, .n-textarea {
    width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line);
    background: #fff; font-size: 15.5px; font-family: inherit; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.n-textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.6; }
.n-input:focus, .n-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(43, 91, 255, .12); }
.n-input.mono, .n-textarea.mono { font-family: var(--mono); font-size: 14.5px; }
.n-input-wrap { position: relative; display: flex; }
.n-input-wrap .n-input { padding-right: 96px; }
.n-input-wrap .n-btn { position: absolute; right: 6px; top: 6px; height: 38px; }

.n-switch { position: relative; width: 46px; height: 28px; flex: none; }
.n-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.n-switch span {
    position: absolute; inset: 0; border-radius: 100px; background: #D5DAE7; cursor: pointer; transition: background .2s;
}
.n-switch span::before {
    content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff;
    box-shadow: 0 2px 6px rgba(14, 21, 48, .2); transition: transform .2s;
}
.n-switch input:checked + span { background: var(--mint); }
.n-switch input:checked + span::before { transform: translateX(18px); }
.n-switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(18, 199, 154, .25); }

.n-copy {
    display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 6px 6px 14px; border-radius: 12px;
    background: var(--line-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 14px; color: var(--ink);
}
.n-copy > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-icon-btn {
    width: 34px; height: 34px; border-radius: 9px; border: 0; display: grid; place-items: center; cursor: pointer; flex: none;
    background: transparent; color: var(--ink-3); transition: background .15s, color .15s;
}
.n-icon-btn:hover { background: #fff; color: var(--brand); }
.n-icon-btn svg { width: 18px; height: 18px; }

.n-alert {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; margin-bottom: 20px;
    background: var(--amber-soft); border: 1px solid #FBE3B5; color: #7A4A00; font-weight: 600;
}
.n-alert.danger { background: var(--red-soft); border-color: #F8CACA; color: #8E1F1F; }
.n-alert.info { background: var(--brand-soft); border-color: #D9E2FF; color: var(--brand-ink); }
.n-alert .n-btn { margin-left: auto; }
.n-alert svg { width: 22px; height: 22px; flex: none; }

/* ---------------------------------------------------------------- 대시보드 */
.n-hero {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-bottom: 20px;
}
.n-balance {
    position: relative; overflow: hidden; border-radius: 24px; padding: 28px 30px; color: #fff; min-height: 236px;
    background: radial-gradient(140% 140% at 0% 0%, #6E8BFF 0%, var(--brand) 40%, #1530B0 100%);
    box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
}
.n-balance::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(60% 80% at 100% 100%, rgba(18, 199, 154, .35), transparent 70%);
}
.n-balance > * { position: relative; }
.n-balance .lbl { font-size: 14px; font-weight: 600; opacity: .85; }
.n-balance .amt { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.15; margin: 6px 0 4px; }
.n-balance .amt em { font-style: normal; font-size: 22px; font-weight: 700; margin-left: 4px; opacity: .9; }
.n-balance .sub { font-size: 14px; opacity: .85; }
.n-balance .acts { margin-top: auto; display: flex; gap: 10px; padding-top: 22px; }
.n-balance .acts .n-btn { background: #fff; color: var(--brand-ink); }
.n-balance .acts .n-btn.glass { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.n-balance .acts .n-btn.glass:hover { background: rgba(255, 255, 255, .24); }
.n-balance img.art { position: absolute; right: -6px; bottom: 10px; width: 250px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .25)); pointer-events: none; }
.n-balance.is-empty { background: radial-gradient(140% 140% at 0% 0%, #FF9A7A 0%, #EF4444 45%, #A11B2E 100%); }

.n-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.n-stat {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden;
}
.n-stat img { position: absolute; right: 14px; top: 14px; width: 54px; height: 54px; object-fit: contain; }
.n-stat .k { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.n-stat .v { font-size: 28px; font-weight: 800; letter-spacing: -.8px; margin-top: 18px; }
.n-stat .v em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--ink-3); margin-left: 3px; }
.n-stat .d { font-size: 13px; color: var(--ink-3); }

.n-two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 20px; }

/* 막대 그래프 (손으로 그린 SVG) */
.n-chart { position: relative; height: 290px; }
.n-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.n-chart .bar { fill: url(#nBarGrad); transition: opacity .15s; }
.n-chart .bar.zero { fill: var(--line); }
.n-chart .bar:hover { opacity: .8; }
.n-chart .grid { stroke: var(--line-2); stroke-width: 1; }
.n-chart .axis { font-size: 11px; fill: var(--ink-4); font-family: var(--font); }
.n-tip {
    position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px;
    font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .1s; z-index: 2;
}
.n-tip b { display: block; font-size: 14px; }
.n-seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; }
.n-seg button {
    border: 0; background: none; height: 30px; padding: 0 12px; border-radius: 8px; font-weight: 700; font-size: 13px;
    color: var(--ink-3); cursor: pointer;
}
.n-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14, 21, 48, .1); }

/* 빠른 연결 */
.n-quick { display: flex; flex-direction: column; gap: 14px; }
.n-quick .kv { display: grid; grid-template-columns: 84px 1fr; gap: 8px 12px; align-items: center; font-size: 14px; }
.n-quick .kv > span { color: var(--ink-3); font-weight: 600; }
.n-tipbox {
    display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft);
    font-size: 13.5px; color: var(--ink-2);
}
.n-tipbox img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.n-tipbox b { color: var(--brand-ink); }

/* 계정 표 (대시보드) */
.n-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.n-table th {
    text-align: left; font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 0 12px 12px;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.n-table td { padding: 14px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.n-table tr:last-child td { border-bottom: 0; }
.n-table tr.link { cursor: pointer; }
.n-table tr.link:hover td { background: #FAFBFE; }
.n-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.n-table td.num b { font-weight: 750; }

/* ---------------------------------------------------------------- 프록시 계정 카드 */
.n-acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 20px; }
.n-acc { display: flex; flex-direction: column; gap: 16px; transition: border-color .15s, box-shadow .15s; }
.n-acc:hover { border-color: #D3DBF5; }
.n-acc.is-off { background: #FBFCFE; }
.n-acc-head { display: flex; align-items: center; gap: 12px; }
.n-acc-ico {
    width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; flex: none;
}
.n-acc-ico img { width: 30px; height: 36px; object-fit: contain; }
.n-acc.is-off .n-acc-ico { background: var(--line-2); }
.n-acc.is-off .n-acc-ico img { filter: grayscale(1); opacity: .6; }
.n-acc-name { min-width: 0; flex: 1; }
.n-acc-name b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.3px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; }
.n-acc-name span { font-size: 13px; color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-acc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.n-acc-nums { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--line-2); border-radius: 14px; padding: 14px 4px; }
.n-acc-nums > div { text-align: center; border-right: 1px solid var(--line); }
.n-acc-nums > div:last-child { border-right: 0; }
.n-acc-nums small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.n-acc-nums b { font-size: 18px; font-weight: 800; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.n-acc-nums b em { font-style: normal; font-size: 12px; color: var(--ink-3); margin-left: 2px; font-weight: 700; }
.n-acc-cred { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.n-acc-cred .n-copy { min-height: 40px; font-size: 13.5px; }
.n-acc-cred .n-copy small { font-family: var(--font); font-size: 11.5px; color: var(--ink-4); font-weight: 700; margin-right: 2px; }
.n-acc-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.n-acc-foot .n-btn { flex: 1; }

.n-add-card {
    border: 2px dashed #CBD3EA; border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; min-height: 300px; color: var(--ink-3); font-weight: 700; cursor: pointer; background: transparent;
    transition: border-color .15s, background .15s, color .15s; font-size: 15px;
}
.n-add-card:hover { border-color: var(--brand); color: var(--brand); background: rgba(43, 91, 255, .03); }
.n-add-card .plus {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
    font-size: 28px; font-weight: 400; line-height: 1;
}

.n-empty { text-align: center; padding: 40px 20px 50px; }
.n-empty img { width: 180px; margin: 0 auto 10px; }
.n-empty h3 { font-size: 21px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.4px; }
.n-empty p { color: var(--ink-3); margin: 0 0 22px; }

/* ---------------------------------------------------------------- 팝업 */
.n-modal-bg {
    position: fixed; inset: 0; background: rgba(14, 21, 48, .45); backdrop-filter: blur(3px); z-index: 100;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.n-modal-bg.open { display: flex; animation: n-fade .15s ease-out; }
.n-modal {
    width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 24px;
    box-shadow: 0 40px 80px -20px rgba(14, 21, 48, .45); animation: n-pop .2s ease-out;
}
.n-modal-h { display: flex; align-items: center; gap: 12px; padding: 24px 26px 6px; }
.n-modal-h img { width: 44px; height: 44px; object-fit: contain; }
.n-modal-h h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.n-modal-h p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.n-modal-b { padding: 18px 26px 6px; }
.n-modal-f { display: flex; gap: 10px; padding: 8px 26px 24px; }
.n-modal-f .n-btn { flex: 1; }
.n-modal-x { margin-left: auto; align-self: flex-start; }
@keyframes n-fade { from { opacity: 0; } }
@keyframes n-pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }

.n-radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.n-radio {
    position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer;
    font-size: 14px; font-weight: 700; color: var(--ink-2); transition: border-color .15s, background .15s;
}
.n-radio small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.n-radio input { position: absolute; opacity: 0; }
.n-radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }

.n-reveal {
    border-radius: 16px; background: linear-gradient(135deg, #F1F5FF, #E9FBF5); border: 1px solid #DCE5FF; padding: 18px; margin-bottom: 10px;
}
.n-reveal .kv { display: grid; grid-template-columns: 70px 1fr; gap: 8px 10px; align-items: center; font-size: 14px; }
.n-reveal .kv > span { color: var(--ink-3); font-weight: 600; }
.n-reveal .n-copy { background: #fff; }
.n-reveal .warn { font-size: 13px; color: #8A5A00; margin-top: 12px; display: flex; gap: 6px; }

/* ---------------------------------------------------------------- 연결 방법 */
.n-guide { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.n-guide > *, .n-charge > *, .n-two > *, .n-hero > * { min-width: 0; }
.n-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.n-pick a {
    height: 38px; padding: 0 14px; border-radius: 100px; border: 1.5px solid var(--line); background: #fff; display: inline-flex;
    align-items: center; gap: 8px; font-weight: 700; font-size: 14px; font-family: var(--mono); color: var(--ink-2);
}
.n-pick a.on { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.n-steps { counter-reset: step; display: flex; flex-direction: column; gap: 20px; }
.n-step { position: relative; padding-left: 58px; }
.n-step::before {
    counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 12px;
    display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand));
    box-shadow: 0 8px 16px -6px rgba(43, 91, 255, .5);
}
.n-step h3 { margin: 6px 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.n-step > p { margin: 0 0 14px; color: var(--ink-2); }
.n-conn-table { display: grid; grid-template-columns: 120px 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.n-conn-table > div { padding: 12px 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; min-height: 52px; }
.n-conn-table > div:nth-child(odd) { background: #FAFBFE; font-weight: 700; font-size: 13.5px; color: var(--ink-3); }
.n-conn-table > div:nth-child(even) { font-family: var(--mono); font-size: 14.5px; gap: 8px; }
.n-conn-table > div:nth-last-child(-n+2) { border-bottom: 0; }
.n-conn-table > div:nth-child(even) span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.n-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 0; scrollbar-width: none; }
.n-tabs button {
    border: 0; background: none; height: 44px; padding: 0 14px; font-weight: 700; font-size: 14px; color: var(--ink-3); cursor: pointer;
    border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.n-tabs button.on { color: var(--brand-ink); border-bottom-color: var(--brand); }
.n-code {
    position: relative; background: #0F1530; color: #E6EAF7; border-radius: 0 0 16px 16px; padding: 20px 22px; margin: 0;
    font-family: var(--mono); font-size: 13.5px; line-height: 1.7; overflow-x: auto; white-space: pre;
}
.n-code .c { color: #7C88B5; }
.n-code .s { color: #8BE3C4; }
.n-code .k { color: #9DB4FF; }
.n-code-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.n-code-wrap .n-tabs { padding: 0 10px; border-bottom-color: var(--line); }
.n-code-copy {
    position: absolute; right: 12px; top: 12px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .06); color: #C9D1EE; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.n-code-copy:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.n-code-note { font-size: 13.5px; color: var(--ink-3); padding: 12px 18px 16px; border-top: 1px solid var(--line-2); }
.n-side-card { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.n-feature { display: flex; gap: 14px; align-items: flex-start; }
.n-feature img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.n-feature b { display: block; font-size: 15px; margin-bottom: 2px; }
.n-feature p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.n-faq details { border-bottom: 1px solid var(--line-2); padding: 14px 0; }
.n-faq details:last-child { border-bottom: 0; }
.n-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
.n-faq summary::-webkit-details-marker { display: none; }
.n-faq summary::after { content: "+"; margin-left: auto; color: var(--ink-4); font-size: 20px; font-weight: 400; }
.n-faq details[open] summary::after { content: "−"; }
.n-faq details p { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
.n-faq code, .n-step code { font-family: var(--mono); background: var(--line-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* ---------------------------------------------------------------- 충전 */
.n-charge { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.n-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.n-amount {
    position: relative; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; cursor: pointer; background: #fff;
    transition: border-color .15s, background .15s, box-shadow .15s; text-align: left; font-family: inherit;
}
.n-amount:hover { border-color: #C5D1F8; }
.n-amount b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.6px; color: var(--ink); }
.n-amount b em { font-style: normal; font-size: 14px; font-weight: 700; margin-left: 2px; color: var(--ink-3); }
.n-amount small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.n-amount.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(43, 91, 255, .1); }
.n-amount.on b { color: var(--brand-ink); }
.n-amount .pop {
    position: absolute; top: -10px; right: 12px; background: var(--mint); color: #fff; font-size: 11.5px; font-weight: 800;
    padding: 3px 9px; border-radius: 100px; box-shadow: 0 6px 12px -4px rgba(18, 199, 154, .5);
}
.n-custom { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.n-custom label { font-weight: 700; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.n-custom .n-input-wrap { flex: 1; }
.n-custom .n-input { text-align: right; padding-right: 46px; font-weight: 700; font-size: 17px; }
.n-custom .unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 700; }
.n-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.n-summary { position: sticky; top: 88px; }
.n-summary .art { width: 220px; margin: -8px auto 6px; }
.n-summary .line { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14.5px; color: var(--ink-2); }
.n-summary .line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.n-summary .total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 16px; align-items: baseline; }
.n-summary .total b { font-size: 26px; font-weight: 800; letter-spacing: -.6px; color: var(--brand-ink); }
.n-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); margin: 16px 0; cursor: pointer; }
.n-agree input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: 2px; flex: none; }
.n-policy { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; margin: 14px 0 0; padding-left: 16px; }

.n-result { max-width: 560px; margin: 30px auto; text-align: center; padding: 40px 36px; }
.n-result img { width: 150px; margin: 0 auto 8px; }
.n-result h2 { font-size: 26px; font-weight: 800; letter-spacing: -.6px; margin: 0 0 8px; }
.n-result p { color: var(--ink-3); margin: 0 0 24px; }
.n-result .big { font-size: 40px; font-weight: 800; color: var(--brand-ink); letter-spacing: -1px; margin: 4px 0 18px; }
.n-result .acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- 내역 */
.n-filter { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.n-filter button {
    height: 36px; padding: 0 14px; border-radius: 100px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px;
    color: var(--ink-2); cursor: pointer;
}
.n-filter button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.n-txn-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.n-txn-ico.plus { background: var(--mint-soft); color: #0A8F6E; }
.n-txn-ico.minus { background: var(--line-2); color: var(--ink-3); }
.n-txn-ico svg { width: 18px; height: 18px; }
.n-amt-plus { color: #0A8F6E; font-weight: 800; }
.n-amt-minus { color: var(--ink); font-weight: 800; }

/* ---------------------------------------------------------------- 로그인 */
.n-login { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 46%) 1fr; background: #fff; }
.n-login-art {
    position: relative; overflow: hidden; background: #0B1A4A url("/assets/img/login-hero.webp") center / cover no-repeat;
    color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px;
}
.n-login-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 16, 48, 0) 30%, rgba(8, 16, 48, .78) 58%, rgba(6, 12, 38, .97) 100%); }
.n-login-art > * { position: relative; }
.n-login-art h2 { font-size: 38px; line-height: 1.25; font-weight: 800; letter-spacing: -1.2px; margin: 0 0 14px; }
.n-login-art p { font-size: 16px; opacity: .85; margin: 0 0 26px; max-width: 440px; }
.n-login-art ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.n-login-art li {
    padding: 8px 14px; border-radius: 100px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
    font-size: 13.5px; font-weight: 600; backdrop-filter: blur(6px);
}
.n-login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.n-login-box { width: 100%; max-width: 400px; }
.n-login-box .n-logo { padding: 0 0 36px; }
.n-login-box h1 { font-size: 30px; font-weight: 800; letter-spacing: -.9px; margin: 0 0 8px; }
.n-login-box > p { color: var(--ink-3); margin: 0 0 30px; }
.n-login-box .n-input { height: 54px; }
.n-login-box .n-btn { margin-top: 8px; }
.n-login-help { margin-top: 26px; padding: 16px 18px; border-radius: 14px; background: var(--line-2); font-size: 13.5px; color: var(--ink-2); display: flex; gap: 12px; align-items: center; }
.n-login-help a { color: var(--brand); font-weight: 700; }
.n-login-err { background: var(--red-soft); color: #A42121; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.n-login-ok { background: var(--mint-soft); color: #0A7A5E; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.n-pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------- 토스트 */
.n-toast {
    position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 13px 20px;
    border-radius: 14px; font-weight: 600; font-size: 14.5px; opacity: 0; transition: opacity .2s, transform .2s; z-index: 200;
    box-shadow: 0 20px 40px -12px rgba(14, 21, 48, .5); pointer-events: none; max-width: calc(100vw - 32px);
}
.n-toast.show { opacity: 1; transform: translate(-50%, 0); }
.n-toast.err { background: #B42335; }

/* ---------------------------------------------------------------- 반응형 */
@media (max-width: 1180px) {
    .n-hero, .n-two, .n-guide, .n-charge { grid-template-columns: 1fr; }
    .n-side-card, .n-summary { position: static; }
}
@media (max-width: 900px) {
    .n-side { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 60px rgba(14, 21, 48, .2); }
    .n-app.menu-open .n-side { transform: none; }
    .n-app.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(14, 21, 48, .35); z-index: 25; }
    .n-main { margin-left: 0; }
    .n-top { padding: 0 16px; height: 64px; }
    .n-top h1 { font-size: 19px; }
    .n-top .n-menu-btn { display: grid; }
    .n-user > button .nm { display: none; }
    .n-user > button { padding: 0 6px; }
    .n-body { padding: 4px 16px 48px; }
    .n-login { grid-template-columns: 1fr; }
    .n-login-art { min-height: 300px; padding: 32px 24px; }
    .n-login-art h2 { font-size: 28px; }
    .n-login-art p, .n-login-art ul { display: none; }
}
@media (max-width: 640px) {
    .n-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .n-stat { padding: 16px; }
    .n-stat .v { font-size: 22px; }
    .n-stat img { width: 40px; height: 40px; }
    .n-balance { padding: 24px 22px; }
    .n-balance .amt { font-size: 36px; }
    .n-balance img.art { width: 150px; opacity: .55; }
    .n-acc-grid { grid-template-columns: 1fr; }
    .n-acc-cred { grid-template-columns: 1fr; }
    .n-amounts { grid-template-columns: 1fr 1fr; }
    .n-methods { grid-template-columns: 1fr; }
    .n-card { padding: 20px 18px; }
    .n-conn-table { grid-template-columns: 92px 1fr; }
    .n-table .hide-m { display: none; }
    .n-step { padding-left: 0; }
    .n-step::before { position: static; margin-bottom: 10px; }
    .n-alert { flex-wrap: wrap; }
    .n-alert .n-btn { margin-left: 0; width: 100%; }
}
