@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #050506;
  --bg-2: #0a0a0c;
  --panel: #0e0e11;
  --panel-2: #15151a;
  --edge: #2a2118;
  --edge-lit: #6b5220;
  --gold-1: #fff3c4;
  --gold-2: #f2cf6b;
  --gold-3: #c8912b;
  --gold-4: #7d5612;
  --red-1: #a3161a;
  --red-2: #5e0c0f;
  --ink: #ece7dc;
  --ink-dim: #9b9385;
  --ink-faint: #6a6459;
  --on-idle: #4fd18a;
  --on-use: #f2a93b;
  --on-res: #8b9bf5;
  --on-off: #4a4a52;
  --danger: #e2635c;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(200,145,43,.10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: Pretendard, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-2); text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px 72px; }

/* ── 로고 ─────────────────────────────── */
.logo {
  text-align: center; padding: 40px 0 0;
}
.logo .word {
  display: inline-block; font-size: 46px; font-weight: 800; letter-spacing: .06em;
  background: linear-gradient(180deg, #fffaea 0%, var(--gold-2) 42%, var(--gold-3) 62%, var(--gold-4) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(242,207,107,.28));
  line-height: 1.15;
}
.logo .en {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .5em; text-indent: .5em; color: var(--gold-3);
}

/* ── 상태 바 (잭팟 바 형태) ─────────────── */
.ticker {
  position: relative; max-width: 620px; margin: 26px auto 0;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 11px 26px;
  background: linear-gradient(180deg, var(--red-1), var(--red-2));
  border: 2px solid var(--gold-3); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,240,200,.35), 0 6px 20px rgba(0,0,0,.6);
}
.ticker .lab {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; color: var(--gold-1);
}
.ticker .val {
  font-family: var(--mono); font-size: 19px; font-weight: 600; color: #ffe07a;
  text-shadow: 0 0 12px rgba(255,200,60,.5);
}
.ticker .val small { font-size: 12px; color: var(--gold-2); margin-left: 2px; }

/* ── 아이콘 메뉴 ───────────────────────── */
.iconmenu {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px 4px; margin: 30px auto 0; max-width: 620px;
}
.iconmenu a, .iconmenu button {
  flex: 1 1 84px; max-width: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 4px; background: none; border: 0; cursor: pointer;
  color: var(--ink); font-family: inherit; font-size: 12.5px; font-weight: 600;
}
.badge {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #6e4f14, #241a08);
  border: 1px solid var(--edge-lit);
  box-shadow: inset 0 1px 0 rgba(255,225,150,.28);
  transition: transform .15s, box-shadow .15s;
}
.badge svg { width: 24px; height: 24px; stroke: var(--gold-2); fill: none;
             stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.iconmenu a:hover .badge, .iconmenu button:hover .badge {
  transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,225,150,.4), 0 0 16px rgba(200,145,43,.4);
}

/* ── 카드 ─────────────────────────────── */
.cards {
  display: grid; gap: 14px; margin-top: 34px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.card {
  position: relative; background: linear-gradient(180deg, var(--panel), #08080a);
  border: 1px solid var(--edge); border-radius: 6px;
  padding: 16px 14px 16px; text-align: center;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.card[data-can="1"] { cursor: pointer; }
.card[data-can="1"]:hover {
  border-color: var(--gold-3); transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.6), 0 0 0 1px rgba(200,145,43,.25);
}
.card[data-can="0"] { opacity: .55; }
.card svg.art { width: 100%; max-width: 128px; height: auto; display: block; margin: 0 auto; }
.card .cname {
  margin-top: 12px; font-size: 15px; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff6dc, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 4px 11px; border-radius: 999px; font-size: 11.5px;
  border: 1px solid var(--edge); color: var(--ink-dim); background: #0b0b0e;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--on-off); }
.meta { margin-top: 9px; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); min-height: 16px; }
.card .act { display: flex; gap: 6px; margin-top: 12px; }

/* ── 대형 게임기 ───────────────────────── */
.stage { text-align: center; margin-top: 40px; }
.stage svg { width: 232px; max-width: 62vw; height: auto;
             filter: drop-shadow(0 22px 34px rgba(0,0,0,.75)); }
.stage .cta { margin-top: 26px; }

/* ── 버튼 ─────────────────────────────── */
button, .btn {
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border-radius: 5px;
  border: 1px solid var(--edge); background: var(--panel-2); color: var(--ink);
  transition: border-color .14s, background .14s;
}
button:hover:not(:disabled) { border-color: var(--edge-lit); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-3); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.wide { flex: 1; }
button.ghost { background: transparent; }
button.danger { color: var(--danger); }

.gold {
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 40%, var(--gold-3) 100%);
  border: 1px solid var(--gold-4); color: #2b1c02; font-weight: 700;
}
.gold:hover:not(:disabled) { filter: brightness(1.07); border-color: var(--gold-4); }

.enter-btn {
  display: inline-block; padding: 16px 56px; font-size: 17px; font-weight: 800;
  letter-spacing: .08em; border-radius: 6px;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 40%, var(--gold-3) 100%);
  border: 1px solid var(--gold-4); color: #2b1c02;
  box-shadow: 0 5px 0 var(--gold-4), 0 12px 30px rgba(200,145,43,.25);
  transition: transform .07s, box-shadow .07s, filter .14s;
}
.enter-btn:hover { filter: brightness(1.07); }
.enter-btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--gold-4); }

/* ── 헤더 ─────────────────────────────── */
.top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 0; margin-bottom: 20px; border-bottom: 1px solid var(--edge);
}
.top .brand {
  font-size: 19px; font-weight: 800; letter-spacing: .04em;
  background: linear-gradient(180deg, #fff6dc, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.top .sub { font-size: 12.5px; color: var(--ink-faint); }
.top .spacer { flex: 1; }
.top nav { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-dim); flex-wrap: wrap; }
.top nav form { margin: 0; }
.top nav a {
  padding: 9px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--edge); background: var(--panel-2); color: var(--ink);
  transition: border-color .14s, background .14s;
}
.top nav a:hover { border-color: var(--edge-lit); background: #1c1c22; }
.top nav button { padding: 9px 16px; font-size: 13px; }
.top nav .wallet {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(180deg, var(--red-1), var(--red-2));
  border: 2px solid var(--gold-3);
  box-shadow: inset 0 1px 0 rgba(255,240,200,.3);
}
.top nav .wallet .k {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .12em; color: var(--gold-1);
}
.top nav .wallet .v {
  font-family: var(--mono); font-size: 15px; font-weight: 600; color: #ffe07a;
}
@media (max-width: 620px) {
  .top nav a, .top nav button { padding: 8px 12px; font-size: 12.5px; }
  .top nav .wallet { padding: 7px 12px; }
  .top nav .wallet .v { font-size: 13.5px; }
}

/* ── 표 ───────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--ink-faint); font-size: 11.5px;
     padding: 8px 10px; border-bottom: 1px solid var(--edge); }
td { padding: 11px 10px; border-bottom: 1px solid #17140f; }
.mono { font-family: var(--mono); }
tr[data-warn="1"] td { background: rgba(226,99,92,.07); }

section { margin-top: 38px; }
section > h2 {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; margin: 0 0 12px;
  padding-bottom: 9px; border-bottom: 1px solid var(--edge); color: var(--gold-2);
}
.empty { color: var(--ink-faint); font-size: 13px; padding: 16px 0; }

/* ── 폼 ───────────────────────────────── */
.formcard {
  max-width: 360px; margin: 8vh auto 0; padding: 32px 26px 26px;
  background: linear-gradient(180deg, var(--panel), #08080a);
  border: 1px solid var(--edge); border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
.formcard h1 { font-size: 17px; margin: 0 0 4px; font-weight: 700; }
.formcard .lead { color: var(--ink-faint); font-size: 13px; margin: 0 0 22px; }
.formcard .foot { margin-top: 18px; font-size: 12.5px; color: var(--ink-faint); text-align: center; }
label.f { display: block; font-size: 12px; color: var(--ink-dim); margin-bottom: 5px; }
input[type=text], input[type=password] {
  width: 100%; padding: 12px; margin-bottom: 14px; font-size: 16px;
  background: #08080a; border: 1px solid var(--edge); border-radius: 5px;
  color: var(--ink); font-family: inherit;
}
input:focus { outline: none; border-color: var(--gold-4); }
.err {
  color: #ffb0ab; font-size: 13px; margin-bottom: 14px; padding: 10px 12px;
  border: 1px solid rgba(226,99,92,.35); border-radius: 5px; background: rgba(226,99,92,.09);
}

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--edge-lit); color: var(--ink);
  padding: 12px 20px; border-radius: 6px; font-size: 13px; max-width: 90vw;
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60;
}
.toast.on { opacity: 1; }

@keyframes breathe { 0%,100% { opacity: 1 } 50% { opacity: .4 } }
.blink { animation: breathe 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .blink { animation: none } }

/* ── 모바일 ───────────────────────────── */
@media (max-width: 760px) {
  .logo { padding-top: 26px; }
  .logo .word { font-size: 34px; }
  .logo .en { font-size: 10px; letter-spacing: .38em; text-indent: .38em; }
  .ticker { margin-top: 20px; padding: 9px 16px; gap: 10px; }
  .ticker .lab { font-size: 10px; letter-spacing: .12em; }
  .ticker .val { font-size: 16px; }
  .iconmenu { gap: 6px 0; margin-top: 22px; }
  .iconmenu a, .iconmenu button { flex: 1 1 20%; max-width: none; font-size: 11px; padding: 8px 2px; }
  .badge { width: 46px; height: 46px; }
  .badge svg { width: 21px; height: 21px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
  .card { padding: 12px 10px; }
  .card svg.art { max-width: 96px; }
  .card .cname { font-size: 14px; }
  .stage { margin-top: 28px; }
  .enter-btn { padding: 15px 0; width: 100%; max-width: 320px; font-size: 16px; }
  .top { padding: 12px 0; }
  .formcard { margin-top: 4vh; padding: 26px 20px 22px; }
  button { padding: 10px 14px; }
}
@media (max-width: 380px) {
  .cards { grid-template-columns: 1fr; }
  .iconmenu a, .iconmenu button { flex: 1 1 33%; }
}

/* ── 관리자 ───────────────────────────── */
.atabs {
  display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 18px;
  border-bottom: 1px solid var(--edge); padding-bottom: 0;
}
.atabs a {
  padding: 10px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink-dim);
  border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0;
  margin-bottom: -1px;
}
.atabs a:hover { color: var(--ink); }
.atabs a.on {
  color: #17120a; background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  border-color: var(--gold-4);
}

.filters {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  padding: 12px 14px; margin-bottom: 14px;
  background: var(--panel); border: 1px solid var(--edge); border-radius: 7px;
}
.filters .presets { display: flex; gap: 4px; flex-wrap: wrap; }
.filters .presets button { padding: 7px 12px; font-size: 12px; }
.filters .presets button.on { background: var(--gold-3); border-color: var(--gold-4); color: #17120a; }
.filters input[type=date], .filters input[type=text], .filters select {
  margin: 0; padding: 7px 10px; font-size: 13px; width: auto;
}
.filters input[type=text] { min-width: 150px; }
.filters .sp { flex: 1; }

.grid-tbl { overflow-x: auto; border: 1px solid var(--edge); border-radius: 7px; }
.grid-tbl table { min-width: 900px; font-size: 12.5px; }
.grid-tbl th {
  position: sticky; top: 0; background: #121216; z-index: 1;
  white-space: nowrap; padding: 10px 12px;
}
.grid-tbl td { padding: 9px 12px; white-space: nowrap; }
.grid-tbl tbody tr:hover td { background: rgba(200,145,43,.06); }
.grid-tbl a.idlink { color: var(--gold-2); font-family: var(--mono); font-weight: 600; }
.num { text-align: right; font-family: var(--mono); }
.warn { color: var(--danger); font-weight: 600; }
.ok { color: var(--on-idle); }
.dim { color: var(--ink-faint); }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px;
  border: 1px solid var(--edge); color: var(--ink-dim);
}
.tag.in { color: var(--on-idle); border-color: rgba(79,209,138,.4); }
.tag.out { color: var(--on-use); border-color: rgba(242,169,59,.4); }
.tag.pending { color: #ffe07a; border-color: var(--gold-4); }
.tag.done { color: var(--on-idle); border-color: rgba(79,209,138,.4); }
.tag.rejected { color: var(--danger); border-color: rgba(226,99,92,.4); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.statbox {
  background: linear-gradient(180deg, var(--panel), #08080a);
  border: 1px solid var(--edge); border-radius: 8px; padding: 20px 18px; text-align: center;
}
.statbox .k { font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; }
.statbox .v { font-family: var(--mono); font-size: 26px; font-weight: 600; margin-top: 6px; color: var(--gold-2); }
.statbox .s { font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }
.statbox.plus .v { color: var(--on-idle); }
.statbox.minus .v { color: var(--danger); }
@media (max-width: 700px) { .cards3 { grid-template-columns: 1fr; } }

/* ── 확인창 덮개 ─────────────────────────── */
.ovl {
  position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ovl[hidden] { display: none; }

/* ── 흐르는 안내문구 ─────────────────────── */
.notice {
  position: relative; max-width: 620px; margin: 26px auto 0; overflow: hidden;
  padding: 11px 0;
  background: linear-gradient(180deg, var(--red-1), var(--red-2));
  border: 2px solid var(--gold-3); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,240,200,.35), 0 6px 20px rgba(0,0,0,.6);
}
.notice::before, .notice::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 34px; z-index: 2;
  pointer-events: none;
}
.notice::before { left: 0; background: linear-gradient(90deg, #7c1013, transparent); }
.notice::after { right: 0; background: linear-gradient(270deg, #6b0e11, transparent); }
.notice-in { display: flex; width: max-content; animation: flow 26s linear infinite; }
.notice-in span {
  padding: 0 40px; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: #ffe9a8;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
@keyframes flow { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.notice:hover .notice-in { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .notice-in { animation: none; }
  .notice-in span:nth-child(n+2) { display: none; }
}

/* ── 대형 메뉴판 (좌 탭 · 우 고정 박스) ───── */
.board {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(200,145,43,.14), transparent 70%),
    rgba(5,5,6,.97);
  display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px 40px;
}
.board[hidden] { display: none; }
.board-in { width: 100%; max-width: 1140px; }
.board-top { display: flex; align-items: center; margin-bottom: 18px; }
.board-top .word { font-size: 24px; font-weight: 800; letter-spacing: .06em; }
.board-top .sp { flex: 1; }
.board-x {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  background: transparent; border: 1px solid var(--edge); color: var(--ink-dim);
  font-size: 19px; line-height: 1;
}
.board-x:hover { border-color: var(--gold-3); color: var(--gold-2); }

.board-body { display: grid; grid-template-columns: 236px 1fr; gap: 14px; align-items: start; }

.btabs { display: flex; flex-direction: column; gap: 7px; }
.btab {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 15px 16px; cursor: pointer; font-family: inherit;
  background: linear-gradient(180deg, #16161b, #0b0b0e);
  border: 1px solid var(--edge); border-radius: 8px;
  transition: border-color .14s, background .14s;
}
.btab:hover { border-color: var(--edge-lit); }
.btab .bicon {
  width: 38px; height: 38px; flex: none; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #6e4f14, #241a08);
  border: 1px solid var(--edge-lit);
  box-shadow: inset 0 1px 0 rgba(255,225,150,.28);
}
.btab .bicon svg { width: 20px; height: 20px; stroke: var(--gold-2); fill: none;
                   stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btab b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.btab.on {
  border-color: var(--gold-3);
  background: linear-gradient(180deg, #2a1206, #160903);
}
.btab.on b { color: #ffe07a; }
.btab.on .bicon { box-shadow: inset 0 1px 0 rgba(255,225,150,.45), 0 0 14px rgba(200,145,43,.35); }

.bpanel {
  background: linear-gradient(180deg, var(--panel), #08080a);
  border: 1px solid var(--edge); border-radius: 8px;
  height: 560px; overflow: hidden; padding: 22px 24px;
}
.bpanel > div { height: 100%; display: flex; flex-direction: column; }
.bpanel > div[hidden] { display: none; }
.bpanel h3 {
  margin: 0 0 4px; font-size: 19px; font-weight: 700;
  background: linear-gradient(180deg, #fff6dc, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bpanel p.d { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-dim); line-height: 1.7; }
.bpanel .sec { margin-top: 18px; display: flex; flex-direction: column; min-height: 0; }
.bpanel .sec.grow { flex: 1; }
.bpanel .sec h4 {
  margin: 0 0 8px; padding-bottom: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: .04em; color: var(--gold-2); border-bottom: 1px solid var(--edge);
}
.bpanel table { font-size: 14px; }
.bpanel th {
  font-size: 12.5px; padding: 11px 10px; color: var(--ink-dim); font-weight: 600;
  background: #121216;
}
.bpanel td { padding: 13px 10px; border-bottom: 1px solid #17140f; }
.bpanel tbody tr:hover td { background: rgba(200,145,43,.05); }
.bpanel .empty { font-size: 13.5px; }

/* 두 칸 배치 — 폼과 내역을 나란히 놓아 스크롤을 없앤다 */
.bcols { flex: 1; display: grid; grid-template-columns: 320px 1fr; gap: 22px; min-height: 0; }
.bcols > div { display: flex; flex-direction: column; min-height: 0; }
.bcols .sec { margin-top: 0; }

/* 페이지 넘김 */
.pager { display: flex; justify-content: center; gap: 5px; margin-top: 12px; }
.pager button {
  min-width: 32px; padding: 6px 9px; font-size: 13px; font-family: var(--mono);
  background: transparent; border: 1px solid var(--edge); color: var(--ink-dim);
}
.pager button:hover { border-color: var(--edge-lit); color: var(--ink); }
.pager button.on {
  background: var(--gold-3); border-color: var(--gold-4); color: #17120a; font-weight: 700;
}
.pager[hidden] { display: none; }
.quick { display: flex; gap: 5px; margin-bottom: 10px; }
.quick button { flex: 1; padding: 8px 2px; font-size: 12px; }
.bnote { margin-top: 12px; font-size: 12.5px; color: var(--gold-3); line-height: 1.7; }
.bbig {
  font-family: var(--mono); font-size: 40px; font-weight: 600; text-align: center;
  background: linear-gradient(180deg, #fff6dc, var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 6px 0 2px;
}
.bcap { text-align: center; font-size: 11.5px; letter-spacing: .1em; color: var(--gold-3); }
.bstate {
  padding: 16px; margin-top: 16px; border-radius: 7px; text-align: center;
  background: #0b0b0e; border: 1px solid var(--edge); font-size: 14px; line-height: 1.8;
}
.balert {
  padding: 13px 15px; margin-bottom: 14px; border-radius: 6px; font-size: 13px; line-height: 1.75;
  background: linear-gradient(180deg, #2a1206, #160903); border: 1px solid var(--gold-3);
}

@media (max-width: 780px) {
  .board { padding: 16px 10px 30px; }
  .board-body { grid-template-columns: 1fr; gap: 10px; }
  .btabs { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .btab { flex: none; padding: 11px 13px; }
  .btab b { font-size: 13px; white-space: nowrap; }
  .btab .bicon { width: 30px; height: 30px; }
  .btab .bicon svg { width: 17px; height: 17px; }
  .bpanel { height: auto; max-height: none; overflow: visible; padding: 18px 15px; }
  .bpanel > div { height: auto; }
  .bcols { grid-template-columns: 1fr; gap: 16px; }
  .bpanel table { font-size: 13px; }
  .bpanel td { padding: 11px 8px; }
}

/* ── 회원 상세 모달 ─────────────────────── */
.mdl {
  position: fixed; inset: 0; z-index: 95; overflow-y: auto;
  background: rgba(5,5,6,.86);
  display: flex; align-items: flex-start; justify-content: center; padding: 26px 16px 40px;
}
.mdl[hidden] { display: none; }
.mdl-in {
  width: 100%; max-width: 860px;
  background: linear-gradient(180deg, var(--panel), #08080a);
  border: 1px solid var(--gold-4); border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
}
.mdl-top {
  display: flex; align-items: center; gap: 12px; padding: 18px 22px;
  border-bottom: 1px solid var(--edge);
}
.mdl-top h3 {
  margin: 0; font-size: 17px; font-weight: 700;
  background: linear-gradient(180deg, #fff6dc, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mdl-top .who { font-size: 13px; color: var(--ink-dim); }
.mdl-top .sp { flex: 1; }
.mdl-body { padding: 20px 22px 22px; }

.dgrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--edge); border: 1px solid var(--edge); border-radius: 8px; overflow: hidden;
}
.dcell { background: #0c0c0f; padding: 13px 15px; min-width: 0; }
.dcell .k { font-size: 11.5px; color: var(--ink-faint); letter-spacing: .02em; }
.dcell .v {
  margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--ink);
  word-break: break-all;
}
.dcell .v.mono { font-family: var(--mono); }
.dcell .v.gold { color: var(--gold-2); }
.dcell .v.plus { color: var(--on-idle); }
.dcell .v.minus { color: var(--danger); }
.dcell .v.small { font-size: 12.5px; font-weight: 500; color: var(--ink-dim); }
.dcell.wide { grid-column: span 3; }

.dsec { margin-top: 16px; }
.dsec h4 {
  margin: 0 0 10px; padding-bottom: 8px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; color: var(--gold-2); border-bottom: 1px solid var(--edge);
}
.drow { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.drow input, .drow select { margin: 0; width: auto; flex: 1 1 130px; padding: 9px 11px; font-size: 13.5px; }
@media (max-width: 700px) {
  .dgrid { grid-template-columns: repeat(2, 1fr); }
  .dcell.wide { grid-column: span 2; }
}
@media (max-width: 460px) {
  .dgrid { grid-template-columns: 1fr; }
  .dcell.wide { grid-column: span 1; }
}

/* ── 기기 그래프 (마우스 올리면) ─────────────
   카드 한가운데, 기기 번호 자리에 겹쳐 뜬다. 위로 띄우면 화면 밖으로
   잘려 나가고 다른 카드를 가린다. */
.card { position: relative; }
.gwrap {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 20; padding: 12px 14px; border-radius: 9px;
  background: rgba(10, 10, 12, .93);
  border: 1px solid var(--gold-4);
  box-shadow: 0 10px 30px rgba(0,0,0,.75);
  opacity: 0; pointer-events: none; transition: opacity .14s;
  white-space: nowrap;
}
.card:hover .gwrap, .card:focus-within .gwrap { opacity: 1; }
.gbars { display: flex; align-items: flex-end; gap: 4px; height: 78px; }
.gbar {
  width: 13px; height: 100%; border-radius: 2px;
  background: #0b0b0e; border: 1px solid var(--edge);
  display: flex; align-items: flex-end; overflow: hidden;
}
.gbar i {
  display: block; width: 100%;
  background: linear-gradient(180deg, #ffb347, #d94a2a);
}
.gbar.now i { background: linear-gradient(180deg, #fff0b0, #f2a93b); }
.gbar.now { border-color: var(--gold-3); }
@media (max-width: 760px) {
  .gwrap { display: none; }
}

/* ── 관리 화면 서브 메뉴 ─────────────────── */
.subtabs { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.subtabs a {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #0f0f13; border: 1px solid var(--edge); color: var(--ink-dim);
}
.subtabs a:hover { border-color: var(--edge-lit); color: var(--ink); }
.subtabs a.on {
  background: linear-gradient(180deg, #2a1206, #160903);
  border-color: var(--gold-3); color: #ffe07a;
}

/* ── 미처리 신청 알림 ────────────────────── */
.pending-bar {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 9px; max-width: 340px;
  background: linear-gradient(180deg, var(--red-1), var(--red-2));
  border: 2px solid var(--gold-3);
  box-shadow: 0 12px 32px rgba(0,0,0,.6);
  animation: pending-pulse 1.6s ease-in-out infinite;
}
.pending-bar[hidden] { display: none; }
@keyframes pending-pulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(0,0,0,.6); }
  50% { box-shadow: 0 12px 32px rgba(0,0,0,.6), 0 0 0 6px rgba(200,145,43,.18); }
}
.pending-bar .txt { flex: 1; font-size: 13.5px; color: #ffe9a8; line-height: 1.6; }
.pending-bar .txt b { color: #fff6dc; }
.pending-bar a {
  padding: 7px 13px; border-radius: 6px; font-size: 12.5px; font-weight: 700;
  background: var(--gold-3); color: #17120a; white-space: nowrap;
}
.pending-bar button {
  padding: 6px 9px; font-size: 11.5px; background: transparent;
  border: 1px solid rgba(255,224,122,.35); color: #ffe9a8;
}
@media (max-width: 620px) {
  .pending-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* 전체 조회가 눌린 상태 — 기간 버튼과 같은 모양으로 */
.filters button.ghost.on {
  background: var(--gold-3); border-color: var(--gold-4); color: #17120a;
}
