/**
 * FilmProcessor Fileshare - Consolidated Styles
 *
 * Zero-knowledge encrypted file transfer system
 * Includes: Base UI, Pricing Calculator, Payment Flow, Workflow Integration
 *
 * Design System:
 * - No border-radius (sharp corners only)
 * - Pink accent: #b40096
 * - Cyan accent: #00b9c7
 * - Off-white text: #fffedc
 * - Black backgrounds: #000, #0a0a0a, #111
 * - Monospace fonts: Favourite Mono Medium, JetBrains Mono
 */

/* ============================================================================
   FONTS & CSS VARIABLES
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600&display=swap");

/* ============================================================================
   ABC FAVORIT FONTS (Primary per Design Guidelines)
   ========================================================================= */
/* ABC Favorit Regular */
@font-face {
  font-family: "ABC Favorit";
  src:
    url("/assets/fonts/ABCFavorit-Regular-Trial.woff2") format("woff2"),
    url("/assets/fonts/ABCFavorit-Regular-Trial.woff") format("woff"),
    url("/assets/fonts/ABCFavorit-Regular-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* ABC Favorit Bold */
@font-face {
  font-family: "ABC Favorit";
  src: url("/assets/fonts/ABCFavorit-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

/* ABC Favorit Mono Medium */
@font-face {
  font-family: "ABC Favorit Mono";
  src:
    url("/assets/fonts/ABCFavoritMono-Medium-Trial.woff2") format("woff2"),
    url("/assets/fonts/ABCFavoritMono-Medium-Trial.woff") format("woff"),
    url("/assets/fonts/ABCFavoritMono-Medium-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* ABC Favorit Mono Bold */
@font-face {
  font-family: "ABC Favorit Mono";
  src:
    url("/assets/fonts/ABCFavoritMono-Bold-Trial.woff2") format("woff2"),
    url("/assets/fonts/ABCFavoritMono-Bold-Trial.woff") format("woff"),
    url("/assets/fonts/ABCFavoritMono-Bold-Trial.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  --background-black: #000000;
  --heading-cyan: #00b9c7;
  --film-purple: #b40096;
  --title-white: #fffedc;
  --dcp-success: #22c55e;
  --film-gray-900: #111111;
  --film-gray-800: #1a1a1a;
  --film-gray-700: #2a2a2a;
  --field-gray: #333333;
  --film-gray-500: #666666;
  --warning-orange: #f59e0b;
  --error-red: #ef4444;
}

/* ============================================================================
   BASE STYLES
   ========================================================================= */

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

body {
  background: var(--background-black);
  color: var(--title-white);
  font-family: "ABC Favorit", "Inter", sans-serif;
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  padding: 0 150px 2rem 150px;
}

/* ============================================================================
   TYPOGRAPHY
   ========================================================================= */

.page-title {
  font-family: "ABC Favorit", "Inter", sans-serif;
  font-size: 3.7rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--title-white);
  margin-bottom: 1rem;
  text-align: center;
}

.page-subtitle {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--heading-cyan);
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: "ABC Favorit", "Inter", sans-serif;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 400;
  color: var(--heading-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================================
   WORKFLOW STEPS
   ========================================================================= */

.workflow-step {
  display: none;
}

.workflow-step.active {
  display: block;
}

/* ============================================================================
   SECTIONS & CONTAINERS
   ========================================================================= */

.section {
  background: transparent;
  border: 1px solid var(--field-gray);
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.section:hover {
  border-color: var(--heading-cyan);
}

/* Remove section border for step 1 (upload zone) to match Media Player */
#step1 {
  border: none;
  padding: 0;
}

#pricingContainer,
#paymentContainer {
  margin: 32px 0;
}

/* ============================================================================
   FILE UPLOAD ZONE
   ========================================================================= */

.upload-zone {
  border: 1px dashed var(--field-gray);
  border-radius: 0;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  margin-bottom: 1rem;
  background: rgba(17, 17, 17, 0.3);
  transition: all 0.3s ease;
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-content {
  width: 100%;
  position: relative;
  z-index: 1;
}

.upload-zone:hover:not(.has-files) {
  border-color: var(--dcp-success);
  background: rgba(34, 197, 94, 0.05);
}

/* Remove green border when files are uploaded */
.upload-zone.has-files:hover {
  border-color: var(--field-gray);
  background: rgba(17, 17, 17, 0.3);
}

.upload-zone.dragover {
  border-color: var(--film-purple);
  background: rgba(180, 0, 150, 0.1);
  transform: scale(1.01);
}

/* Remove border and padding when video is loaded */
.upload-zone.has-video {
  border: none;
  background: transparent;
  padding: 0;
}

.upload-zone.has-video:hover {
  border: none;
  background: transparent;
}

.upload-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 1rem;
  opacity: 0.6;
  stroke: currentColor;
  color: var(--heading-cyan);
  pointer-events: none;
}

.upload-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--title-white);
  margin-bottom: 0.5rem;
}

.upload-hint {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--film-gray-500);
}

.file-input {
  display: none;
}

/* ============================================================================
   VIDEO PREVIEW (inside upload zone)
   ========================================================================= */

.video-player-section {
  width: 100%;
  height: 400px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.video-wrapper {
  position: relative;
  background: #000;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--field-gray);
}

#previewVideo {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  outline: none;
  object-fit: contain;
  border: none;
}

/* Custom Video Controls */
.video-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  padding: 8px 15px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.video-wrapper:hover .video-controls-overlay {
  opacity: 1;
}

.video-main-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 28px;
}

.video-control-icon {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--film-purple);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  padding: 0;
}

.video-control-icon:hover {
  color: #fffedc;
  transform: scale(1.1);
}

.video-control-icon:active {
  transform: scale(0.95);
}

/* Override general button hover for video controls - no background */
.video-control-icon:hover {
  background: transparent !important;
  color: #fffedc;
  transform: scale(1.1);
}

/* Play/Pause Icon Styles */
.play-icon::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 12px solid currentColor;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 2px;
}

.pause-icon::before {
  content: "";
  display: block;
  width: 10px;
  height: 16px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 3px 16px no-repeat,
    linear-gradient(currentColor, currentColor) 7px 0 / 3px 16px no-repeat;
}

.stop-icon::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor;
}

/* Notification Container (Toast Messages) */
.notification-container {
  position: absolute;
  top: 10px;
  bottom: 65px;
  right: 10px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  overflow: hidden;
}

.notification {
  background: transparent;
  color: var(--title-white);
  padding: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.35rem;
  font-weight: 400;
  border: none;
  letter-spacing: 0.3px;
  opacity: 0.8;
  text-align: right;
}

/* Fullscreen Icon */
.fullscreen-icon::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  position: relative;
  background:
    linear-gradient(currentColor, currentColor) 2px 2px / 6px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 2px 2px / 2px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 8px 2px / 6px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 2px / 2px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 2px 12px / 6px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 2px 8px / 2px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 8px 12px / 6px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 8px / 2px 6px no-repeat;
}

.fullscreen-icon::after {
  display: none;
}

.video-progress-container {
  flex: 1;
  margin: 0 12px;
  position: relative;
  min-height: 16px;
  display: flex;
  align-items: center;
}

.video-progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  border-radius: 0;
}

.video-progress-bar:active {
  cursor: grabbing;
}

.video-progress-fill {
  height: 100%;
  background: rgba(255, 254, 220, 0.6);
  width: 0%;
  transition: width 0.1s ease;
  position: relative;
  border-radius: 0;
}

.video-progress-handle {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #fffedc;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 0;
  cursor: grab;
}

.video-progress-handle:active {
  cursor: grabbing;
}

.video-progress-container:hover .video-progress-handle {
  opacity: 1;
}

.video-time-display {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  min-width: 80px;
  text-align: center;
}

.volume-slider {
  width: 100px;
  height: 2px;
  background: transparent;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* Webkit (Chrome, Safari, Edge) - Track */
.volume-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 0;
}

/* Webkit - Thumb */
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fffedc;
  cursor: pointer;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
  margin-top: -5px;
}

/* Firefox - Track */
.volume-slider::-moz-range-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 0;
}

/* Firefox - Thumb */
.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #fffedc;
  cursor: pointer;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
}

/* IE/Edge - Track */
.volume-slider::-ms-track {
  width: 100%;
  height: 2px;
  background: transparent;
  border: none;
  color: transparent;
}

.volume-slider::-ms-fill-lower {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 0;
}

.volume-slider::-ms-fill-upper {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 0;
}

/* IE/Edge - Thumb */
.volume-slider::-ms-thumb {
  width: 12px;
  height: 12px;
  background: #fffedc;
  cursor: pointer;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
}

/* ============================================================================
   PROGRESS BARS
   ========================================================================= */

.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.progress-column {
  font-family: "JetBrains Mono", monospace;
  display: flex;
  flex-direction: column;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.30rem;
  margin-bottom: 0.15rem;
  font-size: 0.85rem;
  color: var(--title-white);
  letter-spacing: 0;
  line-height: 1;
  font-weight: 400;
}

.progress-title {
  flex: 1;
  margin-right: 1rem;
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 400;
}

.progress-bar {
  width: 100%;
  height: 3px;
  background: #222;
  overflow: hidden;
  margin: 0 0 0.15rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--film-purple), var(--heading-cyan));
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--title-white);
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.progress-details {
  font-size: 0.85rem;
  color: #888;
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  line-height: 1;
}

/* ============================================================================
   FILE LIST
   ========================================================================= */

.file-list {
  margin-top: 1rem;
}

.file-item {
  background: var(--background-black);
  border: 1px solid var(--film-purple);
  border-radius: 0;
  padding: 12px 24px;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.file-item:hover {
  border-color: var(--heading-cyan);
}

.file-item.selected {
  border-color: var(--heading-cyan);
}

.file-info {
  flex: 1;
  margin-right: 12px;
  min-width: 0;
}

.file-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--title-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.file-remove {
  background: transparent;
  border: none;
  color: var(--film-purple);
  padding: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.file-remove:hover {
  color: var(--heading-cyan);
}

/* ============================================================================
   MEDIA PREVIEW (Image, Audio, Video)
   ========================================================================= */

.image-preview-section {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-black);
}

.image-preview-section img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.audio-preview-section {
  width: 100%;
  height: 400px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.audio-wrapper {
  position: relative;
  background: #000;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--field-gray);
}

.audio-waveform {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

/* Audio loading indicator */
.audio-loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.audio-loading-indicator.hide {
  opacity: 0;
  pointer-events: none;
}

.loading-letters {
  fill: var(--film-purple);
}

.loading-corners {
  stroke: var(--film-purple);
  stroke-width: 5;
  fill: none;
  stroke-linejoin: miter;
  stroke-linecap: square;
}

.corner-1 {
  animation: cornerFade 2.1s infinite;
  animation-delay: 0s;
}

.corner-2 {
  animation: cornerFade 2.1s infinite;
  animation-delay: 0.525s;
}

.corner-3 {
  animation: cornerFade 2.1s infinite;
  animation-delay: 1.05s;
}

.corner-4 {
  animation: cornerFade 2.1s infinite;
  animation-delay: 1.575s;
}

@keyframes cornerFade {
  0% {
    opacity: 0.1;
  }
  3% {
    opacity: 0.2;
  }
  6% {
    opacity: 0.4;
  }
  9% {
    opacity: 0.7;
  }
  12.5% {
    opacity: 1;
  }
  16% {
    opacity: 0.7;
  }
  19% {
    opacity: 0.4;
  }
  22% {
    opacity: 0.2;
  }
  25% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.1;
  }
}

/* Audio controls (using video player controls) */
.audio-wrapper:hover .video-controls-overlay {
  opacity: 1;
}

/* ============================================================================
   FORM ELEMENTS
   ========================================================================= */

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--heading-cyan);
  margin-bottom: 0.5rem;
  display: block;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--background-black);
  border: 1px solid var(--heading-cyan);
  border-radius: 0;
  padding: 0.75rem;
  color: var(--title-white);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 400;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--film-purple);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================================================
   PASSWORD & TERMS ROW
   ========================================================================= */

/* Container for password and terms on same line */
.password-terms-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

/* Password container - takes up left side */
.password-container {
  flex: 1;
}

/* Password Input - Purple bordered */
.password-input {
  width: 100%;
  padding: 12px 24px;
  background: var(--background-black);
  border: 1px solid var(--film-purple);
  border-radius: 0;
  color: var(--title-white);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  line-height: 1;
  box-sizing: border-box;
}

.password-input::placeholder {
  color: var(--film-gray-500);
}

.password-input:focus {
  outline: none;
  border-color: var(--heading-cyan);
}

/* ============================================================================
   TERMS & CONDITIONS
   ========================================================================= */

/* Terms Box - Pink bordered box with checkbox on right */
.terms-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 24px;
  background: var(--background-black);
  border: 1px solid var(--film-purple);
  border-radius: 0;
  box-sizing: border-box;
  flex: 1;
}

.terms-label {
  flex: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--title-white);
  cursor: pointer;
  margin: 0;
  margin-right: 12px;
  line-height: 1;
}

.terms-label a {
  color: var(--heading-cyan);
  text-decoration: none;
}

.terms-label a:hover {
  text-decoration: underline;
}

.terms-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--film-purple);
  border-radius: 0;
  background: var(--background-black);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-left: 4px;
}

.terms-checkbox:checked {
  background: var(--film-purple);
}

.terms-checkbox:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--background-black);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: bold;
}

/* ============================================================================
   BUTTONS
   ========================================================================= */

/* Generic button style (matches DCP Studio) */
button {
  background: #000000;
  color: var(--heading-cyan);
  border: 1px solid var(--heading-cyan);
  border-radius: 0;
  padding: 12px 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover:not(:disabled) {
  background: var(--heading-cyan);
  color: #000000;
}

button:disabled {
  background: #000000;
  color: var(--heading-cyan);
  border-color: var(--heading-cyan);
  opacity: 0.5;
  cursor: not-allowed;
}

button.success {
  border-color: var(--heading-cyan);
  color: var(--heading-cyan);
}

button.success:hover:not(:disabled) {
  background: var(--heading-cyan);
  color: #000000;
}

.btn-primary {
  background: var(--film-purple);
  color: var(--title-white);
  border: 1px solid var(--film-purple);
  padding: 0.75rem 2rem;
  border-radius: 0;
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover:not(:disabled) {
  background: var(--heading-cyan);
  border-color: var(--heading-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 185, 199, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--background-black);
  color: var(--heading-cyan);
  border: 1px solid var(--heading-cyan);
  padding: 0.75rem 2rem;
  border-radius: 0;
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: var(--heading-cyan);
  color: var(--background-black);
  box-shadow: 0 4px 12px rgba(0, 185, 199, 0.3);
}

.btn-download {
  background: var(--dcp-success);
  color: var(--background-black);
  border: 1px solid var(--dcp-success);
  padding: 0.75rem 1rem;
  border-radius: 0;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-download:hover {
  background: #16a34a;
  border-color: #16a34a;
  transform: translateY(-1px);
}

.button-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 0;
}

.action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

/* ============================================================================
   PROGRESS INDICATORS (Matching DCP Studio Design)
   ========================================================================= */

.progress-container {
  background: transparent;
  border: 1px solid var(--field-gray);
  padding: 0.75rem 1.5rem 0.35rem 1.5rem;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
}

.progress-container:hover {
  border-color: var(--heading-cyan);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--film-purple), var(--heading-cyan));
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
}

.progress-pulse {
  position: absolute;
  top: 0;
  right: -2px;
  width: 2px;
  height: 100%;
  background: var(--title-white);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.progress-text {
  font-size: 0.9rem;
  color: var(--title-white);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.progress-details {
  font-size: 0.75rem;
  color: #888;
  font-family: "JetBrains Mono", monospace;
  font-weight: 300;
}

/* Legacy progress-label for backwards compatibility */
.progress-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--title-white);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

/* ============================================================================
   SUCCESS SECTION
   ========================================================================= */

.success-section {
  transition: all 0.3s ease;
  padding-top: 1.5rem;
}

.success-section:hover {
  border-color: var(--dcp-success);
}

.success-section .button-group {
  margin-bottom: 0;
}

.link-display {
  background: var(--film-gray-900);
  border: 1px solid var(--dcp-success);
  border-radius: 0;
  padding: 1rem;
  margin-bottom: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--title-white);
  word-break: break-all;
}

.info-box {
  background: rgba(0, 185, 199, 0.05);
  border: 1px solid var(--heading-cyan);
  border-left: 3px solid var(--heading-cyan);
  padding: 1rem;
  margin: 1rem 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--title-white);
  line-height: 1.6;
}

.info-box strong {
  color: var(--heading-cyan);
  font-weight: 500;
}

/* Upload Console - styled exactly like transcoder console */
.upload-console {
  background: var(--background-black);
  border: 1px solid var(--field-gray);
  padding: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--off-white);
  line-height: 1.6;
  margin-top: 0;
}

.console-line {
  margin-bottom: 0.1rem;
  color: var(--off-white);
}

.console-timestamp {
  margin-right: 0.5rem;
}

.console-timestamp-encrypt {
  color: var(--heading-cyan);
}

.console-timestamp-upload {
  color: var(--dcp-success);
}

.console-timestamp-info {
  color: var(--warning-orange);
}

/* Copy Link Button - stroke only, cyan fill on hover (matches New Upload) */
.btn-copy-link {
  background: transparent;
  color: var(--heading-cyan);
  border: 1px solid var(--heading-cyan);
  padding: 0.75rem 1rem;
  border-radius: 0;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-copy-link:hover {
  background: var(--heading-cyan);
  color: var(--background-black);
  transform: translateY(-1px);
}

/* New Upload Button - stroke only, cyan fill on hover */
.btn-new-upload {
  background: transparent;
  color: var(--heading-cyan);
  border: 1px solid var(--heading-cyan);
  padding: 0.75rem 1rem;
  border-radius: 0;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-new-upload:hover {
  background: var(--heading-cyan);
  color: var(--background-black);
  transform: translateY(-1px);
}

/* ============================================================================
   MODAL OVERLAY
   ========================================================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.modal-content {
  background: var(--background-black);
  border: 2px solid var(--field-gray);
  border-radius: 0;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
}

.modal-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--heading-cyan);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.modal-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--title-white);
  margin-bottom: 1.5rem;
}

.modal-error .modal-content {
  border-color: var(--error-red);
}

.modal-error .modal-title {
  color: var(--error-red);
}

/* ============================================================================
   PRICING CALCULATOR
   ========================================================================= */

.pricing-calculator {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  color: var(--title-white);
}

/* Transfer Summary */
.transfer-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--field-gray);
}

.transfer-summary.has-filename {
  grid-template-columns: auto 2fr auto auto;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-item .label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.summary-item .value {
  font-size: 0.8rem;
  color: var(--title-white);
  font-weight: 300;
}

.summary-item.summary-filename .value {
  word-break: break-word;
  line-height: 1.4;
}

.summary-item.summary-price .value {
  color: var(--heading-cyan);
}

/* File List Container */
.file-list-container {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--field-gray);
}

.file-row {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.file-row:last-child {
  border-bottom: none;
}

.file-name-cell {
  font-size: 0.8rem;
  color: var(--title-white);
  font-weight: 300;
  display: block;
  word-break: break-word;
  line-height: 1.4;
}

/* Expiry Options */
.expiry-slider-container {
  margin-bottom: 1rem;
}

.expiry-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expiry-slider-value {
  color: var(--title-white);
  font-weight: 400;
}

.expiry-options {
  display: flex;
  gap: 0.5rem;
}

.expiry-option {
  flex: 1;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #666;
  font-size: 0.7rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.expiry-option:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--title-white);
}

.expiry-option.active {
  border-color: var(--heading-cyan);
  color: var(--heading-cyan);
}

/* Removed old pricing display - now using compact summary */

/* Pricing Breakdown */
.pricing-breakdown {
  background: transparent;
  border: 1px solid var(--field-gray);
  margin-bottom: 1rem;
}

.pricing-breakdown summary {
  padding: 0.75rem;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--heading-cyan);
  user-select: none;
  font-family: "JetBrains Mono", monospace;
}

.pricing-breakdown summary:hover {
  background: rgba(0, 185, 199, 0.05);
}

.pricing-breakdown[open] summary {
  border-bottom: 1px solid var(--field-gray);
}

.breakdown-content {
  padding: 0.75rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.85rem;
  color: #999;
}

.breakdown-row.total {
  border-top: 1px solid #333;
  margin-top: 8px;
  padding-top: 16px;
  color: #fffedc;
  font-weight: 500;
}

.breakdown-row.multiplier {
  color: #b40096;
  font-weight: 600;
  font-size: 0.95rem;
}

.breakdown-note {
  margin-top: 16px;
  padding: 12px;
  background: rgba(0, 185, 199, 0.05);
  border-left: 3px solid #00b9c7;
  font-size: 0.75rem;
  color: #999;
  line-height: 1.5;
}

/* Tier Features */
/* Removed tier-features - no longer needed in compact design */

/* Pricing Calculator Empty State */
.pricing-calculator-empty {
  text-align: center;
  padding: 48px 24px;
  color: #666;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-message {
  font-size: 1.1rem;
  color: #999;
  margin-bottom: 16px;
}

.empty-hint {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.8;
}

.empty-hint strong {
  color: #00b9c7;
}

/* Pricing Calculator Error State */
.pricing-calculator-error {
  text-align: center;
  padding: 48px 24px;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #ef4444;
}

.error-title {
  font-size: 1.1rem;
  color: #ef4444;
  margin-bottom: 16px;
  font-weight: 500;
}

.error-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.error-list li {
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #fffedc;
}

/* ============================================================================
   PAYMENT UI
   ========================================================================= */

/* Common Payment Containers */
.payment-required,
.payment-polling,
.payment-success,
.payment-loading,
.payment-error {
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  color: var(--title-white);
  max-width: 100%;
  margin: 0;
}

/* Payment Required */
.payment-header {
  margin-bottom: 1rem;
}

.payment-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.payment-header h2 {
  font-size: 1.2rem;
  color: var(--film-purple);
  margin: 0;
  font-weight: 400;
}

.payment-summary {
  background: transparent;
  border: 1px solid var(--field-gray);
  padding: 1rem;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: #999;
}

.summary-row.total {
  border-top: 1px solid var(--film-purple);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  font-size: 1.1rem;
  color: var(--title-white);
  font-weight: 400;
}

.summary-row.total span:last-child {
  color: var(--film-purple);
}

/* Payment Actions */
.payment-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Payment actions use the same .btn-primary and .btn-secondary from above */

/* Payment Info */
.payment-info {
  background: rgba(0, 185, 199, 0.05);
  border-left: 3px solid var(--heading-cyan);
  padding: 0.75rem;
  text-align: left;
}

.payment-info p {
  margin: 0.5rem 0;
  font-size: 0.75rem;
  color: #999;
}

/* Payment Polling */
.polling-header {
  margin-bottom: 1rem;
}

.polling-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--field-gray);
  border-top: 2px solid var(--film-purple);
  border-radius: 50%; /* Exception: spinners need border-radius */
  margin: 0 auto 0.75rem;
  animation: spin 1s linear infinite;
}

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

.polling-header h2 {
  font-size: 1.2rem;
  color: var(--film-purple);
  margin: 0;
  font-weight: 400;
}

.polling-message {
  margin-bottom: 1rem;
}

.polling-message p {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: #999;
}

.polling-status {
  background: transparent;
  border: 1px solid var(--field-gray);
  padding: 0.75rem;
  font-size: 0.75rem;
  color: var(--heading-cyan);
  font-family: "JetBrains Mono", monospace;
}

/* Payment Success */
.success-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 185, 199, 0.1);
  border: 2px solid var(--heading-cyan);
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--heading-cyan);
}

.payment-success h2 {
  font-size: 1.2rem;
  color: var(--heading-cyan);
  margin: 0 0 0.75rem;
  font-weight: 400;
}

.payment-success p {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: #999;
}

/* Payment Loading */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--field-gray);
  border-top: 2px solid var(--film-purple);
  border-radius: 50%; /* Exception: spinners need border-radius */
  margin: 0 auto 0.75rem;
  animation: spin 0.8s linear infinite;
}

.payment-loading p {
  font-size: 0.85rem;
  color: #999;
}

/* Payment Error - uses .error-icon from pricing calculator */
.payment-error h2 {
  font-size: 1.2rem;
  color: var(--error-red);
  margin: 0 0 0.75rem;
  font-weight: 400;
}

.payment-error p {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: #999;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ========================================================================= */

@media (max-width: 768px) {
  .container {
    padding: 0 2rem 2rem 2rem;
  }

  .step-indicator {
    flex-wrap: wrap;
  }

  .step-item {
    font-size: 0.75rem;
  }

  .button-group,
  .action-buttons {
    flex-direction: column;
  }

  .action-buttons button {
    width: 100%;
  }

  .upload-zone:not(.has-video) {
    padding: 2rem 1rem;
  }

  /* Progress Grid Responsive - Stack vertically on mobile */
  .progress-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .progress-header {
    min-height: auto;
  }

  /* Pricing Calculator Responsive */
  .transfer-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .expiry-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-calculator {
    padding: 16px;
    margin: 16px 0;
  }

  .price-amount {
    font-size: 2.5rem;
  }

  /* Payment UI Responsive */
  .payment-required,
  .payment-polling,
  .payment-success,
  .payment-loading,
  .payment-error {
    padding: 32px 24px;
  }

  .payment-actions {
    flex-direction: column;
  }

  .payment-actions .btn-primary,
  .payment-actions .btn-secondary {
    width: 100%;
    min-width: 0;
  }

  .payment-header h2 {
    font-size: 1.5rem;
  }

  .summary-row.total {
    font-size: 1.1rem;
  }
}

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

  .payment-icon {
    font-size: 3rem;
  }

  .polling-spinner,
  .loading-spinner {
    width: 48px;
    height: 48px;
  }
}
