:root {
  --bg-color: #0d0d0d;
  --container-bg: #1a1a1a;
  --gold-primary: #FFD700;
  --gold-gradient: linear-gradient(135deg, #F9D423 0%, #FF4E50 100%);
  --gold-gradient-text: linear-gradient(135deg, #FDEB71 0%, #F8D800 100%);
  --emerald: #50C878;
  --ruby: #E0115F;
  --sapphire: #0F52BA;
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --border-color: #333;
}

body {
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 20px;
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0;
  min-height: 100vh;
  background-image: radial-gradient(circle at 50% 0%, rgba(218, 165, 32, 0.08) 0%, transparent 50%);
}

ul,
ol {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.container {
  background-color: var(--container-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 215, 0, 0.1);
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  box-sizing: border-box;
}

.container::-webkit-scrollbar {
  width: 8px;
}

.container::-webkit-scrollbar-track {
  background: #111;
  border-radius: 4px;
}

.container::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}

.header-title {
  text-align: center;
  margin-top: 0;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.header-title .icon {
  font-size: 2.5rem;
  -webkit-text-fill-color: initial;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-weight: 300;
  font-size: 1.1rem;
}

.input-group {
  margin-bottom: 20px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: #0A0A0A;
  color: #fff;
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
  transition: all 0.3s ease;
  outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

input::placeholder {
  color: #666;
}

button {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: var(--gold-gradient-text);
  color: #111;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}

.message {
  text-align: center;
  margin-top: 15px;
  min-height: 20px;
  color: var(--text-muted);
  font-weight: 500;
}

#progress-bar-container {
  width: 100%;
  height: 12px;
  background-color: #222;
  border-radius: 10px;
  margin: 20px 0 10px 0;
  overflow: hidden;
  display: none;
  border: 1px solid #333;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: var(--emerald);
  border-radius: 10px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(80, 200, 120, 0.5);
}

.status-message {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 12px;
  background-color: #111;
  border-left: 4px solid var(--sapphire);
  min-height: 50px;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.error-message {
  color: #ffb3b3;
  border-left-color: var(--ruby);
  background-color: rgba(224, 17, 95, 0.05);
}

/* Video List Styles */
.downloads-header {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  user-select: none;
}

#video-list {
  background: #111;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #222;
}

#video-list>ul {
  padding-left: 0;
  margin-top: 0;
}

#video-list li {
  cursor: default;
  user-select: none;
  margin: 8px 0;
  line-height: 1.5em;
}

#video-list li .folder {
  cursor: pointer;
  font-weight: 600;
  color: var(--gold-primary);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #1a1a1a;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid #2a2a2a;
  width: 100%;
  box-sizing: border-box;
}

#video-list li .folder:hover {
  background: #222;
  border-color: #444;
}

#video-list a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95em;
  border: 1px solid transparent;
}

#video-list a.link-cut {
  background: rgba(116, 185, 255, 0.1);
  color: #74b9ff;
  border-color: rgba(116, 185, 255, 0.2);
}

#video-list a.link-cut:hover {
  background: rgba(116, 185, 255, 0.2);
  color: #fff;
}

#video-list a.link-original {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold-primary);
  border-color: rgba(255, 215, 0, 0.2);
}

#video-list a.link-original:hover {
  background: rgba(255, 215, 0, 0.2);
  color: #fff;
}

#video-list a.link-audio {
  background: rgba(80, 200, 120, 0.1);
  color: var(--emerald);
  border-color: rgba(80, 200, 120, 0.2);
}

#video-list a.link-audio:hover {
  background: rgba(80, 200, 120, 0.2);
  color: #fff;
}

#video-list a.link-subtitles {
  background: rgba(224, 17, 95, 0.1);
  color: #ff8fa3;
  border-color: rgba(224, 17, 95, 0.2);
}

#video-list a.link-subtitles:hover {
  background: rgba(224, 17, 95, 0.2);
  color: #fff;
}

#video-list ul ul {
  padding-left: 20px;
  margin-top: 12px;
  border-left: 1px solid #333;
  margin-left: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#video-list ul ul li {
  margin: 0;
}

.hidden {
  display: none !important;
}

.base-video-title {
  font-weight: 700;
  color: #f1f2f6;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.base-video-title:before {
  content: '🎬';
}

/* Brand Selector */
.brand-section-title {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.brand-selector {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 10px 5px;
  margin-bottom: 25px;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.brand-selector::-webkit-scrollbar {
  display: none;
  /* WebKit */
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  min-width: 72px;
  transition: transform 0.2s ease;
  position: relative;
}

.brand-item:hover {
  transform: translateY(-2px);
}

.brand-item.selected .brand-avatar {
  box-shadow: 0 0 0 3px var(--container-bg), 0 0 0 6px var(--gold-primary);
}

.brand-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2a 0%, #111 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: #fff;
  font-weight: bold;
  border: 1px solid #444;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.brand-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
  transition: color 0.3s ease;
  text-transform: capitalize;
}

.brand-item.selected .brand-name {
  color: var(--gold-primary);
  font-weight: 600;
}

.li-cut-item {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  border-left: 3px solid var(--gold-primary);
  padding-left: 10px;
  box-sizing: border-box;
}

.cut-meta {
  user-select: text;
  margin: 0;
  flex-grow: 1;
  font-size: 0.85em;
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cut-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.cut-meta-row>div {
  flex-grow: 1;
}

.cut-title,
.cut-hashtags {
  user-select: text;
}

.cut-meta .cut-title {
  color: #fff;
}

.cut-meta .cut-hashtags {
  color: var(--emerald);
  font-weight: 500;
}

.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 1.1em;
  transition: all 0.2s;
  box-shadow: none;
  width: auto;
  border-radius: 6px;
}

.copy-btn:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== QUEUE SECTION ===== */
#queue-section {
  margin-top: 36px;
}

.queue-header {
  margin-bottom: 16px;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  user-select: none;
}

.queue-header .queue-count {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 20px;
  padding: 3px 12px;
}

#queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-empty {
  text-align: center;
  color: #555;
  padding: 20px;
  font-size: 0.95em;
}

.queue-card {
  background: #111;
  border: 1px solid #252525;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s;
}

.queue-card:hover {
  border-color: rgba(255, 215, 0, 0.2);
}

.queue-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.queue-pulse {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-primary);
  margin-top: 5px;
  box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

.queue-title {
  font-size: 0.92em;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.4;
  flex-grow: 1;
}

.queue-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.queue-steps::-webkit-scrollbar {
  display: none;
}

.queue-step {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.queue-step-pill {
  font-size: 0.62em;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 20px;
  letter-spacing: 0.1px;
  white-space: nowrap;
  transition: all 0.3s;
}

.queue-step-pill.done {
  background: rgba(80, 200, 120, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(80, 200, 120, 0.3);
}

.queue-step-pill.active {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 215, 0, 0.4);
  animation: shimmer 1.5s infinite alternate;
}

@keyframes shimmer {
  from {
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.2);
  }

  to {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
}

.queue-step-pill.pending {
  background: rgba(255, 255, 255, 0.04);
  color: #444;
  border: 1px solid #2a2a2a;
}

.queue-step-arrow {
  color: #333;
  font-size: 0.75em;
  padding: 0 4px;
}

.queue-updated {
  font-size: 0.75em;
  color: #444;
  text-align: right;
  margin-top: 2px;
}

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

.queue-pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 10px;
  border: none;
  background: var(--gold-gradient-text);
  color: #111;
  font-size: 0.85em;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
  width: auto;
  font-family: 'Outfit', sans-serif;
  flex-shrink: 0;
}

.queue-pay-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.45);
  filter: brightness(1.05);
}

.queue-pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.queue-access-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(80, 200, 120, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(80, 200, 120, 0.3);
  font-size: 0.8em;
  font-weight: 600;
  flex-shrink: 0;
}

/* Worker Status Badge */
.worker-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.worker-status-badge.online {
  background: rgba(80, 200, 120, 0.1);
  border-color: rgba(80, 200, 120, 0.2);
  color: var(--emerald);
}

.worker-status-badge.offline {
  background: rgba(224, 17, 95, 0.1);
  border-color: rgba(224, 17, 95, 0.2);
  color: var(--ruby);
}

.worker-status-badge.online.working {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.2);
  color: var(--gold-primary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.worker-status-badge.online .status-dot {
  box-shadow: 0 0 8px currentColor;
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ===== MERGED SHORT CUT ROW ===== */
.merged-cut-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.merged-cut-downloads {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-shrink: 0;
}

.merged-cut-dl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.merged-cut-dl-item .dl-label {
  font-size: 0.52em;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.merged-cut-downloads a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.merged-cut-downloads a.dl-horizontal {
  background: rgba(116, 185, 255, 0.1);
  color: #74b9ff;
  border-color: rgba(116, 185, 255, 0.2);
}

.merged-cut-downloads a.dl-horizontal:hover {
  background: rgba(116, 185, 255, 0.25);
  color: #fff;
}

.merged-cut-downloads a.dl-vertical {
  background: rgba(162, 130, 255, 0.1);
  color: #b794f6;
  border-color: rgba(162, 130, 255, 0.2);
}

.merged-cut-downloads a.dl-vertical:hover {
  background: rgba(162, 130, 255, 0.25);
  color: #fff;
}

.format-icon {
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

.format-icon.horizontal {
  width: 22px;
  height: 14px;
}

.format-icon.vertical {
  width: 14px;
  height: 22px;
}

/* ===== PRICING OPTIONS PANEL ===== */
.pricing-panel {
  display: none;
  margin: 16px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  animation: panelSlideIn 0.35s ease;
}

.pricing-panel.visible {
  display: block;
}

@keyframes panelSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TRIM PANEL ===== */
.trim-panel {
  display: none;
  margin: 0 0 16px 0;
  padding: 20px;
  background: rgba(255, 215, 0, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 14px;
  animation: panelSlideIn 0.35s ease;
}

.trim-panel.visible {
  display: block;
}

.trim-panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trim-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.trim-duration-badge {
  font-size: 0.82em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trim-duration-badge strong {
  color: var(--text-main);
  font-size: 0.9em;
}

.trim-time-display {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88em;
  font-weight: 600;
  color: var(--text-main);
}

.trim-time-chip {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  padding: 5px 12px;
  min-width: 72px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--gold-primary);
}

.trim-slider-wrapper {
  position: relative;
  height: 44px;
  margin: 10px 0;
  user-select: none;
}

.trim-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 8px;
  transform: translateY(-50%);
  background: #222;
  border-radius: 4px;
  border: 1px solid #333;
}

.trim-range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--gold-gradient-text);
  border-radius: 4px;
  pointer-events: none;
}

.trim-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--gold-primary);
  border-radius: 50%;
  cursor: ew-resize;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
  transition: box-shadow 0.2s;
  z-index: 2;
}

.trim-handle:hover, .trim-handle.dragging {
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.25), 0 2px 8px rgba(255, 215, 0, 0.5);
}

.trim-handle.left-handle {
  margin-left: -11px;
}

.trim-handle.right-handle {
  margin-left: -11px;
}

.trim-duration-result {
  margin-top: 10px;
  font-size: 0.8em;
  color: var(--text-muted);
  text-align: center;
}

.trim-duration-result strong {
  color: var(--emerald);
}

.trim-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88em;
  margin-top: 4px;
}

.trim-loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #333;
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pricing-panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-option:last-child {
  border-bottom: none;
}

.pricing-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.pricing-option-icon {
  font-size: 1.2em;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.pricing-option-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pricing-option-name {
  font-size: 0.9em;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pricing-option-desc {
  font-size: 0.72em;
  color: var(--text-muted);
}

.pricing-option-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pricing-option-price {
  font-size: 0.82em;
  font-weight: 700;
  min-width: 55px;
  text-align: right;
}

.pricing-option-price.positive {
  color: var(--emerald);
}

.pricing-option-price.negative {
  color: #ff6b6b;
}

.pricing-option-price.neutral {
  color: var(--text-muted);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #333;
  border-radius: 26px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #777;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: rgba(255, 215, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background-color: var(--gold-primary);
}

/* Select dropdown */
.pricing-select {
  background: #222;
  color: var(--text-main);
  border: 1px solid #444;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82em;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  min-width: 120px;
}

.pricing-select:focus {
  border-color: var(--gold-primary);
}

/* Total price bar */
.pricing-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
}

.pricing-total-label {
  font-size: 0.95em;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-total-value {
  font-size: 1.4em;
  font-weight: 800;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-total-original {
  font-size: 0.8em;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 8px;
}

/* ===== MOBILE COMPACT ===== */
@media (max-width: 600px) {
  body {
    padding-top: 0;
    padding-bottom: 0;
  }

  .container {
    padding: 16px 12px;
    border-radius: 0;
    max-width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .header-title {
    font-size: 1.6rem;
    gap: 8px;
    margin-bottom: 4px;
  }

  .header-title .icon {
    font-size: 1.6rem;
  }

  .subtitle {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  .input-group {
    margin-bottom: 10px;
  }

  input[type="text"] {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  button {
    padding: 12px;
    font-size: 1rem;
  }

  .status-message {
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 0.85em;
    min-height: 36px;
  }

  #progress-bar-container {
    margin: 12px 0 6px 0;
  }

  .downloads-header {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    padding-bottom: 6px;
  }

  #video-list {
    padding: 10px 8px;
  }

  #video-list a {
    padding: 6px 10px;
    font-size: 0.82em;
  }

  #video-list li .folder {
    padding: 6px 10px;
    font-size: 0.9em;
  }

  #video-list ul ul {
    padding-left: 10px;
    margin-left: 8px;
    gap: 6px;
    margin-top: 8px;
  }

  .li-cut-item {
    gap: 8px;
    padding-left: 6px;
  }

  .cut-meta {
    padding: 8px 10px;
    font-size: 0.8em;
    gap: 4px;
  }

  .merged-cut-row {
    gap: 8px;
  }

  .merged-cut-downloads a {
    padding: 5px 8px;
    font-size: 0.7em;
  }

  #queue-section {
    margin-top: 20px;
  }

  .queue-header {
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  .queue-card {
    padding: 12px 14px;
    gap: 8px;
  }

  .queue-step-pill {
    font-size: 0.62em;
    padding: 3px 6px;
  }

  .queue-title {
    font-size: 0.82em;
  }

  .worker-status-badge {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .pricing-panel {
    margin: 10px 0;
    padding: 14px 10px;
  }

  .pricing-panel-title {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .pricing-option {
    padding: 8px 0;
  }

  .pricing-option-icon {
    font-size: 1em;
    width: 22px;
  }

  .pricing-option-name {
    font-size: 0.82em;
  }

  .pricing-option-desc {
    font-size: 0.65em;
  }

  .pricing-option-price {
    font-size: 0.75em;
    min-width: 45px;
  }

  .pricing-select {
    min-width: 100px;
    font-size: 0.78em;
    padding: 5px 8px;
  }

  .toggle-switch {
    width: 40px;
    height: 22px;
  }

  .toggle-slider::before {
    width: 16px;
    height: 16px;
  }

  .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
  }

  .pricing-total {
    margin-top: 12px;
    padding: 10px 14px;
  }

  .pricing-total-value {
    font-size: 1.2em;
  }
}

/* ================= TOP NAVBAR ================= */
.top-navbar {
  width: 100%;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.top-navbar-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-navbar .logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.top-navbar .logo span {
  -webkit-text-fill-color: initial;
}

.top-navbar .nav-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 15px;
  align-items: center;
}

.top-navbar .nav-btn {
  width: auto !important;
  padding: 10px 20px !important;
  font-size: 0.95rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.top-navbar .sponsor-btn {
  background: transparent !important;
  border: 1.5px solid var(--gold-primary) !important;
  color: var(--gold-primary) !important;
}

.top-navbar .sponsor-btn:hover {
  background: var(--gold-gradient) !important;
  color: #111 !important;
  border-color: transparent !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2) !important;
}

.top-navbar .pricing-btn {
  background: transparent !important;
  border: 1.5px solid transparent !important;
  color: var(--text-main) !important;
}

.top-navbar .pricing-btn:hover {
  color: var(--gold-primary) !important;
  transform: translateY(-2px);
}

.top-navbar .login-btn {
  background: var(--gold-gradient-text) !important;
  color: #111 !important;
  border: 1.5px solid transparent !important;
}

.top-navbar .login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3) !important;
}

.top-navbar .login-btn.logged-in {
  background: #222 !important;
  color: var(--text-main) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
}

.top-navbar .login-btn.logged-in:hover {
  background: var(--ruby) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(224, 17, 95, 0.3) !important;
}

/* Sponsor Grid for Become a Sponsor Modal */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
  text-align: left;
}

@media (max-width: 600px) {
  .top-navbar {
    padding: 10px 0;
  }
  .top-navbar-container {
    width: 95%;
  }
  .top-navbar .logo {
    font-size: 1.2rem;
  }
  .top-navbar .nav-buttons {
    gap: 8px;
  }
  .top-navbar .nav-btn {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }
  .sponsor-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ================= CURRENCY MODAL ================= */
.currency-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.currency-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.currency-modal-card {
  background: #111;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.05);
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 580px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}

.currency-modal-overlay.active .currency-modal-card {
  transform: scale(1);
}

.currency-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
  z-index: 10;
  width: 50px;
  background: var(--gold-gradient-text) !important;
  color: #111 !important;
  border: 1.5px solid transparent !important;
}

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

.currency-modal-title {
  padding-right: 36px;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.currency-modal-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.currency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 25px;
}

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

.currency-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.currency-tile:hover {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.currency-tile.selected {
  background: rgba(255, 215, 0, 0.08);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.currency-flag {
  font-size: 2.2rem;
}

.currency-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.1rem;
}

.currency-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.currency-price-value {
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.currency-pay-cta {
  width: 100%;
  background: var(--gold-gradient);
  color: #000;
  font-weight: 800;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.currency-pay-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.currency-pay-cta:disabled {
  background: #333;
  color: #777;
  cursor: not-allowed;
  box-shadow: none;
}

.solana-wallet-status {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 20px;
}