/* ================= GLOBAL STYLES ================= */
:root {
  --bg-color: #0c0806;
  --card-bg: #150f0b;
  --card-border: #2b1f16;
  --accent-color: #d8963e;
  --accent-hover: #c37b27;
  --text-main: #ebd9c5;
  --text-muted: #8c7867;
  --input-bg: #1a130e;

  /* Fallbacks for shared components */
  --bg-dark: #0c0806;
  --bg-card: #150f0b;
  --bg-card-alt: #1a130e;
  --border-color: #2b1f16;
  --accent-gold: #d8963e;
  --accent-amber: #c37b27;
  --text-primary: #ebd9c5;
  --text-secondary: #8c7867;
  --radius-sm: 6px;
  --radius-md: 10px;
}

body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* ================= NAVBAR (MATCHED TO SOUNDS.CSS) ================= */
.navbar,
header.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 50px;
  background: rgba(12, 8, 6, 0.98);
  border-bottom: 1px solid var(--border-color, #2b1f16);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: 'Cinzel', serif;

}

.brand-title {
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;

}

.brand-subtitle {
  font-weight: 600;
  font-size: 10px;
  color: var(--accent-gold, #d8963e);
  line-height: 1.2;
  margin-top: 2px;
  letter-spacing: 1.2px;
}



.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary, #8c7867);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
  font-family: inherit;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold, #d8963e);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold, #d8963e);
  border-radius: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* USER PROFILE DROPDOWN MENU */
.user-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.user-menu-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card, #150f0b);
  border: 1px solid var(--border-color, #2b1f16);
  padding: 4px 12px 4px 6px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  user-select: none;
  transition: all 0.2s ease;
}

.user-menu-pill:hover,
.user-dropdown-wrapper.active .user-menu-pill {
  border-color: var(--accent-gold, #d8963e);
  background: var(--bg-card-alt, #1a130e);
}

.user-menu-pill img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ff9800;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
}

.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropdown-arrow {
  font-size: 11px;
  color: var(--text-secondary, #8c7867);
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.user-dropdown-wrapper.active .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--accent-gold, #d8963e);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  background: var(--bg-card, #150f0b);
  border: 1px solid var(--border-color, #2b1f16);
  border-radius: 10px;
  padding: 10px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1100;
  animation: navbarDropdownFade 0.2s ease forwards;
}

.user-dropdown-wrapper.active .user-dropdown-menu {
  display: block;
}

@keyframes navbarDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  padding: 6px 16px 10px;
}

.dropdown-header .user-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #ebd9c5);
  display: block;
}

.user-handle {
  font-size: 0.85rem;
  color: #8c7867;
  font-weight: 400;
  display: block;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color, #2b1f16);
  margin: 6px 0;
}

.dropdown-items {
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--text-secondary, #8c7867);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item i {
  width: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--accent-gold, #d8963e);
}

.dropdown-item:hover {
  background: rgba(216, 150, 62, 0.15);
  color: var(--accent-gold, #d8963e);
}

.dropdown-item.logout-item {
  color: #e74c3c;
}

.dropdown-item.logout-item i {
  color: #e74c3c;
}

.dropdown-item.logout-item:hover {
  background: rgba(231, 76, 60, 0.1);
}


/* ================= HERO & STEPPER ================= */
.hero-section {
  padding: 30px 40px 10px;
  background: radial-gradient(circle at top right, #2b1803 0%, transparent 60%);
}

.breadcrumbs {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.breadcrumbs span {
  color: var(--accent-color);
}

.hero-section h1 {
  font-size: 32px;
  margin: 0 0 6px 0;
  letter-spacing: 1px;
}

.hero-section h1 span {
  color: var(--accent-color);
}

.hero-section p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

.main-wrapper {
  padding: 20px 40px;
}

/* STEPPER */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  padding: 14px 24px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  margin-bottom: 24px;
  width: 100%;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
}

.step.active {
  opacity: 1;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2b1f16;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
}

.step.active .step-num {
  background: var(--accent-color);
  color: #0c0806;
}

.step-text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.step-text span {
  color: var(--text-muted);
  font-size: 10px;
}

.step-line {
  flex: 1;
  height: 2px;
  background-color: rgba(237, 217, 197, 0.15);
  margin: 0 8px;
  min-width: 15px;
}

.step-line.active {
  background-color: var(--accent-color);
}


/* ================= LAYOUT GRID ================= */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}

.card h3,
.card h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: var(--accent-color);
  letter-spacing: 0.5px;
}

.section-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 16px 0;
}

/* ================= UPLOAD METHODS ================= */
.method-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.method-card {
  border: 1px solid var(--card-border);
  background: #150f0b;
  padding: 12px;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.method-card.active {
  border-color: var(--accent-color);
  background: #1a130e;
}

.method-card .icon {
  font-size: 18px;
}

.method-card h4 {
  color: var(--text-main);
  font-size: 13px;
  margin: 0 0 2px 0;
}

.method-card small {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.2;
  display: block;
}

.radio-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-card.active .radio-check {
  background: var(--accent-color);
  color: #0c0806;
  border-color: var(--accent-color);
}

/* DROP ZONE */
.drop-zone {
  border: 1px dashed var(--border-color);
  background: #0f0a07;
  border-radius: 6px;
  padding: 24px;
  text-align: center;
}

.cloud-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
}

.drop-zone p {
  font-size: 12px;
  margin: 0 0 12px 0;
}

.browse-btn {
  background: var(--accent-color);
  color: #0c0806;
  border: none;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.browse-btn:hover {
  background: var(--accent-hover);
}

.hint {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  color: var(--text-muted);
}

/* SCAN PROGRESS OVERHAUL */
.scan-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0c0806;
  border: 1px solid var(--card-border);
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 14px;
  transition: all 0.3s ease;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2b1f16;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.check-circle.completed {
  background: #15803d;
  color: #ffffff;
}

.status-left b {
  display: block;
  font-size: 12px;
}

.status-left small {
  font-size: 10px;
  color: var(--text-muted);
}

.status-center {
  flex: 1;
  margin: 0 20px;
}

.status-center span {
  font-size: 11px;
  font-weight: bold;
  display: block;
  margin-bottom: 3px;
}

.progress-bar-bg {
  height: 6px;
  background: #2b1f16;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-color);
  transition: width 0.15s linear;
}

.status-center small {
  font-size: 9px;
  color: var(--text-muted);
}

.cancel-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

/* ================= SPLIT WORKSPACE ================= */
.workspace-split {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
}

.folder-tree {
  background: #0f0a07;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 10px;
  font-size: 11px;
}

.tree-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.small-btn {
  background: #1a130e;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
}

.tree-list,
.tree-list ul {
  list-style: none;
  padding-left: 12px;
  margin: 0;
}

.tree-list {
  padding-left: 0;
}

.tree-list li {
  margin: 4px 0;
  color: var(--text-muted);
  cursor: pointer;
}

.tree-list li.active {
  color: var(--accent-color);
}

.badge {
  background: #1a130e;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 9px;
  float: right;
}

/* TABLE */
.table-container {
  overflow-x: auto;
  max-height: 450px;
  min-height: 450px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

th,
td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

th {
  position: sticky;
  top: 0;
  background: #0f0a07;
  color: var(--text-muted);
  font-weight: 500;
  z-index: 10;
}

.wave {
  width: 120px;
  height: 28px;
  cursor: pointer;
  overflow: hidden;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 12px;
}

/* TABLE ACTIONS & BUTTONS */
.table-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.add-more-btn {
  width: 100%;
  margin-top: 0;
  background: transparent;
  border: 1px dashed var(--card-border);
  color: var(--accent-color);
  padding: 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-more-btn:hover {
  border-color: var(--accent-color);
  background: rgba(216, 150, 62, 0.05);
}

.clear-all-btn {
  align-self: flex-end;
  background: #1a0f0f;
  color: #e74c3c;
  border: 1px solid #451a1a;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.clear-all-btn:hover {
  background: #2c1212;
  color: #ef4444;
  border-color: #7f1d1d;
}

.clear-all-btn:active {
  transform: scale(0.98);
}

/* ================= FORMS & INPUTS ================= */
.form-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
}

.char-count {
  font-size: 9px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 2px;
}

.tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  padding: 6px;
  border-radius: 4px;
}

.tag {
  background: #1a130e;
  color: var(--text-main);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  cursor: pointer;
}

.radio-group {
  display: flex;
  gap: 14px;
  font-size: 11px;
}

.toggle-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}

.flex-1 {
  flex: 1;
}

.margin-top {
  margin-top: 12px;
}

.submit-section {
  text-align: center;
  margin-top: 20px;
}

.main-upload-btn {
  background: var(--accent-color);
  color: #0c0806;
  border: none;
  font-weight: bold;
  font-size: 14px;
  padding: 12px 30px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

.submit-section p {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
}

.submit-section a {
  color: var(--accent-color);
}

/* ================= RIGHT COLUMN (PREVIEW) ================= */
.help-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-card li {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.cover-art-wrapper {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.cover-art-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-overlay-text {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.preview-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
  background: #0c0806;
  padding: 8px;
  border-radius: 4px;
  font-size: 10px;
}

.preview-stats b {
  display: block;
  font-size: 12px;
  color: var(--accent-color);
}

/* MINI PLAYER STYLING */
.mini-player {
  margin-top: 10px;
  background: #0c0806;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
}

#miniPlayerTitle {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 4px;
}

.mini-wave-bg {
  flex: 1;
  height: 12px;
  background: #2b1f16;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.mini-player-badge {
  display: inline-block;
  background: var(--accent-color);
  color: #0c0806;
  font-weight: 700;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 6px;
}

.mini-player-badge:empty {
  display: none;
}

.mini-wave-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-color);
  transition: width 0.1s linear;
}

#miniPlayerBtn {
  background: var(--accent-color);
  color: #0c0806;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#miniPlayerBtn:hover {
  background: var(--accent-hover);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.mini-wave {
  flex: 1;
  height: 14px;
  background: var(--accent-color);
  border-radius: 2px;
}

.cover-thumb-upload {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cover-thumb-upload img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.secondary-btn,
.full-width-btn {
  background: #1a130e;
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.full-width-btn {
  width: 100%;
}

/* FOOTER BANNER */
.footer-banner {
  margin-top: 40px;
  background: linear-gradient(180deg, #1e130a 0%, #0c0806 100%);
  border-top: 1px solid var(--card-border);
  padding: 30px;
  text-align: center;
}

.footer-banner h3 {
  letter-spacing: 2px;
  font-size: 14px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

footer {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  padding: 14px;
  border-top: 1px solid var(--card-border);
}

.cover-manager-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.active-cover-preview {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--accent-color, #d8963e);
}

.active-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(12, 8, 6, 0.75);
  color: var(--accent-color, #d8963e);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.cover-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cover-thumb-card {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.cover-thumb-card:hover {
  transform: scale(1.04);
}

.cover-thumb-card.active {
  border-color: var(--accent-color, #d8963e);
}

.cover-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-delete-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cover Uploader Side-by-Side */
.cover-uploader-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 8px;
}

.cover-preview-thumb {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(216, 150, 62, 0.3);
  background: #150f0b;
  flex-shrink: 0;
}

.cover-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.upload-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

/* Date Input Styling */
.date-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0 10px;
}

.date-input-wrapper .calendar-icon {
  margin-right: 8px;
  opacity: 0.7;
}

.date-input-wrapper input {
  border: none !important;
  background: transparent !important;
  padding: 8px 0 !important;
}

/* ================= BUILT-IN COVERS MODAL POPUP ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(12, 8, 6, 0.82);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 90%;
  max-width: 520px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: var(--accent-color);
  font-size: 16px;
  letter-spacing: 0.5px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 16px 0;
}

/* Preset Covers Grid inside Modal */
.preset-covers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 120px));
  gap: 16px;
  justify-content: start;
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.preset-cover-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #0f0a07;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.preset-cover-card:hover {
  transform: scale(1.04);
}

.preset-cover-card.selected {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(216, 150, 62, 0.5);
}

.preset-covers-grid img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.preset-covers-grid img:hover {
  transform: scale(1.05);
  border-color: var(--accent-color);
}

.modal-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.modal-upload-btn {
  background: var(--bg-card-alt);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.modal-upload-btn:hover {
  background: var(--border-color);
}

/* CUSTOM COVER UPLOAD THUMBNAILS GALLERY */
.cover-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 70px));
  gap: 10px;
  margin-top: 12px;
}

.cover-gallery-item {
  position: relative;
  width: 70px;
  height: 70px;
}

.cover-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
}

.cover-gallery-item.active img {
  border-color: var(--accent-color);
}

.delete-cover-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modern Dark Secondary Button */
.secondary-btn {
  background: rgba(216, 150, 62, 0.05);
  color: var(--text-main);
  border: 1.5px solid rgba(216, 150, 62, 0.5);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.secondary-btn:hover {
  background: var(--accent-color);
  color: #0c0806;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(216, 150, 62, 0.3);
}

.secondary-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.help-card {
  min-height: 310px;
}

.preview-card {
  min-height: 580px;
}

/* Disabled State */
.main-upload-btn.disabled,
.main-upload-btn:disabled {
  opacity: 0.45;
  filter: blur(0.5px) grayscale(60%);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
  background: #2b1f16 !important;
  color: var(--text-muted) !important;
}

/* Notice Text Styling */
.license-notice {
  color: var(--accent-amber);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.license-notice b {
  color: var(--accent-gold);
}

.pricing-license-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.pricing-license-row .flex-1 {
  flex: 1;
}

.pack-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.pack-details-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.select-tags-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 42px;
  cursor: pointer;
}

.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.select-tags-box .tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-chevron {
  opacity: 0.5;
  font-size: 0.8rem;
  margin-left: 8px;
}

.flex-fill-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.auto-fill-height {
  flex: 1;
  min-height: 100px;
  resize: vertical;
}

/* ================= INLINE UPLOAD PROGRESS CARD ================= */
.upload-progress-card {
  background: #0f0a07;
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  padding: 18px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  box-shadow: 0 0 20px rgba(216, 150, 62, 0.2);
  animation: fadeIn 0.3s ease;
}

.upload-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.upload-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spinner-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1s infinite alternate;
}

.upload-status-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upload-percent {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.upload-progress-details {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 14px;
}

.cancel-upload-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-upload-btn:hover {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border-color: #e74c3c;
}

/* ANIMATIONS */
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.4;
  }

  100% {
    transform: scale(1.3);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SUCCESS CELEBRATION MODAL */
.success-card {
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--accent-color) !important;
  box-shadow: 0 0 40px rgba(216, 150, 62, 0.3);
}

#confettiCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.success-icon {
  font-size: 50px;
  margin-bottom: 10px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-card h2 {
  color: var(--accent-color);
  letter-spacing: 1px;
  margin: 0 0 8px 0;
}

.success-card p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 16px 0;
}

.success-stats-badge {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  background: #0c0806;
  border: 1px solid var(--card-border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.success-stats-badge b {
  color: var(--accent-color);
}

.success-btn {
  width: 100%;
  padding: 12px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================= PACK PREVIEW SUMMARY ================= */
.pack-preview-card {
  background: #0f0a07;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.preview-header h3 {
  font-size: 14px;
  color: var(--accent-color);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* Policy Modal Layout */
.policy-modal-card {
  max-width: 650px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.policy-modal-body {
  padding: 16px;
  overflow-y: auto;
  max-height: 50vh;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.policy-loading {
  text-align: center;
  padding: 20px;
  color: var(--accent-color);
}

.policy-modal-body h1,
.policy-modal-body h2,
.policy-modal-body h3 {
  color: #ffffff;
  margin-top: 12px;
  margin-bottom: 6px;
}

/* Media Queries */
@media (max-width: 768px) {

  .navbar,
  header.navbar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-links {
    display: none;
  }

  .pricing-license-row,
  .pack-details-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

/* Ensure cover items are square in the modal grid */
.cover-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.cover-gallery-grid .cover-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Forces 1:1 square ratio */
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.cover-gallery-grid .cover-item:hover {
  transform: scale(1.04);
  border-color: var(--accent-color);
}

.cover-gallery-grid .cover-item.selected {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(216, 150, 62, 0.4);
}

.cover-gallery-grid .cover-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Prevents image distortion */
  display: block;
}

/* Fullscreen Backdrop Blur */
.upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 8, 6, 0.4);
  backdrop-filter: blur(8px);
  /* Screen blur */
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Place above everything */
  transition: opacity 0.3s ease;
}

.upload-modal.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

/* Central Popup Card */
.upload-modal-content {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Progress Container */
.progress-track {
  width: 100%;
  height: 10px;
  background-color: var(--border-color);
  border-radius: 5px;
  overflow: hidden;
  margin: 1.5rem 0 0.5rem 0;
}

/* Dynamic Fill Bar */
.progress-fill {
  height: 100%;
  background-color: var(--accent-color);
  /* Adjust primary theme color */
  transition: width 0.2s ease-in-out;
}

/* Upload Progress Modal Popup Backdrop */
#uploadProgressModal.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 8, 6, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease-out;
}

/* Modal Popup Card */
#uploadProgressModal .upload-progress-card {
  width: 90%;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(216, 150, 62, 0.2);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}


/* Add this to your style sheet */
tr.active-track {
  background-color: rgba(216, 150, 62, 0.15) !important;
  outline: 1px solid var(--accent-color, #d8963e);
}



/* ==========================================
   STICKY SELLER NOTICE BANNER
   ========================================== */
.seller-notice-banner {
  position: sticky;
  top: 67px;
  /* Matches the approximate height of your sticky navbar */
  z-index: 99;
  /* Stays below the navbar (z-index 100) but above content */
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-alt));
  border-bottom: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  padding: 14px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.seller-notice-banner i {
  color: var(--accent-gold);
  font-size: 16px;
  flex-shrink: 0;
}

.seller-notice-banner p {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.seller-notice-banner strong {
  color: var(--accent-gold);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
}

/* Responsive adjustment for mobile */
@media (max-width: 1024px) {
  .seller-notice-banner {
    padding: 12px 20px;
    flex-direction: column;
    gap: 8px;
  }
}