/* ==========================================================================
   Arivers - Modern High-Converting Stylesheet
   Supports Dynamic Admin Theme Colors via CSS Variables
   Authentic Instagram Theme Palette with Live Animated Ambient Mesh
   ========================================================================== */

:root {
  --primary-color: #e1306c;
  --secondary-color: #833ab4;
  --accent-color: #f77737;
  --bg-color: #fcfbfe;
  --card-bg-color: #ffffff;
  --text-color: #0f172a;
  --text-muted: #334155;
  --border-color: #cbd5e1;
  --border-focus: rgba(225, 48, 108, 0.75);
  --success-color: #059669;
  --danger-color: #dc2626;
  --gradient-primary: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  --gradient-instagram: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --gradient-accent: linear-gradient(135deg, #e1306c 0%, #f77737 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(131, 58, 180, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(225, 48, 108, 0.10), 0 6px 16px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 35px -5px rgba(225, 48, 108, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ==========================================================================
   Instagram Signature Animated Ambient Mesh & Floating Particles Background
   ========================================================================== */

.insta-animated-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-color, #fdfafd);
  background-image: 
    radial-gradient(at 10% 15%, rgba(254, 240, 255, 0.5) 0px, transparent 55%),
    radial-gradient(at 90% 12%, rgba(255, 237, 243, 0.5) 0px, transparent 55%),
    radial-gradient(at 50% 90%, rgba(255, 247, 237, 0.5) 0px, transparent 55%);
}

.insta-mesh-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(131, 58, 180, 0.04) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  z-index: 1;
  opacity: 0.5;
}

#instaParticlesCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.insta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  -webkit-filter: blur(95px);
  opacity: 0.08;
  will-change: transform;
}

/* Orb 1: Instagram Rose / Magenta */
.orb-1 {
  width: 620px;
  height: 620px;
  top: -12%;
  left: -10%;
  background: radial-gradient(circle, #e1306c 0%, #c13584 55%, transparent 72%);
  animation: floatOrb1 22s infinite ease-in-out alternate;
}

/* Orb 2: Instagram Royal Purple / Violet */
.orb-2 {
  width: 660px;
  height: 660px;
  top: 10%;
  right: -15%;
  background: radial-gradient(circle, #833ab4 0%, #5851db 55%, transparent 72%);
  animation: floatOrb2 26s infinite ease-in-out alternate;
}

/* Orb 3: Instagram Sunset Coral / Red */
.orb-3 {
  width: 580px;
  height: 580px;
  bottom: -15%;
  left: 20%;
  background: radial-gradient(circle, #fd1d1d 0%, #f56040 55%, transparent 72%);
  animation: floatOrb3 24s infinite ease-in-out alternate;
}

/* Orb 4: Instagram Warm Gold / Orange */
.orb-4 {
  width: 520px;
  height: 520px;
  top: 45%;
  left: -8%;
  background: radial-gradient(circle, #f77737 0%, #fcaf45 55%, transparent 72%);
  animation: floatOrb4 28s infinite ease-in-out alternate;
}

/* Orb 5: Instagram Electric Indigo / Blue */
.orb-5 {
  width: 540px;
  height: 540px;
  bottom: 8%;
  right: -8%;
  background: radial-gradient(circle, #405de6 0%, #833ab4 55%, transparent 72%);
  animation: floatOrb5 25s infinite ease-in-out alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(140px, 120px, 0) scale(1.15) rotate(90deg); }
  100% { transform: translate3d(60px, 220px, 0) scale(0.9) rotate(180deg); }
}

@keyframes floatOrb2 {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(-160px, 140px, 0) scale(1.2) rotate(-120deg); }
  100% { transform: translate3d(-80px, -60px, 0) scale(0.95) rotate(-240deg); }
}

@keyframes floatOrb3 {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(180px, -150px, 0) scale(1.18) rotate(100deg); }
  100% { transform: translate3d(-100px, -80px, 0) scale(0.88) rotate(200deg); }
}

@keyframes floatOrb4 {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(120px, -100px, 0) scale(1.22) rotate(-90deg); }
  100% { transform: translate3d(200px, 80px, 0) scale(0.92) rotate(-180deg); }
}

@keyframes floatOrb5 {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(-140px, -120px, 0) scale(1.15) rotate(110deg); }
  100% { transform: translate3d(-40px, 100px, 0) scale(0.96) rotate(220deg); }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.hidden { display: none !important; }

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-instagram);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.35);
}

.logo-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: block;
  color: #181126;
}

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

.logo-tagline {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a:not(.btn-admin-nav) {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:not(.btn-admin-nav):hover {
  color: #e1306c;
}

/* Mobile Navbar Actions & Pills */
.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-blog-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, 0.28);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-blog-pill:hover {
  background: #6366f1;
  color: #ffffff;
}

.mobile-menu-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(225, 48, 108, 0.08);
  border: 1px solid rgba(225, 48, 108, 0.25);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Mobile Slide-Out Drawer Navigation */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.28s ease;
}

.mobile-nav-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mobile-nav-drawer.open .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  max-width: 86vw;
  background: var(--card-bg-color);
  border-left: 1px solid var(--border-color);
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  z-index: 2;
}

.mobile-nav-drawer.open .mobile-nav-sheet {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-color);
}

.logo-icon-mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient-instagram);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.btn-close-drawer {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-drawer:hover {
  background: rgba(225, 48, 108, 0.1);
  color: var(--primary-color);
}

.mobile-nav-body {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.drawer-group-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  padding: 8px 10px 4px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-color);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.drawer-nav-item i {
  width: 18px;
  font-size: 14px;
  color: var(--primary-color);
  text-align: center;
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
  background: rgba(225, 48, 108, 0.08);
  color: var(--primary-color);
}

.drawer-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 4px;
}

.mobile-nav-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.btn-admin-nav {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(225, 48, 108, 0.08);
  border: 1px solid rgba(225, 48, 108, 0.2);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #833ab4;
}

.btn-admin-nav:hover {
  background: rgba(225, 48, 108, 0.16);
  color: #e1306c;
}

/* ==========================================================================
   Hero Section - Compact Spacing (Zero Excess Space)
   ========================================================================== */

.hero-section {
  padding: 6px 0 10px 0;
  position: relative;
  background: transparent;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge,
.hero-tag-badge {
  display: none !important;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  color: #181126;
  -webkit-text-fill-color: initial;
}

.hero-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 10px auto;
  line-height: 1.4;
}

/* Media Tabs - Compact */
.tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #ffffff;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #cbd5e1;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.tab-btn {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.tab-btn:hover {
  color: #e1306c;
  background: rgba(225, 48, 108, 0.08);
}

.tab-btn.active {
  background: var(--gradient-instagram);
  color: #fff;
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.35);
}

/* Search Box Card - Compact */
.search-box-card {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  border: 1px solid rgba(225, 48, 108, 0.22);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: 0 12px 35px rgba(225, 48, 108, 0.08), 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.search-box-card:focus-within {
  border-color: #e1306c;
  box-shadow: 0 16px 40px rgba(225, 48, 108, 0.16), 0 0 0 3px rgba(225, 48, 108, 0.15);
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 4px 6px 4px 14px;
  position: relative;
}

.input-icon {
  font-size: 18px;
  color: var(--primary-color);
}

#urlInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 6px;
  min-width: 0;
}

#urlInput::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.btn-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: none;
}

.btn-clear:hover { color: #e1306c; }

.btn-paste {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-paste i {
  color: var(--primary-color);
  font-size: 14px;
}

.btn-paste:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-download {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  background: var(--gradient-instagram);
  border: none;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(225, 48, 108, 0.38);
  transition: var(--transition);
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(225, 48, 108, 0.55);
}

.sample-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.btn-sample {
  background: #ffffff;
  border: 1px solid rgba(225, 48, 108, 0.2);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  color: #64748b;
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-sample:hover {
  background: rgba(225, 48, 108, 0.08);
  color: #e1306c;
  border-color: var(--primary-color);
}

.alert-box {
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.alert-box.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(225, 48, 108, 0.1);
  color: var(--primary-color) !important;
  border: 1px solid rgba(225, 48, 108, 0.25);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.nav-admin-btn:hover {
  background: var(--primary-color);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   Result Card Section
   ========================================================================== */

.result-card {
  width: 100%;
  max-width: 820px;
  margin-top: 30px;
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  text-align: left;
  animation: fadeIn 0.4s ease-out;
}

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

/* ==========================================================================
   FastDL Exact Match Search Result View
   ========================================================================== */

.search-result-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: var(--text-color);
}

.fastdl-result-box {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-media-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  margin: 0 auto;
}

.result-media-frame img,
.result-media-frame video {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.corner-media-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  pointer-events: none;
}

/* Sleek Compact Quality & Format Selector (Single-Line 1-Click Fast Download) */
.quality-selector-card {
  width: 100%;
  max-width: 520px;
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 12px auto 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.quality-selector-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.quality-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quality-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.quality-pill-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.quality-pill-dl .q-icon {
  font-size: 13px;
}

.quality-pill-dl .q-label {
  font-weight: 700;
  color: #0f172a;
}

.quality-pill-dl .q-size {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
}

.quality-pill-dl .q-arrow {
  font-size: 10px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.quality-pill-dl:hover {
  border-color: #e1306c;
  color: #e1306c;
  background: rgba(225, 48, 108, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.22);
}

.quality-pill-dl:hover .q-label {
  color: #e1306c;
}

.quality-pill-dl:hover .q-arrow {
  color: #e1306c;
  transform: translateY(1px);
}

.quality-pill-dl.active {
  background: linear-gradient(135deg, #e1306c 0%, #c13584 100%);
  border-color: #e1306c;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.35);
}

.quality-pill-dl.active .q-label {
  color: #ffffff;
}

.quality-pill-dl.active .q-size {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.quality-pill-dl.active .q-arrow {
  color: #ffffff;
}

.result-action-bar {
  width: 100%;
  max-width: 280px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.btn-fastdl-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #0095f6;
  background: linear-gradient(135deg, #0095f6 0%, #0077e5 100%);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 149, 246, 0.35);
  transition: var(--transition);
  cursor: pointer;
}

.btn-fastdl-download svg,
.btn-fastdl-download i {
  width: 15px;
  height: 15px;
  font-size: 14px;
}

.btn-fastdl-download:hover {
  background: linear-gradient(135deg, #0084dc 0%, #0066cc 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0, 149, 246, 0.5);
}



.result-author-container {
  width: 100%;
  max-width: 380px;
  text-align: left;
  margin-bottom: 8px;
}

.author-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(225, 48, 108, 0.08);
  border: 1px solid rgba(225, 48, 108, 0.25);
  color: #c13584;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
}

/* Post Caption with Read More Toggle */
.result-caption-wrapper {
  width: 100%;
  max-width: 440px;
  margin-bottom: 18px;
  text-align: left;
}

.result-caption-text {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  word-break: break-word;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-caption-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.btn-read-more {
  background: transparent;
  border: none;
  color: #e1306c;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0 0;
  display: inline-block;
  outline: none;
}

.btn-read-more:hover {
  text-decoration: underline;
}

/* Metadata Box (Time, Likes, Comments - User Screenshot Match on Light Canvas) */
.result-meta-card {
  width: 100%;
  max-width: 440px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 18px 0;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  letter-spacing: 0.2px;
}

.meta-item i {
  width: 18px;
  text-align: center;
  color: #64748b;
  font-size: 15px;
}

.meta-item span {
  color: #1e293b;
  font-weight: 600;
}

/* Instant Fetching Card (Appears immediately when URL is entered) */
.instant-fetch-card {
  width: 100%;
  max-width: 480px;
  margin: 24px auto 0;
  background: #ffffff;
  border: 1px solid rgba(225, 48, 108, 0.25);
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 12px 35px rgba(225, 48, 108, 0.12);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}

.fetch-pulse-spinner {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-instagram);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.35);
}

.fetch-pulse-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 3px;
  flex: 1;
}

.fetch-pulse-text strong {
  font-size: 15px;
  color: #181126;
  font-weight: 700;
}

.fetch-pulse-sub {
  font-size: 12px;
  color: #64748b;
}

.fetch-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #f1f5f9;
  overflow: hidden;
}

.fetch-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f09433, #dc2743, #bc1888, #405de6);
  background-size: 200% 100%;
  animation: shimmerBar 1.2s infinite linear;
}

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

.meta-item i {
  width: 18px;
  text-align: center;
  color: #64748b;
  font-size: 15px;
}

.meta-item span {
  color: #1e293b;
  font-weight: 600;
}

.result-footer-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn-reset {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-reset:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn-action-download {
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-action-download.primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.btn-action-download.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55);
}

.btn-action-download.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #e2e8f0;
}

.btn-action-download.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.safe-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #10b981;
  font-weight: 500;
  margin-top: 8px;
}

/* Carousel Layout */
.carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.carousel-count-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
}

.btn-download-all {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.carousel-item-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.carousel-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}

.carousel-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-type-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.carousel-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.carousel-slide-title {
  font-size: 13px;
  font-weight: 600;
}

.btn-carousel-dl {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-carousel-dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.carousel-quick-qualities {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 4px 0 6px;
  flex-wrap: wrap;
}

.badge-mini-q {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-mini-q:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
  border-color: #6366f1;
}

.badge-mini-q.active {
  background: #6366f1;
  color: #fff;
}

/* ==========================================================================
   Ad Slots - Auto-collapse when empty (Zero Void Gap)
   ========================================================================== */

.ad-wrapper {
  margin: 10px auto;
  text-align: center;
}

.ad-wrapper:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
}

.ad-banner-placeholder {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Steps Section - Clean & Tight Spacing
   ========================================================================== */

.section-how-to, .section-features, .section-faq, .section-devices {
  padding: 20px 0 32px 0;
  border-top: 1px solid var(--border-color);
}

.section-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(225, 48, 108, 0.08);
  color: #c13584;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: #181126;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 45px;
}

/* ==========================================================================
   FastDL Clone Recreated Content Sections with Visual Illustrations
   ========================================================================== */

/* 1. Section Text Intro Card (with card_index.svg) */
.section-text {
  padding: 40px 0 20px;
}

.section-text__card {
  background: #ffffff;
  border: 1px solid rgba(225, 48, 108, 0.15);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 328px 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.section-text__media img {
  width: 100%;
  max-width: 328px;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.section-text__content h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin: 10px 0 14px;
  color: #181126;
}

.section-text__content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.section-text__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feat-badge {
  background: rgba(225, 48, 108, 0.08);
  border: 1px solid rgba(225, 48, 108, 0.25);
  color: #c13584;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 2. Section Instructions (How to Download with copy, paste, download.svg) */
.section-instruction {
  padding: 60px 0;
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}

.instruction-card {
  background: #ffffff;
  border: 1px solid rgba(225, 48, 108, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.instruction-card:hover {
  transform: translateY(-5px);
  border-color: #e1306c;
}

.instruction-img {
  width: 100%;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instruction-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.instruction-card:hover .instruction-img img {
  transform: scale(1.02);
}

.instruction-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(225, 48, 108, 0.08);
  color: #c13584;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.instruction-content h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #181126;
}

.instruction-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 3. Section Redirect Address Bar Shortcut (redirect.svg) */
.section-redirect {
  padding: 20px 0 60px;
}

.redirect-card {
  background: #ffffff;
  border: 1px solid rgba(225, 48, 108, 0.15);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 396px 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.redirect-media img {
  width: 100%;
  max-width: 396px;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.redirect-content h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin: 10px 0 16px;
  color: #181126;
}

.redirect-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.redirect-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.6;
}

.redirect-list li i {
  color: #10b981;
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.url-example {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 6px;
  color: #e1306c;
  font-family: monospace;
  font-size: 13px;
  font-weight: 600;
}

/* 4. Section Features (Alternating Rows with video, photos, reels, igtv, carousel.svg) */
.section-features {
  padding: 60px 0;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  background: #ffffff;
  border: 1px solid rgba(225, 48, 108, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr 328px;
  gap: 36px;
  align-items: center;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.feature-item.reverse {
  grid-template-columns: 328px 1fr;
}

.feature-item.reverse .feature-item__text {
  order: 2;
}

.feature-item.reverse .feature-item__img {
  order: 1;
}

.feature-item:hover {
  border-color: rgba(225, 48, 108, 0.4);
  transform: translateY(-3px);
}

.feat-tag {
  display: inline-block;
  background: rgba(225, 48, 108, 0.08);
  color: #c13584;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.feature-item__text h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #181126;
}

.feature-item__text p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.btn-feat-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #181126;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-feat-action:hover {
  background: var(--gradient-instagram);
  border-color: transparent;
  color: #fff;
}

.feature-item__img img {
  width: 100%;
  max-width: 328px;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

/* Backward-compatible Step & Features Grid classes */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: #ffffff;
  border: 1px solid rgba(225, 48, 108, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(225, 48, 108, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-instagram);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.35);
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #181126;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Devices Section */
.devices-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.device-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.device-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
}

.faq-item:hover {
  border-color: rgba(225, 48, 108, 0.35);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.08);
}

.faq-item.open {
  border-color: rgba(225, 48, 108, 0.45);
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.10);
  background: #ffffff;
}

.faq-question {
  width: 100%;
  padding: 18px 22px !important;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 16px;
}

.faq-question:hover {
  color: #e1306c !important;
}

.faq-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.faq-icon {
  font-size: 12px;
  color: #64748b;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-icon-wrapper {
  background: var(--gradient-instagram);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: #ffffff;
}

.faq-answer {
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 22px !important;
  font-size: 14.5px !important;
  color: #334155 !important;
  line-height: 1.7 !important;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), padding 0.32s ease !important;
}

.faq-item.open .faq-answer {
  max-height: 600px !important;
  padding: 0 22px 18px !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(225, 48, 108, 0.15);
  padding: 60px 0 30px;
}

.footer-container,
.footer-content {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.1fr !important;
  gap: 32px !important;
  margin-bottom: 30px !important;
  text-align: left !important;
}

.footer-links span {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  color: #475569 !important;
  font-weight: 500 !important;
  padding: 4px 0 !important;
}

.footer-links span i {
  font-size: 12px !important;
}

.brand-col .footer-logo,
.footer-col-brand .footer-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--text-color) !important;
  margin-bottom: 10px !important;
  text-decoration: none !important;
}

.brand-col .footer-logo i,
.footer-col-brand .footer-logo i {
  color: var(--primary-color) !important;
  font-size: 22px !important;
}

.footer-bio {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: var(--text-muted) !important;
  max-width: 360px !important;
  margin-bottom: 12px !important;
}

.footer-author-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.1) !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  width: fit-content !important;
}

.footer-heading {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  margin-bottom: 16px !important;
  color: var(--text-color) !important;
  position: relative !important;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--gradient-instagram);
  border-radius: 2px;
}

.footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
}

.footer-links li {
  margin: 0 !important;
  padding: 0 !important;
}

.footer-links a {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.footer-links a:hover {
  color: var(--primary-color) !important;
  transform: translateX(3px) !important;
}

.seo-keywords-cloud-container {
  margin-bottom: 30px;
  padding-top: 10px;
}

.seo-keywords-cloud {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 12.5px;
}

.seo-keywords-cloud .cloud-badge {
  color: #e1306c;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}

.seo-keywords-cloud a {
  color: var(--text-muted);
  transition: var(--transition);
}

.seo-keywords-cloud a:hover {
  color: #0f172a;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(225, 48, 108, 0.12);
  padding-top: 24px;
}

.bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.disclaimer-text {
  max-width: 700px;
  font-size: 11px;
}

/* ==========================================================================
   Modal Popup
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s ease;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 { font-size: 18px; font-weight: 700; }

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.btn-close-modal:hover { color: #fff; }

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.7;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.btn-modal-close {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   SEO Content & Comparison Section
   ========================================================================== */

.section-seo-content {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  background: transparent;
}

.seo-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.seo-lead {
  font-size: 16px;
  color: var(--text-color);
  margin-bottom: 24px;
  line-height: 1.7;
}

.seo-keyword-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seo-k-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: var(--transition);
}

.seo-k-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
}

.seo-k-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seo-k-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.comparison-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.comparison-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 18px;
  text-align: center;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.comparison-table th {
  padding: 10px 12px;
  background: rgba(225, 48, 108, 0.08);
  color: var(--text-color);
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
}

.comparison-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-color);
}

/* Badge status */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

.badge-status.online {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* ==========================================================================
   Multi-Device & Multi-Screen Responsive Optimization
   Guarantees 100% Uncropped, Zero-Cut Layout on Every Device
   ========================================================================== */

/* Universal Overflow & Aspect Ratio Safeguards */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img, video {
  max-width: 100%;
  height: auto;
}

/* Fluid Hero Typography */
.hero-title {
  font-size: clamp(26px, 5.5vw, 46px);
  line-height: 1.15;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-subtitle {
  font-size: clamp(14px, 2.5vw, 17px);
  padding: 0 8px;
  line-height: 1.6;
}

.section-title {
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.25;
}

/* Tablet & Medium Screens (max-width: 991px) */
@media (max-width: 991px) {
  .hero-section {
    padding: 45px 0 35px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .section-text__card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
    text-align: center;
  }

  .section-text__media img {
    margin: 0 auto;
  }

  .section-text__badges {
    justify-content: center;
  }

  .instruction-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-redirect {
    padding: 16px 0 36px;
  }

  .redirect-card {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 22px 18px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .redirect-media {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .redirect-media img {
    width: 100% !important;
    max-width: 380px !important;
    height: auto !important;
    margin: 0 auto !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
  }

  .redirect-content h2 {
    font-size: 20px !important;
    line-height: 1.32 !important;
    margin: 8px 0 14px !important;
  }

  .redirect-list {
    gap: 10px !important;
  }

  .redirect-list li {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    gap: 8px !important;
  }

  .url-example {
    display: inline-block !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    font-size: 12px !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
    max-width: 100% !important;
  }

  .feature-item,
  .feature-item.reverse {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 24px;
    text-align: center;
  }

  .feature-item.reverse .feature-item__text {
    order: 1;
  }

  .feature-item.reverse .feature-item__img {
    order: 2;
  }

  .feature-item__img img {
    margin: 0 auto;
  }

  .seo-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .single-media-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .media-preview-container {
    max-width: 440px;
    margin: 0 auto;
  }

  .media-preview-container img,
  .media-preview-container video {
    max-height: 420px;
    object-fit: contain;
  }

  .footer-container,
  .footer-content {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
  }

  .brand-col,
  .footer-col-brand {
    grid-column: span 2 !important;
  }
}

/* Mobile Devices & Small Tablets (max-width: 767px) */
@media (max-width: 767px) {
  .container {
    padding: 0 14px;
  }

  .navbar {
    padding: 10px 0;
  }

  .nav-links-desktop {
    display: none !important;
  }

  .nav-mobile-actions {
    display: flex !important;
  }

  .logo-tagline {
    display: none !important;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .logo-name {
    font-size: 18.5px;
  }

  .hero-section {
    padding: 28px 0 20px !important;
  }

  .hero-title {
    font-size: 24px !important;
    line-height: 1.22 !important;
    margin-bottom: 8px !important;
    font-weight: 800 !important;
    color: var(--text-color) !important;
  }

  .hero-subtitle {
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #1e293b !important;
    max-width: 360px !important;
    margin: 0 auto 16px !important;
    font-weight: 500 !important;
    padding: 0 4px;
  }

  /* 5-Column High-Converting Mobile Tabs: Zero Cut-off, All 5 Tabs 100% Visible */
  .tabs-wrapper {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 4px !important;
    padding: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04) !important;
  }

  .tab-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 8px 2px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
    white-space: nowrap !important;
    color: #334155 !important;
    border: none !important;
    background: transparent !important;
  }

  .tab-btn i {
    font-size: 14px !important;
  }

  .tab-btn span {
    display: block !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  .tab-btn.active {
    background: var(--gradient-instagram) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(225, 48, 108, 0.35) !important;
  }

  .tab-btn.active i,
  .tab-btn.active span {
    color: #ffffff !important;
  }

  /* Search Box on Mobile (Clean Light & Dark Theme) */
  .search-box-card {
    padding: 10px;
    border-radius: var(--radius-md);
  }

  .input-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 6px 8px;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
  }

  .input-wrapper > .input-icon {
    display: flex;
    font-size: 16px;
    color: var(--primary-color);
    flex-shrink: 0;
    order: 1;
  }

  #urlInput {
    flex: 1 1 110px;
    min-width: 0;
    width: auto;
    padding: 7px 6px;
    font-size: 13.5px;
    color: #0f172a;
    background: transparent;
    order: 2;
  }

  .btn-clear {
    order: 3;
    padding: 6px;
  }

  .btn-paste {
    align-self: center;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    order: 4;
  }

  .btn-download {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-top: 4px;
    order: 5;
  }

  /* Result Card Mobile */
  .result-card {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn-reset {
    align-self: flex-end;
  }

  .media-preview-container {
    max-width: 100%;
  }

  .media-preview-container img,
  .media-preview-container video {
    max-height: 380px;
    object-fit: contain;
    border-radius: var(--radius-sm);
  }

  .btn-action-download {
    padding: 14px 16px;
    font-size: 14px;
  }

  /* Carousel Grid 2-Column on Mobile */
  .carousel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .carousel-slide-title {
    font-size: 12px;
  }

  .btn-carousel-dl {
    padding: 8px 10px;
    font-size: 11px;
  }

  /* Grids to single column */
  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .step-card,
  .feature-card {
    padding: 22px 18px;
  }

  /* Comparison Table responsive scroll */
  .comparison-card {
    padding: 14px 10px;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .comparison-table {
    min-width: 280px;
    width: 100%;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 18px;
    font-size: 13.5px;
  }

  .footer-container,
  .footer-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 14px !important;
    text-align: left !important;
  }

  .brand-col,
  .footer-col-brand {
    grid-column: span 2 !important;
    margin-bottom: 6px !important;
  }

  .footer-links a {
    font-size: 12.5px !important;
  }

  .seo-keywords-cloud {
    padding: 10px 12px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
  }
}

/* Compact Smartphones (max-width: 520px) */
@media (max-width: 520px) {
  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .logo-name {
    font-size: 18px;
  }

  .hero-badge,
  .hero-tag-badge {
    font-size: 11px;
    padding: 4px 12px;
    line-height: 1.3;
  }

  .btn-sample {
    font-size: 11px;
    padding: 4px 10px;
  }

  .comparison-table {
    min-width: 260px;
    width: 100%;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 9px 8px;
    font-size: 12px;
  }

  .footer-bio {
    max-width: 100%;
    font-size: 12.5px !important;
  }
}

/* Ultra Compact & Small Screens (320px - 400px - iPhone SE, Galaxy Fold outer, Mini devices) */
@media (max-width: 400px) {
  .container {
    padding: 0 10px;
  }

  .logo-tagline {
    display: none;
  }

  .logo-name {
    font-size: 17px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .hero-badge,
  .hero-tag-badge {
    font-size: 10.5px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
  }

  .tabs-wrapper {
    gap: 2px !important;
    padding: 3px !important;
  }

  .tab-btn {
    padding: 6px 1px !important;
    font-size: 10px !important;
  }

  .tab-btn i {
    font-size: 12.5px !important;
  }

  .tab-btn i {
    font-size: 11px;
  }

  .carousel-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slide-card {
    max-width: 260px;
    margin: 0 auto;
  }

  .device-badges {
    gap: 6px;
  }

  .device-pill {
    padding: 5px 10px;
    font-size: 11px;
  }

  .redirect-card {
    padding: 16px 12px !important;
    gap: 14px !important;
  }

  .redirect-content h2 {
    font-size: 17.5px !important;
  }

  .redirect-list li {
    font-size: 12.8px !important;
  }

  .url-example {
    font-size: 11px !important;
    padding: 2px 5px !important;
  }

  .btn-download {
    font-size: 14px;
    padding: 12px 16px;
  }

  .btn-action-download {
    font-size: 13.5px;
    padding: 12px 14px;
  }

  .faq-question {
    padding: 14px 14px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 14px;
    font-size: 13px;
  }
}


/* ==========================================================================
   Compact Spacing & High-Contrast Typography Tweaks (Light & Dark)
   ========================================================================== */
.hero-section {
  padding: 16px 0 10px !important;
}

.hero-title {
  font-size: 28px !important;
  margin-bottom: 4px !important;
}

.hero-subtitle {
  font-size: 13px !important;
  margin-bottom: 10px !important;
}

.tabs-wrapper {
  margin-bottom: 10px !important;
}

.search-box-card {
  padding: 10px 14px !important;
  margin-bottom: 12px !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.features-section,
.how-to-section,
.seo-text-section,
.faq-section {
  padding: 18px 0 !important;
}

.section-header {
  margin-bottom: 14px !important;
}

.section-title {
  font-size: 22px !important;
  margin-bottom: 4px !important;
}

.section-subtitle {
  font-size: 13px !important;
}

.feature-card {
  padding: 16px 14px !important;
}

.step-card {
  padding: 14px !important;
}

.faq-item {
  margin-bottom: 8px !important;
}

.faq-question {
  padding: 12px 16px !important;
  font-size: 14.5px !important;
}

.faq-answer {
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 16px !important;
  font-size: 13.5px !important;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease !important;
}

.faq-item.open .faq-answer {
  max-height: 500px !important;
  padding: 0 16px 14px !important;
}

.footer {
  padding: 20px 0 12px !important;
}

/* ==========================================================================
   Dark Theme Definition & Dynamic Overrides
   ========================================================================== */
[data-theme="dark"] {
  --bg-color: #0b0914 !important;
  --card-bg-color: #151221 !important;
  --text-color: #f8fafc !important;
  --text-muted: #94a3b8 !important;
  --border-color: rgba(255, 255, 255, 0.12) !important;
  --border-focus: rgba(225, 48, 108, 0.8) !important;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] body {
  background-color: #0b0914 !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .navbar {
  background: rgba(15, 12, 25, 0.92) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .logo-name {
  color: #f8fafc !important;
}

[data-theme="dark"] .nav-links a:not(.btn-admin-nav):not(.nav-admin-btn) {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .hero-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .section-badge,
[data-theme="dark"] .hero-badge,
[data-theme="dark"] .hero-tag-badge {
  background: rgba(225, 48, 108, 0.22) !important;
  border: 1px solid rgba(225, 48, 108, 0.48) !important;
  color: #ff659c !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .tabs-wrapper {
  background: #151221 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .tab-btn {
  background: transparent !important;
  color: #cbd5e1 !important;
  border: none !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .tab-btn i {
  color: #f43f5e !important;
}

[data-theme="dark"] .tab-btn:hover {
  background: rgba(225, 48, 108, 0.15) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .tab-btn:hover i {
  color: #ffffff !important;
}

[data-theme="dark"] .tab-btn.active {
  background: var(--gradient-instagram) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.45) !important;
}

[data-theme="dark"] .tab-btn.active i {
  color: #ffffff !important;
}

[data-theme="dark"] .search-box-card {
  background: #151221 !important;
  border: 1.5px solid rgba(225, 48, 108, 0.35) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .input-wrapper {
  background: #0d0b17 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
}

[data-theme="dark"] .input-wrapper:focus-within {
  border-color: #e1306c !important;
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.25) !important;
}

[data-theme="dark"] #urlInput {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

[data-theme="dark"] #urlInput::placeholder {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .btn-paste {
  background: #231c36 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .btn-paste i {
  color: #ff659c !important;
}

[data-theme="dark"] .btn-paste:hover {
  background: #2e2547 !important;
  border-color: rgba(225, 48, 108, 0.5) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .btn-sample {
  background: #1b172b !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .btn-sample:hover {
  background: rgba(225, 48, 108, 0.2) !important;
  border-color: rgba(225, 48, 108, 0.5) !important;
  color: #ff659c !important;
}

[data-theme="dark"] .result-card {
  background: #151221 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .fastdl-result-box {
  background: transparent !important;
}

[data-theme="dark"] .search-result-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .quality-selector-card {
  background: #181427 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .quality-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .quality-option-item {
  background: #1f1a33 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .quality-badge-tag {
  color: #f8fafc !important;
}

[data-theme="dark"] .btn-mini-direct-dl {
  background: #151221 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .feature-item,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .instruction-card,
[data-theme="dark"] .section-text__card,
[data-theme="dark"] .redirect-card,
[data-theme="dark"] .faq-item {
  background: #151221 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .redirect-content h2 {
  color: #ffffff !important;
}

[data-theme="dark"] .redirect-list li {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .redirect-list li span {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .redirect-list li strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .url-example {
  background: #1f1a30 !important;
  border: 1px solid rgba(225, 48, 108, 0.45) !important;
  color: #ff659c !important;
}

[data-theme="dark"] .device-pill {
  background: #151221 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .device-pill i {
  color: #ff659c !important;
}

[data-theme="dark"] .btn-feat-action {
  background: #1e1930 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .btn-feat-action:hover {
  background: var(--gradient-instagram) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

[data-theme="dark"] .faq-question {
  color: #f8fafc !important;
}

[data-theme="dark"] .faq-icon-wrapper {
  background: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .faq-icon {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .faq-item.open {
  background: #181427 !important;
  border-color: rgba(225, 48, 108, 0.5) !important;
}

[data-theme="dark"] .faq-item.open .faq-icon-wrapper {
  background: var(--gradient-instagram) !important;
}

[data-theme="dark"] .faq-item.open .faq-icon {
  color: #ffffff !important;
}

[data-theme="dark"] .faq-answer {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .footer {
  background: #0f0c1a !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .footer-heading {
  color: #f8fafc !important;
}

[data-theme="dark"] .footer-bio {
  color: #94a3b8 !important;
}

[data-theme="dark"] .footer-links a {
  color: #94a3b8 !important;
}

[data-theme="dark"] .footer-links a:hover {
  color: #f43f5e !important;
}

[data-theme="dark"] .seo-keywords-cloud {
  background: #151221 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .seo-keywords-cloud a {
  color: #94a3b8 !important;
}

[data-theme="dark"] .seo-keywords-cloud a:hover {
  color: #f8fafc !important;
}

[data-theme="dark"] .mobile-nav-sheet {
  background: #120e20 !important;
  border-left-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .drawer-brand {
  color: #f8fafc !important;
}

[data-theme="dark"] .drawer-nav-item {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .drawer-nav-item:hover,
[data-theme="dark"] .drawer-nav-item.active {
  background: rgba(225, 48, 108, 0.15) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .nav-blog-pill {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
}

[data-theme="dark"] .mobile-menu-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
}

/* ==========================================================================
   Theme Switcher Button
   ========================================================================== */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: rgba(225, 48, 108, 0.08);
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 15px;
}

.theme-toggle-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: rotate(25deg);
}

/* ==========================================================================
   Quality Selector - Sleek 1-Click Format Row Overrides
   ========================================================================== */
.quality-selector-card {
  width: 100% !important;
  max-width: 520px !important;
  background: var(--card-bg-color) !important;
  border: 1.5px solid var(--border-color) !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  margin: 10px auto !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

.quality-selector-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}

.quality-title {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.quality-pill-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: center !important;
  align-items: center !important;
}

.quality-pill-dl {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 9999px !important;
  color: #0f172a !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
  white-space: nowrap !important;
}

.quality-pill-dl .q-icon {
  font-size: 13px !important;
}

.quality-pill-dl .q-label {
  font-weight: 700 !important;
  color: #0f172a !important;
}

.quality-pill-dl .q-size {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
  padding: 1px 6px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.quality-pill-dl .q-arrow {
  font-size: 10px !important;
  color: #64748b !important;
  transition: transform 0.2s ease !important;
}

.quality-pill-dl:hover {
  border-color: #e1306c !important;
  color: #e1306c !important;
  background: rgba(225, 48, 108, 0.06) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.22) !important;
}

.quality-pill-dl:hover .q-label {
  color: #e1306c !important;
}

.quality-pill-dl:hover .q-arrow {
  color: #e1306c !important;
  transform: translateY(1px) !important;
}

.quality-pill-dl.active {
  background: linear-gradient(135deg, #e1306c 0%, #c13584 100%) !important;
  border-color: #e1306c !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.35) !important;
}

.quality-pill-dl.active .q-label {
  color: #ffffff !important;
}

.quality-pill-dl.active .q-size {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.quality-pill-dl.active .q-arrow {
  color: #ffffff !important;
}

/* Dark theme for quality pills & cards */
[data-theme="dark"] .quality-selector-card {
  background: #181427 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .quality-title {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .quality-pill-dl {
  background: #1b172b !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .quality-pill-dl .q-label {
  color: #f8fafc !important;
}

[data-theme="dark"] .quality-pill-dl .q-size {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #34d399 !important;
}

[data-theme="dark"] .quality-pill-dl .q-arrow {
  color: #94a3b8 !important;
}

[data-theme="dark"] .quality-pill-dl:hover {
  background: rgba(225, 48, 108, 0.15) !important;
  border-color: #e1306c !important;
  color: #ff548e !important;
}

[data-theme="dark"] .quality-pill-dl:hover .q-label {
  color: #ff548e !important;
}

[data-theme="dark"] .quality-pill-dl.active {
  background: linear-gradient(135deg, #e1306c 0%, #c13584 100%) !important;
  border-color: #e1306c !important;
  color: #ffffff !important;
}

[data-theme="dark"] .quality-pill-dl.active .q-label,
[data-theme="dark"] .quality-pill-dl.active .q-size,
[data-theme="dark"] .quality-pill-dl.active .q-arrow {
  color: #ffffff !important;
}

[data-theme="dark"] .result-meta-card {
  background: #181427 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .meta-item span {
  color: #f8fafc !important;
}

[data-theme="dark"] .meta-item i {
  color: #94a3b8 !important;
}

[data-theme="dark"] .result-caption-text {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .instant-fetch-card {
  background: #181427 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .fetch-pulse-text strong {
  color: #f8fafc !important;
}

[data-theme="dark"] .fetch-pulse-sub {
  color: #94a3b8 !important;
}

[data-theme="dark"] .comparison-table th {
  background: #1e1933 !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .comparison-table td {
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .comparison-table td:first-child {
  color: #f8fafc !important;
}

.result-action-bar {
  margin: 8px auto 10px !important;
  width: 100% !important;
  max-width: 200px !important;
}

.btn-fastdl-download {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  background: #0095f6 !important;
  background: linear-gradient(135deg, #0095f6 0%, #0077e5 100%) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 3px 12px rgba(0, 149, 246, 0.35) !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.btn-fastdl-download svg,
.btn-fastdl-download i {
  width: 15px !important;
  height: 15px !important;
  font-size: 14px !important;
}

.btn-fastdl-download:hover {
  background: linear-gradient(135deg, #0084dc 0%, #0066cc 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 16px rgba(0, 149, 246, 0.5) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Flying Kiss Particle Animation
   ========================================================================== */
.flying-kiss-particle {
  position: absolute;
  z-index: 99999;
  pointer-events: none;
  font-size: 28px;
  line-height: 1;
  user-select: none;
  animation: flyingKissFloat ease-out forwards;
  filter: drop-shadow(0 4px 10px rgba(225, 48, 108, 0.5));
}

@keyframes flyingKissFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6) rotate(0deg);
  }
  40% {
    opacity: 0.95;
    transform: translate(calc(var(--drift-x) * 0.4), calc(var(--drift-y) * 0.4)) scale(1.4) rotate(var(--rotate));
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift-x), var(--drift-y)) scale(1.9) rotate(calc(var(--rotate) * 1.6));
  }
}

/* ==========================================================================
   Blog Hub & Article Layout Styles (Google AdSense E-E-A-T Compliant)
   ========================================================================== */
.blog-hero {
  padding: 30px 0 20px;
  text-align: center;
  background: transparent;
}

.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(225, 48, 108, 0.08);
  border: 1px solid rgba(225, 48, 108, 0.2);
  color: #e1306c;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-hero-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.blog-hero-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.blog-search-card {
  max-width: 580px;
  margin: 0 auto;
}

.blog-search-form {
  display: flex;
  align-items: center;
  background: var(--card-bg-color);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 6px 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.blog-search-form .search-icon {
  padding: 0 12px;
  color: var(--text-muted);
}

.blog-search-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-color);
  font-family: inherit;
}

.btn-search-submit {
  background: var(--gradient-instagram);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.blog-categories-bar {
  padding: 6px 0 16px;
}

.cat-pills-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.blog-cat-pill {
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-cat-pill .count {
  background: rgba(225, 48, 108, 0.1);
  color: #e1306c;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 11px;
}

.blog-cat-pill.active,
.blog-cat-pill:hover {
  background: var(--gradient-instagram);
  color: #ffffff;
  border-color: transparent;
}

.blog-cat-pill.active .count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.blog-posts-section {
  padding: 16px 0 40px;
}

.blog-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-grid-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-color);
}

.e-e-a-t-badge {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: #e1306c;
  box-shadow: 0 10px 28px rgba(225, 48, 108, 0.12);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  padding: 18px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.blog-card-cat {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #e1306c;
  background: rgba(225, 48, 108, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

.blog-card-time {
  font-size: 11px;
  color: var(--text-muted);
}

.blog-card-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-color);
  margin-bottom: 8px;
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.author-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-mini-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-instagram);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.author-mini-info {
  display: flex;
  flex-direction: column;
}

.author-mini-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-color);
}

.author-mini-date {
  font-size: 10px;
  color: var(--text-muted);
}

.read-more-link {
  font-size: 12px;
  font-weight: 700;
  color: #e1306c;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-tool-cta {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.06), rgba(131, 58, 180, 0.06));
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #e1306c;
  margin-bottom: 6px;
}

.cta-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 4px;
}

.cta-content p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.btn-cta-launch {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--gradient-instagram);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(225, 48, 108, 0.35);
  white-space: nowrap;
}

/* ==========================================================================
   Article Detail Page Styles
   ========================================================================== */
.breadcrumb-bar {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .breadcrumb-bar {
  background: rgba(0, 0, 0, 0.2);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 12.5px;
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: #e1306c;
}

.breadcrumb-current {
  color: var(--text-color);
  font-weight: 700;
}

/* ==========================================================================
   Article Detail Page Styles - Premium High-Converting Editorial Layout
   Optimized for 100% Readability, Content Framing & Balanced Left-Right Margin
   ========================================================================== */

.article-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  padding: 32px 28px 65px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1024px) {
  .article-page-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 24px 26px 50px !important;
  }
}

@media (max-width: 768px) {
  .article-page-layout {
    padding: 18px 20px 40px !important;
    gap: 22px;
  }
}

@media (max-width: 420px) {
  .article-page-layout {
    padding: 14px 16px 36px !important;
    gap: 18px;
  }
}

/* Master Elevated Article Content Container Card - Generous Internal Left-Right Padding */
.article-main-content {
  min-width: 0;
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 48px 54px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all 0.25s ease;
}

[data-theme="dark"] .article-main-content {
  background: #151421;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
  .article-main-content {
    padding: 36px 36px;
    border-radius: 20px;
  }
}

@media (max-width: 768px) {
  .article-main-content {
    padding: 28px 24px;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  }
}

@media (max-width: 420px) {
  .article-main-content {
    padding: 22px 18px;
    border-radius: 16px;
  }
}

.article-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.article-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.badge-cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #e1306c;
  background: rgba(225, 48, 108, 0.1);
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.badge-e-e-a-t {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .badge-e-e-a-t {
  color: #94a3b8;
}

.article-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.3;
  color: #0f172a;
  margin-bottom: 14px;
  word-break: break-word;
}

[data-theme="dark"] .article-title {
  color: #f8fafc;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 23px;
    line-height: 1.35;
  }
}

.article-subtitle {
  font-size: 16px;
  color: #475569;
  line-height: 1.62;
  margin-bottom: 20px;
  font-weight: 450;
}

[data-theme="dark"] .article-subtitle {
  color: #94a3b8;
}

@media (max-width: 768px) {
  .article-subtitle {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 16px;
  }
}

.article-author-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(225, 48, 108, 0.03);
  border: 1px solid rgba(225, 48, 108, 0.12);
  border-radius: 14px;
  margin-bottom: 20px;
}

[data-theme="dark"] .article-author-byline {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-instagram);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.35);
  flex-shrink: 0;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.author-name {
  font-size: 14px;
  color: #0f172a;
}

[data-theme="dark"] .author-name {
  color: #f8fafc;
}

.badge-verified {
  font-size: 11.5px;
  color: #0284c7;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.author-meta-sub {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

[data-theme="dark"] .author-meta-sub {
  color: #94a3b8;
}

.social-share-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 0 4px;
}

@media (max-width: 640px) {
  .social-share-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.share-label {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

[data-theme="dark"] .share-label {
  color: #94a3b8;
}

.share-btn {
  padding: 9px 8px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.share-btn.wa { background: #25d366; }
.share-btn.tg { background: #0088cc; }
.share-btn.tw { background: #0f1419; }
.share-btn.cp { background: #64748b; }

/* Completely Hide Featured Visual Banner Box Across All Posts */
.article-featured-banner {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Collapsible Table of Contents Card */
.toc-card {
  background: rgba(131, 58, 180, 0.03);
  border: 1.5px solid rgba(131, 58, 180, 0.15);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 22px 0 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

[data-theme="dark"] .toc-card {
  background: rgba(131, 58, 180, 0.06);
  border-color: rgba(131, 58, 180, 0.25);
}

.toc-toggle-header,
.toc-header {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  padding: 2px 0;
  text-align: left;
}

[data-theme="dark"] .toc-toggle-header,
[data-theme="dark"] .toc-header {
  color: #f8fafc;
}

.toc-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(131, 58, 180, 0.12);
  color: #833ab4;
}

[data-theme="dark"] .toc-badge {
  background: rgba(131, 58, 180, 0.25);
  color: #c084fc;
}

.toc-chevron {
  font-size: 13px;
  color: #833ab4;
  transition: transform 0.25s ease;
  display: inline-block;
}

[data-theme="dark"] .toc-chevron {
  color: #c084fc;
}

.toc-card.open .toc-chevron {
  transform: rotate(180deg);
}

.toc-list {
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(131, 58, 180, 0.2);
}

.toc-card.open .toc-list {
  display: flex;
}

.toc-list a {
  font-size: 13.5px;
  color: #334155;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: break-word;
}

[data-theme="dark"] .toc-list a {
  color: #cbd5e1;
}

.toc-list a i {
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 11px;
}

.toc-list a:hover {
  color: #e1306c;
}

/* Article Body Typography & Content */
.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: #1e293b;
}

[data-theme="dark"] .article-body {
  color: #cbd5e1;
}

.article-section {
  margin-bottom: 32px;
}

.section-heading {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0f172a;
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 4px solid #e1306c;
  line-height: 1.35;
}

[data-theme="dark"] .section-heading {
  color: #f8fafc;
}

@media (max-width: 640px) {
  .section-heading {
    font-size: 20px;
    margin: 28px 0 14px;
    padding-left: 10px;
  }
}

.article-body p {
  margin-bottom: 18px;
  color: #1e293b;
  font-weight: 450;
}

[data-theme="dark"] .article-body p {
  color: #cbd5e1;
}

.article-body h3 {
  font-size: 18.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 26px 0 10px;
}

[data-theme="dark"] .article-body h3 {
  color: #f8fafc;
}

.article-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 20px 0 8px;
}

[data-theme="dark"] .article-body h4 {
  color: #f8fafc;
}

.article-body ul,
.article-body ol {
  margin: 14px 0 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body li {
  line-height: 1.7;
}

.pro-tip-box {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.05), rgba(131, 58, 180, 0.05));
  border-left: 4px solid #e1306c;
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  margin: 22px 0;
  box-shadow: 0 2px 12px rgba(225, 48, 108, 0.03);
}

[data-theme="dark"] .pro-tip-box {
  background: rgba(225, 48, 108, 0.08);
}

.pro-tip-badge {
  font-size: 12.5px;
  font-weight: 800;
  color: #e1306c;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.pro-tip-box p {
  margin-bottom: 0 !important;
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
  line-height: 1.6;
}

[data-theme="dark"] .pro-tip-box p {
  color: #f1f5f9;
}

.article-table-wrapper {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
  -webkit-overflow-scrolling: touch;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.article-table th {
  background: rgba(225, 48, 108, 0.08);
  color: #0f172a;
  padding: 12px 14px;
  font-weight: 800;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

[data-theme="dark"] .article-table th {
  color: #f8fafc;
  background: rgba(225, 48, 108, 0.15);
}

.article-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-color);
  color: #1e293b;
}

[data-theme="dark"] .article-table td {
  color: #cbd5e1;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.faq-item {
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
}

[data-theme="dark"] .faq-item {
  background: rgba(255, 255, 255, 0.025);
}

.faq-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

[data-theme="dark"] .faq-item h4 {
  color: #f8fafc;
}

.faq-item p {
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 0 !important;
  line-height: 1.6;
}

[data-theme="dark"] .faq-item p {
  color: #94a3b8;
}

/* Author Full Bio Footer Card */
.author-full-bio-box {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.03), rgba(131, 58, 180, 0.03));
  border: 1.5px solid rgba(225, 48, 108, 0.16);
  border-radius: 18px;
  padding: 24px 26px;
  display: flex;
  gap: 18px;
  margin: 36px 0 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .author-full-bio-box {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(225, 48, 108, 0.25);
}

@media (max-width: 640px) {
  .author-full-bio-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
  }
}

.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-instagram);
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.35);
}

.author-bio-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.author-bio-header h3 {
  font-size: 17.5px;
  font-weight: 800;
  color: #0f172a;
}

[data-theme="dark"] .author-bio-header h3 {
  color: #f8fafc;
}

.author-role-tag {
  font-size: 11px;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  padding: 3px 9px;
  border-radius: 9999px;
  font-weight: 700;
}

.author-bio-text p {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 12px !important;
}

[data-theme="dark"] .author-bio-text p {
  color: #94a3b8;
}

.author-credentials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
}

[data-theme="dark"] .author-credentials {
  color: #94a3b8;
}

.disclaimer-callout-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 18px 0;
}

[data-theme="dark"] .disclaimer-callout-box {
  background: #110e1c;
  border-color: rgba(255, 255, 255, 0.1);
}

.disclaimer-callout-box h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .disclaimer-callout-box h4 {
  color: #94a3b8;
}

.disclaimer-callout-box p {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 0 !important;
  line-height: 1.5;
}

/* In-Article Downloader CTA Box */
.in-article-cta-box {
  background: var(--gradient-instagram);
  border-radius: 18px;
  padding: 24px 28px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 10px;
  box-shadow: 0 10px 30px rgba(225, 48, 108, 0.28);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .in-article-cta-box {
    padding: 20px 16px;
    flex-direction: column;
    text-align: center;
  }
}

.in-cta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 640px) {
  .in-cta-left {
    flex-direction: column;
  }
}

.in-cta-left .cta-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.in-cta-left h3 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 3px;
}

.in-cta-left p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92) !important;
  margin-bottom: 0 !important;
}

.btn-in-cta {
  padding: 11px 22px;
  border-radius: 10px;
  background: #ffffff;
  color: #e1306c;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-in-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* Sidebar Styling & Sticky Position */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 86px;
}

.sidebar-widget {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .sidebar-widget {
  background: #151421;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.widget-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

[data-theme="dark"] .widget-title {
  color: #f8fafc;
}

.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-post-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.related-post-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-cat {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #e1306c;
}

.related-post-card h4 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.related-post-card a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

[data-theme="dark"] .related-post-card a {
  color: #f1f5f9;
}

.related-post-card a:hover {
  color: #e1306c;
}

.related-meta {
  font-size: 11px;
  color: #64748b;
}

[data-theme="dark"] .related-meta {
  color: #94a3b8;
}

.cta-widget {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.08), rgba(131, 58, 180, 0.08));
  border: 1.5px solid rgba(225, 48, 108, 0.25);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: center;
}

[data-theme="dark"] .cta-widget {
  background: rgba(225, 48, 108, 0.12);
  border-color: rgba(225, 48, 108, 0.35);
}

.cta-widget-badge {
  display: inline-block;
  background: #e1306c;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 10px;
  letter-spacing: 0.4px;
}

.cta-widget h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

[data-theme="dark"] .cta-widget h4 {
  color: #f8fafc;
}

.cta-widget p {
  font-size: 12.5px;
  color: #475569;
  margin-bottom: 14px;
  line-height: 1.5;
}

[data-theme="dark"] .cta-widget p {
  color: #94a3b8;
}

.btn-sidebar-cta {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gradient-instagram);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
  transition: transform 0.2s ease;
}

.btn-sidebar-cta:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   Universal Responsive Zero-Cut & All-Device Adaptation Engine
   (Mobile, Small Phone, Tablet, Laptop, Desktop, 4K)
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

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

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 24px !important;
    line-height: 1.22 !important;
    margin-bottom: 8px !important;
    font-weight: 800 !important;
  }

  .hero-subtitle {
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #1e293b !important;
    max-width: 360px !important;
    margin: 0 auto 16px !important;
    font-weight: 500 !important;
    padding: 0 4px;
  }

  [data-theme="dark"] .hero-subtitle {
    color: #cbd5e1 !important;
  }

  .tabs-wrapper {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 4px !important;
    padding: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    border-radius: 12px !important;
  }

  .tab-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 7px 2px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
    white-space: nowrap !important;
  }

  .tab-btn i {
    font-size: 13.5px !important;
  }

  .tab-btn span {
    display: block !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  .search-box-card {
    padding: 8px !important;
    border-radius: 12px !important;
  }

  .result-card {
    padding: 12px !important;
    margin: 10px auto !important;
  }

  .media-preview-container {
    max-width: 100% !important;
  }

  .media-preview-container img,
  .media-preview-container video {
    max-height: 320px !important;
    border-radius: 8px !important;
  }

  .result-action-bar {
    max-width: 180px !important;
    margin: 8px auto 6px !important;
  }

  .btn-fastdl-download {
    padding: 7px 14px !important;
    font-size: 13px !important;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .feature-card,
  .step-card {
    padding: 14px 12px !important;
  }

  .section-title {
    font-size: 19px !important;
  }

  .section-subtitle {
    font-size: 12.5px !important;
  }

  .faq-question {
    font-size: 13.5px !important;
    padding: 10px 12px !important;
  }

  .faq-answer {
    font-size: 13px !important;
    padding: 0 12px !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  .faq-item.open .faq-answer {
    max-height: 500px !important;
    padding: 0 12px 12px !important;
  }

  /* Blog Index Mobile Optimizations */
  .blog-hero {
    padding: 24px 0 16px !important;
  }

  .blog-hero-title {
    font-size: 21px !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }

  .blog-hero-subtitle {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
  }

  .blog-search-card {
    max-width: 100% !important;
  }

  .blog-search-form {
    padding: 4px 6px !important;
    border-radius: 10px !important;
  }

  .blog-search-form .search-icon {
    padding: 0 8px !important;
    font-size: 13px !important;
  }

  .blog-search-form input {
    font-size: 12px !important;
    min-width: 0 !important;
  }

  .btn-search-submit {
    padding: 7px 11px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .cat-pills-wrapper {
    gap: 6px !important;
    padding-bottom: 6px !important;
    scrollbar-width: none !important;
  }

  .cat-pills-wrapper::-webkit-scrollbar {
    display: none !important;
  }

  .blog-cat-pill {
    padding: 4px 10px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  /* Blog Article Page Mobile Optimizations */
  .article-page-layout {
    padding: 14px 0 30px !important;
    gap: 18px !important;
  }

  .article-title {
    font-size: 22px !important;
    line-height: 1.35 !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 10px !important;
    word-break: break-word !important;
  }

  .article-subtitle {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 14px !important;
  }

  .section-heading {
    font-size: 18px !important;
    line-height: 1.35 !important;
    padding-left: 10px !important;
    margin-bottom: 12px !important;
  }

  .article-author-byline {
    padding: 10px 12px !important;
    gap: 10px !important;
  }

  .author-avatar {
    width: 36px !important;
    height: 36px !important;
  }

  .author-meta-name {
    font-size: 13px !important;
  }

  .author-meta-sub {
    font-size: 11px !important;
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
  }

  .social-share-bar,
  .article-share-bar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    padding: 10px 0 !important;
    width: 100% !important;
  }

  .share-label {
    grid-column: span 4 !important;
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }

  .share-btn {
    justify-content: center !important;
    padding: 7px 4px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
  }

  .toc-card {
    padding: 12px 14px !important;
    margin: 14px 0 !important;
  }

  .toc-toggle-header {
    margin-bottom: 0 !important;
  }

  .toc-card.open .toc-toggle-header {
    margin-bottom: 10px !important;
  }

  .toc-chevron {
    display: block !important;
  }

  .toc-card:not(.open) .toc-list {
    display: none !important;
  }

  .toc-card.open .toc-list {
    display: flex !important;
    animation: fadeIn 0.25s ease-out !important;
  }

  .toc-card.open .toc-chevron {
    transform: rotate(180deg) !important;
    color: var(--primary-color) !important;
  }

  .toc-list a {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .section-heading {
    font-size: 18px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
  }

  .article-body p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin-bottom: 12px !important;
  }

  .article-table {
    min-width: 300px !important;
  }

  .article-table th,
  .article-table td {
    padding: 7px 8px !important;
    font-size: 11px !important;
  }

  .pro-tip-box,
  .disclaimer-callout-box,
  .legal-box {
    padding: 11px 12px !important;
    font-size: 12px !important;
  }

  .in-article-cta-box {
    padding: 14px 16px !important;
    flex-direction: column !important;
    text-align: center !important;
  }

  /* Compact 2-Column Mobile Footer */
  .footer {
    padding: 28px 0 16px !important;
  }

  .footer-container,
  .footer-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px 12px !important;
    text-align: left !important;
  }

  .brand-col,
  .footer-col-brand {
    grid-column: span 2 !important;
    margin-bottom: 4px !important;
  }

  .footer-logo {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }

  .footer-bio {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 8px !important;
  }

  .footer-author-badge {
    font-size: 10px !important;
    padding: 3px 7px !important;
  }

  .footer-heading {
    font-size: 11.5px !important;
    margin-bottom: 8px !important;
  }

  .footer-links {
    gap: 6px !important;
  }

  .footer-links a,
  .footer-links span {
    font-size: 11.5px !important;
  }

  .seo-keywords-cloud-container {
    margin-bottom: 14px !important;
  }

  .seo-keywords-cloud {
    padding: 8px 10px !important;
    font-size: 10px !important;
    gap: 5px 8px !important;
  }

  .footer-bottom {
    padding-top: 12px !important;
  }

  .bottom-content p {
    font-size: 10.5px !important;
    line-height: 1.4 !important;
  }
}

/* Tablet Devices (min-width: 641px and max-width: 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-title {
    font-size: 26px !important;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }

  .article-page-layout {
    grid-template-columns: 1fr !important;
  }

  .footer-container,
  .footer-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 20px !important;
    text-align: left !important;
  }

  .brand-col,
  .footer-col-brand {
    grid-column: span 2 !important;
  }

  .tabs-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 6px !important;
  }

  .tab-btn {
    flex-direction: row !important;
    font-size: 13.5px !important;
    padding: 8px 16px !important;
    width: auto !important;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1240px;
  }
}

/* ==========================================================================
   MASTER HIGH-CONTRAST TYPOGRAPHY & ZERO-STRAIN READABILITY ENGINE
   100% Crisp Visibility across Light Mode, Dark Mode, Mobile & Desktop
   ========================================================================== */

/* Universal Light Theme Text Contrast */
body {
  color: #0f172a !important;
  font-weight: 450 !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #0f172a !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

p, li, td {
  color: #1e293b;
  font-weight: 450;
}

strong, b {
  color: #000000;
  font-weight: 800;
}

/* Hero Section Typography */
.hero-title {
  color: #0f172a !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
  color: #0f172a !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

/* Tabs Typography & Visibility */
.tab-btn {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.tab-btn i {
  color: var(--primary-color) !important;
}

.tab-btn.active {
  background: var(--gradient-instagram) !important;
  color: #ffffff !important;
}

.tab-btn.active i,
.tab-btn.active span {
  color: #ffffff !important;
}

/* Input Card Typography */
#urlInput {
  color: #0f172a !important;
  font-weight: 600 !important;
}

#urlInput::placeholder,
input::placeholder,
textarea::placeholder {
  color: #475569 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

.btn-paste {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* Section Titles & Descriptions */
.section-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.section-subtitle {
  color: #334155 !important;
  font-weight: 500 !important;
}

/* Feature & Step Cards */
.feature-item h3,
.step-card h3 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.feature-item p,
.step-card p {
  color: #1e293b !important;
  font-weight: 450 !important;
}

/* FAQ Typography */
.faq-question {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.faq-answer {
  color: #1e293b !important;
  font-weight: 450 !important;
}

/* Blog Cards Typography */
.blog-card-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.blog-card-excerpt {
  color: #1e293b !important;
  font-weight: 450 !important;
}

.blog-card-time {
  color: #334155 !important;
  font-weight: 600 !important;
}

.author-mini-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.author-mini-date {
  color: #334155 !important;
  font-weight: 600 !important;
}

/* Article Page Typography */
.article-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.article-subtitle {
  color: #1e293b !important;
  font-weight: 500 !important;
}

.article-body {
  color: #0f172a !important;
}

.article-body p {
  color: #1e293b !important;
  font-weight: 450 !important;
}

.section-heading {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.toc-header {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.toc-list a {
  color: #0f172a !important;
  font-weight: 600 !important;
}

/* Callout Boxes */
.pro-tip-box,
.disclaimer-callout-box,
.legal-box {
  color: #0f172a !important;
}

.pro-tip-box p,
.disclaimer-callout-box p,
.legal-box p {
  color: #1e293b !important;
}

/* Footer Typography (Light Theme) */
.footer-logo span {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.footer-heading {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.footer-bio {
  color: #1e293b !important;
  font-weight: 500 !important;
}

.footer-links a {
  color: #1e293b !important;
  font-weight: 600 !important;
}

.footer-links a:hover {
  color: var(--primary-color) !important;
}

.bottom-content p {
  color: #334155 !important;
  font-weight: 500 !important;
}

.seo-keywords-cloud a {
  color: #1e293b !important;
  font-weight: 500 !important;
}

/* ==========================================================================
   DARK THEME HIGH-CONTRAST OVERRIDES
   ========================================================================== */
[data-theme="dark"] body {
  color: #f8fafc !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #ffffff !important;
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] td {
  color: #e2e8f0 !important;
}

[data-theme="dark"] strong,
[data-theme="dark"] b {
  color: #ffffff !important;
}

[data-theme="dark"] .hero-title {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .hero-subtitle {
  color: #f1f5f9 !important;
  text-shadow: none !important;
}

[data-theme="dark"] .tabs-wrapper {
  background: #151221 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .tab-btn {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .tab-btn.active {
  color: #ffffff !important;
}

[data-theme="dark"] .tab-btn i {
  color: #f43f5e !important;
}

[data-theme="dark"] .tab-btn.active i {
  color: #ffffff !important;
}

[data-theme="dark"] #urlInput {
  color: #ffffff !important;
}

[data-theme="dark"] #urlInput::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #94a3b8 !important;
}

[data-theme="dark"] .btn-paste {
  background: #231c36 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .redirect-card {
  background: #151221 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
}

[data-theme="dark"] .section-title {
  color: #ffffff !important;
}

[data-theme="dark"] .section-subtitle {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .feature-item h3,
[data-theme="dark"] .step-card h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .feature-item p,
[data-theme="dark"] .step-card p {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .faq-question {
  color: #ffffff !important;
}

[data-theme="dark"] .faq-answer {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .blog-card-title {
  color: #ffffff !important;
}

[data-theme="dark"] .blog-card-excerpt {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .blog-card-time {
  color: #94a3b8 !important;
}

[data-theme="dark"] .author-mini-name {
  color: #ffffff !important;
}

[data-theme="dark"] .author-mini-date {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .article-title {
  color: #ffffff !important;
}

[data-theme="dark"] .article-subtitle {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .article-body {
  color: #f8fafc !important;
}

[data-theme="dark"] .article-body p {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .section-heading {
  color: #ffffff !important;
}

[data-theme="dark"] .toc-header {
  color: #ffffff !important;
}

[data-theme="dark"] .toc-list a {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .pro-tip-box,
[data-theme="dark"] .disclaimer-callout-box,
[data-theme="dark"] .legal-box {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .pro-tip-box p,
[data-theme="dark"] .disclaimer-callout-box p,
[data-theme="dark"] .legal-box p {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .footer-logo span {
  color: #ffffff !important;
}

[data-theme="dark"] .footer-heading {
  color: #ffffff !important;
}

[data-theme="dark"] .footer-bio {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .footer-links a {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .bottom-content p {
  color: #94a3b8 !important;
}

[data-theme="dark"] .seo-keywords-cloud a {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .insta-orb {
  opacity: 0.12 !important;
}

/* ==============================================================================
   Platform Switcher Bar (Instagram vs Facebook - Reference Match)
   ============================================================================== */
.platform-switch-bar {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 4px;
  border-radius: 50px;
  margin: 4px auto 10px auto;
  gap: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .platform-switch-bar {
  background: #181426 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #374151;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] .platform-pill {
  color: #e4e6eb;
}

.platform-pill:hover {
  color: var(--primary-color);
}

.platform-pill.active {
  background: linear-gradient(90deg, #833ab4, #fd1d1d, #fcb045) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 3px 14px rgba(225, 48, 108, 0.35);
}

.platform-pill.active i {
  color: #ffffff !important;
}

.platform-pill i.fa-facebook {
  color: #1877f2;
}

.platform-pill.active i.fa-facebook {
  color: #ffffff !important;
}

@media (max-width: 600px) {
  .platform-switch-bar {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
  .platform-pill {
    padding: 7px 14px;
    font-size: 12.5px;
  }
}
