/* MultiTools Modern Theme & Mobile App Enhancements */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Light Theme Variables */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-card: rgba(226, 232, 240, 0.8);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --hero-glow-color: rgba(99, 102, 241, 0.12);
}

/* Dark Theme Variables */
html.dark {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --border-card: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --nav-bg: rgba(15, 23, 42, 0.85);
  --hero-glow-color: rgba(99, 102, 241, 0.2);
}

html {
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-bottom: 0;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0 !important;
  }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -10px rgba(99, 102, 241, 0.18);
}

.glass-nav,
header.glass-nav,
header.sticky {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
}

/* Hero Background Glow */
.hero-glow {
  position: absolute;
  top: -10%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  height: 450px;
  background: radial-gradient(circle, var(--hero-glow-color) 0%, rgba(59, 130, 246, 0.08) 40%, rgba(15, 23, 42, 0) 70%);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Search Dropdown Animation */
.search-dropdown {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Advertisement Box */
.ad-slot-box {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1.5px dashed rgba(100, 116, 139, 0.35);
  transition: all 0.3s ease;
}
.ad-slot-box:hover {
  border-color: rgba(99, 102, 241, 0.5);
}

/* Category Filter Active */
.category-pill.active {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.35);
}

/* Pulse badge */
@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}
.badge-pulse {
  animation: softPulse 2.5s infinite ease-in-out;
}

/* Toast styling */
#toast-container {
  position: fixed;
  bottom: 84px; /* Above mobile bottom bar */
  right: 20px;
  z-index: 9999;
}
@media (min-width: 768px) {
  #toast-container {
    bottom: 24px;
    right: 24px;
  }
}

/* ========================================================== */
/* SPECIAL SMOOTH ANIMATED HAMBURGER MENU                     */
/* ========================================================== */
.special-hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transform-origin: center;
}

.hamburger-line:not(:last-child) {
  margin-bottom: 5px;
}

/* When Hamburger is active / open -> morphs into X */
.special-hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.special-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.special-hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================================== */
/* MOBILE BOTTOM APP NAVIGATION BAR (MODERN & RESPONSIVE)     */
/* ========================================================== */
@media (max-width: 767px) {
  .mobile-app-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-card);
    display: flex !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    z-index: 9999 !important;
    padding: 0 2px env(safe-area-inset-bottom, 0px) 2px !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box !important;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden !important;
    margin: 0 !important;
    transform: none !important;
  }

  .dark .mobile-app-bar {
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4);
  }
}

/* Strictly hidden on PC / Desktop screens */
@media (min-width: 768px) {
  .mobile-app-bar {
    display: none !important;
  }
}

.mobile-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 20% !important;
  width: 20% !important;
  max-width: 20% !important;
  min-width: 0 !important;
  height: 100% !important;
  padding: 5px 1px 4px 1px !important;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  transition: color 0.15s ease, transform 0.15s ease;
  position: relative;
  text-decoration: none;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box !important;
  text-align: center !important;
  overflow: hidden !important;
}

.mobile-nav-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.mobile-nav-icon-wrap i {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mobile-nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  width: 100%;
  display: block;
  letter-spacing: -0.2px;
  font-size: 9.5px;
  text-align: center;
}

.mobile-nav-item:active .mobile-nav-icon-wrap i {
  transform: scale(0.85);
}

.mobile-nav-item:hover {
  color: #6366f1;
}

/* Active State with top indicator bar */
.mobile-nav-item.active {
  color: #6366f1;
  font-weight: 700;
}

.dark .mobile-nav-item.active {
  color: #818cf8;
}

.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: #6366f1;
  box-shadow: 0 1px 8px rgba(99, 102, 241, 0.6);
}

.dark .mobile-nav-item.active::before {
  background: #818cf8;
  box-shadow: 0 1px 8px rgba(129, 140, 248, 0.6);
}

/* Center Elevated Search FAB Item */
.mobile-nav-fab-item {
  position: relative;
  z-index: 2;
}

.mobile-nav-fab-wrap {
  position: relative;
  margin-top: -15px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-search-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #3b82f6 100%);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
  border: 3px solid var(--nav-bg);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.mobile-search-fab i {
  font-size: 16px !important;
  color: #ffffff !important;
  margin-bottom: 0 !important;
}

.mobile-nav-fab-item:active .mobile-search-fab {
  transform: scale(0.9) translateY(2px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Favorites Badge Count inside icon wrap */
.favorites-badge-count {
  position: absolute;
  top: -3px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 9999px;
  background: #f43f5e;
  color: #ffffff !important;
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.5);
  border: 1.5px solid var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

/* Extra Compact Screens (< 390px) */
@media (max-width: 390px) {
  .mobile-app-bar {
    height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 1px env(safe-area-inset-bottom, 0px) 1px !important;
  }
  .mobile-nav-item {
    font-size: 8.5px !important;
    letter-spacing: -0.35px;
    padding: 3px 1px 3px 1px !important;
  }
  .mobile-nav-item span {
    font-size: 8.5px !important;
    letter-spacing: -0.4px;
  }
  .mobile-nav-icon-wrap {
    width: 20px;
    height: 20px;
    margin-bottom: 1px;
  }
  .mobile-nav-icon-wrap i {
    font-size: 14px;
  }
  .mobile-nav-fab-wrap {
    margin-top: -12px;
    margin-bottom: 2px;
  }
  .mobile-search-fab {
    width: 38px;
    height: 38px;
    border-width: 2.5px;
  }
  .mobile-search-fab i {
    font-size: 13px !important;
  }
  .favorites-badge-count {
    min-width: 13px;
    height: 13px;
    font-size: 8px;
    line-height: 13px;
    top: -3px;
    right: -5px;
  }
}

/* ========================================================== */
/* FAVORITES ANIMATIONS & STYLING                             */
/* ========================================================== */
.fav-star-btn {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fav-star-btn:hover {
  transform: scale(1.2);
}
.fav-star-btn:active {
  transform: scale(0.85);
}
.fav-star-btn.is-favorite {
  color: #f59e0b !important; /* Gold / amber-500 */
}
@keyframes starPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.star-pop {
  animation: starPop 0.3s ease-out;
}

/* Theme Toggle Button Rotation */
.theme-toggle-btn i {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle-btn:hover i {
  transform: rotate(20deg);
}

/* Mobile Slide-Over Drawer */
#mobile-drawer {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-drawer.translate-x-full {
  transform: translateX(100%) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

/* Responsive Grid Fallback for Tools on Mobile (Preventing Page Expansion) */
@media (max-width: 640px) {
  .tool-page-container [style*="grid-template-columns:1fr 1fr"],
  .tool-page-container [style*="grid-template-columns: 1fr 1fr"],
  .tool-page-container [style*="grid-template-columns:1fr 1fr 1fr"],
  .tool-page-container [style*="grid-template-columns: 1fr 1fr 1fr"],
  #svg-to-png-app [style*="grid-template-columns:1fr 1fr"],
  #svg-to-png-app [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #scientific-calculator-app {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  #scientific-calculator-app [style*="grid-template-columns:repeat(5"] {
    gap: 4px !important;
  }
  #scientific-calculator-app .sci-btn {
    padding: 8px 1px !important;
    font-size: 0.78rem !important;
    min-width: 0 !important;
  }
}

/* ========================================================== */
/* TOOL PAGE & WORKSPACE STYLES (MATCHING INDEX THEME)       */
/* ========================================================== */
.tool-page-container {
  padding: 1.5rem 0 3rem;
}

/* Category Chips Strip on Tool Page */
.tool-categories-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px;
}
.tool-categories-strip::-webkit-scrollbar {
  display: none;
}
.tool-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #64748b;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.6);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
html.dark .tool-category-pill {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}
.tool-category-pill:hover {
  color: #4f46e5;
  background: rgba(238, 242, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.4);
}
html.dark .tool-category-pill:hover {
  color: #a5b4fc;
  background: rgba(49, 46, 129, 0.4);
}
.tool-category-pill.active {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* Tool Forms */
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.form-control, .form-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background-color: #ffffff;
  color: #0f172a;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}
html.dark .form-control, html.dark .form-select {
  background-color: #090d16;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}
.form-control:focus, .form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
html.dark input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* Tool Workspace Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}
.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--text-primary);
}
html.dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}
.btn-outline:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: #6366f1;
  color: #6366f1;
}
html.dark .btn-outline:hover {
  color: #a5b4fc;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
}
.btn-lg {
  padding: 12px 24px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Tool Results Box */
.result-box {
  background: rgba(241, 245, 249, 0.85);
  border: 1.5px dashed rgba(148, 163, 184, 0.5);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}
html.dark .result-box {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.14);
}
.result-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #4f46e5;
  margin: 0.5rem 0;
}
html.dark .result-value {
  color: #818cf8;
}

/* Tool Workspace Dark Mode Adaptations for Inline Card Styles */
html.dark .tool-workspace div[style*="background:#ffffff"],
html.dark .tool-workspace div[style*="background: #ffffff"],
html.dark .tool-workspace div[style*="background:white"] {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html.dark .tool-workspace div[style*="color:#0f172a"],
html.dark .tool-workspace div[style*="color: #0f172a"] {
  color: #f8fafc !important;
}
html.dark .tool-workspace div[style*="background:#f8fafc"],
html.dark .tool-workspace div[style*="background: #f8fafc"] {
  background: #090d16 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html.dark .tool-workspace div[style*="color:#1e293b"],
html.dark .tool-workspace h3[style*="color:#1e293b"],
html.dark .tool-workspace div[style*="color:#334155"] {
  color: #f1f5f9 !important;
}
html.dark .tool-workspace div[style*="border:1px solid #e2e8f0"],
html.dark .tool-workspace div[style*="border: 1px solid #e2e8f0"] {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html.dark .tool-workspace button[style*="background:#f1f5f9"] {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Star Rating */
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 6px;
}
.star-rating input {
  display: none;
}
.star-rating label {
  color: #94a3b8;
  font-size: 1.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #f59e0b;
  transform: scale(1.15);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1rem;
}
.faq-item {
  border: 1px solid var(--border-card);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.25s ease;
}
.faq-item.active {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.1);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  gap: 1rem;
  font-family: inherit;
  transition: color 0.15s ease;
}
.faq-question:hover {
  color: #6366f1;
}
.faq-icon {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #6366f1;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.25s ease;
  padding: 0 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.35s ease-in-out, padding 0.25s ease;
  padding: 0 20px 18px 20px;
}

/* ========================================================== */
/* ULTRA-COMPACT LANGUAGE SELECTOR PILL & TRANSLATION STYLES  */
/* ========================================================== */
.lang-pill-btn {
  height: 32px;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark .lang-pill-btn {
  background-color: #0f172a;
  border-color: rgba(255, 255, 255, 0.12);
}

.lang-pill-btn:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

html.dark .lang-pill-btn:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.lang-dropdown-scale {
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Cleanly hide Google Translate top banner bar and hover tooltips */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
#goog-gt-tt,
#goog-gt-vt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
[class*="VIpgJd-yAWNEb"],
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
.VIpgJd-ZVi9od-aZ2wEe {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Make Google Translate container banner iframe 100% transparent and behind layout */
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
iframe[id^=":"][id$=".container"],
iframe[id*="container"] {
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -999999 !important;
}

html, body {
  top: 0px !important;
  position: static !important;
  margin-top: 0px !important;
}

.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}

/* Off-screen container for Google Translate widget */
#google_translate_element {
  position: fixed !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  z-index: -9999 !important;
}

/* Prevent translation on sensitive components like language selector */
.notranslate {
  translate: no;
}

/* ========================================================== */
/* MODERN MOBILE-FRIENDLY FOOTER COMPONENT STYLES             */
/* ========================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-card);
  background-color: #ffffff;
  color: var(--text-secondary);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

html.dark .site-footer {
  background-color: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Extra bottom spacing on mobile so fixed bottom app bar never overlaps footer content */
@media (max-width: 767px) {
  .site-footer {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 12px)) !important;
  }
}

.footer-container {
  max-width: 80rem; /* 1280px */
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1rem 1.5rem;
  box-sizing: border-box;
  width: 100%;
}

@media (min-width: 640px) {
  .footer-container {
    padding: 3rem 1.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .footer-container {
    padding: 3.5rem 2rem 2.5rem;
  }
}

/* Footer Main Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

@media (min-width: 480px) and (max-width: 767px) {
  .footer-grid-mobile-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
  .footer-grid.grid-5-col {
    grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  }
}

/* Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-brand-logo img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.footer-brand-logo:hover img {
  transform: scale(1.03);
}

.footer-brand-desc {
  font-size: 0.8125rem; /* 13px */
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 24rem;
  margin-bottom: 1rem;
}

/* Footer Social & Action Buttons */
.footer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 36px;
  box-sizing: border-box;
  cursor: pointer;
}

.footer-btn-primary {
  background: #6366f1;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.footer-btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.footer-btn-outline {
  border: 1px solid var(--border-card);
  background: var(--bg-secondary);
  color: var(--text-secondary) !important;
}

.footer-btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1 !important;
  border-color: rgba(99, 102, 241, 0.3);
}

.footer-social-link {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  background-color: #6366f1;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Footer Column Headings & Links */
.footer-col-title {
  font-size: 0.6875rem; /* 11px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem; /* 13px */
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  min-height: 28px;
  line-height: 1.4;
  transition: color 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.footer-link:hover {
  color: #6366f1;
  transform: translateX(2px);
}

html.dark .footer-link:hover {
  color: #818cf8;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
  font-size: 0.75rem; /* 12px */
  color: var(--text-muted);
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
    text-align: left;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

.footer-meta-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  white-space: nowrap;
}

html.dark .footer-status-badge {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}

.footer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
}

/* Mobile-Friendly Language Selector Adjustments */
@media (max-width: 640px) {
  #lang-selector-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
  }

  #lang-dropdown-menu {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(290px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
  }
}

/* ========================================================== */
/* APOLLO REALISTIC ROCKET GO-TO-TOP LAUNCHER                 */
/* ========================================================== */
.rocket-launch-wrapper {
  position: fixed !important;
  bottom: 28px;
  right: 28px;
  width: 50px;
  height: 80px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.35s ease;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25));
}

.rocket-launch-wrapper.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.rocket-launch-wrapper:hover .rocket-body {
  transform: translateY(-4px) scale(1.04);
}

/* Mobile Position (gracefully above bottom navigation bar) */
@media (max-width: 767px) {
  .rocket-launch-wrapper {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    width: 44px;
    height: 72px;
  }
}

.rocket-body {
  transition: transform 0.25s ease;
  cursor: pointer;
}

/* Rumble Vibration on ignition */
.rocket-body.rumble {
  animation: rocketRumbleAnim 0.08s infinite alternate;
}
@keyframes rocketRumbleAnim {
  0% { transform: translate(-1.5px, 0); }
  100% { transform: translate(1.5px, -1px); }
}

/* Shoot upwards into the sky */
.rocket-launch-wrapper.blasting-off {
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s ease !important;
  transform: translateY(-600px) scale(0.8) !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* Animated Exhaust Flame (नीचे से आग) */
.rocket-flame {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 0px;
  pointer-events: none;
  opacity: 0;
  transition: height 0.15s ease, opacity 0.15s ease;
}
.rocket-flame.active {
  height: 48px;
  opacity: 1;
}
.flame-outer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 46px;
  background: linear-gradient(to bottom, #ef4444, #f97316, transparent);
  border-radius: 50% 50% 20% 20% / 10% 10% 80% 80%;
  filter: blur(1px);
  animation: rocketFlameFlicker 0.1s infinite alternate;
}
.flame-inner {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 32px;
  background: linear-gradient(to bottom, #eab308, #facc15, transparent);
  border-radius: 50% 50% 20% 20% / 10% 10% 80% 80%;
  animation: rocketFlameFlicker 0.08s infinite alternate;
}
.flame-core {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
}
@keyframes rocketFlameFlicker {
  0% { transform: translateX(-50%) scaleX(0.9) scaleY(0.95); }
  100% { transform: translateX(-50%) scaleX(1.1) scaleY(1.1); }
}

/* Smoke Particles */
.rocket-smoke {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 20px;
  pointer-events: none;
  opacity: 0;
}
.rocket-smoke.active { opacity: 1; }
.rocket-smoke .cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  filter: blur(4px);
  animation: rocketSmokeCloud 0.8s infinite;
}
.rocket-smoke .c1 { width: 18px; height: 18px; left: 2px; }
.rocket-smoke .c2 { width: 22px; height: 22px; left: 14px; animation-delay: 0.1s; }
.rocket-smoke .c3 { width: 16px; height: 16px; left: 8px; top: 10px; animation-delay: 0.2s; }
@keyframes rocketSmokeCloud {
  0% { transform: translateY(0) scale(0.8); opacity: 0.8; }
  100% { transform: translateY(25px) scale(2); opacity: 0; }
}



