/* Premium Minimalist Light-Themed CSS Design System - MellowTube */

:root {
  --bg-color: #faf9fb;
  --text-color: #2b252d;
  --text-muted: #79717e;
  --card-bg: #ffffff;
  --card-border: #e3dee5;
  --accent-color: #654a5a;
  --accent-hover: #523b49;
  --secondary-accent: #ffb938; /* yellow stroke marker */
  --underline-accent: #38bdf8; /* blue underline marker */
  --success-color: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --error-bg: #fef2f2;
  --error-border: #fca5a5;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --handwriting-font: 'Caveat', cursive;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Core Container */
.app-container {
  width: 100%;
  max-width: 720px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1;
}

/* Header */
.app-header {
  text-align: center;
}

.brand {
  font-family: var(--handwriting-font);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.brand-accent {
  background-color: var(--secondary-accent);
  color: #1e1b20;
  padding: 0 0.5rem 0.2rem 0.5rem;
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-2.5deg);
  font-weight: 700;
}

.tagline {
  font-family: var(--handwriting-font);
  font-size: 1.45rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.15rem;
}

/* Main Card */
.main-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 35px rgba(101, 74, 90, 0.06);
}

.main-title {
  font-family: var(--handwriting-font);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.marker-underline {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.marker-underline::after {
  content: '';
  position: absolute;
  left: -2px;
  bottom: 6px;
  width: 104%;
  height: 6px;
  background-color: var(--underline-accent);
  border-radius: 10px;
  z-index: -1;
}

.description {
  font-family: var(--handwriting-font);
  font-size: 1.45rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 2rem;
}

/* URL Input Section */
.input-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.input-wrapper {
  position: relative;
  flex-grow: 1;
}

.link-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.input-wrapper input {
  width: 100%;
  background: #f4f1f5;
  border: 1.5px solid var(--card-border);
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1.1rem 3.2rem;
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}

.input-wrapper input:focus {
  border-color: var(--accent-color);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(101, 74, 90, 0.08);
}

.input-wrapper input:focus + .link-icon {
  color: var(--accent-color);
}

.action-btn {
  background: var(--accent-color);
  border: none;
  border-radius: 14px;
  padding: 0 1.75rem;
  color: #ffffff;
  font-family: var(--handwriting-font);
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s;
}

.action-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1.5deg);
}

.action-btn:active {
  transform: translateY(0);
}

.arrow-icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.3s;
}

.action-btn:hover .arrow-icon {
  transform: translateX(3px);
}

/* Error Box */
.error-box {
  background: var(--error-bg);
  border: 1.5px solid var(--error-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #dc2626;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  animation: fadeIn 0.4s ease-out;
}

/* Skeleton Loading Shimmer */
.skeleton-card {
  display: flex;
  gap: 1.5rem;
  border: 1.5px solid var(--card-border);
  border-radius: 18px;
  padding: 1.5rem;
  background: #fcfbfe;
}

.skeleton-thumbnail {
  width: 180px;
  height: 101px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f4f1f5 25%, #e3dee5 50%, #f4f1f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-line {
  height: 1rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #f4f1f5 25%, #e3dee5 50%, #f4f1f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.title {
  width: 85%;
  height: 1.5rem;
}

.skeleton-line.author {
  width: 45%;
}

.skeleton-line.button-row {
  width: 100%;
  height: 2.25rem;
  margin-top: 0.5rem;
}

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

/* Video Preview & Download Card */
.result-card {
  display: flex;
  gap: 1.75rem;
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 1.75rem;
  background: #fcfbfe;
  animation: fadeIn 0.5s ease-out;
}

.video-preview {
  position: relative;
  width: 200px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--card-border);
}

.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.video-details {
  flex-grow: 1;
}

.video-title {
  font-family: var(--handwriting-font);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-author {
  font-family: var(--handwriting-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.format-header {
  font-family: var(--handwriting-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.quality-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.quality-btn {
  flex: 1;
  min-width: 80px;
  background: #f4f1f5;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  padding: 0.5rem 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.quality-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.quality-btn:hover .resolution,
.quality-btn:hover .badge,
.quality-btn:hover .size-badge {
  color: #ffffff !important;
}

.quality-btn .resolution {
  font-family: var(--handwriting-font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1;
}

.quality-btn .badge {
  font-family: var(--handwriting-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.1rem;
  line-height: 1;
}

.size-badge {
  font-family: var(--handwriting-font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 0.1rem;
  line-height: 1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  width: 100%;
  background: transparent;
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--card-border);
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #2b252d;
  line-height: 1.1;
}
.logo-title span {
  color: #ff7a00;
}
.logo-subtitle {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-btn {
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.coffee-btn {
  border: 1.5px solid #ff7a00;
  color: #ff7a00;
  background: transparent;
}
.coffee-btn:hover {
  background: rgba(255, 122, 0, 0.05);
}
.coffee-btn svg {
  width: 0.95rem;
  height: 0.95rem;
}
.nav-pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.sandbox-pill {
  background: #fff8f0;
  border: 1.5px solid #ffe8cc;
  color: #d97706;
}
.status-dot {
  width: 7px;
  height: 7px;
  background-color: #f97316;
  border-radius: 50%;
  animation: pulse 1.5s infinite alternate;
}
@keyframes pulse {
  0% { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* FAQ Section */
.faq-section {
  margin-top: 3rem;
  padding: 1.5rem 0;
  animation: fadeIn 0.6s ease-out;
}
.faq-title {
  font-family: var(--font-family);
  font-size: 1.85rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.faq-subtitle {
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: #ffffff;
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: #ff7a00;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.03);
}
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.15rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: left;
  transition: color 0.25s;
}
.faq-trigger:hover {
  color: #ff7a00;
}
.faq-arrow {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: #ff7a00;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}
.faq-item.active .faq-content {
  max-height: 200px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}
.faq-content p {
  font-family: var(--font-family);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Collab CTA Banner */
.collab-cta-card {
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
  border: 1.5px solid #ffedd5;
  border-radius: 24px;
  padding: 2rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 8px 30px rgba(251, 146, 60, 0.04);
  animation: fadeIn 0.6s ease-out;
}
.collab-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.collab-content h3 {
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e1b20;
}
.collab-content p {
  font-family: var(--font-family);
  font-size: 0.9rem;
  color: #57534e;
  line-height: 1.5;
}
.collab-btn {
  background: #ff7a00;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.15);
  flex-shrink: 0;
}
.collab-btn:hover {
  background: #ea580c;
  transform: translateY(-2px);
}
.collab-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Aligned Footer Styling */
.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1.5px solid var(--card-border);
  margin-top: 3rem;
  font-family: var(--font-family);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-left {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.love-credit {
  font-size: 0.82rem;
  color: #79717e;
  font-weight: 500;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.25s ease;
}
.footer-right a:hover {
  color: #ff7a00;
}
.footer-icon {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 2px;
}
.footer-divider {
  width: 4px;
  height: 4px;
  background-color: var(--card-border);
  border-radius: 50%;
}
.mellowkraft-cta {
  color: #ff7a00;
  font-weight: 700;
  text-decoration: none;
}
.mellowkraft-cta:hover {
  text-decoration: underline;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 37, 45, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10005;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  padding: 2.25rem;
  box-shadow: 0 15px 40px rgba(101, 74, 90, 0.12);
  animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--card-border);
  padding-bottom: 0.75rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.25s;
}

.close-modal-btn:hover {
  color: var(--text-color);
}

.modal-body {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
}

.modal-body p {
  margin-bottom: 1rem;
}

/* About Developer Modal Styles */
#logo-trigger {
  cursor: pointer;
  transition: transform 0.2s ease;
}
#logo-trigger:hover {
  transform: scale(1.02);
}

.about-modal-content {
  max-width: 400px;
  text-align: center;
}
.about-avatar-container {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #dbeafe;
  border: 3.5px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto 1.5rem auto;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}
.about-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.about-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
}
.close-btn-blue {
  width: 100%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.close-btn-blue:hover {
  background: #1d4ed8;
}
.close-btn-blue:active {
  transform: scale(0.98);
}

/* Coffee Modal Styles */
.coffee-modal-content {
  max-width: 420px;
  text-align: center;
}
.coffee-icon-container {
  width: 56px;
  height: 56px;
  background: #fff8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}
.coffee-icon-modal {
  width: 28px;
  height: 28px;
  color: #ff7a00;
}
.coffee-subtitle {
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.qr-container {
  background: #ffffff;
  border: 1.5px solid var(--card-border);
  border-radius: 24px;
  padding: 1.5rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(101, 74, 90, 0.03);
}
.qr-image {
  width: 240px;
  height: 240px;
  display: block;
}
.upi-box {
  background: #f4f1f5;
  border: 1.5px solid var(--card-border);
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 1.5rem 0;
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 700;
}
.upi-label {
  color: var(--text-muted);
}
.upi-value {
  color: var(--text-color);
}
.close-btn-action {
  width: 100%;
  background: linear-gradient(135deg, #ff7a00 0%, #654a5a 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 0.85rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.25);
  transition: all 0.25s ease;
}
.close-btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
}

/* Easter Egg Love Card */
.love-card {
  border: 1.5px solid rgba(244, 63, 94, 0.3);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
}

.love-title {
  color: #e11d48;
}

.love-body {
  text-align: center;
}

.love-message {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #4c0519;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.love-hearts {
  font-size: 1.5rem;
  animation: heartbeat 1.2s infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Loader Overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 249, 251, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.loader-content {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  max-width: 440px;
  box-shadow: 0 15px 45px rgba(101, 74, 90, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f4f1f5;
  border-left-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

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

.loader-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-color);
}

.loader-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Glassmorphic Success Toast */
.success-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--success-bg);
  border: 1.5px solid var(--success-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10001;
  max-width: 380px;
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success-color);
  flex-shrink: 0;
}

.toast-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.toast-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--text-color);
}

.toast-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.close-toast-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.25s;
  align-self: flex-start;
}

.close-toast-btn:hover {
  color: var(--text-color);
}

.close-toast-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

@keyframes slideIn {
  0% {
    transform: translateY(1.5rem) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Animations Helpers */
.hidden {
  display: none !important;
}

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

/* Responsive adjustments */
@media (max-width: 600px) {
  body {
    padding-top: 0;
  }
  .navbar {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 0;
    align-items: center;
    border-bottom: none;
  }
  .nav-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.6rem;
  }
  .nav-btn, .nav-pill {
    width: auto;
    min-width: 250px;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }
  .app-container {
    padding: 1rem;
    gap: 1.5rem;
  }
  .main-card {
    padding: 1.5rem;
  }
  .input-section {
    flex-direction: column;
  }
  .action-btn {
    padding: 1.1rem;
    justify-content: center;
  }
  .result-card {
    flex-direction: column;
    align-items: center;
  }
  .video-preview {
    width: 100%;
    height: 160px;
  }
  .quality-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .collab-cta-card {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  .collab-btn {
    width: 100%;
    justify-content: center;
  }
  .app-footer {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    padding-top: 1.5rem;
  }
  .footer-left {
    text-align: center;
  }
  .footer-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .success-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
  .coffee-modal-content {
    padding: 1.5rem;
    width: 95%;
  }
  .qr-container {
    padding: 1rem;
    border-radius: 16px;
  }
  .qr-image {
    width: 190px;
    height: 190px;
  }
  .upi-box {
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    margin: 1rem 0;
  }
}
