/* =========================
   ROOT VARIABLES
========================= */
:root {
  --bg: #07070c;
  --panel: #101019;
  --panel2: #0d0d14;
  --border: rgba(255, 255, 255, .08);
  --text: #f3f4f6;
  --muted: rgba(255, 255, 255, .65);
  --muted2: rgba(255, 255, 255, .45);
  --purple: #8a2be2;
  --pink: #ff2db2;
  --shadow: 0 24px 80px rgba(0, 0, 0, .65);
  --radius: 16px;
}

/* =========================
   BASE
========================= */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 50% 25%, rgba(138, 43, 226, .35), transparent 60%),
    radial-gradient(900px 600px at 50% 75%, rgba(255, 45, 178, .18), transparent 60%),
    linear-gradient(180deg, #05050a, #07070c);
}

/* =========================
   AUTH (LOGIN / REGISTER)
========================= */
.auth-wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  width: min(420px, 92vw);
  background: linear-gradient(180deg, rgba(18, 18, 26, .92), rgba(14, 14, 20, .92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
}

.logo-text span {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  text-align: center;
  margin: 8px 0;
  font-size: 26px
}

.sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 18px
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin: 14px 0 6px
}

.input {
  width: 100%;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  outline: none;
  transition: .18s ease;
}

.input::placeholder {
  color: var(--muted2)
}

.input:focus {
  border-color: rgba(138, 43, 226, .6);
  box-shadow: 0 0 0 4px rgba(138, 43, 226, .18);
}

.field {
  position: relative
}

.eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
}

.btn {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(138, 43, 226, .22);
}

.btn:hover {
  filter: brightness(1.05)
}

.foot {
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px
}

.foot a {
  color: #c08bff;
  text-decoration: none;
  font-weight: 700
}

.foot a:hover {
  text-decoration: underline
}

.alert {
  padding: 10px 12px;
  margin: 12px 0 0;
  border-radius: 12px;
  background: rgba(255, 45, 178, .10);
  border: 1px solid rgba(255, 45, 178, .25);
  color: #ffd0ea;
}

/* =========================
   DASHBOARD LAYOUT
========================= */

/* SIDEBAR */


.sidebar .logo {
  justify-content: flex-start;
  margin: 8px 0 18px;
}

.sidebar .logo-icon {
  font-size: 26px
}

.sidebar .logo-text {
  font-size: 18px;
  font-weight: 800
}

/* Create button */
.create-btn {
  width: 100%;
  margin: 10px 0 18px;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(124, 58, 237, .35);
  transition: .18s ease;
}

.create-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px)
}

/* Menu */
.menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, .70);
  text-decoration: none;
  transition: .16s ease;
  position: relative;
}

.menu-item .icon {
  width: 22px;
  text-align: center;
  font-size: 18px
}

.menu-item:hover {
  background: rgba(124, 58, 237, .14);
  color: #fff;
}

.menu-item.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, .75), rgba(236, 72, 153, .55));
  color: #fff;
  box-shadow: 0 14px 34px rgba(124, 58, 237, .25);
}

.logout {
  margin-top: auto;
  color: #ff6b6b;
}

/* COLLAPSED SIDEBAR */
.sidebar.collapsed {
  width: 72px;
  padding: 16px 10px;
}

.sidebar.collapsed .logo {
  justify-content: center;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .text {
  display: none !important;
}

.sidebar.collapsed .menu-item {
  justify-content: center;
  padding: 14px 10px;
}

.sidebar.collapsed .create-btn {
  width: 46px;
  height: 46px;
  padding: 0;
  font-size: 0;
  /* hide all text */
  border-radius: 14px;
}

.sidebar.collapsed .create-btn * {
  display: none !important;
}

.sidebar.collapsed .create-btn::after {
  content: "+";
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

/* Tooltip on collapsed */
.sidebar.collapsed .menu-item::after {
  content: attr(data-title);
  position: absolute;
  left: 76px;
  top: 50%;
  transform: translateY(-50%);
  background: #141420;
  border: 1px solid rgba(255, 255, 255, .10);
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: .15s ease;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
}

.sidebar.collapsed .menu-item:hover::after {
  opacity: 1
}

/* MAIN */


/* TOPBAR */
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 0 6px 14px;
  margin-bottom: 18px;
}

.toggle-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center
}

.actions .icon {
  cursor: pointer;
  opacity: .9
}

.actions .icon:hover {
  opacity: 1
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* PAGE HEADER */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0 16px;
}

.page-head h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: .2px
}

.page-head p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .65)
}

.primary-btn {
  padding: 10px 16px;
  border-radius: 12px;
  background: #7c3aed;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.primary-btn:hover {
  filter: brightness(1.08)
}

/* STATS (icon LEFT like screenshot) */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 26px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(18, 18, 26, .55);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .40);
  backdrop-filter: blur(10px);
  min-height: 86px;
}

.stat-ibox {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  flex: 0 0 auto;
}

.stat-ibox svg {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, .85);
}

.ibox-purple svg {
  color: #a855f7;
}

.ibox-gray svg {
  color: rgba(255, 255, 255, .65);
}

.ibox-yellow svg {
  color: #f59e0b;
}

.ibox-green svg {
  color: #22c55e;
}

.stat-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  font-weight: 700;
  margin: 0 0 6px 0;
}

.stat-value {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
}

/* PANEL */
.panel {
  margin-top: 18px;
  background: rgba(18, 18, 26, .55);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.panel-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800
}

.panel-head a {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 700
}

.panel-head a:hover {
  text-decoration: underline
}

.empty {
  text-align: center;
  padding: 72px 20px;
  color: rgba(255, 255, 255, .60);
}

.empty-icon {
  font-size: 48px;
  opacity: .6
}

.empty p {
  font-size: 16px;
  font-weight: 800;
  margin: 12px 0 6px
}

.empty span {
  opacity: .7
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* =========================
   MODAL (Create Release Popup)
   Desktop: CENTER
   Mobile: Bottom sheet
========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: none;
  align-items: center;
  /* ✅ center desktop */
  justify-content: center;
  padding: 18px;
  z-index: 99999;
}

.modal-overlay.show {
  display: flex
}

.modal {
  width: min(720px, 96vw);
  max-height: 90vh;
  /* Ensure modal doesn't exceed viewport height */
  display: flex;
  /* align children */
  flex-direction: column;
  /* vertical stack */
  background: rgba(16, 16, 25, .96);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .70);
  overflow: hidden;
  /* container clips children */
  animation: modalIn .16s ease forwards;
}

@keyframes modalIn {
  from {
    transform: translateY(10px) scale(.98);
    opacity: 0
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.modal-title {
  font-weight: 900;
  color: #f2f2f7
}

.modal-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .8);
  font-size: 20px;
  cursor: pointer;
}

.modal-body {
  padding: 14px 16px;
  overflow-y: auto;
  /* enable scroll */
}

.modal-label {
  display: block;
  margin: 4px 0 8px;
  color: rgba(255, 255, 255, .75);
  font-weight: 800
}

.modal-input {
  width: 100%;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  outline: none;
}

.modal-input:focus {
  border-color: rgba(124, 58, 237, .55);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .18);
}

.modal-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 45, 178, .10);
  border: 1px solid rgba(255, 45, 178, .22);
  color: #ffd0ea;
  font-weight: 800;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.btn-ghost {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: transparent;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .06)
}

.btn-primary {
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.05)
}

@media (max-width: 640px) {
  .modal-overlay {
    align-items: flex-end;
  }

  /* bottom sheet only mobile */
  .modal {
    border-radius: 16px 16px 0 0;
    width: 100%;
  }
}

/* ===============================
   RELEASE LIST – PROFESSIONAL
================================ */

.release-table {
  display: grid;
  gap: 12px;
}

.release-header {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1.2fr 1.4fr 1fr;
  padding: 10px 14px;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.release-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1.2fr 1.4fr 1fr;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #141422, #0f0f18);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: .2s ease;
}

.release-row:hover {
  border-color: rgba(124, 58, 237, .4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}

.release-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cover-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(124, 58, 237, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.release-title {
  font-weight: 800;
}

.release-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}

.release-cell {
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
}

/* Status pills */
.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.status-draft {
  background: rgba(124, 58, 237, .2);
  color: #c4b5fd;
}

.status-review {
  background: rgba(245, 158, 11, .2);
  color: #facc15;
}

.status-live {
  background: rgba(34, 197, 94, .2);
  color: #4ade80;
}

/* Small button */
.primary-btn.small {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.release-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 16px 0 22px;
}

.release-toolbar .select,
.release-toolbar .search {
  background: #0f0f18;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: #fff;
  padding: 8px 10px;
  font-size: 13px;
}

.release-toolbar .search {
  min-width: 220px;
}

/* icon-btn definition moved and consolidated */


.release-header {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1.3fr 1fr;
  padding: 14px 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .4px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.release-row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1.3fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  margin: 10px 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #141422, #101018);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: .18s ease;
}

.release-row:hover {
  background: linear-gradient(180deg, #1a1a2e, #131320);
  border-color: rgba(124, 58, 237, .45);
}

.release-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cover-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, .45);
}

.release-title {
  font-weight: 700;
  font-size: 15px;
}

.release-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  margin-top: 2px;
}

.status-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-draft {
  background: rgba(245, 158, 11, .15);
  color: #fbbf24;
}

.status-submitted {
  background: rgba(59, 130, 246, .15);
  color: #60a5fa;
}

.status-delivered {
  background: rgba(34, 197, 94, .15);
  color: #4ade80;
}

.primary-btn.small {
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

/* =========================
   WIZARD (release_wizard.php)
========================= */
.wizard-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px
}

.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  opacity: .85
}

.wizard-back:hover {
  opacity: 1
}

.wizard-title {
  margin: 0;
  font-size: 34px;
  font-weight: 900
}

.wizard-sub {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .65)
}

.wizard-steps {
  display: flex;
  gap: 12px;
  margin: 16px 0 18px;
  background: rgba(18, 18, 26, .40);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 12px;
}

.wizard-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, .75);
  background: rgba(0, 0, 0, .12);
  border: 1px solid rgba(255, 255, 255, .06);
}

.wizard-step .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  font-weight: 900;
}

.wizard-step .label {
  font-weight: 900
}

.wizard-step .desc {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, .55)
}

.wizard-step.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, .35), rgba(236, 72, 153, .18));
  border-color: rgba(168, 85, 247, .35);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}

.wizard-panel {
  background: linear-gradient(180deg, rgba(18, 18, 26, .55), rgba(12, 12, 18, .55));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.wiz-form {
  width: 100%
}

.wiz-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px
}

.wiz-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.wiz-field {
  margin-bottom: 12px
}

.wiz-field label {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .75);
  font-weight: 800
}

.wiz-note {
  margin-top: 10px;
  color: rgba(255, 255, 255, .55);
  font-size: 12px
}

.drop-box {
  position: relative;
  border-radius: 16px;
  border: 2px dashed rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .14);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-hint {
  text-align: center;
  color: rgba(255, 255, 255, .75)
}

.drop-icon {
  font-size: 44px;
  opacity: .65;
  margin-bottom: 10px
}

.drop-title {
  font-weight: 900
}

.drop-sub {
  font-size: 12px;
  opacity: .65;
  margin-top: 6px
}

.cover-preview {
  width: 100%;
  height: 100%
}

.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.wiz-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.wiz-card {
  background: rgba(0, 0, 0, .10);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 14px
}

.wiz-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px
}

.wiz-card-title {
  font-weight: 900;
  font-size: 18px
}

.wiz-card-sub {
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  margin-top: 3px
}

.wiz-top-actions {
  display: flex;
  gap: 10px
}

.wiz-inline-form {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr auto;
  gap: 10px;
  margin-bottom: 14px;
}

.track-list {
  display: grid;
  gap: 10px
}

.track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(18, 18, 26, .45);
  border: 1px solid rgba(255, 255, 255, .08);
}

.track-title {
  font-weight: 900
}

.track-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  margin-top: 4px
}

.track-meta .ok {
  color: #22c55e;
  font-weight: 900
}

.track-meta .bad {
  color: #f59e0b;
  font-weight: 900
}

.track-actions {
  display: flex;
  gap: 10px;
  align-items: center
}

.track-upload {
  display: flex;
  gap: 10px;
  align-items: center
}

.track-upload input[type="file"] {
  max-width: 220px;
  color: rgba(255, 255, 255, .75)
}

.btn-danger {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 60, 60, .12);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.btn-danger:hover {
  filter: brightness(1.05)
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.store-tile {
  position: relative;
  border-radius: 14px;
  padding: 18px;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(20, 12, 32, .40);
  border: 1px solid rgba(168, 85, 247, .25);
  cursor: pointer;
  user-select: none;
}

.store-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.store-tile span {
  font-weight: 900;
  color: rgba(255, 255, 255, .88)
}

.store-tile .tick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, .9);
  color: #fff;
  font-style: normal;
  opacity: 0;
  transform: scale(.9);
}

.store-tile.selected {
  box-shadow: inset 0 0 0 2px rgba(168, 85, 247, .55), 0 20px 60px rgba(0, 0, 0, .45);
  background: rgba(124, 58, 237, .12);
}

.store-tile.selected .tick {
  opacity: 1
}

.submit-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.submit-card {
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .14);
  text-align: center;
}

.submit-card.warn {
  background: rgba(245, 158, 11, .10);
  border-color: rgba(245, 158, 11, .25)
}

.submit-card.good {
  background: rgba(34, 197, 94, .10);
  border-color: rgba(34, 197, 94, .25)
}

.submit-icon {
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 10px
}

.submit-title {
  font-weight: 900
}

.submit-sub {
  color: rgba(255, 255, 255, .65);
  margin-top: 4px
}

.submit-list {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .7);
  display: grid;
  gap: 8px
}

@media (max-width: 1100px) {
  .wiz-grid {
    grid-template-columns: 1fr
  }

  .stores-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (max-width: 640px) {
  .wizard-steps {
    flex-direction: column
  }

  .wiz-inline-form {
    grid-template-columns: 1fr
  }

  .stores-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

.field {
  margin-bottom: 14px;
}

.label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .85);
}

.req {
  color: #ff4da6;
}

.help {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

/* LABEL SELECT */
.label-select {
  position: relative;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.label-value {
  font-weight: 800;
  color: #fff
}

.label-select.open .label-dropdown {
  display: block
}

.label-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0f0f18;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 10px;
  z-index: 9999;
}

.label-search {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #09090f;
  color: #fff;
  margin-bottom: 8px;
}

.label-option {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.label-option:hover {
  background: rgba(124, 58, 237, .25)
}

.label-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, .7);
}

.empty-state button {
  margin-top: 15px;
}

.upload-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.replace-btn {
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(168, 85, 247, .2);
  border: 1px solid rgba(168, 85, 247, .4);
  color: #fff;
  cursor: pointer;
}

.replace-btn:hover {
  background: rgba(168, 85, 247, .35);
}

.tracks-wrapper {
  margin-top: 20px;
}

.tracks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
}

.track-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.track-upload {
  border: 2px dashed rgba(168, 85, 247, .4);
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.track-upload.uploaded {
  border-style: solid;
}

.track-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, .1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: #a855f7;
}

.track-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.badge.success {
  color: #22c55e;
}

.badge.warn {
  color: #f59e0b;
}

/* ===============================
   SUPPORT PANEL – PREMIUM UI
   (Safe to add globally)
=============================== */

/* Ticket list */
.support-list {
  display: grid;
  gap: 14px;
}

/* Ticket card */
.ticket {
  background: linear-gradient(180deg, #111 0%, #0d0d15 100%);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  text-decoration: none;
  transition: all .15s ease;
}

.ticket:hover {
  border-color: #a855f7;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

.ticket-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-subject {
  font-weight: 800;
  font-size: 15px;
}

.ticket-meta {
  font-size: 13px;
  opacity: .75;
}

/* Right side */
.ticket-right {
  text-align: right;
}

/* Status pills */
.status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.status.open {
  background: #2563eb
}

.status.pending {
  background: #eab308
}

.status.closed {
  background: #16a34a
}

/* Priority badges */
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.low {
  background: #16a34a
}

.medium {
  background: #eab308
}

.high {
  background: #dc2626
}

/* ===============================
   SUPPORT MODAL (POPUP)
=============================== */

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-bg.show {
  display: flex;
}

.modal {
  background: #0f0f18;
  border-radius: 18px;
  width: 420px;
  padding: 22px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .6);
  animation: modalPop .18s ease;
}

@keyframes modalPop {
  from {
    transform: scale(.95);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

.modal h3 {
  margin: 0 0 12px;
}

.modal input,
.modal textarea,
.modal select {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  background: #0b0b12;
  border: 1px solid #333;
  border-radius: 12px;
  color: #fff;
}

.modal textarea {
  min-height: 110px;
  resize: vertical;
}

.modal input[type="file"] {
  border: 1px dashed rgba(255, 255, 255, .25);
  cursor: pointer;
}

/* Modal buttons */
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-actions .cancel {
  background: #222;
  color: #fff;
}

.modal-actions .submit {
  background: #7c3aed;
  color: #fff;
}

/* Mobile fix */
@media (max-width: 700px) {
  .ticket {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ticket-right {
    text-align: left;
  }

  .modal {
    width: 92%;
  }
}

/* =========================
   Track Upload Progress Bar
========================= */

.track-upload {
  position: relative;
  border: 1px dashed rgba(168, 85, 247, .45);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  overflow: hidden;
}

.track-upload.uploaded {
  border-style: solid;
  border-color: rgba(34, 197, 94, .55);
}

.track-upload .upload-text {
  font-size: 14px;
  opacity: .85;
}

/* Progress container */
.track-upload .progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  display: none;
}

/* Progress bar */
.track-upload .progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  transition: width .15s linear;
}

.subscription-page {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.sub-title {
  font-size: 36px;
  font-weight: 700;
}

.sub-subtitle {
  opacity: .7;
  margin-bottom: 40px;
}

.plan-heading {
  margin: 60px 0 30px;
  font-size: 26px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.plan-card {
  position: relative;
  padding: 30px;
  border-radius: 18px;
  background: radial-gradient(circle at top, #2b1655, #0b0b12);
  border: 1px solid #3a1f63;
  text-align: left;
}

.plan-card.highlight {
  border: 1px solid #f5a623;
}

.plan-card h3 {
  text-align: center;
  font-size: 22px;
  margin-top: 10px;
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge.popular {
  background: #f5a623;
  color: #000;
}

.badge.best {
  background: #f5a623;
  color: #000;
}

.price {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin: 20px 0;
}

.price span {
  font-size: 14px;
  opacity: .7;
}

.plan-btn {
  width: 100%;
  background: linear-gradient(90deg, #f5a623, #ff8c00);
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.features {
  margin-top: 25px;
  padding-left: 0;
  list-style: none;
}

.features li {
  margin-bottom: 8px;
  font-size: 14px;
}

.features li.off {
  color: #ff4d4d;
}

/* ===== SIDEBAR TOP ROW (LOGO + TOGGLE) ===== */
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 8px;
}

.sidebar-toggle {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: .2s ease;
}

.sidebar-toggle:hover {
  background: rgba(168, 85, 247, .18);
  border-color: rgba(168, 85, 247, .35);
}

/* collapsed sidebar (icon-only) */
.sidebar.collapsed {
  width: 72px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .menu .text,
.sidebar.collapsed .create-btn .text {
  display: none;
}

/* Hide text when collapsed */
.sidebar.collapsed .text,
.sidebar.collapsed .logo-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}

/* Center icons in collapsed mode */
.sidebar.collapsed .menu-item {
  justify-content: center;
}

/* Hide Sign Out text */
.sidebar.collapsed .logout .text {
  display: none;
}

/* ===== MAIN LAYOUT ===== */

/* When sidebar collapsed */

/* Normal */

.sidebar-toggle {
  position: absolute;
  right: -14px;
  top: 22px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #7c3aed;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .25);
}

.topbar .actions {
  margin-left: auto;
  /* 👈 pushes icons to the right */
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar .actions {
  margin-left: auto;
  /* 👈 pushes icons to the right */
  display: flex;
  align-items: center;
  gap: 14px;
}

.artist-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  margin: 0 auto 12px;
}

.artist-card {
  position: relative;
}

.artist-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
}

.artist-menu-dropdown {
  position: absolute;
  top: 22px;
  right: 0;
  background: #0b0b12;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  display: none;
  min-width: 90px;
  z-index: 10;
}

.artist-menu:hover .artist-menu-dropdown {
  display: block;
}

.artist-menu-dropdown button {
  background: none;
  border: none;
  width: 100%;
  padding: 8px 10px;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.artist-menu-dropdown button:hover {
  background: rgba(255, 255, 255, .08);
}

.artist-menu {
  position: absolute;
  top: 12px;
  right: 12px;
}

.menu-dots {
  cursor: pointer;
  font-size: 18px;
  color: #ccc;
}

.artist-menu-dropdown {
  position: absolute;
  top: 22px;
  /* directly under dots */
  right: 0;
  background: #0f0f18;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 120px;
  display: none;
  z-index: 50;
}

.artist-menu-dropdown button {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  padding: 8px 14px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.artist-menu-dropdown button:hover {
  background: rgba(168, 85, 247, .15);
}

.file-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: #0b0b12;
  border: 1px dashed rgba(255, 255, 255, .25);
  cursor: pointer;
  font-size: 13px;
  color: #fff;
}

.file-btn:hover {
  border-color: #a855f7;
}

.file-list {
  margin-top: 6px;
  font-size: 12px;
  opacity: .75;
}

/* ✅ CORRECT way to hide file input */
.file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* icon-btn definition moved and consolidated */


.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ec4899;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid #151520;
}

.notif-wrapper,
.user-wrapper {
  position: relative
}

.notif-dropdown,
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #0f0f18;
  border: 1px solid #333;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  z-index: 999;
}

.notif-tabs {
  display: flex;
  border-bottom: 1px solid #222;
}

.notif-tabs .tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  color: #aaa;
  cursor: pointer;
}

.notif-tabs .tab.active {
  color: #fff;
  border-bottom: 2px solid #a855f7;
}

.notif-content {
  display: none;
  padding: 10px;
  max-height: 320px;
  overflow: auto
}

.notif-content.active {
  display: block
}

.notif-item {
  padding: 10px;
  border-bottom: 1px solid #222;
}

.notif-item.unread {
  background: rgba(168, 85, 247, .12)
}

.user-dropdown a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
}

.user-dropdown a:hover {
  background: #222
}

.user-dropdown .danger {
  color: #ef4444
}

.user-info {
  padding: 12px;
  border-bottom: 1px solid #222;
  font-size: 13px;
}

/* ===== TOPBAR TOOLBAR ===== */
.topbar {
  height: 64px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid #222;
  background: #0b0b12;
}

.topbar .actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* buttons */
/* CONSISTENT ICON & AVATAR BUTTONS */
.icon-btn,
.avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #151520;
  border: 1px solid #2a2a3a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.avatar-btn {
  border-radius: 50%;
  font-weight: 800;
  background: #7c3aed; /* Default purple for avatar */
}

.icon-btn:hover,
.avatar-btn:hover {
  background: #1e1e2e;
  border-color: #444;
  transform: translateY(-1px);
}

/* badge */
/* Duplicate badge definition removed for consolidation */


/* dropdowns */
/* Duplicate dropdown definitions removed for consolidation */
.notif-dropdown.show,
.user-dropdown.show {
  display: block;
}

/* notification tabs */
.notif-tabs {
  display: flex;
  border-bottom: 1px solid #222;
}

.notif-tabs .tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
}

.notif-tabs .tab.active {
  color: #fff;
  border-bottom: 2px solid #8b5cf6;
}

/* content */
.notif-content {
  display: none;
  padding: 12px;
}

.notif-content.active {
  display: block;
}

.notif-item {
  padding: 10px;
  border-radius: 10px;
}

.notif-item:hover {
  background: #161625;
}

.notif-item p {
  font-size: 13px;
  opacity: .8;
  margin: 4px 0;
}

.notif-item span {
  font-size: 11px;
  opacity: .6;
}

/* user dropdown */
.user-info {
  padding: 12px;
  border-bottom: 1px solid #222;
}

.user-dropdown a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
}

.user-dropdown a:hover {
  background: #1b1b2b;
}

.user-dropdown .danger {
  color: #ef4444;
}

/* ===== FIX TOPBAR ALIGNMENT ===== */


.topbar {
  position: sticky;
  /* stays at top */
  top: 0;
  z-index: 50;

  height: 64px;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding: 0 24px;
  margin: 0;

  background: linear-gradient(180deg,
      rgba(15, 15, 25, .95),
      rgba(10, 10, 18, .92));

  border-bottom: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 12px;
    height: 60px;
  }
  .topbar .actions {
    gap: 8px; /* Tighter gap on small screens */
  }
  .notif-dropdown {
    top: 55px;
    width: 290px;
    max-width: calc(100vw - 20px);
    right: -115px; /* Aggressive shift to the right to reveal the left side of the dropdown */
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  }
  .user-dropdown {
    top: 55px;
    width: 280px;
    max-width: calc(100vw - 20px);
    right: -10px;
  }
  .icon-btn, .avatar-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 768px) and (min-width: 641px) {
  .topbar {
    padding: 0 16px;
    height: 56px;
  }
  .notif-dropdown {
    top: 52px;
    width: 290px;
    max-width: calc(100vw - 32px);
    right: -55px;
  }
  .user-dropdown {
    top: 52px;
    width: 280px;
    max-width: calc(100vw - 32px);
    right: -10px;
  }
  .icon-btn, .avatar-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .notif-item {
    padding: 12px 10px;
  }
  .notif-item strong {
    font-size: 14px;
    display: block;
    line-height: 1.4;
  }
  .notif-item p {
    font-size: 12px;
    line-height: 1.5;
    margin: 6px 0;
    word-wrap: break-word;
  }
}

/* toolbar icons container */
.topbar .actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  left: 0;

  height: 64px;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding: 0 24px;
  margin: 0;

  background: linear-gradient(180deg,
      rgba(15, 15, 25, .98),
      rgba(10, 10, 18, .95));

  border-bottom: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);

  z-index: 100;
}



#sidebar.collapsed {
  width: 80px;
  min-width: 80px;
}


#sidebar.collapsed {
  width: 80px;
  min-width: 80px;
}

.main {
  flex: 1;
  /* 🔥 takes remaining space */
  width: 100%;
  min-width: 0;
  /* 🔥 IMPORTANT for flex overflow */
  padding: 0;
}



.content {
  padding: 24px 32px;
}




.sidebar {
  width: 260px;
  min-width: 260px;
  transition: width .25s ease;
}

.sidebar.collapsed {
  width: 80px;
  min-width: 80px;
}

/* ===== SIDEBAR (FINAL – CLEAN & SMALL) ===== */

.sidebar {
  width: 260px;
  min-width: 260px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;

  background: linear-gradient(180deg, #0f0f1a, #080812);
  padding: 16px 14px;

  display: flex;
  flex-direction: column;
  transition: width .25s ease;
}

/* LOGO */
.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.sidebar .logo-text {
  font-size: 18px;
  font-weight: 800;
}

/* CREATE BUTTON */
.create-btn {
  height: 44px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 14px;
}

/* MENU */
.menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  gap: 10px;
}

.menu-item .icon {
  font-size: 16px;
  width: 20px;
}

/* SIGN OUT */
.logout {
  margin-top: auto;
  font-size: 13px;
}

/* ===== COLLAPSED ===== */
.sidebar.collapsed {
  width: 80px;
  min-width: 80px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .text {
  display: none;
}

.sidebar.collapsed .menu-item {
  justify-content: center;
  padding: 12px;
}

.sidebar.collapsed .create-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 0;
}

.sidebar.collapsed .create-btn::after {
  content: "+";
  font-size: 22px;
  font-weight: 900;
}

/* ===== ARTIST MULTI SELECT ===== */

.artist-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.artist-box {
  position: relative;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.artist-box:focus-within {
  border-color: rgba(168, 85, 247, .85);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .12);
}

.artist-input {
  flex: 1;
  min-width: 140px;
  background: none;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, .95);
  font-size: 14px;
}

.artist-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.artist-tag {
  background: rgba(168, 85, 247, .25);
  border: 1px solid rgba(168, 85, 247, .45);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.artist-tag i {
  cursor: pointer;
  font-style: normal;
  opacity: .8;
}

.artist-tag i:hover {
  opacity: 1;
}

.artist-option {
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 10px;
  font-weight: 700;
}

.artist-option:hover {
  background: rgba(168, 85, 247, .18);
}

.artist-option.create {
  color: #22c55e;
}

/* ===== ARTIST DROPDOWN ===== */

.artist-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #0f0f18;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  z-index: 999;
  max-height: 220px;
  overflow: auto;
  display: none;
}

.artist-dropdown.show {
  display: block;
}

.artist-option {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
}

.artist-option:hover {
  background: rgba(168, 85, 247, .18);
}

.artist-option.create {
  color: #22c55e;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.sw-select.disabled,
.label-select.disabled {
  opacity: 0.6;
}

.wallet-card {
  background: #141421;
  border: 1px solid rgba(168, 85, 247, .25);
  border-radius: 16px;
  padding: 20px;
}

.wallet-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}

.wallet-link:hover {
  color: #a855f7;
}

/* ==============================
   FINAL STABLE SIDEBAR LAYOUT
============================== */

.layout {
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;

  width: 260px;
  height: 100vh;

  background: linear-gradient(180deg, #0f0f1a, #080812);

  display: flex;
  flex-direction: column;

  transition: width .25s ease;
  z-index: 200;
}

/* COLLAPSED */
.sidebar.collapsed {
  width: 80px;
}

/* MAIN CONTENT */
.main {
  margin-left: 260px;
  min-height: 100vh;
  transition: margin-left .25s ease;
}

/* When collapsed */
.sidebar.collapsed+.main {
  margin-left: 80px;
}

/* ==============================
   FINAL LAYOUT FIX (NO ZOOM ISSUE)
============================== */

/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
}

/* Layout container */
.layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  z-index: 200;
}

/* Collapsed sidebar */
.sidebar.collapsed {
  width: 80px;
}

/* Main area */
.main {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: 100vh;
  transition: all .25s ease;
}

/* When sidebar collapsed */
.sidebar.collapsed~.main {
  margin-left: 80px;
  width: calc(100% - 80px);
}

/* Prevent grid overflow */
.stats,
.release-table,
.release-row,
.release-header {
  width: 100%;
  max-width: 100%;
}

/* =====================================
   FINAL RESPONSIVE SIDEBAR SYSTEM
===================================== */

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Desktop Sidebar */
.sidebar {
  width: 260px;
  min-width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #0f0f1a, #080812);
  transition: width .25s ease, transform .3s ease;
  z-index: 1000;
}

/* Desktop collapsed */
.sidebar.collapsed {
  width: 80px;
  min-width: 80px;
}

/* Desktop main */
.main {
  margin-left: 260px;
  width: calc(100% - 260px);
  transition: margin-left .25s ease, width .25s ease;
}

/* When collapsed */
.sidebar.collapsed~.main {
  margin-left: 80px;
  width: calc(100% - 80px);
}

/* ===========================
   MOBILE MODE
=========================== */
@media (max-width: 768px) {

  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  /* Fix visibility when collapsed */
  .sidebar-toggle {
    right: -42px; 
    width: 34px;    /* Slightly bigger touch target */
    height: 34px;
    font-size: 20px;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* ==========================================
   MOBILE FIX – MANAGE RELEASES PAGE
========================================== */

@media (max-width: 768px) {

  /* Page header stack */
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .page-head h1 {
    font-size: 26px;
  }

  .primary-btn {
    width: 100%;
    justify-content: center;
  }

  /* Toolbar stack */
  .release-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .release-toolbar .select,
  .release-toolbar .search {
    width: 100%;
    min-width: 100%;
  }

  /* icon-btn handled by global consolidation */


  /* 🔥 REMOVE TABLE HEADER ON MOBILE */
  .release-header {
    display: none;
  }

  /* 🔥 Convert table rows to cards */
  .release-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  /* Main block */
  .release-main {
    width: 100%;
  }

  /* Status + meta stacked */
  .release-row>div:not(.release-main) {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
  }

  /* Action buttons */
  .release-row .primary-btn.small {
    width: 100%;
    justify-content: center;
  }

  .release-row form {
    width: 100%;
  }

  .release-row .btn-danger {
    width: 100%;
  }

}

/* ==========================================
   RELEASE WIZARD – FULL MOBILE RESPONSIVE
   Add this at the VERY END of style.css
========================================== */

@media (max-width: 992px) {

  /* Reduce content padding */
  .content {
    padding: 20px;
  }

  /* Wizard header */
  .wizard-head {
    flex-direction: column;
    gap: 10px;
  }

  .wizard-title {
    font-size: 24px;
  }

  /* Steps stack */
  .wizard-steps {
    flex-direction: column;
    gap: 10px;
  }

  .wizard-step {
    flex-direction: row;
    align-items: center;
    padding: 12px;
  }

  .wizard-step .desc {
    display: none;
  }

  /* Step 1 grid becomes single column */
  .wiz-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .wiz-grid-2 {
    grid-template-columns: 1fr !important;
  }

  /* Cover box full width */
  .drop-box {
    min-height: 240px;
  }

  /* Track fields stack */
  .track-fields {
    grid-template-columns: 1fr !important;
  }

  /* Store grid responsive */
  .stores-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Submit cards */
  .submit-cards {
    grid-template-columns: 1fr !important;
  }

  /* Fix overflow issues */
  .wizard-panel,
  .wiz-card {
    padding: 16px;
  }

  /* Toolbar wrap */
  .wiz-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .wiz-top-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  /* Track card */
  .track-card {
    padding: 14px;
  }

  .track-upload {
    padding: 16px;
  }

  /* Artist dropdown full width */
  .artist-dropdown {
    width: 100%;
  }

  /* Custom select full width */
  .sw-select-menu {
    position: relative;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
}


/* ==========================================
   EXTRA SMALL DEVICES (Phones < 480px)
========================================== */

@media (max-width: 480px) {

  .wizard-title {
    font-size: 20px;
  }

  .wizard-sub {
    font-size: 13px;
  }

  .wiz-card-title {
    font-size: 18px;
  }

  .submit-icon {
    font-size: 32px;
  }

  .store-tile {
    padding: 14px;
    font-size: 13px;
  }

  .track-upload .upload-text {
    font-size: 13px;
  }

  .modal-input {
    font-size: 14px;
  }

  .btn-primary,
  .btn-ghost {
    font-size: 14px;
    padding: 10px;
  }

}

/* ==============================
   ADMIN USERS TABLE
============================== */

.admin-table {
  width: 100%;
  display: grid;
  gap: 12px;
}

.admin-table-head,
.admin-row {
  display: grid;
  grid-template-columns: 1.3fr 1.6fr .8fr .8fr .8fr 1.2fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
}

.admin-table-head {
  font-size: 13px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.admin-row {
  background: linear-gradient(180deg, #141422, #0f0f18);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: .2s ease;
}

.admin-row:hover {
  border-color: rgba(124, 58, 237, .45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}

/* Role badge */
.role-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.role-badge.user {
  background: rgba(124, 58, 237, .15);
  color: #c4b5fd;
}

.role-badge.admin {
  background: rgba(34, 197, 94, .15);
  color: #4ade80;
}

/* Buttons */
.btn-small {
  padding: 6px 12px;
  background: #7c3aed;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
}

.btn-danger-small {
  padding: 6px 12px;
  background: #dc2626;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
}

/* Mobile responsive */
@media (max-width: 768px) {

  .admin-table-head {
    display: none;
  }

  .admin-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

}

/* ===============================
   ADMIN TOPBAR
================================ */

.admin-topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: linear-gradient(180deg, #0f0f18, #0b0b12);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-topbar h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
}

.admin-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.admin-meta span {
  font-size: 12px;
  opacity: .6;
}

.admin-logout {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, .15);
  color: #ef4444;
  text-decoration: none;
  font-weight: 700;
}

.admin-logout:hover {
  background: rgba(239, 68, 68, .25);
}

/* ===============================
   ADMIN TABLE
================================ */

.admin-table {
  width: 100%;
}

.admin-table-head,
.admin-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 1fr 1fr 1.5fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.admin-table-head {
  font-size: 12px;
  text-transform: uppercase;
  opacity: .6;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.admin-row {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.admin-row:hover {
  background: rgba(168, 85, 247, .06);
}

.role-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.role-badge.admin {
  background: rgba(245, 158, 11, .2);
  color: #facc15;
}

.role-badge.user {
  background: rgba(59, 130, 246, .2);
  color: #60a5fa;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.btn-small {
  padding: 6px 12px;
  border-radius: 8px;
  background: #7c3aed;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.btn-danger-small {
  padding: 6px 12px;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.store-item {
  background: #141422;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.track-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.track-fields .full-width {
  grid-column: 1 / -1;
}

.rejection-box {
  background: #2a0f14;
  border: 1px solid #ff4d6d;
  color: #ff9aa2;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 6px;
  font-size: 13px;
}

.status-pending {
  background: rgba(255, 193, 7, .2);
  color: #ffc107;
}

.status-approved {
  background: rgba(40, 167, 69, .2);
  color: #28a745;
}

.status-rejected {
  background: rgba(220, 53, 69, .2);
  color: #dc3545;
}

.notif-item.news-item {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.notif-message {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.notif-date {
  font-size: 11px;
  opacity: 0.6;
}

.chat-wrap {
  max-width: 900px;
  margin: 0 auto
}

.ticket-head {
  margin-bottom: 20px
}

.ticket-meta {
  opacity: .7;
  font-size: 14px
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

/* MESSAGE CONTAINERS */
.msg-left {
  display: flex;
  justify-content: flex-start;
}

.msg-right {
  display: flex;
  justify-content: flex-end;
}

/* BUBBLES */
.bubble-admin {
  max-width: 65%;
  padding: 14px 18px;
  border-radius: 16px;
  background: #1f2937;
  font-size: 14px;
}

.bubble-user {
  max-width: 65%;
  padding: 14px 18px;
  border-radius: 16px;
  background: #7c3aed;
  font-size: 14px;
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.attachments img {
  width: 160px;
  border-radius: 12px;
  border: 1px solid #333;
}

.file-link {
  background: #111827;
  padding: 8px 12px;
  border-radius: 10px;
  color: #a855f7;
  font-size: 13px;
  text-decoration: none;
}

.reply-box textarea {
  width: 100%;
  background: #0b0b12;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 14px;
  color: #fff;
}

.reply-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.reply-actions button {
  background: #7c3aed;
  border: 0;
  color: #fff;
  padding: 10px 22px;
  border-radius: 12px;
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.attachments img {
  width: 150px;
  border-radius: 12px;
  border: 1px solid #333;
}

.status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status.approved {
  background: #16a34a;
  color: white;
}

.status.pending {
  background: #eab308;
  color: black;
}

/* Language dropdown dark styling */
.track-meta[data-field="language"],
select.modal-input {

  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

}

/* Dropdown list items (desktop support) */
select.modal-input option {
  background: #141421;
  color: #fff;
}

/* Fix focus */
select.modal-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
  outline: none;
}

/* Remove blue highlight on mobile */
select.modal-input::-ms-expand {
  display: none;
}

/* ===============================
   MOBILE RESPONSIVE FIX
================================ */

@media (max-width: 1024px) {
  .content {
    padding: 20px;
  }
}

@media (max-width: 768px) {

  .content {
    padding: 15px;
  }

  h1 {
    font-size: 22px;
  }

  .panel {
    padding: 16px;
    border-radius: 16px;
  }

  .wiz-field {
    margin-bottom: 16px;
  }

  .wiz-field label {
    font-size: 14px;
  }

  .wiz-field input[type="file"] {
    width: 100%;
  }

  .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }

  #uploadProgressWrapper {
    margin-bottom: 15px;
  }

}

/* Extra small devices */
@media (max-width: 480px) {

  h1 {
    font-size: 20px;
  }

  .panel {
    padding: 14px;
  }

  .wiz-field label {
    font-size: 13px;
  }

}

/* ===============================
   MOBILE RESPONSIVE FIX
================================ */

@media (max-width: 1024px) {
  .content {
    padding: 20px;
  }
}

@media (max-width: 768px) {

  .content {
    padding: 15px;
  }

  h1 {
    font-size: 22px;
  }

  .panel {
    padding: 16px;
    border-radius: 16px;
  }

  .wiz-field {
    margin-bottom: 16px;
  }

  .wiz-field label {
    font-size: 14px;
  }

  .wiz-field input[type="file"] {
    width: 100%;
  }

  .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }

  #uploadProgressWrapper {
    margin-bottom: 15px;
  }

}

/* Extra small devices */
@media (max-width: 480px) {

  h1 {
    font-size: 20px;
  }

  .panel {
    padding: 14px;
  }

  .wiz-field label {
    font-size: 13px;
  }

}

/* =========================
   MOBILE RESPONSIVE FIXES
========================= */

@media (max-width: 768px) {

  .content {
    padding: 16px;
  }

  h1 {
    font-size: 22px;
  }

  .panel {
    padding: 16px;
    border-radius: 14px;
  }

  /* Profile buttons stack */
  .panel button {
    width: 100%;
    margin-bottom: 10px;
  }

  /* Login history cards */
  .ticket {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ticket-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
  }

  .ticket-subject {
    font-size: 14px;
  }

  /* Subscription block */
  .panel p {
    font-size: 14px;
  }

  .primary-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  /* Modal mobile fix */
  .modal {
    width: 95%;
    max-width: 95%;
    margin: 20px auto;
  }

  .modal-input {
    width: 100%;
  }
}

/* ===== Forgot Password Fix ===== */

.forgot-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 18px;
}

.forgot-link {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, .65);
  transition: .2s ease;
}

.forgot-link:hover {
  color: #a855f7;
  text-decoration: none;
}

/* ===== Center reCAPTCHA ===== */

.recaptcha-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 20px;
}

@media (max-width: 400px) {
  .g-recaptcha {
    transform: scale(.9);
    transform-origin: center;
  }
}

.brand-powered {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  opacity: .55;
  margin-top: 6px;
}

.sidebar .brand-powered {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .4px;
}

.sidebar .brand-powered strong {
  color: #ec4899;
  /* pink accent (matches your button) */
  font-weight: 600;
}

/* Fix date input calendar icon */
input[type="date"] {
  position: relative;
  color-scheme: dark;
  /* makes picker visible in dark theme */
}

/* Force calendar icon to show */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
}
/* ===== Enhanced Team Modal ===== */

.modal {
  max-width: 520px;
  border-radius: 20px;
  background: linear-gradient(180deg,#141421,#0c0c14);
  border: 1px solid rgba(168,85,247,.25);
  box-shadow: 0 25px 70px rgba(0,0,0,.5);
}

.modal-head {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-body {
  padding: 28px;
  max-height: 60vh;
  overflow-y: auto;
}

/* Smooth scrollbar */
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(168,85,247,.5);
  border-radius: 10px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

/* Better inputs */
.modal-input {
  background: #0f0f18;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 12px 14px;
  transition: .2s ease;
}

.modal-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168,85,247,.15);
}

/* Permission grid enhancement */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.permission-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: .2s ease;
}

.permission-item:hover {
  border-color: rgba(168,85,247,.4);
  background: rgba(168,85,247,.05);
}

/* Modern checkbox */
.permission-item input[type="checkbox"] {
  accent-color: #a855f7;
  width: 16px;
  height: 16px;
}

/* Button enhancement */
.modal-actions {
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.modal-actions .btn-primary {
  background: linear-gradient(135deg,#7c3aed,#ec4899);
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(124,58,237,.35);
  transition: .2s ease;
}

.modal-actions .btn-primary:hover {
  transform: translateY(-2px);
}
