/* ===================================================
   SnapInsta.ink – Main Stylesheet
   Mobile-First, Core Web Vitals Optimized
   =================================================== */

/* ---- CSS Variables ---- */
:root {
  --primary: #E1306C;
  --primary-dark: #c13060;
  --primary-light: #ff6b9d;
  --secondary: #833AB4;
  --gradient: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #F77737 100%);
  --gradient-soft: linear-gradient(135deg, #f5f0ff 0%, #fff0f5 100%);
  --text: #111827;
  --text-muted: #6B7280;
  --bg: #ffffff;
  --bg-alt: #F9FAFB;
  --surface: #ffffff;
  --border: #E5E7EB;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  --text: #F9FAFB;
  --text-muted: #9CA3AF;
  --bg: #0D0D0D;
  --bg-alt: #1A1A1A;
  --surface: #1F1F1F;
  --border: #2D2D2D;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  transition: background 0.3s, color 0.3s;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

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

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: var(--transition);
}

[data-theme="dark"] .site-header {
  background: rgba(13,13,13,0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 18px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}

.logo-text span { color: var(--primary); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link-item {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

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

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

.btn-theme {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 16px;
}

.btn-theme:hover { color: var(--primary); transform: rotate(15deg); }

.lang-select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  outline: none;
  font-family: var(--font-body);
}

.btn-premium-header {
  background: var(--gradient);
  color: white !important;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-premium-header:hover { opacity: 0.9; transform: translateY(-1px); }

/* ===================================================
   HERO SECTION
   =================================================== */
.hero-section {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(225,48,108,0.12) 0%, rgba(131,58,180,0.08) 40%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  animation: fadeSlideDown 0.6s ease both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeSlideDown 0.6s 0.1s ease both;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  animation: fadeSlideDown 0.6s 0.2s ease both;
}

/* ---- Download Card ---- */
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto 28px;
  animation: fadeSlideUp 0.7s 0.3s ease both;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 6px 6px 6px 14px;
  transition: var(--transition);
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(225,48,108,0.1);
}

.input-icon { color: var(--text-muted); flex-shrink: 0; }

.url-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  font-size: 15px;
  color: var(--text);
  outline: none;
}

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

.btn-download {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225,48,108,0.35);
}

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

/* ---- Loading State ---- */
.loading-state {
  text-align: center;
  padding: 24px 0 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.spinner-ring {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

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

/* ---- Result Box ---- */
.result-box {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  animation: fadeSlideUp 0.4s ease both;
}

.result-preview {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.result-thumb {
  width: 100px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--bg-alt);
  transition: opacity 0.2s ease;
}

.result-preview.is-photo {
  flex-direction: column;
  align-items: stretch;
}

.result-preview.is-photo .result-thumb {
  width: 100%;
  max-width: min(420px, 100%);
  height: auto;
  aspect-ratio: 1;
  max-height: min(70vh, 520px);
  object-fit: contain;
  border-radius: 14px;
}

.result-preview.is-video-single {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.result-preview.is-video-single > div {
  width: 100%;
}

.result-preview.is-video-single .result-thumb {
  width: 100%;
  max-width: min(420px, 100%);
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: min(70vh, 520px);
  object-fit: contain;
  border-radius: 14px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.result-preview.is-video-single #result-thumb-video,
.result-preview.is-video-single .result-thumb-video {
  margin-left: auto;
  margin-right: auto;
}

.result-box--photo {
  border-left: 4px solid #22c55e;
}

.result-box--video {
  border-left: 4px solid #6366f1;
}

.result-box--carousel {
  border-left: 4px solid #f59e0b;
}

[data-theme="dark"] .result-box--photo {
  border-left-color: #4ade80;
}

[data-theme="dark"] .result-box--video {
  border-left-color: #a5b4fc;
}

[data-theme="dark"] .result-box--carousel {
  border-left-color: #fbbf24;
}

.result-type-badge {
  display: inline-block;
  background: var(--gradient);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.result-duration {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.download-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.result-box--video .download-options,
.result-box--video .dl-opts {
  justify-content: center;
}

.download-options.dl-opts--carousel {
  flex-direction: column;
  align-items: stretch;
}

.btn-dlall {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.dl-all-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 8px;
  text-align: center;
  max-width: 520px;
}

.result-preview.is-carousel-header {
  margin-bottom: 8px;
}

.carousel-strip {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.carousel-slide {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.carousel-slide-media {
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide-img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  display: block;
}

.carousel-slide-img--placeholder {
  max-height: 120px;
  opacity: 0.85;
}

video.carousel-slide-video {
  min-height: 120px;
  background: #e8eaed;
}

[data-theme="dark"] video.carousel-slide-video {
  background: #2a2d35;
}

#result-thumb-video,
.result-thumb-video {
  background: #e8eaed;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] #result-thumb-video,
[data-theme="dark"] .result-thumb-video {
  background: #2a2d35;
}

.carousel-slide-caption {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.carousel-slide-btn {
  text-align: center;
  font-size: 12px;
  padding: 9px 12px;
  margin-top: auto;
}

.btn-dl-option {
  flex: 1;
  min-width: 120px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.btn-dl-option:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-dl-option.btn-hd { background: var(--gradient); color: white; border-color: transparent; }

/* Same download CTAs as homepage (Express / PHP API) */
.btn-dlopt {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.btn-dlopt.btn-sd {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-dlopt:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ---- Error Box ---- */
.error-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #DC2626;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
}

[data-theme="dark"] .error-box {
  background: rgba(220,38,38,0.15);
  border-color: rgba(220,38,38,0.3);
  color: #f87171;
}

/* ---- Trust Row ---- */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.7s 0.4s ease both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===================================================
   AD SLOTS
   =================================================== */
.ad-container { margin: 8px auto; }

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.ad-banner { min-height: 90px; }
.ad-rectangle { min-height: 250px; max-width: 336px; margin: 0 auto; }

/* ===================================================
   FEATURES
   =================================================== */
.features-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

.section-header { margin-bottom: 8px; }

.section-label {
  display: inline-block;
  background: rgba(225,48,108,0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.features-section h2, .how-section h2, .faq-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  height: 100%;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================================
   HOW IT WORKS
   =================================================== */
.how-section { padding: 80px 0; }

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}

.step-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================================
   FAQ
   =================================================== */
.faq-section { padding: 80px 0; background: var(--bg-alt); }

.faq-accordion { border-radius: var(--radius); overflow: hidden; }

.faq-item {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  margin-bottom: 8px;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
}

.faq-item .accordion-button {
  background: var(--surface) !important;
  color: var(--text) !important;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-body);
  padding: 18px 20px;
  box-shadow: none !important;
}

.faq-item .accordion-button:not(.collapsed) {
  color: var(--primary) !important;
}

.faq-item .accordion-button::after {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236B7280'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-item .accordion-body {
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  padding: 0 20px 18px;
  line-height: 1.7;
}

/* ===================================================
   STATS
   =================================================== */
.stats-section {
  padding: 60px 0;
  background: var(--gradient);
}

.stat-item { color: white; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.85;
  font-weight: 500;
}

/* ===================================================
   AFFILIATE
   =================================================== */
.affiliate-section {
  padding: 48px 0;
  background: var(--bg-alt);
}

.affiliate-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0;
}

.affiliate-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: var(--transition);
  color: var(--text);
  text-decoration: none;
}

.affiliate-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.affiliate-premium { border-color: rgba(225,48,108,0.3); background: linear-gradient(135deg, rgba(225,48,108,0.04), rgba(131,58,180,0.04)); }

.affiliate-icon { font-size: 1.8rem; }

.affiliate-card strong { display: block; font-size: 15px; margin-bottom: 2px; }
.affiliate-card span { font-size: 12px; color: var(--text-muted); }
.affiliate-arrow { margin-left: auto; color: var(--text-muted); font-size: 18px; }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-brand { margin-bottom: 16px; }
.footer-desc { font-size: 14px; color: var(--text-muted); max-width: 260px; margin-bottom: 20px; }

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 13px; color: var(--text-muted); }

.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 13px; color: var(--text-muted); }
.footer-legal a:hover { color: var(--primary); }

/* ===================================================
   BLOG PAGE
   =================================================== */
.blog-hero { padding: 60px 0 40px; background: var(--bg-alt); }
.blog-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.blog-grid { padding: 60px 0; }

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
}

.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }

.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-body { padding: 22px; }

.blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(225,48,108,0.1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 767px) {
  .hero-section { padding: 48px 0 56px; }
  .download-card { padding: 18px; }
  .input-wrapper { flex-wrap: wrap; padding: 10px; gap: 8px; }
  .url-input { width: 100%; padding: 8px 0 !important; }
  .btn-download { width: 100%; justify-content: center; }
  .trust-row { gap: 14px; }
  .trust-item { font-size: 12px; }
  .header-nav { display: none; }
  .nav-link-item { display: none; }
  .features-section, .how-section, .faq-section { padding: 56px 0; }
  .step-card { padding: 22px 18px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}

@media (max-width: 400px) {
  .hero-badge { font-size: 11px; }
  .hero-title { font-size: 1.8rem; }
}

/* ===================================================
   RTL SUPPORT
   =================================================== */
.rtl { direction: rtl; text-align: right; }
.rtl .header-inner { flex-direction: row-reverse; }
.rtl .trust-row { flex-direction: row-reverse; }
.rtl .input-icon { order: 3; }
.rtl .btn-download { order: 0; }

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ===================================================
   UTILITY
   =================================================== */
.section-label + h2 { margin-top: 0; }

.container { max-width: 1140px; padding-left: 16px; padding-right: 16px; }

@media (min-width: 576px) {
  .container { padding-left: 24px; padding-right: 24px; }
}

/* Smooth dark mode toggle */
body, .site-header, .download-card, .feature-card, .step-card, .blog-card,
.faq-item, .affiliate-card, .site-footer {
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
