/* ==========================================================================
 * kingmax.css — KingMax 회원 스킨 공통 스타일 (ngtec 2026-11-27 kingmax1 6단계)
 *  색(12/02 KingMax 골드 톤): 차콜 #141210, 변수 이름 --rm-navy 그대로(머리줄·제목·기본 버튼) · 금색 #D4A537(주요 버튼·금액·선택)
 *  틀: body.rm-auth(로그인 틀) / body.rm-office(오피스·게시판 틀)
 *  새 화면은 rm- 접두 클래스만 쓴다. 옛 화면(아직 안 바꾼 화면)은 아래 '옛 화면 색 맞춤'에서 톤만 맞춘다.
 * ========================================================================== */
:root {
	--rm-navy: #141210;
	--rm-navy-2: #1F1C16;      /* 남색 카드 안쪽 면 */
	--rm-navy-3: #2E2A21;      /* 남색 위 선·hover */
	--rm-gold: #D4A537;
	--rm-gold-d: #B5891D;      /* 금색 눌림 */
	--rm-gold-l: #FBF3DE;      /* 금색 연한 바탕(안내 상자) */
	--rm-bg: #F6F3EC;          /* 연회색 바탕 */
	--rm-card: #FFFFFF;
	--rm-ink: #1C1A16;         /* 글자 */
	--rm-ink-2: #6E675A;       /* 보조 글자 */
	--rm-line: #E8E1D1;        /* 선 */
	--rm-ok: #15803D;
	--rm-bad: #DC2626;
	--rm-r: 12px;              /* 기본 둥근 모서리 */
	--rm-r-lg: 14px;
	--rm-r-sm: 10px;
	--rm-shadow: 0 1px 2px rgba(20, 18, 16, .05), 0 4px 14px rgba(20, 18, 16, .06);
	--rm-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
	--rm-side-w: 248px;        /* PC 사이드 메뉴 폭 */
	--rm-top-h: 56px;          /* 모바일 머리줄 높이 */
	--rm-nav-h: 64px;          /* 하단 고정 메뉴 높이 */
}

/* ───────────────────────── 기본 ───────────────────────── */
html body.rm-body {
	margin: 0;
	background: var(--rm-bg) !important;
	color: var(--rm-ink) !important;
	font-family: var(--rm-font) !important;
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	word-break: keep-all;
	overflow-x: hidden;
	opacity: 1 !important;
}
.rm-body *, .rm-body *::before, .rm-body *::after { box-sizing: border-box; }
.rm-body a { color: inherit; text-decoration: none; }
.rm-body img { max-width: 100%; }
.rm-body button { font-family: inherit; }
.rm-num, .rm-body .rm-amount { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: -.01em; }
.rm-hide { display: none !important; }
.rm-muted { color: var(--rm-ink-2); }
.rm-gold { color: var(--rm-gold); }
.rm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───────────────────────── 로고 ───────────────────────── */
.rm-logo { height: 28px; width: auto; display: block; }
.rm-logo-text { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: .14em; color: #fff; height: auto; }
.rm-logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--rm-gold); color: var(--rm-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; letter-spacing: 0; }
.rm-on-light .rm-logo-text { color: var(--rm-navy); }

/* ───────────────────────── 버튼 ───────────────────────── */
.rm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 48px; padding: 0 18px; border-radius: var(--rm-r);
	font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap;
	border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .05s, opacity .15s;
	-webkit-tap-highlight-color: transparent;
}
.rm-btn:active { transform: translateY(1px); }
.rm-btn[disabled], .rm-btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; }
.rm-btn-block { width: 100%; }
.rm-btn-gold { background: var(--rm-gold); color: var(--rm-navy) !important; }
.rm-btn-gold:hover { background: var(--rm-gold-d); }
.rm-btn-navy { background: var(--rm-navy); color: #fff !important; }
.rm-btn-navy:hover { background: var(--rm-navy-2); }
.rm-btn-line { background: #fff; color: var(--rm-navy) !important; border-color: var(--rm-line); }
.rm-btn-line:hover { border-color: var(--rm-navy); }
.rm-btn-ghost-w { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.rm-btn-ghost-w:hover { background: rgba(255, 255, 255, .08); }
.rm-btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: var(--rm-r-sm); }
.rm-btn-lg { height: 54px; font-size: 16px; }
.rm-icon-btn {
	width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: inherit;
	display: inline-flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; position: relative;
}
.rm-icon-btn:hover { background: rgba(255, 255, 255, .08); }

/* ───────────────────────── 카드 · 칸 ───────────────────────── */
.rm-card { background: var(--rm-card); border: 1px solid var(--rm-line); border-radius: var(--rm-r-lg); box-shadow: var(--rm-shadow); padding: 18px; }
.rm-card + .rm-card { margin-top: 12px; }
.rm-card-navy { background: var(--rm-navy); border-color: var(--rm-navy); color: #fff; }
.rm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.rm-card-title { font-size: 16px; font-weight: 800; color: var(--rm-navy); margin: 0; }
.rm-card-link { font-size: 13px; color: var(--rm-ink-2); display: inline-flex; align-items: center; gap: 4px; }
.rm-section { margin-top: 20px; }
.rm-section-title { font-size: 16px; font-weight: 800; color: var(--rm-navy); margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; }

.rm-label { display: block; font-size: 13px; font-weight: 700; color: var(--rm-ink); margin: 0 0 6px; }
.rm-label .rm-req { color: var(--rm-bad); margin-left: 2px; }
.rm-field { margin-bottom: 16px; }
.rm-input, .rm-select, .rm-body .rm-form .input-field {
	width: 100%; height: 48px; padding: 0 14px; border-radius: var(--rm-r-sm);
	border: 1px solid var(--rm-line); background: #fff; color: var(--rm-ink);
	font-size: 16px; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none; appearance: none;
}
.rm-select, .rm-body .rm-form select.input-field {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.rm-input:focus, .rm-select:focus, .rm-body .rm-form .input-field:focus { border-color: var(--rm-navy); box-shadow: 0 0 0 3px rgba(20, 18, 16, .1); }
.rm-input[readonly], .rm-input:disabled, .rm-body .rm-form .input-field[readonly] { background: var(--rm-bg); color: var(--rm-ink-2); }
.rm-input-row { display: flex; gap: 8px; align-items: center; }
.rm-input-row > .rm-input, .rm-input-row > .rm-select { flex: 1; min-width: 0; }
.rm-help { font-size: 12px; color: var(--rm-ink-2); margin-top: 6px; line-height: 1.5; }
.rm-err { font-size: 12px; color: var(--rm-bad); margin-top: 6px; }
.rm-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--rm-ink); cursor: pointer; user-select: none; }
.rm-check input { width: 18px; height: 18px; accent-color: var(--rm-navy); margin: 0; }

/* 안내 상자 */
.rm-notice { border-radius: var(--rm-r); padding: 12px 14px; font-size: 13px; line-height: 1.6; display: flex; gap: 10px; align-items: flex-start; }
.rm-notice i { margin-top: 3px; }
.rm-notice-gold { background: var(--rm-gold-l); color: #7A5408; border: 1px solid #F3DCA4; }
.rm-notice-navy { background: #F5EEDC; color: var(--rm-navy); border: 1px solid #EADFC2; }
.rm-notice-bad { background: #FEF2F2; color: #991B1B; border: 1px solid #FBD5D5; }
.rm-notice b { font-weight: 800; }
.rm-notice a { text-decoration: underline; font-weight: 700; }

/* 칩(종류 선택) */
.rm-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rm-chips::-webkit-scrollbar { display: none; }
.rm-chip { flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rm-line); background: #fff; color: var(--rm-ink); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
.rm-chip.is-on { background: var(--rm-navy); border-color: var(--rm-navy); color: #fff; box-shadow: inset 0 -2px 0 var(--rm-gold); }

/* 진행 막대 */
.rm-progress { height: 8px; border-radius: 999px; background: #ECE6D8; overflow: hidden; }
.rm-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rm-gold), #F2C25A); }
.rm-card-navy .rm-progress { background: rgba(255, 255, 255, .14); }

/* 목록 줄 */
.rm-list { list-style: none; margin: 0; padding: 0; }
.rm-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rm-line); }
.rm-row:last-child { border-bottom: 0; }
.rm-row-main { flex: 1; min-width: 0; }
.rm-row-title { font-size: 14px; font-weight: 700; color: var(--rm-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-row-sub { font-size: 12px; color: var(--rm-ink-2); margin-top: 2px; }
.rm-row-amt { font-size: 15px; font-weight: 800; color: var(--rm-gold-d); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rm-row-amt small { font-size: 11px; font-weight: 700; color: var(--rm-ink-2); margin-left: 2px; }
.rm-badge-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; background: #F5EEDC; color: var(--rm-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.rm-badge-ico.is-gold { background: var(--rm-gold-l); color: var(--rm-gold-d); }
.rm-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #F5EEDC; color: var(--rm-navy); }
.rm-tag-gold { background: var(--rm-gold-l); color: #8A6209; }
.rm-tag-ok { background: #ECFDF3; color: var(--rm-ok); }
.rm-tag-bad { background: #FEF2F2; color: var(--rm-bad); }
.rm-empty { text-align: center; color: var(--rm-ink-2); font-size: 14px; padding: 32px 8px; }
.rm-empty i { display: block; font-size: 26px; color: #CFC6B2; margin-bottom: 8px; }

/* 요약 줄(라벨 … 값) */
.rm-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; padding: 6px 0; }
.rm-kv > span:first-child { color: var(--rm-ink-2); }
.rm-kv > b { font-weight: 800; font-variant-numeric: tabular-nums; }
.rm-kv.is-total { border-top: 1px dashed var(--rm-line); margin-top: 6px; padding-top: 12px; }
.rm-kv.is-total > b { color: var(--rm-gold-d); font-size: 18px; }

/* 표 */
.rm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rm-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--rm-ink-2); padding: 10px 8px; border-bottom: 1px solid var(--rm-line); background: #FAF7F0; }
.rm-table td { padding: 12px 8px; border-bottom: 1px solid var(--rm-line); vertical-align: middle; }
.rm-table tr:last-child td { border-bottom: 0; }
.rm-table .is-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.rm-table .is-gold { color: var(--rm-gold-d); }

/* 바텀시트 (언어 선택 등) */
.rm-sheet-dim { position: fixed; inset: 0; background: rgba(20, 18, 16, .45); z-index: 10040; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.rm-sheet { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 480px; transform: translate(-50%, 105%); background: #fff; border-radius: 18px 18px 0 0; z-index: 10041; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); transition: transform .25s ease, visibility 0s linear .25s; max-height: 80vh; overflow-y: auto; visibility: hidden; }
.rm-sheet.is-open { transform: translate(-50%, 0); visibility: visible; transition: transform .25s ease, visibility 0s; }
.rm-sheet-dim.is-open { opacity: 1; visibility: visible; }
.rm-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 12px; border-bottom: 1px solid var(--rm-line); margin-bottom: 4px; }
.rm-sheet-head b { font-size: 16px; color: var(--rm-navy); }
.rm-sheet-x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--rm-ink-2); cursor: pointer; }
.rm-sheet-item { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--rm-line); font-size: 15px; color: var(--rm-ink); }
.rm-sheet-item:last-child { border-bottom: 0; }
.rm-sheet-item i { margin-left: auto; color: var(--rm-gold-d); }
.rm-sheet-item.is-on { font-weight: 800; color: var(--rm-navy); }
.rm-lang-code { width: 34px; height: 24px; border-radius: 6px; background: #F5EEDC; color: var(--rm-navy); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* 토스트 */
.rm-toast { position: fixed; left: 50%; bottom: calc(var(--rm-nav-h) + 24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--rm-navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 10050; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.rm-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
 * 로그인 틀 (body.rm-auth) — 로그인·회원가입·비번 찾기·2차 인증
 * ========================================================================== */
.rm-auth { min-height: 100vh; }
.rm-auth #page { min-height: 100vh; }
.rm-auth-hero { background: var(--rm-navy); color: #fff; padding: calc(16px + env(safe-area-inset-top)) 20px 64px; position: relative; overflow: hidden; }
.rm-auth-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(212, 165, 55, .1); }
.rm-auth-top { display: flex; align-items: center; justify-content: space-between; max-width: 440px; margin: 0 auto; position: relative; z-index: 1; }
.rm-lang-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.rm-lang-pill i { font-size: 13px; }
.rm-auth-brand { text-align: center; padding: 34px 0 0; position: relative; z-index: 1; }
.rm-auth-brand .rm-logo { height: 44px; margin: 0 auto; }
.rm-auth-brand .rm-logo-text { font-size: 24px; }
.rm-auth-brand .rm-logo-mark { width: 40px; height: 40px; font-size: 22px; border-radius: 12px; }
.rm-auth-brand p { margin: 12px 0 0; font-size: 14px; color: rgba(255, 255, 255, .72); font-weight: 600; letter-spacing: .04em; }
.rm-auth-card { position: relative; z-index: 2; max-width: 440px; margin: -40px auto 0; background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(20, 18, 16, .12); padding: 24px 20px; }
.rm-auth-wrap { padding: 0 16px 40px; }
.rm-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 18px; font-size: 13px; }
.rm-auth-row a { color: var(--rm-ink-2); font-weight: 600; }
.rm-auth-row a:hover { color: var(--rm-navy); }
.rm-auth-actions { display: grid; gap: 10px; }
.rm-captcha { display: flex; gap: 8px; align-items: center; }
.rm-captcha img { height: 48px; border-radius: var(--rm-r-sm); border: 1px solid var(--rm-line); flex: 0 0 auto; background: #fff; }
.rm-captcha .rm-icon-btn { flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid var(--rm-line); color: var(--rm-navy); background: #fff; border-radius: var(--rm-r-sm); }
.rm-captcha .rm-input { flex: 1; min-width: 0; }
.rm-pw-wrap { position: relative; }
.rm-pw-wrap .rm-input { padding-right: 46px; }
.rm-pw-eye { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: none; color: var(--rm-ink-2); cursor: pointer; font-size: 15px; }
.rm-auth-foot { text-align: center; font-size: 12px; color: var(--rm-ink-2); margin-top: 18px; }

/* 회원가입: 남색 머리줄 + 진행 막대 */
.rm-auth-bar { position: sticky; top: 0; z-index: 30; background: var(--rm-navy); color: #fff; padding-top: env(safe-area-inset-top); }
.rm-auth-bar-in { max-width: 560px; margin: 0 auto; height: var(--rm-top-h); display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.rm-auth-bar h1 { flex: 1; margin: 0; font-size: 17px; font-weight: 800; color: #fff; }
.rm-auth-bar .rm-lang-pill { height: 30px; }
.rm-steps { height: 4px; background: rgba(255, 255, 255, .14); }
.rm-steps > span { display: block; height: 100%; width: 0; background: var(--rm-gold); transition: width .25s; }
.rm-reg-body { max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; }
.rm-reg-intro { margin: 0 0 16px; }
.rm-reg-intro h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--rm-navy); }
.rm-reg-intro p { margin: 4px 0 0; font-size: 13px; color: var(--rm-ink-2); }

/* 회원가입 입력칸(register_field.php 컴포넌트 마크업 그대로) */
.rm-form .field-item { margin: 0 0 14px; position: relative; }
.rm-form .field-item > label, .rm-form .field-item > p > label, .rm-form .reg-label { display: block; font-size: 13px; font-weight: 700; color: var(--rm-ink) !important; margin: 0 0 6px; }
.rm-form .field-item > label span, .rm-form .reg-label .required { color: var(--rm-bad) !important; }
.rm-form .field-item .field-item { margin: 0; }
.rm-form .warning { display: block; font-size: 12px; color: var(--rm-ink-2) !important; margin: -8px 0 10px; }
.rm-form .reg-error { font-size: 12px; margin: -8px 0 12px; color: var(--rm-ink-2); min-height: 0; }
.rm-form .reg-error:empty { display: none; }
.rm-form .reg-eye-btn { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: none; color: var(--rm-ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rm-form .input-group { display: block; }
.rm-form .pw-strength-list { display: flex !important; flex-wrap: wrap; gap: 6px 12px; margin: -6px 0 14px !important; padding: 0 !important; background: none !important; border: 0 !important; }
.rm-form .pw-rule { font-size: 12px !important; color: var(--rm-ink-2) !important; display: inline-flex; gap: 4px; align-items: center; }
.rm-form .pw-rule.pw-pass, .rm-form .pw-rule.pw-pass .pw-check { color: var(--rm-ok) !important; }
.rm-form .pw-rule.pw-fail .pw-check { color: #D6CDB8 !important; }
.rm-form .btn-date_p, .rm-form .rm-mini-btn { flex: 0 0 auto; height: 48px; padding: 0 14px; border-radius: var(--rm-r-sm); border: 1px solid var(--rm-navy); background: #fff; color: var(--rm-navy); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rm-form .btn-date_p:hover { background: var(--rm-navy); color: #fff; }
.rm-form .reg-input-wrap { position: relative; margin: 0 0 14px; }
.rm-form .reg-input-wrap .input-icon { display: none; }
.rm-form .reg-input-wrap input { width: 100%; height: 48px; padding: 0 14px; border-radius: var(--rm-r-sm); border: 1px solid var(--rm-line); background: #fff; color: var(--rm-ink); font-size: 16px; outline: none; }
.rm-form .reg-input-wrap.readonly input { background: var(--rm-bg); color: var(--rm-ink-2); }
.rm-form .reg-captcha-wrap { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.rm-form .reg-captcha-wrap img { height: 48px; border-radius: var(--rm-r-sm); border: 1px solid var(--rm-line); }
.rm-form .reg-captcha-wrap .reg-captcha-btn { width: 48px; height: 48px; border-radius: var(--rm-r-sm); border: 1px solid var(--rm-line); background: #fff; color: var(--rm-navy); cursor: pointer; }
.rm-form .reg-captcha-wrap input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: var(--rm-r-sm); border: 1px solid var(--rm-line); font-size: 16px; }
.rm-form .radio { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-size: 14px; }
.rm-side-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rm-side-pick button { height: 48px; border-radius: var(--rm-r-sm); border: 1px solid var(--rm-line); background: #fff; color: var(--rm-ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.rm-side-pick button.is-on { border-color: var(--rm-navy); background: var(--rm-navy); color: #fff; box-shadow: inset 0 -3px 0 var(--rm-gold); }
.rm-terms { border: 1px solid var(--rm-line); border-radius: var(--rm-r); padding: 4px 14px; margin: 6px 0 16px; background: #fff; }
.rm-terms-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rm-line); }
.rm-terms-row:last-child { border-bottom: 0; }
.rm-terms-row.is-all { font-weight: 800; }
.rm-terms-view { border: 0; background: none; color: var(--rm-ink-2); font-size: 12px; text-decoration: underline; cursor: pointer; }
.rm-terms-text { display: none; max-height: 180px; overflow-y: auto; font-size: 12px; color: var(--rm-ink-2); background: var(--rm-bg); border-radius: 8px; padding: 10px; margin: -4px 0 10px; white-space: pre-wrap; }
.rm-terms-text.is-open { display: block; }
.rm-reg-submit { margin-top: 8px; }

/* 옛 로그인 틀 화면(비번 찾기·비번 재설정·2차 인증·추천 가입)의 클래스 — 톤만 맞춤 */
.rm-auth .login-wrapper, .rm-auth .register-wrapper { min-height: 100vh; background: var(--rm-bg) !important; padding: 0 0 40px; display: block; color: var(--rm-ink); }
.rm-auth .login-topbar, .rm-auth .register-topbar { background: var(--rm-navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; max-width: none; margin: 0; }
.rm-auth .lang-btn, .rm-auth .login-link, .rm-auth .pwd-back-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3) !important; background: rgba(255, 255, 255, .06) !important; color: #fff !important; font-size: 13px; font-weight: 700; box-shadow: none !important; }
.rm-auth .lang-btn svg { width: 15px; height: 15px; }
.rm-auth .login-body, .rm-auth .register-body { max-width: 440px; margin: 16px auto 0; background: #fff; border-radius: 18px; box-shadow: var(--rm-shadow); padding: 24px 20px; display: flex; flex-direction: column; }
.rm-auth .register-body { max-width: 560px; }
.rm-auth .login-welcome h1, .rm-auth .register-welcome h1 { font-size: 20px; font-weight: 800; color: var(--rm-navy) !important; margin: 0 0 4px; line-height: 1.35; }
.rm-auth .login-welcome h1 span, .rm-auth .register-welcome h1 span { color: var(--rm-navy) !important; }
.rm-auth .login-welcome p, .rm-auth .register-welcome p, .rm-auth .pwd-subtitle { font-size: 13px; color: var(--rm-ink-2) !important; margin: 0; }
.rm-auth .login-divider, .rm-auth .register-divider { height: 1px; background: var(--rm-line); margin: 16px 0; }
.rm-auth .login-label { display: block; font-size: 13px; font-weight: 700; color: var(--rm-ink) !important; margin: 0 0 6px; }
.rm-auth .required { color: var(--rm-bad) !important; }
.rm-auth .login-input-wrap { position: relative; margin: 0 0 14px; background: none !important; border: 0 !important; padding: 0 !important; }
.rm-auth .login-input-wrap .input-icon { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; color: var(--rm-ink-2); pointer-events: none; }
.rm-auth .login-input-wrap .input-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rm-auth .login-input-wrap input { width: 100%; height: 48px; padding: 0 44px 0 44px; border-radius: var(--rm-r-sm); border: 1px solid var(--rm-line) !important; background: #fff !important; color: var(--rm-ink) !important; font-size: 16px; outline: none; }
.rm-auth .login-input-wrap input:focus { border-color: var(--rm-navy) !important; }
.rm-auth .pwd-eye-btn { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: none; color: var(--rm-ink-2); }
.rm-auth .login-bottom, .rm-auth .register-bottom { position: static !important; padding: 0 !important; margin: 8px 0 0; background: none !important; width: 100%; }
.rm-auth .login-submit-btn, .rm-auth .register-submit-btn { width: 100%; height: 52px; border: 0; border-radius: var(--rm-r); background: var(--rm-gold) !important; color: var(--rm-navy) !important; font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: none !important; }
.rm-auth .login-submit-btn svg, .rm-auth .register-submit-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.rm-auth .login-submit-btn:disabled, .rm-auth .register-submit-btn:disabled { opacity: .5; }
.rm-auth .pwd-send-code-wrap { display: flex; gap: 8px; margin: -4px 0 14px; }
.rm-auth .pwd-send-code-btn { height: 40px; padding: 0 14px; border-radius: var(--rm-r-sm); border: 1px solid var(--rm-navy); background: #fff; color: var(--rm-navy); font-weight: 700; }
.rm-auth .pw-rule { color: var(--rm-ink-2) !important; font-size: 12px; }
.rm-auth .pw-rule.pw-pass .pw-check { color: var(--rm-ok) !important; }
.rm-auth .login-logo-area img { max-width: 220px; margin: 0 auto; display: block; }
.rm-auth .ref-step-indicator { display: flex; align-items: center; justify-content: center; gap: 0; margin: 14px 0 0; }
.rm-auth .ref-step-dot { width: 28px; height: 28px; border-radius: 50%; background: #ECE6D8 !important; color: var(--rm-ink-2) !important; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 0 !important; box-shadow: none !important; }
.rm-auth .ref-step-dot.active { background: var(--rm-navy) !important; color: #fff !important; }
.rm-auth .ref-step-line { width: 40px; height: 3px; background: #ECE6D8 !important; }
.rm-auth .ref-step-line.active { background: var(--rm-gold) !important; }
.rm-auth .lang-sheet-overlay { position: fixed; inset: 0; background: rgba(20, 18, 16, .45); z-index: 10040; display: none; }
.rm-auth .lang-sheet-overlay.active { display: block; }
.rm-auth .lang-sheet { position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 105%); width: 100%; max-width: 480px; background: #fff !important; color: var(--rm-ink) !important; border-radius: 18px 18px 0 0; z-index: 10041; padding: 8px 16px 20px; transition: transform .25s; }
.rm-auth .lang-sheet.active { transform: translate(-50%, 0); }
.rm-auth .lang-sheet-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.rm-auth .lang-sheet-header h3 { margin: 0; font-size: 16px; color: var(--rm-navy) !important; }
.rm-auth .lang-sheet-close { border: 0; background: none; font-size: 26px; color: var(--rm-ink-2) !important; }
.rm-auth .lang-sheet-subtitle { font-size: 12px; color: var(--rm-ink-2) !important; margin-bottom: 4px; }
.rm-auth .lang-sheet-item { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--rm-line); color: var(--rm-ink) !important; }
.rm-auth .lang-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--rm-ink-2); stroke-width: 1.5; }
.rm-auth .lang-arrow { margin-left: auto; color: var(--rm-ink-2); }

/* ==========================================================================
 * 오피스 틀 (body.rm-office) — PC: 왼쪽 남색 사이드 메뉴 / 모바일: 남색 머리줄 + 하단 고정 메뉴
 *  틀은 감싸는 div 없이 고정 요소(사이드바·하단 메뉴)와 body 여백으로만 만든다
 *  (옛 화면·게시판이 div 짝을 다르게 닫아도 틀이 깨지지 않게).
 * ========================================================================== */
.rm-office { padding-bottom: calc(var(--rm-nav-h) + 24px + env(safe-area-inset-bottom)); }

/* 모바일 머리줄 */
.rm-top { position: sticky; top: 0; z-index: 1000; background: var(--rm-navy); color: #fff; padding-top: env(safe-area-inset-top); }
.rm-top-in { height: var(--rm-top-h); display: flex; align-items: center; gap: 2px; padding: 0 6px 0 8px; max-width: 640px; margin: 0 auto; }
.rm-top-title { flex: 1; min-width: 0; margin: 0 0 0 4px; font-size: 17px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-top-brand { flex: 1; min-width: 0; display: flex; align-items: center; padding-left: 6px; }
.rm-top-brand .rm-logo { height: 26px; }
.rm-top-brand .rm-logo-text { font-size: 16px; }
.rm-top-brand .rm-logo-mark { width: 28px; height: 28px; font-size: 15px; }
.rm-top .rm-icon-btn { color: #fff; }
.rm-top .rm-lang-pill { height: 30px; padding: 0 10px; font-size: 12px; margin-right: 2px; }
.rm-dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--rm-gold); }

/* PC 머리줄(본문 위) */
.rm-pc-top { display: none; }

/* 본문 폭 */
.rm-page { width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 16px 8px; }

/* 하단 고정 메뉴 5칸 */
.rm-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #fff; border-top: 1px solid var(--rm-line); box-shadow: 0 -4px 16px rgba(20, 18, 16, .06); padding-bottom: env(safe-area-inset-bottom); }
.rm-nav-in { max-width: 640px; margin: 0 auto; height: var(--rm-nav-h); display: grid; grid-template-columns: repeat(5, 1fr); }
.rm-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #8F8778; font-size: 11px; font-weight: 700; position: relative; -webkit-tap-highlight-color: transparent; }
.rm-nav a i { font-size: 19px; }
.rm-nav a.is-on { color: var(--rm-navy); }
.rm-nav a.is-on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--rm-gold); }

/* PC 사이드 메뉴 */
.rm-side { display: none; }

/* 슬라이드 메뉴(관리자 메뉴 설정 menu_tree — sidebar.php, 함수 toggleMenu/closeMenu 그대로) */
.rm-body .menu-overlay { position: fixed; inset: 0; background: rgba(20, 18, 16, .45) !important; z-index: 10030; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.rm-body .menu-overlay.active { opacity: 1; visibility: visible; }
.rm-body .slide-menu { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: 86%; max-width: 340px; background: #fff !important; color: var(--rm-ink) !important; z-index: 10031; transform: translateX(105%); transition: transform .25s ease; overflow-y: auto; visibility: hidden; box-shadow: -10px 0 30px rgba(20, 18, 16, .15); padding: 0 !important; }
.rm-body .slide-menu.active { transform: translateX(0); visibility: visible; }
.rm-body .slide-menu .menu-header { background: var(--rm-navy) !important; color: #fff !important; padding: calc(18px + env(safe-area-inset-top)) 18px 18px !important; position: relative; }
.rm-body .slide-menu .menu-title { font-size: 18px; font-weight: 800; color: #fff !important; }
.rm-body .slide-menu .menu-subtitle { font-size: 12px; color: rgba(255, 255, 255, .7) !important; margin-top: 2px; }
.rm-body .slide-menu .menu-close { position: absolute; right: 12px; top: calc(12px + env(safe-area-inset-top)); width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1) !important; color: #fff !important; cursor: pointer; }
.rm-body .slide-menu .menu-content { padding: 8px 12px 24px !important; }
.rm-body .slide-menu .menu-section-title { display: flex; align-items: center; gap: 10px; padding: 13px 8px !important; font-size: 15px; font-weight: 700; color: var(--rm-ink) !important; border-bottom: 1px solid var(--rm-line); cursor: pointer; background: none !important; }
.rm-body .slide-menu .menu-section-title i { width: 20px; color: var(--rm-navy) !important; text-align: center; }
.rm-body .slide-menu .menu-toggle-arrow { margin-left: auto; color: var(--rm-ink-2) !important; }
.rm-body .slide-menu .menu-item { display: flex; align-items: center; gap: 10px; padding: 11px 8px !important; border-bottom: 1px solid #F1ECE1; cursor: pointer; background: none !important; border-radius: 0 !important; margin: 0 !important; }
.rm-body .slide-menu .menu-item::before { display: none !important; }
.rm-body .slide-menu .menu-item-icon { width: 20px; color: var(--rm-navy) !important; background: none !important; text-align: center; }
.rm-body .slide-menu .menu-item-title { font-size: 14px; color: var(--rm-ink) !important; font-weight: 600; }
.rm-body .slide-menu .menu-item-desc { font-size: 12px; color: var(--rm-ink-2) !important; }
.rm-body .slide-menu .menu-item-arrow { margin-left: auto; color: var(--rm-ink-2) !important; }

/* PC (넓은 화면 ≥1024px): 왼쪽 사이드 메뉴 + 넓은 본문, 하단 메뉴·모바일 머리줄 숨김 */
@media (min-width: 1024px) {
	.rm-office { padding-left: var(--rm-side-w); padding-bottom: 40px; }
	.rm-top, .rm-nav { display: none; }
	.rm-side { display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: var(--rm-side-w); background: var(--rm-navy); color: #fff; z-index: 1001; padding: 22px 14px 18px; overflow-y: auto; }
	.rm-side-brand { display: flex; align-items: center; padding: 0 8px 22px; }
	.rm-side-brand .rm-logo { height: 30px; }
	.rm-side-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
	.rm-side-menu a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 600; position: relative; }
	.rm-side-menu a i { width: 18px; text-align: center; font-size: 15px; }
	.rm-side-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
	.rm-side-menu a.is-on { background: var(--rm-navy-2); color: #fff; }
	.rm-side-menu a.is-on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--rm-gold); }
	.rm-side-menu a.is-on i { color: var(--rm-gold); }
	.rm-side-sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 10px 8px; }
	.rm-side-foot { margin-top: auto; padding: 14px 8px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .1); }
	.rm-side-foot small { color: rgba(255, 255, 255, .5); font-size: 11px; }
	.rm-pc-top { display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--rm-line); position: sticky; top: 0; z-index: 900; }
	.rm-pc-top h1 { margin: 0; font-size: 22px; font-weight: 800; color: var(--rm-navy); }
	.rm-pc-hello { margin-left: 8px; font-size: 14px; color: var(--rm-ink-2); }
	.rm-pc-hello b { color: var(--rm-ink); }
	.rm-pc-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
	.rm-pc-actions .rm-btn { height: 40px; font-size: 14px; }
	.rm-pc-actions .rm-lang-pill { border-color: var(--rm-line); color: var(--rm-navy); background: #fff; }
	.rm-page { max-width: 1200px; padding: 28px 32px 16px; }
	.rm-page.is-narrow { max-width: 720px; margin: 0; }
	.rm-toast { bottom: 32px; }
}

/* ==========================================================================
 * 03 대시보드 (office/start) — 모바일 + PC
 * ========================================================================== */
.rm-hello { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 14px; }
.rm-hello h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--rm-navy); }
.rm-hello p { margin: 2px 0 0; font-size: 13px; color: var(--rm-ink-2); }
.rm-rank { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--rm-navy); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.rm-rank i { color: var(--rm-gold); }
.rm-balance { background: var(--rm-navy); color: #fff; border-radius: 18px; padding: 20px; position: relative; overflow: hidden; box-shadow: 0 10px 24px rgba(20, 18, 16, .22); }
.rm-balance::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 28px solid rgba(212, 165, 55, .12); }
.rm-balance-label { font-size: 13px; color: rgba(255, 255, 255, .72); font-weight: 600; }
.rm-balance-amt { margin: 6px 0 16px; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.rm-balance-amt small { font-size: 15px; font-weight: 700; color: var(--rm-gold); margin-left: 4px; }
.rm-balance-row { display: flex; gap: 8px; position: relative; z-index: 1; }
.rm-balance-row .rm-btn { flex: 1; height: 44px; }
.rm-limit { margin-top: 12px; }
.rm-limit-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 8px; }
.rm-limit-top b { font-size: 15px; color: var(--rm-navy); font-variant-numeric: tabular-nums; }
.rm-limit-sub { display: flex; justify-content: space-between; font-size: 12px; color: var(--rm-ink-2); margin-top: 8px; font-variant-numeric: tabular-nums; }
.rm-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.rm-quick a { background: #fff; border: 1px solid var(--rm-line); border-radius: var(--rm-r-lg); padding: 14px 4px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--rm-ink); box-shadow: var(--rm-shadow); }
.rm-quick a span.rm-q-ico { width: 40px; height: 40px; border-radius: 12px; background: #F5EEDC; color: var(--rm-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.rm-quick a:nth-child(2) span.rm-q-ico { background: var(--rm-gold-l); color: var(--rm-gold-d); }
.rm-bonus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rm-bonus-cell { background: #fff; border: 1px solid var(--rm-line); border-radius: var(--rm-r); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rm-bonus-cell .rm-bc-name { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rm-ink-2); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-bonus-cell .rm-bc-name i { color: var(--rm-navy); width: 14px; text-align: center; }
.rm-bonus-cell .rm-bc-amt { font-size: 16px; font-weight: 800; color: var(--rm-gold-d); font-variant-numeric: tabular-nums; }
.rm-bonus-cell .rm-bc-amt small { font-size: 11px; color: var(--rm-ink-2); font-weight: 700; margin-left: 2px; }
.rm-dash-pc { display: none; }
.rm-invite { display: flex; align-items: center; gap: 12px; }
.rm-invite input { flex: 1; min-width: 0; }

@media (min-width: 1024px) {
	.rm-dash-mobile { display: none; }
	.rm-dash-pc { display: block; }
	.rm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
	.rm-stat { background: #fff; border: 1px solid var(--rm-line); border-radius: 16px; padding: 20px; box-shadow: var(--rm-shadow); display: flex; flex-direction: column; gap: 6px; min-height: 148px; }
	.rm-stat.is-navy { background: var(--rm-navy); border-color: var(--rm-navy); color: #fff; }
	.rm-stat-label { font-size: 13px; font-weight: 700; color: var(--rm-ink-2); display: flex; align-items: center; gap: 8px; }
	.rm-stat.is-navy .rm-stat-label { color: rgba(255, 255, 255, .7); }
	.rm-stat-amt { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--rm-navy); }
	.rm-stat.is-navy .rm-stat-amt { color: #fff; }
	.rm-stat-amt small { font-size: 13px; font-weight: 700; margin-left: 4px; color: var(--rm-gold-d); }
	.rm-stat.is-navy .rm-stat-amt small { color: var(--rm-gold); }
	.rm-stat-foot { margin-top: auto; font-size: 12px; color: var(--rm-ink-2); }
	.rm-stat.is-navy .rm-stat-foot { color: rgba(255, 255, 255, .6); }
	.rm-stat .rm-btn { height: 36px; font-size: 13px; margin-top: auto; align-self: flex-start; }
	.rm-dash-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
	.rm-dash-cols .rm-card { padding: 20px; }
	.rm-level-now { background: var(--rm-gold-l); }
	.rm-level-now td { font-weight: 800; }
}

/* ==========================================================================
 * 04 구매 신청 · 06 출금 신청 · 05 수당 내역 공통 남색 띠
 * ========================================================================== */
.rm-band { background: var(--rm-navy); color: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 8px 20px rgba(20, 18, 16, .18); }
.rm-band-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rm-band-label { font-size: 13px; color: rgba(255, 255, 255, .7); font-weight: 600; }
.rm-band-amt { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.15; }
.rm-band-amt small { font-size: 14px; color: var(--rm-gold); margin-left: 4px; font-weight: 700; }
.rm-band-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rm-band-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 12px; font-weight: 700; color: #fff; }
.rm-band-pill b { color: var(--rm-gold); }
.rm-band .rm-period { display: flex; gap: 6px; align-items: center; margin-top: 14px; }
.rm-band .rm-period input { flex: 1; min-width: 0; height: 38px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 10px; font-size: 14px; font-family: inherit; color-scheme: dark; }
.rm-band .rm-period span { color: rgba(255, 255, 255, .6); }
.rm-band .rm-period button { height: 38px; padding: 0 12px; border-radius: 9px; border: 0; background: var(--rm-gold); color: var(--rm-navy); font-weight: 800; font-size: 13px; cursor: pointer; }
.rm-quick-dates { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.rm-quick-dates::-webkit-scrollbar { display: none; }
.rm-quick-dates button { flex: 0 0 auto; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: rgba(255, 255, 255, .85); font-size: 12px; font-weight: 600; cursor: pointer; }

.rm-addr { display: flex; align-items: center; gap: 8px; background: var(--rm-bg); border: 1px dashed #D8CDB3; border-radius: var(--rm-r-sm); padding: 10px 10px 10px 12px; }
.rm-addr code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--rm-navy); word-break: break-all; line-height: 1.45; }
.rm-addr .rm-btn { flex: 0 0 auto; }
.rm-net { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--rm-navy); }
.rm-net i { color: var(--rm-gold-d); }
.rm-amount-input { position: relative; }
.rm-amount-input .rm-input { height: 56px; font-size: 22px; font-weight: 800; padding-right: 72px; font-variant-numeric: tabular-nums; }
.rm-amount-input .rm-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 800; color: var(--rm-ink-2); }
.rm-quick-amt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.rm-quick-amt button { height: 38px; border-radius: 9px; border: 1px solid var(--rm-line); background: #fff; color: var(--rm-navy); font-weight: 700; font-size: 13px; cursor: pointer; }
.rm-quick-amt button:hover, .rm-quick-amt button.is-on { border-color: var(--rm-gold); background: var(--rm-gold-l); }
.rm-sticky-cta { margin-top: 18px; }

/* withdraw_keypad(출금 인증 단계) 톤 맞춤 */
.rm-body .kp-header { background: var(--rm-navy) !important; color: #fff !important; border: 0 !important; }
.rm-body .kp-network-badge { background: var(--rm-gold) !important; color: var(--rm-navy) !important; }
.rm-body .kp-amount-value { color: var(--rm-navy) !important; font-variant-numeric: tabular-nums; }
.rm-body .kp-max-btn { background: var(--rm-gold-l) !important; color: #8A6209 !important; border-color: #F3DCA4 !important; }
.rm-body .kp-key { background: #fff !important; color: var(--rm-ink) !important; border: 1px solid var(--rm-line) !important; }
.rm-body .kp-submit-btn, .rm-body .confirm-btn { background: var(--rm-gold) !important; color: var(--rm-navy) !important; font-weight: 800 !important; }
.rm-body .pin-overlay, .rm-body .email-overlay, .rm-body .confirm-overlay { background: var(--rm-navy) !important; }
.rm-body .success-overlay { background: var(--rm-navy) !important; }

/* ==========================================================================
 * 옛 화면 색 맞춤 — 아직 새로 안 쓴 화면(dbg-bright.css 변수 재정의 + 표준 제목)
 *  rumore 틀 안에서만 적용. 새 디자인으로 다시 쓰면 이 부분 영향은 없어짐.
 * ========================================================================== */
.rm-legacy {
	--dbg-green: #141210; --dbg-green-d: #0A0907; --dbg-green-l: #F5EEDC;
	--dbg-sun: #D4A537; --dbg-sun-d: #B5891D; --dbg-sun-l: #FBF3DE;
	--dbg-cream: #F6F3EC; --dbg-ink: #1C1A16; --dbg-ink2: #374151; --dbg-muted: #6B7280;
	--dbg-line: #E8E1D1; --dbg-card: #FFFFFF; --dbg-shadow: 0 4px 14px rgba(20, 18, 16, .06); --dbg-red: #DC2626;
}
html body.rm-legacy, html.rm-html { background: var(--rm-bg) !important; background-image: none !important; }
.rm-legacy .sub_container, .rm-legacy > .container { min-height: 0 !important; overflow: visible !important; max-width: 640px; margin: 0 auto; padding: 0 16px 16px !important; background: transparent !important; }
.rm-legacy .page-title-section { position: static !important; height: auto !important; width: auto !important; margin: 16px 0 14px !important; padding: 0 !important; background: none !important; box-shadow: none !important; display: block !important; text-align: left; pointer-events: auto; }
.rm-legacy .page-title { font-size: 20px !important; font-weight: 800 !important; color: var(--rm-navy) !important; -webkit-text-fill-color: var(--rm-navy) !important; background: none !important; text-shadow: none !important; margin: 0 0 8px !important; text-align: left !important; }
.rm-legacy .title-underline { width: 32px !important; height: 3px !important; border-radius: 3px; background: var(--rm-gold) !important; margin: 0 !important; box-shadow: none !important; }
.rm-legacy .back-btn { display: none !important; }
@media (max-width: 1023px) {
	/* 모바일은 남색 머리줄에 제목이 있으므로 본문 제목은 숨김(옛 화면) */
	.rm-legacy .page-title-section { display: none !important; }
}
@media (min-width: 1024px) {
	.rm-legacy .sub_container, .rm-legacy > .container { max-width: 960px; margin: 0; padding: 0 32px 16px !important; }
	.rm-legacy .page-title-section { display: none !important; }
}

/* ───────────── 페이지 번호(Model::pagination1 마크업: .pagination-container > button.pagination-btn > a) ───────────── */
.rm-body .pagination-container { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 16px 0 4px; padding: 0; background: none; }
.rm-body .pagination-btn { min-width: 36px; height: 36px; padding: 0; border-radius: 9px; border: 1px solid var(--rm-line); background: #fff; color: var(--rm-ink); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none; }
.rm-body .pagination-btn a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0 10px; color: inherit !important; }
.rm-body .pagination-btn.active { background: var(--rm-navy); border-color: var(--rm-navy); color: #fff; box-shadow: inset 0 -2px 0 var(--rm-gold); }

/* ───────────── 게시판 틀 본문 폭 ───────────── */
.rm-bbs { max-width: 960px; margin: 0 auto; padding: 16px 16px 8px; min-height: 0 !important; }
.rm-bbs .gx-main-content { background: transparent !important; }
@media (min-width: 1024px) { .rm-bbs { margin: 0; padding: 28px 32px 16px; } }

/* 출금 인증 단계(withdraw_keypad) 본문 */
.rm-legacy .kp-amount-display, .rm-legacy .kp-max-row, .rm-legacy .kp-keypad { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ngtec 2026-11-27 국기(키노): 언어 버튼·언어 선택 창 */
.rm-flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.rm-flag.rm-flag-lg { width: 28px; height: 28px; }
.rm-lang-pill .rm-flag { margin-right: 4px; }

/* ==========================================================================
 * KingMax 골드 고급 톤 (ngtec 2026-12-02 kingmax1 C 갈래 — 의뢰자: 골드색 많이, 고급스럽게)
 *  토큰(--rm-*)은 위에서 차콜·골드로 바꿨고, 여기서는 금색 그라데이션·금테만 덧입힘. 마크업은 그대로.
 * ========================================================================== */
:root {
	--km-gold-grad: linear-gradient(135deg, #F6DC8A 0%, #E2B33C 42%, #C8961E 72%, #A97B14 100%);
	--km-gold-line: linear-gradient(90deg, rgba(212,165,55,0) 0%, #E2B33C 50%, rgba(212,165,55,0) 100%);
	--km-dark-grad: linear-gradient(160deg, #26211A 0%, #15130F 55%, #0C0B08 100%);
}
/* 주요 버튼: 금색 그라데이션 */
.rm-btn-gold { background: var(--km-gold-grad) !important; color: #17140E !important; box-shadow: 0 4px 14px rgba(201, 150, 30, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.rm-btn-gold:hover { filter: brightness(1.04); }
.rm-btn-navy { background: var(--km-dark-grad); color: #F3D98B !important; border-color: rgba(212, 165, 55, .45); }
.rm-btn-line:hover { border-color: var(--rm-gold); }
/* 어두운 면(머리줄·사이드·로그인 위쪽·잔고 카드): 차콜 그라데이션 + 금색 선 */
.rm-auth-hero, .rm-balance, .rm-card-navy, .rm-stat.is-navy, .rm-auth-bar, .rm-auth .login-topbar, .rm-auth .register-topbar { background: var(--km-dark-grad) !important; }
.rm-top { background: var(--km-dark-grad); box-shadow: inset 0 -1px 0 rgba(212, 165, 55, .45); }
.rm-auth-hero { border-bottom: 1px solid rgba(212, 165, 55, .35); }
.rm-auth-hero::after { border-color: rgba(212, 165, 55, .16); }
.rm-auth-hero::before { content: ""; position: absolute; left: -80px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(212, 165, 55, .22); }
.rm-balance, .rm-stat.is-navy, .rm-card-navy { border: 1px solid rgba(212, 165, 55, .45) !important; }
.rm-balance-amt, .rm-stat.is-navy .rm-stat-amt { background: var(--km-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; }
.rm-balance-amt i { -webkit-text-fill-color: #E2B33C; }
@media (min-width: 1024px) {
	.rm-side { background: var(--km-dark-grad); border-right: 1px solid rgba(212, 165, 55, .35); }
	.rm-side-menu a.is-on { background: linear-gradient(90deg, rgba(212, 165, 55, .22), rgba(212, 165, 55, .04)); color: #F3D98B; }
	.rm-side-menu a:hover i { color: var(--rm-gold); }
	.rm-pc-top { box-shadow: inset 0 -2px 0 rgba(212, 165, 55, .35); }
	.rm-pc-top h1 { position: relative; padding-bottom: 2px; }
	.rm-pc-top h1::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 28px; height: 3px; border-radius: 3px; background: var(--km-gold-grad); }
}
/* 직급 배지·태그·카드 */
.rm-rank { background: var(--km-gold-grad); color: #17140E; box-shadow: 0 2px 8px rgba(201, 150, 30, .3); }
.rm-rank i { color: #17140E; }
.rm-card { border-color: #EADFC6; }
.rm-card-title { position: relative; }
.rm-quick a span.rm-q-ico, .rm-badge-ico { background: var(--km-dark-grad); color: #E8C35A; }
.rm-quick a:nth-child(2) span.rm-q-ico { background: var(--km-gold-grad); color: #17140E; }
.rm-progress > span { background: var(--km-gold-grad); }
.rm-nav { border-top: 1px solid rgba(212, 165, 55, .4); }
.rm-nav a.is-on { color: #A97B14; }
.rm-body .slide-menu .menu-header { background: var(--km-dark-grad) !important; border-bottom: 1px solid rgba(212, 165, 55, .45); }
.rm-logo-mark { background: var(--km-gold-grad); }
.rm-logo-text { color: #F3D98B; }
.rm-on-light .rm-logo-text { color: #17140E; }
.rm-legacy .title-underline { background: var(--km-gold-grad) !important; }

/* 대시보드 요약 5칸 + 원형 순환 그래프 (KingMax 확정본 10번) */
.km-sum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.km-sum-cell { background: #fff; border: 1px solid #EADFC6; border-radius: var(--rm-r-lg); padding: 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--rm-shadow); min-width: 0; color: inherit; }
.km-sum-cell.is-wide { grid-column: 1 / -1; }
.km-sum-ico { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; background: var(--km-dark-grad); color: #E8C35A; }
.km-sum-cell:nth-child(odd) .km-sum-ico { background: var(--km-gold-grad); color: #17140E; }
.km-sum-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.km-sum-label { font-size: 12px; font-weight: 700; color: var(--rm-ink-2); }
.km-sum-amt { font-size: 18px; font-weight: 800; color: var(--rm-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.km-sum-amt small { font-size: 11px; font-weight: 700; color: var(--rm-gold-d); margin-left: 3px; }
.km-ring-card { display: flex; align-items: center; gap: 18px; }
.km-ring { position: relative; flex: 0 0 120px; width: 120px; height: 120px; }
.km-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.km-ring-bg { fill: none; stroke: #EFE7D4; stroke-width: 12; }
.km-ring-fg { fill: none; stroke: url(#kmRingGrad); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.km-ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.km-ring-txt b { font-size: 22px; font-weight: 800; color: var(--rm-ink); font-variant-numeric: tabular-nums; }
.km-ring-txt span { font-size: 11px; color: var(--rm-ink-2); font-weight: 700; }
.km-ring-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.km-ring-info .km-ri { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--rm-line); padding-bottom: 6px; }
.km-ring-info .km-ri:last-child { border-bottom: 0; padding-bottom: 0; }
.km-ring-info .km-ri b { font-variant-numeric: tabular-nums; color: var(--rm-ink); }
@media (min-width: 1024px) {
	.km-sum { grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 0; }
	.km-sum-cell.is-wide { grid-column: auto; }
	.km-sum-cell { flex-direction: column; align-items: flex-start; padding: 18px; min-height: 132px; }
	.km-sum-amt { font-size: 22px; }
	.km-ring { flex-basis: 150px; width: 150px; height: 150px; }
}

/* 인트로(첫 화면) */
.km-intro { min-height: 100vh; min-height: 100dvh; background: radial-gradient(120% 80% at 50% 0%, #3A3020 0%, #17140F 48%, #0A0907 100%); color: #F1E6C8; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.km-intro::before, .km-intro::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(226, 179, 60, .22); pointer-events: none; }
.km-intro::before { width: 560px; height: 560px; left: 50%; top: -180px; transform: translateX(-50%); }
.km-intro::after { width: 820px; height: 820px; left: 50%; top: -310px; transform: translateX(-50%); border-color: rgba(226, 179, 60, .1); }
.km-intro-top { display: flex; justify-content: flex-end; padding: calc(14px + env(safe-area-inset-top)) 16px 0; position: relative; z-index: 2; max-width: 1100px; width: 100%; margin: 0 auto; }
.km-intro-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 20px 32px; position: relative; z-index: 2; }
.km-intro-crown { width: 92px; height: auto; filter: drop-shadow(0 6px 24px rgba(226, 179, 60, .35)); }
.km-intro-logo { height: 48px; width: auto; margin: 18px auto 0; display: block; }
.km-intro-line { width: 160px; height: 1px; background: var(--km-gold-line); margin: 22px auto; }
.km-intro h1 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.35; background: var(--km-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; letter-spacing: -.01em; }
.km-intro p.km-intro-sub { margin: 12px auto 0; max-width: 460px; font-size: 15px; line-height: 1.6; color: rgba(241, 230, 200, .78); }
.km-intro-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px auto 0; max-width: 520px; width: 100%; }
.km-intro-feats div { border: 1px solid rgba(226, 179, 60, .3); border-radius: 14px; padding: 14px 6px; background: rgba(255, 255, 255, .03); font-size: 12px; font-weight: 700; color: #EBD9A6; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.km-intro-feats i { font-size: 20px; color: #E2B33C; }
.km-intro-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; margin: 30px auto 0; }
.km-intro-btns .rm-btn { height: 54px; font-size: 16px; border-radius: 14px; }
.km-intro-btns .rm-btn-ghost-w { border-color: rgba(226, 179, 60, .6); color: #F3D98B !important; }
.km-intro-foot { text-align: center; font-size: 12px; color: rgba(241, 230, 200, .45); padding: 0 16px calc(18px + env(safe-area-inset-bottom)); position: relative; z-index: 2; }
@media (min-width: 768px) {
	.km-intro h1 { font-size: 34px; }
	.km-intro-crown { width: 120px; }
	.km-intro-logo { height: 64px; }
	.km-intro-btns { flex-direction: row; max-width: 440px; }
	.km-intro-btns .rm-btn { flex: 1; }
}
