:root {
  --bg-dark: #0c0806;
  --bg-card: #140d09;
  --bg-card-hover: #1c130d;
  --bg-border: #281a10;
  --accent-gold: #d8953ec6;
  --accent-amber: #c37b27;
  --accent-gold-hover: #e5b46a;
  --accent-orange: #d15d19;
  --text-main: #f0eae1;
  --text-muted: #8e8075;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #120e0c 50%, #0f0f11 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
}

/* NAVBAR & BRANDING */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 50px;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--bg-border);
  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-title {
  color: var(--text-main);
  font-family: 'Times New Roman', Times, serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  color: var(--accent-gold);
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1;
  display: block;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding-bottom: 6px;
  position: relative;
  transition: color 0.2s ease;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -4px;
  right: -4px;
  height: 2px;
  background-color: var(--accent-gold);
}

.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);
  border: 1px solid var(--bg-border);
  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);
  background: var(--bg-card-hover);
}

.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 var(--accent-amber);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
}

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

.dropdown-arrow {
  font-size: 11px;
  color: var(--text-muted);
  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);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  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-main);
  display: block;
}

.user-handle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
}

.dropdown-divider {
  height: 1px;
  background: var(--bg-border);
  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-muted);
  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);
}

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

.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 SECTION & BREADCRUMBS */
.hero-section {
  padding: 32px 32px 10px;
}

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

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

.hero-section h1 {
  font-size: 2.2rem;
  letter-spacing: 1px;
  color: var(--text-main);
}

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

.hero-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

/* MAIN CONTAINER & STEPPER */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid var(--bg-border);
  margin-bottom: 24px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.step.active {
  color: var(--text-main);
  font-weight: bold;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.step.active .step-num {
  background: var(--accent-gold);
  color: #000000;
  font-weight: bold;
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--bg-border);
  margin: 0 16px;
}

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(216, 149, 62, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.section-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* UPLOAD & FILE STATUS GRID */
.upload-trim-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.drop-zone {
  border: 2px dashed rgba(216, 149, 62, 0.4);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.or-text {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.browse-btn {
  background: var(--accent-gold);
  color: #000000;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  margin: 12px 0;
  transition: background 0.2s, color 0.2s;
}

.browse-btn:hover {
  background: var(--accent-amber);
  color: var(--text-main);
}

.file-limits {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.file-status-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.file-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon-box {
  background: rgba(216, 149, 62, 0.15);
  padding: 10px;
  border-radius: 8px;
  font-size: 1.2rem;
}

.file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.file-info b {
  font-size: 0.95rem;
  color: var(--text-main);
}

.file-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.remove-file-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.progress-bar-bg {
  background: var(--bg-card-hover);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

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

.time-rem {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 6px;
}

.complete-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* RIGHT COLUMN INFO CARDS */
.status-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid rgba(216, 149, 62, 0.2);
  border-radius: 12px;
  padding: 16px;
}

.info-title {
  color: var(--accent-gold);
  font-size: 1.05rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.file-info-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-info-details p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--bg-border);
  padding-bottom: 8px;
}

.file-info-details p:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.file-info-details strong {
  color: var(--text-main);
  font-weight: 500;
}

.file-info-details span {
  color: var(--accent-gold);
  font-weight: 600;
  word-break: break-all;
  text-align: right;
  max-width: 65%;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-text {
  color: var(--text-main);
  font-size: 0.88rem;
  line-height: 1.4;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  color: var(--text-main);
  font-size: 0.85rem;
}

/* WAVEFORM & TRIMMER */
.trim-section {
  border-top: 1px solid var(--bg-border);
  padding-top: 20px;
  position: relative;
}

.waveform-container {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--bg-border);
  margin-bottom: 8px;
}

.waveform-wrapper {
  flex: 1;
  position: relative;
  height: 80px;
  overflow: hidden;
}

#waveform {
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.wavesurfer-region {
  max-height: 100% !important;
  border: 2px solid var(--accent-gold) !important;
  box-sizing: border-box !important;
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: none;
  color: #000;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  font-weight: bold;
}

.time-stamps-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 10px 0 18px;
}

.trim-controls-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.time-inputs-group {
  display: flex;
  gap: 12px;
}

.time-input-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time-input-box label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.time-input-box input {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 6px;
  width: 90px;
  text-align: center;
  font-size: 0.85rem;
}

.reset-btn {
  background: none;
  border: 1px solid var(--bg-border);
  color: var(--text-main);
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.trim-toggle-btn {
  opacity: 0.5;
  background-color: var(--bg-card-hover);
  color: var(--text-muted);
  border: 1px solid var(--bg-border);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px 16px;
  border-radius: 6px;
}

.trim-toggle-btn.active {
  opacity: 1;
  background-color: var(--accent-gold);
  color: #000;
  border-radius: 6px;
  font-weight: bold;
  border-color: var(--accent-gold-hover);
  box-shadow: 0 0 10px rgba(216, 149, 62, 0.5);
}

/* FORM GRID */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
}

.multi-select-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  padding: 8px;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-main);
}

.radio-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-main);
}

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

.price-input-wrapper input {
  border: none;
  width: 60px;
  padding: 6px 4px;
  background: transparent;
}

.char-count,
.hint-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* PREVIEW SUMMARY & PLAYER */
.summary-player-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.summary-cover img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.summary-details {
  flex: 1;
}

.summary-details h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.preview-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.badge {
  background: rgba(216, 149, 62, 0.15);
  color: var(--accent-gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.preview-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.summary-waveform {
  flex: 2;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.preview-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: none;
  color: #000;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}

/* SUBMIT ACTION & FOOTER */
.submit-action-box {
  text-align: center;
  margin-top: 24px;
}

.upload-submit-btn {
  background: var(--accent-gold);
  color: #000000;
  border: none;
  padding: 14px 48px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.upload-submit-btn:hover {
  background: var(--accent-amber);
  color: var(--text-main);
  transform: translateY(-2px);
}

#submitSoundBtn {
  position: relative;
  z-index: 9999 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.terms-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.terms-text a {
  color: var(--accent-gold);
  text-decoration: underline;
  font-weight: bold;
}

.footer-banner {
  background: var(--bg-card);
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--bg-border);
}

.footer-banner h3 {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 8px;
  font-size: 1.1rem;
}

footer {
  text-align: center;
  padding: 20px;
  background: var(--bg-dark);
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--bg-border);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {

  .upload-trim-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stepper {
    overflow-x: auto;
  }

  .summary-player-card {
    flex-direction: column;
    text-align: center;
  }
}