/* ==========================================================================
   FASTDL INSTAGRAM DOWNLOADER - ELECTRIC VIOLET SUNSET DESIGN SYSTEM
   ========================================================================== */

:root {
  --ig-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 30%, #d946ef 65%, #f43f5e 100%);
  --ig-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 30%, #c026d3 65%, #e11d48 100%);
  --ig-glow: 0 12px 35px -5px rgba(168, 85, 247, 0.5);

  --bg-main: #060913;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-solid: #0f172a;
  --bg-input: rgba(30, 41, 59, 0.85);
  --bg-hover: #334155;
  --border-color: rgba(255, 255, 255, 0.12);
  --border-active: rgba(168, 85, 247, 0.65);

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #64748b;

  --accent-color: #a855f7;
  --accent-secondary: #00dfd8;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --glow-shadow: 0 0 50px rgba(168, 85, 247, 0.3);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme {
  --bg-main: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-solid: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: #f8fafc;
  --border-color: rgba(99, 102, 241, 0.15);
  --border-active: #8b5cf6;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 45px -10px rgba(99, 102, 241, 0.14);
  --glow-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);

  --accent-color: #7c3aed;
  --accent-secondary: #0284c7;
}

body.light-theme::before {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(217, 70, 239, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
}

body.light-theme::after {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(244, 63, 94, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
}

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

html {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(217, 70, 239, 0.15) 50%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
}

body::after {
  content: '';
  position: absolute;
  top: 100px;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(244, 63, 94, 0.15) 50%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
img, video { max-width: 100%; height: auto; display: block; }

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

.hidden { display: none !important; }

/* HEADER & NOTICE BAR */
.top-notice-bar {
  background: var(--ig-gradient);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  padding: 9px 16px;
  position: relative;
  z-index: 101;
  box-shadow: var(--ig-glow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.65rem;
  font-weight: 800;
}

.logo-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.logo-highlight {
  background: var(--ig-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.icon-btn:hover { background: var(--bg-hover); border-color: var(--border-active); transform: translateY(-2px); }

body.dark-theme .sun-icon { display: block; }
body.dark-theme .moon-icon { display: none; }
body.light-theme .sun-icon { display: none; }
body.light-theme .moon-icon { display: block; }

.lang-selector .lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ADSENSE PLACEMENTS */
.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px auto;
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.ad-placeholder { width: 100%; display: flex; flex-direction: column; align-items: center; }

.ad-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
}

.ad-box-728x90 {
  width: 728px;
  height: 90px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.ad-box-native {
  width: 100%;
  max-width: 880px;
  height: 115px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.ad-box-300x250 {
  width: 300px;
  height: 250px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.mobile-sticky-ad {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--bg-card-solid); border-top: 1px solid var(--border-color);
  padding: 6px 0; display: flex; justify-content: center;
}

.ad-box-320x50 {
  width: 320px; height: 50px; background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color); display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 0.75rem;
}

/* HERO & DOWNLOADER CARD */
.main-wrapper { flex: 1; padding-bottom: 80px; position: relative; z-index: 1; }

.hero-section { padding: 60px 20px 40px; text-align: center; }

.hero-container { max-width: 880px; margin: 0 auto; }

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.4px;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 38px;
  line-height: 1.6;
}

.downloader-tabs {
  display: inline-flex;
  gap: 10px;
  background: var(--bg-input);
  padding: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  max-width: 100%;
  overflow-x: auto;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.96rem;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--ig-gradient);
  color: #ffffff;
  box-shadow: var(--ig-glow);
}

/* INPUT CARD & FORM STYLING */
.input-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg), var(--glow-shadow);
}

.url-input-form {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.url-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px 12px;
  position: relative;
  transition: all var(--transition-fast);
  min-width: 0;
}

.url-input-group:focus-within {
  border-color: var(--border-active);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.25);
}

.input-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  margin-right: 12px;
  flex-shrink: 0;
}

.insta-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 0;
  min-width: 0;
  font-family: inherit;
}

.insta-input::placeholder {
  color: var(--text-dim);
  opacity: 0.85;
}

.input-actions-inside {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 8px;
}

.action-inside-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.paste-style {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-color);
  color: #ffffff;
}

.paste-style:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.clear-style {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px 12px;
}

.clear-style:hover {
  background: rgba(239, 68, 68, 0.25);
}

.submit-btn {
  background: var(--ig-gradient);
  color: #ffffff;
  padding: 0 36px;
  height: 56px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--ig-glow);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.submit-btn:hover {
  background: var(--ig-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.6);
}

/* Spinners */
.btn-spinner, .dl-btn-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

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

.sample-links-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.sample-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
}

.sample-chip:hover { border-color: var(--border-active); color: var(--text-main); background: var(--bg-hover); }

/* STATUS & MEDIA RESULT */
.status-box {
  margin-top: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

.status-box.error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171; }
.status-box.success { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.4); color: #4ade80; }

.result-container { margin-top: 36px; text-align: left; }

.media-result-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 360px 1fr;
}

.media-preview-wrapper { background: #000; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.preview-media-element { max-height: 440px; width: 100%; object-fit: contain; }

.media-info-wrapper { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.author-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--accent-color); object-fit: cover; }
.author-meta h4 { font-size: 1.05rem; font-weight: 800; color: var(--text-main); }
.author-meta p { font-size: 0.82rem; color: var(--text-muted); }
.media-caption-text { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }

.download-options-group { display: flex; flex-direction: column; gap: 14px; }
.quality-selector-row { display: flex; align-items: center; gap: 12px; }
.quality-label { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.quality-select {
  flex: 1; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1px solid var(--border-color);
  color: var(--text-main); font-weight: 700; font-size: 0.95rem;
}

.direct-dl-btn {
  background: var(--ig-gradient); color: #ffffff;
  padding: 16px 28px; border-radius: var(--radius-md);
  font-size: 1.05rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: var(--ig-glow);
}

/* SECTIONS */
.info-section { padding: 75px 20px; position: relative; z-index: 1; }
.section-container { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 2.3rem; font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1.12rem; margin-bottom: 50px; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 36px 30px; position: relative;
}
.step-number {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ig-gradient); color: #fff;
  font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center;
}
.step-icon { color: var(--accent-color); margin-bottom: 20px; }
.step-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.step-card p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.65; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.feature-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 34px; }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-box h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.feature-box p { color: var(--text-muted); font-size: 0.96rem; line-height: 1.6; }

/* SUPPORTED FORMATS GRID & CARDS */
.formats-section {
  position: relative;
  z-index: 1;
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.format-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ig-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.format-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  box-shadow: 0 20px 40px -15px rgba(168, 85, 247, 0.35);
}

.format-card:hover::before {
  opacity: 1;
}

.format-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition-fast);
}

.format-card:hover .format-icon-wrapper {
  background: var(--ig-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--ig-glow);
  transform: scale(1.08);
}

.format-card h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.35;
}

.format-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ ACCORDION */
.faq-accordion { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.faq-header {
  width: 100%; padding: 22px 28px; display: flex; align-items: center;
  justify-content: space-between; font-weight: 800; font-size: 1.1rem; color: var(--text-main);
}
.faq-chevron { color: var(--text-muted); transition: transform 0.2s ease; }
.faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--accent-color); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 28px; }
.faq-item.active .faq-content { max-height: 500px; padding: 0 28px 24px 28px; }
.faq-content p, .faq-content ol { color: var(--text-muted); font-size: 0.98rem; line-height: 1.65; }

/* FOOTER & COOKIES */
.site-footer { background: var(--bg-card-solid); border-top: 1px solid var(--border-color); padding: 75px 20px 45px; margin-top: auto; position: relative; z-index: 10; }
.footer-container { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr 2fr; gap: 48px; margin-bottom: 48px; }
.footer-desc { color: var(--text-muted); font-size: 0.95rem; margin-top: 16px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.footer-col h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent-color); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 28px; text-align: center; }
.copyright-text { font-size: 0.88rem; color: var(--text-muted); font-weight: 700; }
.disclaimer-text { font-size: 0.8rem; color: var(--text-dim); max-width: 880px; margin: 8px auto 0; }

.cookie-banner {
  position: fixed; bottom: 24px; right: 24px; max-width: 440px;
  background: var(--bg-card-solid); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 20px 24px; box-shadow: var(--shadow-lg); z-index: 200;
}
.cookie-content p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 14px; }
.cookie-buttons { display: flex; gap: 12px; }
.cookie-btn { flex: 1; padding: 10px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 800; }
.cookie-btn.accept { background: var(--ig-gradient); color: #fff; }
.cookie-btn.decline { background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-muted); }

/* RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS (PHONE VIEW) */
@media (max-width: 768px) {
  .site-header { padding: 12px 16px; }
  .header-container { width: 100%; }
  
  .hero-section { padding: 30px 14px 20px; }
  .hero-title { font-size: 1.95rem; line-height: 1.25; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 20px; padding: 0 4px; }
  
  .downloader-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }
  .downloader-tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; padding: 8px 16px; font-size: 0.86rem; }
  
  .input-card { padding: 10px; width: 100%; }
  .url-input-form { flex-direction: column; gap: 10px; width: 100%; }
  .url-input-group {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px 8px;
    min-width: 0;
  }
  .input-icon-box { margin-right: 8px; flex-shrink: 0; }
  .insta-input {
    font-size: 0.9rem;
    padding: 10px 0;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .input-actions-inside { flex-shrink: 0; margin-left: 4px; gap: 4px; }
  .action-inside-btn { padding: 7px 12px; font-size: 0.82rem; flex-shrink: 0; }
  .submit-btn { width: 100%; padding: 0 20px; height: 48px; font-size: 1rem; border-radius: var(--radius-md); }

  .media-result-card { grid-template-columns: 1fr; }
  .media-preview-wrapper { min-height: 260px; max-height: 400px; }
  .media-info-wrapper { padding: 16px; }
  
  .steps-grid, .features-grid, .formats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .step-card, .feature-box, .format-card {
    padding: 20px 16px;
  }

  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.88rem; margin-bottom: 20px; }
  
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 16px; }
  
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 14px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.55rem; letter-spacing: -0.8px; }
  .hero-subtitle { font-size: 0.88rem; }
  .logo-text { font-size: 1.2rem; }
  .format-card h3 { font-size: 1.05rem; }
  .footer-nav { grid-template-columns: 1fr; }
  .quality-selector-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .paste-style { padding: 6px 10px; }
  .paste-style span { font-size: 0.8rem; }
}

/* LIGHT THEME COMPONENT ELEVATION & CONTRAST */
body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.light-theme .input-card {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 20px 45px -10px rgba(99, 102, 241, 0.14);
}

body.light-theme .insta-input {
  background: #f8fafc;
  border-color: rgba(99, 102, 241, 0.15);
  color: #0f172a;
}

body.light-theme .tab-btn {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(99, 102, 241, 0.12);
  color: #475569;
}

body.light-theme .tab-btn:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(99, 102, 241, 0.3);
}

body.light-theme .tab-btn.active {
  background: var(--ig-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px -4px rgba(168, 85, 247, 0.4);
}

body.light-theme .step-card,
body.light-theme .feature-box,
body.light-theme .format-card,
body.light-theme .faq-item {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.12);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
}

body.light-theme .format-card:hover {
  border-color: #8b5cf6;
  box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.22);
}

body.light-theme .format-icon-wrapper {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
}

body.light-theme .faq-header {
  color: #0f172a;
}

body.light-theme .site-footer {
  background: #ffffff;
  border-top-color: rgba(99, 102, 241, 0.12);
}

body.light-theme .cookie-banner {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

body.light-theme .quality-select {
  background: #f8fafc;
  border-color: rgba(99, 102, 241, 0.2);
  color: #0f172a;
}
