/* ==========================================================================
   Modern Service Cloud — 공통 테마(/static/css/style.css)에 더하는 부분만
   색·반경·그림자는 전부 메인 테마의 변수를 그대로 사용합니다 (다크/라이트 자동).
   ========================================================================== */

/* ───────── 사용량 막대 (플랜 허용 사양) ───────── */
.meter { display: grid; gap: 6px; }
.meter + .meter { margin-top: 12px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .9rem; }
.meter-head .label { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-weight: 600; margin: 0; }
.meter-head .label .icon { width: 16px; height: 16px; }
.meter-head .val { color: var(--text-strong); font-weight: 800; }
.meter-track { height: 8px; border-radius: 999px; background: var(--button); overflow: hidden; }
.meter-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, transparent)); transition: width .3s; }
.meter.warn .meter-bar { background: linear-gradient(90deg, var(--orange), color-mix(in srgb, var(--orange) 60%, transparent)); }
.meter.full .meter-bar { background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 60%, transparent)); }

/* ───────── 요금제 카드 ───────── */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; align-items: start; }
.plan-card { background: var(--raised); border: 1.5px solid var(--divider); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan-card.current { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); }
.plan-card.featured { border-color: color-mix(in srgb, var(--brand) 45%, var(--divider)); }
.plan-card h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.plan-price { font-size: 2rem; font-weight: 900; color: var(--text-strong); letter-spacing: -.03em; line-height: 1.1; }
.plan-price small { font-size: .85rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0; }
.plan-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan-card ul li { display: flex; align-items: flex-start; gap: 8px; font-size: .93rem; }
.plan-card ul li .icon { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--brand); }
.plan-card ul li.off { color: var(--text-muted); }
.plan-card ul li.off .icon { color: var(--text-muted); }
.plan-card .plan-foot { margin-top: auto; }
.plan-tag { position: absolute; top: -11px; right: 18px; }

/* ───────── 서버 카드 ───────── */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.srv-card { background: var(--raised); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 12px; color: inherit; border: 1.5px solid transparent; }
a.srv-card:hover { text-decoration: none; border-color: var(--brand); }
.srv-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.srv-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.srv-title .icon { width: 18px; height: 18px; color: var(--text-muted); flex: 0 0 auto; }
.srv-title strong { color: var(--text-strong); font-weight: 800; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--text-muted); }
.srv-meta span { display: inline-flex; align-items: center; gap: 5px; }
.srv-meta .icon { width: 15px; height: 15px; }
.srv-new { border: 2px dashed var(--divider); background: transparent; box-shadow: none; display: grid; place-items: center; text-align: center; padding: 28px 20px; gap: 6px; min-height: 150px; }
a.srv-new:hover { border-color: var(--brand); background: var(--brand-soft); }
.srv-new .icon { width: 26px; height: 26px; color: var(--brand); }

/* 접속 주소 */
.addr { display: flex; align-items: center; gap: 8px; background: var(--raised-2); border: 1px solid var(--divider); border-radius: 12px; padding: 10px 12px; }
.addr code { font-family: ui-monospace, monospace; font-weight: 800; color: var(--text-strong); font-size: 1rem; overflow-wrap: anywhere; }
.addr .btn { margin-left: auto; flex: 0 0 auto; }

/* 호스트 상태 점 */
.host-line { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-muted); }
.host-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-muted); flex: 0 0 auto; }
.host-dot.ok { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.host-dot.bad { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

/* ───────── 선택 칩 (서버 종류 · 램 · 디스크 · 소프트웨어) ───────── */
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; }
.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pick .pick-box { display: block; padding: 10px 14px; border-radius: 12px; background: var(--button); border: 1.5px solid transparent; font-weight: 700; font-size: .92rem; color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.pick .pick-box .sub { display: block; font-size: .78rem; font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.pick input:checked + .pick-box { border-color: var(--brand); background: var(--brand-soft); color: var(--text-strong); }
.pick input:focus-visible + .pick-box { outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
.pick input:disabled + .pick-box { opacity: .45; cursor: not-allowed; }
.pick-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.pick-wide .pick-box { height: 100%; }

/* ───────── 콘솔 ───────── */
.console-box { background: #0d0f12; border: 1px solid var(--divider); border-radius: 14px; padding: 14px 16px; height: min(60vh, 520px); overflow-y: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; line-height: 1.55; color: #cfd6de; white-space: pre-wrap; overflow-wrap: anywhere; }
:root[data-theme="light"] .console-box { background: #14171c; color: #d7dee6; }
.console-box .warn { color: #ffb86b; }
.console-box .err { color: #ff7a93; }
.console-box .ok { color: #7ee3a6; }
.console-box .me { color: var(--brand); font-weight: 700; }
.console-foot { display: flex; gap: 8px; margin-top: 12px; }
.console-foot .input { font-family: ui-monospace, monospace; }
.console-empty { color: #6f7883; }

/* 상태 줄 */
.live { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .88rem; color: var(--text-muted); }
.live b { color: var(--text-strong); }

/* DNS 안내표의 값 칸 */
.dns-val { font-family: ui-monospace, monospace; color: var(--text-strong); overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .plan-card { padding: 20px; }
  .console-box { height: 56vh; }
}
