/* Cabinet styles. One file, in cascade order: theme → restyle → mini app →
   shared bits. Page-specific: admin.css, finance.css. */

/* ══ Base theme (monochrome, matches elysiummusic.org) (was dev-theme.css) ══ */
/* ════════════════════════════════════════════════════════════
   DEV THEME — автогенерация из style.css: монохром + шрифты визитки
   (Geologica/Golos). Грузится ТОЛЬКО на dev.elysiummusic.org.
   НЕ редактировать вручную — пересобирается: python gen_dev_theme.py
   ════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   Elysium Music — Design System
   Fonts: Syne (display) + DM Sans (body)
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #08080a;
  --bg-2:        #0f1016;
  --bg-3:        #14151c;
  --bg-4:        #1a1b24;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --violet:      #ffffff;
  --violet-2:    #cfcfd6;
  --pink:        #cfcfd6;
  --pink-2:      #e9e9ef;
  --grad:        linear-gradient(135deg, #ffffff, #cfcfd6);
  --grad-text:   linear-gradient(90deg, #cfcfd6, #e9e9ef);
  --grad-subtle: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.08));
  --text:        #f0f1f5;
  --text-2:      #9899a8;
  --text-3:      #62637a;
  --green:       #22c55e;
  --yellow:      #eab308;
  --red:         #ef4444;
  --orange:      #f97316;
  --blue:        #cfcfd6;
  --grey:        #6b7280;
  --sidebar-w:   232px;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --font-display: 'Geologica', sans-serif;
  --font-body:    'Golos Text', sans-serif;
  --shadow:       0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:    0 8px 48px rgba(0,0,0,.6);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--text);
  min-height: 100vh; font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; } code { font-family: 'JetBrains Mono','Fira Code',monospace; }
pre { white-space: pre-wrap; word-break: break-word; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }

/* ════════════════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════════════════ */
.login-root { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; position:relative; overflow:hidden; }
.login-bg { position:fixed; inset:0; z-index:0; pointer-events:none; }
.orb { position:absolute; border-radius:50%; filter:blur(80px); opacity:0.35; animation:orbFloat 8s ease-in-out infinite; }
.orb-1 { width:600px; height:600px; background:radial-gradient(circle, #ffffff, transparent 70%); top:-200px; left:-200px; animation-delay:0s; }
.orb-2 { width:500px; height:500px; background:radial-gradient(circle, #cfcfd6, transparent 70%); bottom:-150px; right:-100px; animation-delay:-4s; }
.orb-3 { width:300px; height:300px; background:radial-gradient(circle, #cfcfd6, transparent 70%); top:50%; left:50%; transform:translate(-50%,-50%); animation-delay:-2s; }
@keyframes orbFloat { 0%,100%{transform:translate(0,0);} 50%{transform:translate(20px,-30px);} }
.grid-overlay { position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px); background-size:60px 60px; }
.login-card { position:relative; z-index:1; width:100%; max-width:420px; background:rgba(20,21,28,0.88); backdrop-filter:blur(24px); border:1px solid var(--border-2); border-radius:var(--radius-lg); padding:44px 40px; box-shadow:var(--shadow-lg),0 0 0 1px rgba(255,255,255,.1); animation:cardIn .5s cubic-bezier(.16,1,.3,1) both; }
@keyframes cardIn { from{opacity:0;transform:translateY(24px) scale(.98);} to{opacity:1;transform:none;} }
.login-logo { display:flex; align-items:center; gap:10px; margin-bottom:28px; }
.logo-icon { flex-shrink:0; }
.logo-wordmark { font-family:var(--font-display); font-size:18px; font-weight:700; background:var(--grad-text); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.login-headline { font-family:var(--font-display); font-size:28px; font-weight:800; line-height:1.2; margin-bottom:8px; }
.login-sub { color:var(--text-2); font-size:14px; margin-bottom:28px; line-height:1.5; }
.login-error { display:flex; align-items:center; gap:8px; background:rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.25); color:#fca5a5; font-size:13px; padding:10px 14px; border-radius:var(--radius-sm); margin-bottom:20px; }
.tg-login-btn { display:flex; align-items:center; gap:12px; width:100%; padding:14px 20px; background:var(--grad); border-radius:var(--radius); font-family:var(--font-display); font-size:15px; font-weight:600; color:#fff; cursor:pointer; transition:filter .2s,transform .15s,box-shadow .2s; box-shadow:0 4px 20px rgba(255,255,255,.4); position:relative; overflow:hidden; text-decoration:none; }
.tg-login-btn::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,.15),transparent); opacity:0; transition:opacity .2s; }
.tg-login-btn:hover { filter:brightness(1.1); transform:translateY(-1px); box-shadow:0 8px 32px rgba(255,255,255,.5); }
.tg-login-btn:hover::before { opacity:1; }
.tg-icon { width:22px; height:22px; flex-shrink:0; }
.tg-login-btn span { flex:1; }
.btn-arrow { width:18px; height:18px; flex-shrink:0; opacity:.7; }
.login-note { font-size:12px; color:var(--text-3); text-align:center; margin-top:14px; line-height:1.5; }
.login-divider { height:1px; background:var(--border); margin:24px 0; }
.login-footer { text-align:center; font-size:12px; color:var(--text-3); }
.login-footer a { color:var(--violet-2); transition:color .15s; }
.login-footer a:hover { color:var(--pink-2); }

/* ════════════════════════════════════════════════════════
   APP SHELL
   ════════════════════════════════════════════════════════ */
.app-shell { display:flex; min-height:100vh; }
.sidebar { width:var(--sidebar-w); flex-shrink:0; background:var(--bg-2); border-right:1px solid var(--border); position:fixed; top:0; left:0; bottom:0; z-index:100; display:flex; flex-direction:column; transition:transform .3s cubic-bezier(.16,1,.3,1); }
.sidebar-inner { display:flex; flex-direction:column; height:100%; padding:0; overflow-y:auto; }
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; flex-shrink: 0;
  margin-bottom: 0;
}
.sidebar-logo-img {
  height: 32px; width: 32px; min-width: 32px;
  filter: invert(1);
  opacity: 0.9; transition: opacity .15s;
  object-fit: contain;
}
.sidebar-logo-img:hover { opacity: 1; }
.sidebar-user { display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--border); margin-bottom:0; position: relative; }
.sidebar-user-clickable { cursor: pointer; transition: background .15s; }
.sidebar-user-clickable:hover { background: var(--bg-3); }
.sidebar-user-clickable:hover .user-arrow { opacity: 1; transform: translateX(2px); }
.user-arrow {
  width: 14px; height: 14px; color: var(--text-3);
  opacity: .5; margin-left: auto; flex-shrink: 0;
  transition: opacity .15s, transform .15s;
}
.user-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.user-avatar-fallback { width:36px; height:36px; border-radius:50%; background:var(--grad); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:15px; font-weight:700; color:#fff; flex-shrink:0; }
.user-info { display:flex; flex-direction:column; min-width:0; flex: 1; }
.user-name { font-size:14px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-username { font-size:12px; color:var(--text-3); }

.sidebar-nav { flex:1; display:flex; flex-direction:column; gap:2px; padding:14px 10px 8px; }
.nav-section-label { font-size:10px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); padding:0 12px; margin-bottom:4px; margin-top:4px; }

/* New nav style — larger icons, outline style, more breathing room */
.nav-item {
  display:flex; align-items:center; gap:14px;
  padding:11px 14px;
  border-radius:10px;
  font-size:14px; font-weight:500;
  color:var(--text-2);
  transition:background .15s, color .15s;
  white-space:nowrap;
  border: 1px solid transparent;
}
.nav-item svg {
  width:22px; height:22px;
  flex-shrink:0;
  stroke: currentColor;
  color: var(--text-3);
  transition: color .15s;
}
.nav-item span {
  flex:1;
  overflow:hidden; text-overflow:ellipsis;
  min-width: 0;
}
.nav-item:hover { background:var(--bg-3); color:var(--text); }
.nav-item:hover svg { color: var(--text); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
  color: var(--violet-2);
  border-color: rgba(255,255,255,.25);
}
.nav-item.active svg { color: var(--violet-2); }

/* Nav badge — compact, not overlapping text */
.nav-badge {
  font-size:11px; font-weight:600;
  padding: 1px 7px;
  border-radius: 999px;
  background:var(--bg-5);
  color:var(--text-2);
  flex-shrink: 0;
  line-height: 1.5;
  margin-left: 4px;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,.25); color: var(--violet-2); }
.nav-badge.accent { background:rgba(255,255,255,.25); color:var(--violet-2); }
.nav-badge.green  { background:rgba(34,197,94,.2); color:var(--green); }
.nav-badge.yellow { background:rgba(234,179,8,.2); color:var(--yellow); }
.nav-badge.red    { background:rgba(239,68,68,.2); color:var(--red); }
.nav-badge.grey   { background:var(--bg-4); color:var(--text-3); }

.sidebar-bottom {
  padding:12px 10px 16px;
  border-top:1px solid var(--border);
  display:flex; flex-direction:column;
  gap:2px; margin-top:auto;
}
.support-btn, .logout-btn {
  display:flex; align-items:center; gap:14px;
  padding:11px 14px;
  border-radius:10px;
  font-size:14px; font-weight:500;
  color:var(--text-3);
  transition:background .15s, color .15s;
}
.support-btn svg, .logout-btn svg {
  width:20px; height:20px; flex-shrink:0;
  stroke: currentColor;
}
.support-btn:hover { background:var(--bg-3); color:var(--text-2); }
.logout-btn:hover { background:rgba(239,68,68,.1); color:#fca5a5; }
.main-content { flex:1; margin-left:var(--sidebar-w); padding:32px 36px; min-height:100vh; }
.mobile-header { display:none; }
.page-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:28px; flex-wrap:wrap; }
.page-header-left { display:flex; align-items:baseline; gap:12px; }
.page-title { font-family:var(--font-display); font-size:26px; font-weight:800; }
.page-count { font-size:14px; color:var(--text-3); }
.search-input-wrap { position:relative; display:flex; align-items:center; }
.search-icon { position:absolute; left:12px; width:16px; height:16px; color:var(--text-3); pointer-events:none; }
.search-input { background:var(--bg-3); border:1px solid var(--border); border-radius:var(--radius-sm); padding:9px 36px; font-family:var(--font-body); font-size:14px; color:var(--text); outline:none; width:260px; transition:border-color .15s; }
.search-input::placeholder { color:var(--text-3); }
.search-input:focus { border-color:var(--violet); }
.search-clear { position:absolute; right:10px; color:var(--text-3); font-size:18px; cursor:pointer; transition:color .15s; }
.search-clear:hover { color:var(--text); }

/* ── Releases grid ── */
.releases-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.release-card { display:flex; flex-direction:column; background:var(--bg-3); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:border-color .2s,transform .2s,box-shadow .2s; cursor:pointer; text-decoration:none; color:inherit; position:relative; }
.release-card:hover { border-color:rgba(255,255,255,.35); transform:translateY(-2px); box-shadow:0 8px 32px rgba(0,0,0,.4),0 0 0 1px rgba(255,255,255,.15); }
.release-card::before { content:''; position:absolute; inset:0; background:var(--grad-subtle); opacity:0; transition:opacity .2s; pointer-events:none; border-radius:var(--radius); }
.release-card:hover::before { opacity:1; }
.card-cover { position:relative; width:100%; aspect-ratio:1/1; background:var(--bg-4); overflow:hidden; }
.card-cover img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.release-card:hover .card-cover img { transform:scale(1.03); }
.card-cover.no-cover img { display:none; }
.cover-placeholder { position:absolute; inset:0; display:none; align-items:center; justify-content:center; }
.card-cover.no-cover .cover-placeholder { display:flex; }
.cover-placeholder svg { width:48px; height:48px; color:var(--text-3); opacity:.3; }
.card-status-dot { position:absolute; top:10px; right:10px; width:10px; height:10px; border-radius:50%; border:2px solid var(--bg-3); }
.card-info { padding:14px 16px; display:flex; flex-direction:column; gap:6px; flex:1; }
.card-top { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.card-type { font-size:11px; color:var(--text-3); text-transform:uppercase; letter-spacing:.05em; font-weight:500; }
.card-title { font-family:var(--font-display); font-size:16px; font-weight:700; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-artist { font-size:13px; color:var(--text-2); }
.card-upc { font-size:11px; color:var(--text-3); }
.card-upc code { color:var(--text-2); }
.card-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:2px; }
.meta-item { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--text-3); }
.meta-item svg { width:11px; height:11px; }
.card-services { display:flex; gap:4px; flex-wrap:wrap; }
.svc-tag { font-size:14px; line-height:1; }
.card-footer { display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:8px; border-top:1px solid var(--border); }
.card-date { font-size:11px; color:var(--text-3); }
.card-arrow { font-size:14px; color:var(--text-3); transition:transform .2s,color .2s; }
.release-card:hover .card-arrow { transform:translateX(3px); color:var(--violet-2); }

/* Status badges */
.card-badge { font-size:11px; font-weight:600; padding:3px 9px; border-radius:999px; display:inline-block; white-space:nowrap; }
.card-badge.large { font-size:13px; padding:5px 14px; }
.status-badge-new               { background:rgba(255,255,255,.2);   color:#e9e9ef; border:1px solid rgba(255,255,255,.2); }
.status-badge-moderation        { background:rgba(234,179,8,.2);    color:#fde047; border:1px solid rgba(234,179,8,.2); }
.status-badge-accepted          { background:rgba(34,197,94,.15);   color:#86efac; border:1px solid rgba(34,197,94,.2); }
.status-badge-awaiting_payment  { background:rgba(239,68,68,.15);   color:#fca5a5; border:1px solid rgba(239,68,68,.2); }
.status-badge-payment_review    { background:rgba(249,115,22,.15);  color:#fdba74; border:1px solid rgba(249,115,22,.2); }
.status-badge-awaiting_contract { background:rgba(234,179,8,.15);   color:#fde047; border:1px solid rgba(234,179,8,.2); }
.status-badge-awaiting_signature{ background:rgba(249,115,22,.15);  color:#fdba74; border:1px solid rgba(249,115,22,.2); }
.status-badge-awaiting_delivery { background:rgba(255,255,255,.15); color:var(--violet-2); border:1px solid rgba(255,255,255,.2); }
.status-badge-delivered         { background:rgba(34,197,94,.15);   color:#86efac; border:1px solid rgba(34,197,94,.2); }
.status-badge-rejected          { background:rgba(107,114,128,.15); color:#9ca3af; border:1px solid rgba(107,114,128,.2); }
.status-badge-deleted           { background:rgba(107,114,128,.1);  color:var(--text-3); border:1px solid var(--border); }
.card-status-dot.status-new              { background:var(--blue); }
.card-status-dot.status-moderation       { background:var(--yellow); }
.card-status-dot.status-awaiting_payment { background:var(--red); }
.card-status-dot.status-awaiting_contract,
.card-status-dot.status-awaiting_signature{ background:var(--orange); }
.card-status-dot.status-awaiting_delivery{ background:var(--violet-2); }
.card-status-dot.status-delivered        { background:var(--green); }
.card-status-dot.status-rejected         { background:var(--grey); }

/* Pagination */
.pagination { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:32px; }
.page-btn { padding:8px 18px; border-radius:var(--radius-sm); background:var(--bg-3); border:1px solid var(--border); font-size:14px; color:var(--text-2); transition:background .15s,color .15s; }
.page-btn:hover { background:var(--bg-4); color:var(--text); }
.page-numbers { display:flex; align-items:center; gap:4px; }
.page-num { width:36px; height:36px; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; font-size:14px; color:var(--text-2); transition:background .15s; }
.page-num:hover { background:var(--bg-3); }
.page-num.active { background:var(--grad); color:#fff; font-weight:600; }
.page-ellipsis { color:var(--text-3); padding:0 4px; }

/* Empty state */
.empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:80px 24px; gap:16px; text-align:center; }
.empty-icon { width:72px; height:72px; border-radius:20px; background:var(--bg-3); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; margin-bottom:8px; }
.empty-icon svg { width:32px; height:32px; color:var(--text-3); }
.empty-state h3 { font-family:var(--font-display); font-size:20px; font-weight:700; }
.empty-state p { color:var(--text-2); font-size:14px; max-width:320px; line-height:1.5; }

/* Buttons */
.btn-primary { display:inline-flex; align-items:center; gap:8px; padding:10px 22px; border-radius:var(--radius); background:var(--grad); color:#fff; font-family:var(--font-display); font-size:14px; font-weight:600; transition:filter .2s,transform .15s; text-decoration:none; cursor:pointer; }
.btn-primary:hover { filter:brightness(1.1); transform:translateY(-1px); }
.btn-primary svg { width:16px; height:16px; }

/* ════════════════════════════════════════════════════════
   RELEASE DETAIL
   ════════════════════════════════════════════════════════ */
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-3); margin-bottom:24px; }
.breadcrumb a { color:var(--violet-2); transition:color .15s; }
.breadcrumb a:hover { color:var(--pink-2); }
.bc-sep { color:var(--text-3); }
.detail-layout { display:grid; grid-template-columns:340px 1fr; gap:24px; align-items:start; }
.detail-left,.detail-right { display:flex; flex-direction:column; gap:16px; }
.detail-hero { background:var(--bg-3); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.detail-cover { width:100%; aspect-ratio:1/1; background:var(--bg-4); position:relative; overflow:hidden; }
.detail-cover img { width:100%; height:100%; object-fit:cover; }
.detail-cover.no-cover img { display:none; }
.detail-cover.no-cover .cover-placeholder { display:flex; }
.detail-cover .cover-placeholder { position:absolute; inset:0; display:none; align-items:center; justify-content:center; }
.detail-cover .cover-placeholder svg { width:64px; height:64px; color:var(--text-3); opacity:.3; }
.detail-hero-info { padding:20px; display:flex; flex-direction:column; gap:8px; }
.detail-title { font-family:var(--font-display); font-size:22px; font-weight:800; line-height:1.2; }
.detail-artist { font-size:15px; color:var(--text-2); }
.detail-type { font-size:13px; color:var(--text-3); }
.upc-block { display:flex; align-items:center; gap:8px; background:var(--bg-4); border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px 12px; margin-top:4px; }
.upc-label { font-size:11px; color:var(--text-3); font-weight:600; flex-shrink:0; }
.upc-code { font-size:13px; flex:1; color:var(--text); letter-spacing:.03em; }
.copy-btn { color:var(--text-3); transition:color .15s; display:flex; align-items:center; }
.copy-btn svg { width:14px; height:14px; }
.copy-btn:hover { color:var(--violet-2); }
.copy-btn.copied { color:var(--green); }
.section-card { background:var(--bg-3); border:1px solid var(--border); border-radius:var(--radius); padding:20px; }
.section-title { font-family:var(--font-display); font-size:13px; font-weight:700; color:var(--text-3); text-transform:uppercase; letter-spacing:.08em; margin-bottom:14px; }
.timeline { display:flex; flex-direction:column; }
.timeline-item { display:flex; align-items:flex-start; gap:14px; padding:10px 0; position:relative; }
.timeline-item::before { content:''; position:absolute; left:7px; top:24px; bottom:-4px; width:1px; background:var(--border); }
.timeline-item:last-child::before { display:none; }
.tl-dot { width:15px; height:15px; border-radius:50%; flex-shrink:0; border:2px solid var(--border); background:var(--bg-4); margin-top:2px; }
.timeline-item.done .tl-dot { background:var(--grad); border-color:transparent; }
.tl-content { display:flex; flex-direction:column; gap:2px; }
.tl-label { font-size:14px; font-weight:500; }
.tl-date { font-size:12px; color:var(--text-3); }
.info-grid { display:flex; flex-direction:column; }
.info-row { display:grid; grid-template-columns:140px 1fr; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); align-items:start; }
.info-row:last-child { border-bottom:none; }
.info-label { font-size:12px; color:var(--text-3); font-weight:500; padding-top:1px; }
.info-value { font-size:14px; color:var(--text); word-break:break-word; }
.lyrics-block { background:var(--bg-4); border-radius:var(--radius-sm); padding:14px; font-size:13px; color:var(--text-2); line-height:1.7; max-height:200px; overflow-y:auto; }
.platforms-list { display:flex; flex-wrap:wrap; gap:8px; }
.platform-btn { display:flex; align-items:center; gap:8px; padding:9px 16px; border-radius:var(--radius-sm); font-size:13px; font-weight:500; transition:filter .15s,transform .15s; }
.platform-btn:hover { filter:brightness(1.1); transform:translateY(-1px); }
.platform-btn svg { width:16px; height:16px; }
.platform-btn.spotify { background:rgba(30,215,96,.15); color:#1ed760; border:1px solid rgba(30,215,96,.2); }
.platform-btn.apple { background:rgba(252,60,68,.15); color:#fc3c44; border:1px solid rgba(252,60,68,.2); }
.services-list { display:flex; flex-direction:column; gap:8px; }
.service-item { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; background:var(--bg-4); border-radius:var(--radius-sm); font-size:14px; }
.service-price { font-weight:600; color:var(--violet-2); }
.files-list { display:flex; flex-direction:column; gap:8px; }
.file-link { display:flex; align-items:center; gap:8px; padding:10px 14px; border-radius:var(--radius-sm); background:var(--bg-4); border:1px solid var(--border); font-size:13px; color:var(--text-2); transition:border-color .15s,color .15s; }
.file-link:hover { border-color:var(--violet); color:var(--text); }
.file-link svg { width:16px; height:16px; flex-shrink:0; }
.support-card-inner { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.support-card h3 { font-family:var(--font-display); font-size:15px; font-weight:700; margin-bottom:4px; }
.support-card p { font-size:13px; color:var(--text-2); }
.empty-note { font-size:13px; color:var(--text-3); }

/* ════════════════════════════════════════════════════════
   MOBILE
   ════════════════════════════════════════════════════════ */
.sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:99; backdrop-filter:blur(2px); }

@media (max-width:900px) {
  .sidebar { transform:translateX(-100%); }
  .sidebar.open { transform:translateX(0); box-shadow:var(--shadow-lg); }
  .sidebar-overlay.visible { display:block; }
  .main-content { margin-left:0; padding:0 16px 24px; }
  .mobile-header { display:flex; align-items:center; gap:14px; padding:16px 0 20px; margin-bottom:8px; }
  .menu-toggle { width:38px; height:38px; border-radius:var(--radius-sm); background:var(--bg-3); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .menu-toggle svg { width:18px; height:18px; color:var(--text); }
  .mobile-title { font-family:var(--font-display); font-size:17px; font-weight:700; background:var(--grad-text); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
  .page-header { flex-direction:column; align-items:flex-start; gap:12px; }
  .search-input { width:100%; }
  .search-form,.search-input-wrap { width:100%; }
  .releases-grid { grid-template-columns:1fr; }
  .detail-layout { grid-template-columns:1fr; }
  .info-row { grid-template-columns:120px 1fr; }
  .support-card-inner { flex-direction:column; align-items:flex-start; }
}
@media (max-width:480px) {
  .login-card { padding:32px 24px; }
  .main-content { padding:0 12px 24px; }
}

/* ── Telegram Widget container ─────────────────────────── */
.tg-widget-wrap {
  display: flex; justify-content: center;
  margin: 8px 0;
  min-height: 48px;
  position: relative;
}
.tg-widget-wrap iframe {
  border-radius: 14px !important;
  transition: transform .15s, filter .15s;
}
.tg-widget-wrap:hover iframe {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.tg-widget-wrap.loading {
  opacity: .5; pointer-events: none;
}

.tg-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  font-size: 13px; color: var(--text-3);
  padding: 4px 0 12px;
}
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--border-2);
  border-top-color: var(--violet-2);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tg-widget-error {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fca5a5;
  font-size: 12px; line-height: 1.5;
  text-align: center;
}

/* ════════════════════════════════════════════════════════
   LOGO IMAGE (adaptive)
   ════════════════════════════════════════════════════════ */
.logo-img {
  width: 28px; height: 28px;
  object-fit: contain; flex-shrink: 0;
  /* Black logo → white for dark theme */
  filter: brightness(0) invert(1);
  transition: filter .2s;
}
.login-card .logo-img { width: 32px; height: 32px; }
@media (prefers-color-scheme: light) {
  .logo-img { filter: brightness(0); }
}

/* ════════════════════════════════════════════════════════
   ADMIN STYLES
   ════════════════════════════════════════════════════════ */
.admin-badge {
  background: linear-gradient(90deg, rgba(124,58,237,.3), rgba(219,39,119,.2));
  color: var(--violet-2) !important;
  font-size: 10px !important;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(124,58,237,.3);
}

/* Admin table */
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-3);
}
.admin-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.admin-table thead tr {
  border-bottom: 1px solid var(--border);
}
.admin-table th {
  padding: 11px 14px; text-align: left;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3); white-space: nowrap;
}
.admin-table tbody tr.admin-row {
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s;
}
.admin-table tbody tr {
  border-bottom: 1px solid var(--border);
}
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg-4); }
.admin-table td { padding: 10px 14px; vertical-align: middle; }

.td-id { font-family: monospace; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.td-cover { width: 48px; }
.table-cover {
  width: 40px; height: 40px; border-radius: 6px;
  overflow: hidden; background: var(--bg-4); position: relative; flex-shrink: 0;
}
.table-cover img { width: 100%; height: 100%; object-fit: cover; }
.table-cover.no-cover img { display: none; }
.table-cover .cover-ph { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.table-cover.no-cover .cover-ph { display: flex; }
.table-cover .cover-ph svg { width: 20px; height: 20px; color: var(--text-3); opacity: .4; }
.td-title { min-width: 140px; }
.table-title { display: block; font-weight: 500; }
.table-type { font-size: 11px; color: var(--text-3); text-transform: uppercase; }
.td-user .tg-link { color: var(--violet-2); }
.td-upc code { font-size: 11px; color: var(--text-2); }
.td-date, .text-dim { color: var(--text-3); font-size: 13px; }
.td-action .btn-table-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--bg-4); color: var(--text-2);
  font-size: 16px; transition: background .15s, color .15s;
}
.td-action .btn-table-action:hover { background: var(--violet); color: #fff; }

/* Admin action buttons */
.admin-actions-card .section-title { margin-bottom: 16px; }
.action-group {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.action-group:last-child { border-bottom: none; padding-bottom: 0; }
.action-group-danger { margin-top: 4px; }
.action-hint {
  width: 100%; font-size: 13px; color: var(--text-2);
  margin-bottom: 4px;
}
.action-form .action-group { flex-direction: column; }
.input-field {
  background: var(--bg-4); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px;
  font-family: var(--font-body); font-size: 14px; color: var(--text);
  outline: none; transition: border-color .15s;
}
.input-field:focus { border-color: var(--violet); }

.btn-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: filter .15s, transform .1s;
  border: none;
}
.btn-action:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-green  { background: rgba(34,197,94,.2);   color: #86efac; border: 1px solid rgba(34,197,94,.3); }
.btn-red    { background: rgba(239,68,68,.85);  color: #fff; }
.btn-red-outline { background: transparent; color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.btn-violet { background: var(--grad); color: #fff; }
.btn-outline { background: var(--bg-4); color: var(--text-2); border: 1px solid var(--border); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-box {
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 28px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.modal-box h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
}
.modal-box p { font-size: 14px; color: var(--text-2); margin-bottom: 14px; }

/* ════════════════════════════════════════════════════════
   ADMIN PANEL
   ════════════════════════════════════════════════════════ */

.admin-badge-small {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.12));
  color: var(--violet-2); border: 1px solid rgba(255,255,255,.3);
  width: fit-content; line-height: 1.2;
  box-shadow: 0 0 0 0 rgba(255,255,255,.3);
  position: relative;
}
.admin-badge-small::before {
  content: ''; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--violet-2);
  box-shadow: 0 0 6px var(--violet-2);
  animation: admin-pulse 2s ease-in-out infinite;
}
@keyframes admin-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

/* Admin table */
.admin-table-wrap {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; overflow-x: auto;
}
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.admin-table thead tr {
  background: var(--bg-4); border-bottom: 1px solid var(--border);
}
.admin-table th {
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-3); white-space: nowrap;
}
.admin-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg-4); }
.admin-table td { padding: 10px 14px; vertical-align: middle; }

.td-id { font-size: 11px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.td-cover { width: 44px; padding: 6px 8px 6px 14px; }
.table-cover { width: 40px; height: 40px; border-radius: 6px; background: var(--bg-4); overflow: hidden; position: relative; flex-shrink: 0; }
.table-cover img { width: 100%; height: 100%; object-fit: cover; }
.table-cover.no-cover img { display: none; }
.table-cover .cover-placeholder { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.table-cover.no-cover .cover-placeholder { display: flex; }
.table-cover .cover-placeholder svg { width: 18px; height: 18px; color: var(--text-3); opacity: .4; }
.td-title { max-width: 180px; }
.tbl-title { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.tbl-type { font-size: 11px; color: var(--text-3); }
.td-artist { color: var(--text-2); max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-user { }
.tbl-username { display: block; font-size: 13px; color: var(--violet-2); }
.tbl-name { font-size: 11px; color: var(--text-3); }
.td-upc code { font-size: 11px; color: var(--text-2); }
.td-date { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.td-action { text-align: right; }
.tbl-arrow { color: var(--text-3); font-size: 14px; transition: transform .15s, color .15s; }
.admin-table tbody tr:hover .tbl-arrow { transform: translateX(3px); color: var(--violet-2); }

/* Admin actions card */
.admin-actions-card { border: 1px solid rgba(124,58,237,.2); background: linear-gradient(135deg, rgba(124,58,237,.05), rgba(219,39,119,.05)); }
.action-group { margin-bottom: 16px; }
.action-group:last-child { margin-bottom: 0; }
.action-label { display: block; font-size: 12px; color: var(--text-3); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.action-row { display: flex; gap: 8px; align-items: center; }
.admin-select {
  flex: 1; background: var(--bg-4); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-family: var(--font-body); font-size: 13px; color: var(--text);
  outline: none; cursor: pointer; transition: border-color .15s;
}
.admin-select:focus { border-color: var(--violet); }
.admin-input {
  flex: 1; background: var(--bg-4); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-family: var(--font-body); font-size: 13px; color: var(--text);
  outline: none; transition: border-color .15s;
}
.admin-input:focus { border-color: var(--violet); }
.admin-input::placeholder { color: var(--text-3); }
.btn-admin-action {
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--bg-4); border: 1px solid var(--border);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--text); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn-admin-action:hover { background: var(--bg-3); border-color: var(--violet); }
.btn-admin-action.yellow { background: rgba(234,179,8,.15); border-color: rgba(234,179,8,.3); color: var(--yellow); }
.btn-admin-action.yellow:hover { background: rgba(234,179,8,.25); }
.btn-admin-action.green { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.3); color: var(--green); }
.btn-admin-action.green:hover { background: rgba(34,197,94,.25); }
.btn-admin-danger {
  width: 100%; padding: 9px 16px; border-radius: var(--radius-sm);
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2);
  font-family: var(--font-body); font-size: 13px; color: #fca5a5;
  cursor: pointer; transition: background .15s;
}
.btn-admin-danger:hover { background: rgba(239,68,68,.2); }

/* Admin toast notification */
.admin-toast {
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3);
  color: var(--violet-2); font-size: 14px; font-weight: 500;
  margin-bottom: 20px;
}
.admin-toast.success {
  background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.3);
  color: var(--green);
}

/* Link to admin panel from dashboard sidebar */
.nav-item.admin-link {
  background: linear-gradient(90deg,rgba(124,58,237,.1),transparent);
  border: 1px solid rgba(124,58,237,.15);
}

/* ── Admin table fixes ── */
.admin-table { table-layout: fixed; }
.admin-table th, .admin-table td { overflow: hidden; }
.admin-table .td-cover { width: 56px; min-width: 56px; max-width: 56px; padding: 8px; }
.admin-table .td-id    { width: 80px; }
.admin-table .td-title { width: 180px; }
.admin-table .td-artist{ width: 130px; }
.admin-table .td-user  { width: 150px; }
.admin-table .td-upc   { width: 130px; }
.admin-table .td-date  { width: 100px; }
.admin-table .td-action{ width: 36px; }

.table-cover {
  width: 40px !important; height: 40px !important;
  min-width: 40px; min-height: 40px;
  max-width: 40px; max-height: 40px;
  border-radius: 6px; background: var(--bg-4);
  overflow: hidden; position: relative;
  display: block;
}
.table-cover img {
  width: 40px !important; height: 40px !important;
  max-width: 40px; max-height: 40px;
  object-fit: cover; display: block;
}
.admin-table tbody tr { height: 56px; max-height: 56px; }
.tbl-title { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tbl-username, .tbl-name { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.td-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-upc code { font-size: 11px; white-space: nowrap; }

/* ════════════════════════════════════════════════════════
   RELEASE LIST (compact, Zvonko-style)
   ════════════════════════════════════════════════════════ */

/* Override old grid */
.releases-list {
  display: flex; flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.release-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-3);
  padding: 12px 16px;
  text-decoration: none; color: inherit;
  transition: background .12s;
  cursor: pointer;
  position: relative;
}
.release-row:hover { background: var(--bg-4); }
.release-row:hover .row-arrow { transform: translateX(3px); color: var(--violet-2); }

/* Cover */
.row-cover {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 8px; background: var(--bg-4);
  overflow: hidden; position: relative;
}
.row-cover img { width: 52px; height: 52px; object-fit: cover; display: block; }
.row-cover.no-cover img { display: none; }
.row-cover .cover-placeholder { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.row-cover.no-cover .cover-placeholder { display: flex; }
.row-cover .cover-placeholder svg { width: 20px; height: 20px; color: var(--text-3); opacity: .35; }

/* Main */
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-title-line { display: flex; align-items: center; gap: 8px; }
.row-title {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 280px;
}
.row-type { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; flex-shrink: 0; }
.row-artist { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta-line { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.row-meta-item { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.row-meta-item code { color: var(--text-2); font-size: 11px; }

/* Right */
.row-right {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: flex-end; gap: 4px;
}
.row-date { font-size: 11px; color: var(--text-3); }
.row-svcs { font-size: 12px; letter-spacing: 1px; }

/* Arrow */
.row-arrow {
  font-size: 14px; color: var(--text-3);
  transition: transform .15s, color .15s;
  flex-shrink: 0; padding-left: 4px;
}

/* Sidebar logo */
.sidebar-logo .logo-mask { flex-shrink: 0; }

/* Status badge awaiting_delivery color fix for blue theme */
.status-badge-awaiting_delivery { background:rgba(255,255,255,.15); color:var(--violet-2); border:1px solid rgba(255,255,255,.2); }
.card-status-dot.status-awaiting_delivery { background:var(--violet-2); }

/* Mobile list */
@media (max-width: 900px) {
  .row-title { max-width: 160px; }
  .row-meta-line { display: none; }
  .row-right { min-width: 90px; }
}
@media (max-width: 480px) {
  .row-cover { width: 42px; height: 42px; }
  .row-cover img { width: 42px; height: 42px; }
  .row-title { max-width: 120px; }
}

/* ── Release row v2 (Zvonko-style) ── */
.release-row {
  display: flex !important; align-items: center !important; gap: 16px !important;
  background: var(--bg-3) !important; padding: 14px 20px !important;
  color: inherit !important; transition: background .12s !important;
  cursor: default !important; user-select: text !important;
}
.release-row:hover { background: var(--bg-4) !important; }
.row-cover { width: 64px !important; height: 64px !important; min-width: 64px !important; border-radius: 8px; background: var(--bg-4); overflow: hidden; position: relative; }
.row-cover img { width: 64px !important; height: 64px !important; object-fit: cover; display: block; }
.row-main { flex: 1 !important; min-width: 0; display: flex !important; flex-direction: column !important; gap: 8px !important; }
.row-top { display: flex; align-items: flex-start; gap: 12px; }
.row-title-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-title { font-family: var(--font-display) !important; font-size: 15px !important; font-weight: 700 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.row-artist { font-size: 13px !important; color: var(--text-2) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-bottom { display: flex; gap: 20px; flex-wrap: wrap; }
.row-field { display: flex; flex-direction: column; gap: 1px; }
.row-flabel { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.row-fval { font-size: 12px; color: var(--text-2); }
.row-svcs { font-size: 13px; }
.row-right { flex-shrink: 0 !important; display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 6px !important; min-width: 110px; }
.row-type-badge { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.row-date { font-size: 11px !important; color: var(--text-3) !important; }
.row-arrow-btn {
  font-size: 16px; color: var(--text-3);
  transition: transform .15s, color .15s, background .15s;
  flex-shrink: 0; text-decoration: none;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--bg-4);
  border: 1px solid var(--border);
}
.row-arrow-btn:hover { transform: translateX(2px); color: var(--violet-2); border-color: var(--violet); background: rgba(255,255,255,.1); }
@media (max-width: 900px) {
  .row-bottom { gap: 12px; }
  .row-title { max-width: 180px; }
  .row-right { min-width: 90px; }
}
@media (max-width: 600px) {
  .row-cover { width: 52px !important; height: 52px !important; min-width: 52px !important; }
  .row-cover img { width: 52px !important; height: 52px !important; }
  .row-bottom { display: none; }
}



/* ── Sidebar logo text ── */
.sidebar-logo-text {
  font-size: 14px; font-weight: 600;
  color: var(--text) !important; white-space: nowrap;
  letter-spacing: -0.01em;
}


/* ── Verified badge — the most beautiful checkmark in the world ── */
  100% { background-position: 200% center; }
}
  70%  { transform: scale(1.15) rotate(3deg) translateY(-1px); opacity: 1; }
  100% { transform: scale(1) rotate(0deg) translateY(-1px); opacity: 1; }
}
.verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; min-width: 15px; border-radius: 50%;
  background: linear-gradient(135deg, #cfcfd6, #cfcfd6, #cfcfd6);
  background-size: 300% 300%;
  color: #fff;
  margin-left: 4px; vertical-align: middle;
  flex-shrink: 0; position: relative; cursor: default;
  animation: verified-shimmer 3s linear infinite,
             verified-pop .45s cubic-bezier(.34,1.56,.64,1) both;
  border: 1px solid rgba(255,255,255,0.25);
}
.verified-badge svg {
  width: 8px; height: 8px; stroke-width: 2.5;
}

/* ── User name row with badge ── */
.user-name-row {
  display: flex; align-items: center; gap: 5px;
  overflow: visible;
}

/* ── Verified checkmark (no circle) ── */
@keyframes check-pop {
  0%   { opacity: 0; transform: scale(0) rotate(-10deg); }
  70%  { transform: scale(1.2) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; cursor: default;
  margin-left: 3px;
  animation: check-pop .4s cubic-bezier(.34,1.56,.64,1) both;
}
.verified-badge svg {
  width: 13px; height: 13px; stroke-width: 2.5;
  stroke: url(#verifiedGrad);
  filter: drop-shadow(0 0 3px rgba(56,189,248,.7));
  overflow: visible;
}

/* ════════════════════════════════════════════════════════
   STATUS TABS (horizontal, Koala-style)
   ════════════════════════════════════════════════════════ */
.status-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 2px;
}
.status-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.status-tab:hover {
  background: var(--bg-4); color: var(--text);
  border-color: var(--border-2);
}
.status-tab.active {
  background: var(--bg-4); color: var(--text);
  border-color: var(--violet);
  font-weight: 600;
}
.stab-count {
  background: var(--bg-4); color: var(--text-3);
  font-size: 11px; font-weight: 600;
  padding: 1px 6px; border-radius: 999px;
  min-width: 18px; text-align: center;
  line-height: 1.5;
}
.status-tab.active .stab-count {
  background: rgba(255,255,255,.2); color: var(--violet-2);
}



/* ════════════════════════════════════════════════════════
   FILTERS BAR (v2 — beautiful clean design)
   ════════════════════════════════════════════════════════ */
.filters-bar {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 20px;
}

/* Top row: search (big) + reset */
.filters-bar {
  display: flex; flex-direction: row; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: stretch;
}
.filter-search {
  flex: 1; position: relative; min-width: 240px; max-width: 420px;
}
.filter-search .search-input {
  height: 38px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 0 36px 0 36px;
  border-radius: 8px;
  font-size: 13px;
  width: 100%;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.filter-search .search-input:focus {
  outline: none; border-color: var(--violet);
  background: var(--bg-4);
}
.filter-search .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--text-3); pointer-events: none;
}
.filter-search .search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-5); border: none; color: var(--text-2);
  font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.filter-search .search-clear:hover { background: var(--bg-4); color: var(--text); }

.filter-reset-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 38px; padding: 0 12px;
  font-size: 12px;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.15);
  border-radius: 10px;
  font-size: 13px; color: #f87171;
  text-decoration: none; transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.filter-reset-btn:hover { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.3); }
.filter-reset-btn svg { width: 13px; height: 13px; }


@media (max-width: 700px) {
    .date-filter { min-width: 100%; }
}

/* ── Date range picker (flatpickr wrapper) ── */
.date-range-picker {
  min-width: 200px; max-width: 240px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
  height: 38px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s, background .15s;
  position: relative; cursor: pointer;
}
.date-range-picker:hover { background: var(--bg-4); border-color: var(--border-2); }
.date-range-picker .drp-icon {
  width: 14px; height: 14px; color: var(--text-3);
  flex-shrink: 0; opacity: 1;
}
.drp-input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 13px; font-weight: 400;
  font-family: inherit;
  padding: 0; margin: 0; cursor: pointer;
  line-height: 38px; height: 38px;
}
.drp-input::placeholder { color: var(--text-3); opacity: 1; }
.drp-clear {
  flex-shrink: 0; width: 18px; height: 18px;
  border-radius: 50%; background: var(--bg-5); border: none;
  color: var(--text-2); font-size: 12px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  padding: 0;
}
.drp-clear:hover { background: var(--red); color: #fff; }

/* ── Flatpickr dark theme overrides ── */
.flatpickr-calendar {
  background: var(--bg-3) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,.5) !important;
}
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after { border-bottom-color: var(--border) !important; }
.flatpickr-months { padding: 8px 4px 4px; }
.flatpickr-months .flatpickr-month {
  color: var(--violet-2) !important; background: transparent !important;
  height: 36px;
}
.flatpickr-current-month { color: var(--violet-2) !important; font-size: 14px !important; font-weight: 600 !important; padding-top: 6px !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: var(--violet-2) !important; background: transparent !important;
}
.flatpickr-monthDropdown-months option { background: var(--bg-3) !important; color: var(--text) !important; }
.flatpickr-prev-month, .flatpickr-next-month {
  fill: var(--violet-2) !important; color: var(--violet-2) !important;
}
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg { fill: var(--text) !important; }
.flatpickr-weekdays { background: transparent !important; }
.flatpickr-weekday {
  color: var(--text-3) !important; background: transparent !important;
  font-weight: 600 !important; font-size: 11px !important;
  text-transform: uppercase;
}
.dayContainer { padding: 4px !important; }
.flatpickr-day {
  color: var(--text) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  max-width: 38px !important; height: 38px !important; line-height: 38px !important;
  margin: 1px !important;
  transition: background .12s;
}
.flatpickr-day:hover { background: var(--bg-4) !important; }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: var(--text-3) !important; opacity: .35; }
.flatpickr-day.today { border: 1px solid var(--violet-2) !important; color: var(--violet-2) !important; font-weight: 700; }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--violet) !important;
  color: #0e0e12 !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 700;
}
.flatpickr-day.inRange {
  background: rgba(255,255,255,.2) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.flatpickr-day.startRange { border-radius: 6px 0 0 6px !important; }
.flatpickr-day.endRange { border-radius: 0 6px 6px 0 !important; }
.flatpickr-day.startRange.endRange { border-radius: 6px !important; }
.flatpickr-day.flatpickr-disabled { color: var(--text-3) !important; opacity: .3; }

@media (max-width: 900px) {
  .filters-bar { flex-wrap: wrap; }
  .filter-search-row { min-width: 100%; }
    .date-range-picker { flex: 1; min-width: 150px; max-width: none; }
  .flatpickr-calendar { max-width: 92vw; }
}

/* ════════════════════════════════════════════════════════
   PROFILE PAGE
   ════════════════════════════════════════════════════════ */

/* Hero card */
.profile-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  min-height: 180px;
}
.profile-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 300px at 15% 20%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(ellipse 600px 400px at 85% 80%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(ellipse 400px 300px at 50% 50%, rgba(255,255,255,.15), transparent 70%);
  opacity: .9;
  pointer-events: none;
}
.profile-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.profile-hero-content {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  padding: 32px 32px;
  z-index: 1;
}

/* Avatar */
.profile-avatar-wrap {
  position: relative; flex-shrink: 0;
}
.profile-avatar, .profile-avatar-fallback {
  width: 110px; height: 110px; border-radius: 50%;
  border: 3px solid var(--bg-3);
  box-shadow: 0 0 0 3px rgba(255,255,255,.35),
              0 10px 40px rgba(255,255,255,.25);
  object-fit: cover;
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 42px; font-weight: 700; color: #16161a;
}
.profile-verified {
  position: absolute; bottom: 4px; right: 4px;
  width: 30px; height: 30px;
  background: var(--bg-3);
  border: 3px solid var(--bg-3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.profile-verified svg { width: 22px; height: 22px; }

/* Identity */
.profile-identity { flex: 1; min-width: 0; }
.profile-name-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.profile-name {
  font-family: 'Inter', sans-serif;
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.profile-username {
  display: inline-block;
  font-size: 14px; color: var(--violet-2);
  text-decoration: none; font-weight: 500;
  margin-bottom: 12px;
}
.profile-username:hover { text-decoration: underline; }
.profile-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 12px;
}
.profile-meta-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-3);
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.profile-meta-item svg { width: 13px; height: 13px; opacity: .8; }

/* Stats grid */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform .15s, border-color .15s;
}
.stat-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon-blue {
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  color: #cfcfd6;
  border: 1px solid rgba(255,255,255,.2);
}
.stat-icon-green {
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(34,197,94,.08));
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.2);
}
.stat-icon-orange {
  background: linear-gradient(135deg, rgba(251,146,60,.18), rgba(251,146,60,.08));
  color: #fb923c;
  border: 1px solid rgba(251,146,60,.2);
}
.stat-icon-purple {
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  color: #e9e9ef;
  border: 1px solid rgba(255,255,255,.2);
}
.stat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-value {
  font-size: 24px; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-unit { font-size: 14px; color: var(--text-3); margin-left: 2px; font-weight: 500; }
.stat-label {
  font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 500;
}

/* Two-column grid */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-hero-content { flex-direction: column; text-align: center; padding: 24px 20px; }
  .profile-avatar, .profile-avatar-fallback { width: 88px; height: 88px; font-size: 32px; }
  .profile-meta { justify-content: center; }
  .profile-name { font-size: 22px; }
}

/* Section card */
.profile-section {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  min-height: 200px;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 15px; font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  margin: 0;
}
.section-title svg { width: 16px; height: 16px; color: var(--violet-2); }
.section-count {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-4); color: var(--text-2);
}
.section-link {
  font-size: 12px; color: var(--violet-2);
  text-decoration: none;
}
.section-link:hover { text-decoration: underline; }

/* Signers */
.signers-list { display: flex; flex-direction: column; gap: 8px; }
.signer-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.signer-card:hover { border-color: var(--border-2); }
.signer-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 14px;
  flex-shrink: 0;
}
.signer-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.signer-name-row { display: flex; align-items: center; gap: 6px; }
.signer-name {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.signer-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.signer-meta-item {
  font-size: 11px; color: var(--text-2);
  white-space: nowrap;
}
.signer-date { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* Recent releases */
.recent-list { display: flex; flex-direction: column; gap: 6px; }
.recent-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 10px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background .15s, border-color .15s;
}
.recent-item:hover { background: var(--bg-5); border-color: var(--border-2); }
.recent-cover {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--bg-5); overflow: hidden; flex-shrink: 0;
}
.recent-cover img { width: 42px; height: 42px; object-fit: cover; display: block; }
.recent-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.recent-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-artist { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Empty states */
.empty-signers {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 20px; text-align: center; gap: 10px;
  color: var(--text-3);
}
.empty-signers svg { width: 48px; height: 48px; opacity: .35; }
.empty-signers h3 { font-size: 14px; font-weight: 600; color: var(--text-2); margin: 0; }
.empty-signers p { font-size: 12px; color: var(--text-3); margin: 0; max-width: 300px; }

/* ════════════════════════════════════════════════════════
   DELIVER PAGE
   ════════════════════════════════════════════════════════ */
.deliver-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1000px) {
  .deliver-layout { grid-template-columns: 1fr; }
}

.deliver-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.deliver-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }

.deliver-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.deliver-card-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.deliver-card-header svg { width: 16px; height: 16px; color: var(--violet-2); }
.deliver-card-header h2 {
  font-size: 14px; font-weight: 600; margin: 0;
  color: var(--text);
}

/* Release summary */
.deliver-release-row {
  display: flex; gap: 20px; padding: 20px;
}
.deliver-cover {
  width: 140px; height: 140px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
  background: var(--bg-4);
  border: 1px solid var(--border);
}
.deliver-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deliver-release-info { flex: 1; min-width: 0; }
.deliver-release-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 4px 0; color: var(--text);
}
.deliver-release-artist {
  font-size: 14px; color: var(--text-2);
  margin: 0 0 14px 0;
}
.deliver-meta-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
}
.dm-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dm-label {
  font-size: 10px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.dm-value {
  font-size: 13px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm-value code { font-family: inherit; font-size: 13px; }

/* Files */
.deliver-files { padding: 14px 20px; display: flex; flex-direction: column; gap: 8px; }
.deliver-file {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: background .15s, border-color .15s;
}
.deliver-file:hover { background: var(--bg-5); border-color: var(--border-2); }
.df-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.df-icon svg { width: 20px; height: 20px; }
.df-icon-blue { background: rgba(255,255,255,.15); color: #cfcfd6; border: 1px solid rgba(255,255,255,.2); }
.df-icon-green { background: rgba(34,197,94,.15); color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.df-icon-purple { background: rgba(255,255,255,.15); color: #e9e9ef; border: 1px solid rgba(255,255,255,.2); }
.df-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.df-title { font-size: 14px; font-weight: 600; color: var(--text); }
.df-sub { font-size: 11px; color: var(--text-3); }
.df-arrow { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; }

/* Lyrics */
.deliver-lyrics {
  background: var(--bg-4); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.deliver-lyrics-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--text-2);
}
.deliver-lyrics-header svg { width: 14px; height: 14px; color: var(--violet-2); }
.deliver-lyrics-text {
  padding: 14px; margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
  max-height: 200px; overflow-y: auto;
  line-height: 1.6;
}

/* Signer grid */
.deliver-signer-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Sidebar: status card */
.deliver-status-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start;
}
.deliver-status-label {
  font-size: 10px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.deliver-status-upc {
  display: flex; flex-direction: column; gap: 4px;
  width: 100%;
  padding-top: 8px; border-top: 1px solid var(--border);
  margin-top: 4px;
}
.dsu-label {
  font-size: 10px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.dsu-value {
  font-size: 15px; font-weight: 600;
  color: var(--text); letter-spacing: .02em;
}

/* Deliver action card */
.deliver-action-card {
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.deliver-action-card.done {
  background: linear-gradient(135deg, rgba(34,197,94,.1), rgba(34,197,94,.05));
  border-color: rgba(34,197,94,.3);
}
.dac-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(255,255,255,.4);
}
.deliver-action-card.done .dac-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 6px 20px rgba(34,197,94,.4);
}
.dac-icon svg { width: 24px; height: 24px; }
.deliver-action-card h3 {
  font-size: 16px; font-weight: 600; margin: 0; color: var(--text);
}
.deliver-action-card p {
  font-size: 12px; color: var(--text-2); margin: 0;
  line-height: 1.5;
}
.dac-field {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 6px;
}
.dac-field label {
  font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.dac-field input {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text); font-size: 14px; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.dac-field input:focus {
  outline: none; border-color: var(--violet);
  background: var(--bg-4);
}
.dac-field small {
  font-size: 11px; color: var(--text-3);
}
.dac-submit {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  color: #fff; font-size: 14px; font-weight: 600;
  border: none; border-radius: 10px;
  cursor: pointer; font-family: inherit;
  transition: transform .1s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(255,255,255,.35);
}
.dac-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,255,255,.5);
}
.dac-submit:active { transform: translateY(0); }
.dac-submit svg { width: 16px; height: 16px; }

/* Client card */
.deliver-client-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.deliver-client-label {
  font-size: 10px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.dcr-username {
  font-size: 14px; font-weight: 600;
  color: var(--violet-2); text-decoration: none;
}
.dcr-username:hover { text-decoration: underline; }
.dcr-name { font-size: 12px; color: var(--text-3); }

.btn-deliver-page {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  color: #fff; font-size: 13px; font-weight: 600;
  border-radius: 8px; text-decoration: none;
  transition: transform .1s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(255,255,255,.35);
}
.btn-deliver-page:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,255,255,.5); }
.btn-deliver-page svg { width: 15px; height: 15px; }

/* ════════════════════════════════════════════════════════
   DELIVERY PAGE
   ════════════════════════════════════════════════════════ */
.deliver-header {
  margin-bottom: 20px;
}
.deliver-subtitle {
  color: var(--text-3); font-size: 13px;
  margin: 4px 0 0;
}

/* Release preview */
.deliver-preview {
  display: flex; gap: 24px;
  padding: 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
}
.deliver-cover {
  flex-shrink: 0;
  width: 200px; height: 200px;
  border-radius: 12px; overflow: hidden;
  background: var(--bg-4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.deliver-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deliver-meta { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.deliver-release-id {
  font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.deliver-title {
  font-size: 28px; font-weight: 700;
  color: var(--text); margin: 0;
  letter-spacing: -0.02em;
}
.deliver-artist {
  font-size: 15px; color: var(--text-2); font-weight: 500;
  margin-bottom: 12px;
}
.deliver-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; margin-top: 8px;
}
.di-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  background: var(--bg-4);
  border-radius: 8px;
}
.di-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.di-val { font-size: 13px; color: var(--text); font-weight: 500; }

/* Section titles */
.deliver-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text);
  margin: 0 0 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.deliver-section-title svg { width: 16px; height: 16px; color: var(--violet-2); }

/* Files grid */
.deliver-files {
  padding: 20px 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
}
.file-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
.file-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s, background .15s;
  position: relative;
}
.file-card:hover { border-color: var(--border-2); background: var(--bg-5); }
.file-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.file-icon svg { width: 22px; height: 22px; }
.file-icon.cover { background: rgba(255,255,255,.15); color: #cfcfd6; border: 1px solid rgba(255,255,255,.25); }
.file-icon.audio { background: rgba(255,255,255,.15); color: #e9e9ef; border: 1px solid rgba(255,255,255,.25); }
.file-icon.lyrics { background: rgba(34,197,94,.15); color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.file-icon.payment { background: rgba(251,146,60,.15); color: #fb923c; border: 1px solid rgba(251,146,60,.25); }
.file-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-desc { font-size: 11px; color: var(--text-3); }
.file-action {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 8px; background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.file-action:hover {
  background: var(--violet); color: #fff; border-color: var(--violet);
}
.file-action svg { width: 16px; height: 16px; }

/* Expandable (lyrics) */
.file-card-expand { cursor: pointer; flex-wrap: wrap; }
.file-expand-content {
  display: none; width: 100%;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.file-card-expand.expanded .file-expand-content { display: block; }
.file-card-expand.expanded .file-action svg { transform: rotate(180deg); }
.lyrics-box {
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: var(--text-2); white-space: pre-wrap;
  max-height: 200px; overflow-y: auto;
  padding: 10px; background: var(--bg-3);
  border-radius: 6px; margin: 0;
  line-height: 1.5;
}

/* Signer summary */
.deliver-signer {
  padding: 20px 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
}
.signer-summary {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--bg-4);
  border-radius: 10px;
}
.signer-avatar-big {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.signer-sum-body { flex: 1; min-width: 0; }
.signer-sum-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.signer-sum-contacts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }

/* Delivery form */
.deliver-form-card {
  padding: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  margin-bottom: 40px;
}
.deliver-label {
  display: block;
  font-size: 11px; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .05em;
  font-weight: 600; margin-bottom: 8px;
}
.upc-input-wrap { margin-bottom: 20px; }
.upc-input {
  width: 100%; height: 52px;
  padding: 0 20px;
  background: var(--bg-3);
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 18px; font-weight: 600;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.06em;
  transition: border-color .15s;
}
.upc-input:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(255,255,255,.15);
}
.upc-hint {
  font-size: 11px; color: var(--text-3);
  margin-top: 6px;
}
.deliver-actions {
  display: flex; justify-content: flex-end; gap: 10px;
}
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; height: 44px;
  background: var(--bg-4); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-2);
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background .15s;
}
.btn-secondary:hover { background: var(--bg-5); color: var(--text); }
.btn-deliver {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; height: 44px;
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  border: none; border-radius: 10px;
  color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(255,255,255,.4);
}
.btn-deliver:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,255,255,.55);
}
.btn-deliver:disabled {
  opacity: .6; cursor: not-allowed; transform: none;
}
.btn-deliver svg { width: 16px; height: 16px; }

/* Link to delivery page button */
.btn-deliver-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.1));
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  color: var(--violet-2);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn-deliver-link:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.15));
  transform: translateX(2px);
}
.btn-deliver-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-deliver-link .btn-arrow {
  margin-left: auto;
  font-size: 16px; opacity: .6;
  transition: transform .15s, opacity .15s;
}
.btn-deliver-link:hover .btn-arrow {
  opacity: 1; transform: translateX(2px);
}

@media (max-width: 700px) {
  .deliver-preview { flex-direction: column; }
  .deliver-cover { width: 100%; height: auto; max-width: 320px; }
  .file-cards { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════
   NEW RELEASE FORM
   ════════════════════════════════════════════════════════ */

/* Nav highlight button */
.nav-create {
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.3) !important;
  color: var(--violet-2) !important;
  font-weight: 600;
}
.nav-create:hover { background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.12)); }

.nr-header { margin-bottom: 20px; }
.nr-subtitle { color: var(--text-3); font-size: 13px; margin: 4px 0 0; }

/* Errors banner */
.nr-errors {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px; padding: 14px 16px;
  margin-bottom: 20px; color: #fca5a5;
  font-size: 13px;
}
.nr-errors strong { color: #ef4444; display: block; margin-bottom: 4px; }
.nr-errors ul { margin: 4px 0 0; padding-left: 20px; }

/* ── Tabs ── */
.nr-tabs {
  display: flex; gap: 4px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.nr-tab {
  flex: 1; min-width: fit-content;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px;
  background: transparent; border: none;
  border-radius: 8px;
  color: var(--text-3); font-size: 13px; font-weight: 500;
  font-family: inherit; cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nr-tab:hover { color: var(--text-2); }
.nr-tab.active {
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,255,255,.4);
}
.nr-tab-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-5); color: var(--text-3);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.nr-tab.active .nr-tab-num { background: rgba(255,255,255,.25); color: #fff; }

/* Tab content */
.nr-tab-content { display: none; animation: fadeIn .2s ease-out; }
.nr-tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* Section */
.nr-section {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.nr-section-title {
  font-size: 16px; font-weight: 600; color: var(--text);
  margin: 0 0 4px;
}
.nr-section-desc {
  font-size: 12px; color: var(--text-3);
  margin: 0 0 16px;
}

/* Fields */
.nr-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
@media (max-width: 700px) { .nr-grid-2 { grid-template-columns: 1fr; } }

.nr-field { display: flex; flex-direction: column; gap: 6px; }
.nr-label {
  font-size: 12px; color: var(--text-2); font-weight: 500;
}
.nr-label .req { color: #f87171; margin-left: 2px; }
.nr-input {
  height: 42px; padding: 0 14px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px; color: var(--text);
  font-family: inherit;
  transition: border-color .15s, background .15s;
  color-scheme: dark;
}
.nr-input:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(255,255,255,.15);
  background: var(--bg-3);
}
.nr-input::placeholder { color: var(--text-3); }
.nr-textarea { height: auto; padding: 10px 14px; resize: vertical; min-height: 80px; }
.nr-hint { font-size: 11px; color: var(--text-3); }

/* Radio row */
.nr-radio-row { display: flex; gap: 8px; height: 42px; align-items: center; }
.nr-radio {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 14px; height: 42px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
  font-size: 13px;
  transition: background .15s, border-color .15s;
}
.nr-radio:hover { background: var(--bg-5); }
.nr-radio input { accent-color: var(--violet); }
.nr-radio:has(input:checked) {
  background: rgba(255,255,255,.12);
  border-color: var(--violet);
  color: var(--violet-2);
}

/* ── Release type cards ── */
.rt-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.rt-option input { display: none; }
.rt-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 12px; border-radius: 12px;
  background: var(--bg-4);
  border: 2px solid var(--border);
  cursor: pointer; transition: all .15s;
  gap: 4px;
}
.rt-option:hover .rt-card { background: var(--bg-5); border-color: var(--border-2); }
.rt-option input:checked + .rt-card {
  border-color: var(--violet);
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255,255,255,.25);
}
.rt-icon { font-size: 32px; line-height: 1; }
.rt-label { font-size: 14px; font-weight: 600; color: var(--text); }
.rt-desc { font-size: 11px; color: var(--text-3); }

/* ── Cover upload ── */
.cover-upload-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cover-drop-zone {
  width: 240px; height: 240px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--bg-4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative; overflow: hidden;
}
.cover-drop-zone:hover { border-color: var(--violet); background: var(--bg-5); }
.cover-drop-zone.drag { border-color: var(--violet); background: rgba(255,255,255,.08); border-style: solid; }
.cover-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-3); text-align: center; padding: 20px;
}
.cover-placeholder svg { width: 40px; height: 40px; color: var(--violet-2); opacity: .6; }
.cover-placeholder > span:not(.cover-hint) { font-size: 13px; color: var(--text-2); font-weight: 500; }
.cover-hint { font-size: 11px; color: var(--text-3); }
.cover-preview { width: 100%; height: 100%; object-fit: cover; }
.cover-uploading {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--violet-2); font-size: 12px;
}
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--bg-5);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cover-actions { display: flex; gap: 8px; }

/* ── Signer select ── */
.signer-select-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.signer-option input { display: none; }
.signer-card-select {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 10px;
  background: var(--bg-4);
  border: 2px solid var(--border);
  cursor: pointer; transition: all .15s;
  position: relative;
}
.signer-option:hover .signer-card-select { background: var(--bg-5); border-color: var(--border-2); }
.signer-option input:checked + .signer-card-select {
  border-color: var(--violet);
  background: rgba(255,255,255,.08);
}
.signer-check {
  width: 18px; height: 18px;
  color: var(--violet-2); opacity: 0;
  transition: opacity .15s;
}
.signer-option input:checked + .signer-card-select .signer-check { opacity: 1; }
.nr-empty-signer {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 32px; text-align: center;
}
.nr-empty-signer svg { width: 48px; height: 48px; color: var(--text-3); opacity: .4; }
.nr-empty-signer h3 { font-size: 14px; margin: 0; color: var(--text); }
.nr-empty-signer p { font-size: 12px; color: var(--text-3); margin: 0; max-width: 300px; }

/* ── Tracks ── */
.track-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}
.track-num {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.track-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.track-remove {
  flex-shrink: 0; width: 32px; height: 32px;
  background: var(--bg-5); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-3);
  font-size: 18px; cursor: pointer; padding: 0;
  transition: background .15s, color .15s;
}
.track-remove:hover { background: rgba(239,68,68,.1); color: #f87171; border-color: rgba(239,68,68,.3); }

.btn-add-track {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--bg-4);
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--violet-2); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s;
  width: 100%; justify-content: center;
}
.btn-add-track:hover { background: var(--bg-5); border-color: var(--violet); border-style: solid; }
.btn-add-track svg { width: 16px; height: 16px; }

/* ── Platforms ── */
.platform-all {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px; cursor: pointer;
}
.platform-all input { accent-color: var(--violet); margin-top: 2px; }
.platform-all strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.platform-all span { font-size: 12px; color: var(--text-2); }

/* ── Services ── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.service-option input { display: none; }
.service-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 12px;
  background: var(--bg-4);
  border: 2px solid var(--border);
  border-radius: 10px; cursor: pointer;
  transition: all .15s;
}
.service-option:hover .service-card { background: var(--bg-5); border-color: var(--border-2); }
.service-option input:checked + .service-card {
  border-color: var(--violet);
  background: rgba(255,255,255,.08);
}
.service-emoji { font-size: 24px; }
.service-name { font-size: 12px; font-weight: 600; color: var(--text); }
.service-price { font-size: 11px; color: var(--violet-2); font-weight: 600; }

/* ── Review ── */
.review-grid {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-4);
  border-radius: 10px;
  overflow: hidden;
}
.rv-row {
  display: grid; grid-template-columns: 180px 1fr;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}
.rv-row:last-child { border-bottom: none; }
.rv-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.rv-val { font-size: 13px; color: var(--text); }

/* Warning */
.nr-warning {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  background: rgba(251,146,60,.08);
  border: 1px solid rgba(251,146,60,.2);
  border-radius: 10px;
  margin-bottom: 16px;
}
.nr-warning svg { width: 20px; height: 20px; color: #fb923c; flex-shrink: 0; margin-top: 2px; }
.nr-warning div { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.nr-warning strong { color: #fb923c; }

/* Nav buttons */
.nr-nav-buttons {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 16px;
}
.nr-nav-buttons .btn-deliver { padding: 10px 20px; height: 44px; font-size: 13px; }
.nr-nav-buttons .btn-secondary { padding: 10px 20px; height: 44px; font-size: 13px; }


/* Draft header title */
.nr-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.draft-id {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  background: var(--bg-4); border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--text-3);
  letter-spacing: 0.05em;
  font-family: 'Inter', monospace;
}
.nr-subtitle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-top: 4px;
}

/* Save status */
.save-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  background: var(--bg-4); border: 1px solid var(--border);
  color: var(--text-3);
  transition: all .2s;
}
.save-status .save-dot { width: 8px; height: 8px; }
.save-status.saved { color: #4ade80; border-color: rgba(34,197,94,.2); background: rgba(34,197,94,.06); }
.save-status.saving { color: var(--violet-2); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.save-status.saving .save-dot { animation: pulse-dot 1.2s ease-in-out infinite; }
.save-status.error { color: #f87171; border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.06); }
@keyframes pulse-dot { 50% { opacity: .3; } }

/* Draft status badge */
.status-badge-draft {
  background: rgba(161,161,170,.12);
  color: #a1a1aa;
  border: 1px solid rgba(161,161,170,.2);
}
.tab-draft .stab-count { background: rgba(161,161,170,.15); color: #a1a1aa; }

/* ════════════════════════════════════════════════════════
   PAYMENT PAGE (client)
   ════════════════════════════════════════════════════════ */
.pay-header { margin-bottom: 20px; }
.pay-subtitle { color: var(--text-3); font-size: 13px; margin: 4px 0 0; }

.pay-status-banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: 12px;
  margin-bottom: 16px;
}
.pay-status-banner.pending {
  background: rgba(251,146,60,.08);
  border: 1px solid rgba(251,146,60,.25);
}
.pay-status-banner svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: #fb923c; }
.pay-status-banner strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.pay-status-banner span { color: var(--text-2); font-size: 12px; line-height: 1.5; }

/* Summary card */
.pay-summary-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 20px;
}
.pay-release-preview { display: flex; gap: 16px; align-items: center; }
.pay-cover {
  width: 80px; height: 80px; border-radius: 10px;
  background: var(--bg-4); overflow: hidden; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.pay-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pay-release-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pay-release-id { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pay-release-title { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.pay-release-artist { font-size: 13px; color: var(--text-2); font-weight: 500; }

.pay-amount-breakdown {
  padding: 16px 18px; background: var(--bg-4); border-radius: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.pay-section-title {
  font-size: 14px; font-weight: 600; margin: 0 0 6px;
  color: var(--text);
}
.pay-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.pay-row-label { color: var(--text-2); }
.pay-row-val { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.pay-row-total {
  border-top: 1px solid var(--border);
  padding-top: 12px; margin-top: 4px;
}
.pay-row-total .pay-row-label { font-weight: 600; font-size: 14px; color: var(--text); }
.pay-row-total .pay-row-val { font-weight: 700; font-size: 18px; color: var(--violet-2); }

/* Card details */
.pay-details-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}
.pay-card-copyable {
  padding: 16px 18px;
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  border-radius: 12px; margin: 10px 0 16px;
  cursor: pointer; position: relative;
  transition: transform .15s, box-shadow .15s;
}
.pay-card-copyable:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,255,255,.35);
}
.pay-card-copyable.copied { background: linear-gradient(135deg, #10b981, #059669); }
.pay-card-label {
  display: block;
  font-size: 11px; color: rgba(255,255,255,.75);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
  margin-bottom: 6px;
}
.pay-card-value {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.pay-card-number {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 20px; font-weight: 600; color: #fff;
  letter-spacing: 0.1em;
}
.pay-copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 12px; font-weight: 500;
  font-family: inherit; cursor: pointer;
  transition: background .15s;
}
.pay-copy-btn:hover { background: rgba(255,255,255,.25); }
.pay-copy-btn svg { width: 13px; height: 13px; }

.pay-info-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (max-width: 600px) { .pay-info-row { grid-template-columns: 1fr; } }
.pay-info-item {
  padding: 10px 14px; background: var(--bg-4); border-radius: 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.pay-info-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.pay-info-value { font-size: 13px; color: var(--text); font-weight: 500; }

.pay-warning {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(251,146,60,.08);
  border: 1px solid rgba(251,146,60,.2);
  border-radius: 8px;
  font-size: 12px; color: var(--text-2);
}
.pay-warning svg { width: 16px; height: 16px; color: #fb923c; flex-shrink: 0; }
.pay-warning strong { color: #fb923c; }

/* Upload card */
.pay-upload-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 40px;
}
.pay-upload-desc { color: var(--text-3); font-size: 12px; margin: 0 0 14px; }

.proof-upload-zone {
  min-height: 180px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--bg-4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  padding: 20px;
}
.proof-upload-zone:hover { border-color: var(--violet); background: var(--bg-5); }
.proof-upload-zone.drag { border-color: var(--violet); background: rgba(255,255,255,.08); border-style: solid; }
.proof-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-3); text-align: center;
}
.proof-placeholder svg { width: 40px; height: 40px; color: var(--violet-2); opacity: .7; }
.proof-placeholder > span:not(.proof-hint) { font-size: 14px; color: var(--text-2); font-weight: 500; }
.proof-hint { font-size: 11px; color: var(--text-3); }
.proof-preview {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100%;
}
.proof-preview img { max-width: 100%; max-height: 240px; border-radius: 8px; object-fit: contain; }
.proof-filename { font-size: 12px; color: var(--text-2); }
.proof-uploading {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--violet-2); font-size: 12px;
}

.pay-submit-row {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px;
}

/* Pay CTA button on release detail */
.btn-pay-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  border-radius: 12px;
  color: #fff; font-weight: 600; text-decoration: none;
  margin-top: 16px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(255,255,255,.4);
  font-size: 14px;
}
.btn-pay-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,.55); }
.btn-pay-cta svg { width: 18px; height: 18px; }
.btn-pay-amount {
  margin-left: auto;
  padding: 4px 10px; background: rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
}

.pay-status-inline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(251,146,60,.1);
  border: 1px solid rgba(251,146,60,.25);
  color: #fb923c; font-size: 13px; font-weight: 500;
  margin-top: 14px;
}
.pay-status-inline svg { width: 16px; height: 16px; }

/* ════════════════════════════════════════════════════════
   ADMIN PAYMENTS PAGE
   ════════════════════════════════════════════════════════ */
.pay-admin-list { display: flex; flex-direction: column; gap: 12px; }
.pay-admin-card {
  display: flex; gap: 18px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: border-color .15s;
}
.pay-admin-card:hover { border-color: var(--border-2); }

.pay-admin-proof {
  flex-shrink: 0;
  width: 160px; height: 160px;
  border-radius: 10px; overflow: hidden;
  background: var(--bg-4);
}
.pay-admin-proof a, .pay-admin-proof > div { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pay-admin-proof img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.pay-admin-proof:hover img { transform: scale(1.05); }
.proof-missing, .proof-doc-link {
  display: flex !important; flex-direction: column; gap: 6px;
  color: var(--text-3); font-size: 12px;
  text-decoration: none;
}
.proof-missing svg, .proof-doc-link svg { width: 32px; height: 32px; opacity: .5; }
.proof-doc-link:hover { color: var(--violet-2); }

.pay-admin-body { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pay-admin-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.pay-admin-id { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pay-admin-title { font-size: 16px; font-weight: 600; margin: 2px 0 0; color: var(--text); }
.pay-admin-amount {
  font-size: 24px; font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.pay-admin-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.pay-meta-item {
  padding: 8px 12px; background: var(--bg-4); border-radius: 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.pay-meta-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.pay-meta-item span:not(.pay-meta-label) { font-size: 13px; color: var(--text); }
.pay-meta-link { font-size: 13px; color: var(--violet-2); text-decoration: none; }
.pay-meta-link:hover { text-decoration: underline; }

.pay-admin-actions { display: flex; gap: 8px; margin-top: auto; }
.btn-pay-approve, .btn-pay-reject {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px;
  border: none; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.btn-pay-approve {
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,.3);
}
.btn-pay-approve:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(16,185,129,.4); }
.btn-pay-reject {
  background: rgba(239,68,68,.1); color: #f87171;
  border: 1px solid rgba(239,68,68,.25);
}
.btn-pay-reject:hover { background: rgba(239,68,68,.18); }
.btn-pay-approve svg, .btn-pay-reject svg { width: 15px; height: 15px; }

@media (max-width: 700px) {
  .pay-admin-card { flex-direction: column; }
  .pay-admin-proof { width: 100%; height: 200px; }
}

.pay-admin-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 48px 20px; text-align: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.pay-admin-empty svg { width: 64px; height: 64px; color: var(--text-3); opacity: .35; }
.pay-admin-empty h3 { font-size: 16px; margin: 0; color: var(--text); }
.pay-admin-empty p { font-size: 13px; color: var(--text-3); margin: 0; max-width: 340px; }

/* History */
.pay-history-list { display: flex; flex-direction: column; gap: 6px; }
.pay-history-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.pay-history-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pay-history-approved .pay-history-icon { background: rgba(16,185,129,.15); color: #4ade80; }
.pay-history-rejected .pay-history-icon { background: rgba(239,68,68,.15); color: #f87171; }
.pay-history-icon svg { width: 18px; height: 18px; }
.pay-history-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-history-title { font-size: 13px; font-weight: 500; }
.pay-history-user { font-size: 11px; color: var(--text-3); }
.pay-history-link { color: var(--text-3); font-size: 18px; text-decoration: none; padding: 0 6px; }
.pay-history-link:hover { color: var(--violet-2); }

/* Sidebar divider */
.nav-divider {
  height: 1px; background: var(--border);
  margin: 8px 0;
}


/* ── Service toggles on payment page ── */
.pay-services-section {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 8px 0 6px;
}
.pay-services-title {
  font-size: 12px; font-weight: 600; color: var(--text);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 2px;
}
.pay-services-hint {
  font-size: 11px; color: var(--text-3);
  margin-bottom: 12px;
}
.pay-service-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: border-color .15s, background .15s;
}
.pay-service-toggle:hover { background: var(--bg-5); }
.pay-service-toggle.active {
  border-color: var(--violet);
  background: rgba(255,255,255,.08);
}
.pay-service-toggle:last-child { margin-bottom: 0; }
.pay-svc-check { display: none; }
.pay-svc-body {
  flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.pay-svc-name { font-size: 13px; color: var(--text); font-weight: 500; }
.pay-svc-price {
  font-size: 13px; color: var(--text-3); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pay-service-toggle.active .pay-svc-price { color: var(--violet-2); }
.pay-svc-indicator {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  transition: all .15s;
  flex-shrink: 0;
}
.pay-svc-indicator svg { width: 12px; height: 12px; }
.pay-service-toggle.active .pay-svc-indicator {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.pay-row-fixed { opacity: .8; }
.pay-required {
  font-size: 10px; color: var(--text-3); font-weight: 500;
  text-transform: uppercase; letter-spacing: .05em;
  margin-left: 4px;
}

/* ── Draft delete buttons ── */
.row-actions {
  display: flex; align-items: center; gap: 4px;
  margin-left: 8px;
}
.row-delete-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.row-delete-btn:hover {
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.3);
  color: #f87171;
}
.row-delete-btn svg { width: 14px; height: 14px; }

/* Delete draft button in new_release header */
.nr-title-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.nr-delete-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-3);
  font-size: 12px; font-weight: 500;
  font-family: inherit; cursor: pointer;
  transition: all .15s;
}
.nr-delete-btn:hover {
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.3);
  color: #f87171;
}
.nr-delete-btn svg { width: 14px; height: 14px; }

/* Nav divider (admin section) */
.nav-divider {
  height: 1px; background: var(--border);
  margin: 8px 4px;
}

/* ════════════════════════════════════════════════════════
   ADMIN SIMPLIFIED ACTIONS (step-based)
   ════════════════════════════════════════════════════════ */
.admin-current-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-4);
  border-radius: 10px;
  margin-bottom: 14px;
}
.acs-label {
  font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}

.admin-step-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  margin-bottom: 12px;
}
.admin-step-card.admin-step-waiting {
  background: rgba(251,146,60,.06);
  border-color: rgba(251,146,60,.2);
}
.admin-step-card.admin-step-success {
  background: rgba(16,185,129,.08);
  border-color: rgba(16,185,129,.25);
}
.admin-step-card.admin-step-rejected {
  background: rgba(239,68,68,.06);
  border-color: rgba(239,68,68,.2);
}
.admin-step-icon {
  font-size: 28px; line-height: 1;
  flex-shrink: 0;
  width: 50px; height: 50px;
  background: rgba(255,255,255,.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.admin-step-waiting .admin-step-icon { background: rgba(251,146,60,.15); }
.admin-step-success .admin-step-icon { background: rgba(16,185,129,.15); }
.admin-step-rejected .admin-step-icon { background: rgba(239,68,68,.15); }
.admin-step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.admin-step-title {
  font-size: 14px; font-weight: 600; margin: 0;
  color: var(--text);
}
.admin-step-desc {
  font-size: 12px; color: var(--text-2); margin: 0;
  line-height: 1.4;
}

.btn-admin-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  border: none; border-radius: 10px;
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  font-family: inherit;
  white-space: nowrap; flex-shrink: 0;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(255,255,255,.3);
}
.btn-admin-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,255,255,.45);
}
.btn-admin-primary svg { width: 16px; height: 16px; }

.admin-danger-actions {
  display: flex; gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.btn-admin-reject, .btn-admin-delete {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s;
  background: transparent;
  border: 1px solid rgba(239,68,68,.25);
  color: #f87171;
  width: 100%;
}
.btn-admin-reject:hover, .btn-admin-delete:hover {
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.4);
}
.btn-admin-reject svg, .btn-admin-delete svg { width: 14px; height: 14px; }

/* Remove old admin-danger top border - we have our own */
.admin-actions-card .action-group { padding: 0; border: none; }

@media (max-width: 700px) {
  .admin-step-card { flex-direction: column; align-items: stretch; }
  .btn-admin-primary { justify-content: center; }
}

/* ════════════════════════════════════════════════════════
   MODALS (accept/deliver/reject)
   ════════════════════════════════════════════════════════ */
.admin-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.admin-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
}
.admin-modal-body {
  position: relative;
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%; max-width: 480px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: modalIn .2s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.admin-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.admin-modal-header h3 {
  font-size: 18px; font-weight: 600;
  margin: 0; color: var(--text);
}
.admin-modal-close {
  width: 32px; height: 32px;
  background: transparent; border: none;
  color: var(--text-3); font-size: 24px;
  cursor: pointer; border-radius: 8px;
  transition: background .15s, color .15s;
  line-height: 1;
}
.admin-modal-close:hover { background: var(--bg-4); color: var(--text); }
.admin-modal-desc {
  font-size: 13px; color: var(--text-2);
  margin: 0 0 16px; line-height: 1.5;
}
.admin-modal-label {
  display: block;
  font-size: 11px; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
  margin-bottom: 6px;
}
.admin-modal-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text); font-size: 14px;
  font-family: inherit;
  transition: border-color .15s;
}
.admin-modal-input:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(255,255,255,.15);
}
.admin-modal-input[type="text"] {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 16px; font-weight: 600;
  letter-spacing: 0.05em;
}
textarea.admin-modal-input {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  resize: vertical; min-height: 70px;
}
.admin-modal-hint {
  font-size: 11px; color: var(--text-3);
  display: block; margin-top: 6px;
}
.admin-modal-info {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  margin-top: 12px;
  font-size: 12px; color: var(--text-2);
}
.admin-modal-info svg {
  width: 16px; height: 16px;
  color: var(--violet-2); flex-shrink: 0;
  margin-top: 1px;
}
.admin-modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.btn-modal-cancel, .btn-modal-primary, .btn-modal-reject {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: none;
  transition: all .15s;
}
.btn-modal-cancel {
  background: var(--bg-4); color: var(--text-2);
}
.btn-modal-cancel:hover { background: var(--bg-5); color: var(--text); }
.btn-modal-primary {
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,255,255,.3);
}
.btn-modal-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,255,255,.45);
}
.btn-modal-reject {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239,68,68,.3);
}
.btn-modal-reject:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239,68,68,.45);
}

/* Tariff cards inside modal */
.tariff-options {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.tariff-option input[type="radio"] { display: none; }
.tariff-card {
  padding: 14px 10px;
  background: var(--bg-3);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.tariff-option:hover .tariff-card { background: var(--bg-4); border-color: var(--border-2); }
.tariff-option input:checked + .tariff-card {
  border-color: var(--violet);
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,255,255,.2);
}
.tariff-card-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 2px;
}
.tariff-card-price {
  font-size: 12px; color: var(--violet-2); font-weight: 500;
}

@media (max-width: 500px) {
  .tariff-options { grid-template-columns: 1fr; }
  .admin-modal-body { padding: 20px; }
  .admin-modal-actions { flex-direction: column; }
  .btn-modal-cancel, .btn-modal-primary, .btn-modal-reject { width: 100%; }
}

/* ── Accept modal (wide, with tariff + services) ── */
.admin-modal-wide { max-width: 560px; }

.modal-section-label {
  font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em;
  font-weight: 600;
  margin: 16px 0 8px;
}
.modal-section-label:first-of-type { margin-top: 8px; }

/* Tariff cards */
.tariff-options {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tariff-option input[type="radio"] { display: none; }
.tariff-card {
  padding: 14px 12px;
  background: var(--bg-4);
  border: 2px solid var(--border);
  border-radius: 10px;
  text-align: center; cursor: pointer;
  transition: all .15s;
}
.tariff-option:hover .tariff-card { background: var(--bg-5); border-color: var(--border-2); }
.tariff-option input:checked + .tariff-card {
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.08));
  border-color: var(--violet);
  box-shadow: 0 4px 14px rgba(255,255,255,.2);
}
.tariff-card-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.tariff-card-price { font-size: 13px; color: var(--violet-2); font-weight: 600; }

/* Services list in accept modal */
.accept-services-list {
  display: flex; flex-direction: column; gap: 4px;
}
.accept-svc-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.accept-svc-item:hover { background: var(--bg-5); }
.accept-svc-item.checked {
  background: rgba(255,255,255,.08);
  border-color: var(--violet);
}
.accept-svc-check { accent-color: var(--violet); cursor: pointer; }
.accept-svc-name { flex: 1; font-size: 13px; color: var(--text); }
.accept-svc-price {
  font-size: 13px; color: var(--text-3); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.accept-svc-item.checked .accept-svc-price { color: var(--violet-2); }

/* Total */
.accept-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  margin-top: 14px;
  font-size: 14px; color: var(--text);
}
.accept-total-row strong {
  font-size: 22px; font-weight: 700;
  color: var(--violet-2);
  font-variant-numeric: tabular-nums;
}
.accept-total-hint {
  font-size: 12px; color: var(--text-3);
  margin-top: 8px; text-align: center;
}
.accept-total-hint-free { color: #4ade80; }

/* ── Create New Release button — always highlighted, distinct from nav ── */
.nav-create {
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.25);
  color: var(--violet-2);
  font-weight: 600;
  position: relative;
}
.nav-create::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px;
  background: linear-gradient(180deg, #cfcfd6, #cfcfd6);
  border-radius: 2px 0 0 2px;
}
.nav-create svg { color: var(--violet-2); }
.nav-create:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.15));
  color: var(--violet-2);
  border-color: var(--violet);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,.15);
  transition: all .15s;
}
.nav-create.active {
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.18));
  border-color: var(--violet);
  box-shadow: 0 4px 12px rgba(255,255,255,.2);
}
.nav-create.active::before { background: linear-gradient(180deg, #a5b4fc, #7dd3fc); }

/* Emphasize primary create button on empty states */
.btn-primary-create {
  background: linear-gradient(135deg, #ffffff, #cfcfd6) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(255,255,255,.4);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary-create:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,255,255,.55);
}

/* ── License badge (FFP/Leasing/Exclusive) on release detail ── */
.license-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .03em;
}
.license-badge svg { width: 14px; height: 14px; }
.license-ffp {
  background: rgba(255,255,255,.15);
  color: #e9e9ef;
  border: 1px solid rgba(255,255,255,.3);
}
.license-leasing {
  background: rgba(251,146,60,.15);
  color: #fb923c;
  border: 1px solid rgba(251,146,60,.3);
}
.license-exclusive {
  background: linear-gradient(135deg, rgba(234,179,8,.2), rgba(251,146,60,.15));
  color: #fbbf24;
  border: 1px solid rgba(234,179,8,.3);
}
.license-own {
  background: rgba(34,197,94,.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.3);
}


/* ── Admin tools (collapsible section in release detail) ── */
.admin-tools-details {
  margin-top: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.admin-tools-summary {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--text-2); font-size: 13px; font-weight: 500;
  list-style: none;
  user-select: none;
  transition: background .15s;
}
.admin-tools-summary:hover { background: var(--bg-4); }
.admin-tools-summary::-webkit-details-marker { display: none; }
.admin-tools-summary svg:first-child {
  width: 16px; height: 16px; color: var(--text-3);
}
.admin-tools-summary span { flex: 1; }
.admin-tools-chevron {
  width: 14px; height: 14px; color: var(--text-3);
  transition: transform .2s;
}
.admin-tools-details[open] .admin-tools-chevron { transform: rotate(180deg); }
.admin-tools-body {
  padding: 4px 14px 14px;
  display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid var(--border);
}
.tools-inline-form { display: flex; flex-direction: column; gap: 6px; }
.tools-label {
  font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}
.tools-row { display: flex; gap: 8px; }
.tools-row .admin-select, .tools-row .admin-input { flex: 1; }

.btn-tools {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  color: #e9e9ef; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
  width: 100%; justify-content: center;
}
.btn-tools:hover { background: rgba(255,255,255,.2); }
.btn-tools svg { width: 16px; height: 16px; }

.btn-tools-sm {
  padding: 8px 14px;
  background: var(--bg-5); border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
  white-space: nowrap;
}
.btn-tools-sm:hover { background: var(--bg-4); border-color: var(--violet); }

.btn-admin-delete-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 8px;
  color: #f87171; font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
  width: 100%;
}
.btn-admin-delete-sm:hover { background: rgba(239,68,68,.15); }
.btn-admin-delete-sm svg { width: 14px; height: 14px; }

/* ════════════════════════════════════════════════════════
   NEW RELEASE FORM — TRACKS (extended)
   ════════════════════════════════════════════════════════ */

/* Add track button */
.btn-add-track-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.1));
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  color: var(--violet-2); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.btn-add-track-sm:hover { background: rgba(255,255,255,.25); transform: translateY(-1px); }
.btn-add-track-sm svg { width: 14px; height: 14px; }

/* Track card */
.track-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 10px;
  overflow: hidden;
  transition: border-color .15s;
}
.track-card:hover { border-color: var(--border-2); }
.track-card details { padding: 0; }
.track-card summary { list-style: none; }
.track-card summary::-webkit-details-marker { display: none; }

.track-summary {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}
.track-summary:hover { background: var(--bg-4); }

.track-num-badge {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #cfcfd6);
  color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.track-summary-title {
  flex: 1; font-size: 14px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-empty-title { color: var(--text-3); font-style: italic; font-size: 13px; }
.track-summary-actions {
  display: flex; gap: 4px; flex-shrink: 0;
}
.track-btn-icon {
  width: 26px; height: 26px; padding: 0;
  background: var(--bg-4); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-2);
  font-size: 12px; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.track-btn-icon:hover { background: var(--bg-5); color: var(--text); }
.track-btn-delete:hover { background: rgba(239,68,68,.15); color: #f87171; border-color: rgba(239,68,68,.3); }
.track-chevron {
  width: 14px; height: 14px; color: var(--text-3);
  transition: transform .2s; flex-shrink: 0;
}
details[open] .track-chevron { transform: rotate(180deg); }

/* Track body */
.track-body {
  padding: 4px 18px 18px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 18px;
}
.track-subsection {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.track-subtitle-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.track-subtitle {
  font-size: 13px; font-weight: 600; color: var(--text);
}
.track-hint { font-size: 11px; color: var(--text-3); margin: 0; }

/* Copy-to-tracks button */
.copy-to-tracks-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-3); font-size: 11px; font-weight: 500;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background .15s, color .15s;
}
.copy-to-tracks-btn:hover { background: var(--bg-4); color: var(--violet-2); border-color: var(--violet); }
.copy-to-tracks-btn-sm {
  width: 22px; height: 22px; padding: 0;
  background: transparent; border: 1px solid var(--border);
  border-radius: 5px; color: var(--text-3);
  font-size: 11px; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.copy-to-tracks-btn-sm:hover { background: var(--bg-4); color: var(--violet-2); }

/* Performers / Feat list */
.performers-list { display: flex; flex-direction: column; gap: 6px; }
.performer-row {
  display: flex; gap: 6px; align-items: center;
}
.performer-row .nr-input { flex: 1; }
.list-move-btn, .list-remove-btn {
  width: 32px; height: 38px;
  background: var(--bg-4); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-3);
  font-size: 13px; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.list-move-btn:hover:not(:disabled), .list-remove-btn:hover:not(:disabled) {
  background: var(--bg-5); color: var(--text);
}
.list-move-btn:disabled { opacity: .35; cursor: not-allowed; }
.list-remove-btn:hover:not(:disabled) {
  background: rgba(239,68,68,.1); color: #f87171; border-color: rgba(239,68,68,.3);
}
.list-add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px;
  background: var(--bg-4); border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-2); font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
  align-self: flex-start;
}
.list-add-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--violet); border-style: solid;
  color: var(--violet-2);
}

/* Authors */
.authors-list { display: flex; flex-direction: column; gap: 12px; }
.author-row {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.author-row .nr-input { width: 100%; }
.author-roles {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.author-role {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.author-role:hover { background: var(--bg-5); }
.author-role:has(input:checked) {
  background: rgba(255,255,255,.12);
  border-color: var(--violet);
  color: var(--violet-2);
}
.author-role input { accent-color: var(--violet); }
.author-row .list-remove-btn {
  width: auto;
  padding: 6px 12px;
  font-size: 11px;
  align-self: flex-end;
}

/* Track checkboxes (explicit / drugs) */
.track-checkbox-row {
  display: flex; flex-direction: column; gap: 8px;
}
.track-checkbox {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background .15s;
}
.track-checkbox:hover { background: var(--bg-5); }
.track-checkbox input { accent-color: var(--violet); }
.track-checkbox span:first-of-type, .track-checkbox > span:not(.tooltip-host) { flex: 1; }
.track-checkbox-warning { border-color: rgba(251,146,60,.25); }
.track-checkbox-warning:has(input:checked) {
  background: rgba(251,146,60,.08);
  border-color: rgba(251,146,60,.4);
}

/* Tooltip */
.tooltip-host {
  position: relative; display: inline-flex; align-items: center;
  cursor: help; outline: none;
  flex-shrink: 0;
}
.tooltip-host svg { width: 16px; height: 16px; color: var(--text-3); }
.tooltip-host:hover svg, .tooltip-host:focus svg { color: var(--violet-2); }
.tooltip-box {
  position: absolute;
  bottom: calc(100% + 8px); right: -10px;
  width: 320px; max-width: 80vw;
  padding: 12px 14px;
  background: #1c1d26;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-2); font-size: 12px; line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s;
  z-index: 1000;
}
.tooltip-host:hover .tooltip-box,
.tooltip-host:focus .tooltip-box {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}

/* Karaoke toggle per track */
.track-karaoke-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.track-karaoke-toggle:has(input:checked) {
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.08));
  border-color: rgba(255,255,255,.45);
}
.track-karaoke-toggle input { accent-color: #e9e9ef; }
.track-karaoke-toggle > div {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.track-karaoke-toggle strong { font-size: 13px; color: var(--text); font-weight: 600; }
.track-karaoke-toggle span { font-size: 11px; color: var(--text-3); }
.track-karaoke-price {
  font-size: 14px; font-weight: 700; color: #e9e9ef;
  flex-shrink: 0;
}

/* Karaoke notice on services tab */
.karaoke-notice {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
}
.karaoke-notice svg { width: 18px; height: 18px; color: #e9e9ef; flex-shrink: 0; margin-top: 2px; }
.karaoke-notice div { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.karaoke-notice strong { color: var(--text); }

/* Meta language hint */
.meta-lang-row {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.meta-lang-row select { flex: 1; min-width: 200px; max-width: 260px; }
.meta-lang-hint {
  font-size: 11px; color: var(--text-3);
  padding: 4px 10px;
  background: var(--bg-4);
  border-radius: 999px;
  white-space: nowrap;
}
.meta-lang-hint.detected {
  background: rgba(255,255,255,.1);
  color: var(--violet-2);
}

.optional-label {
  font-size: 10px; color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-left: 6px;
}

/* Copy modal */
.copy-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity .15s;
}
.copy-modal-backdrop.show { opacity: 1; pointer-events: auto; }
.copy-modal-box {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  max-width: 480px; width: 90%;
  max-height: 80vh; overflow-y: auto;
}
.copy-modal-title {
  font-size: 16px; font-weight: 600;
  margin: 0 0 6px;
}
.copy-modal-desc {
  font-size: 12px; color: var(--text-3);
  margin: 0 0 16px;
}
.copy-target-list {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.copy-target-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.copy-target-row:hover { background: var(--bg-5); }
.copy-target-row input { accent-color: var(--violet); }
.copy-target-row span { flex: 1; font-size: 13px; }
.copy-modal-actions {
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ── Release-level artists list (matches performer-row style) ── */
.artists-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.artist-row {
  display: flex; align-items: center; gap: 6px;
}
.artist-row .nr-input { flex: 1; }

/* ── Author validation ── */
.author-row-error { border-left: 3px solid #ef4444; padding-left: 10px; }
.nr-input-error { border-color: #ef4444 !important; }
.author-validation-msg {
  font-size: 12px; color: #f87171;
  padding: 4px 0 0 4px;
  font-style: italic;
}

/* ── Empty feat hint ── */
.empty-feat-hint {
  font-size: 12px; color: var(--text-3);
  font-style: italic;
  padding: 8px 12px;
}

/* ── Wider moderator textarea ── */
.moderator-textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
}

/* ── Cover preview in review ── */
.rv-cover-block {
  display: flex; justify-content: center;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.rv-cover {
  max-width: 240px; width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.rv-cover-empty {
  font-size: 14px; color: #f87171;
  padding: 32px;
  text-align: center;
  font-weight: 500;
}

/* ── Tracks detailed display (release_detail and admin_release) ── */
.tracks-list { display: flex; flex-direction: column; gap: 8px; }
.track-detail-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.track-detail-summary {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .15s;
}
.track-detail-summary:hover { background: var(--bg-4); }
.track-detail-summary::-webkit-details-marker { display: none; }
.track-detail-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.1));
  color: var(--violet-2);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.track-detail-title {
  flex: 1;
  font-size: 14px; font-weight: 500;
}
.track-flag {
  font-size: 14px;
  opacity: .9;
}
.track-detail-item .track-chevron {
  width: 14px; height: 14px;
  color: var(--text-3);
  transition: transform .2s;
}
.track-detail-item[open] .track-chevron { transform: rotate(180deg); }
.track-detail-body {
  padding: 8px 14px 16px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.td-row {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 13px;
}
.td-row-block { flex-direction: column; gap: 6px; align-items: stretch; }
.td-label {
  font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .05em;
  font-weight: 600;
  min-width: 100px;
  flex-shrink: 0;
}
.td-link { color: var(--violet-2); text-decoration: none; }
.td-link:hover { text-decoration: underline; }
.td-authors {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}
.td-author {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 10px;
  background: var(--bg-4);
  border-radius: 6px;
}
.td-author strong { font-size: 13px; color: var(--text); }
.td-author-roles {
  font-size: 11px; color: var(--text-3);
  font-style: italic;
}
.td-lyrics {
  background: var(--bg-4);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}
.moderator-msg-block {
  background: var(--bg-4);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  white-space: pre-wrap;
  color: var(--text-2);
  line-height: 1.5;
}

/* ── Admin Edit Release button ── */
.btn-admin-edit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 12px 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  color: #e9e9ef;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-admin-edit:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,.25);
}
.btn-admin-edit svg { width: 16px; height: 16px; }

/* ── Release tab — 2-column compact layout ── */
.release-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-bottom: 12px;
}
.release-grid-left {
  position: sticky;
  top: 12px;
  align-self: start;
}
.release-grid-right {
  display: flex; flex-direction: column;
  gap: 12px;
}
@media (max-width: 900px) {
  .release-grid { grid-template-columns: 1fr; }
  .release-grid-left { position: static; }
}

/* Compact section style for the right column */
.nr-section-compact {
  margin-bottom: 0;
}
.nr-section-compact .nr-section-title {
  font-size: 14px; margin-bottom: 4px;
}
.nr-label-block {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.nr-label-hint {
  font-size: 11px; font-weight: 400;
  color: var(--text-3);
  margin-left: 4px;
}
.nr-hint-inline {
  font-size: 11px; color: var(--text-3);
  margin: 0 0 6px;
}
.nr-section-desc-sm {
  font-size: 11px; color: var(--text-3);
  margin: 0 0 8px;
}

/* 3-column row for genre/upc/date */
.nr-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .nr-row-3 { grid-template-columns: 1fr; }
}

/* Vertical release type cards (for left col) */
.rt-grid-vertical {
  display: flex; flex-direction: column;
  gap: 6px;
}
.rt-grid-vertical .rt-option {
  width: 100%;
}
.rt-grid-vertical .rt-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  text-align: left;
}
.rt-grid-vertical .rt-icon {
  font-size: 22px;
  margin: 0;
}
.rt-grid-vertical .rt-label {
  flex: 1;
  font-size: 14px;
  margin: 0;
}
.rt-grid-vertical .rt-desc {
  font-size: 11px;
  margin: 0;
  color: var(--text-3);
}

/* Larger cover preview in left column */
.release-grid-left .cover-drop-zone {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: unset;
}

/* ── dev overrides: первичные «белые» кнопки — тёмный текст ── */
.btn-primary,.tg-login-btn,.btn-violet,.user-avatar-fallback,.page-num.active,.nav-create,.btn-pay-cta,.btn-deliver-page{color:#0a0a0c !important}
.btn-primary,.tg-login-btn{border-radius:999px}
.logo-mask{background:#fff}

/* ══ Component restyle on top of the theme (was dev-restyle.css) ══ */
/* ════════════════════════════════════════════════════════════
   DEV RESTYLE — кабинет в стиле новой визитки (поверх dev-theme.css).
   Грузится только на dev.elysiummusic.org. Прод не трогается.
   Регенерация dev-theme.css этот файл не затирает.
   ════════════════════════════════════════════════════════════ */

:root{
  --bg:#08080a; --bg-2:#0e0e11; --bg-3:#141418; --bg-4:#1a1a20;
  --border:rgba(255,255,255,.08); --border-2:rgba(255,255,255,.16);
  --text:#f5f5f7; --text-2:#9a9aa4; --text-3:#5d5d66;
  --radius:14px; --radius-sm:10px; --radius-lg:18px;
  --sidebar-w:252px;
  --font-display:'Geologica',-apple-system,BlinkMacSystemFont,sans-serif;
  --font-body:'Golos Text',-apple-system,BlinkMacSystemFont,sans-serif;
}
body{ background:var(--bg); font-family:var(--font-body); }

/* ── SIDEBAR ─────────────────────────────────────────── */
.sidebar{ background:#0a0a0c; border-right:1px solid var(--border); }
.sidebar-logo-text{ font-family:var(--font-display); font-weight:700; letter-spacing:-.01em; }

.sidebar-user{
  background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius);
  transition:border-color .2s, background .2s;
}
.sidebar-user:hover{ border-color:var(--border-2); background:var(--bg-3); }
.user-name{ font-family:var(--font-display); font-weight:600; }
.user-avatar-fallback{ background:#fff; color:#0a0a0c; font-family:var(--font-display); }

/* nav items */
.nav-item{
  border-radius:var(--radius-sm); color:var(--text-2); font-weight:500;
  border:1px solid transparent; transition:background .18s,color .18s,border-color .18s;
}
.nav-item:hover{ background:rgba(255,255,255,.05); color:var(--text); }
.nav-item.active,
.nav-item.nav-create.active{
  background:#fff !important; color:#0a0a0c !important; border-color:transparent !important;
  box-shadow:0 4px 18px rgba(0,0,0,.4);
}
.nav-item.active svg{ color:#0a0a0c !important; }
.nav-item.active .nav-badge{ background:rgba(0,0,0,.14) !important; color:#0a0a0c !important; }
.nav-create{ background:none !important; border:1px solid var(--border) !important; color:var(--text-2) !important; font-weight:500 !important; }
.nav-create svg{ color:var(--text-2) !important; }
.nav-create:hover{ background:rgba(255,255,255,.05) !important; color:var(--text) !important; }
.nav-create:hover svg{ color:var(--text) !important; }
.nav-badge{ background:rgba(255,255,255,.08); color:var(--text-2); border-radius:999px; font-weight:600; }

.support-btn,.logout-btn{ color:var(--text-2); border-radius:var(--radius-sm); transition:background .18s,color .18s; }
.support-btn:hover,.logout-btn:hover{ background:rgba(255,255,255,.05); color:var(--text); }

/* ── PAGE HEADER ─────────────────────────────────────── */
.page-title{ font-family:var(--font-display); font-weight:800; letter-spacing:-.03em; }
.page-count{ color:var(--text-3); font-weight:500; }
.mobile-title{ font-family:var(--font-display); font-weight:700; }

/* ── SEARCH / FILTERS ────────────────────────────────── */
.search-input-wrap,.date-range-picker{
  background:var(--bg-2); border:1px solid var(--border); border-radius:999px;
  transition:border-color .2s, background .2s;
}
.search-input-wrap:focus-within,.date-range-picker:hover{ border-color:var(--border-2); background:var(--bg-3); }
/* Внутренние поля — БЕЗ собственной рамки/фона (иначе двойная рамка поверх «пилюли»).
   Селекторы с .filter-search/.date-range-picker нужны, чтобы перебить dev-theme. */
.search-input,.drp-input,
.filter-search .search-input,.date-range-picker .drp-input{
  background:none; border:none; border-radius:0; box-shadow:none; outline:none;
  color:var(--text); font-family:var(--font-body);
}
.filter-search .search-input:focus,.date-range-picker .drp-input:focus{
  background:none; border:none; box-shadow:none; outline:none;
}
.search-input::placeholder,.drp-input::placeholder{ color:var(--text-3); }
.filter-reset-btn{ border:1px solid var(--border); border-radius:999px; color:var(--text-2); }
.filter-reset-btn:hover{ border-color:var(--border-2); color:var(--text); background:rgba(255,255,255,.04); }

/* ── STATUS TABS (сегмент-пилюли как в визитке) ──────── */
.status-tabs{ gap:6px; }
.status-tab{
  background:var(--bg-2); border:1px solid var(--border); border-radius:999px;
  color:var(--text-2); font-weight:500; transition:background .18s,color .18s,border-color .18s;
}
.status-tab:hover{ border-color:var(--border-2); color:var(--text); }
.status-tab.active{
  background:#fff !important; color:#0a0a0c !important; border-color:transparent !important;
}
.status-tab.active .stab-count{ background:rgba(0,0,0,.14); color:#0a0a0c; }
.stab-count{ background:rgba(255,255,255,.08); color:var(--text-2); border-radius:999px; }

/* ── RELEASE ROWS (карточки) ─────────────────────────── */
.release-row{
  background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius);
  transition:transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.release-row:hover{
  transform:translateY(-2px); border-color:var(--border-2); background:var(--bg-3);
  box-shadow:0 16px 40px rgba(0,0,0,.5);
}
.row-cover img{ border-radius:var(--radius-sm) !important; }
.row-title,.release-title{ font-family:var(--font-display); font-weight:600; letter-spacing:-.01em; }
.row-artist,.release-artist{ color:var(--text-2); }
.row-meta-label,.row-label{ color:var(--text-3); letter-spacing:.08em; }
.row-arrow-btn{
  border:1px solid var(--border); border-radius:50%; color:var(--text-2);
  transition:background .2s,color .2s,border-color .2s,transform .15s;
}
.row-arrow-btn:hover{ background:#fff; color:#0a0a0c; border-color:transparent; transform:translateX(2px); }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-primary,.tg-login-btn,.btn-violet,.nav-create.active,
.btn-pay-cta,.btn-deliver,.btn-deliver-page,.btn-add-track{
  background:#fff !important; color:#0a0a0c !important; border:none !important;
  border-radius:999px; box-shadow:none;
}
.btn-primary:hover,.tg-login-btn:hover{ filter:none; transform:translateY(-1px); box-shadow:0 8px 26px rgba(255,255,255,.14); }
.btn-secondary{ background:var(--bg-3); border:1px solid var(--border-2); color:var(--text); border-radius:999px; }
.btn-secondary:hover{ background:var(--bg-4); }

/* ── GENERIC CARDS / PANELS ──────────────────────────── */
.card, .section-card, .stat-card, .info-card{
  background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius);
}
.section-title{ font-family:var(--font-display); font-weight:700; letter-spacing:-.01em; }

/* status badges — нейтральные/семантические, но спокойные */
.status-badge-rejected,.card-badge.rejected{ background:rgba(239,68,68,.12); color:#fca5a5; border:1px solid rgba(239,68,68,.25); }
.status-badge-delivered{ background:rgba(34,197,94,.12); color:#86efac; border:1px solid rgba(34,197,94,.25); }

/* ── DASHBOARD: сетка обложек (Koala-style) ──────────── */
.dev-rel-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:20px; margin-top:8px; }
.dev-rel-card{ display:block; cursor:pointer; transition:transform .2s; }
.dev-rel-card:hover{ transform:translateY(-4px); }
.dev-rel-cover{
  position:relative; aspect-ratio:1; border-radius:14px; overflow:hidden;
  background:linear-gradient(135deg,#16161c,#0d0d10); border:1px solid var(--border);
  transition:border-color .2s, box-shadow .2s;
}
.dev-rel-cover img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.dev-rel-card:hover .dev-rel-cover{ border-color:var(--border-2); box-shadow:0 18px 44px rgba(0,0,0,.55); }
.dev-rel-card:hover .dev-rel-cover img{ transform:scale(1.05); }
.dev-rel-cover.noimg img{ display:none; }
.dev-rel-status{
  position:absolute; left:10px; bottom:10px; padding:5px 11px; border-radius:999px;
  font-size:11px; font-weight:600; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.dev-rel-type{
  position:absolute; right:10px; top:10px; padding:4px 10px; border-radius:999px;
  font-size:10px; font-weight:600;
  background:rgba(8,8,10,.7); border:1px solid var(--border); color:var(--text-2);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.dev-rel-body{ padding:12px 2px 0; }
.dev-rel-title{ font-family:var(--font-display); font-weight:600; font-size:15px; letter-spacing:-.01em; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dev-rel-artist{ color:var(--text-2); font-size:13px; margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dev-rel-meta{ color:var(--text-3); font-size:12px; margin-top:6px; }

/* ── SIDEBAR FIXES ───────────────────────────────────── */
.nav-item{ gap:12px; }
.nav-item span{ overflow:visible !important; text-overflow:clip !important; white-space:nowrap; }
.nav-item .nav-badge{ margin-left:auto; flex-shrink:0; }

/* фиолетовая кнопка «Редактировать релиз» → нейтральная */
.btn-admin-edit{ background:var(--bg-3) !important; border:1px solid var(--border-2) !important; color:var(--text) !important; border-radius:12px; }
.btn-admin-edit:hover{ background:var(--bg-4) !important; transform:translateY(-1px); box-shadow:none; }
.btn-admin-edit svg,.btn-admin-edit *{ color:var(--text) !important; }

/* breadcrumbs / admin headings */
.breadcrumb a:hover{ color:var(--text); }
.admin-current-status,.section-card,.admin-tools-details{ border-radius:var(--radius); }

/* белые «принять» кнопки админки */
.btn-admin-primary{ background:#fff !important; color:#0a0a0c !important; border:none !important; border-radius:999px; }
.btn-admin-primary *{ color:#0a0a0c !important; }
.btn-admin-reject{ border-radius:999px; }

/* ── ФОРМА: видимость активного таба и номеров (были белым по белому) ── */
.nr-tab.active{ color:#0a0a0c !important; box-shadow:none !important; }
.nr-tab.active span{ color:#0a0a0c !important; }
.nr-tab.active .nr-tab-num{ background:rgba(0,0,0,.16) !important; color:#0a0a0c !important; }
.track-num-badge{ color:#0a0a0c !important; }
/* поле «Продвижение» (и прочие textarea) — на всю ширину и повыше */
.nr-textarea{ width:100% !important; min-height:120px; }
#promo{ min-height:150px; }

/* ── «Новый релиз» в правом верху (как Koala) ────────── */
.page-header{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.dev-new-release-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 20px; border-radius:999px;
  background:#fff; color:#0a0a0c; font-family:var(--font-display); font-weight:600; font-size:14px;
  white-space:nowrap; transition:transform .15s, box-shadow .15s;
}
.dev-new-release-btn svg{ width:18px; height:18px; }
.dev-new-release-btn:hover{ transform:translateY(-1px); box-shadow:0 8px 26px rgba(255,255,255,.18); }

/* ── SIDEBAR в стиле Koala (чище) ────────────────────── */
.sidebar{ background:#0a0a0c; border-right:1px solid var(--border); }
.sidebar-inner{ padding-top:6px; }
/* админ-пункт — обычный, без спец-подсветки */
.nav-item.admin-link{ background:none !important; border:1px solid transparent !important; color:var(--text-2) !important; }
.nav-item.admin-link svg{ color:var(--text-2) !important; }
.nav-item.admin-link:hover{ background:rgba(255,255,255,.05) !important; color:var(--text) !important; }
.nav-item.admin-link.active{ background:#fff !important; color:#0a0a0c !important; }
.nav-item.admin-link.active svg{ color:#0a0a0c !important; }
.nav-divider{ background:var(--border); }
/* нав-пункты: ровные отступы, читаемый текст */
.nav-item{ padding:11px 14px; font-weight:500; }
.sidebar-nav{ gap:4px; }

/* ════ DEV: СТРАНИЦА РЕЛИЗА (Koala-style) ════ */
.dev-release{ max-width:1180px; }
.dev-rh{ display:flex; align-items:center; gap:14px; margin:6px 0 28px; flex-wrap:wrap; }
.dev-rh-icon{ width:26px; height:26px; color:var(--text-2); flex-shrink:0; }
.dev-rh-title{ font-family:var(--font-display); font-weight:800; font-size:clamp(24px,3.4vw,34px); letter-spacing:-.03em; }
.dev-rh-badge{ padding:5px 12px; border-radius:999px; font-size:12px; font-weight:600; }

.dev-release-layout{ display:grid; grid-template-columns:1fr 320px; gap:32px; align-items:start; }
@media(max-width:980px){ .dev-release-layout{ grid-template-columns:1fr; } }
.dev-release-main{ display:flex; flex-direction:column; }

.dev-sec{ padding:26px 0; border-top:1px solid var(--border); }
.dev-sec:first-child{ border-top:none; padding-top:4px; }
.dev-sec-h{ display:flex; align-items:center; gap:12px; font-family:var(--font-display); font-weight:700; font-size:18px; letter-spacing:-.01em; margin-bottom:18px; }
.dev-sec-n{ width:26px; height:26px; border-radius:8px; background:rgba(255,255,255,.06); border:1px solid var(--border); display:inline-flex; align-items:center; justify-content:center; font-size:13px; color:var(--text-2); font-family:var(--font-body); flex-shrink:0; }

/* треки */
.dev-tracks{ display:flex; flex-direction:column; gap:8px; }
.dev-track{ background:var(--bg-2); border:1px solid var(--border); border-radius:12px; overflow:hidden; transition:border-color .2s; }
.dev-track[open]{ border-color:var(--border-2); }
.dev-track-sum{ display:flex; align-items:center; gap:14px; padding:13px 16px; cursor:pointer; list-style:none; transition:background .2s; }
.dev-track-sum::-webkit-details-marker{ display:none; }
.dev-track-sum:hover{ background:var(--bg-3); }
.dev-track-num{ font-family:var(--font-body); color:var(--text-3); font-size:13px; min-width:22px; }
.dev-track-info{ flex:1; min-width:0; }
.dev-track-title{ font-weight:600; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.dev-track-sub{ color:var(--text-2); font-size:13px; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dev-track-chev{ width:18px; height:18px; color:var(--text-3); flex-shrink:0; transition:transform .2s; }
.dev-track[open] .dev-track-chev{ transform:rotate(180deg); }
.dev-track-body{ padding:8px 16px 16px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:10px; }
.dev-td{ display:flex; gap:14px; font-size:14px; align-items:baseline; }
.dev-td-l{ color:var(--text-3); min-width:120px; flex-shrink:0; font-size:13px; }
.dev-td-block{ flex-direction:column; gap:6px; }
.dev-td .dev-lyrics{ margin-top:0; }
.dev-flag{ font-size:10px; font-weight:700; padding:1px 6px; border-radius:5px; background:rgba(255,255,255,.1); color:var(--text-2); }
/* значки трека (explicit / наркотики / караоке) вместо смайликов */
.dev-tag{ display:inline-flex; align-items:center; justify-content:center; height:18px; min-width:18px; padding:0 4px; border-radius:5px; font-size:11px; font-weight:800; line-height:1; vertical-align:middle; flex-shrink:0; }
.dev-tag svg{ width:13px; height:13px; }
.dev-tag-e{ background:rgba(255,255,255,.16); color:#fff; }
.dev-tag-d{ background:rgba(239,68,68,.16); color:#fca5a5; }
.dev-track-play{ width:38px; height:38px; border-radius:50%; background:#fff; color:#0a0a0c; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; transition:transform .15s; }
.dev-track-play:hover{ transform:scale(1.08); }

/* info grid (две колонки как Koala) */
.dev-info-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px 32px; }
@media(max-width:600px){ .dev-info-grid{ grid-template-columns:1fr; } }
.dev-info{ display:flex; flex-direction:column; gap:5px; }
.dev-info-l{ font-size:12px; color:var(--text-3); }
.dev-info-v{ font-size:15px; color:var(--text); }
.dev-code{ font-family:'JetBrains Mono','Fira Code',monospace; background:rgba(255,255,255,.06); padding:2px 8px; border-radius:6px; font-size:13px; }

/* услуги / сообщение / текст */
.dev-services{ display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.dev-service{ display:flex; justify-content:space-between; padding:12px 16px; background:var(--bg-2); border:1px solid var(--border); border-radius:10px; }
.dev-service-p{ color:var(--text-2); }
.dev-msg{ padding:14px 16px; background:var(--bg-2); border:1px solid var(--border); border-radius:10px; color:var(--text-2); line-height:1.6; }
.dev-promo-msg{ white-space:pre-wrap; }
.dev-lyrics{ white-space:pre-wrap; font-family:var(--font-body); color:var(--text-2); background:var(--bg-2); border:1px solid var(--border); border-radius:10px; padding:14px 16px; margin-top:10px; font-size:14px; line-height:1.6; }

/* оплата / заметка */
.dev-pay-cta{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 22px; border-radius:14px; background:#fff; color:#0a0a0c; font-weight:600; font-family:var(--font-display); margin-bottom:18px; }
.dev-pay-amt{ font-weight:700; }
.dev-note{ padding:14px 18px; border-radius:12px; background:rgba(234,179,8,.1); border:1px solid rgba(234,179,8,.25); color:#fde047; margin-bottom:18px; }

/* правая колонка */
.dev-release-aside{ position:sticky; top:24px; display:flex; flex-direction:column; gap:14px; }
.dev-aside-cover{ aspect-ratio:1; border-radius:16px; overflow:hidden; background:linear-gradient(135deg,#16161c,#0d0d10); border:1px solid var(--border); }
.dev-aside-cover img{ width:100%; height:100%; object-fit:cover; }
.dev-aside-card{ padding:16px 18px; background:var(--bg-2); border:1px solid var(--border); border-radius:14px; display:flex; flex-direction:column; gap:12px; }
.dev-aside-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:14px; }
.dev-aside-l{ color:var(--text-3); }
.dev-aside-cap{ font-size:11px; color:var(--text-3); letter-spacing:.08em; text-transform:uppercase; }
.dev-aside-link{ color:var(--text); font-size:14px; padding:3px 0; transition:color .15s; }
.dev-aside-link:hover{ color:#fff; }
.dev-aside-support{ padding:14px 16px; border:1px solid var(--border); border-radius:14px; color:var(--text-2); font-size:14px; text-align:center; transition:background .2s, color .2s; }
.dev-aside-support:hover{ background:var(--bg-2); color:var(--text); }

/* ════ DEV: АДМИН-СТРАНИЦА РЕЛИЗА — чистый стиль ════ */
.detail-right{ position:sticky; top:24px; }
.detail-hero{ background:var(--bg-2); border:1px solid var(--border); border-radius:16px; }
.detail-cover, .detail-cover img{ border-radius:12px; }
.detail-title{ font-family:var(--font-display); font-weight:800; letter-spacing:-.025em; }
.detail-artist{ color:var(--text-2); }
.detail-type{ color:var(--text-3); }
.section-card{ background:var(--bg-2); border:1px solid var(--border); border-radius:16px; }
.section-title{ font-family:var(--font-display); font-weight:700; letter-spacing:-.01em; }
.info-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px 24px; }
@media(max-width:600px){ .info-grid{ grid-template-columns:1fr; } }
.info-row{ display:flex; flex-direction:column; gap:4px; }
.info-label{ font-size:12px; color:var(--text-3); }
.info-value{ font-size:14px; color:var(--text); }
.upc-code{ background:rgba(255,255,255,.06); border-radius:6px; }

/* панель ДЕЙСТВИЯ */
.admin-actions-card{ border-radius:16px; }
.admin-current-status{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; background:var(--bg-3); border:1px solid var(--border); border-radius:12px; }
.admin-step-card{ display:flex; gap:14px; padding:16px; background:var(--bg-3); border:1px solid var(--border); border-radius:12px; }
.admin-step-icon{ font-size:22px; flex-shrink:0; }
.admin-step-title{ font-family:var(--font-display); font-weight:600; font-size:15px; }
.admin-step-desc{ color:var(--text-2); font-size:13px; line-height:1.5; }

/* кнопки действий */
.btn-pay-cta, .btn-deliver, .btn-deliver-page, .btn-add-track{ border-radius:999px; }
.btn-deliver, .btn-tools{ border-radius:12px; }
.timeline-item.done .tl-dot{ background:#fff; }
.admin-tools-summary, .admin-tools-body{ border-radius:12px; }

/* ════════════════════════════════════════════════════════════
   LIGHT THEME — [data-theme="light"] overrides
   ════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --bg: #f5f5f7; --bg-2: #ffffff; --bg-3: #f2f2f4; --bg-4: #e8e8ea; --bg-5: rgba(0,0,0,.07);
  --border: rgba(0,0,0,.08); --border-2: rgba(0,0,0,.15);
  --text: #0a0a0c; --text-2: #4a4a52; --text-3: #9a9aa4;
}

[data-theme="light"] body { background: var(--bg); color: var(--text); }

/* sidebar */
[data-theme="light"] .sidebar { background: #fff; border-right-color: var(--border); }
[data-theme="light"] .sidebar-logo-img { filter: brightness(0); opacity: .85; }
[data-theme="light"] .sidebar-logo-img:hover { opacity: 1; }
[data-theme="light"] .sidebar-user { background: transparent !important; border-color: transparent !important; }
[data-theme="light"] .sidebar-user:hover { background: rgba(0,0,0,.04) !important; border-color: transparent !important; }
[data-theme="light"] .user-name { color: var(--text); }
[data-theme="light"] .user-avatar-fallback { background: #0a0a0c; color: #fff; }
[data-theme="light"] .user-arrow { color: var(--text-3); }

/* nav items */
[data-theme="light"] .nav-item { color: var(--text-2); }
[data-theme="light"] .nav-item:hover { background: rgba(0,0,0,.04); color: var(--text); }
[data-theme="light"] .nav-item.active,
[data-theme="light"] .nav-item.nav-create.active {
  background: rgba(0,0,0,.06) !important; color: var(--text) !important;
  box-shadow: none !important;
}
[data-theme="light"] .nav-item.active svg { color: var(--text) !important; }
[data-theme="light"] .nav-item.active .nav-badge { background: rgba(0,0,0,.07) !important; color: var(--text-2) !important; }
[data-theme="light"] .nav-create { border-color: var(--border) !important; color: var(--text-2) !important; }
[data-theme="light"] .nav-create:hover { background: rgba(0,0,0,.04) !important; color: var(--text) !important; }
[data-theme="light"] .nav-badge { background: rgba(0,0,0,.07); color: var(--text-2); }

/* nav-group subitems */
[data-theme="light"] .nav-subitem { color: var(--text-2); }
[data-theme="light"] .nav-subitem:hover { background: rgba(0,0,0,.04); color: var(--text); }
[data-theme="light"] .nav-subitem.active { background: rgba(0,0,0,.06); color: var(--text); font-weight: 600; }
[data-theme="light"] .nav-group-toggle { color: var(--text-2) !important; }
[data-theme="light"] .nav-group-toggle.active { background: rgba(0,0,0,.06) !important; color: var(--text) !important; box-shadow: none !important; }

/* sidebar bottom */
[data-theme="light"] .support-btn,
[data-theme="light"] .logout-btn { color: var(--text-2); }
[data-theme="light"] .support-btn:hover,
[data-theme="light"] .logout-btn:hover { background: rgba(0,0,0,.04); color: var(--text); }

/* status tabs */
[data-theme="light"] .status-tab { background: #fff; border-color: var(--border); color: var(--text-2); }
[data-theme="light"] .status-tab:hover { border-color: var(--border-2); color: var(--text); }
[data-theme="light"] .status-tab.active { background: rgba(0,0,0,.07) !important; color: var(--text) !important; border-color: transparent !important; }
[data-theme="light"] .status-tab.active .stab-count { background: rgba(0,0,0,.08); color: var(--text-2); }
[data-theme="light"] .stab-count { background: rgba(0,0,0,.07); color: var(--text-2); }

/* search / filters */
[data-theme="light"] .search-input-wrap,
[data-theme="light"] .date-range-picker { background: #fff; border-color: var(--border); }
[data-theme="light"] .search-input-wrap:focus-within,
[data-theme="light"] .date-range-picker:hover { border-color: var(--border-2); background: #fff; }
[data-theme="light"] .search-input,
[data-theme="light"] .drp-input { color: var(--text); }
[data-theme="light"] .filter-reset-btn { border-color: var(--border); color: var(--text-2); }
[data-theme="light"] .filter-reset-btn:hover { border-color: var(--border-2); background: rgba(0,0,0,.04); }

/* release rows */
[data-theme="light"] .release-row { background: #fff; border-color: var(--border); }
[data-theme="light"] .release-row:hover { background: var(--bg-3); border-color: var(--border-2); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
[data-theme="light"] .row-arrow-btn { border-color: var(--border); color: var(--text-2); }
[data-theme="light"] .row-arrow-btn:hover { background: #0a0a0c; color: #fff; border-color: transparent; }

/* buttons */
[data-theme="light"] .btn-primary,
[data-theme="light"] .tg-login-btn,
[data-theme="light"] .btn-violet,
[data-theme="light"] .btn-pay-cta,
[data-theme="light"] .btn-deliver,
[data-theme="light"] .btn-deliver-page,
[data-theme="light"] .btn-add-track { background: #0a0a0c !important; color: #fff !important; }
[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .tg-login-btn:hover { box-shadow: 0 8px 26px rgba(0,0,0,.2); }
[data-theme="light"] .btn-secondary { background: var(--bg-3); border-color: var(--border-2); color: var(--text); }
[data-theme="light"] .btn-secondary:hover { background: var(--bg-4); }

/* cards / panels */
[data-theme="light"] .card,
[data-theme="light"] .section-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .info-card { background: #fff; border-color: var(--border); }

/* dev-release page */
[data-theme="light"] .dev-sec { border-top-color: var(--border); }
[data-theme="light"] .dev-sec-n {
  background: rgba(0,0,0,.05); border-color: var(--border);
  color: var(--text-2);
}
[data-theme="light"] .dev-track { background: #fff; border-color: var(--border); }
[data-theme="light"] .dev-track[open] { border-color: var(--border-2); }
[data-theme="light"] .dev-track-sum:hover { background: var(--bg-3); }
[data-theme="light"] .dev-track-body { border-top-color: var(--border); }
[data-theme="light"] .dev-tag-e { background: rgba(0,0,0,.1); color: #0a0a0c; }
[data-theme="light"] .dev-tag-d { background: rgba(239,68,68,.1); color: #dc2626; }
[data-theme="light"] .dev-track-play { background: #0a0a0c; color: #fff; }
[data-theme="light"] .dev-code { background: rgba(0,0,0,.06); }
[data-theme="light"] .dev-service { background: var(--bg-3); border-color: var(--border); }
[data-theme="light"] .dev-msg { background: var(--bg-3); border-color: var(--border); }
[data-theme="light"] .dev-lyrics { background: var(--bg-3); border-color: var(--border); }
[data-theme="light"] .dev-pay-cta { background: #0a0a0c; color: #fff; }
[data-theme="light"] .dev-note { background: rgba(234,179,8,.08); border-color: rgba(234,179,8,.3); color: #854d0e; }
[data-theme="light"] .dev-aside-cover { background: var(--bg-3); border-color: var(--border); }
[data-theme="light"] .dev-aside-card { background: #fff; border-color: var(--border); }
[data-theme="light"] .dev-aside-support { border-color: var(--border); color: var(--text-2); }
[data-theme="light"] .dev-aside-support:hover { background: var(--bg-3); color: var(--text); }
[data-theme="light"] .dev-rel-cover { background: var(--bg-3); border-color: var(--border); }
[data-theme="light"] .dev-rel-type { background: rgba(255,255,255,.8); border-color: var(--border); color: var(--text-2); }

/* admin release page */
[data-theme="light"] .detail-hero { background: #fff; border-color: var(--border); }
[data-theme="light"] .section-card { background: #fff; border-color: var(--border); }
[data-theme="light"] .admin-current-status { background: var(--bg-3); border-color: var(--border); }
[data-theme="light"] .admin-step-card { background: var(--bg-3); border-color: var(--border); }
[data-theme="light"] .upc-code { background: rgba(0,0,0,.05); }
[data-theme="light"] .btn-admin-edit { background: var(--bg-3) !important; border-color: var(--border-2) !important; color: var(--text) !important; }
[data-theme="light"] .btn-admin-edit:hover { background: var(--bg-4) !important; }
[data-theme="light"] .btn-admin-primary { background: #0a0a0c !important; color: #fff !important; }
[data-theme="light"] .btn-admin-primary * { color: #fff !important; }

/* modals */
[data-theme="light"] .modal-overlay { background: rgba(0,0,0,.4); }
[data-theme="light"] .modal-box,
[data-theme="light"] .modal { background: #fff; border: 1px solid var(--border); }
[data-theme="light"] .modal-title { color: var(--text); }
[data-theme="light"] .modal-input,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="email"],
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: var(--bg-3); border-color: var(--border); color: var(--text);
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: var(--text-3); }

/* flatpickr */
[data-theme="light"] .flatpickr-calendar { background: #fff; border-color: var(--border); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
[data-theme="light"] .flatpickr-day { color: var(--text); }
[data-theme="light"] .flatpickr-day:hover { background: var(--bg-3); }
[data-theme="light"] .flatpickr-day.selected { background: #0a0a0c !important; color: #fff !important; border-color: #0a0a0c !important; }
[data-theme="light"] .flatpickr-day.today { border-color: var(--border-2); }
[data-theme="light"] .flatpickr-months { background: #fff; color: var(--text); }
[data-theme="light"] .flatpickr-month { color: var(--text); }
[data-theme="light"] .flatpickr-weekday { color: var(--text-3); }
[data-theme="light"] .numInputWrapper input,
[data-theme="light"] .flatpickr-current-month input { color: var(--text) !important; background: transparent; }
[data-theme="light"] .flatpickr-prev-month,
[data-theme="light"] .flatpickr-next-month { color: var(--text-2) !important; fill: var(--text-2) !important; }

/* active form tabs */
[data-theme="light"] .nr-tab.active { color: #fff !important; }
[data-theme="light"] .nr-tab.active span { color: #fff !important; }

/* ── Admin aside: actions card always first ────────────────────────── */
.admin-actions-card { order: -1; }

/* ── Copy toast ───────────────────────────────────────────────────── */
.copy-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #0a0a0c; color: #fff; padding: 7px 18px; border-radius: 20px;
  font-size: 13px; z-index: 9999; pointer-events: none;
  opacity: 1; transition: opacity .3s;
}
[data-theme="light"] .copy-toast { background: #1a1a1e; }

/* ── LIGHT THEME additions ─────────────────────────────────────────── */

/* filter bar icon */
[data-theme="light"] .drp-icon { color: var(--text-2); }
[data-theme="light"] .search-icon { color: var(--text-3); }

/* breadcrumb */
[data-theme="light"] .breadcrumb { color: var(--text-3); }
[data-theme="light"] .breadcrumb a { color: var(--text-2); }
[data-theme="light"] .breadcrumb a:hover { color: var(--text); }
[data-theme="light"] .bc-sep { color: var(--text-3); }

/* release list row text */
[data-theme="light"] .row-title { color: var(--text); }
[data-theme="light"] .row-artist { color: var(--text-2); }
[data-theme="light"] .row-flabel { color: var(--text-3); }
[data-theme="light"] .row-fval { color: var(--text-2); }

/* dev-release info grid */
[data-theme="light"] .dev-info-l { color: var(--text-3); }
[data-theme="light"] .dev-info-v { color: var(--text); }
[data-theme="light"] .dev-td-l { color: var(--text-3); }
[data-theme="light"] .dev-td-v { color: var(--text); }

/* aside labels + caps */
[data-theme="light"] .dev-aside-l { color: var(--text-3); }
[data-theme="light"] .dev-aside-cap { color: var(--text-3); }
[data-theme="light"] .dev-aside-row > span:last-child { color: var(--text); }

/* aside user card */
[data-theme="light"] .rel-user-link { background: var(--bg-3); border-color: var(--border); }
[data-theme="light"] .rel-user-link:hover { background: var(--bg-4); border-color: var(--border-2); }
[data-theme="light"] .rel-user-name { color: var(--text); }
[data-theme="light"] .rel-user-username { color: var(--text-3); }
[data-theme="light"] .rel-user-ava-fb { background: #0a0a0c; color: #fff; }

/* rel-edit collapsibles */
[data-theme="light"] .rel-edit summary { color: var(--text-2); }
[data-theme="light"] .rel-edit summary:hover { color: var(--text); }
[data-theme="light"] .rel-input { background: var(--bg-3) !important; border-color: var(--border) !important; color: var(--text) !important; }
[data-theme="light"] .rel-input:focus { border-color: var(--border-2) !important; }
[data-theme="light"] .rel-btn { background: var(--bg-4); border-color: var(--border-2); color: var(--text); }
[data-theme="light"] .rel-btn:hover { background: #0a0a0c; color: #fff; border-color: transparent; }
[data-theme="light"] .rel-btn-primary { background: #0a0a0c !important; color: #fff !important; }
[data-theme="light"] .rel-empty-note { color: var(--text-3); }

/* tools accordion */
[data-theme="light"] .admin-tools-details { border-color: var(--border); }
[data-theme="light"] .admin-tools-summary { color: var(--text-2) !important; background: var(--bg-3) !important; border-color: var(--border) !important; }
[data-theme="light"] .admin-tools-summary:hover { background: var(--bg-4) !important; color: var(--text) !important; }
[data-theme="light"] .admin-tools-body { background: var(--bg-3); border-color: var(--border); }
[data-theme="light"] .tools-label { color: var(--text-3); }
[data-theme="light"] .btn-tools { background: var(--bg-4); border-color: var(--border); color: var(--text); }
[data-theme="light"] .btn-tools:hover,
[data-theme="light"] .btn-tools-sm:hover { background: #0a0a0c; color: #fff; border-color: transparent; }
[data-theme="light"] .btn-tools-sm { background: var(--bg-4); border-color: var(--border); color: var(--text); }
[data-theme="light"] .btn-admin-delete-sm { color: #dc2626 !important; border-color: rgba(220,38,38,.3) !important; background: rgba(220,38,38,.04) !important; }

/* actions current-status bar */
[data-theme="light"] .acs-label { color: var(--text-3); }
[data-theme="light"] .admin-current-status { background: var(--bg-3) !important; border-color: var(--border) !important; }

/* dev-track inner */
[data-theme="light"] .dev-track-num { color: var(--text-3); }
[data-theme="light"] .dev-track-title { color: var(--text); }
[data-theme="light"] .dev-track-artist { color: var(--text-2); }

/* aside misc */
[data-theme="light"] .dev-aside-link { color: var(--text-2); }
[data-theme="light"] .dev-aside-link:hover { color: var(--text); }

/* admin modals */
[data-theme="light"] .admin-modal-body { background: #fff !important; border-color: var(--border) !important; box-shadow: 0 24px 64px rgba(0,0,0,.18) !important; }
[data-theme="light"] .admin-modal-header h3 { color: var(--text); }
[data-theme="light"] .admin-modal-close { color: var(--text-3); }
[data-theme="light"] .admin-modal-close:hover { color: var(--text); background: var(--bg-3); }
[data-theme="light"] .admin-modal-desc { color: var(--text-2); }
[data-theme="light"] .modal-section-label { color: var(--text-3); }
[data-theme="light"] .tariff-card { background: var(--bg-3); border-color: var(--border); color: var(--text); }
[data-theme="light"] input:checked + .tariff-card { background: #0a0a0c; color: #fff; border-color: transparent; }
[data-theme="light"] .tariff-card-price { color: var(--text-2); }
[data-theme="light"] input:checked + .tariff-card .tariff-card-price { color: rgba(255,255,255,.6); }
[data-theme="light"] .accept-svc-item { background: var(--bg-3); border-color: var(--border); color: var(--text); }
[data-theme="light"] .accept-svc-item:hover { background: var(--bg-4); }
[data-theme="light"] .accept-svc-price { color: var(--text-3); }
[data-theme="light"] .accept-total-row { color: var(--text); }
[data-theme="light"] .accept-total-hint { color: var(--text-3); }
[data-theme="light"] .btn-modal-cancel { background: var(--bg-3); border-color: var(--border); color: var(--text); }
[data-theme="light"] .btn-modal-cancel:hover { background: var(--bg-4); }
[data-theme="light"] .btn-modal-primary { background: #0a0a0c !important; color: #fff !important; }
[data-theme="light"] .nr-tab.active .nr-tab-num { background: rgba(255,255,255,.18) !important; color: #fff !important; }

/* Подсказки «?»: непрозрачный фон и поверх соседних полей */
.tooltip-box { background: #1c1d26 !important; color: #e6e6ea !important; border-color: rgba(255,255,255,.14) !important; z-index: 1000 !important; }
.tooltip-host:hover, .tooltip-host:focus { z-index: 1000; }
[data-theme="light"] .tooltip-box { background: #fff !important; color: #1a1a1f !important; border-color: rgba(0,0,0,.12) !important; box-shadow: 0 8px 24px rgba(0,0,0,.15) !important; }
/* Загрузка аватарки */
.profile-avatar-wrap { position: relative; }
.avatar-upload-btn {
  position: absolute; left: -4px; bottom: -4px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--bg-3, #14151c); border: 1px solid var(--border-2, rgba(255,255,255,.12));
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-2);
}
.avatar-upload-btn { z-index: 5; padding: 0; }
.avatar-upload-btn:hover { color: var(--text); }
.avatar-upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.avatar-upload-btn svg { width: 15px; height: 15px; }

/* ══ Telegram Mini App adjustments (was miniapp.css) ══ */
/* ─────────────────────────────────────────────────────────────────────────
   Telegram Mini App layer.
   Scoped under .tg-miniapp (added by miniapp.js only when running inside
   Telegram), so none of this affects the regular browser cabinet.
   ───────────────────────────────────────────────────────────────────────── */

/* Telegram's own header (back + ⋯) is handled by the client now (configured in
   BotFather), so the page no longer needs an extra top inset — content sits at
   the top as before. We only keep the bottom safe-area for the home indicator. */
html.tg-miniapp body {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Avatar trigger (replaces the hamburger inside Telegram) ───────────────── */
html.tg-miniapp .menu-toggle.avatar-toggle {
  width: 38px; height: 38px;
  padding: 0; overflow: hidden;
  border-radius: 50%;
  background: var(--bg-3);
}
html.tg-miniapp .menu-toggle.avatar-toggle img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
html.tg-miniapp .menu-toggle.avatar-toggle .avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff; text-transform: uppercase;
  background: linear-gradient(135deg, #1d6ef5, #0ea5e9);
}

/* ── Silent-login screen ───────────────────────────────────────────────────
   Inside Telegram the /login page auto-authenticates (see miniapp.js). Hide
   the Telegram-login button and show a small loader instead; if the signature
   check fails (.tg-auth-failed) we reveal the normal button as a fallback. */
html.tg-miniapp .login-card #tg-widget-wrap,
html.tg-miniapp .login-card .login-note {
  display: none;
}
html.tg-miniapp .login-card::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 8px auto 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .18);
  border-top-color: #8b7bff;
  animation: tg-spin .7s linear infinite;
}
@keyframes tg-spin { to { transform: rotate(360deg); } }

/* Auth rejected → bring the manual login flow back. */
html.tg-miniapp body.tg-auth-failed .login-card #tg-widget-wrap,
html.tg-miniapp body.tg-auth-failed .login-card .login-note {
  display: flex;
}
html.tg-miniapp body.tg-auth-failed .login-card::after {
  display: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   Mobile fixes (apply to the regular mobile browser AND the Mini App).
   The cabinet — and especially the release form — is now a phone-first flow,
   so these run on every small screen, not only inside Telegram.
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* iOS zooms the page whenever a focused field has font-size < 16px. Forcing
     16px on every control kills that jarring zoom-in on tap. Theme rules set
     13–14px, so !important is needed to win on mobile only. */
  .nr-input, .nr-date-input, .nr-textarea,
  .input-field, .admin-input, .admin-select, .search-input, .drp-input,
  input[type="text"], input[type="number"], input[type="url"],
  input[type="date"], input[type="email"], input[type="tel"],
  input[type="search"], input[type="password"],
  textarea, select {
    font-size: 16px !important;
  }

  /* Comfortable finger targets: taller fields and primary buttons. */
  .nr-input { height: 46px; }
  .btn-primary, .nr-delete-btn { min-height: 44px; }

  /* Remove the 300ms tap delay / grey flash on iOS Safari taps. */
  a, button, .btn-primary, .platform-btn, .nav-item { -webkit-tap-highlight-color: transparent; }

  /* ── Kill horizontal overflow ──────────────────────────────────────────────
     Flex children default to min-width:auto, which lets a wide tab strip or a
     long title stretch the page past the screen edge (the form's right side was
     getting clipped). Clamp the shell and let inner strips scroll on their own. */
  html, body { overflow-x: hidden; max-width: 100%; }
  .app-shell, .main-content { min-width: 0; max-width: 100%; }
  .nr-tabs, .nr-header, .page-header { max-width: 100%; }

  /* The 26px page title is too wide on a phone — it was pushing the “Удалить”
     button off-screen. Smaller title lets the row wrap cleanly. */
  .page-title { font-size: 21px; }
  .nr-title-row { gap: 8px; }
}

/* ══ Shared (was inline in base.html) ══ */
.sidebar-logo-img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; transition: opacity .15s; }
.sidebar-logo-img:hover { opacity: 1; }
.logo-mask { background: var(--grad); -webkit-mask: url(/static/logo.png) center/contain no-repeat; mask: url(/static/logo.png) center/contain no-repeat; }

/* iOS Safari зумит страницу при фокусе на поле со шрифтом < 16px и не
   возвращает масштаб — из-за этого форма «уезжает» вбок. На тач-устройствах
   держим 16px во всех полях ввода. */
html { -webkit-text-size-adjust: 100%; }
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea, .nr-input { font-size: 16px !important; }
}
/* Скрытая подсказка с opacity:0 всё равно растягивает прокручиваемую область
   (в панели трека на телефоне контент уезжал влево). Пока подсказка закрыта —
   убираем её из раскладки совсем. */
.tooltip-box { display: none; }
.tooltip-host:hover .tooltip-box, .tooltip-host:focus .tooltip-box, .tooltip-host:focus-within .tooltip-box { display: block; }
