@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;
  --success-solid: #22c55a;
  --success-light: #86efac;
  --warning: #FBBF24;
  --warning-light: #fcd34d;
  --error: #F87171;
  --error-solid: #ef4444;
  --error-light: #fca5a5;
  --info: #818CF8;
  --info-light: #93c5fd;

  /* Surface variants */
  --surface-dark: #1a1a2e;

  /* 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;
}

/* Custom Scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* 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 ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(9, 9, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--glass-border);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(250, 250, 250, 0.8);
}

@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%;
}

/* Hide app name on mobile, show only logo */
@media (max-width: 767px) {
  .navbar .logo [data-app-name] {
    display: none;
  }
}

/* Live Visitors Badge */
.live-visitors {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 0.75rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.live-visitors:hover {
  background: var(--surface-hover);
  border-color: var(--success);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.live-count {
  font-weight: 600;
  color: var(--text-primary);
}

.live-label {
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .live-visitors {
    display: none;
  }
}

/* Join Notification Popup */
.join-notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  font-size: 0.875rem;
  color: var(--text-primary);
  z-index: 1001;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.join-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.join-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--gradient-subtle);
  border-radius: 50%;
  color: var(--primary);
}

.join-icon svg {
  color: var(--orchid);
}

.join-message {
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .join-notification {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    justify-content: center;
  }
}

.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);
}

/* Services Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.nav-dropdown-trigger svg {
  transition: transform 0.2s;
}

.nav-dropdown.active .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 250px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.nav-dropdown-item:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.nav-dropdown-item svg {
  flex-shrink: 0;
}

button.nav-dropdown-item {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.875rem 0.25rem;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.375rem 0;
}

/* Mobile menu section */
.mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.mobile-menu-section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
}

button.mobile-menu-link {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.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.3rem 1rem !important;
  background: transparent;
  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%);
  border-color: transparent;
  color: white;
  transform: translateY(-1px);
}

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

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

  .btn-donate svg {
    width: 20px;
    height: 20px;
  }

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

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

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

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

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

.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: var(--surface-dark);
  color: white;
}

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

#fetchBtn.loading,
#fetchBtnMobile.loading {
  opacity: 0.6;
  pointer-events: none;
}

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

/* Platforms Marquee */
.platforms-marquee {
  overflow: hidden;
  padding: 2rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marqueeScroll 60s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.marquee-track {
  user-select: none;
  -webkit-user-select: none;
}

.marquee-item:hover {
  border-color: var(--orchid);
}

.marquee-item svg {
  flex-shrink: 0;
}

.marquee-item span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* Platform disabled modal */
.platform-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.platform-modal {
  background: var(--bg);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.platform-modal-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.platform-modal-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.platform-modal-subtext {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.platform-modal-btn {
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
}

.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-top: 5rem;
  padding-bottom: 5rem;
  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 {
  padding: 0;
  position: relative;
}

/* Steps - circle-on-line style */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  padding-top: 2rem;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  top: calc(2rem + 28px);
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: linear-gradient(to right, #60a5fa, #f59e0b, #34d399);
  z-index: 0;
}

.timeline-line {
  display: none;
}

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

.step-timeline-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

/* Step 1 = nth-child(2) because timeline-line is first child */
.step-timeline:nth-child(2) .step-timeline-number {
  border: 2px solid #60a5fa;
  color: #60a5fa;
}

/* Step 2 */
.step-timeline:nth-child(3) .step-timeline-number {
  border: 2px solid #f59e0b;
  color: #f59e0b;
}

/* Step 3 */
.step-timeline:nth-child(4) .step-timeline-number {
  border: 2px solid #34d399;
  color: #34d399;
}

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

.step-timeline-image {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
}

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

.step-timeline-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.step-timeline-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-timeline-text p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Features Timeline */
.features-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  padding-top: 2rem;
}

.features-line::before {
  content: "";
  position: absolute;
  top: calc(2rem + 26px);
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  background: linear-gradient(to right, #d946ef, #818cf8, #fbbf24, #34d399, #f472b6, #60a5fa);
  z-index: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.feature-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--feat-color);
  background: var(--bg);
  color: var(--feat-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 18px color-mix(in srgb, var(--feat-color) 25%, transparent);
  transition: all 0.3s ease;
}

.feature-circle svg {
  width: 22px;
  height: 22px;
}

.feature-item:hover .feature-circle {
  background: var(--feat-color);
  color: white;
  box-shadow: 0 0 28px color-mix(in srgb, var(--feat-color) 40%, transparent);
  transform: scale(1.1);
}

.feature-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.feature-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 160px;
  margin-top: 0.15rem;
}

/* Use Cases */
.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.use-case-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: all 0.2s ease;
  cursor: default;
}

.use-case-card:hover {
  border-color: var(--orchid);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(217, 70, 239, 0.08);
}

.use-case-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.use-case-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.use-case-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0.25rem 0 0;
}

/* FAQ Section */
.faq-contact-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-contact-cta p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.faq-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orchid);
  transition: all 0.2s ease;
}

.faq-contact-link:hover {
  opacity: 0.8;
}

/* 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-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;
}

/* Donate CTA Section */
.donate-cta {
  position: relative;
  padding: 4rem 2.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #c026d3 0%, #a855f7 40%, #d946ef 100%);
  overflow: hidden;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.donate-rings {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 550px;
  height: 550px;
  pointer-events: none;
}

.donate-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(50%);
}

.donate-ring-1 { width: 550px; height: 550px; background: rgba(255, 255, 255, 0.1); }
.donate-ring-2 { width: 450px; height: 450px; background: rgba(255, 255, 255, 0.14); }
.donate-ring-3 { width: 350px; height: 350px; background: rgba(255, 255, 255, 0.18); }
.donate-ring-4 { width: 260px; height: 260px; background: rgba(255, 255, 255, 0.24); }
.donate-ring-5 { width: 180px; height: 180px; background: rgba(255, 255, 255, 0.32); }
.donate-ring-6 { width: 100px; height: 100px; background: rgba(255, 255, 255, 0.5); }

.donate-inner {
  position: relative;
  z-index: 1;
  max-width: 55%;
}

.donate-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.donate-cta p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.donate-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem;
  font-family: inherit;
  color: #fff;
  background: rgba(0, 0, 0, 0.9);
  border: none;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.donate-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.donate-btn-inner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.3s;
}

.donate-cta-btn:hover .donate-btn-inner {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 639px) {
  .donate-cta { padding: 2.5rem 1.5rem; }
  .donate-inner { max-width: 100%; text-align: center; }
  .donate-rings { width: 350px; height: 350px; opacity: 0.6; }
  .donate-ring-1 { width: 350px; height: 350px; }
  .donate-ring-2 { width: 280px; height: 280px; }
  .donate-ring-3 { width: 220px; height: 220px; }
  .donate-ring-4 { width: 165px; height: 165px; }
  .donate-ring-5 { width: 115px; height: 115px; }
  .donate-ring-6 { width: 65px; height: 65px; }
  .donate-cta-btn { width: 100%; }
  .donate-btn-inner { width: 100%; justify-content: center; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0 5rem;
  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 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }
}

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

.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-line {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 0;
  }

  .features-line::before {
    display: none;
  }

}

/* Below lg: FAQ layout change and ensure section padding */
@media (max-width: 1023px) {

  .faq-contact-cta {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* 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-line {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* How it works */
  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .steps-timeline::before {
    display: none;
  }

  .step-timeline {
    width: 100%;
  }

  .step-timeline-number {
    margin-bottom: 0;
    position: relative;
  }

  .step-timeline-number::after {
    content: "";
    position: absolute;
    bottom: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1.25rem;
    background: currentColor;
    opacity: 0.5;
  }

  .step-timeline-content {
    width: 100%;
    padding-top: 1.25rem;
  }

  .step-timeline-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    padding: 1.25rem;
    border-radius: 16px;
  }

  .step-timeline-text {
    max-width: 100%;
  }

  .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 {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .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: none;
  background: transparent;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  transition: all 0.2s;
  z-index: 101;
}

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

.hamburger-line:nth-child(1) {
  width: 12px;
}

.hamburger-line:nth-child(2) {
  width: 16px;
}

.hamburger-line:nth-child(3) {
  width: 20px;
}

/* Hamburger animation when open */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  width: 20px;
  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 smaller screens */
@media (max-width: 1099px) {
  .hamburger-btn {
    display: flex;
  }

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

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

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

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

/* Nav desktop/mobile visibility */
.nav-mobile-only {
  display: none !important;
}

@media (min-width: 1100px) {
  .nav-desktop-only {
    display: flex !important;
  }
}

.btn-google-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-google-mobile:hover {
  border-color: var(--orchid);
  transform: translateY(-1px);
}

/* Hide desktop-only elements when hamburger is shown */
@media (max-width: 1099px) {
  .lang-switcher,
  .theme-toggle.desktop-only,
  .nav-desktop-only {
    display: none !important;
  }

  .nav-mobile-only {
    display: flex !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;
  }
}

/* ============================================
   Language Switcher
   ============================================ */

.lang-switcher {
  position: relative;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8125rem;
  font-weight: 500;
}

.lang-trigger:hover {
  background: var(--surface-hover);
  border-color: var(--orchid);
  color: var(--orchid);
}

.lang-code {
  font-weight: 600;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.lang-switcher.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-option:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

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

/* Mobile Language Switcher */
.mobile-lang-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.mobile-lang-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.mobile-lang-label svg {
  color: var(--text-secondary);
}

.mobile-lang-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.mobile-lang-select:focus {
  outline: none;
  border-color: var(--orchid);
  box-shadow: 0 0 0 2px rgba(var(--orchid-rgb), 0.2);
}

.mobile-lang-select option {
  background: var(--bg);
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Hide desktop lang switcher on mobile */
@media (max-width: 767px) {
  .lang-switcher {
    display: none;
  }
}

/* ========================================
   Clip FAB (Floating Action Button)
   ======================================== */
.clip-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-button);
  border: none;
  cursor: pointer;
  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 ease, box-shadow 0.2s ease;
  z-index: 1000;
}

.clip-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(217, 70, 239, 0.5);
}

.clip-fab:active {
  transform: scale(0.95);
}

.clip-fab svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 767px) {
  .clip-fab {
    bottom: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
  }
}

/* ========================================
   Clip Modal
   ======================================== */
.clip-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 1rem;
}

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

.clip-modal {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.25rem;
  width: 100%;
  max-width: 640px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.2s ease;
}

.clip-modal-overlay.open .clip-modal {
  transform: scale(1) translateY(0);
}

.clip-modal-form {
  width: 100%;
}

.clip-modal-input-wrapper {
  display: flex;
  gap: 0.5rem;
  background: var(--bg);
  border-radius: 10px;
  padding: 0.25rem;
}

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

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

.clip-modal-submit {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-button);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.clip-modal-submit:hover {
  opacity: 0.9;
}

.clip-modal-submit:active {
  transform: scale(0.95);
}

@media (max-width: 767px) {
  .clip-modal {
    max-width: calc(100% - 2rem);
  }
}

/* ============================================
   Ad Container Styles
   ============================================ */
.ad-container {
  width: 100%;
  max-width: 100%;
  margin: 2rem auto;
  text-align: center;
  overflow: hidden;
}

.ad-container ins {
  max-width: 100%;
}

/* Collapse when no ad is loaded (before approval or ad blockers) */
.ad-container:empty,
.ad-container:not(:has(ins[data-ad-status="filled"])) {
  margin: 0;
  min-height: 0;
}

/* Page-specific ad positioning */
.ad-home-hero {
  margin: 1.5rem auto 0;
  max-width: 728px;
}

.ad-home-mid {
  margin: 0 auto 2rem;
  max-width: 728px;
}

.ad-clip-sidebar {
  margin: 1rem 0;
}

.ad-clip-bottom {
  margin: 1.5rem 0 0;
}

.ad-history {
  margin: 1.5rem auto;
  max-width: 728px;
}

@media (max-width: 767px) {
  .ad-container {
    margin: 1rem auto;
  }
}