/* Vixie AI Styles - Dark Mode + Wine Red Theme */
:root {
  --wine: #8b1a1a;
  --wine-dark: #6b1313;
  --wine-light: #c0392b;
  --wine-glow: rgba(139, 26, 26, 0.28);
  --wine-subtle: rgba(139, 26, 26, 0.12);
  --accent: #c0392b; /* alias for --wine-light — used by video-style-item selected outline */

  --bg: #0d0808;
  --bg-elevated: #150c0c;
  --bg-card: #1e1010;
  --bg-hover: #271414;

  --text: #ede8e8;
  --text-muted: #b8aead;
  --text-dim: #9a9090;

  --border: #2c1a1a;
  --border-wine: rgba(139, 26, 26, 0.45);

  --success: #3fb06c;
  --error: #e05555;

  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.55);
  --shadow-wine: 0 4px 20px rgba(139, 26, 26, 0.35);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 16px 16px 0 16px;
  gap: 16px;
}

/* Header - Single Row (All Breakpoints) */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

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

.header .btn-primary.btn-topup {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .header {
    padding: 10px 12px;
  }

  .header-right {
    gap: 8px;
  }
}

/* Tier Tooltip */
.tier-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  z-index: 50;
  animation: fadeIn 0.2s ease;
}

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

.tooltip-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
}

.tooltip-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text);
}

.tooltip-features {
  list-style: none;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-left: 0;
}

.tooltip-features li {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.tooltip-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.tooltip-upgrade {
  background: var(--wine-subtle);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border-wine);
}

.tooltip-upgrade strong {
  font-size: 12px;
  color: var(--wine-light);
  display: block;
  margin-bottom: 8px;
}

.tooltip-upgrade ul {
  list-style: none;
  font-size: 11px;
  color: var(--text);
  padding-left: 0;
}

.tooltip-upgrade li {
  padding: 3px 0;
}

/* Buy Button */
.btn-buy {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-wine);
}

.btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 26, 26, 0.4);
}

/* Buttons */
.btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-wine);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 26, 26, 0.4);
}

.btn-secondary {
  padding: 10px 20px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--wine);
  color: var(--wine-light);
  background: var(--wine-subtle);
}

.btn-danger {
  padding: 10px 20px;
  background: var(--bg-card);
  color: var(--error);
  border: 1px solid var(--error);
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: var(--error);
  color: white;
}

/* Style Selector - Thumbnail Grid */
.style-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.style-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.style-selector label {
  font-size: 12px;
  font-weight: 600;
  color: var(--wine-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.style-expand-btn {
  width: 100%;
  padding: 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* Hide expand button everywhere */
.style-expand-btn {
  display: none !important;
}

.style-expand-btn:hover {
  border-color: var(--wine);
  color: var(--wine-light);
  background: var(--wine-subtle);
}

/* Style Grid */
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
  padding: 4px;
}

/* Desktop - show all styles in 3-4 columns */
@media (min-width: 641px) {
  .style-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    max-height: none;
    overflow-y: visible;
  }

  .style-expand-btn {
    display: none !important;
  }
}

/* Mobile: scrollable style grid, ~3 rows visible */
@media (max-width: 640px) {
  .style-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: min-content;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
  }
}

.style-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  padding: 3px;
  background: var(--bg);
  border: 2px solid transparent;
}

.style-item:hover {
  border-color: var(--wine);
  background: var(--wine-subtle);
  transform: translateY(-2px);
}

.style-item.selected {
  border-color: var(--wine);
  background: var(--wine-subtle);
  box-shadow: 0 0 0 3px var(--wine-glow);
}

.style-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.style-item.disabled:hover {
  transform: none;
  border-color: transparent;
}

.style-thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  background: var(--bg-elevated);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}


.style-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.style-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(139, 26, 26, 0.1) 100%);
  pointer-events: none;
}

/* NSFW overlay */
.nsfw-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.nsfw-overlay span {
  font-size: 24px;
}

.nsfw-blurred .style-thumbnail img {
  filter: blur(12px);
  transition: filter 0.3s;
}

.nsfw-blurred .nsfw-overlay {
  opacity: 1;
}

.style-name {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  padding: 0 2px 2px;
}

.style-item.selected .style-name {
  color: var(--wine-light);
  font-weight: 600;
}


.style-item.loading {
  pointer-events: none;
}

.style-item.loading .style-thumbnail {
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    var(--bg-hover) 50%,
    var(--bg-elevated) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Input Area */
.input-area {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.input-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wine), var(--wine-light), var(--wine));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.input-area:hover::before {
  opacity: 1;
}

/* Full-page drag overlay */
.drag-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(100, 18, 18, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.drag-overlay.hidden {
  display: none;
}

.drag-overlay-inner {
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
  pointer-events: none;
  text-align: center;
  line-height: 1.5;
}

.input-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-input {
  padding: 12px 18px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.btn-input:hover {
  border-color: var(--wine);
  color: var(--wine-light);
  background: var(--wine-subtle);
  transform: translateY(-1px);
}

.btn-input svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.drop-hint {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.drop-hint strong {
  color: var(--wine-light);
  font-weight: 600;
}

.file-requirements {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-top: 4px;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.upload-disclaimer {
  font-size: 10px;
  color: var(--text-muted, #555);
  margin-top: 4px;
  text-align: center;
  opacity: 0.6;
}

.btn-upload-primary {
  background: var(--wine-subtle);
  border-color: var(--wine);
  color: var(--wine-light);
  font-weight: 600;
  position: relative;
}

.btn-upload-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, transparent 0%, var(--wine-glow) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.btn-upload-primary:hover::after {
  opacity: 1;
}

.btn-upload-primary:hover {
  background: var(--wine);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-wine);
}

/* Gallery Section */
.gallery-section {
  flex: 1;
}

.gallery-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-section h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--wine), transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  transition: gap 0.3s ease;
}

/* Tablet: 3 columns */
@media (min-width: 641px) and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* Desktop/Laptop: 4 columns */
@media (min-width: 1025px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

.gallery-item {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-wine);
  border-color: var(--wine);
  z-index: 10;
}

.gallery-item:active {
  transform: translateY(-2px) scale(1.01);
  transition-duration: 0.1s;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, filter 0.3s ease;
  opacity: 1;
}

.gallery-item img:not([src]),
.gallery-item img[src=""] {
  opacity: 0;
}

.gallery-item:hover img:not(.processing) {
  filter: brightness(1.05);
}

.gallery-item.processing img,
.gallery-item.queued img {
  filter: grayscale(0.4) brightness(0.7);
}

.gallery-item .progress-overlay {
  position: absolute;
  inset: 0;
  background: var(--wine-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  font-weight: 600;
  font-size: 16px;
  overflow: hidden;
}

/* Sparkling stars animation - multiple stars via box-shadow */
.gallery-item .progress-overlay::before,
.gallery-item .progress-overlay::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

.gallery-item .progress-overlay::before {
  top: var(--s1y, 18%);
  left: var(--s1x, 25%);
  box-shadow:
    0 0 4px white, 0 0 8px white,
    40px 15px 3px rgba(255,255,255,0.9),
    -10px 50px 2px rgba(255,255,255,0.7),
    55px 60px 3px rgba(255,255,255,0.8),
    20px 80px 2px rgba(255,255,255,0.6);
  animation-delay: var(--delay1, 0s);
}

.gallery-item .progress-overlay::after {
  top: var(--s2y, 55%);
  right: var(--s2x, 20%);
  box-shadow:
    0 0 4px white, 0 0 8px white,
    -35px -20px 2px rgba(255,255,255,0.8),
    15px 25px 3px rgba(255,255,255,0.7),
    -50px 10px 2px rgba(255,255,255,0.6),
    -20px -45px 3px rgba(255,255,255,0.9);
  animation-delay: var(--delay2, 0.7s);
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  30% {
    opacity: 1;
    transform: scale(1.2);
  }
  50% {
    opacity: 0.8;
    transform: scale(0.8);
  }
  70% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Additional sparkle layer with different timing */
.gallery-item.queued .progress-overlay,
.gallery-item.processing .progress-overlay {
  background: var(--wine-dark);
  background-image:
    radial-gradient(1px 1px at var(--s3x, 15%) var(--s3y, 45%), rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at var(--s4x, 75%) var(--s4y, 30%), rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at var(--s1x, 45%) var(--s2y, 75%), rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at var(--s2x, 85%) var(--s1y, 70%), rgba(255,255,255,0.3) 0%, transparent 100%);
}
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

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

/* Reveal overlay for completed items */
.gallery-item .reveal-overlay {
  position: absolute;
  inset: 0;
  background: var(--wine-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-item.reveal-state:hover .reveal-overlay {
  background: var(--wine);
  transform: scale(1.05);
}


.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-dim);
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  transition: all 0.3s ease;
  grid-column: 1 / -1;
}

.empty-state:hover {
  border-color: var(--wine);
  background: var(--wine-subtle);
}

.load-more-container {
  text-align: center;
  margin-top: 20px;
  padding: 16px 0;
  animation: fadeIn 0.3s ease;
}

.load-more-container button {
  min-width: 150px;
  transition: all 0.3s ease;
}

.load-more-container button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.load-more-container button:hover:not(:disabled) {
  transform: translateY(-2px);
}

/* Error state for gallery items */
.gallery-item.error,
.gallery-item.refunded {
  background: var(--bg-elevated);
  border-color: var(--wine-light);
}
.gallery-item.refunded .error-icon {
  color: var(--wine-light);
  opacity: 0.9;
}
.gallery-item.refunded .error-text {
  color: var(--wine-light);
}

.gallery-item.load-error {
  background: var(--bg-elevated);
  border-color: var(--error);
}

.gallery-item .error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--error);
  padding: 20px;
}

.gallery-item .error-icon {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
  opacity: 0.6;
}

.gallery-item .error-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.gallery-item.load-error img {
  display: none;
}

.gallery-item.load-error::after {
  content: 'Failed to load';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--error);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hidden {
  display: none !important;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(6px);
}

.modal-content {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--wine);
}

.modal-content h2 {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: 22px;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 16px 0;
}

.modal-content input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  background: var(--bg-hover);
  color: var(--text);
}

.modal-content input:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px var(--wine-glow);
}

.modal-content input::placeholder {
  color: var(--text-dim);
}

.modal-buttons {
  display: flex;
  gap: 10px;
}

.modal-buttons button {
  flex: 1;
}

/* Lightbox Overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: lightboxFadeIn 0.2s ease;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  cursor: pointer;
}

/* ── Lightbox layout: header pinned top, image centered in remaining space ── */
.lightbox-content-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.lightbox-image-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  flex-shrink: 0;
  /* Always at top — never overlaps image */
}

.lightbox-header-spacer {
  flex: 1;
}

/* Desktop: center the animate widget, close button stays right */
@media (min-width: 641px) {
  .lightbox-image-header {
    position: relative;
    justify-content: center;
  }
  .lightbox-image-header .animate-widget {
    /* centered by justify-content */
  }
  .lightbox-header-spacer {
    display: none;
  }
  .lightbox-image-header .lightbox-close {
    position: absolute;
    right: 16px;
  }
}

/* Image area — fills remaining space, centers the image */
.lightbox-image-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: visible;
  /* Prevent content hiding behind the absolute-positioned actions bar (~80px) */
  padding-bottom: 90px;
}

/* Close button — inline flex item in header */
.lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Animate widget ─────────────────────────────────────────────── */
.animate-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* Hide all state sub-elements by default */
.animate-widget .animate-idle-row,
.animate-widget .animate-pending,
.animate-widget .animate-toggle,
.animate-widget .animate-failed { display: none; }

/* Show only the active state */
.animate-widget--idle      .animate-idle-row { display: flex; align-items: center; gap: 6px; }
.animate-widget--pending   .animate-pending  { display: flex; }
.animate-widget--completed .animate-toggle   { display: flex; }
.animate-widget--failed    .animate-failed   { display: flex; }

.animate-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-wine);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.animate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 26, 26, 0.45);
}
.animate-pending {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  pointer-events: none;
}
.animate-spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.animate-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
}
.animate-toggle svg { flex-shrink: 0; transition: color 0.2s; }
#animate-toggle-photo-icon { color: rgba(255,255,255,0.9); }
#animate-toggle-video-icon { color: rgba(255,255,255,0.35); }
.animate-widget--video #animate-toggle-photo-icon { color: rgba(255,255,255,0.35); }
.animate-widget--video #animate-toggle-video-icon { color: rgba(255,255,255,0.9); }

.animate-toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.animate-toggle-switch[aria-checked="true"] { background: #7c3aed; }
.animate-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.animate-toggle-switch[aria-checked="true"] .animate-toggle-knob {
  transform: translateX(16px);
}

.animate-failed {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(239,68,68,0.3);
  color: rgba(239,68,68,0.8);
  font-size: 13px;
}
.animate-refund-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.animate-refund-btn:hover { color: #fff; }

/* Hidden video player in lightbox */
.lightbox-video {
  max-width: 90vw;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  /* Suppress iOS context menu on long-press (no save-to-photos for video) */
  -webkit-touch-callout: none;
}
.lightbox-video.hidden { display: none; }

/* ── Gallery play badge ─────────────────────────────────────────── */
.gallery-item-play-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.7));
}
.gallery-item-play-badge svg {
  display: block;
}

/* ── Animate info button (?) ────────────────────────────────────── */
.animate-info-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.animate-info-btn:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* ── Animate info modal (above lightbox) ────────────────────────── */
.animate-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100; /* above lightbox z-index: 1000 */
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxFadeIn 0.2s ease;
}
.animate-info-overlay.hidden { display: none; }

.animate-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.animate-info-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-wine);
  border-radius: 16px;
  overflow: hidden;
  width: min(380px, 92vw);
  box-shadow: var(--shadow-wine);
  display: flex;
  flex-direction: column;
}

.animate-info-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.animate-info-close:hover {
  background: rgba(0,0,0,0.7);
  color: #fff;
}

.animate-info-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 45vh;
  object-fit: cover;
  object-position: top;
  display: block;
  background: #000;
}

.animate-info-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.animate-info-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.animate-info-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
}

.animate-info-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.animate-info-bullets li {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  padding-left: 18px;
  position: relative;
}
.animate-info-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--wine-light);
  font-weight: 700;
}

.animate-info-cta-btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* ── End animate widget ─────────────────────────────────────────── */

/* -- Gallery tile: Turn into Video hover button ------------------- */

.gallery-turn-into-video-btn {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(10, 10, 10, 0.82);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  z-index: 5;
  backdrop-filter: blur(6px);
}

.gallery-item:hover .gallery-turn-into-video-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.gallery-turn-into-video-btn:hover {
  background: rgba(30, 10, 10, 0.92);
  border-color: rgba(192, 57, 43, 0.7);
}

/* -- Lightbox: Turn into Video button ----------------------------- */

.lightbox-turn-into-video-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-wine);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.lightbox-turn-into-video-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139,26,26,0.45);
}


.lightbox-image-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  will-change: transform;
  max-height: 100%;
  /* Drag translate applied via JS inline style */
}

/* Snap-back when swipe cancelled */
.lightbox-image-wrap.swipe-snap {
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fly out on confirmed swipe */
.lightbox-image-wrap.swipe-out-left {
  transition: transform 0.22s cubic-bezier(0.55, 0, 1, 0.45);
}
.lightbox-image-wrap.swipe-out-right {
  transition: transform 0.22s cubic-bezier(0.55, 0, 1, 0.45);
}

/* New image slides in after navigation */
@keyframes lightboxSlideInLeft {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes lightboxSlideInRight {
  from { transform: translateX(-60px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
.lightbox-image-wrap.slide-in-left  { animation: lightboxSlideInLeft  0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.lightbox-image-wrap.slide-in-right { animation: lightboxSlideInRight 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

/* End-of-gallery load-more prompt inside the lightbox */

.lightbox-img {
  max-width: 90vw;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  /* Enable iOS long-press "Add to Photos" — must not be blocked */
  -webkit-touch-callout: default !important;
  pointer-events: auto !important;
  user-select: auto !important;
}

/* Spinner overlay while next image loads */
.lightbox-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  z-index: 10;
}

.lightbox-spinner.hidden { display: none; }

.lightbox-spinner-ring {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lightbox-spin 0.7s linear infinite;
}

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

@media (max-width: 640px) {
  .lightbox-img {
    max-width: 98vw;
    max-height: 85vh;
    border-radius: 8px;
  }
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.lightbox-nav-prev {
  left: 12px;
}

.lightbox-nav-next {
  right: 12px;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .lightbox-nav svg {
    width: 24px;
    height: 24px;
  }

  .lightbox-nav-prev {
    left: 8px;
  }

  .lightbox-nav-next {
    right: 8px;
  }
}

.lightbox-actions {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  padding: 0 16px;
}

.lightbox-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 16px;
  min-width: 64px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.lightbox-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateY(-2px);
}

.lightbox-action-btn svg {
  width: 22px;
  height: 22px;
}

.lightbox-action-delete {
  color: rgba(255, 100, 100, 0.8);
}

.lightbox-action-delete:hover {
  background: rgba(255, 100, 100, 0.15);
  border-color: rgba(255, 100, 100, 0.3);
  color: #ff6464;
}

.lightbox-action-delete.confirm {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.5);
  color: #ff4444;
}

.lightbox-action-delete.confirm:hover {
  background: rgba(255, 0, 0, 0.3);
  border-color: rgba(255, 0, 0, 0.7);
}

@media (max-width: 640px) {
  .lightbox-actions {
    bottom: 12px;
    gap: 8px;
  }

  .lightbox-action-btn {
    padding: 8px 8px;
    min-width: 56px;
    font-size: 10px;
  }

  .lightbox-action-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-wine);
  max-width: min(360px, 90vw);
  width: max-content;
  text-align: center;
  white-space: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.toast-action {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}

.toast-action:hover {
  background: rgba(255, 255, 255, 0.32);
}

.toast-action.hidden {
  display: none;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.gallery-item.processing .progress-overlay {
  animation: pulse 1.5s ease-in-out infinite;
}

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

.gallery-item {
  animation: galleryItemFadeIn 0.4s ease forwards;
}

/* Stagger animation for multiple items */
.gallery-item:nth-child(1) { animation-delay: 0ms; }
.gallery-item:nth-child(2) { animation-delay: 50ms; }
.gallery-item:nth-child(3) { animation-delay: 100ms; }
.gallery-item:nth-child(4) { animation-delay: 150ms; }
.gallery-item:nth-child(5) { animation-delay: 200ms; }
.gallery-item:nth-child(6) { animation-delay: 250ms; }
.gallery-item:nth-child(7) { animation-delay: 300ms; }
.gallery-item:nth-child(8) { animation-delay: 350ms; }
.gallery-item:nth-child(n+9) { animation-delay: 400ms; }

/* Screen Capture Overlay */
.capture-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: crosshair;
  z-index: 99999;
}

.capture-selection {
  position: absolute;
  border: 2px solid var(--wine);
  background: rgba(139, 26, 26, 0.2);
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--wine-dark);
  border-radius: 3px;
}

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

/* Select dropdown styling for dark mode */
select option {
  background: var(--bg-card);
  color: var(--text);
}



.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.12);
}

.brand-name {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
}

.brand-vixie {
  color: #ede8e8;
}

.brand-art {
  color: var(--wine-light);
}

.credit-count {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.btn-text:hover {
  color: var(--wine-light);
}

.btn-primary {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: white;
  border: 1px solid var(--wine-light);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(139, 26, 26, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.3);
}

/* Footer - Full Bleed (Edge-to-Edge) */
.footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  margin-left: -16px;
  margin-right: -16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-top: auto;
  z-index: 20;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.footer-account-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-account-btn:hover {
  color: var(--wine);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.footer-link:hover {
  color: var(--wine-light);
}

.footer-separator {
  color: var(--text-dim);
}

.footer-help-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wine);
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(139, 26, 26, 0.3);
}

.footer-help-btn:hover {
  background: var(--wine-light);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.4);
}

/* Below-Footer Legal Links */
.below-footer-links {
  width: 100vw;
  margin-left: -16px;
  margin-right: -16px;
  background: var(--bg);
  padding: 10px 20px;
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
  border-top: 1px solid rgba(42, 42, 50, 0.5);
}

.legal-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 10px;
}

.legal-link:hover {
  color: var(--wine-light);
}

.legal-separator {
  margin: 0 8px;
  color: var(--text-dim);
  opacity: 0.5;
}

/* Login Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.login-modal-content {
  max-width: 380px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s;
}

.modal-close:hover {
  border-color: var(--wine);
  background: var(--wine-subtle);
  color: var(--wine-light);
}

.login-screen h2 {
  color: var(--text);
  margin: 0 0 8px 0;
  font-size: 24px;
}

.login-subtitle {
  color: var(--text-muted);
  margin: 0 0 24px 0;
  font-size: 14px;
  line-height: 1.5;
}

.login-trust-signals {
  margin-top: 20px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.login-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

.user-display {
  font-size: 13px;
  color: var(--text);
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-display:hover {
  background: var(--bg-hover);
  border-color: var(--wine);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-form input[type="email"] {
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}

.login-form input[type="email"]:focus {
  outline: none;
  border-color: var(--wine);
  background: var(--bg-elevated);
}

.login-status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.login-status.error {
  background: rgba(224, 85, 85, 0.1);
  color: var(--error);
  border: 1px solid rgba(224, 85, 85, 0.3);
}

.login-status.success {
  background: rgba(63, 176, 108, 0.1);
  color: var(--success);
  border: 1px solid rgba(63, 176, 108, 0.3);
}

.login-status.info {
  background: var(--wine-subtle);
  color: var(--wine-light);
  border: 1px solid var(--border-wine);
}

/* OTP Input */
.otp-input-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}

.otp-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: all 0.2s;
}

.otp-digit:focus {
  outline: none;
  border-color: var(--wine);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--wine-glow);
}

#verify-code-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
}

#resend-code-btn {
  width: 100%;
  margin-top: 8px;
  font-size: 0.85em;
}

#verify-email {
  color: var(--wine-light);
  font-weight: 600;
}

/* How it Works Modal */
.how-it-works-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}

.how-it-works-section h3 {
  color: var(--text);
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.how-it-works-section p {
  color: var(--text-muted);
  margin: 0 0 8px 0;
  line-height: 1.6;
}

.how-it-works-section ul {
  margin: 8px 0 0 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

.how-it-works-section strong {
  color: var(--wine-light);
  font-weight: 600;
}

.how-it-works-content h2 {
  color: var(--text);
  font-size: 24px;
  margin-bottom: 8px;
}

/* Account Modal */
/* Account Modal Sections */
.account-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.account-btn-full {
  width: 100%;
}

.account-info {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.account-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.account-user-id {
  color: var(--text);
  font-weight: 600;
  font-family: monospace;
  font-size: 12px;
  margin-top: 6px !important;
}

/* Account Settings */
.account-setting {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-setting-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-setting-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.account-setting-desc {
  font-size: 11px;
  color: var(--text-dim);
}

/* Offer Code */
.offer-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.offer-code-input {
  flex: 1;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s;
}

.offer-code-input:focus {
  border-color: var(--wine-light);
}

.offer-code-btn {
  padding: 7px 14px;
  background: var(--wine);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.offer-code-btn:hover {
  background: var(--wine-light);
}

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

.offer-code-msg {
  font-size: 12px;
  margin: 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--wine);
  border-color: var(--wine-light);
}

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

/* Source Images Preview */
.source-preview {
  position: relative;
  max-width: 500px;
  margin: 1.5rem auto;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.source-preview.hidden {
  display: none;
}

/* Grid of source image thumbnails */
.source-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* 1-3 images: 2 columns on mobile, 4 on desktop */
.source-preview-grid.single {
  grid-template-columns: repeat(2, 1fr);
}

/* Multiple images (4+): responsive grid */
.source-preview-grid.multi {
  grid-template-columns: repeat(2, 1fr);
}

.source-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  min-height: 140px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.source-thumb:hover {
  border-color: var(--wine);
}

.source-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.source-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  opacity: 0;
  pointer-events: none;
}

.source-thumb:hover .source-thumb-remove {
  opacity: 1;
  pointer-events: auto;
}

.source-thumb-remove:hover {
  background: var(--error);
}

/* Upload More tile */
.source-upload-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 3 / 4;
  min-height: 140px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  padding: 0;
}

.source-upload-more:hover {
  border-color: var(--wine);
  background: var(--wine-subtle);
}

.source-upload-more img {
  width: 64px;
  height: auto;
  opacity: 0.5;
}

.source-upload-more span {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

/* Clear All button */
.source-clear-all-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.source-clear-all-btn:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(224, 85, 85, 0.1);
}

.source-clear-all-btn.hidden {
  display: none;
}

@media (min-width: 641px) {
  .source-preview-grid.single,
  .source-preview-grid.multi {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .source-preview-grid.single,
  .source-preview-grid.multi {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .source-thumb-remove {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Create Button - Styled like Top Up button */
.create-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.5rem auto;
  max-width: 500px;
  width: 100%;
}

/* Video create row: length control + create button side by side */
.video-create-row {
  gap: 10px;
}

.video-length-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.video-length-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-duration-tabs {
  display: inline-flex;
  background: var(--wine-subtle);
  border: 1px solid var(--border-wine);
  border-radius: 999px;
  padding: 2px;
  gap: 0;
}

.video-dur-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.video-dur-btn.active {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.video-dur-btn:hover:not(.active) { color: var(--text); }

.btn-create-video {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
}

.tab-beta {
  font-size: 0.6rem;
  font-weight: 500;
  opacity: 0.6;
  vertical-align: middle;
  margin-left: 2px;
  letter-spacing: 0.02em;
}

.video-beta-disclaimer {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 8px auto 2px;
  opacity: 0.6;
}

.btn-create {
  width: 100%;
  max-width: 500px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-wine);
}

.btn-create:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 26, 26, 0.4);
}

.btn-create:active:not(:disabled) {
  transform: translateY(0);
}

.btn-create:disabled {
  background: linear-gradient(135deg, #666 0%, #555 100%);
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-create.loading {
  opacity: 0.85;
  cursor: wait;
  background: linear-gradient(135deg, #5a2a3a, #7a3a4a) !important;
  pointer-events: none;
}

.btn-create.loading .btn-spinner {
  vertical-align: middle;
}

.btn-spinner {
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

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

@media (max-width: 640px) {
  .source-preview {
    max-width: 100%;
    margin: 1rem 0;
  }

  .btn-create {
    margin: 1rem 0;
  }
}

/* Highlight animation for missing requirements */
.input-area.highlight-needed {
  border-color: var(--wine) !important;
  background: var(--wine-subtle);
  animation: pulseHighlight 0.5s ease 3;
}

@keyframes pulseHighlight {
  0%, 100% {
    border-color: var(--wine);
    box-shadow: 0 0 0 0 var(--wine-glow);
  }
  50% {
    border-color: var(--wine-light);
    box-shadow: 0 0 0 8px var(--wine-glow);
  }
}

/* Buy Diamonds Modal */
.buy-diamonds-modal-content {
  max-width: 560px;
  width: 92%;
}

@media (max-width: 640px) {
  .buy-diamonds-modal-content {
    padding: 16px 14px;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .buy-diamonds-modal-content h2 {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .buy-diamonds-modal-content .modal-subtitle {
    font-size: 11px;
    margin-bottom: 0;
  }
}

.diamond-packs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 10px;
  padding: 2px;
}

.diamond-packs-grid .diamond-pack-card {
  width: calc(50% - 5px);
}

.diamond-packs-grid .payment-method-tabs {
  width: 100%;
}

@media (min-width: 641px) {
  .diamond-packs-grid {
    gap: 14px;
    margin: 18px 0 14px;
  }
  .diamond-packs-grid .diamond-pack-card {
    width: calc(33.333% - 10px);
  }
}

.pack-loading,
.pack-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.pack-error {
  color: var(--error);
}

.payment-method-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  grid-column: 1 / -1;
}

.payment-method-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-method-tab:hover {
  color: rgba(255, 255, 255, 0.7);
}

.payment-method-tab.active {
  background: var(--wine);
  color: white;
}

.diamond-pack-card {
  position: relative;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: visible;
}

.diamond-pack-card:hover {
  border-color: var(--wine);
  background: var(--wine-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-wine);
}

.diamond-pack-card.pack-disabled {
  opacity: 0.4;
  pointer-events: auto;
  cursor: not-allowed;
}

.diamond-pack-card.pack-disabled:hover {
  border-color: var(--border);
  background: var(--surface);
  transform: none;
  box-shadow: none;
}

.pack-credits {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 2px;
}

.pack-credits-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pack-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--wine-light);
  margin-bottom: 2px;
}

@media (max-width: 640px) {
  .pack-credits {
    font-size: 22px;
  }
  .pack-price {
    font-size: 16px;
  }
  .pack-credits-label {
    margin-bottom: 6px;
  }
  .payment-method-tab {
    padding: 8px 10px;
    font-size: 12px;
  }
}

.pack-per-diamond {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

.pack-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: pack-spin 0.8s linear infinite;
  margin: 20px auto;
}

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

.diamond-pack-card.loading {
  pointer-events: none;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

/* Mobile: Smaller pack cards */
@media (max-width: 640px) {
  .pack-credits {
    font-size: 28px;
    margin-bottom: 2px;
  }

  .pack-credits-label {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .pack-price {
    font-size: 20px;
    margin-bottom: 2px;
  }

  .pack-per-diamond {
    font-size: 9px;
  }

  .diamond-pack-card {
    padding: 16px 12px;
  }
}

.pack-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.pack-badge-popular {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-dark) 100%);
  color: white;
}

.pack-badge-value {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
}

.trust-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.trust-signals-compact {
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
}

.trust-signal {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--bg-elevated);
  border-radius: 6px;
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .trust-signals {
    gap: 8px;
  }

  .trust-signal {
    font-size: 10px;
    padding: 5px 8px;
  }
}

/* Color Picker Section */
.color-picker-section {
  margin-top: 16px;
}

.color-picker-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--wine-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.color-picker-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.color-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  position: relative;
  flex-shrink: 0;
}

.color-circle:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-circle.selected {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px var(--wine-glow);
}

.color-circle-custom {
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.3), transparent 60%), #8b2942;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.color-circle-custom .picker-icon {
  width: 18px;
  height: 18px;
  color: white;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.color-circle-custom input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

@media (max-width: 640px) {
  .color-circle {
    width: 36px;
    height: 36px;
  }

  .color-picker-grid {
    gap: 8px;
  }
}

/* Referral Callout */
.referral-callout {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(139, 69, 89, 0.15) 0%, rgba(100, 18, 18, 0.25) 100%);
  border: 1px solid rgba(139, 69, 89, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.referral-callout-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.referral-callout-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.referral-callout-text strong {
  color: var(--text);
  font-size: 13px;
}

.referral-callout-text span {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.3;
}

.btn-referral-copy {
  background: var(--wine);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  text-align: center;
}

.btn-referral-copy:hover {
  background: var(--wine-light);
}

/* Retry button on gallery items */
.retry-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 5;
  padding: 0;
  line-height: 1;
}

.gallery-item:hover .retry-btn {
  opacity: 1;
}

.retry-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.1);
}

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


/* ─────────────────────────────────────────────────────────────
   MODERNIZATION LAYER — wine red polish + glassmorphism
   ───────────────────────────────────────────────────────────── */

/* Better body font */
body {
  font-family: Inter, 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 800px 500px at 50% 0%, rgba(139, 26, 26, 0.06) 0%, transparent 70%);
  background-attachment: fixed;
}

/* Header — glassmorphism */
.header {
  background: rgba(30, 16, 16, 0.75);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(139, 26, 26, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Cards — slightly more rounded, glass tint */
.style-selector,
.input-area,
.gallery-section,
.modal-content,
.tooltip-content {
  border-radius: var(--radius);
}

.style-item {
  border-radius: var(--radius-sm);
}

.gallery-item {
  border-radius: var(--radius);
}

/* Buttons — pill shape + richer shadows */
.btn-primary {
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-light) 100%);
  box-shadow: 0 3px 14px rgba(139, 26, 26, 0.4);
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139, 26, 26, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(139, 26, 26, 0.3);
}

.btn-secondary {
  border-radius: var(--radius-pill);
}

.btn-buy {
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-light) 100%);
}

.btn-input {
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
}

/* Input upload area — richer wine accent */
.input-area {
  border-color: var(--border);
  background: rgba(30, 16, 16, 0.6);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-area:hover {
  border-color: rgba(139, 26, 26, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.06);
}

/* Gallery item hover */
.gallery-item:hover {
  border-color: var(--wine-light);
  box-shadow: 0 8px 28px rgba(139, 26, 26, 0.3);
}

/* Style item selected glow */
.style-item.selected {
  box-shadow: 0 0 0 3px var(--wine-glow), 0 4px 12px rgba(139, 26, 26, 0.25);
}

/* Modal — glass effect */
.modal-content {
  background: rgba(24, 12, 12, 0.92);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(139, 26, 26, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Modal close button */
.modal-close {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.modal-close:hover {
  background: var(--wine-subtle);
  color: var(--wine-light);
}

/* OTP inputs — wine red focus */
.otp-digit:focus {
  border-color: var(--wine-light) !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
  outline: none;
}

/* Toggle switch wine accent */
.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--wine), var(--wine-light));
}

/* Scrollbar — wine tinted */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 26, 26, 0.35);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(192, 57, 43, 0.5);
}

/* Selection color */
::selection {
  background: rgba(192, 57, 43, 0.3);
  color: white;
}

/* Smooth transitions on interactive elements */
a, button, input, .style-item, .gallery-item {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile improvements */
@media (max-width: 640px) {
  .btn-primary {
    padding: 10px 16px;
    font-size: 13px;
  }

  .modal-content {
    border-radius: var(--radius) var(--radius) 0 0;
    margin-bottom: 0;
  }

  .gallery-item {
    border-radius: var(--radius-sm);
  }
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--wine-light);
  outline-offset: 2px;
}


/* ─────────────────────────────────────────────────────────────
   RETENTION FEATURES — countdown pill, install btn, referral
   ───────────────────────────────────────────────────────────── */

/* Diamond refill countdown pill — mobile header, replaces Top Up when low */
.refill-countdown-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--wine, #8b1a1a);
  border: none;
  border-radius: var(--radius-pill, 999px);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.refill-countdown-pill:hover {
  background: var(--wine-light, #c0392b);
}

/* Footer PWA install button */
.footer-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border-wine, rgba(139,26,26,0.4));
  border-radius: var(--radius-pill, 999px);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.footer-install-btn:hover {
  border-color: var(--wine-light, #c0392b);
  color: var(--wine-light, #c0392b);
}

/* Shared pill style for Account + Add to Home in footer */
.footer-pill-btn {
  background: rgba(139, 41, 66, 0.12);
  border: 1px solid rgba(139, 41, 66, 0.25);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.footer-pill-btn:hover {
  background: rgba(139, 41, 66, 0.22);
  color: var(--text);
  border-color: rgba(139, 41, 66, 0.45);
}

/* Modal refill footnote — quiet bottom line */
.modal-refill-footnote {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim, #6a6060);
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}

.modal-refill-footnote span {
  color: var(--text-muted, #9a9090);
  font-weight: 600;
}

/* Top-up modal: referral callout spacing */
.topup-referral-callout {
  margin-top: 14px;
}

/* Referral section in buy modal */
.referral-section {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border, #2c1a1a);
  border-radius: 10px;
}

.referral-earn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.referral-earn-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted, #b8aead);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.referral-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.referral-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #ede8e8);
}

.referral-rewards {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.referral-reward {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(139, 26, 26, 0.2);
  border: 1px solid rgba(192, 57, 43, 0.3);
  color: #e07070;
}

.referral-reward-paid {
  background: rgba(63, 176, 108, 0.15);
  border-color: rgba(63, 176, 108, 0.3);
  color: #6dd99a;
}

.referral-link-row {
  display: flex;
  gap: 8px;
}

.referral-link-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  background: var(--bg, #0d0808);
  border: 1px solid var(--border, #2c1a1a);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted, #b8aead);
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: text;
}

.referral-link-input:focus {
  outline: none;
  border-color: var(--wine-light, #c0392b);
}

.referral-copy-btn {
  padding: 8px 14px;
  background: var(--wine, #8b1a1a);
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.referral-copy-btn:hover {
  background: var(--wine-light, #c0392b);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .refill-countdown-pill {
    padding: 4px 8px;
    font-size: 11px;
  }

  .btn-install {
    padding: 5px 8px;
    font-size: 11px;
  }

  .referral-link-row {
    flex-direction: column;
  }

  .referral-copy-btn {
    width: 100%;
    padding: 10px;
  }
}

/* ── Video Feature Styles ────────────────────────────────────────────────── */

/* Style selector header — flex row with label + Photo/Video toggle */
.style-selector-header {
  display: none;
}

/* Photo / Video toggle inline with Style label */
.style-type-tabs {
  display: flex;
  justify-content: center;
  background: var(--wine-subtle);
  border: 1px solid var(--border-wine);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
  width: fit-content;
  margin: 0 auto 4px;
}
.style-type-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.style-type-tab:hover { color: var(--text); }
.style-type-tab.active {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* Gallery video tile — #t=0.001 shows first frame, poster=inputUrl as fallback */
.gallery-video-thumb {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.gallery-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Video style grid — portrait tiles, 3 columns mobile / auto desktop */
.video-style-grid {
  margin-top: 0;
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (min-width: 641px) {
  .video-style-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 130px)) !important;
  }
}

/* Playbox card */
.video-style-item {
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  width: 100%;
  /* Force 9:16 portrait via padding-top trick — works with absolutely-positioned children */
  height: 0;
  padding-top: calc(16 / 9 * 100%);
}
.video-style-item .vs-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.video-style-item .vs-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.2s;
}
.video-style-item.playing .vs-video { opacity: 1; }
.video-style-item.playing .vs-thumb { opacity: 0; }

/* Source photo — top-left */
.video-style-item .vs-source {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 2;
}

/* Play button overlay (mobile) */
.video-style-item .vs-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.video-style-item .vs-play-btn svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
  transition: opacity 0.2s;
}
.video-style-item.playing .vs-play-btn svg { opacity: 0; }
@media (min-width: 641px) {
  .video-style-item .vs-play-btn { display: none; }
}

/* Style name */
.video-style-item .vs-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 8px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  z-index: 2;
  text-align: center;
}

/* Selected state */
.video-style-item.selected {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Legacy fallback (non-playbox) */
.video-style-item .video-style-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 8px;
  aspect-ratio: 9/16;
  min-height: 80px;
}

/* Video source indicator */
.video-source-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.video-source-clear {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
}
.video-source-clear:hover { color: var(--text); }



/* Video output in gallery */
.gallery-item--video-output { position: relative; }
.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* ===== Feedback Modal ===== */

.feedback-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.feedback-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  width: 90%;
  max-width: 360px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.feedback-close-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.feedback-close-btn:hover { color: var(--text); border-color: var(--border-wine); }
.feedback-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wine-light);
  margin-bottom: 0.35rem;
}
.feedback-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
  line-height: 1.3;
}
.feedback-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.feedback-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 0.5rem;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.feedback-option:hover { border-color: var(--border-wine); background: var(--bg-hover); transform: translateY(-1px); }
.feedback-option.selected { border-color: var(--wine); background: var(--wine-subtle); }
.feedback-emoji { font-size: 1.6rem; line-height: 1; }
.feedback-opt-label { font-size: 0.68rem; color: var(--text-dim); font-weight: 600; letter-spacing: 0.02em; }
.feedback-option.selected .feedback-opt-label { color: var(--wine-light); }
.feedback-textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  padding: 0.75rem;
  resize: none;
  font-family: inherit;
  margin-bottom: 0.75rem;
  min-height: 80px;
}
.feedback-textarea:focus { outline: none; border-color: var(--border-wine); }
.feedback-comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.feedback-charcount { font-size: 0.65rem; color: var(--text-dim); white-space: nowrap; }
.feedback-submit-btn {
  padding: 0.6rem 1.25rem;
  background: var(--wine);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.feedback-submit-btn:hover { background: var(--wine-light); }
#feedback-thankyou { text-align: center; padding: 0.5rem 0 0.25rem; }
/* Success state */
.feedback-success-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--wine-subtle);
  border: 1.5px solid var(--border-wine);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--wine-light);
  margin: 0 auto 1rem;
}
.feedback-success-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ===== Custom Style Tile & Modal ===== */
.custom-prompt-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.custom-prompt-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.custom-prompt-modal h2 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; padding-right: 1.5rem; }
.custom-prompt-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  background: none; border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim); font-size: 0.85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.custom-prompt-close:hover { color: var(--text); border-color: var(--border-wine); }
.custom-prompt-textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.75rem;
  resize: none;
  font-family: inherit;
  margin-bottom: 0.25rem;
  min-height: 90px;
}
.custom-prompt-textarea:focus { outline: none; border-color: var(--border-wine); box-shadow: var(--shadow-wine); }
.custom-prompt-note { font-size: 0.72rem; color: var(--text-muted); margin: -0.5rem 0 0.75rem; line-height: 1.4; opacity: 0.8; }
.custom-prompt-charcount { font-size: 0.65rem; color: var(--text-dim); text-align: right; margin-bottom: 0.85rem; }
.custom-prompt-actions { display: flex; gap: 0.6rem; }
.custom-prompt-apply {
  flex: 1;
  padding: 0.7rem;
  background: var(--wine);
  border: none; border-radius: var(--radius-sm);
  color: #fff; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.custom-prompt-apply:hover { background: var(--wine-light); }
.custom-prompt-cancel {
  padding: 0.7rem 1.1rem;
  background: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.9rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.custom-prompt-cancel:hover { border-color: var(--border-wine); color: var(--text); }

/* -- Video custom tile in style grid -------------------------------- */

.video-style-item--custom .vs-thumb--custom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  padding: 12px;
}

.vs-custom-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.video-style-item--custom.selected .vs-custom-text {
  color: var(--wine-light);
}

/* -- Video custom prompt modal examples ----------------------------- */

.video-custom-prompt-examples {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 0.75rem;
}

.video-custom-prompt-examples-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.video-custom-prompt-examples ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-custom-prompt-examples li {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding-left: 14px;
  position: relative;
}

.video-custom-prompt-examples li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--wine-light);
  font-size: 0.65rem;
}


/* Style-item custom tile preview text */
.style-thumbnail--custom {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  padding: 6px;
}
.style-thumbnail-custom-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.style-item.selected .style-thumbnail-custom-text {
  color: var(--wine-light);
}
/* legacy — hide old preview element */
.style-item-custom-preview {
  font-size: 0.6rem;
  color: #a78bfa;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

/* Delete Account Button */
.btn-delete-account {
  margin-top: 8px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  font-size: 0.85rem;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.btn-delete-account:hover {
  opacity: 1;
  color: #ff4444;
  border-color: rgba(255, 68, 68, 0.3);
  background: rgba(255, 68, 68, 0.05);
}

/* Delete Account Modal */
.delete-account-modal-content {
  max-width: 520px;
}

.delete-account-warnings {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 68, 68, 0.05);
  border: 1px solid rgba(255, 68, 68, 0.15);
  border-radius: 8px;
}

.delete-account-warnings p {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.delete-account-warnings ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.delete-account-warnings li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.delete-account-warnings li:last-child {
  margin-bottom: 0;
}

.delete-account-warnings strong {
  color: #ff4444;
  font-weight: 600;
}

.delete-account-confirmation {
  margin: 1.5rem 0;
}

.delete-confirm-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.delete-confirm-label code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #ff4444;
}

.delete-confirm-input {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.delete-confirm-input:focus {
  outline: none;
  border-color: #ff4444;
  background: rgba(0, 0, 0, 0.4);
}

.delete-confirm-input.valid {
  border-color: #44ff44;
}

.delete-account-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.delete-account-actions button {
  flex: 1;
}

.btn-danger {
  background: #ff4444;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover:not(:disabled) {
  background: #ff2222;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 68, 68, 0.4);
}

.btn-danger:active:not(:disabled) {
  transform: translateY(0);
}

.btn-danger:disabled {
  background: rgba(255, 68, 68, 0.3);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Farewell Screen */
.farewell-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.farewell-content {
  text-align: center;
  padding: 2rem;
  max-width: 500px;
}

.farewell-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ff6b9d 0%, #ffc371 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.farewell-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.farewell-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
