/* 세부페이지 — LUMINA /futures 톤 */
.detail-page {
  background: #000000;
  color: #fafafa;
  min-height: calc(100dvh - 64px);
}
.detail-wrap {
  width: min(100% - 40px, 1100px);
  margin: 0 auto;
  padding: 36px 0 64px;
}
.detail-head {
  margin-bottom: 28px;
}
.detail-head h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(246,143,21,.12);
  color: #f68f15;
  border: 1px solid rgba(246,143,21,.35);
}
.detail-lead {
  margin: 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.65;
  color: #84888c;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  gap: 16px;
  align-items: start;
}
.detail-card {
  background: #131516;
  border: 1px solid #2a2d31;
  border-radius: 14px;
  padding: 22px 20px;
}
.detail-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}
.detail-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}
.detail-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #84888c;
}
.detail-list {
  display: grid;
  gap: 14px;
}
.detail-list > div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(45,48,51,.8);
}
.detail-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
}
.detail-btn.primary {
  background: #f68f15;
  color: #000;
}
.detail-btn.ghost {
  background: transparent;
  color: #fafafa;
  border-color: #2a2d31;
}
.detail-btn.primary:hover { filter: brightness(1.05); color: #111; }
.detail-btn.ghost:hover { border-color: #848e9c; color: #fff; }

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #131516;
  border: 1px solid #2a2d31;
  color: #fafafa;
  font-size: 13px;
  text-decoration: none;
}
.detail-chip:hover { border-color: #f68f15; color: #f68f15; }
.detail-chip .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #f68f15;
}

.auth-wrap {
  max-width: 420px;
  margin: 40px auto;
  padding: 0 16px 48px;
}
.auth-wrap .card-box,
.auth-wrap .detail-card { padding: 28px; }
.auth-wrap h1 { margin: 0 0 8px; font-size: 24px; }

/* 계정생성 (2열 양식) */
.auth-wrap.reg { max-width: 560px; }
.auth-wrap.reg h1, .auth-wrap.reg > .card-box > .sub { text-align: center; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.reg-grid .span2 { grid-column: 1 / -1; }
.reg-grid .form-row label { font-weight: 600; color: #b7bcc3; }
.reg-grid .form-row select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23848e9c' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.reg-grid .form-row select option { background: #0f1011; color: #eaecef; }
.reg .opt { font-weight: 400; color: #5e6673; font-size: 11.5px; }
.reg-birth { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; }
.reg-sep {
  margin: 6px 0 14px; padding-top: 14px; border-top: 1px solid #2a2d31;
  font-size: 12.5px; font-weight: 600; color: #b7bcc3;
}
.reg-submit { width: 100%; height: 48px; margin-top: 8px; font-size: 15px; background: #f68f15; color: #000; }
.reg-submit:hover { filter: brightness(1.06); }
.reg-foot { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #2a2d31; text-align: center; font-size: 13px; color: #848e9c; }
.reg-foot a { color: #f68f15; font-weight: 700; text-decoration: none; }
@media (max-width: 520px) {
  .reg-grid { grid-template-columns: 1fr; }
}
.auth-wrap .sub { color: #848e9c; margin: 0 0 22px; font-size: 13px; }
.auth-error {
  background: rgba(246,70,93,.12);
  color: #f6465d;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}
.auth-ok {
  background: rgba(14,203,129,.12);
  color: #0ecb81;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-wrap { width: min(100% - 28px, 1100px); padding: 24px 0 48px; }
  .detail-head h1 { font-size: 24px; }
}

/* ===== 시장가 (LUMINA /markets) ===== */
.mk-wrap { width: min(100% - 32px, 1400px); margin: 0 auto; padding: 28px 0 64px; }
.mk-ov-title { margin: 0 0 18px; font-size: 30px; font-weight: 600; }
.mk-feat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.mk-feat-card {
  display: flex;
  flex-direction: column;
  background: #131516;
  border: 1px solid #2a2d31;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  min-height: 168px;
  min-width: 0;
  overflow: hidden;
}
.mk-feat-card:hover { border-color: rgba(246,143,21,.45); }
.mk-feat-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mk-feat-pair { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #fafafa; min-width: 0; }
.mk-feat-chg { font-size: 12px; font-weight: 700; flex-shrink: 0; }
.mk-feat-chg.up { color: #0ecb81; }
.mk-feat-chg.dn { color: #f6465d; }
.mk-feat-price { margin-top: 12px; font-size: 22px; font-weight: 700; color: #fafafa; line-height: 1.2; }
svg.mk-feat-spark {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 14px;
  flex-shrink: 0;
  overflow: visible;
}
.mk-feat-vol { margin-top: 10px; font-size: 11px; color: #84888c; }
.mk-rank {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.mk-rank-box {
  background: #131516;
  border: 1px solid #2a2d31;
  border-radius: 12px;
  padding: 14px 16px 8px;
}
.mk-rank-box h2 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.mk-rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 18px;
}
.mk-rank-row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(45,48,51,.5);
  font-size: 12px;
}
.mk-rank-row .nm { color: #fafafa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-rank-row .px { color: #cfd3d8; font-variant-numeric: tabular-nums; }
.mk-rank-row .ch { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 58px; text-align: right; }
.mk-rank-row .ch.up { color: #0ecb81; }
.mk-rank-row .ch.dn { color: #f6465d; }
.mk-badge {
  display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 4px;
  background: rgba(246,143,21,.15); color: #f68f15; font-size: 10px; font-style: normal; font-weight: 700;
}
.mk-banner {
  display: flex; align-items: center; gap: 12px;
  height: 44px; margin: 0 -16px 24px; padding: 0 16px;
  border-bottom: 1px solid #2a2d31; background: #1a1c1e;
  font-size: 12px; color: #848e9c;
}
.mk-banner-k { color: #fafafa; font-weight: 700; flex-shrink: 0; }
.mk-banner-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-banner-live { display: inline-flex; align-items: center; gap: 6px; color: #848e9c; font-weight: 700; font-size: 10px; }
.mk-banner-live i { width: 6px; height: 6px; border-radius: 50%; background: #f68f15; }
.mk-wrap > h1 { margin: 0 0 8px; font-size: 30px; font-weight: 600; }
.mk-lead { margin: 0 0 20px; color: #84888c; font-size: 14px; }
.mk-card { background: #131516; border: 1px solid #2a2d31; border-radius: 14px; overflow: hidden; }
.mk-quote-tabs { display: flex; gap: 4px; padding: 12px 16px 0; }
.mk-quote-tabs button {
  height: 32px; padding: 0 12px; border: 0; border-radius: 6px;
  background: transparent; color: #848e9c; font-size: 14px; font-weight: 600; cursor: pointer;
}
.mk-quote-tabs button.on { background: #2a2e33; color: #fafafa; }
.mk-quote-tabs button em { margin-left: 6px; font-style: normal; font-size: 11px; color: #84888c; font-weight: 600; }
.mk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #2a2d31; }
.mk-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.mk-chips button {
  height: 32px; padding: 0 12px; border: 0; border-radius: 8px;
  background: transparent; color: #848e9c; font-size: 13px; font-weight: 700; cursor: pointer;
}
.mk-chips button.on { background: #f68f15; color: #000; }
.mk-count { font-size: 11px; color: #84888c; }
.mk-search { margin-left: auto; position: relative; }
.mk-search span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #84888c; font-size: 13px; }
.mk-search input {
  height: 36px; width: 220px; padding: 0 12px 0 30px; border-radius: 8px;
  border: 1px solid #2a2d31; background: #000000; color: #fafafa; font-size: 13px; outline: none;
}
.mk-search input:focus { border-color: #f68f15; }
.mk-table-wrap { overflow-x: auto; }
.mk-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.mk-table th { padding: 10px 12px; color: #84888c; font-weight: 600; font-size: 11px; border-bottom: 1px solid #2a2d31; }
.mk-table td { padding: 14px 12px; border-bottom: 1px solid rgba(45,48,51,.7); vertical-align: middle; }
.mk-table .tl { text-align: left; }
.mk-table .tr { text-align: right; }
.mk-table .tnum { font-variant-numeric: tabular-nums; }
.mk-table .up { color: #0ecb81; }
.mk-table .dn { color: #f6465d; }
.mk-table .w-star { width: 36px; }
.mk-table .w-act { width: 120px; }
.mk-star { background: none; border: 0; color: #84888c; cursor: pointer; font-size: 14px; }
.mk-row.fav .mk-star { color: #f68f15; }
.mk-asset { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.mk-asset strong { display: block; font-size: 14px; color: #fafafa; }
.mk-asset em { display: block; font-style: normal; font-size: 11px; color: #84888c; margin-top: 2px; }
.mk-hl { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #848e9c; }
.mk-trade {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 700;
  text-decoration: none; background: #f68f15; color: #000; margin-left: 4px;
}
.mk-trade.ghost { background: transparent; color: #fafafa; border: 1px solid #2a2d31; }
.mk-trade:hover { filter: brightness(1.06); }

/* ===== 입출금 / 자산 / 간편구매 ===== */
.lux-wrap { width: min(100% - 32px, 1200px); margin: 0 auto; padding: 36px 0 64px; }
.lux-wrap.wide { width: min(100% - 32px, 1300px); }
.lux-wrap > h1 { margin: 0; font-size: 30px; font-weight: 600; }
.lux-lead { margin: 8px 0 0; color: #84888c; font-size: 14px; line-height: 1.55; }
.lux-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.lux-stat { background: #131516; border: 1px solid #2a2d31; border-radius: 12px; padding: 16px; }
.lux-stat .k { font-size: 11px; font-weight: 700; color: #84888c; }
.lux-stat .v { margin-top: 6px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lux-stat .s { margin-top: 4px; font-size: 11px; color: #84888c; }
.lux-card { margin-top: 20px; background: #131516; border: 1px solid #2a2d31; border-radius: 14px; overflow: hidden; }
.lux-tabs { display: flex; gap: 0; border-bottom: 1px solid #2a2d31; padding: 0 8px; overflow-x: auto; }
.lux-tabs button {
  height: 48px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent;
  background: none; color: #848e9c; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.lux-tabs button.on { color: #fafafa; border-bottom-color: #f68f15; }
.lux-pane { display: none; padding: 20px; }
.lux-pane.on { display: block; }
.lux-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lux-box { background: #000000; border-radius: 10px; padding: 14px; }
.lux-box .row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; }
.lux-box .row span { color: #84888c; }
.lux-box .row b { color: #fafafa; font-variant-numeric: tabular-nums; }
.lux-field { margin-top: 14px; }
.lux-field label { display: block; font-size: 12px; font-weight: 700; color: #848e9c; margin-bottom: 6px; }
.lux-field .row-in { display: flex; gap: 8px; }
.lux-field input {
  flex: 1; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid #2a2d31;
  background: #000000; color: #fafafa; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums;
}
.lux-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.lux-quick button {
  height: 32px; border: 0; border-radius: 6px; background: #2a2e33; color: #b7bcc3;
  font-size: 11px; font-weight: 700; cursor: pointer;
}
.lux-quick button:hover { background: #343a42; color: #fff; }
.lux-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border-radius: 8px; border: 0;
  background: #f68f15; color: #000; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none;
}
.lux-btn:hover { filter: brightness(1.05); color: #000; }
.lux-btn.block { width: 100%; margin-top: 12px; height: 48px; }
.lux-btn.ghost { background: transparent; color: #fafafa; border: 1px solid #2a2d31; }
.lux-btn:disabled { opacity: .4; cursor: not-allowed; }
.lux-toast {
  display: none; margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 13px;
}
.lux-toast.show { display: block; }
.lux-toast.ok { background: rgba(14,203,129,.12); color: #0ecb81; }
.lux-toast.err { background: rgba(246,70,93,.12); color: #f6465d; }

.asset-hero {
  margin-top: 22px; background: #131516; border: 1px solid rgba(246,143,21,.28);
  border-radius: 14px; padding: 24px;
}
.asset-hero .total { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.asset-hero .chg { margin-top: 8px; font-size: 14px; font-weight: 700; color: #0ecb81; }
.asset-hero .meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; font-size: 11px; }
.asset-hero .meta div span { display: block; color: #84888c; }
.asset-hero .meta div b { display: block; margin-top: 4px; color: #fafafa; font-variant-numeric: tabular-nums; }
.asset-hero .acts { margin-top: 16px; display: flex; gap: 8px; justify-content: flex-end; }
.asset-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.asset-mini .cell { border: 1px solid #2a2d31; border-radius: 10px; padding: 16px; }
.asset-mini .cell .k { font-size: 11px; color: #84888c; font-weight: 700; }
.asset-mini .cell .v { margin-top: 8px; font-size: 20px; font-weight: 700; }
.asset-mini .cell .s { margin-top: 4px; font-size: 11px; color: #84888c; }

.buy-grid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 16px; margin-top: 24px; align-items: start; }
.buy-coins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.buy-coins button {
  height: 44px; border: 0; border-radius: 6px; background: transparent; color: #848e9c;
  font-size: 11px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.buy-coins button.on { background: #2a2e33; color: #fafafa; }
.buy-sum { margin-top: 16px; padding: 14px; border-radius: 8px; background: #000000; }
.buy-sum .row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; color: #848e9c; }
.buy-sum .row b { color: #fafafa; font-variant-numeric: tabular-nums; }
.buy-sum .recv { margin-top: 8px; padding-top: 10px; border-top: 1px solid #2a2d31; display: flex; justify-content: space-between; align-items: baseline; }
.buy-sum .recv strong { font-size: 18px; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .lux-stats, .lux-grid2, .asset-mini, .buy-grid, .asset-hero .meta { grid-template-columns: 1fr; }
  .mk-search { margin-left: 0; width: 100%; }
  .mk-search input { width: 100%; }
  .mk-feat { grid-template-columns: 1fr 1fr; }
  .mk-rank, .mk-rank-grid { grid-template-columns: 1fr; }
  .fx-wrap { max-width: none; }
}
@media (max-width: 560px) {
  .mk-feat { grid-template-columns: 1fr; }
}

/* ===== KRW ↔ USDT 교환 ===== */
.fx-wrap { max-width: 520px; margin: 0 auto; }
.fx-rate-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 10px; background: #000; border: 1px solid #2a2d31; margin-bottom: 14px;
}
.fx-rate-main { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #b7bcc3; }
.fx-rate-main b { color: #fafafa; font-size: 16px; font-variant-numeric: tabular-nums; }
.fx-rate-tag {
  font-style: normal; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
  background: rgba(246,143,21,.12); color: #f68f15; border: 1px solid rgba(246,143,21,.35); white-space: nowrap;
}
.fx-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.fx-dir button {
  height: 42px; border-radius: 8px; border: 1px solid #2a2d31; background: #000; color: #848e9c;
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.fx-dir button.on { border-color: #f68f15; color: #fafafa; background: rgba(246,143,21,.1); }
.fx-card { position: relative; display: grid; gap: 10px; }
.fx-side {
  background: #000; border: 1px solid #2a2d31; border-radius: 12px; padding: 14px 14px 12px;
}
.fx-side-h {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #84888c; font-weight: 700; margin-bottom: 10px;
}
.fx-max {
  border: 0; background: #2a2e33; color: #f68f15; font-size: 11px; font-weight: 700;
  height: 26px; padding: 0 10px; border-radius: 6px; cursor: pointer;
}
.fx-input-row { display: flex; align-items: center; gap: 12px; }
.fx-asset { display: inline-flex; align-items: center; gap: 8px; min-width: 88px; color: #fafafa; }
.fx-asset b { font-size: 15px; }
.fx-input-row input {
  flex: 1; height: 44px; border: 0; background: transparent; color: #fafafa;
  font-size: 22px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; outline: none;
  width: auto; padding: 0;
}
.fx-bal { margin-top: 8px; font-size: 12px; color: #84888c; }
.fx-bal b { color: #b7bcc3; font-variant-numeric: tabular-nums; }
.fx-swap {
  width: 40px; height: 40px; margin: -4px auto; border-radius: 50%; border: 1px solid #2a2d31;
  background: #131516; color: #f68f15; font-size: 18px; font-weight: 700; cursor: pointer; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.fx-swap:hover { border-color: #f68f15; }
.fx-meta {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #000; border: 1px solid #2a2d31;
}
.fx-meta .row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; color: #84888c; }
.fx-meta .row b { color: #fafafa; font-variant-numeric: tabular-nums; }
.fx-quick { margin-top: 12px; }
.fx-note { margin: 14px 0 0; font-size: 12px; line-height: 1.55; color: #84888c; }

.detail-page input,
.detail-page textarea,
.detail-page select {
  background: #000;
  border: 1px solid #2a2d31;
  color: #fafafa;
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}
.detail-page input:focus,
.detail-page textarea:focus {
  outline: none;
  border-color: #f68f15;
}
.detail-page .form-row { margin-bottom: 12px; }
.detail-page .form-row label {
  display: block;
  font-size: 12px;
  color: #84888c;
  margin-bottom: 6px;
  font-weight: 600;
}

/* 입금 계좌번호 문의 */
.bank-ask { margin-top: 12px; }
.bank-ask .lux-btn { width: 100%; }
.bank-ask-hint { margin: 8px 0 0; font-size: 11px; color: #84888c; line-height: 1.5; }
#bankBox { margin-top: 10px; border: 1px solid #2a2d31; }
#bankBox .row b { font-weight: 700; letter-spacing: .02em; }
.bank-none { margin: 10px 0 0; font-size: 12px; color: #f68f15; line-height: 1.5; }

/* ===== 1:1 문의 ===== */
.inq-form .lux-field input, .inq-form .lux-field select, .inq-form .lux-field textarea {
  width: 100%; box-sizing: border-box; text-align: left; font-variant-numeric: normal;
  border-radius: 8px; border: 1px solid #2a2d31; background: #000; color: #fafafa; font-size: 14px;
}
.inq-form .lux-field input, .inq-form .lux-field select { height: 44px; padding: 0 12px; }
.inq-form .lux-field textarea { padding: 10px 12px; line-height: 1.6; resize: vertical; font-family: inherit; }
.inq-list { display: flex; flex-direction: column; gap: 8px; }
.inq-item {
  background: #0b0d0f; border: 1px solid #2a2d31; border-radius: 12px; overflow: hidden;
  transition: border-color .15s ease, box-shadow .2s ease;
}
.inq-item.done { border-color: rgba(14,203,129,.26); }
.inq-item.open { background: #000; border-color: #3a3f46; }
.inq-item.hl { box-shadow: 0 0 0 2px rgba(246,143,21,.45); }

/* 목록 한 줄 */
.inq-head {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
  padding: 13px 15px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: inherit; color: inherit;
}
.inq-head:hover { background: rgba(255,255,255,.03); }
.inq-no { flex: 0 0 auto; font-size: 11px; color: #5e6673; font-variant-numeric: tabular-nums; }
.inq-cat { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #f68f15; background: rgba(246,143,21,.14); padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.inq-subj { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: #fafafa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-state { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.inq-state.wait { color: #848e9c; background: #1e2126; }
.inq-state.ok { color: #0ecb81; background: rgba(14,203,129,.14); }
.inq-new { flex: 0 0 auto; font-size: 10px; font-weight: 800; color: #000; background: #f68f15; padding: 2px 6px; border-radius: 4px; font-style: normal; }
.inq-date { flex: 0 0 auto; font-size: 11px; color: #5e6673; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inq-caret { flex: 0 0 auto; width: 14px; text-align: center; font-size: 10px; color: #5e6673; transition: transform .18s ease; }
.inq-item.open .inq-caret { transform: rotate(180deg); }

/* 펼친 문의 / 답변 */
.inq-detail { display: none; padding: 4px 15px 16px; }
.inq-item.open .inq-detail { display: block; }
.inq-qa { display: flex; gap: 11px; margin-top: 12px; }
.inq-qa-mark { flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.inq-qa.q .inq-qa-mark { background: #1e2126; color: #b7bcc3; }
.inq-qa.a .inq-qa-mark { background: rgba(14,203,129,.16); color: #0ecb81; }
.inq-qa-main { flex: 1 1 auto; min-width: 0; }
.inq-qa-h { display: flex; align-items: center; gap: 8px; height: 26px; font-size: 12px; font-weight: 700; }
.inq-qa.q .inq-qa-h { color: #b7bcc3; }
.inq-qa.a .inq-qa-h { color: #0ecb81; }
.inq-qa-h time { font-size: 11px; font-weight: 400; color: #5e6673; font-variant-numeric: tabular-nums; }
.inq-qa-text { margin-top: 6px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.75; word-break: break-word; }
.inq-qa.q .inq-qa-text { background: #131518; border: 1px solid #1e2126; color: #b7bcc3; }
.inq-qa.a .inq-qa-text { background: rgba(14,203,129,.06); border: 1px solid rgba(14,203,129,.22); color: #eaecef; }
.inq-wait { margin: 12px 0 0 37px; padding: 14px; border: 1px dashed #2a2d31; border-radius: 10px; text-align: center; font-size: 12px; color: #84888c; }

/* 문의내역 페이징 (1페이지 5건) */
.inq-total { margin-left: 6px; font-style: normal; font-size: 12px; font-weight: 400; color: #84888c; }
.inq-pager { display: flex; justify-content: center; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 14px; }
.inq-pager button {
  min-width: 34px; height: 34px; padding: 0 10px; box-sizing: border-box;
  border: 1px solid #2a2d31; border-radius: 8px; background: #0b0d0f; color: #b7bcc3;
  font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.inq-pager button:hover:not(:disabled) { border-color: #3a3f46; color: #fafafa; }
.inq-pager button.on { background: rgba(246,143,21,.14); border-color: rgba(246,143,21,.5); color: #f68f15; }
.inq-pager button:disabled { opacity: .35; cursor: default; }
.inq-pager .pg-arrow { color: #84888c; }
@media (max-width: 720px) {
  .inq-form .lux-grid2 { grid-template-columns: 1fr; gap: 0; }
  .inq-head { flex-wrap: wrap; gap: 7px; }
  .inq-subj { order: 9; flex: 1 1 100%; white-space: normal; }
  .inq-date { margin-left: auto; }
  .inq-wait { margin-left: 0; }
}

/* ===== 공통 페이저 (처음 · 이전 · 1~10 · 다음 · 맨끝) ===== */
.bp-pager { display: flex; justify-content: center; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 16px; }
.bp-pager a, .bp-pager span.pg-num, .bp-pager span.off {
  min-width: 34px; height: 34px; padding: 0 10px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #2a2d31; border-radius: 8px; background: #0b0d0f; color: #b7bcc3;
  font-size: 12px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums;
}
.bp-pager a:hover { border-color: #3a3f46; color: #fafafa; }
.bp-pager .pg-num.on { background: rgba(246,143,21,.14); border-color: rgba(246,143,21,.5); color: #f68f15; }
.bp-pager .off { opacity: .32; }
.bp-pager .pg-arrow, .bp-pager .pg-edge { color: #84888c; }
.bp-pager .pg-info { border: 0; background: none; color: #5e6673; font-size: 11px; margin-left: 6px; }

/* ===== 거래내역 ===== */
.hist-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.hist-card {
  background: #0b0d0f; border: 1px solid #2a2d31; border-radius: 12px; padding: 13px 14px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.hist-card .k { font-size: 11px; color: #848e9c; font-weight: 600; }
.hist-card .v { font-size: 17px; font-weight: 700; color: #fafafa; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.hist-card .s { font-size: 11px; color: #5e6673; font-style: normal; }
.hist-card .v.up { color: #0ecb81; }
.hist-card .v.dn { color: #f6465d; }

.hist-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.hist-tabs a {
  padding: 7px 13px; border-radius: 8px; border: 1px solid #2a2d31; background: #0b0d0f;
  color: #b7bcc3; font-size: 13px; font-weight: 600; text-decoration: none;
}
.hist-tabs a:hover { border-color: #3a3f46; color: #fafafa; }
.hist-tabs a.on { background: rgba(246,143,21,.14); border-color: rgba(246,143,21,.5); color: #f68f15; }
.hist-tabs a em { font-style: normal; font-size: 11px; color: #f68f15; }
.hist-tabs .hist-total { margin-left: auto; font-size: 12px; color: #5e6673; }
.hist-empty { margin: 22px 0; text-align: center; color: #84888c; font-size: 14px; }

.hist-list { display: flex; flex-direction: column; gap: 7px; }
.hist-item { background: #0b0d0f; border: 1px solid #2a2d31; border-radius: 11px; overflow: hidden; }
.hist-item.wait { border-color: rgba(246,143,21,.26); }
.hist-item.open { background: #000; border-color: #3a3f46; }
.hist-head {
  display: grid; grid-template-columns: 96px 130px 1fr 96px 100px 104px 96px 58px 14px;
  align-items: center; gap: 9px; width: 100%; box-sizing: border-box;
  padding: 11px 14px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: inherit; color: inherit;
}
.hist-head.fund { grid-template-columns: 96px 130px 1fr 160px 76px 58px 14px; }
.hist-head:hover { background: rgba(255,255,255,.03); }
.hi-date { font-size: 11px; color: #5e6673; font-variant-numeric: tabular-nums; }
.hi-sym { min-width: 0; overflow: hidden; }
.hi-dir { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hi-sub { font-style: normal; font-size: 11px; color: #5e6673; white-space: nowrap; }
.hi-num { font-size: 12.5px; color: #eaecef; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-num.hi-dim { color: #5e6673; }
.hi-num.up { color: #0ecb81; }
.hi-num.dn { color: #f6465d; }
.hi-state { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 4px; text-align: center; white-space: nowrap; }
.hi-state.ok { color: #0ecb81; background: rgba(14,203,129,.14); }
.hi-state.wait { color: #f68f15; background: rgba(246,143,21,.14); }
.hi-state.no { color: #f6465d; background: rgba(246,70,93,.14); }
.hi-caret { font-size: 10px; color: #5e6673; text-align: center; transition: transform .18s ease; }
.hist-item.open .hi-caret { transform: rotate(180deg); }

.hist-detail { display: none; padding: 2px 14px 15px; }
.hist-item.open .hist-detail { display: block; }
.hist-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1px; margin: 0; background: #1e2126; border: 1px solid #1e2126; border-radius: 10px; overflow: hidden; }
.hist-dl > div { display: flex; align-items: center; gap: 10px; background: #131518; padding: 9px 12px; min-width: 0; }
.hist-dl dt { flex: 0 0 82px; font-size: 11px; color: #848e9c; font-weight: 600; margin: 0; }
.hist-dl dd { flex: 1 1 auto; margin: 0; font-size: 12.5px; color: #eaecef; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-dl dd.up { color: #0ecb81; }
.hist-dl dd.dn { color: #f6465d; }
.hist-act { margin-top: 10px; }
.btn-cancel-order {
  padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(246,70,93,.4);
  background: rgba(246,70,93,.1); color: #f6465d; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.btn-cancel-order:hover { background: rgba(246,70,93,.18); }
.btn-cancel-order:disabled { opacity: .5; cursor: default; }

/* 내역 표에서 쓰는 코인 셀 / 매수·매도 배지 */
.coin-cell { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.coin-cell b { font-weight: 700; color: #eaecef; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-side { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.badge-side.BUY, .badge-side.LONG { color: #0ecb81; background: rgba(14,203,129,.13); }
.badge-side.SELL, .badge-side.SHORT { color: #f6465d; background: rgba(246,70,93,.13); }
.badge-side.LIQ { color: #f68f15; background: rgba(246,143,21,.16); }

@media (max-width: 1100px) {
  .hist-cards { grid-template-columns: repeat(3, 1fr); }
  .hist-head { grid-template-columns: 90px 1fr 96px 100px 92px 56px 14px; }
  .hist-head.fund { grid-template-columns: 90px 1fr 150px 56px 14px; }
  .hi-sym, .hi-qty, .hi-src { display: none; }
}
@media (max-width: 720px) {
  .hist-cards { grid-template-columns: repeat(2, 1fr); }
  .hist-head, .hist-head.fund { grid-template-columns: 1fr auto auto; gap: 7px 9px; }
  .hi-date { grid-column: 1 / -1; }
  .hi-px, .hi-qty { display: none; }
  .hist-dl dt { flex-basis: 74px; }
}

/* ===== 공지사항 ===== */
.nt-list { display: flex; flex-direction: column; gap: 7px; }
.nt-item { background: #0b0d0f; border: 1px solid #2a2d31; border-radius: 12px; overflow: hidden; }
.nt-item.open { background: #000; border-color: #3a3f46; }
.nt-item.pin { border-color: rgba(246,143,21,.34); }
.nt-head {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
  padding: 13px 15px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: inherit; color: inherit;
}
.nt-head:hover { background: rgba(255,255,255,.03); }
.nt-tag { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #f68f15; background: rgba(246,143,21,.14); padding: 3px 9px; border-radius: 4px; white-space: nowrap; }
.nt-cat { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: #848e9c; background: #1e2126; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.nt-subj { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: #fafafa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-pin { flex: 0 0 auto; font-size: 10px; font-weight: 800; color: #000; background: #f68f15; padding: 2px 6px; border-radius: 4px; font-style: normal; }
.nt-date { flex: 0 0 auto; font-size: 11px; color: #5e6673; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nt-caret { flex: 0 0 auto; width: 14px; text-align: center; font-size: 10px; color: #5e6673; transition: transform .18s ease; }
.nt-item.open .nt-caret { transform: rotate(180deg); }
.nt-detail { display: none; padding: 0 15px 16px; }
.nt-item.open .nt-detail { display: block; }
.nt-body { padding: 13px 15px; border-radius: 10px; background: #131518; border: 1px solid #1e2126; color: #b7bcc3; font-size: 13.5px; line-height: 1.8; word-break: break-word; }
.nt-tag.msg { color: #0ecb81; background: rgba(14,203,129,.14); }
.nt-item.unread { border-color: rgba(14,203,129,.4); }
.nt-item.unread .nt-subj { color: #fff; }
.nt-readall { margin-left: auto; height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid #2a2d31; background: #000; color: #b7bcc3; font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer; }
.nt-readall:hover { border-color: #f68f15; color: #f68f15; }
@media (max-width: 720px) {
  .nt-head { flex-wrap: wrap; gap: 7px; }
  .nt-subj { order: 9; flex: 1 1 100%; white-space: normal; }
  .nt-date { margin-left: auto; }
}
