/**
 * Video Downloader Pro — Modern Mobile App UI
 * Elevated Design System (2026 Edition)
 * Strictly preserves all AdSense/AdX slots, classes, and layout rules.
 */

:root {
  /* Core Brand & Neutral Palette */
  --vd-ink: #0f172a;
  --vd-mute: #64748b;
  --vd-line: #e2e8f0;
  --vd-paper: #ffffff;
  --vd-wash: #f8fafc;
  --vd-ad: #f8fafc;
  
  /* Vibrant Accent Gradients */
  --vd-primary: #4f46e5;
  --vd-primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --vd-green-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --vd-blue-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --vd-pink-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  --vd-purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --vd-orange-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

  /* Social Brand Colors */
  --vd-ig-gradient: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  --vd-fb-gradient: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
  --vd-wa-gradient: linear-gradient(135deg, #25d366 0%, #1da851 100%);

  /* Geometry & Metrics */
  --vd-radius: 20px;
  --vd-radius-sm: 14px;
  --vd-pad: 16px;
  --vd-max: 430px;
  --vd-tab: 68px;
  --vd-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows & Depth */
  --vd-shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  --vd-shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --vd-shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.vd-body {
  min-height: 100dvh;
  background: #0b0f19;
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
  color: var(--vd-ink);
  font-family: var(--vd-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link for accessibility */
.vd-skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.vd-skip:focus {
  left: 8px;
  z-index: 40;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
}

.vd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Navigation loading overlay */
.vd-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 600;
}

.vd-nav-overlay[hidden],
.vd-dialog[hidden],
[hidden] {
  display: none !important;
}

.vd-nav-overlay p {
  margin: 0;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--vd-shadow-lg);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* Mobile Frame Container */
.vd-frame {
  width: 100%;
  max-width: var(--vd-max);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--vd-paper);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.35);
}

.vd-shell {
  padding: 0 0 calc(var(--vd-tab) + env(safe-area-inset-bottom, 0px) + 16px);
  min-height: 100dvh;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.vd-shell-platforms {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

/* Headers */
.vd-hub-head,
.vd-select-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--vd-pad) 10px;
}

.vd-hub-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vd-select-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--vd-ink);
}

.vd-select-title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-top: 8px;
  background: var(--vd-primary-gradient);
  border-radius: 999px;
}

.vd-select-sub {
  margin: 8px 0 0;
  color: var(--vd-mute);
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 20rem;
}

.vd-topbar {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.vd-topbar-title {
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vd-ink);
}

.vd-icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--vd-ink);
  text-decoration: none;
  border-radius: 12px;
  background: #f1f5f9;
  transition: all 0.2s ease;
}

.vd-icon-btn:active {
  transform: scale(0.92);
  background: #e2e8f0;
}

.vd-icon-btn:focus-visible,
.vd-btn:focus-visible,
.vd-tab:focus-visible,
.vd-feature:focus-visible,
.vd-social:focus-visible,
.vd-platform-btn:focus-visible,
.vd-switch:focus-visible,
.vd-explore a:focus-visible {
  outline: 3px solid #6366f1;
  outline-offset: 2px;
}

/* Sponsor & Ad Badges */
.vd-sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
}

.vd-sponsor-round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f172a;
  display: grid;
  place-items: center;
  box-shadow: var(--vd-shadow-sm);
}

.vd-sponsor-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #0f172a;
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
}

.vd-sponsor-round .vd-sponsor-badge {
  background: transparent;
  padding: 0;
}

.vd-sponsor-text {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

/* First fold ad wrapper */
.vd-first-fold {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 var(--vd-pad) 4px;
  box-sizing: border-box;
}

.vd-first-fold .vd-hub-head,
.vd-first-fold .vd-topbar {
  flex-shrink: 0;
  padding-left: 0;
  padding-right: 0;
}

/* ============================================================================== */
/* AD CONTAINERS (Strictly compliant with Google AdSense / AdX rules)              */
/* ============================================================================== */
.vd-ad {
  position: relative;
  z-index: 0;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 6px var(--vd-pad) 14px;
  background: var(--vd-ad);
  border: 1px solid #e2e8f0;
  border-radius: var(--vd-radius-sm);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vd-ad-fold {
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 100px;
  margin: 6px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vd-shell-hub > .vd-ad,
.vd-first-fold .vd-ad {
  margin-left: 0;
  margin-right: 0;
}

.vd-ad-native,
.vd-ad-infeed {
  min-height: 250px;
}

.vd-ad-label {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
  backdrop-filter: blur(4px);
}

.vd-ad ins.adsbygoogle {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto;
}

.vd-ad-fold ins.adsbygoogle {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
}

.vd-ad iframe {
  max-width: 100% !important;
  max-height: 100% !important;
}

/* ============================================================================== */
/* MODERN FEATURE CARDS & GRIDS                                                  */
/* ============================================================================== */
.vd-feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--vd-radius);
  padding: 16px;
  box-shadow: var(--vd-shadow-md);
  min-height: 132px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.vd-feature:active {
  transform: scale(0.975);
  box-shadow: var(--vd-shadow-sm);
}

.vd-feature-wide {
  flex-direction: row;
  align-items: center;
  margin: 6px var(--vd-pad) 14px;
  min-height: 88px;
  padding: 14px 18px;
}

.vd-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 var(--vd-pad);
  margin-bottom: 14px;
}

.vd-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -3px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.vd-feature:active .vd-feature-icon {
  transform: scale(0.92);
}

.vd-theme-green .vd-feature-icon { background: var(--vd-green-gradient); }
.vd-theme-blue .vd-feature-icon { background: var(--vd-blue-gradient); }
.vd-theme-pink .vd-feature-icon { background: var(--vd-pink-gradient); }
.vd-theme-purple .vd-feature-icon { background: var(--vd-purple-gradient); }
.vd-theme-orange .vd-feature-icon { background: var(--vd-orange-gradient); }

.vd-feature strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vd-ink);
}

.vd-feature span {
  color: var(--vd-mute);
  font-size: 12.5px;
  line-height: 1.35;
}

.vd-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.vd-view {
  margin-left: auto;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 38px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.2);
}

.vd-view-green { background: var(--vd-green-gradient); }
.vd-view-orange { background: var(--vd-orange-gradient); }

/* Blocks and Sections */
.vd-block {
  padding: 10px var(--vd-pad) 6px;
}

.vd-section-h {
  margin: 6px 0 14px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--vd-ink);
}

.vd-section-h-center {
  text-align: center;
}

/* ============================================================================== */
/* SOCIAL PLATFORM CARDS                                                          */
/* ============================================================================== */
.vd-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vd-social {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 16px;
  border-radius: var(--vd-radius-sm);
  text-decoration: none;
  color: var(--vd-ink);
  font-weight: 700;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--vd-shadow-sm);
  transition: all 0.2s ease;
}

.vd-social:active {
  transform: scale(0.96);
  box-shadow: none;
}

.vd-social-ig {
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 100%);
  border-color: #fbcfe8;
}

.vd-social-fb {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-color: #bfdbfe;
}

.vd-social-wa {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #bbf7d0;
}

.vd-social-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.15);
}

.vd-social-ig .vd-social-mark { background: var(--vd-ig-gradient); }
.vd-social-fb .vd-social-mark { background: var(--vd-fb-gradient); }
.vd-social-wa .vd-social-mark { background: var(--vd-wa-gradient); }

/* Explore Tools Grid */
.vd-explore {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
}

.vd-explore a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--vd-ink);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease;
}

.vd-explore a:active {
  transform: scale(0.92);
}

.vd-explore-ico {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--vd-shadow-md);
}

.vd-ico-blue { background: var(--vd-blue-gradient); }
.vd-ico-pink { background: var(--vd-pink-gradient); }
.vd-ico-green { background: var(--vd-green-gradient); }
.vd-ico-purple { background: var(--vd-purple-gradient); }

/* Platform Switcher Buttons */
.vd-platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px var(--vd-pad) 20px;
}

.vd-platform-btn {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 14px 12px;
  border-radius: var(--vd-radius-sm);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--vd-ink);
  font: inherit;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}

.vd-platform-btn.is-on {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.3);
}

.vd-platform-btn:active {
  transform: scale(0.96);
}

/* ============================================================================== */
/* BUTTONS, INPUTS, AND CONTROLS                                                  */
/* ============================================================================== */
.vd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vd-btn:active {
  transform: scale(0.97);
}

.vd-btn-dark {
  background: #0f172a;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.25);
}

.vd-btn-dark:hover {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.vd-btn-ghost {
  background: #f1f5f9;
  color: var(--vd-ink);
  border: 1px solid #e2e8f0;
}

.vd-btn-ghost:hover {
  background: #e2e8f0;
}

.vd-btn-wide {
  margin: 12px var(--vd-pad);
  width: calc(100% - (var(--vd-pad) * 2));
}

.vd-btn-center {
  max-width: 280px;
  margin: 0 auto;
}

.vd-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 var(--vd-pad);
  margin-top: 14px;
}

/* Switch Toggle */
.vd-private-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--vd-pad);
  font-weight: 600;
  font-size: 14px;
  color: var(--vd-ink);
}

.vd-switch {
  width: 50px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: #cbd5e1;
  padding: 3px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.vd-switch[aria-checked="true"] {
  background: #10b981;
}

.vd-switch-thumb {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateX(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vd-switch[aria-checked="true"] .vd-switch-thumb {
  transform: translateX(20px);
}

/* URL Input & Paste Wrap */
.vd-url-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px var(--vd-pad) 0;
  padding: 6px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  min-height: 54px;
  background: #ffffff;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vd-url-wrap:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.vd-url-wrap input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 14px;
  min-width: 0;
  background: transparent;
  color: var(--vd-ink);
}

.vd-url-ico {
  color: #94a3b8;
  display: grid;
  place-items: center;
}

.vd-private-panel {
  padding: 16px var(--vd-pad) 8px;
  display: none;
}

.vd-private-panel.is-emphasis {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.vd-status {
  min-height: 1.4em;
  margin: 14px var(--vd-pad) 0;
  color: var(--vd-mute);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
}

.vd-result,
.vd-empty {
  margin: 14px var(--vd-pad);
  padding: 18px;
  border-radius: var(--vd-radius-sm);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--vd-shadow-sm);
}

.vd-result h2,
.vd-empty h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--vd-ink);
}

.vd-result p,
.vd-empty p {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--vd-mute);
  line-height: 1.5;
}

.vd-result a {
  color: #4f46e5;
  font-weight: 600;
  word-break: break-all;
}

.vd-fine {
  margin: 12px var(--vd-pad) 0;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
  line-height: 1.4;
}

.vd-lead {
  margin: 6px var(--vd-pad) 14px;
  color: var(--vd-mute);
  font-size: 14px;
}

.vd-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 var(--vd-pad);
}

.vd-text {
  min-height: 50px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--vd-radius-sm);
  padding: 10px 16px;
  font: inherit;
  font-size: 14.5px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.vd-text:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.vd-result-text {
  margin: 12px var(--vd-pad);
  padding: 14px;
  background: #ffffff;
  border-radius: var(--vd-radius-sm);
  border: 1px solid #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  color: #4f46e5;
  word-break: break-all;
  box-shadow: var(--vd-shadow-sm);
}

/* Media Players */
.vd-video {
  width: calc(100% - 32px);
  margin: 14px 16px 0;
  border-radius: 16px;
  background: #000;
  max-height: 250px;
  box-shadow: var(--vd-shadow-md);
}

.vd-video-portrait {
  max-height: 440px;
}

.vd-file-label {
  margin: 0 var(--vd-pad);
  width: calc(100% - (var(--vd-pad) * 2));
}

/* ============================================================================== */
/* BOTTOM TABBAR (Frosted Glassmorphism)                                          */
/* ============================================================================== */
.vd-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--vd-max);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.vd-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  background: none;
  border: 0;
  color: #94a3b8;
  text-decoration: none;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.vd-tab svg {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vd-tab:active svg {
  transform: scale(0.85);
}

.vd-tab.is-on {
  color: #0f172a;
  font-weight: 700;
}

.vd-tab.is-on svg {
  color: #4f46e5;
  stroke: #4f46e5;
  transform: translateY(-1px);
}

/* ============================================================================== */
/* MODAL DIALOG (Rewarded Video Ad & Prompts)                                      */
/* ============================================================================== */
.vd-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: end center;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 16px;
  animation: modalFadeIn 0.25s ease;
}

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

.vd-dialog-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 24px;
  padding: 22px 20px 18px;
  box-shadow: var(--vd-shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.vd-dialog-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--vd-ink);
}

.vd-dialog-card p {
  margin: 0 0 16px;
  color: var(--vd-mute);
  font-size: 14px;
  line-height: 1.5;
}

.vd-dialog-actions {
  display: grid;
  gap: 10px;
}

/* Desktop Gate (Hidden completely) */
.vd-desktop-gate {
  display: none !important;
}

/* Canvas & Avatar */
.vd-canvas {
  display: block;
  margin: 16px auto;
  width: 180px;
  height: 180px;
  border-radius: 28px;
  box-shadow: var(--vd-shadow-lg);
}

.vd-avatar-preview {
  margin: 16px;
  padding: 24px;
  border-radius: 20px;
  background: #0f172a;
  color: #ffffff;
  text-align: center;
  box-shadow: var(--vd-shadow-md);
}

.vd-avatar-preview span {
  font-size: 3.2rem;
  font-weight: 800;
}

.vd-library {
  list-style: none;
  margin: 0;
  padding: 0 var(--vd-pad);
}

.vd-library li {
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
  word-break: break-all;
  font-size: 14px;
}

.vd-library li a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}

.vd-steps {
  margin: 0 16px 18px;
  padding-left: 20px;
  color: var(--vd-ink);
  line-height: 1.6;
}

.vd-steps li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* ============================================================================== */
/* RESPONSIVE HANDLING: SLEEK PHONE SIMULATOR ON DESKTOP                         */
/* ============================================================================== */
@media (min-width: 768px) {
  body {
    background: #0f172a;
    background: radial-gradient(circle at 50% 10%, #1e293b 0%, #090d16 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 24px 0;
  }

  .vd-desktop-gate {
    display: none !important;
  }

  .vd-app {
    display: block !important;
    width: 100%;
    max-width: 430px;
    min-height: 90vh;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 36px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6), 0 0 0 12px #1e293b, 0 0 0 13px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }

  .vd-tabbar {
    max-width: 430px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
