/* ==========================================================================
   SARKARI DNA TOOLS — ULTRA MODERN DESIGN SYSTEM (LIGHT & DARK THEME)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Tokens - Light Theme Default */
  --bg-app: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-hover: #E2E8F0;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-focus: #4F46E5;

  /* Brand Accents */
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-subtle: #EEF2FF;
  --primary-text: #4F46E5;

  --success: #10B981;
  --success-subtle: #ECFDF5;
  --success-text: #047857;

  --warning: #F59E0B;
  --warning-subtle: #FFFBEB;
  --warning-text: #B45309;

  --danger: #EF4444;
  --danger-subtle: #FEF2F2;
  --danger-text: #B91C1C;

  --info: #0284C7;
  --info-subtle: #F0F9FF;
  --info-text: #0369A1;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Dark Theme Overrides
   ========================================================================== */
[data-theme="dark"] {
  --bg-app: #0B0F19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1F2937;
  --bg-subtle: #1E293B;
  --bg-hover: #334155;

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-inverse: #0F172A;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-focus: #818CF8;

  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --primary-subtle: rgba(99, 102, 241, 0.15);
  --primary-text: #A5B4FC;

  --success: #34D399;
  --success-subtle: rgba(52, 211, 153, 0.12);
  --success-text: #6EE7B7;

  --warning: #FBBF24;
  --warning-subtle: rgba(251, 191, 36, 0.12);
  --warning-text: #FDE68A;

  --danger: #F87171;
  --danger-subtle: rgba(248, 113, 113, 0.12);
  --danger-text: #FCA5A5;

  --info: #38BDF8;
  --info-subtle: rgba(56, 189, 248, 0.12);
  --info-text: #7DD3FC;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Global Navbar
   ========================================================================== */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

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

.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

@media (max-width: 640px) {
  .hide-mobile {
    display: none;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 48px 20px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-subtle);
  color: var(--primary-text);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-heading span.gradient-text {
  background: linear-gradient(135deg, var(--primary), #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 28px;
}

/* Search Bar */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto 20px;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  font-family: var(--font-sans);
  font-size: 15px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}

/* Category Filter Tabs */
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.category-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-tab:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.category-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* ==========================================================================
   Tool Cards Grid (Modern Hub)
   ========================================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 20px;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tool-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--bg-subtle);
}

.tool-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.tool-badge.blue { background: var(--primary-subtle); color: var(--primary-text); }
.tool-badge.green { background: var(--success-subtle); color: var(--success-text); }
.tool-badge.yellow { background: var(--warning-subtle); color: var(--warning-text); }
.tool-badge.red { background: var(--danger-subtle); color: var(--danger-text); }

.tool-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

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

.tool-footer-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Studio Pages Layout (3-Step Simple Flow)
   ========================================================================== */
.studio-container {
  max-width: 1000px;
  margin: 20px auto 48px;
  padding: 0 20px;
  width: 100%;
}

.studio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .studio-card {
    padding: 20px 16px;
  }
}

/* Stepper Indicator */
.stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.step-item.active {
  color: var(--primary);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.step-item.active .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Modern Dropzone */
.modern-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modern-dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.dropzone-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.dropzone-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

/* Form Controls & Inputs */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--bg-app);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Range Slider */
.modern-slider {
  width: 100%;
  height: 6px;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  accent-color: var(--primary);
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  transition: all var(--transition-fast);
}

.btn-success:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

/* ==========================================================================
   Crop Modal
   ========================================================================== */
.crop-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.crop-modal-overlay.active {
  display: flex;
}

.crop-modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header-bar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-bar h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

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

.modal-body-area {
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-crop-stage {
  max-height: 400px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-crop-stage img {
  max-width: 100%;
  display: block;
}

.modal-footer-bar {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Hidden Input Helper */
.hidden-input {
  display: none !important;
}

/* ==========================================================================
   Android & Mobile Responsive Optimization
   ========================================================================== */
@media (max-width: 768px) {
  .site-navbar {
    padding: 8px 12px;
    min-height: 54px;
    gap: 8px;
  }
  .brand-wrap {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }
  .brand-logo-img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .brand-title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }
  .brand-subtitle {
    display: none !important;
  }
  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .nav-actions .btn-secondary {
    padding: 6px 10px !important;
    font-size: 12px !important;
    min-height: 34px !important;
    border-radius: var(--radius-full);
    white-space: nowrap;
  }
  .theme-toggle-btn {
    padding: 6px 10px;
    font-size: 13px;
    min-height: 34px;
    border-radius: var(--radius-full);
  }
  .hide-mobile {
    display: none !important;
  }
  .hero-section {
    padding: 24px 12px 16px;
  }
  .hero-heading {
    font-size: 26px;
    line-height: 1.25;
  }
  .hero-desc {
    font-size: 13.5px;
    margin-bottom: 18px;
  }
  .category-tabs {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .category-tab {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
    min-height: 38px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 14px 40px;
  }
  .tool-card {
    padding: 16px 14px;
  }
  .studio-container {
    padding: 12px 10px 32px;
  }
  .studio-card {
    padding: 16px 12px;
  }
  .modern-dropzone {
    padding: 24px 12px;
  }
  .btn-primary, .btn-secondary, .btn-success {
    min-height: 44px;
    font-size: 13.5px;
    touch-action: manipulation;
  }
  .modal-crop-stage {
    max-height: 280px;
  }
  .modal-header-bar {
    padding: 12px 16px;
  }
  .modal-footer-bar {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ==========================================================================
   Sarkari Progress Bar & Status Engine
   ========================================================================== */
.sarkari-progress-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.sarkari-progress-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.sarkari-progress-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl), 0 0 40px rgba(79, 70, 229, 0.15);
  text-align: center;
  animation: scaleInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sarkari-progress-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sarkari-progress-spinner {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 3px solid var(--border-subtle);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
.sarkari-progress-icon {
  font-size: 24px;
}
.sarkari-progress-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.sarkari-progress-track {
  height: 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
  border: 1px solid var(--border-subtle);
}
.sarkari-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #818CF8 50%, var(--primary) 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  transition: width 0.2s ease;
  animation: shimmerProgress 2s linear infinite;
}
@keyframes shimmerProgress {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.sarkari-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.sarkari-progress-subtitle {
  color: var(--text-muted);
  font-family: var(--font-sans);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 80%;
  text-align: left;
}
.sarkari-progress-percent {
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ==========================================================================
   PWA INSTALL BUTTONS (Top Nav & Floating Action Button)
   ========================================================================== */
.nav-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.5);
  filter: brightness(1.1);
}

/* Floating Action Button (FAB) at Bottom-Right */
.fab-install-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #8b5cf6 100%);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.45), 0 0 20px rgba(99, 102, 241, 0.3);
  animation: fabPulse 2.8s infinite ease-in-out;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab-install-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 14px 35px rgba(79, 70, 229, 0.6), 0 0 25px rgba(139, 92, 246, 0.4);
}
.fab-install-btn .fab-icon {
  font-size: 18px;
}
.fab-install-btn .fab-badge {
  background: #22c55e;
  color: #ffffff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-left: 2px;
}

@keyframes fabPulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.45), 0 0 0 0 rgba(99, 102, 241, 0.6);
  }
  50% {
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.65), 0 0 0 12px rgba(99, 102, 241, 0);
  }
}

@media (max-width: 640px) {
  .fab-install-btn {
    bottom: 20px;
    right: 18px;
    padding: 10px 14px;
    font-size: 13px;
  }
  .fab-install-btn .fab-badge {
    display: none;
  }
}

