/**
 * smallai.tools - Universal Animated Converter Loader & Standardized Result Styles
 * Primary Brand Color: #3D46F0 (Hover: #2C33C4)
 * Compatible with all Converter Tools & Responsive Viewports (320px - Desktop)
 */

/* ==========================================================================
   1. Shared Converter Step Tabs Navigation (Step 1 -> Step 2)
   ========================================================================== */
.sai-converter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sai-conv-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md, 8px);
  border: none;
  background: transparent;
  color: var(--text-secondary, #64748b);
  font-family: inherit;
  font-size: 0.925rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.sai-conv-tab:hover:not(:disabled) {
  background: rgba(61, 70, 240, 0.04);
  color: var(--brand-primary, #3D46F0);
}

.sai-conv-tab.active {
  background: rgba(61, 70, 240, 0.08);
  color: var(--brand-primary, #3D46F0);
  font-weight: 600;
}

.sai-conv-tab:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sai-tab-step {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-body, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  color: var(--text-secondary, #64748b);
  transition: all 0.2s ease;
}

.sai-conv-tab.active .sai-tab-step {
  background: var(--brand-primary, #3D46F0);
  border-color: var(--brand-primary, #3D46F0);
  color: #ffffff;
}

.sai-conv-tab.is-ready .sai-tab-step {
  background: #10B981;
  border-color: #10B981;
  color: #ffffff;
}

.sai-tab-labels {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sai-tab-title {
  font-size: 0.925rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sai-tab-sub {
  font-size: 0.775rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sai-tab-badge {
  margin-left: auto;
  background: #10B981;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  animation: saiPulseGlow 2s infinite ease-in-out;
}

.sai-tab-arrow {
  color: var(--border-strong, #cbd5e1);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
}

@keyframes saiPulseGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

@media (max-width: 640px) {
  .sai-converter-tabs {
    padding: 0.35rem;
    gap: 0.25rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .sai-conv-tab {
    padding: 0.5rem 0.45rem;
    gap: 0.4rem;
    min-width: 0;
  }
  .sai-tab-sub {
    display: none !important;
  }
  .sai-tab-title {
    font-size: 0.8rem;
    line-height: 1.2;
  }
  .sai-tab-step {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.72rem;
  }
  .sai-tab-arrow {
    display: none !important;
  }
  .sai-tab-badge {
    padding: 2px 6px;
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   2. smallai.tools Global Animated Converter Loader
   ========================================================================== */
.sai-loader-container {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  padding: 3rem 1.5rem;
  text-align: center;
  margin: 1.5rem auto;
  max-width: 720px;
  box-shadow: 0 8px 30px rgba(61, 70, 240, 0.08);
  animation: saiFadeIn 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

/* Central Visual Stage with Logo and Orbital Rings */
.sai-loader-visual {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient Orbitals */
.sai-loader-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sai-orbit-outer {
  inset: -12px;
  border: 1.5px dashed rgba(61, 70, 240, 0.25);
  animation: saiRotateClockwise 12s linear infinite;
}

.sai-orbit-inner {
  inset: -4px;
  border: 2px solid transparent;
  border-top-color: var(--brand-primary, #3D46F0);
  border-right-color: #818CF8;
  animation: saiRotateClockwise 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes saiRotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* SVG Circular Ring Track */
.sai-loader-svg-ring {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  transform: rotate(-90deg);
  pointer-events: none;
}

.sai-ring-bg {
  fill: none;
  stroke: var(--border-subtle, #e2e8f0);
  stroke-width: 3;
}

.sai-ring-fill {
  fill: none;
  stroke: var(--brand-primary, #3D46F0);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  stroke-dashoffset: 276.46;
  transition: stroke-dashoffset 0.3s ease;
}

/* Authentic smallai.tools Logo Emblem */
.sai-loader-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(61, 70, 240, 0.28);
  animation: saiLogoPulse 2.4s ease-in-out infinite;
  z-index: 2;
  position: relative;
}

.sai-loader-logo-mark {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes saiLogoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 12px rgba(61, 70, 240, 0.25)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 8px 22px rgba(61, 70, 240, 0.45)); }
}

/* Contextual Stage Message */
.sai-loader-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text-primary, #0f172a);
  min-height: 1.8rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Progress Bar (Determinate or Indeterminate) */
.sai-loader-bar-track {
  width: 100%;
  max-width: 440px;
  height: 10px;
  background: var(--bg-body, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 999px;
  overflow: hidden;
  margin: 1.25rem auto 0.75rem;
  position: relative;
}

.sai-loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3D46F0 0%, #6366F1 50%, #3D46F0 100%);
  background-size: 200% 100%;
  border-radius: 999px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sai-loader-bar-fill.indeterminate {
  width: 100% !important;
  animation: saiShimmerBar 1.8s linear infinite;
}

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

/* Subtext & Live Percentage */
.sai-loader-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #64748b);
  min-height: 1.4rem;
}

.sai-loader-percent {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-primary, #3D46F0);
}

.sai-loader-subtext {
  transition: opacity 0.2s ease;
}

.sai-loader-privacy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 1.25rem;
  padding: 0.4rem 0.85rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
}

/* ==========================================================================
   3. Unified Side-by-Side Result Layout (Left: Preview, Right: Download)
   ========================================================================== */
.sai-result-workspace {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  animation: saiFadeIn 0.3s ease;
}

/* Top Result Row: Side-by-Side on Desktop */
.sai-result-grid,
.vg-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.sai-result-card,
.vg-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  padding: 1.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sai-card-header,
.vg-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.sai-card-title,
.vg-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sai-card-badge {
  background: rgba(61, 70, 240, 0.08);
  color: var(--brand-primary, #3D46F0);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Left Box: Preview Viewport */
.sai-preview-viewport,
.vg-gif-viewport {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  flex: 1;
}

.sai-preview-img,
#vg-result-img,
#uconv-preview-img,
#j2j-result-preview-img,
#ifc-result-img,
#p2i-result-img {
  max-width: 100%;
  max-height: 280px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.sai-preview-img:hover,
#uconv-preview-img:hover,
#j2j-result-preview-img:hover,
#ifc-result-img:hover {
  transform: scale(1.015);
}

.sai-preview-toolbar,
.vg-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.sai-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sai-preview-btn:hover {
  color: var(--brand-primary, #3D46F0);
  border-color: var(--brand-primary, #3D46F0);
  background: rgba(61, 70, 240, 0.04);
}

/* Right Box: Download Section Inner Styling */
.sai-download-box-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 1.15rem;
}

.sai-right-success-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
}

.sai-right-check-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: #10B981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.sai-right-success-text {
  min-width: 0;
}

.sai-right-success-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0 0 2px;
  line-height: 1.3;
}

.sai-right-success-sub {
  font-size: 0.825rem;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

/* 3-Pill Quick Summary Strip in Download Box */
.sai-quick-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  background: var(--bg-body, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}

.sai-quick-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sai-quick-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 2px;
}

.sai-quick-val {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action Buttons inside Download Box */
.sai-action-buttons,
.vg-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

.sai-btn-download,
.vg-btn-download {
  width: 100%;
  height: 52px;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: var(--radius-md, 8px);
  background: var(--brand-primary, #3D46F0) !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(61, 70, 240, 0.32);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-sizing: border-box;
}

.sai-btn-download:hover,
.vg-btn-download:hover {
  background: var(--brand-hover, #2C33C4) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 70, 240, 0.42);
}

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

.sai-secondary-actions,
.vg-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: 100%;
  box-sizing: border-box;
}

.sai-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-subtle, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-primary, #0f172a);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.sai-btn-secondary:hover {
  border-color: var(--brand-primary, #3D46F0);
  color: var(--brand-primary, #3D46F0);
  background: rgba(61, 70, 240, 0.04);
}

.sai-btn-another {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
  text-decoration: none;
}

.sai-btn-another:hover {
  color: var(--brand-primary, #3D46F0);
}

/* ==========================================================================
   4. Result Specifications Section (Below Both Boxes)
   (No Original File Name Card & No Converted File Name Card)
   ========================================================================== */
.sai-specs-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  width: 100%;
}

.sai-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.sai-spec-item {
  background: var(--bg-body, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}

.sai-spec-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 3px;
}

.sai-spec-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  line-height: 1.35;
}

.sai-spec-sub {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
  margin-top: 2px;
}

/* ==========================================================================
   5. Thank You & Social Sharing Section (Matches Blog Design)
   ========================================================================== */
.sai-thankyou-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  width: 100%;
}

.sai-thankyou-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin-bottom: 0.35rem;
}

.sai-thankyou-sub {
  font-size: 0.875rem;
  color: var(--text-secondary, #64748b);
  margin-bottom: 1.15rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.blog-share-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-primary, #0f172a);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.blog-share-btn:hover {
  border-color: var(--brand-primary, #3D46F0);
  color: var(--brand-primary, #3D46F0);
  background: rgba(61, 70, 240, 0.05);
  transform: translateY(-1px);
}

/* Lightbox Modal */
.sai-lightbox-modal,
.uconv-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.sai-lightbox-backdrop,
.uconv-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.sai-lightbox-container,
.uconv-lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sai-lightbox-close,
.uconv-lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.sai-lightbox-close:hover,
.uconv-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
}

.sai-lightbox-img,
.uconv-lightbox-content img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  background: #ffffff;
}

/* ==========================================================================
   6. Dark Mode Overrides
   ========================================================================== */
[data-theme="dark"] .sai-result-card,
.dark .sai-result-card,
[data-theme="dark"] .sai-specs-card,
.dark .sai-specs-card,
[data-theme="dark"] .sai-thankyou-card,
.dark .sai-thankyou-card {
  background: #111827;
  border-color: #1f2937;
}

[data-theme="dark"] .sai-quick-strip,
.dark .sai-quick-strip,
[data-theme="dark"] .sai-spec-item,
.dark .sai-spec-item {
  background: #0f172a;
  border-color: #1f2937;
}

[data-theme="dark"] .sai-preview-viewport,
.dark .sai-preview-viewport {
  background-color: #111827;
  background-image: 
    linear-gradient(45deg, #1f2937 25%, transparent 25%),
    linear-gradient(-45deg, #1f2937 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1f2937 75%),
    linear-gradient(-45deg, transparent 75%, #1f2937 75%);
  border-color: #1f2937;
}

[data-theme="dark"] .sai-btn-secondary,
.dark .sai-btn-secondary,
[data-theme="dark"] .blog-share-btn,
.dark .blog-share-btn,
[data-theme="dark"] .sai-preview-btn,
.dark .sai-preview-btn {
  background: #1f2937;
  border-color: #374151;
  color: #f1f5f9;
}

[data-theme="dark"] .sai-card-title,
.dark .sai-card-title,
[data-theme="dark"] .sai-right-success-title,
.dark .sai-right-success-title,
[data-theme="dark"] .sai-quick-val,
.dark .sai-quick-val,
[data-theme="dark"] .sai-spec-val,
.dark .sai-spec-val,
[data-theme="dark"] .sai-thankyou-title,
.dark .sai-thankyou-title {
  color: #f8fafc;
}

/* ==========================================================================
   7. Responsive Breakpoints (320px - 900px)
   ========================================================================== */
@media (max-width: 900px) {
  .sai-result-grid,
  .vg-result-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .sai-specs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .sai-quick-strip {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .sai-specs-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .sai-secondary-actions,
  .vg-secondary-actions {
    grid-template-columns: 1fr;
  }
  .sai-preview-img,
  #vg-result-img,
  #uconv-preview-img,
  #j2j-result-preview-img,
  #ifc-result-img,
  #p2i-result-img {
    max-height: 200px;
  }
  .sai-btn-download,
  .vg-btn-download {
    height: 48px;
    font-size: 0.98rem;
  }
}
