/* Accounts, plans and admin pages (v10) */
a { color: var(--amber); }
.top a.brand { color: inherit; text-decoration: none; }
.usernav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.usernav a { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; }
.usernav a:hover { background: var(--panel-2); }
.usernav a.up { color: #140f2b; background: var(--violet); font-weight: 700; }
.plan-badge { font: 700 10.5px "JetBrains Mono", monospace; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: #2a2f38; color: var(--muted); }
.plan-badge.premium { background: var(--violet); color: #140f2b; }
.plan-badge.big { font-size: 12px; padding: 4px 12px; }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 5px; background: #2a2f38; color: var(--muted); }
.tag.bad { color: var(--red); }

main.auth { max-width: 460px; }
.auth-box h2 { margin: 0 0 14px; }
.form { display: grid; gap: 12px; }
.form input:not([type=checkbox]), .admin-search input, .price-row input, .matrix input[type=number], .plan-name {
  background: #0f1216; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 14px; width: 100%;
}
.form input:focus, .admin-search input:focus { outline: none; border-color: var(--amber); }
.form .go { margin-top: 4px; }
.flash { border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; background: rgba(62, 224, 197, .08); border: 1px solid rgba(62, 224, 197, .35); }
.flash.bad { background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .4); }
.flash.ok { color: var(--text); }
.small { font-size: 12.5px; }

.acct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.acct-grid.four { grid-template-columns: repeat(4, 1fr); }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 2px; }
.stat b { font-size: 20px; }
.stat span { font-size: 13px; color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.plan-card { position: relative; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.plan-card.pro { border-color: rgba(157, 140, 255, .55); background: linear-gradient(180deg, rgba(157, 140, 255, .1), var(--panel-2) 140px); }
.plan-card.current { box-shadow: 0 0 0 2px var(--teal); }
.plan-card h3 { margin: 0 0 6px; }
.price { font-size: 28px; font-weight: 700; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.price.alt { font-size: 18px; color: var(--violet); }
.plan-card ul { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; font-size: 13.5px; }
.plan-card li::before { content: "✓ "; color: var(--teal); font-weight: 700; }
.plan-card li.no { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(139, 147, 161, .5); }
.plan-card li.no::before { content: "✕ "; color: var(--red); text-decoration: none; display: inline-block; }
.cur-tag { position: absolute; top: 14px; right: 14px; font-size: 12px; color: var(--teal); }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-opt { display: grid; gap: 6px; align-content: start; background: rgba(0, 0, 0, .18); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.pp-box { min-height: 46px; margin-top: 4px; }
.redeem { margin-top: 14px; font-size: 14px; }
.redeem summary { cursor: pointer; color: var(--muted); }
.redeem .lic-row { margin-top: 10px; }
.redeem input { flex: 1 1 260px; min-width: 0; background: #0f1216; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: 13px "JetBrains Mono", monospace; }
.acct-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.acct-forms .cm-go, .form-actions .cm-go { justify-self: start; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px; border-bottom: 1px solid #20242b; vertical-align: middle; }
.tbl a { text-decoration: none; }
.tbl small { margin-left: 4px; }
.matrix td:not(:first-child), .matrix th:not(:first-child) { text-align: center; width: 170px; }
.matrix input[type=number] { width: 100px; text-align: center; }
.plan-name { width: 140px !important; text-align: center; font-weight: 700; }
.tick input { width: 18px; height: 18px; accent-color: var(--violet); }
.price-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; max-width: 620px; }

.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.admin-tabs a { color: var(--muted); text-decoration: none; padding: 9px 12px; border-bottom: 2px solid transparent; }
.admin-tabs a.on, .admin-tabs a:hover { color: var(--text); border-bottom-color: var(--amber); }
.admin-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.admin-search input { width: 260px; }
.admin-form { grid-template-columns: 1fr 1fr; max-width: 760px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; grid-column: 1 / -1; margin: 6px 0 10px; }
.ghost.danger { color: var(--red); border-color: rgba(255, 107, 107, .4); }
.help ol { padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.help code, .usernav code, p code { font: 12.5px "JetBrains Mono", monospace; background: #0f1216; padding: 1px 5px; border-radius: 5px; }
.pager { display: flex; gap: 4px; margin-top: 12px; }
.pager a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--text); }
.pager a.on { background: var(--amber); color: #1a1205; }

/* in the mixer */
.locked-feature { opacity: .5; }
.pro-lock { font: 700 9.5px "JetBrains Mono", monospace; color: #140f2b; background: var(--violet); padding: 1px 5px; border-radius: 99px; margin-left: 4px; vertical-align: 1px; }
.upgrade-box { display: grid; gap: 10px; justify-items: start; }

@media (max-width: 760px) {
  .acct-grid, .acct-grid.four, .plans, .pay-opts, .acct-forms, .admin-form, .price-row { grid-template-columns: 1fr; }
  .tbl { display: block; overflow-x: auto; white-space: nowrap; }
  .matrix td:not(:first-child), .matrix th:not(:first-child) { width: auto; }
}
.top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 640px) { .top-right { align-items: flex-start; } }
.acct-forms .form { align-content: start; }

/* banners (DJ Admin > Banners) */
.banner { max-width: 960px; margin: 16px auto 0; padding: 0 16px; }
.banner-bottom { margin: 0 auto 8px; }
.banner-img img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.banner-text > div, .banner-text > a.banner-link, .banner-text { --bc: #9d8cff; }
.banner-text { display: block; }
.banner-text .banner-txt { display: grid; gap: 2px; min-width: 0; }
.banner-text .banner-txt b { font-size: 16px; }
.banner-text .banner-txt span { color: var(--muted); font-size: 14px; }
.banner-text { position: relative; }
.banner-text::before { content: ""; position: absolute; inset: 0 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--bc) 55%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--bc) 22%, var(--panel)), var(--panel)); z-index: -1; }
.banner-text { z-index: 0; }
.banner-text > .banner-txt, .banner-text > .banner-link { padding: 14px 18px; }
.banner-text:has(.banner-btn) { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.banner-text:has(.banner-btn) .banner-txt { padding: 14px 0 14px 18px; }
.banner-btn { margin-right: 18px; padding: 9px 16px; border-radius: 9px; background: var(--bc); color: #111; font-weight: 700; text-decoration: none; white-space: nowrap; }
.banner-link { display: block; color: inherit; text-decoration: none; }
.banner-preview .banner { margin: 0 0 14px; padding: 0; max-width: none; }
.banner-preview .banner-text::before { inset: 0; }
main + .banner-bottom, .banner + main { margin-top: 16px; }
@media (max-width: 640px) { .banner-text:has(.banner-btn) .banner-btn { margin: 0 18px 14px; } }

/* website home page */
main.home { max-width: 1040px; }
.hero { text-align: center; padding: 34px 10px 10px; display: grid; gap: 14px; justify-items: center; }
.hero h2 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0; letter-spacing: -0.02em; max-width: 760px; }
.hero > p { color: var(--muted); max-width: 640px; margin: 0; font-size: 17px; }
.hero .notes { font-size: 14px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.dl-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.btn.big { padding: 14px 24px; font-size: 16px; border-radius: 12px; text-decoration: none; }
.btn.off { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feat-grid div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.feat-grid span { color: var(--muted); font-size: 14px; }
.plan-card .btn, .plan-card .ghost { display: inline-block; text-decoration: none; }
footer a { color: var(--muted); }
.app-note { max-width: 928px; margin: 14px auto 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; background: rgba(157, 140, 255, .1); border: 1px solid rgba(157, 140, 255, .4); }
.app-note.bad { background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .4); }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr; } }
.mail-text { white-space: pre-wrap; font: 12.5px "JetBrains Mono", monospace; background: #0f1216; padding: 10px; border-radius: 8px; max-width: 520px; color: var(--text); }

/* legal pages, cookie notice */
main.legal { max-width: 820px; }
.legal-page h2 { margin: 0 0 4px; }
.legal-page h3 { margin: 22px 0 8px; font-size: 16px; }
.legal-page p, .legal-page li { line-height: 1.6; color: #cfd4dc; }
.legal-page ul { padding-left: 20px; }
footer .legal-links a { color: var(--muted); }
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; z-index: 50; display: flex; gap: 12px; align-items: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.cookie-note span { flex: 1; }
.legal-edit { width: 100%; background: #0f1216; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: 13px/1.5 "JetBrains Mono", monospace; resize: vertical; }
.waiver { margin: 4px 0 12px; font-size: 13px; }
#payOpts.wait { opacity: .45; pointer-events: none; filter: grayscale(.6); }
.danger-zone { margin-top: 12px; }
.danger-zone summary { cursor: pointer; color: var(--red); }
.danger-zone .form { max-width: 460px; margin-top: 10px; }

/* v13: covers, playlists, stems, tracklist */
.track-head .cover { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex: none; }
.lib-row .cover { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; flex: none; }
.lib-row .cover.none { display: inline-grid; place-items: center; background: #252a33; color: var(--muted); font-size: 16px; }
.lib-row .nm { display: grid; gap: 1px; }
.lib-row .nm small { font-size: 11.5px; }
.lib-row .btns select { background: #0f1216; color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 3px 4px; font-size: 13px; max-width: 120px; }
.lib-row .btns button.locked-feature { opacity: .55; }
.pl-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.pl-bar .chip { background: #1a1e25; border: 1px solid var(--line); color: var(--text); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.pl-bar .chip.on { border-color: var(--amber); background: rgba(255, 181, 71, .12); }
.pl-bar .chip.add { border-style: dashed; color: var(--muted); }
.pl-bar .pl-actions { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.stems-panel { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 2px 0 10px; display: grid; gap: 10px; }
.stems-head { display: grid; gap: 2px; }
.stems-pick { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.stems-pick .check { font-size: 13px; }
.stems-files { display: grid; gap: 6px; }
.stem-file { display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.stem-file audio { width: 100%; height: 32px; }
.stems-files .btn { justify-self: start; text-decoration: none; }
.tracklist { margin: 10px 0 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.tracklist textarea { width: 100%; background: #0f1216; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: 13px/1.6 "JetBrains Mono", monospace; resize: vertical; }
.tl-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#loudInfo { margin: 6px 0; }
@media (max-width: 640px) { .stem-file { grid-template-columns: 1fr auto; } .stem-file audio { grid-column: 1 / -1; } }
.lib-row { grid-template-columns: 38px minmax(0, 1fr) auto auto; }
.lib-row .nm { white-space: normal; }
.lib-row .nm > :first-child, .lib-row .nm { overflow: hidden; text-overflow: ellipsis; }
.lib-row .btns button { padding: 4px 8px; }
@media (max-width: 760px) {
  .lib-row { grid-template-columns: 38px minmax(0, 1fr); }
  .lib-row .meta, .lib-row .btns { grid-column: 2; }
  .lib-row .btns { flex-wrap: wrap; }
}

/* ---- v16: help, tour, report, trial, codes, admin stats ---- */
.help-fab { position: fixed; left: 16px; bottom: 16px; z-index: 60; }
.help-fab > button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--amber); font: 700 18px/1 inherit; cursor: pointer; box-shadow: 0 4px 16px #0008; }
.help-fab > button:hover { border-color: var(--amber); }
.help-menu { position: absolute; left: 0; bottom: 50px; min-width: 230px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 8px 28px #000a; }
.help-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.help-menu a:hover { background: var(--panel-2); }
.tour-hole { position: fixed; z-index: 90; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(5, 7, 10, .72); border: 2px solid var(--amber); pointer-events: none; transition: all .2s; }
.tour-card { position: fixed; z-index: 91; background: var(--panel); border: 1px solid var(--amber); border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 40px #000c; }
.tour-card h4 { margin: 2px 0 6px; font-size: 16px; } .tour-card p { margin: 0 0 12px; color: var(--text); font-size: 14px; line-height: 1.45; }
.tour-n { color: var(--muted); font-size: 12px; }
.tour-btns { display: flex; gap: 8px; align-items: center; } .tour-btns span { flex: 1; }
.tour-offer { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.help-toast { position: fixed; left: 50%; bottom: 70px; transform: translate(-50%, 20px); opacity: 0; background: var(--panel-2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; z-index: 95; transition: all .25s; pointer-events: none; }
.help-toast.show { opacity: 1; transform: translate(-50%, 0); }
.rpt-back { position: fixed; inset: 0; z-index: 100; background: rgba(5, 7, 10, .75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rpt-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; display: grid; gap: 10px; }
.rpt-box h3 { margin: 0; } .rpt-msg { min-height: 18px; font-size: 13px; color: var(--muted); }
.bad-text { color: var(--red); } .ok-text { color: var(--teal); }
.trial-box { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; padding: 14px 16px; border: 1px dashed var(--teal); border-radius: 12px; background: #3ee0c50d; }
.code-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 14px; }
.code-row input { background: #0f1216; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; text-transform: uppercase; width: 200px; }
.help-steps { padding-left: 20px; display: grid; gap: 10px; } .faq { border-top: 1px solid var(--line); padding: 10px 0; } .faq summary { cursor: pointer; font-weight: 600; } .faq p { margin: 8px 0 0; color: var(--muted); }
.range-tabs { display: flex; gap: 6px; flex-wrap: wrap; } .range-tabs a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); font-size: 13px; } .range-tabs a.on { border-color: var(--amber); color: var(--amber); }
.chart { width: 100%; height: auto; color: var(--text); }
.msg-body { background: var(--panel-2); border-radius: 10px; padding: 12px 14px; margin: 10px 0; white-space: pre-wrap; }
.msg-reply { border-left: 3px solid var(--teal); padding: 6px 12px; margin: 10px 0; color: var(--muted); }
.msg-meta { background: #0f1216; padding: 10px; border-radius: 8px; overflow: auto; font-size: 12px; white-space: pre-wrap; }
.tbl tr.off { opacity: .5; } .row-actions form { display: flex; gap: 6px; flex-wrap: wrap; }
.auth-box.wide { max-width: 640px; }

.mini { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 7px; font: 12px "JetBrains Mono", monospace; padding: 4px 8px; cursor: pointer; }
.mini:hover { border-color: var(--amber); color: var(--text); } .mini.danger:hover { border-color: var(--red); color: var(--red); }
