/* DigMusiK member site and admin. Same tokens as the marketing site. */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0e0d0c; --panel: #171513; --panel-2: #1f1c19; --metal: #2a2622; --line: #34302b;
  --text: #f4efe7; --muted: #b3aa9d; --dim: #8a8174;
  --brand: #f26522; --brand-hot: #ff7a3a; --sun: #ffd23f; --ok: #4fc08d; --warn: #f0b429; --bad: #ef5d5d;
  --radius: 12px;
  --font-display: "Bricolage", "Avenir Next", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font-body); }
a { color: var(--brand-hot); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; margin-top: 1.4em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }

/* shell */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 20px;
  background: rgba(14, 13, 12, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .brand img { height: 34px; width: auto; display: block; }
.topbar .spacer { flex: 1; }
.topbar .plan-pill { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; color: var(--muted); }
.topbar .plan-pill.paid { border-color: rgba(242, 101, 34, .6); color: var(--brand-hot); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; }
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.side { border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 500; }
.side a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.side a.on { background: var(--panel-2); color: var(--text); }
.side .group { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 16px 12px 6px; }
.main { padding: 32px clamp(16px, 4vw, 44px) 80px; max-width: 1180px; width: 100%; }
.narrow { max-width: 560px; margin: 0 auto; padding: 48px 16px 80px; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.page-head p { margin: 0; }

/* blocks */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font: 800 1.7rem/1.1 var(--font-display); }
.stat span { color: var(--muted); font-size: .85rem; }
.bar { height: 8px; background: #0b0a09; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--brand); }
.flash { border: 1px solid var(--line); background: var(--panel-2); border-left: 3px solid var(--brand); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.flash.ok { border-left-color: var(--ok); }
.flash.bad { border-left-color: var(--bad); }
.notice { background: rgba(242, 101, 34, .08); border: 1px solid rgba(242, 101, 34, .35); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.badge { display: inline-block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; color: var(--muted); }
.badge.ok { color: var(--ok); border-color: rgba(79, 192, 141, .5); }
.badge.warn { color: var(--warn); border-color: rgba(240, 180, 41, .5); }
.badge.bad { color: var(--bad); border-color: rgba(239, 93, 93, .5); }
.badge.hot { color: var(--brand-hot); border-color: rgba(242, 101, 34, .5); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* forms */
label { display: block; font-weight: 600; margin: 14px 0 6px; }
.hint { display: block; font-weight: 400; color: var(--dim); font-size: .85rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; background: #12100e; border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 10px 12px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(242, 101, 34, .55); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.check input { margin-top: 4px; accent-color: var(--brand); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; padding: 10px 18px; font: 600 .95rem var(--font-body);
  border: 1px solid transparent; cursor: pointer; background: var(--brand); color: #140a04; }
.btn:hover { background: var(--brand-hot); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(239, 93, 93, .5); }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
form.inline { display: inline; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.grid-t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.grid-t th, table.grid-t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid-t th { color: var(--muted); font-weight: 600; background: var(--panel); position: sticky; top: 0; }
table.grid-t tr:last-child td { border-bottom: 0; }

/* signature cards */
.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.sig { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.sig:hover { border-color: #4a443d; }
.sig .t { font: 700 1.02rem/1.25 var(--font-display); color: var(--text); }
.sig .by { color: var(--dim); font-size: .85rem; }
.sig .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 8px; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; }
.plan.on { border-color: var(--brand); }
.plan .price { font: 800 2rem/1 var(--font-display); margin: 8px 0 12px; }
.plan ul { padding-left: 1.1em; margin: 0 0 18px; flex: 1; color: var(--muted); }

/* knob preview (signature page) */
.knob-row { display: flex; flex-wrap: wrap; gap: 14px; }
.ctrl { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 140px; }
.ctrl b { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ctrl output { color: var(--sun); font-weight: 600; }
.ctrl input[type=range] { width: 100%; accent-color: var(--brand); }

audio { width: 100%; margin-top: 8px; }
.code { font-family: ui-monospace, Menlo, monospace; background: #12100e; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-size: .85rem; }
.big-code { font: 800 2.4rem/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--sun); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 15; height: auto; }
  .side.open { display: block; }
  .menu-btn { display: inline-block; }
  .g2, .g3, .g4, .plans { grid-template-columns: 1fr; }
}

.app-foot { border-top: 1px solid var(--line); padding: 18px 20px; color: var(--dim); font-size: .82rem; text-align: center; }
.app-foot a { color: var(--muted); }
