:root {
  --bg: #f4f6fa; --card: #fff; --ink: #1b2330; --muted: #6b7686; --line: #e2e7ef;
  --brand: #1f5eff; --brand-d: #1747c4; --up: #d6262f; --down: #1f5eff; --ok: #138a4d; --warn: #b86e00;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 40px; }

.top { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: #0f1a33; color: #fff; flex-wrap: wrap; }
.logo { color: #fff; display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.logo b { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; white-space: nowrap; }
.logo b i { font-style: normal; color: #d9b45f; margin: 0 2px; }
.logo span { font-size: 11px; font-weight: 600; color: #8fb0ff; letter-spacing: 0.6px; white-space: nowrap; }
.logo span em { font-style: normal; color: #d9b45f; }
.top nav { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.top nav a { color: #dfe6f5; }
.top nav a.admin { color: #ffcf5a; }
.top .who { color: #8fa0bd; font-size: 13px; }
button.link { background: none; border: 0; color: #dfe6f5; cursor: pointer; font: inherit; padding: 0; }

footer { max-width: 1180px; margin: 0 auto; padding: 16px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

.box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; }
.box.narrow { max-width: 440px; margin: 30px auto; }
h2 { margin: 0 0 12px; font-size: 20px; }
h3 { margin: 18px 0 8px; font-size: 16px; }
h4 { margin: 8px 0; font-size: 14px; }
.muted { color: var(--muted); }
.small, small { font-size: 12.5px; }
.ok-text { color: var(--ok); font-weight: 600; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; background: #eef3ff; border: 1px solid #cfdcff; }
.flash.ok { background: #eaf7ef; border-color: #bfe5cc; color: #0d6638; }
.flash.error { background: #fdecec; border-color: #f5c2c2; color: #a01b1b; }
.flash.warn { background: #fff6e5; border-color: #f3d79c; color: #7a4a00; }
.flash.real { background: #fdecec; border-color: #e88; color: #a01b1b; font-weight: 600; }
.flash.info { background: #f1f5fb; border-color: var(--line); color: #34425a; }

label { display: block; margin: 10px 0; font-size: 14px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
input, select { font: inherit; padding: 7px 9px; border: 1px solid #c9d2e0; border-radius: 7px; background: #fff; }
label > input, label > select { display: block; width: 100%; margin-top: 4px; }
label.inline > select, label.inline > input { display: inline-block; width: auto; margin: 0; }
label.check > input { width: auto; margin-top: 3px; }
form.inline { display: inline; }

.btn { display: inline-block; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 8px;
       padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--brand-d); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--brand); }
.btn.ghost:hover { background: #eef3ff; }
.btn.ghost.pressed { background: #e1e9ff; }
.btn.danger { background: #fff; color: #c22; border-color: #e5a3a3; }
.btn.danger:hover { background: #fdecec; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.tiny { padding: 2px 7px; font-size: 12px; font-weight: 600; background: #fff; }
.btn.tiny.up { color: var(--up); border-color: #f0b3b6; }
.btn.tiny.down { color: var(--down); border-color: #b3c6f5; }
.btn.wide { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bar.small { font-size: 13px; }
.bar.test { background: #fffbea; border: 1px dashed #e8d48a; border-radius: 8px; padding: 8px 10px; }
.bar .grow { flex: 1; min-width: 160px; }
.spacer { flex: 1; }
.state { font-weight: 700; }
.state.on { color: var(--ok); }
.state.off { color: var(--muted); }

.summary { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 6px 0 14px; }
.summary div { background: #f6f8fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.summary small { display: block; color: var(--muted); }
.summary b { font-size: 17px; }
@media (max-width: 800px) { .summary { grid-template-columns: repeat(2, 1fr); } }

.scroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { background: #f1f4f9; color: #3b4659; font-weight: 600; text-align: left; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.grid td.c { text-align: center; }
td.right { text-align: right; }
.nowrap { white-space: nowrap; }
tr.dim td { color: #9aa4b2; }
.up { color: var(--up); }
.down { color: var(--down); }

.sw { border: 1px solid #c9d2e0; background: #f3f5f9; color: var(--muted); border-radius: 20px; padding: 3px 12px; cursor: pointer; font: inherit; font-size: 13px; }
.sw { white-space: nowrap; }
table.stocks td:first-child { white-space: nowrap; }
table.stocks td.st { min-width: 200px; }
.sw.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

.tag { display: inline-block; font-size: 11.5px; border-radius: 10px; padding: 1px 8px; font-weight: 600; }
.tag.blue { background: #e7eeff; color: #1f4fd1; }
.tag.red { background: #fde6e6; color: #b31d1d; }
.tag.green { background: #e2f5ea; color: #0f7a43; }
.tag.gray { background: #eceff3; color: #5d6878; }

.logs { background: #0f1626; color: #d7e0f0; border-radius: 10px; padding: 10px 12px; font-family: Consolas, "D2Coding", monospace;
        font-size: 12.5px; max-height: 300px; overflow-y: auto; }
.logs div { padding: 1px 0; }
.logs span { color: #7c8aa5; }
.logs .w { color: #ffc46b; }
.logs .d { color: #9fb4d8; }

.hero { text-align: center; padding: 50px 10px 30px; }
.hero h1 { font-size: 40px; line-height: 1.3; margin: 0 0 14px; }
.hero em { font-style: normal; color: var(--brand); }
.hero p { color: #44506a; font-size: 17px; line-height: 1.6; }
.cta { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card h3 { margin-top: 0; color: var(--brand-d); }
.card p { color: #44506a; line-height: 1.6; font-size: 14px; }
.price { text-align: center; margin: 30px 0; }
.plan { display: inline-block; background: #fff; border: 2px solid var(--brand); border-radius: 14px; padding: 20px 30px; margin: 10px 0; text-align: left; }
.plan .amt { font-size: 30px; font-weight: 800; color: var(--brand-d); }
.plan .amt small { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan ul { padding-left: 18px; line-height: 1.8; }

.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form2 .full, .form2 button { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 700px) { .form2 { grid-template-columns: 1fr; } }

.rules .rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .rules .rgrid { grid-template-columns: 1fr; } }
.rules table.in input { width: 100%; max-width: 110px; padding: 5px 7px; text-align: right; }
.rules section.off { opacity: .4; }
.modes { display: flex; gap: 18px; flex-wrap: wrap; margin: 6px 0; }
.modes label { display: flex; gap: 6px; align-items: center; margin: 0; }
.modes input { width: auto; }
.preview { background: #f1f5fb; border-radius: 8px; padding: 10px 12px; margin: 14px 0 8px; }
.preview input { width: 60px; padding: 3px 6px; display: inline-block; }
.brokers { display: grid; gap: 4px; margin-bottom: 10px; }

/* 종목 분석 */
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.vcard h3 { margin: 0 0 6px; font-size: 15px; color: var(--brand-d); }
.vcard h3 small { color: var(--muted); font-weight: 400; }
.vcard .big { font-size: 24px; font-weight: 800; }
.gap { font-size: 12.5px; font-weight: 700; }
.changes { background: #fffbea; border: 1px solid #f0dc96; border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.changes ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag.big { font-size: 14px; padding: 4px 12px; }
a.btn.small { font-weight: 600; }

/* 종목 이름 찾기 */
.ac { position: relative; }
.ac input { width: 240px; }
.ac-list { position: absolute; top: 100%; left: 0; z-index: 20; width: 320px; max-height: 340px; overflow-y: auto;
           background: #fff; border: 1px solid #c9d2e0; border-radius: 8px; box-shadow: 0 6px 20px rgba(15, 26, 51, .15); margin-top: 3px; }
.ac-item { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; cursor: pointer; font-size: 14px; }
.ac-item span { color: var(--muted); font-size: 12.5px; }
.ac-item:hover, .ac-item.on { background: #eef3ff; }
.ac-msg { padding: 8px 12px; color: var(--muted); font-size: 13px; }
.tag.tiny { font-size: 10.5px; padding: 0 6px; font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 12px 0; }
.plan.vip { border-color: #d9b44a; background: #fffaf0; }
.tag.gold { background: #fff1c9; color: #8a6200; }
nav a.vip { color: #8a6200; font-weight: 700; }
.warn-text { color: #9a6700; }
.sig-buy { color: #0f7a43; } .sig-hold { color: #9a6700; } .sig-risk { color: #b31d1d; }
.chartbox { position: relative; width: 100%; }
.chartbox canvas { width: 100%; display: block; }
.tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid #d6dbe3; border-radius: 8px;
  padding: 6px 9px; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.08); white-space: nowrap; display: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; align-items: center; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }

/* ---------- 종목 분석 ---------- */
.legend i.ln { width: 14px; height: 2px; border-radius: 0; vertical-align: 3px; }
.rs-head h2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rs-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; position: sticky; top: 0; }
.rs-nav a { padding: 5px 10px; border-radius: 999px; background: #f1f3f7; font-size: 13px; text-decoration: none; color: inherit; }
.rs-nav a:hover { background: #e3e8f0; }
.small-b { font-size: 14px; }
.box h3 { margin: 0 0 10px; }
.box h4 { margin: 14px 0 6px; font-size: 14px; }
.box h5 { margin: 0 0 6px; font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .two, .three { grid-template-columns: 1fr; } }
.verdict { display: inline-flex; gap: 10px; align-items: baseline; padding: 8px 14px; border-radius: 10px; background: #f1f3f7; }
.verdict b { font-size: 20px; }
.verdict small { color: #6b7685; }
.verdict.good { background: #e8f6ee; } .verdict.good b { color: #127a42; }
.verdict.bad { background: #fdeceb; } .verdict.bad b { color: #b3261e; }
.verdict .stars { color: #1b2330; letter-spacing: 2px; }
ul.why { margin: 8px 0; padding-left: 18px; font-size: 14px; } ul.why li { margin: 3px 0; }
ul.quotes { margin: 4px 0; padding-left: 0; list-style: none; font-size: 13px; }
ul.quotes li { border-left: 3px solid #d7dde6; padding: 4px 8px; margin: 6px 0; background: #fafbfc; line-height: 1.5; }
table.trend td, table.trend th { white-space: nowrap; }
.chip { display: inline-block; padding: 2px 9px; border: 1px solid #d7dde6; border-radius: 999px; font-size: 13px; margin: 2px 3px 2px 0;
        text-decoration: none; color: inherit; background: #fff; }
.chip.grow { border: 2px solid #1b2330; font-weight: 600; }
.chip.tiny { font-size: 11px; padding: 0 6px; }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 4px; }
.sig-bg-buy { background: #1a9e56; } .sig-bg-hold { background: #e0a400; } .sig-bg-risk { background: #d43d3d; }
.theme-card { border: 1px solid #e3e8f0; border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.theme-card h4 { margin-top: 0; }
ul.cats { list-style: none; padding: 0; margin: 0; font-size: 13px; } ul.cats li { margin: 5px 0; line-height: 1.45; }
.catcol { border-top: 3px solid #d7dde6; padding-top: 8px; }
.catcol.growth { border-color: #1b2330; } .catcol.caution { border-color: #9aa4b2; border-top-style: dashed; }
ul.news { list-style: none; padding: 0; margin: 0; } ul.news li { padding: 6px 0; border-bottom: 1px solid #eef0f4; }
.loading p { margin: 6px 0; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid #c9d1dc; border-top-color: #1b2330; border-radius: 50%;
        animation: spin 0.8s linear infinite; vertical-align: -1px; margin-right: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 관심종목 바로가기 · 바이존 검색 ---------- */
.watchpick { margin: 10px 0 6px; padding: 10px 12px; border: 1px dashed #d7dde6; border-radius: 10px; }
.watchpick > div { margin-top: 6px; }
.chip.muted { color: #9aa4b2; }
.btn.vipbtn { background: #fff7e0; color: #7a5600; border: 1px solid #e0c56e; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 6px 0 10px; }
.filters label { font-size: 13px; }
table.bz td, table.bz th { white-space: nowrap; }

/* ---------- 투자신호 12개 체크 ---------- */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; margin: 8px 0 4px; }
.ck { font-size: 12.5px; padding: 4px 8px; border-radius: 6px; background: #f1f3f7; display: flex; gap: 6px; align-items: baseline; }
.ck i { margin-left: auto; font-style: normal; font-weight: 700; }
.ck1 { background: #e8f6ee; } .ck1 i { color: #127a42; }
.ck0 { background: #fdeceb; } .ck0 i { color: #b3261e; }
td.chk0 { color: #b3261e; } td.chk1 { color: #127a42; }

/* ---------- 관심종목 대량 넣기 ---------- */
.bulk { margin: 8px 0 12px; padding: 8px 12px; border: 1px dashed #d7dde6; border-radius: 10px; }
.bulk summary { cursor: pointer; }
.bulk textarea { width: 100%; box-sizing: border-box; margin: 8px 0 6px; font: inherit; padding: 8px; border: 1px solid #d7dde6; border-radius: 8px; }
.bulkres { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #f6f8fb; }
.bulkres > span { margin-left: 8px; font-size: 13px; }
.bulkres ul { margin: 6px 0 0; padding-left: 18px; }
/* 투자신호 조건 (관리자) */
.params td { vertical-align: middle; }
.params tr.off td:nth-child(2) { color: #9aa4b2; text-decoration: line-through; }
.params .pnum { padding: 3px 6px; border: 1px solid #c9d1dc; border-radius: 6px; font: inherit; text-align: right; }
.grid.narrow { width: auto; min-width: 360px; }
.zoombar { margin-top: 6px; } .zoombar input[type=date] { padding: 2px 4px; border: 1px solid #c9d1dc; border-radius: 6px; font: inherit; }
/* 넓은 화면 쪽 (바이존 검색 등 PC 용 큰 표) */
main.wide { max-width: none; padding: 14px 18px 30px; }
.bzbox { padding: 14px 16px; }
.bzbox h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.bzbox h2 small { font-size: 12px; font-weight: 400; }
.bzbar { gap: 10px; margin-bottom: 8px; align-items: center; }
.bzbar select, .bzbar input[type=date] { padding: 3px 6px; }
.bzscroll { overflow: auto; max-height: calc(100vh - 210px); border: 1px solid var(--line); border-radius: 8px; }
table.bz { font-size: 12.5px; width: 100%; border-collapse: separate; border-spacing: 0; }
table.bz th, table.bz td { white-space: nowrap; padding: 4px 7px; }
table.bz thead th { position: sticky; z-index: 2; background: #eef2f8; border-bottom: 1px solid #d5dce7; }
table.bz thead tr.grp th { top: 0; height: 24px; box-sizing: border-box; text-align: center; color: #56627a; font-size: 12px; }
table.bz thead tr:nth-child(2) th { top: 24px; line-height: 1.2; vertical-align: bottom; }
table.bz th.g { border-left: 2px solid #d5dce7; }
table.bz .g1 { border-left: 2px solid #e3e8f0; }
table.bz th.num { text-align: right; }
table.bz th.c, table.bz td.c { text-align: center; }
table.bz .sticky-col { position: sticky; left: 0; z-index: 1; background: #fff; border-right: 2px solid #e3e8f0; }
table.bz thead .sticky-col { z-index: 3; background: #eef2f8; text-align: left; vertical-align: middle; }
table.bz tbody tr:hover td { background: #f5f8fd; }
table.bz tbody tr:hover td.sticky-col { background: #f5f8fd; }
table.bz th.sortable a { color: inherit; text-decoration: none; display: block; }
table.bz th.sortable a:hover { color: #1f5fd6; }
table.bz th.sortable i { font-style: normal; font-size: 10px; color: #a3adbd; margin-left: 2px; }
table.bz th.sortable.on { background: #dfe8f7; color: #1f5fd6; }
table.bz th.sortable.on i { color: #1f5fd6; }
table.bz a.code { font-size: 11px; color: #7a8494; margin-left: 3px; }
table.bz small.mk { font-size: 10px; color: #8a94a3; border: 1px solid #d7dde6; border-radius: 4px; padding: 0 3px; margin-left: 2px; }
.bzbar label { display: inline-flex; flex-direction: row; align-items: center; gap: 5px; margin: 0; white-space: nowrap; font-size: 13px; }
.bzbar label input[type=checkbox] { margin: 0; }
/* 바이존 표: 창 너비에 맞춰 글자가 줄고, 사용자가 작게/보통/크게 고름 */
table.bz.sz-m { font-size: clamp(11px, 0.8vw, 13px); }
table.bz.sz-s { font-size: clamp(10px, 0.68vw, 12px); }
table.bz.sz-s th, table.bz.sz-s td { padding: 3px 4px; }
table.bz.sz-l { font-size: 14px; }
table.bz.sz-l th, table.bz.sz-l td { padding: 6px 9px; }
@media (max-width: 1500px) { table.bz.sz-m th, table.bz.sz-m td { padding: 4px 5px; } }
.tsize { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tsize .btn { margin-left: 2px; padding: 2px 7px; }
@media (max-width: 1400px) { table.bz.sz-m th, table.bz.sz-m td { padding: 4px 3px; } }

/* ---------- 관심종목 표 (종목 분석 · 종목 DB 첫 화면): 10줄 보이고 나머지는 스크롤 ---------- */
.watchpick .wbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 6px; }
.watchpick .wbar input { padding: 4px 8px; font-size: 13px; width: 180px; }
.wscroll { overflow: auto; max-height: 392px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table.wtable { margin: 0; font-size: 12.5px; }
table.wtable thead th { top: 0; line-height: 1.2; vertical-align: bottom; }
table.wtable tbody tr { height: 33px; }
table.wtable tbody tr[data-href] { cursor: pointer; }
table.wtable tbody tr[data-href]:hover td { background: #f3f7ff; }
table.wtable tr.off td { background: #fafbfc; }
table.wtable th.sortable { cursor: pointer; user-select: none; }
table.wtable th.sortable i { font-style: normal; font-size: 10px; color: #9aa4b2; margin-left: 2px; }
table.wtable th.sortable.on i { color: #1b2330; }
table.wtable td.nowrap { white-space: nowrap; }

/* ---------- 메인(홈) — Buysehl × Autosehl ---------- */
main.home { max-width: 1180px; padding-top: 18px; }
.btn.big { padding: 13px 26px; font-size: 16px; border-radius: 12px; font-weight: 700; }
.btn.light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn.light:hover { background: rgba(255,255,255,.2); }
.h-eyebrow { letter-spacing: 3px; font-size: 13px; font-weight: 700; color: #8fb0ff; margin: 0 0 14px; }
.h-eyebrow span { color: #ffcf5a; margin: 0 6px; }
.h-eyebrow.dark { color: var(--brand); letter-spacing: 1px; }

.h-hero { text-align: center; color: #fff; border-radius: 20px; padding: 70px 24px 60px; margin-bottom: 22px;
  background: radial-gradient(1100px 380px at 50% -10%, #2b4fb8 0%, rgba(43,79,184,0) 70%), linear-gradient(180deg, #0f1a33 0%, #14234a 100%); }
.h-hero h1 { font-size: 48px; line-height: 1.28; margin: 0 0 20px; letter-spacing: -1px; }
.h-hero h1 em { font-style: normal; color: #ffcf5a; }
.h-lead { font-size: 19px; line-height: 1.75; color: #d5def0; margin: 0; }
.h-lead b { color: #fff; }

.h-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.h-step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 30px 26px; position: relative; overflow: hidden; }
.h-step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.h-step.buy::before { background: #1a9e56; } .h-step.sell::before { background: var(--brand); }
.h-num { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 1px; }
.h-step h2 { font-size: 27px; line-height: 1.4; margin: 10px 0 14px; letter-spacing: -.5px; }
.h-step h2 span { font-weight: 800; }
.h-step.buy h2 span, .h-step.buy h2 b { color: #0f7a43; }
.h-step.sell h2 span, .h-step.sell h2 b { color: var(--brand-d); }
.h-step p { color: #44506a; line-height: 1.75; margin: 0 0 18px; }
.h-days { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.h-days .z { font-style: normal; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 9px; }
.z.hold { background: #fff4d6; color: #9a6700; } .z.buy { background: #e3f6ec; color: #0f7a43; }
.z.buy.on { background: #1a9e56; color: #fff; box-shadow: 0 0 0 4px #c9eed9; }
.z.up { background: #fde9ea; color: var(--up); } .z.sold { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px #d6e1ff; }
.h-days span { font-size: 13px; font-weight: 700; color: #0f7a43; }

.h-grow { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: 18px; padding: 36px 36px 30px; margin-bottom: 22px; }
.h-grow h2 { font-size: 32px; line-height: 1.35; margin: 0 0 14px; letter-spacing: -.5px; }
.h-grow h2 em { font-style: normal; color: var(--up); }
.h-grow p { color: #44506a; line-height: 1.8; margin: 0 0 18px; }
.h-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; background: #f4f7fd; border-radius: 12px; padding: 14px 18px; }
.h-big span { font-size: 20px; font-weight: 700; color: #56627a; }
.h-big i { font-style: normal; color: var(--muted); }
.h-big b { font-size: 30px; color: var(--brand-d); }
.h-chart { margin: 0; }
.h-chart .bars { display: flex; align-items: flex-end; gap: 14px; height: 240px; padding: 0 6px; border-bottom: 1px solid #c9d2e0; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar-col .bar { width: 100%; max-width: 56px; background: #9db8ff; border-radius: 4px 4px 0 0; }
.bar-col .bar.last { background: var(--brand); }
.bar-col:hover .bar { filter: brightness(.92); }
.bar-col .val { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.bar-col .lbl { position: absolute; bottom: -24px; font-size: 12px; color: var(--muted); }
.h-chart figcaption { margin-top: 32px; font-size: 12px; color: var(--muted); text-align: center; }

.h-promise { text-align: center; border-radius: 20px; padding: 46px 20px 42px; margin-bottom: 34px; color: #fff;
  background: linear-gradient(120deg, #0f7a43 0%, #14234a 55%, #1747c4 100%); }
.h-promise p { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.5; letter-spacing: -.5px; }
.h-promise span { color: #ffcf5a; margin-right: 8px; }
.h-promise .h-l1 b { color: #9ff0c2; } .h-promise .h-l2 b { color: #b9ccff; }
.h-promise .cta { margin-top: 26px; }
.h-promise .btn.big { background: #fff; color: #14234a; }
.h-sec { text-align: center; font-size: 24px; margin: 10px 0 4px; }
.h-note { font-size: 12px; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--line); padding-top: 12px; }

@media (max-width: 860px) {
  .h-hero { padding: 46px 16px 40px; } .h-hero h1 { font-size: 32px; } .h-lead { font-size: 16px; }
  .h-two, .h-grow { grid-template-columns: 1fr; } .h-grow { padding: 26px 20px; } .h-grow h2 { font-size: 25px; }
  .h-step { padding: 24px 22px 22px; } .h-step h2 { font-size: 22px; }
  .h-promise p { font-size: 23px; } .h-lead br, .h-step p br, .h-grow p br { display: none; }
}
.h-promise .btn.big:hover { background: #eef3ff; color: #14234a; }
main.home h1, main.home h2, main.home p { word-break: keep-all; }

/* ---------- 관리자: 월 구독료 ---------- */
.pricebar { gap: 16px; flex-wrap: wrap; align-items: center; }
.pricebar input { width: 130px; text-align: right; font-weight: 700; font-size: 15px; padding: 6px 8px; }
.pricebar label { display: inline-flex; align-items: center; gap: 6px; flex-direction: row; font-weight: 600; }

/* ---------- 로그인 OTP ---------- */
.top a.who { color: #8fa0bd; font-size: 13px; }
.top a.who:hover { color: #fff; text-decoration: none; }
.otpcode { font-size: 28px; letter-spacing: 8px; text-align: center; font-weight: 700; width: 100%; padding: 10px; margin: 6px 0 10px;
  font-family: Consolas, "D2Coding", monospace; }
.otpbox details { margin: 12px 0; } .otpbox details p { line-height: 1.6; }
.otpgrid { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: start; margin: 16px 0; }
.otpsteps { margin: 0; padding-left: 22px; line-height: 1.6; }
.otpsteps li { margin-bottom: 18px; } .otpsteps li > div { margin-top: 4px; }
.otpkey { display: inline-block; margin-top: 6px; padding: 6px 12px; background: #f4f7fd; border: 1px dashed #c9d2e0; border-radius: 8px;
  font-family: Consolas, "D2Coding", monospace; font-size: 15px; letter-spacing: 1px; user-select: all; }
.otpform { display: flex; gap: 8px; align-items: center; margin-top: 8px; max-width: 360px; }
.otpform .otpcode { margin: 0; font-size: 22px; letter-spacing: 6px; }
.otpqr { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.otpqr svg { display: block; margin: 0 auto 6px; max-width: 100%; height: auto; }
ol.bcodes { columns: 2; font-family: Consolas, "D2Coding", monospace; font-size: 18px; font-weight: 700; line-height: 1.9;
  background: #f4f7fd; border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 12px 40px; }
@media (max-width: 760px) { .otpgrid { grid-template-columns: 1fr; } .otpqr { order: -1; } }
@media print { header.top, footer, .bar { display: none; } }
.otpform .btn { white-space: nowrap; flex: none; }
.otpbox button.link { color: var(--brand); margin-top: 6px; }
.otpqr .otpapp { display: none; }
@media (max-width: 760px), (pointer: coarse) { .otpqr .otpapp { display: block; margin: 8px auto 0; max-width: 260px; } }

/* ---------- 가입 승인제 ---------- */
.top .badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; text-align: center; }
.approvebox { border-color: #f0d9a0; }
.pendbox h2 { margin-top: 0; }
ol.pendsteps { padding-left: 20px; line-height: 1.9; }
ol.pendsteps li.done { color: #0f7a43; } ol.pendsteps li.done::after { content: " ✔"; }
ol.pendsteps li.now { font-weight: 700; } ol.pendsteps small { display: block; font-weight: 400; color: var(--muted); line-height: 1.4; }

/* ---------- 메인: 두배로(DOUBLER) — 전업투자자용 프리미엄 ---------- */
body.lux { background: #0a0d14; color: #e8ecf4; }
body.lux footer { color: #6f7a90; border-color: #1c2333; }
body.lux .flash { color: #1b2330; }
main.lux { max-width: 1180px; padding-top: 10px; }
.lux h1, .lux h2, .lux h3 { color: #f4f1ea; letter-spacing: -.5px; word-break: keep-all; }
.lux p { word-break: keep-all; }
.lux .gold { color: #d9b76a; } .lux .g { color: #5fd69a; } .lux .b { color: #8fb0ff; } .lux .red { color: #ff7b7b; }
.lx-eyebrow { font-size: 12.5px; letter-spacing: 4px; color: #d9b76a; font-weight: 700; margin: 0 0 16px; }
.lx-eyebrow.dim { color: #9a8a62; letter-spacing: 2px; }
.btn.gold { background: linear-gradient(180deg, #e3c27a, #c49a45); color: #15110a; border: 0; }
.btn.gold:hover { background: linear-gradient(180deg, #ecd08f, #cfa651); color: #15110a; }
.btn.line { background: transparent; color: #e8ecf4; border: 1px solid #3a4459; }
.btn.line:hover { background: #151b28; }

.lx-hero { text-align: center; padding: 84px 20px 70px; border-radius: 22px; margin-bottom: 26px; border: 1px solid #1f2738;
  background: radial-gradient(900px 340px at 50% 0%, rgba(217,183,106,.16), rgba(217,183,106,0) 70%), linear-gradient(180deg, #111726, #0b0f19); }
.lx-hero h1 { font-size: 64px; margin: 0 0 18px; font-weight: 900; }
.lx-brand { background: linear-gradient(180deg, #f3dc9f, #c49a45); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-hero h1 small { display: block; font-size: 15px; letter-spacing: 9px; color: #8c96ab; font-weight: 600; margin-top: 6px; }
.lx-lead { font-size: 19px; line-height: 1.8; color: #c3cbdb; margin: 0 auto 30px; max-width: 760px; }
.lx-lead b { color: #fff; }
.lx-badges { list-style: none; display: flex; justify-content: center; gap: 14px; padding: 0; margin: 0 0 30px; flex-wrap: wrap; }
.lx-badges li { border: 1px solid #2a3346; border-radius: 12px; padding: 12px 22px; background: rgba(255,255,255,.02); min-width: 150px; }
.lx-badges b { display: block; font-size: 19px; color: #f3dc9f; } .lx-badges span { font-size: 12.5px; color: #8c96ab; }

.lx-case, .lx-keep, .lx-grow, .lx-join { background: #10151f; border: 1px solid #1f2738; border-radius: 20px; padding: 44px 44px 38px; margin-bottom: 26px; }
.lx-case h2, .lx-keep h2, .lx-grow h2, .lx-join h2 { font-size: 36px; line-height: 1.3; margin: 0 0 24px; }
.lx-periods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.lx-p { border: 1px solid #263048; border-radius: 16px; padding: 22px 22px 18px; background: linear-gradient(180deg, #141b29, #0f141e); }
.lx-p.zero { opacity: .8; }
.lx-p-h { color: #8c96ab; font-size: 14px; font-weight: 700; }
.lx-p-n { font-size: 54px; font-weight: 900; color: #f4f1ea; line-height: 1.1; margin: 6px 0 2px; }
.lx-p-n small { font-size: 20px; color: #8c96ab; margin-left: 4px; }
.lx-p.zero .lx-p-n { color: #6f7a90; }
.lx-p-l { font-size: 12.5px; color: #8c96ab; }
.lx-p-r { margin-top: 14px; padding-top: 12px; border-top: 1px solid #263048; font-size: 15px; color: #c3cbdb; }
.lx-p-r b { color: #ff8a8a; font-size: 22px; } .lx-p.zero .lx-p-r b { color: #8c96ab; font-size: 15px; }
.lx-story p { font-size: 17px; line-height: 1.85; color: #c3cbdb; margin: 0 0 12px; }
.lx-story b { color: #fff; }
.lx-big { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 26px 0 8px; padding: 22px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(217,183,106,.06), rgba(217,183,106,.14)); border: 1px solid #3a3222; flex-wrap: wrap; }
.lx-big > div { text-align: center; } .lx-big span { font-size: 26px; font-weight: 800; color: #c3cbdb; }
.lx-big b { font-size: 44px; font-weight: 900; color: #f3dc9f; }
.lx-big i { display: block; font-style: normal; font-size: 12.5px; color: #8c96ab; margin-top: 2px; }
.lx-big .arrow { font-size: 34px; color: #d9b76a; }
.lx-big.small { justify-content: flex-start; margin-top: 18px; } .lx-big.small b { font-size: 34px; } .lx-big.small span { font-size: 22px; }
.lx-quote { text-align: center; font-size: 22px; margin: 26px 0 0; color: #e8ecf4; } .lx-quote b { color: #f3dc9f; }

.lx-keep { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.lx-keep p { font-size: 16.5px; line-height: 1.85; color: #c3cbdb; } .lx-keep b { color: #fff; }
.lx-line { display: flex; align-items: flex-end; justify-content: center; gap: 30px; height: 260px; border-bottom: 1px solid #2a3346; }
.lx-bar { width: 96px; border-radius: 6px 6px 0 0; position: relative; }
.lx-bar.peak { background: linear-gradient(180deg, #f3dc9f, #9c7a35); } .lx-bar.now { background: linear-gradient(180deg, #ff8a8a, #7a2a2a); }
.lx-bar span { position: absolute; top: -48px; left: 50%; transform: translateX(-50%); text-align: center; font-size: 12px; color: #8c96ab; white-space: nowrap; }
.lx-bar span b { font-size: 16px; color: #f4f1ea; }

.lx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.lx-step { border: 1px solid #1f2738; border-radius: 18px; padding: 30px; background: #10151f; }
.lx-num { font-size: 12.5px; letter-spacing: 3px; color: #d9b76a; font-weight: 700; }
.lx-step h3 { font-size: 23px; line-height: 1.45; margin: 10px 0 10px; } .lx-step h3 b { color: #fff; }
.lx-step p { color: #a9b3c6; line-height: 1.75; margin: 0; }

.lx-grow { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.lx-grow p { color: #c3cbdb; line-height: 1.8; }
.lx-bars { margin: 0; display: flex; align-items: flex-end; gap: 14px; height: 250px; border-bottom: 1px solid #2a3346; position: relative; padding-bottom: 0; }
.lx-bars .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.lx-bars .bar { width: 100%; max-width: 54px; background: #3a3222; border-radius: 4px 4px 0 0; }
.lx-bars .bar.last { background: linear-gradient(180deg, #f3dc9f, #c49a45); }
.lx-bars .val { font-size: 13px; font-weight: 700; color: #e8ecf4; margin-bottom: 6px; }
.lx-bars .lbl { position: absolute; bottom: -24px; font-size: 12px; color: #8c96ab; }
.lx-bars figcaption { position: absolute; bottom: -54px; left: 0; right: 0; text-align: center; font-size: 12px; color: #6f7a90; }
.lx-grow { padding-bottom: 66px; }

.lx-join { text-align: center; }
.lx-sub { color: #c3cbdb; font-size: 17px; margin: -10px 0 26px; } .lx-sub b { color: #f3dc9f; }
ol.lx-flow { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0; margin: 0 0 26px; }
ol.lx-flow li { counter-increment: s; border: 1px solid #263048; border-radius: 14px; padding: 20px 14px; background: #0f141e; }
ol.lx-flow li::before { content: "0" counter(s); display: block; color: #d9b76a; font-weight: 800; letter-spacing: 2px; font-size: 13px; margin-bottom: 6px; }
ol.lx-flow b { display: block; font-size: 17px; color: #f4f1ea; } ol.lx-flow span { font-size: 13px; color: #8c96ab; }

.lx-promise { text-align: center; padding: 50px 20px; border-radius: 20px; margin-bottom: 26px; border: 1px solid #3a3222;
  background: radial-gradient(700px 260px at 50% 100%, rgba(217,183,106,.14), rgba(217,183,106,0) 70%), #0f131c; }
.lx-promise p { margin: 0; font-size: 34px; font-weight: 900; line-height: 1.55; color: #f4f1ea; }
.lx-promise span { color: #d9b76a; margin-right: 8px; }
.lx-note { font-size: 12px; color: #6f7a90; line-height: 1.75; border-top: 1px solid #1c2333; padding-top: 14px; }

@media (max-width: 860px) {
  .lx-hero { padding: 56px 16px 46px; } .lx-hero h1 { font-size: 44px; } .lx-lead { font-size: 16px; } .lx-lead br { display: none; }
  .lx-case, .lx-keep, .lx-grow, .lx-join { padding: 28px 20px; } .lx-case h2, .lx-keep h2, .lx-grow h2, .lx-join h2 { font-size: 26px; }
  .lx-periods { grid-template-columns: 1fr; } .lx-p-n { font-size: 42px; }
  .lx-keep, .lx-grow, .lx-two { grid-template-columns: 1fr; } .lx-grow { padding-bottom: 70px; }
  ol.lx-flow { grid-template-columns: 1fr 1fr; } .lx-big b { font-size: 34px; } .lx-promise p { font-size: 22px; }
}

/* 메인: 삼성전자 5년 증거 (그래프 + 엑셀 같은 표) */
.lx-proof { background: #10151f; border: 1px solid #1f2738; border-radius: 20px; padding: 44px 44px 30px; margin-bottom: 26px; }
.lx-proof h2 { font-size: 36px; line-height: 1.3; margin: 0 0 10px; }
.lx-proof .lx-sub { color: #c3cbdb; font-size: 16px; margin: 0 0 18px; }
.buyc { color: #a98bff; }
.lx-clause { border: 1px solid #c49a45; background: linear-gradient(180deg, rgba(217,183,106,.14), rgba(217,183,106,.05));
  border-radius: 14px; padding: 16px 20px; margin: 0 0 22px; }
.lx-clause b { display: block; color: #f3dc9f; font-size: 18px; line-height: 1.5; word-break: keep-all; }
.lx-clause span { display: block; color: #b5bdcc; font-size: 13.5px; margin-top: 4px; word-break: keep-all; }
.lx-paper { background: #fff; color: #1b2330; border-radius: 14px; padding: 18px 20px 12px; margin-bottom: 18px; }
.lx-paper .muted { color: #6b7685; }
.lx-paper-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lx-paper-h b { font-size: 16px; } .lx-paper-h small { color: #6b7685; }
.lx-paper-h .spacer { flex: 1; }
.lx-paper .legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #3b4659; margin-bottom: 6px; }
.lx-paper .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.lx-paper .legend .buyc, .lx-sheet .buyc { color: #7c3aed; }
.lx-range .btn.on { background: #1b2330; color: #fff; border-color: #1b2330; }
.lx-sheet { font-size: 13.5px; }
.lx-sheet th { background: #eef2f7; border: 1px solid #d6dbe3; }
.lx-sheet td { border: 1px solid #e3e7ee; }
.lx-sheet tr[data-d] { cursor: pointer; } .lx-sheet tr[data-d]:hover td { background: #f6f8fc; }
.lx-sheet tr.best td { background: #fff7dc; } .lx-sheet tr.sel td { background: #efe9ff; }
.lx-sheet .up { color: #d43d3d; } .lx-sheet .down { color: #2f62d0; }
.lx-sheet .yr { font-size: 12px; padding: 2px 7px; border-radius: 10px; background: #eef0f4; color: #4a5568; white-space: nowrap; }
.lx-sheet .yr.y3 { background: #fff1c9; color: #8a6200; } .lx-sheet .yr.y1 { background: #e2f6ea; color: #137a42; }
.lx-clause-end { color: #d9b76a; font-size: 14px; text-align: center; margin: 6px 0 0; word-break: keep-all; }
@media (max-width: 700px) {
  .lx-proof { padding: 28px 14px 22px; } .lx-proof h2 { font-size: 25px; }
  .lx-paper { padding: 14px 10px 8px; } .lx-clause b { font-size: 16px; }
}

/* 가입: 휴대폰 본인인증 */
ol.joinsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; padding: 0; margin: 4px 0 16px; }
ol.joinsteps li { font-size: 12.5px; color: #8a94a6; background: #f3f5f9; border-radius: 8px; padding: 7px 6px; text-align: center; word-break: keep-all; line-height: 1.35; }
@media (max-width: 520px) { ol.joinsteps { grid-template-columns: 1fr 1fr; } }
ol.joinsteps li b { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%;
  background: #d6dbe3; color: #fff; font-size: 12px; margin: 0 auto 3px; display: block; }
ol.joinsteps li.on { color: #1b2330; background: #e8efff; font-weight: 700; } ol.joinsteps li.on b { background: #2f62d0; }
ol.joinsteps li.done { color: #137a42; background: #e2f6ea; } ol.joinsteps li.done b { background: #1a9e56; }
.ivdone { border: 1px solid #b8e3c9; background: #f0fbf4; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; line-height: 1.7; }
.ivdone > span { display: block; color: #137a42; font-weight: 700; font-size: 13px; }
.ivdone button.link { color: #6b7685; font-size: 12.5px; margin-left: 6px; }
.smsagain { margin: 10px 0 0; text-align: center; }
.smsagain button.link { color: #2f62d0; font-size: 13px; text-decoration: underline; }
.testidv { border: 2px dashed #e0a400; background: #fffaf0; border-radius: 12px; padding: 12px 16px; margin: 10px 0 16px; }
.testidv > b { color: #8a6200; }
#ivmsg { color: #a01b1b; min-height: 1em; }

/* 바닥글: 사업자 정보 */
footer .fnote { margin: 0 0 10px; }
footer .biz { border-top: 1px solid var(--line); padding-top: 10px; line-height: 1.8; }
footer .biz p { margin: 0; }
footer .biz span { white-space: nowrap; display: inline-block; margin-right: 18px; }
footer .biz a { color: inherit; }
footer .biz .copy { margin-top: 4px; }
body.lux footer .biz { border-color: #1c2333; }
@media (max-width: 700px) { footer .biz span { white-space: normal; } }

/* 바이존 검색: 일반 회원 안내 */
.bzfree { background: #fff8e6; border: 1px solid #f0d58a; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px; }
.bzfree span { display: block; color: #6b7685; font-size: 13px; margin-top: 2px; }
.legend .entry-lg b { color: #ff1f1f; font-size: 15px; } .legend .entry-lg { font-weight: 700; }
.entry-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 10px; background: #ffe9e9; color: #e01b1b; font-size: 12px; font-weight: 700; }
.entry-dot { color: #ff1f1f; }

/* 평균단가 확인 (네이버 투자 정보 링크) */
a.nvavg { font-size: .85rem; font-weight: 600; color: #03a94d; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
a.nvavg::after { content: " ↗"; font-size: .8em; }
h2 a.nvavg { font-size: .8rem; margin-left: .4rem; }
