:root {
  --bg-dark: #0a0b10;
  --bg-card: rgba(22, 25, 37, 0.75);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-hover: rgba(28, 32, 48, 0.85);
  --text-main: #f0f2f8;
  --text-muted: #8c93a8;
  --accent-cyan: #00f0ff;
  --accent-magenta: #ff007f;
  --accent-purple: #9d4edd;
  --accent-green: #00ff88;
  --accent-amber: #ffb703;
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(157, 78, 221, 0.05) 0%, transparent 40%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER */
.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bg-card-border);
  margin-bottom: 28px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00f0ff 0%, #9d4edd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0b10;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-title span {
  color: var(--accent-cyan);
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hardware-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: #00ff88;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff88;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #00a8ff 100%);
  color: #0a0b10;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.5);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--bg-card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: rgba(255, 0, 70, 0.15);
  color: #ff3366;
  border: 1px solid rgba(255, 0, 70, 0.3);
}

.btn-danger:hover {
  background: rgba(255, 0, 70, 0.28);
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

/* CARDS */
.studio-main {
  flex: 1;
}

.studio-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transition: border-color var(--transition-normal);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.step-indicator {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.card-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* DROP ZONE */
.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  padding: 44px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.04);
}

.drop-icon {
  margin-bottom: 12px;
  color: var(--accent-cyan);
}

.drop-zone h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.drop-subtext {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.format-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.format-tags span {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  color: #adb5bd;
}

/* FILE PREVIEW */
.file-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.preview-icon {
  color: var(--accent-cyan);
}

.preview-details {
  flex: 1;
}

.preview-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
  word-break: break-all;
}

.preview-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* GENRE & ADAPTIVE INSTRUMENTS CARD */
.genre-analysis-card {
  background: linear-gradient(135deg, rgba(25, 20, 38, 0.9) 0%, rgba(14, 18, 30, 0.95) 100%);
  border: 1px solid var(--genre-color, #9d4edd);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(157, 78, 221, 0.08);
  border-radius: var(--border-radius-md);
  padding: 20px 22px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.genre-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.genre-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
}

.genre-icon {
  font-size: 1.3rem;
}

.genre-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #ffffff;
}

.genre-confidence {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--genre-color, #00ff88);
  color: #000;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

.genre-traits {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.genre-trait-pill {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  padding: 4px 10px;
  border-radius: 6px;
}

.genre-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.adaptive-stems-preview {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.adaptive-stems-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.adaptive-stems-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stem-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(20, 24, 38, 0.9);
  border: 1px solid var(--stem-chip-color, rgba(255, 255, 255, 0.2));
  color: #f0f2f8;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.stem-chip:hover {
  transform: translateY(-1px);
}

.stem-chip-icon {
  font-size: 0.9rem;
}

/* SETTINGS */
.settings-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tooltip-icon {
  font-size: 0.75rem;
  cursor: help;
  opacity: 0.6;
}

.studio-select {
  width: 100%;
  background: rgba(14, 16, 25, 0.95);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.studio-select:focus {
  border-color: var(--accent-cyan);
}

.action-footer {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

/* PROCESSING SECTION */
.processing-content {
  text-align: center;
  padding: 40px 20px;
}

.processing-glow-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(0, 240, 255, 0.15);
  border-top-color: var(--accent-cyan);
  border-right-color: var(--accent-purple);
  animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-inner-icon {
  color: var(--accent-cyan);
  animation: pulse-icon 1.8s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { opacity: 0.7; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

.processing-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.processing-status {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.progress-bar-container {
  max-width: 560px;
  height: 12px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  margin: 0 auto 12px auto;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--bg-card-border);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff, #9d4edd, #ff007f);
  border-radius: 8px;
  position: relative;
  transition: width 0.3s ease;
}

.progress-bar-glow {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  box-shadow: 0 0 12px #00f0ff;
}

.processing-meta {
  display: flex;
  justify-content: space-between;
  max-width: 560px;
  margin: 0 auto 28px auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* MIXER SECTION */
.mixer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bg-card-border);
  margin-bottom: 20px;
}

.mixer-status-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.mixer-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.mixer-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mixer-header-actions {
  display: flex;
  gap: 10px;
}

/* MASTER TRANSPORT */
.master-transport {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(14, 16, 25, 0.85);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--border-radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-transport {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-transport:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.btn-play-master {
  width: 46px;
  height: 46px;
  background: var(--accent-cyan);
  color: #0a0b10;
  border: none;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.btn-play-master:hover {
  background: #33f3ff;
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.6);
}

.transport-scrubber {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.time-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 45px;
}

.time-display.current {
  color: var(--accent-cyan);
}

.timeline-bar-wrapper {
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.timeline-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  overflow: visible;
}

.timeline-progress {
  height: 100%;
  width: 0%;
  background: var(--accent-cyan);
  border-radius: 4px;
  pointer-events: none;
}

.timeline-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.master-volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.slider-master {
  width: 100px;
}

/* CHANNEL STRIPS */
.stem-tracks-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 6px;
}

.stem-tracks-container::-webkit-scrollbar {
  width: 6px;
}

.stem-tracks-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.stem-tracks-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.stem-tracks-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

.channel-strip {
  display: grid;
  grid-template-columns: 290px 80px 1fr 110px 42px;
  align-items: center;
  gap: 18px;
  background: rgba(16, 19, 30, 0.95);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--border-radius-md);
  padding: 12px 18px;
  min-height: 70px;
  position: relative;
  overflow: visible;
  transition: all var(--transition-fast);
}

.channel-strip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 4px 0 0 4px;
  background: var(--stem-color, var(--accent-cyan));
  box-shadow: 0 0 10px var(--stem-color, var(--accent-cyan));
}

.channel-strip.is-muted {
  opacity: 0.45;
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.channel-icon {
  font-size: 1.45rem;
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
}

.channel-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  justify-content: center;
}

.channel-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.channel-subname {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
  line-height: 1.2;
}

.channel-buttons {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.btn-track {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  border: 1px solid var(--bg-card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-track:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.btn-track.active-solo {
  background: #ffb703;
  color: #000;
  border-color: #ffb703;
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.5);
}

.btn-track.active-mute {
  background: #ff0055;
  color: #fff;
  border-color: #ff0055;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

/* FADER SLIDER */
.channel-fader-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-fader {
  flex: 1;
}

.fader-db {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 48px;
  text-align: right;
}

/* RANGE INPUT STYLING */
input[type="range"].studio-slider {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type="range"].studio-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

input[type="range"].studio-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* MINI VU METERS */
.channel-meter-box {
  height: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding: 2px 4px;
}

.channel-meter-bar {
  height: 10px;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--stem-color, #00f0ff), #00ff88);
  transition: width 0.08s linear;
}

.btn-download-stem {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-download-stem:hover {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.3);
}

/* EXPORT PANEL */
.export-studio-panel {
  background: rgba(12, 14, 22, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--border-radius-md);
  padding: 22px;
}

.export-header-row {
  margin-bottom: 16px;
}

.export-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.export-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.export-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .export-buttons-grid {
    grid-template-columns: 1fr;
  }
}

.btn-export-zip, .btn-export-mix {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--bg-card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-normal);
}

.btn-export-zip span, .btn-export-mix span {
  display: flex;
  flex-direction: column;
}

.btn-export-zip strong, .btn-export-mix strong {
  font-size: 0.95rem;
}

.btn-export-zip small, .btn-export-mix small {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-export-zip:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-export-mix:hover {
  background: rgba(157, 78, 221, 0.1);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

/* FOOTER */
.studio-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* ========================================================
   BILLING & MONETIZATION STYLES (MATCHING SCREENSHOT)
   ======================================================== */

/* Header Billing Badge */
.btn-billing-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 70, 239, 0.08);
  border: 1px solid rgba(217, 70, 239, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-billing-badge:hover {
  background: rgba(217, 70, 239, 0.16);
  border-color: #d946ef;
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.3);
  transform: translateY(-1px);
}

.billing-gem-icon {
  font-size: 15px;
}

.header-credits-val {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

.header-credits-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.header-plan-pill {
  background: rgba(255, 77, 151, 0.2);
  color: #ff4d97;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid rgba(255, 77, 151, 0.35);
}

/* Modal Backdrop */
.billing-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 6, 14, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.billing-modal-window {
  background: #110e1c;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(217, 70, 239, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(255, 77, 151, 0.05) 0%, transparent 40%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  max-width: 860px;
  width: 100%;
  padding: 36px 40px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.btn-close-billing {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-billing:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: rotate(90deg);
}

.billing-header-title {
  text-align: center;
  margin-bottom: 26px;
}

.billing-header-title h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Card 1: Active Plan */
.billing-active-plan-card {
  background: #171326;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.plan-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.billing-plan-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.plan-cycle-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.billing-plan-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-manage-invoices {
  background: transparent;
  border: 1px solid rgba(217, 70, 239, 0.4);
  color: #f5d0fe;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-manage-invoices:hover {
  background: rgba(217, 70, 239, 0.12);
  border-color: #d946ef;
  color: #fff;
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.25);
}

/* Card 2: Credit Balance */
.billing-credit-balance-card {
  background: #171326;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 30px;
}

.balance-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.balance-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}

.btn-credits-faq {
  background: none;
  border: none;
  color: #a78bfa;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.btn-credits-faq:hover {
  color: #d8b4fe;
  text-decoration: underline;
}

.balance-grid-container {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 28px;
  align-items: center;
}

.balance-numbers-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.balance-left-figs {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.credits-val-huge {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.credits-slash-max {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pill-carryover {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
  margin-left: 4px;
}

.balance-pct-txt {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.billing-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.billing-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #9333ea 0%, #ec4899 50%, #f43f5e 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
  transition: width 0.5s ease;
}

.balance-equivalents {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-help-dot {
  cursor: help;
  color: #a78bfa;
}

.balance-side-voice {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.voice-credits-figure {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.voice-credits-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.3;
}

/* Section: Get More Credits */
.get-more-credits-section {
  margin-bottom: 30px;
}

.get-credits-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.pricing-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pricing-card {
  background: #171326;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.card-recommended {
  border: 1px solid rgba(255, 42, 133, 0.65);
  box-shadow: 0 0 25px rgba(255, 42, 133, 0.18), inset 0 0 20px rgba(255, 42, 133, 0.05);
}

.badge-recommended-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff529a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 82, 154, 0.4);
}

.card-pretitle {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #c084fc;
  margin-bottom: 10px;
}

.card-main-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.card-description-txt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  min-height: 48px;
}

.card-compare-link {
  color: #ff529a;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 18px;
  display: inline-block;
  transition: opacity 0.2s;
}

.card-compare-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.card-price-block {
  margin-top: auto;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-dollar {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
}

.price-term {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card-price-block-auto, .card-price-block-pack {
  margin-top: auto;
  margin-bottom: 18px;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auto-starting-txt {
  font-size: 0.88rem;
  color: #e2e8f0;
}

.auto-starting-txt strong {
  font-size: 1.25rem;
  color: #fff;
}

.auto-discount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.auto-was-txt {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pill-discount-green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}

.pack-price-summary {
  font-size: 0.88rem;
  color: #e2e8f0;
}

.pack-price-summary strong {
  font-size: 1.35rem;
  color: #fff;
}

.btn-pink-gradient-pill {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d97 0%, #ec4899 50%, #f472b6 100%);
  color: #0b0713;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(255, 77, 151, 0.35);
}

.btn-pink-gradient-pill:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(255, 77, 151, 0.55);
  transform: translateY(-1px);
}

.billing-cancel-footer {
  text-align: center;
  padding-top: 8px;
}

.btn-cancel-subscription {
  background: none;
  border: none;
  color: #ef4444;
  opacity: 0.75;
  font-size: 0.84rem;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s ease;
}

.btn-cancel-subscription:hover {
  opacity: 1;
  text-decoration: underline;
}

/* SUBMODALS */
.submodal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10005;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.submodal-card {
  background: #19142b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  animation: modalScaleUp 0.2s ease;
}

.submodal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.submodal-header h3 {
  font-size: 1.25rem;
  color: #fff;
}

.btn-submodal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

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

.billing-summary-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.6;
}

.invoices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
}

.invoice-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.invoice-left strong {
  display: block;
  color: #fff;
}

.invoice-left span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.invoice-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invoice-amt {
  font-weight: 700;
  color: #fff;
}

.btn-invoice-dl {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #c4b5fd;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-invoice-dl:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.credits-faq-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  border-radius: 12px;
}

.faq-icon {
  font-size: 1.6rem;
}

.credits-faq-item strong {
  color: #fff;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 2px;
}

.credits-faq-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.packs-selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pack-option {
  background: #201a38;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.2s;
}

.pack-option:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 77, 151, 0.5);
}

.pack-popular {
  border-color: #ff529a;
  box-shadow: 0 0 15px rgba(255, 82, 154, 0.2);
}

.pack-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #c084fc;
  margin-bottom: 8px;
}

.pack-badge-popular {
  color: #ff529a;
}

.pack-credits-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.pack-credits-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pack-price-tag {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.btn-pack-select {
  font-size: 0.82rem;
  padding: 8px 12px;
}

/* Responsive adjustments */
@media (max-width: 820px) {
  .pricing-cards-container {
    grid-template-columns: 1fr;
  }
  .balance-grid-container {
    grid-template-columns: 1fr;
  }
  .balance-side-voice {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding-left: 0;
    padding-top: 18px;
  }
  .packs-selection-grid {
    grid-template-columns: 1fr;
  }
}

/* Model Credit Cost Badge Row */
.model-cost-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 0 4px;
}

.cost-tag {
  background: rgba(217, 70, 239, 0.12);
  color: #f5d0fe;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(217, 70, 239, 0.25);
  font-weight: 600;
  font-size: 0.8rem;
}

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

/* Regulated Checkout Modal */
.checkout-card {
  max-width: 500px;
}

.checkout-title-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-title-icon-row h3 {
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}

.order-summary-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #e2e8f0;
  margin-bottom: 6px;
}

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

.summary-line.total-line {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 8px;
  font-size: 1.1rem;
  color: #fff;
}

.payment-tabs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.pay-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.pay-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.pay-tab.active {
  background: rgba(217, 70, 239, 0.15);
  border-color: #d946ef;
  color: #fff;
}

.checkout-fields-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-item {
  display: flex;
  flex-direction: column;
}

.field-item label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.card-brand-badge {
  position: absolute;
  right: 12px;
  background: #1e3a8a;
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.field-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.security-guarantee-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #10b981;
  margin-top: 4px;
}

.btn-pay-submit {
  margin-top: 10px;
  padding: 14px;
  font-size: 1rem;
}

.checkout-terms-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 14px;
  text-align: center;
}

.checkout-terms-note a {
  color: #c084fc;
}

/* PAYPAL & APPLE PAY CHECKOUT STYLES */
.btn-paypal-gold {
  width: 100%;
  background: #ffc439;
  color: #003087;
  border: none;
  border-radius: 9999px;
  padding: 14px 20px;
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 196, 57, 0.35);
  margin-top: 14px;
}
.btn-paypal-gold:hover {
  background: #f4b41a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 196, 57, 0.45);
}
.btn-apple-pay {
  width: 100%;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 14px 20px;
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 14px;
}
.btn-apple-pay:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.4);
}
.paypal-info-card {
  background: rgba(0, 48, 135, 0.12);
  border: 1px solid rgba(0, 112, 186, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.paypal-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
}
.paypal-pay-in-3 {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ========================================================
   GOOGLE AUTHENTICATION & USER PROFILE STYLES
   ======================================================== */

.btn-google-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-google-login:hover {
  background: #f8fafc;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.35);
  transform: translateY(-1px);
}

.google-icon {
  flex-shrink: 0;
}

.user-profile-menu-container {
  position: relative;
}

.btn-user-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 4px 12px 4px 4px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-user-profile:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #4285F4;
}

.user-name-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.google-badge-pill {
  background: #4285F4;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 324px;
  background: #120c22;
  border: 1px solid rgba(168, 85, 247, 0.24);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(147, 51, 234, 0.18);
  display: none;
  flex-direction: column;
  z-index: 10000;
  backdrop-filter: blur(16px);
  animation: modalScaleUp 0.18s ease;
  box-sizing: border-box;
}

.user-dropdown-menu.active {
  display: flex !important;
}

/* TOP PROFILE SECTION */
.user-dropdown-header-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.user-avatar-v2-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #06b6d4;
  padding: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-dropdown-avatar-v2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown-meta-v2 {
  flex: 1;
  overflow: hidden;
}

.user-dropdown-name-v2 {
  font-weight: 800;
  font-size: 1.12rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.user-dropdown-email-v2 {
  font-size: 0.82rem;
  color: #8e84a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-profile-edit {
  background: #251d38;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 16px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-profile-edit:hover {
  background: #372b54;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* MIDDLE SUBSCRIPTION & CREDITS CARD */
.user-plan-card-v2 {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  margin-bottom: 14px;
}

.user-plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.plan-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.btn-plan-manage {
  background: #251d38;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 16px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-plan-manage:hover {
  background: #372b54;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.plan-card-subtitle {
  font-size: 0.82rem;
  color: #8e84a8;
  margin-bottom: 16px;
}

.plan-meter-group {
  margin-bottom: 14px;
}

.plan-meter-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.plan-meter-label-row strong {
  font-weight: 800;
  color: #ffffff;
}

.plan-meter-label-row .dim {
  font-weight: 400;
  color: #8e84a8;
  font-size: 0.8rem;
}

.plan-meter-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.plan-meter-fill {
  height: 100%;
  background: #8e84a8;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.plan-meter-fill.cyan {
  background: #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}

.plan-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.btn-plan-upgrade {
  background: linear-gradient(135deg, #c084fc, #9333ea);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  padding: 8px 22px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-plan-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.6);
  background: linear-gradient(135deg, #d8b4fe, #a855f7);
}

.link-buy-more {
  color: #f43f5e;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.link-buy-more:hover {
  color: #fb7185;
}

/* NAVIGATION LINKS LIST */
.user-dropdown-links-v2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.user-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 8px;
  border: none;
  background: none;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
  transition: all 0.15s ease;
  text-align: left;
}

.user-nav-item svg {
  color: #8e84a8;
  flex-shrink: 0;
}

.user-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.user-nav-item:hover svg {
  color: #ffffff;
}

.tag-affiliate {
  color: #8e84a8;
  font-size: 0.78rem;
  font-weight: 400;
  margin-left: 4px;
}

.user-nav-item.text-danger {
  color: #f87171;
}

.user-nav-item.text-danger svg {
  color: #f87171;
}

.user-nav-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* ========================================================
   CONTROLLA / CLERK STYLE AUTH MODAL
   ======================================================== */

.auth-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  z-index: 10005 !important;
  display: none;
  justify-content: center !important;
  align-items: center !important;
  padding: 20px !important;
}

.auth-clerk-card {
  background: #110926 !important;
  border: 1.5px solid rgba(192, 132, 252, 0.35) !important;
  border-radius: 26px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 50px rgba(147, 51, 234, 0.25) !important;
  max-width: 440px !important;
  width: 100% !important;
  padding: 36px 32px 28px 32px !important;
  position: relative !important;
  color: #ffffff !important;
  animation: modalScaleUp 0.22s ease !important;
  box-sizing: border-box !important;
}

.auth-clerk-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #a78bfa;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}

.auth-clerk-close:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.auth-clerk-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-clerk-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.auth-clerk-subtitle {
  font-size: 1rem;
  color: #c4b5fd;
  margin: 0;
  opacity: 0.85;
}

.auth-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-clerk-social {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 10px;
  height: 48px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-family: inherit;
}

.btn-clerk-social:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.25);
}

.auth-clerk-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: #a78bfa;
  font-size: 0.85rem;
  text-align: center;
}

.auth-clerk-divider::before,
.auth-clerk-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(167, 139, 250, 0.25);
}

.auth-clerk-divider span {
  padding: 0 12px;
}

.auth-clerk-field {
  margin-bottom: 4px;
}

.auth-clerk-field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-align: left;
}

.auth-clerk-input {
  background: #090514;
  border: 1.5px solid rgba(167, 139, 250, 0.3);
  border-radius: 10px;
  height: 48px;
  padding: 0 16px;
  color: #ffffff;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.auth-clerk-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.auth-clerk-input::placeholder {
  color: #6b7280;
}

.btn-clerk-continue {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #c026d3 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  width: 100%;
  height: 50px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 18px;
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.45);
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-clerk-continue:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(192, 38, 211, 0.55);
}

.auth-clerk-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  font-size: 0.88rem;
}

.auth-clerk-footer-left {
  color: #e2e8f0;
  font-weight: 500;
}

.auth-clerk-footer-left a {
  color: #f472b6;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
  cursor: pointer;
}

.auth-clerk-footer-left a:hover {
  text-decoration: underline;
}

.auth-clerk-footer-right {
  display: flex;
  gap: 14px;
}

.auth-clerk-footer-right a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.auth-clerk-footer-right a:hover {
  text-decoration: underline;
}

/* ========================================================
   AUDIT & SUPPORT ACTIVITY MODAL STYLES
   ======================================================== */

.audit-modal-card {
  max-width: 820px;
  width: 95%;
  background: #131024;
}

.audit-title-icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audit-header-icon {
  font-size: 1.6rem;
  background: rgba(99, 102, 241, 0.2);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.audit-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
}

.audit-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0 12px;
  flex: 1;
  min-width: 240px;
}

.audit-search-box svg {
  color: var(--text-muted);
}

.audit-search-box input {
  background: none;
  border: none;
  color: #fff;
  padding: 8px 0;
  width: 100%;
  font-size: 0.85rem;
}

.audit-search-box input:focus {
  outline: none;
}

.audit-filter-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 10px;
}

.audit-filter-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.audit-filter-btn:hover {
  color: #fff;
}

.audit-filter-btn.active {
  background: #6366f1;
  color: #fff;
}

.audit-user-summary-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.audit-summary-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audit-summary-stat .stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audit-summary-stat strong {
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-timeline-container {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.audit-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-event-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  transition: background 0.15s ease;
}

.audit-event-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.audit-event-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.audit-event-icon-badge.cat-separation {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.audit-event-icon-badge.cat-payment {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.audit-event-icon-badge.cat-subscription {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.audit-event-icon-badge.cat-auth {
  background: rgba(66, 133, 244, 0.18);
  border: 1px solid rgba(66, 133, 244, 0.4);
}

.audit-event-icon-badge.cat-error {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.audit-event-main {
  flex: 1;
}

.audit-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.audit-event-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.audit-event-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.audit-event-details-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.audit-event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  font-size: 0.74rem;
}

.audit-user-pill {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.audit-credits-pill {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.audit-credits-pill.spent {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

.audit-credits-pill.gained {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

.audit-loading-state,
.audit-empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ========================================================
   ADMIN CONSOLE & USER MANAGEMENT STYLES
   ======================================================== */

.btn-admin-badge {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.22), rgba(168, 85, 247, 0.22)) !important;
  border: 1px solid rgba(250, 204, 21, 0.5) !important;
  color: #fef08a !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.2) !important;
}

.btn-admin-badge:hover {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.35), rgba(168, 85, 247, 0.35)) !important;
  border-color: #facc15 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 0 24px rgba(234, 179, 8, 0.35) !important;
}

.admin-icon-crown {
  font-size: 1rem;
}

.admin-pulse-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 1.8s infinite;
}

.user-name-role-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-role-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-role-pill.admin {
  background: rgba(234, 179, 8, 0.2);
  color: #fef08a;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.user-role-pill.client {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.user-dropdown-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #a78bfa;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  text-transform: uppercase;
}

.admin-modal-card {
  max-width: 960px !important;
  width: 95% !important;
  max-height: 88vh !important;
  background: #110d22 !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(147, 51, 234, 0.18) !important;
}

.admin-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.2);
}

.admin-nav-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-nav-tab-btn:hover {
  color: #fff;
}

.admin-nav-tab-btn.active {
  color: #c084fc;
  border-bottom-color: #a855f7;
}

.admin-tab-pane {
  display: none;
  padding: 20px 24px;
  overflow-y: auto;
  max-height: calc(88vh - 140px);
}

.admin-tab-pane.active {
  display: block;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.84rem;
}

.admin-users-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-users-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.admin-users-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
}

.admin-user-name {
  font-weight: 700;
  color: #fff;
}

.admin-user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-btn-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
}

.admin-btn-action:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #a855f7;
  color: #fff;
  transform: translateY(-1px);
}

.admin-btn-action.btn-credit {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.admin-btn-action.btn-credit:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #10b981;
  color: #fff;
}

/* ======================================================== */
/* REAL-TIME UPLOAD PROGRESS BAR STYLES                     */
/* ======================================================== */
.upload-progress-card {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 24px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(12px);
  animation: fadeInUpload 0.3s ease-out;
}

@keyframes fadeInUpload {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

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

.upload-file-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.upload-pulse-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGlow 1.8s infinite alternate;
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 4px rgba(0, 240, 255, 0.2); }
  to { box-shadow: 0 0 16px rgba(0, 240, 255, 0.6); }
}

.upload-file-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.upload-file-status {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.upload-percent-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.upload-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f0ff 0%, #38bdf8 50%, #a855f7 100%);
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
  transition: width 0.15s ease-out;
}

.upload-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

/* ======================================================== */
/* STEMS REPOSITORY MODAL STYLES                            */
/* ======================================================== */
.repository-modal-card {
  max-width: 920px;
  width: 95%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.repo-badge-pill {
  background: #00f0ff;
  color: #050b14;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 12px;
  margin-left: 6px;
}

.repo-toolbar {
  padding: 14px 24px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.repo-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 10px;
  flex: 1;
  min-width: 240px;
}

.repo-search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
  outline: none;
}

.repo-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.repo-admin-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2px;
}

.btn-repo-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-repo-tab.active {
  background: #00f0ff;
  color: #090d16;
}

.repository-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  max-height: 520px;
}

.repo-projects-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.repo-project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  transition: all 0.25s ease;
  position: relative;
}

.repo-project-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.repo-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.repo-track-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.repo-track-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.repo-track-title {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin: 0 0 4px 0;
}

.repo-track-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.repo-badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.repo-badge-genre {
  background: rgba(255, 183, 3, 0.15);
  color: #ffb703;
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.repo-badge-model {
  background: rgba(0, 240, 255, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.repo-badge-format {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.repo-track-meta {
  font-size: 12px;
  color: #94a3b8;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
}

.repo-stems-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 16px 0;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

.repo-stem-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.repo-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  flex-wrap: wrap;
}

.repo-primary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-repo-mixer {
  background: linear-gradient(135deg, #00f0ff, #00a8ff);
  color: #070d18;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-repo-mixer:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.4);
}

.btn-repo-zip {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  font-weight: 600;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-repo-zip:hover {
  background: rgba(168, 85, 247, 0.32);
  color: #fff;
}

.btn-repo-toggle-stems {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-repo-toggle-stems:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-repo-delete {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-repo-delete:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

.repo-stems-dropdown-drawer {
  margin-top: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.repo-stem-download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 13px;
}

.repo-stem-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
}

.btn-stem-file-download {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-stem-file-download:hover {
  background: #00f0ff;
  color: #080e1a;
}

.repo-footer-notice {
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}




