@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Gradient Colors */
  --pink-light: #F0ABFC;
  --fuchsia: #E879F9;
  --orchid: #D946EF;
  --lavender: #B78BF5;
  --violet: #A78BFA;
  --indigo: #818CF8;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #F0ABFC 0%, #E879F9 28%, #B78BF5 58%, #818CF8 100%);
  --gradient-button: linear-gradient(135deg, #D946EF 0%, #818CF8 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(217, 70, 239, 0.15) 0%, rgba(129, 140, 248, 0.15) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(240, 171, 252, 0.4) 0%, rgba(129, 140, 248, 0.4) 100%);

  /* Semantic */
  --success: #34D399;
  --warning: #FBBF24;
  --error: #F87171;
  --info: #818CF8;

  /* App Name - easy to change */
  --app-name: "Cutizy";
}

/* Dark theme (default) */
[data-theme="dark"] {
  --bg: #09090F;
  --surface: #12121A;
  --surface-hover: #1A1A26;
  --border: #2A2A3A;
  --text-primary: #F4F4F5;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --glass-bg: rgba(18, 18, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Light theme */
[data-theme="light"] {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-hover: #F4F4F5;
  --border: #E4E4E7;
  --text-primary: #18181B;
  --text-secondary: #52525B;
  --text-muted: #A1A1AA;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
}

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

img,
video,
iframe {
  max-width: 100%;
}

html,
body {
  scroll-behavior: smooth;
  max-width: 100vw;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Make main content area grow to push footer down */
main {
  flex: 1 0 auto;
}

/* Animated gradient background */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: float 25s ease-in-out infinite;
}

.gradient-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--pink-light);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--indigo);
  top: 100px;
  right: -150px;
  animation-delay: -5s;
}

.gradient-orb-3 {
  width: 400px;
  height: 400px;
  background: var(--orchid);
  bottom: -100px;
  left: 30%;
  animation-delay: -10s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(20px, 10px) scale(1.02);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glass Effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--glass-border);
}

@supports not (backdrop-filter: blur(20px)) {
  .navbar.scrolled {
    background: var(--surface);
  }
}

@media (max-width: 767px) {
  .navbar {
    background: rgba(9, 9, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--glass-border);
  }

  [data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
  }
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-icon img {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--orchid);
  transform: scale(1.05);
}

/* Donate Button */
.btn-donate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem !important;
  background: transparent !important;
  border: 1px solid #ec4899 !important;
  border-radius: 8px;
  color: #ec4899;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-donate:hover {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%) !important;
  border-color: transparent !important;
  color: white;
  transform: translateY(-1px);
}

.btn-donate svg {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .btn-donate {
    padding: 0.5rem !important;
    border-radius: 100%;
  }

  .btn-donate .donate-text {
    display: none;
  }
}

/* Mobile donate link */
.mobile-donate-link {
  color: #ec4899 !important;
}

.mobile-donate-link svg {
  stroke: #ec4899;
}

/* Footer donate */
.footer-donate {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ec4899 !important;
}

.footer-donate:hover {
  color: #f472b6 !important;
}

.footer-donate svg {
  stroke: currentColor;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gradient-subtle);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--orchid);
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orchid);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* URL Input */
.url-form {
  width: 100%;
  max-width: 700px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.url-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .url-input-wrapper {
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.url-input-wrapper:focus-within {
  border-color: var(--orchid);
  box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.1), 0 4px 24px rgba(0, 0, 0, 0.15);
}

.url-input-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.url-input {
  flex: 1;
  padding: 1rem 0.5rem;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}

.url-input::placeholder {
  color: var(--text-muted);
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Fetch button - pill style */
#fetchBtn,
#fetchBtnMobile {
  padding: 1rem 2rem;
  border-radius: 100px;
  background: var(--bg);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: none;
  border: none;
  white-space: nowrap;
}

[data-theme="light"] #fetchBtn,
[data-theme="light"] #fetchBtnMobile {
  background: #1a1a2e;
  color: white;
}

#fetchBtn:hover,
#fetchBtnMobile:hover {
  transform: none;
  opacity: 0.9;
  box-shadow: none;
}

/* Mobile button - hidden by default */
.url-btn-mobile {
  display: none;
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}

.btn-primary {
  background: var(--gradient-button);
  color: white;
  box-shadow: 0 4px 20px rgba(217, 70, 239, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(217, 70, 239, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Video Panel */
.video-panel {
  display: none;
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  animation: fadeInUp 0.4s ease;
}

.video-panel.active {
  display: block;
}

.video-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.video-thumbnail-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-thumbnail-wrapper:hover .video-thumbnail {
  transform: scale(1.05);
}

.thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: all 0.3s;
}

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

.thumbnail-overlay-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-button);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(217, 70, 239, 0.4);
  transition: transform 0.2s;
}

.video-thumbnail-wrapper:hover .thumbnail-overlay-icon {
  transform: scale(1.1);
}

.thumbnail-overlay-text {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.video-preview {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-details h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Time Controls */
.time-controls {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.time-controls h3 {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.range-slider-container {
  padding: 0.5rem;
  margin-bottom: 1.5rem;
}

.range-slider {
  position: relative;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  cursor: pointer;
}

.range-track {
  position: absolute;
  height: 100%;
  background: var(--gradient-button);
  border-radius: 4px;
}

.range-handle {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: white;
  border: 2px solid var(--orchid);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.range-handle:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 3px 10px rgba(217, 70, 239, 0.4);
}


.range-handle:active {
  cursor: grabbing;
}

.time-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.time-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.time-input-group label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.time-input {
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: 'SF Mono', 'Consolas', monospace;
  text-align: center;
  transition: all 0.2s;
}

.time-input:focus {
  outline: none;
  border-color: var(--orchid);
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.15);
}

.time-separator {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.duration-display {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.duration-display strong {
  color: var(--orchid);
  font-weight: 600;
}

/* Options */
.options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.option-group {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
}

.option-group h3 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.segmented-control {
  display: flex;
  gap: 0.5rem;
}

.segment-btn {
  flex: 1;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.segment-btn:hover {
  border-color: var(--orchid);
  color: var(--text-primary);
}

.segment-btn.active {
  background: var(--gradient-button);
  border-color: transparent;
  color: white;
}

/* Custom Select Dropdown */
.custom-select {
  position: relative;
  z-index: 10;
}

.custom-select.open {
  z-index: 100;
}

.select-trigger {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
}

.select-trigger:hover {
  border-color: var(--orchid);
}

.custom-select.open .select-trigger {
  border-color: var(--orchid);
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.15);
}

.select-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orchid);
}

.select-value {
  flex: 1;
  text-align: left;
}

.select-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
}

.select-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  max-height: 200px;
  overflow-y: auto;
}

.custom-select.open .select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.select-option:hover {
  background: var(--surface-hover);
}

.select-option.active {
  background: var(--gradient-subtle);
}

.select-option.active .option-text {
  color: var(--orchid);
  font-weight: 600;
}

.option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.select-option.active .option-icon {
  color: var(--orchid);
}

.option-text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.option-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  background: var(--surface-hover);
  border-radius: 4px;
}

.select-option.active .option-desc {
  background: rgba(217, 70, 239, 0.1);
  color: var(--orchid);
}

/* Bottomsheet Overlay */
.bottomsheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.bottomsheet-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Bottomsheet */
.bottomsheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 80vh;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.bottomsheet-overlay.open+.bottomsheet,
.bottomsheet.open {
  transform: translateY(0);
}

.bottomsheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto;
  flex-shrink: 0;
}

.bottomsheet-header {
  padding: 0 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.bottomsheet-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.bottomsheet-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--surface-hover);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottomsheet-content {
  padding: 1rem 1.5rem 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  max-width: 100%;
  box-sizing: border-box;
}

.bottomsheet-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bottomsheet-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  border: 1px solid transparent;
}

.bottomsheet-option:hover {
  background: var(--surface-hover);
}

.bottomsheet-option.active {
  background: var(--gradient-subtle);
  border-color: var(--orchid);
}

.bottomsheet-option .option-icon {
  color: var(--text-secondary);
}

.bottomsheet-option.active .option-icon {
  color: var(--orchid);
}

.bottomsheet-option .option-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.bottomsheet-option.active .option-text {
  color: var(--orchid);
}

.bottomsheet-option .option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  background: var(--surface-hover);
  border-radius: 6px;
}

.bottomsheet-option.active .option-desc {
  background: rgba(217, 70, 239, 0.1);
  color: var(--orchid);
}

.bottomsheet-option.danger {
  color: var(--error);
}

.bottomsheet-option.danger:hover {
  background: rgba(248, 113, 113, 0.1);
}

.bottomsheet-option.danger .option-icon {
  color: var(--error);
}

/* Mobile: convert custom-select to bottomsheet trigger */
@media (max-width: 767px) {
  .custom-select .select-dropdown {
    display: none !important;
  }

  .custom-select.open .select-dropdown {
    display: none !important;
  }

  .custom-select {
    max-width: 100%;
  }

  .select-trigger {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
    gap: 0.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .select-icon svg {
    width: 16px;
    height: 16px;
  }

  .select-arrow svg {
    width: 14px;
    height: 14px;
  }
}

/* Action Row */
.action-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-create {
  padding: 1.25rem 4rem;
  font-size: 1.125rem;
}

/* Progress */
.progress-container {
  display: none;
  margin-top: 2rem;
}

.progress-container.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-button);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.progress-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Download Button */
.download-container {
  display: none;
  margin-top: 2rem;
  text-align: center;
}

.download-container.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.btn-download {
  background: var(--success);
  color: white;
  padding: 1.25rem 3rem;
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.3);
}

.btn-download:hover {
  background: #2dd4bf;
  box-shadow: 0 8px 30px rgba(52, 211, 153, 0.4);
}

/* Sections */
.section {
  padding: 5rem 0;
  margin-bottom: 2rem;
}

.section:last-of-type {
  margin-bottom: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-subtle);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orchid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* How It Works Section */
.how-it-works-wrapper {
  background: var(--gradient-primary);
  border-radius: 32px;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.how-it-works-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.how-it-works-wrapper .section-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.how-it-works-wrapper .section-title {
  color: white;
}

.how-it-works-wrapper .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Steps Timeline */
.steps-timeline {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding-left: 0;
  padding-top: 3rem;
}

.timeline-line {
  position: absolute;
  left: 60px;
  right: 60px;
  top: 20px;
  height: 3px;
  width: auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.step-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 0;
}

.step-timeline-number {
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orchid);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.step-timeline-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #1a1a2e;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.step-timeline:hover .step-timeline-content {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.step-timeline-text h3 {
  color: #f4f4f5;
}

.step-timeline-text p {
  color: #a1a1aa;
}

.step-timeline-image {
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #252538 0%, #1e1e2e 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.step-timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.step-timeline-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-timeline-text h3 {
  color: #1a1a2e;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-timeline-text p {
  color: #71717A;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--orchid);
  box-shadow: 0 20px 40px rgba(217, 70, 239, 0.1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-subtle);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Use Cases */
.use-cases {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.use-case-tag {
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: default;
}

.use-case-tag:hover {
  border-color: var(--orchid);
  color: var(--orchid);
  transform: translateY(-2px);
}

/* FAQ Section */
.faq-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.faq-left {
  position: sticky;
  top: 100px;
}

/* Contact Card */
.contact-card {
  background: linear-gradient(135deg, rgba(240, 171, 252, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-button);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.2s;
  font-family: inherit;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--orchid);
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

.form-textarea {
  field-sizing: content;
  min-height: 60px;
  max-height: 150px;
  resize: none;
  overflow-y: auto;
  padding-bottom: 1.75rem;
}

.form-group {
  position: relative;
}

.char-counter {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  pointer-events: none;
}

.contact-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* FAQ List */
.faq-right {
  display: flex;
  flex-direction: column;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}

.faq-question:hover {
  color: var(--orchid);
}

.faq-icon-wrapper {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-icon {
  transition: transform 0.3s;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--orchid);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* Light theme adjustments */
[data-theme="light"] .contact-card {
  background: linear-gradient(135deg, rgba(240, 171, 252, 0.15) 0%, rgba(129, 140, 248, 0.15) 100%);
}

[data-theme="light"] .faq-item {
  background: white;
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
  flex-shrink: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-left {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-dev-link {
  color: var(--orchid);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-dev-link:hover {
  color: var(--fuchsia);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Small mobile (< sm: 640px) */
@media (max-width: 639px) {
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    gap: 1.5rem;
  }
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.toast {
  padding: 1rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toast.success {
  border-color: var(--success);
}

.toast.error {
  border-color: var(--error);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

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

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

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

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

/* ===== RESPONSIVE BREAKPOINTS =====
   Using Tailwind-style breakpoints:
   - sm:  640px  (mobile landscape, small tablets)
   - md:  768px  (tablets)
   - lg:  1024px (small laptops, tablets landscape)
   - xl:  1280px (desktops)
   - 2xl: 1536px (large desktops)
*/

/* Large screens and below (< lg: 1024px) */
@media (max-width: 1023px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .how-it-works-wrapper {
    padding: 3rem 2rem;
  }

  .step-timeline-image {
    height: 160px;
  }
}

/* Below lg: FAQ layout change and ensure section padding */
@media (max-width: 1023px) {
  .faq-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .faq-left {
    position: static;
  }

  /* Ensure proper padding for sections */
  .section {
    padding: 4rem 0;
    margin-bottom: 2rem;
  }

  .section:last-of-type {
    margin-bottom: 3.5rem;
  }

  #use-cases {
    margin: 1.5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }
}

/* Tablets and below (< md: 768px) */
@media (max-width: 767px) {

  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
  }

  .hero {
    padding: 6rem 1rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Mobile URL input - stacked layout with equal height */
  .url-input-wrapper {
    padding: 0.5rem 1rem;
    min-height: 54px;
  }

  .url-input {
    padding: 0.5rem;
  }

  .url-input-wrapper #fetchBtn {
    display: none;
  }

  .url-btn-mobile {
    display: flex;
    min-height: 54px;
    padding: 1rem 2rem;
  }

  .video-info {
    grid-template-columns: 1fr;
  }

  .options-row {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 1.5rem;
  }

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

  /* How it works - centered layout with timeline */
  .how-it-works-wrapper {
    padding: 2rem 1rem;
    border-radius: 20px;
  }

  .steps-timeline {
    flex-direction: column;
    padding-left: 0;
    padding-top: 0;
    gap: 2rem;
    position: relative;
  }

  .timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    bottom: 20px;
    width: 3px;
    height: auto;
    right: auto;
    z-index: 0;
  }

  .step-timeline {
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .step-timeline-number {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  .step-timeline-content {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    text-align: center;
    width: 100%;
  }

  .step-timeline:hover .step-timeline-content {
    transform: translateY(-4px);
  }

  .step-timeline-image {
    width: 100%;
    height: auto;
    min-height: 180px;
    aspect-ratio: 16/9;
  }

  .step-timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0.5rem;
  }

  .step-timeline-text h3 {
    font-size: 1.1rem;
  }

  .step-timeline-text p {
    font-size: 0.85rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .section {
    padding: 3rem 0;
    margin-bottom: 1.5rem;
  }

  .section:last-of-type {
    margin-bottom: 3rem;
  }

  #use-cases {
    margin: 1.5rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .use-cases {
    gap: 0.5rem;
  }

  .use-case-tag {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .container {
    padding: 0 1rem;
  }

  .video-panel {
    padding: 1.5rem;
    margin: 0 0 3rem;
  }

  .time-controls {
    padding: 1rem;
  }

  .option-group {
    padding: 1rem;
  }

  .select-trigger {
    padding: 0.75rem 0.875rem;
  }

  .select-dropdown {
    max-height: 220px;
  }

  .select-option {
    padding: 0.625rem 0.875rem;
  }
}

/* ===== HAMBURGER MENU ===== */

/* Hamburger Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  transition: all 0.2s;
  z-index: 101;
}

.hamburger-btn:hover {
  border-color: var(--orchid);
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Hamburger animation when open */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-header .logo {
  font-size: 1.25rem;
}

.mobile-menu-header .logo-icon {
  width: 32px;
  height: 32px;
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.mobile-menu-close:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.mobile-menu-links {
  flex: 1;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.mobile-menu-link:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.mobile-menu-link svg {
  opacity: 0.7;
}

.mobile-menu-link:hover svg {
  opacity: 1;
  color: var(--orchid);
}

.mobile-menu-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.mobile-menu-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Desktop nav links visibility */
.nav-link-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Show hamburger and hide desktop nav on mobile (< 768px / md) */
@media (max-width: 767px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-link-desktop {
    display: none !important;
  }

  .nav-links {
    display: none !important;
  }
}

/* Hide mobile menu elements on desktop */
@media (min-width: 768px) {

  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* Hide desktop theme toggle on mobile */
@media (max-width: 767px) {
  .theme-toggle.desktop-only {
    display: none !important;
  }
}

/* User menu arrow - ensure visible in dark mode */
.user-menu-arrow {
  color: var(--text-secondary);
}

/* Mobile Menu Bottom Section */
.mobile-menu-bottom {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
}

.mobile-theme-toggle:hover {
  border-color: var(--orchid);
}

.mobile-theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orchid);
}

.mobile-theme-icon .moon-icon {
  display: none;
}

[data-theme="dark"] .mobile-theme-icon .sun-icon {
  display: none;
}

[data-theme="dark"] .mobile-theme-icon .moon-icon {
  display: block;
}

.mobile-theme-label {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.mobile-theme-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  background: var(--surface-hover);
  border-radius: 6px;
}

/* Mobile Sign Out Button */
.mobile-signout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: transparent;
  border: 1px solid var(--error);
  border-radius: 12px;
  color: var(--error);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.mobile-signout-btn:hover {
  background: rgba(248, 113, 113, 0.1);
}

/* Recent History Section */
.recent-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.recent-history-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  transition: all 0.2s ease;
}

.recent-history-card:hover {
  border-color: var(--orchid);
  transform: translateY(-2px);
}

.recent-history-thumb {
  width: 120px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-hover);
}

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

.recent-history-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recent-history-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.recent-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.recent-history-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.recent-history-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.recent-history-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.recent-history-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recent-history-btn:hover {
  background: var(--surface-hover);
  border-color: var(--orchid);
  color: var(--orchid);
}

.recent-history-btn.primary {
  background: var(--orchid);
  border-color: var(--orchid);
  color: white;
}

.recent-history-btn.primary:hover {
  opacity: 0.9;
}

.recent-history-footer {
  text-align: center;
}

.recent-history-empty {
  text-align: center;
  padding: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.recent-history-empty svg {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.recent-history-empty h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.recent-history-empty p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

@media (max-width: 639px) {
  .recent-history-grid {
    grid-template-columns: 1fr;
  }

  .recent-history-card {
    flex-direction: column;
  }

  .recent-history-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}