/* ===== Demo exchange — member theme ===== */
:root {
  --bg: #0b0e17;
  --bg2: #111527;
  --card: #161b2e;
  --card2: #1b2138;
  --line: #262c46;
  --text: #e8ecf6;
  --dim: #8b93ad;
  --accent: #4f7cff;
  --accent2: #7a5cff;
  --up: #16c784;
  --down: #ea3943;
  --gold: #f0b90b;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, 'Pretendard', 'Segoe UI', 'Malgun Gothic', sans-serif;
  font-size: 15px; line-height: 1.55;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font: inherit; color: inherit; }
img { max-width: 100%; }

/* DEMO banner + nav stick together as one unit */
.topbar { position: sticky; top: 0; z-index: 200; }
.demo-banner {
  background: repeating-linear-gradient(45deg, #f0b90b, #f0b90b 14px, #d9a808 14px, #d9a808 28px);
  color: #1a1a1a; font-weight: 700; text-align: center;
  padding: 7px 12px; font-size: 13px; letter-spacing: .2px;
}
.demo-chip {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  background: var(--gold); color: #111; border-radius: 6px;
  font-size: 11px; font-weight: 800; vertical-align: 2px;
}

/* ===== nav ===== */
.gnb {
  background: rgba(11,14,23,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.gnb-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 28px; height: 60px;
}
.logo { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.menu { display: flex; gap: 4px; flex: 1; }
.menu a { padding: 8px 13px; border-radius: 8px; color: var(--dim); font-weight: 600; }
.menu a:hover { color: var(--text); background: var(--card2); }
.gnb-right { display: flex; align-items: center; gap: 10px; }
.balance { color: var(--gold); font-weight: 700; }
.uname { color: var(--dim); }

/* ===== buttons / forms ===== */
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 9px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; transition: .15s; font-size: 14px;
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { border-color: var(--line); color: var(--dim); }
.btn.ghost:hover { color: var(--text); border-color: var(--dim); }
.btn.long { background: var(--up); color: #06130d; }
.btn.short { background: var(--down); color: #fff; }
.btn.big { padding: 13px 26px; font-size: 16px; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--dim); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 9px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }

/* ===== layout ===== */
.page { max-width: 1200px; margin: 0 auto; padding: 34px 20px 60px; min-height: 60vh; flex: 1; width: 100%; }
.page.fluid { max-width: none; padding: 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section .sec-title { margin: 0 0 34px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 18px; }
.dim { color: var(--dim); }
.flash { max-width: 1200px; margin: 14px auto 0; padding: 12px 18px; border-radius: 10px; font-weight: 600; }
.flash.ok { background: #0d3325; color: var(--up); border: 1px solid #14553c; }
.flash.err { background: #3d1420; color: var(--down); border: 1px solid #5c1e2c; }

/* ===== hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 90px; text-align: center;
  background:
    radial-gradient(800px 340px at 50% -60px, rgba(79,124,255,.25), transparent 70%),
    radial-gradient(600px 300px at 82% 15%, rgba(122,92,255,.16), transparent 70%),
    radial-gradient(500px 260px at 15% 20%, rgba(22,199,132,.08), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 30px;
  background: rgba(240,185,11,.12); border: 1px solid rgba(240,185,11,.4);
  color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: .5px;
  margin-bottom: 26px;
}
.hero h1 { font-size: 56px; font-weight: 800; letter-spacing: -1.8px; line-height: 1.12; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--dim); margin: 20px 0 34px; font-size: 17px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; z-index: 0; opacity: .8; }

/* stats strip inside ticker card */
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin: 8px -24px -24px; }
.stats-strip > div { text-align: center; padding: 22px 10px 6px; }
.stats-strip > div + div { border-left: 1px solid var(--line); }
.stats-strip b { display: block; font-size: 26px; color: var(--gold); font-variant-numeric: tabular-nums; }
.stats-strip span { color: var(--dim); font-size: 12.5px; }

/* CTA section */
.cta {
  text-align: center; padding: 80px 0 90px;
  background:
    radial-gradient(600px 280px at 50% 120%, rgba(79,124,255,.22), transparent 70%);
  border-top: 1px solid var(--line);
}
.cta h2 { font-size: 32px; font-weight: 800; letter-spacing: -.8px; line-height: 1.3; margin-bottom: 28px; }

/* ===== ticker table ===== */
.ticker { width: 100%; border-collapse: collapse; }
.ticker th { text-align: right; padding: 12px 14px; color: var(--dim); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.ticker th:first-child, .ticker td:first-child { text-align: left; }
.ticker td { padding: 15px 14px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ticker tr:last-child td { border-bottom: 0; }
.coin { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.coin .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.ic.btc { background: #f7931a; } .ic.eth { background: #627eea; }
.ic.xrp { background: #25a4e8; } .ic.xau { background: #d4af37; }
.up { color: var(--up); } .down { color: var(--down); }

/* ===== features ===== */
.sec-title { text-align: center; }
.sec-title h2 { font-size: 30px; font-weight: 800; letter-spacing: -.8px; }
.sec-title p { color: var(--dim); margin-top: 10px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { padding: 28px 22px; }
.feat .fic {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(79,124,255,.18), rgba(122,92,255,.18));
  border: 1px solid rgba(79,124,255,.3); color: var(--accent);
}
.feat .fic svg { width: 24px; height: 24px; }
.feat h3 { font-size: 16px; margin-bottom: 8px; }
.feat p { color: var(--dim); font-size: 13.5px; }
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.review { padding: 24px 22px; color: var(--dim); font-size: 13.5px; }
.review .q { display: block; font-size: 34px; line-height: 1; color: var(--accent); margin-bottom: 12px; font-family: Georgia, serif; }
.review b { display: block; color: var(--text); margin-top: 14px; font-size: 13px; }

/* ===== auth ===== */
.auth-wrap { max-width: 420px; margin: 50px auto; }
.auth-wrap h1 { text-align: center; margin-bottom: 24px; font-size: 26px; }
.auth-wrap .foot { text-align: center; margin-top: 16px; color: var(--dim); font-size: 14px; }
.join-wrap { max-width: 520px; margin: 40px auto; }
.join-wrap h1 { margin-bottom: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ===== trade ===== */
.trade-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.sym-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.sym-tabs a { padding: 9px 16px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); font-weight: 700; color: var(--dim); }
.sym-tabs a.on { color: var(--text); border-color: var(--accent); background: var(--card2); }
.sym-tabs small { display: block; font-weight: 400; font-size: 11px; color: var(--dim); }
.chart-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.chart-head .px { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
#chart { width: 100%; height: 320px; display: block; }
.order-panel .amt-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 16px; }
.order-panel .amt-btns button { padding: 9px 4px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.order-panel .amt-btns button:hover { border-color: var(--accent); }
.order-panel input[type=number] {
  width: 100%; padding: 12px; font-size: 18px; font-weight: 700; text-align: right;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 9px;
}
.ls-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ls-btns .btn { padding: 15px; font-size: 17px; }
.countdown { font-size: 13px; color: var(--gold); font-weight: 700; }
table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge.win, .badge.완료, .badge.정상, .badge.활성 { background: #0d3325; color: var(--up); }
.badge.lose, .badge.취소, .badge.정지 { background: #3d1420; color: var(--down); }
.badge.진행, .badge.대기 { background: #3a3113; color: var(--gold); }

/* ===== deposit ===== */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.tabs a { padding: 10px 20px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); color: var(--dim); font-weight: 700; }
.tabs a.on { background: var(--card2); color: var(--text); border-color: var(--accent); }
.amt-quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }
.amt-quick button { padding: 8px 14px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); cursor: pointer; }
.amt-quick button:hover { border-color: var(--accent); }
.note-box { background: var(--bg2); border: 1px dashed var(--line); border-radius: 10px; padding: 16px; color: var(--dim); font-size: 13.5px; margin-top: 18px; }

/* ===== customer ===== */
.cs-nav { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.cs-nav a { padding: 10px 18px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--dim); font-weight: 700; }
.cs-nav a.on { color: var(--text); border-color: var(--accent); }
.notice-item { display: block; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.notice-item:hover { background: var(--card2); }
.notice-item .nt { font-weight: 700; }
.notice-item .nd { color: var(--dim); font-size: 12.5px; margin-top: 3px; }

/* ===== mypage ===== */
.mp-grid { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.profile { text-align: center; }
.profile .av { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border: 0; }
.kv .k { color: var(--dim); }

/* ===== footer ===== */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 34px 20px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; color: var(--dim); font-size: 14px; }
.footer-demo { text-align: center; color: var(--dim); font-size: 12px; padding: 0 20px 26px; }

@media (max-width: 900px) {
  .trade-grid, .mp-grid { grid-template-columns: 1fr; }
  .feat-grid, .review-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .menu { display: none; }
  .hero { padding: 70px 0 60px; }
  .hero h1 { font-size: 34px; }
  .cta h2 { font-size: 24px; }
}
