/* ==========================================================================
   dwnit — Instagram Downloader Suite Specialized Styles
   Sunset Gradient: #833ab4 -> #fd1d1d -> #fcb045 (with #e1306c)
   60fps Animations, Dark Theme, RTL Native
   ========================================================================== */

:root {
  --ig-grad: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  --ig-grad-btn: linear-gradient(135deg, #e1306c 0%, #fd1d1d 50%, #f77737 100%);
  --ig-grad-glow: linear-gradient(135deg, rgba(131, 58, 180, 0.4), rgba(253, 29, 29, 0.4));
  --ig-pink: #e1306c;
  --ig-purple: #833ab4;
  --ig-orange: #f77737;
  --ig-yellow: #fcb045;
  --ig-dark-bg: #0d0f18;
  --ig-card-bg: #131726;
  --ig-card-hover: #181c30;
  --ig-border: rgba(225, 48, 108, 0.18);
  --ig-border-strong: rgba(225, 48, 108, 0.45);
}

.ig-landing {
  background-color: var(--ig-dark-bg);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(131, 58, 180, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(225, 48, 108, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 30%, rgba(252, 176, 69, 0.08), transparent 60%);
  color: #f1f5f9;
  min-height: 100vh;
  padding: 35px 0 80px;
  direction: rtl;
  font-family: 'Almarai', 'Tajawal', system-ui, -apple-system, sans-serif;
}

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

/* Breadcrumbs */
.ig-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.ig-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.ig-breadcrumb a:hover {
  color: var(--ig-pink);
}

/* Brand Badge */
.ig-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 48, 108, 0.12);
  border: 1px solid var(--ig-border-strong);
  color: #ff7597;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.ig-brand-badge svg {
  color: var(--ig-pink);
}

/* Page Title & Subtitle */
.ig-page-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
  color: #ffffff;
}

.ig-highlight-text {
  background: var(--ig-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.ig-page-subtitle {
  max-width: 760px;
  margin: 0 auto 36px;
  color: #94a3b8;
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Downloader Box */
.ig-downloader-box {
  background: var(--ig-card-bg);
  border: 1px solid var(--ig-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.6), 0 0 35px -10px rgba(225, 48, 108, 0.2);
  margin-bottom: 55px;
  position: relative;
  overflow: hidden;
}

.ig-downloader-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ig-grad);
}

/* Subtabs Navigation */
.ig-tab-selector {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  background: #0a0c14;
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 992px) {
  .ig-tab-selector {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .ig-tab-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ig-subtab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.ig-subtab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.ig-subtab.active {
  background: var(--ig-grad);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.4);
}

.ig-subtab.active svg {
  color: #ffffff;
}

/* Input Form */
.ig-input-wrapper {
  display: flex;
  align-items: center;
  background: #0a0c14;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 6px 8px;
  transition: all 0.25s ease;
  position: relative;
}

.ig-input-wrapper:focus-within {
  border-color: var(--ig-pink);
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.35);
}

.ig-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.05rem;
  padding: 14px 18px;
  direction: ltr;
  text-align: right;
  font-family: inherit;
}

.ig-input-field::placeholder {
  color: #64748b;
  direction: rtl;
  text-align: right;
  font-size: 0.95rem;
}

.ig-input-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.ig-btn-quick {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ig-btn-quick:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.ig-btn-submit {
  background: var(--ig-grad-btn);
  border: none;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(225, 48, 108, 0.45);
}

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

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

@media (max-width: 768px) {
  .ig-input-wrapper {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }
  .ig-input-field {
    width: 100%;
    padding: 8px 0;
  }
  .ig-input-actions {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }
  .ig-btn-submit {
    width: 100%;
    justify-content: center;
  }
}

/* Processing Countdown Box */
.ig-processing-box {
  display: none;
  background: #0b0d18;
  border: 1px solid var(--ig-border-strong);
  border-radius: 16px;
  padding: 22px;
  margin-top: 22px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.ig-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin: 16px 0;
  overflow: hidden;
}

.ig-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--ig-grad);
  border-radius: 999px;
  transition: width 0.1s linear;
}

.ig-proc-countdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #94a3b8;
}

.ig-proc-countdown-row strong {
  color: var(--ig-yellow);
  font-family: monospace;
  font-size: 1.1rem;
}

/* Results Container */
.ig-result-container {
  display: none;
  margin-top: 28px;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Single Media Result Card (Reels / Video / Photo) */
.ig-media-card {
  background: #0c0f1d;
  border: 1px solid var(--ig-border-strong);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  gap: 22px;
  align-items: center;
}

@media (max-width: 768px) {
  .ig-media-card {
    flex-direction: column;
    align-items: stretch;
  }
}

.ig-thumb-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--ig-border-strong);
  background: #000;
}

@media (max-width: 768px) {
  .ig-thumb-wrapper {
    width: 100%;
    height: 280px;
  }
}

.ig-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ig-thumb-wrapper:hover .ig-thumb-img {
  transform: scale(1.04);
}

.ig-thumb-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ig-media-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.ig-media-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 6px;
}

.ig-media-author {
  color: var(--ig-pink);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Download list */
.ig-download-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ig-dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.2s;
}

.ig-dl-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--ig-border-strong);
}

.ig-dl-row.highlighted {
  background: rgba(225, 48, 108, 0.1);
  border-color: var(--ig-pink);
}

.ig-dl-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #f1f5f9;
}

.ig-dl-title svg {
  color: var(--ig-pink);
}

.ig-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ig-grad-btn);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(225, 48, 108, 0.3);
}

.ig-dl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.5);
  color: #ffffff;
}

/* ==========================================================================
   Instagram Download Preparation & Countdown Box (Matches YouTube/TikTok Experience)
   ========================================================================== */
.ig-dl-prep-box {
  display: none;
  background: linear-gradient(145deg, #1b0c1c 0%, #0d111d 100%);
  border: 1px solid rgba(225, 48, 108, 0.45);
  border-radius: 16px;
  padding: 24px 20px;
  margin-top: 16px;
  box-shadow: 0 10px 30px rgba(225, 48, 108, 0.15);
  animation: igSlideDownFade 0.3s ease;
  text-align: center;
}

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

.ig-proc-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ig-proc-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(225, 48, 108, 0.2);
  border-top-color: #e1306c;
  border-radius: 50%;
  animation: igSpin 0.8s linear infinite;
}

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

.ig-proc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.ig-proc-status-text {
  font-size: 0.92rem;
  color: #ff99c8;
  margin-bottom: 16px;
  min-height: 22px;
  transition: opacity 0.2s ease;
}

.ig-dl-prep-box .ig-progress-track {
  width: 100%;
  height: 10px;
  background: #1a1e34;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin: 0 0 14px;
}

.ig-dl-prep-box .ig-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  border-radius: 999px;
  transition: width 0.1s linear;
  box-shadow: 0 0 14px rgba(225, 48, 108, 0.6);
}

.ig-proc-countdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #8b92a8;
  font-weight: 600;
}

.ig-proc-timer-badge {
  background: #330f1e;
  color: #ff85b2;
  border: 1px solid #5c1f3d;
  padding: 3px 12px;
  border-radius: 999px;
  font-family: monospace;
  font-weight: 700;
}

.ig-proc-ad-slot {
  margin-top: 18px;
  padding: 12px;
  background: rgba(225, 48, 108, 0.05);
  border: 1px dashed rgba(225, 48, 108, 0.25);
  border-radius: 10px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Quality Badges */
.badge-uhd {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.25), rgba(253, 29, 29, 0.25));
  border: 1px solid rgba(225, 48, 108, 0.5);
  color: #ff7597;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-right: 6px;
}

.badge-hd {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-right: 6px;
}

.badge-sd {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-right: 6px;
}

/* Profile Overview Card (Profile DP, Stories, Highlights) */
.ig-profile-card {
  background: #0c0f1d;
  border: 1px solid var(--ig-border-strong);
  border-radius: 20px;
  padding: 24px;
}

.ig-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .ig-profile-header {
    flex-direction: column;
    text-align: center;
  }
}

.ig-avatar-wrap {
  position: relative;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  padding: 3px;
  background: var(--ig-grad);
  flex-shrink: 0;
}

.ig-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0c0f1d;
}

.ig-profile-meta {
  flex: 1;
}

.ig-profile-username {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ig-profile-bio {
  color: #94a3b8;
  font-size: 0.92rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.ig-profile-stats {
  display: flex;
  gap: 18px;
}

@media (max-width: 640px) {
  .ig-profile-stats {
    justify-content: center;
  }
}

.ig-stat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.ig-stat-pill strong {
  color: #ffffff;
}

.ig-section-headline {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ig-section-headline svg {
  color: var(--ig-pink);
}

/* Stories Grid */
.ig-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.ig-story-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.ig-story-item:hover {
  transform: translateY(-2px);
  border-color: var(--ig-pink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.ig-story-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: radial-gradient(circle at center, #261633 0%, #0d0a14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ig-story-bg-blur {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  filter: blur(16px) brightness(0.35);
  opacity: 0.8;
  transform: scale(1.1);
  z-index: 1;
}

.ig-story-center-preview {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ig-story-avatar-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--ig-grad);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.ig-story-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0f0c1b;
  display: block;
}

.ig-story-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.ig-story-num-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ig-grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  z-index: 3;
}

.ig-story-time {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 6px;
  z-index: 3;
}

.ig-story-footer {
  padding: 10px;
}

.ig-story-info-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-story-btn {
  width: 100%;
  background: var(--ig-grad-btn);
  border: none;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.ig-story-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Highlights Albums Grid */
.ig-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.ig-hl-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.ig-hl-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ig-hl-cover {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 2px;
  background: var(--ig-grad);
  flex-shrink: 0;
}

.ig-hl-cover img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ig-hl-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: #ffffff;
}

.ig-hl-count {
  font-size: 0.8rem;
  color: #94a3b8;
}

.ig-hl-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ig-hl-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
}

/* Content Section (SEO & Features) */
.ig-content-section {
  max-width: 960px;
  margin: 0 auto;
}

.ig-sec-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin: 45px 0 16px;
  position: relative;
  display: inline-block;
}

.ig-sec-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--ig-grad);
  border-radius: 2px;
}

.ig-sec-desc {
  color: #94a3b8;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.ig-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 45px;
}

.ig-feat-card {
  background: var(--ig-card-bg);
  border: 1px solid var(--ig-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.25s;
}

.ig-feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--ig-border-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.ig-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(225, 48, 108, 0.12);
  border: 1px solid var(--ig-border-strong);
  color: var(--ig-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ig-feat-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.ig-feat-text {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Specs Table */
.ig-specs-table-wrapper {
  background: var(--ig-card-bg);
  border: 1px solid var(--ig-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 45px;
}

.ig-specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.95rem;
}

.ig-specs-table th {
  background: #0a0c14;
  color: #ffffff;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ig-specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

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

/* FAQ Accordion */
.ig-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 50px;
}

.ig-faq-item {
  background: var(--ig-card-bg);
  border: 1px solid var(--ig-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s;
}

.ig-faq-item.open {
  border-color: var(--ig-pink);
}

.ig-faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 20px;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.ig-faq-icon {
  font-size: 0.8rem;
  color: var(--ig-pink);
  transition: transform 0.25s ease;
}

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

.ig-faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.ig-faq-item.open .ig-faq-answer {
  display: block;
}

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


/* === 2026-10-18: LTR locale direction fix + mobile tool-page fixes === */
html[dir="ltr"] .ig-landing { direction: ltr; }

@media (max-width: 576px) {
  .ig-btn-submit { box-sizing: border-box; white-space: normal; text-align: center; }
}

@media (max-width: 640px) {
  .ig-dl-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .ig-dl-title { flex-wrap: wrap; justify-content: center; text-align: center; gap: 6px 8px; }
  .ig-dl-btn { justify-content: center; width: 100%; box-sizing: border-box; }
  .ig-subtab { white-space: normal; font-size: .8rem; padding: 8px 6px; line-height: 1.25; text-align: center; }
}
