/* Frame-0 Route Shield */
html.route-is-tool #homepage-container { display: none !important; }
html.route-is-tool #tool-viewport { display: block !important; }

/* ============================================================
   ilovePROpdf - Multi-Theme & Master Engine Stylesheet
   Themes: Dark | Light | Royal Gold | Emerald | Crimson | Cyberpunk
   Features: Mega Menu Dropdown, Floating Action Bar, Language Switcher, Sound FX, CyberShield, 100+ Bio-Data Templates
   ============================================================ */

:root {
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-light: rgba(220, 38, 38, 0.12);
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.2);
  --radius-sm: 0.375rem;

  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

/* 1. DARK THEME */
[data-theme="dark"] {
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --primary-light: rgba(239, 68, 68, 0.18);
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --bg-subtle: #1e293b;
  --border-color: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.6);
}

/* 2. ROYAL GOLD THEME */
[data-theme="royal_gold"] {
  --primary: #d97706;
  --primary-hover: #b45309;
  --primary-light: rgba(217, 119, 6, 0.15);
  --bg-main: #0f0c05;
  --bg-card: #1f180a;
  --bg-subtle: #2d230e;
  --border-color: #453616;
  --text-main: #fef3c7;
  --text-muted: #d97706;
  --shadow-md: 0 4px 14px -1px rgba(217, 119, 6, 0.3);
}

/* 3. ISLAMIC EMERALD THEME */
[data-theme="emerald"] {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: rgba(5, 150, 105, 0.15);
  --bg-main: #03140e;
  --bg-card: #06241a;
  --bg-subtle: #093829;
  --border-color: #0d543d;
  --text-main: #ecfdf5;
  --text-muted: #6ee7b7;
  --shadow-md: 0 4px 14px -1px rgba(5, 150, 105, 0.3);
}

/* 4. CRIMSON FLAME THEME */
[data-theme="crimson"] {
  --primary: #e11d48;
  --primary-hover: #be123c;
  --primary-light: rgba(225, 29, 72, 0.15);
  --bg-main: #140508;
  --bg-card: #22090f;
  --bg-subtle: #380f19;
  --border-color: #521625;
  --text-main: #ffe4e6;
  --text-muted: #fb7185;
  --shadow-md: 0 4px 14px -1px rgba(225, 29, 72, 0.3);
}

/* 5. CYBERPUNK THEME */
[data-theme="cyberpunk"] {
  --primary: #06b6d4;
  --primary-hover: #0891b2;
  --primary-light: rgba(6, 182, 212, 0.2);
  --bg-main: #050515;
  --bg-card: #0d0d2b;
  --bg-subtle: #19194d;
  --border-color: #2a2a7a;
  --text-main: #00f0ff;
  --text-muted: #ff007f;
  --shadow-md: 0 4px 16px -1px rgba(0, 240, 255, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================================
   TOP NAVBAR MEGA-MENU & DROPDOWNS SUITE
   ============================================================ */
@media (min-width: 1024px) {
  header nav {
    height: 100% !important;
    display: flex !important;
    align-items: stretch !important;
  }
  header nav .nav-item-dropdown,
  .nav-item-dropdown {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
  }
  header nav .nav-item-dropdown > button {
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
  }
}

.mega-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(4px) scale(0.99) !important;
  max-width: calc(100vw - 24px) !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
  padding: 1.25rem 1.5rem !important;
  z-index: 99999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  max-height: calc(88vh - 40px) !important;
  max-width: calc(100vw - 32px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  box-sizing: border-box !important;
  transition: opacity 0.12s ease-out, transform 0.12s ease-out, visibility 0.12s ease-out !important;
  backdrop-filter: blur(16px) !important;
}

/* Invisible Hover Bridge: Prevents pointer from leaving hover bounds moving from button down to menu */
.mega-menu::before {
  content: '' !important;
  position: absolute !important;
  top: -24px !important;
  left: 0 !important;
  right: 0 !important;
  height: 24px !important;
  background: transparent !important;
  pointer-events: auto !important;
  z-index: 9999999 !important;
}

/* Custom scrollbar for mega menu */
.mega-menu::-webkit-scrollbar {
  width: 5px;
}
.mega-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.dark .mega-menu::-webkit-scrollbar-thumb {
  background: #334155;
}

/* Dark Mode Theme */
.dark .mega-menu,
[data-theme="dark"] .mega-menu {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
  box-shadow: 0 25px 70px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* Royal Gold Theme */
html[data-festival-theme="royal_gold"] .mega-menu,
[data-theme="royal_gold"] .mega-menu {
  background-color: #080d1a !important;
  background: radial-gradient(circle at 50% 0%, #12192c 0%, #080d1a 100%) !important;
  border: 1.5px solid rgba(223, 177, 91, 0.55) !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.98), 0 0 45px rgba(223, 177, 91, 0.35) !important;
  color: #f5ecd5 !important;
}

/* Right-aligned dropdown positioning so they never go offscreen */
/* Unified Centered Right Mega Menu */

/* Center-shift for middle dropdowns */
/* Unified Centered Dropdown */

/* Active / Open state on hover, focus-within, and .is-open class */
.nav-item-dropdown:hover > .mega-menu:not(.force-hide-dropdown),
.nav-item-dropdown:focus-within > .mega-menu:not(.force-hide-dropdown),
.mega-menu.is-open:not(.force-hide-dropdown) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
}

/* Force hide when clicking away or navigating */
.mega-menu.force-hide-dropdown,
.nav-item-dropdown.force-hide-dropdown .mega-menu,
.nav-item-dropdown:hover .mega-menu.force-hide-dropdown,
.nav-item-dropdown:focus-within .mega-menu.force-hide-dropdown,
.dropdown-menu.force-hide-dropdown {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
  transform: translateY(-8px) scale(0.98) !important;
}

.mega-menu-link {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding: 0.45rem 0.65rem !important;
  border-radius: 0.75rem !important;
  color: #1e293b !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.dark .mega-menu-link {
  color: #e2e8f0 !important;
}

.mega-menu-link:hover {
  background: rgba(220, 38, 38, 0.08) !important;
  color: #dc2626 !important;
  transform: translateX(3px) !important;
}

.dark .mega-menu-link:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
}

.mega-menu-link p {
  margin: 0 !important;
  line-height: 1.25 !important;
}
.mega-menu-link .text-slate-400 {
  color: #94a3b8 !important;
}
.dark .mega-menu-link .text-slate-400 {
  color: #64748b !important;
}

/* Dropzone Styling */
.dropzone {
  border: 2px dashed var(--primary);
  background-color: var(--primary-light);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Tool Grid Cards */
.tool-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -4px rgba(220, 38, 38, 0.16);
  border-color: #dc2626 !important;
}

.tool-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.65rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover .tool-icon-wrapper {
  background-color: rgba(220, 38, 38, 0.1) !important;
  border-color: #dc2626 !important;
  color: #dc2626 !important;
  transform: scale(1.1);
}

.tool-card:hover .badge {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}


/* Category Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Action Buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  transition: all 0.2s ease;
}

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

/* ============================================================
   BIO-DATA & RESUME MAKER 100+ A4 SHEET PREVIEW ENGINE
   ============================================================ */
.a4-preview-container {
  width: 100%;
  max-width: 794px;
  min-height: 1123px;
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* High-Definition Template Card Gallery */
.template-grid-card {
  transition: all 0.2s ease;
  cursor: pointer;
}
.template-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}
.template-grid-card.selected {
  border-color: #dc2626 !important;
  outline: 2px solid #dc2626;
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 420px;
  pointer-events: auto;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Floating Action Bar (FAB) Widget */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-btn:hover {
  transform: scale(1.1) translateY(-2px);
}

.fab-help {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.fab-help:hover {
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.65);
}

.fab-whatsapp {
  background: #10b981;
}

/* Print Specific Rules */
@media print {
  body * { visibility: hidden; }
  .printable-area, .printable-area * { visibility: visible; }
  .printable-area { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; }
  .no-print { display: none !important; }
}

/* ============================================================
   AUTH MODAL & ACCOUNT DROPDOWN STYLES (INDIA PICKER PACKERS MOVERS STYLE)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.2s ease-out;
  will-change: opacity;
}

.modal-overlay.open,
.modal-overlay.active,
.modal-overlay.show,
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"] {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 99999999 !important;
}

.auth-modal-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  transform: translateY(10px) scale(0.98);
  opacity: 0.95;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease-out;
  will-change: transform, opacity;
}

.modal-overlay.open .auth-modal-card,
.modal-overlay.active .auth-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.dark .auth-modal-card {
  background: #0f172a;
  border-color: rgba(51, 65, 85, 0.8);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}

.account-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.topbar-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.dark .topbar-account-btn {
  background: #1e293b;
  color: #f8fafc;
  border-color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.topbar-account-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.dark .topbar-account-btn:hover {
  border-color: #f87171;
  color: #f87171;
  background: #0f172a;
}

.topbar-account-btn.logged-in {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.topbar-account-btn.logged-in:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  color: #ffffff;
  border-color: #7dd3fc;
}

.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.25);
  padding: 0.5rem;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
}

.dark .account-dropdown-menu {
  background: #0f172a;
  border-color: #334155;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7);
}

.account-dropdown-menu.show {
  display: flex !important;
  animation: dropdownPop 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownPop {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.account-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  color: #334155;
  text-decoration: none;
  font-size: 0.8rem;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dark .account-dropdown-menu .dropdown-item {
  color: #e2e8f0;
}

.account-dropdown-menu .dropdown-item:hover {
  background: #f1f5f9;
  color: #dc2626;
}

.dark .account-dropdown-menu .dropdown-item:hover {
  background: #1e293b;
  color: #f87171;
}

.account-dropdown-menu .dropdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.3rem 0;
}

.dark .account-dropdown-menu .dropdown-divider {
  background: #334155;
}

/* ============================================================
   OWNER / ADMIN PORTAL STYLES (मालिक पोर्टल)
   ============================================================ */
.admin-modal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 1280px;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
}

.dark .admin-modal-card {
  background: #090e1a;
  border-color: #1e293b;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85);
}

.admin-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.dark .admin-stat-card {
  background: #0f172a;
  border-color: #1e293b;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.1);
}

.admin-nav-tab {
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #64748b;
  background: transparent;
  border: none;
  white-space: nowrap;
}

.admin-nav-tab.active {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.dark .admin-nav-tab {
  color: #94a3b8;
}

.dark .admin-nav-tab.active {
  background: #dc2626;
  color: #ffffff;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

.admin-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
}

.dark .admin-table th {
  background: #1e293b;
  color: #94a3b8;
  border-bottom-color: #334155;
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.dark .admin-table td {
  border-bottom-color: #1e293b;
  color: #e2e8f0;
}

.admin-table tr:hover td {
  background: rgba(220, 38, 38, 0.04);
}

.otp-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px dashed #f59e0b;
  border-radius: 0.5rem;
  font-family: monospace;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}

.dark .otp-badge {
  background: #78350f33;
  color: #fcd34d;
  border-color: #b45309;
}

/* ============================================================
   BRAND ADAPTIVE CUSTOMER & OWNER AUTH MODAL STYLES
   ============================================================ */
.auth-modal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
  max-width: 460px;
  width: 100%;
  color: #0f172a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .auth-modal-card,
[data-theme="dark"] .auth-modal-card {
  background: #090e1a !important;
  border-color: #1e293b !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85) !important;
  color: #ffffff !important;
}

.topbar-login-gold-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25) !important;
}

.topbar-login-gold-btn:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4) !important;
  color: #ffffff !important;
}

.auth-gold-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  cursor: pointer !important;
}

.auth-gold-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5) !important;
  filter: brightness(1.08) !important;
}

.auth-tab-active-gold {
  background: #dc2626 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
  border: none !important;
}

.auth-input-dark {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 0.75rem !important;
}

.dark .auth-input-dark,
[data-theme="dark"] .auth-input-dark {
  background: #080d1a !important;
  border-color: #202b40 !important;
  color: #ffffff !important;
}

.auth-input-dark:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
  outline: none !important;
}

/* TOPBAR QUICK SWITCHER PILLS */
.topbar-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.8);
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.dark .topbar-quick-pill,
[data-theme="dark"] .topbar-quick-pill {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(51, 65, 85, 0.8);
  color: #f1f5f9;
}
.topbar-quick-pill:hover {
  transform: translateY(-1px);
  border-color: #ef4444;
  color: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}
.dark .topbar-quick-pill:hover,
[data-theme="dark"] .topbar-quick-pill:hover {
  border-color: #f87171;
  color: #f87171;
}

/* ============================================================
   FESTIVAL PARTICLES & FULL 10 THEMES ENGINE (100% REPLICA)
   ============================================================ */
#festiveParticleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

/* ==========================================================================
   COMPLETE 10 FESTIVAL & SPECIAL THEMES ENGINE (100% VISUAL REPLICA OF IPM)
   ========================================================================== */

/* 1. ROYAL GOLD THEME (👑 ULTRA-ADVANCED ROYAL OBSIDIAN & CRYSTAL-CLEAR GLOWING GOLD) */
html[data-festival-theme="royal_gold"],
html[data-festival="royal_gold"],
body[data-festival-theme="royal_gold"],
body[data-festival="royal_gold"] {
  --theme-bg: #060911;
  --theme-surface: #0b111d;
  --theme-card: #0e1524;
  --theme-card-hover: #141d30;
  --theme-border: rgba(223, 177, 91, 0.45);
  --theme-primary: #ffd700;
  --theme-primary-hover: #ffe57f;
  --theme-text: #f5ecd5;
  --theme-text-muted: #dcd3b8;
  --theme-glow: rgba(223, 177, 91, 0.5);
  background-color: #060911 !important;
  color: #f5ecd5 !important;
}

html[data-festival-theme="royal_gold"] body,
html[data-festival="royal_gold"] body {
  background: radial-gradient(circle at 50% -5%, #151e33 0%, #080c16 55%, #060911 100%) !important;
  background-attachment: fixed !important;
  background-color: #060911 !important;
  color: #f5ecd5 !important;
}

/* ALL WEBSITE TEXT IN WARM CRYSTAL-CLEAR GOLD */
html[data-festival-theme="royal_gold"] p,
html[data-festival-theme="royal_gold"] span,
html[data-festival-theme="royal_gold"] a,
html[data-festival-theme="royal_gold"] label,
html[data-festival-theme="royal_gold"] li,
html[data-festival-theme="royal_gold"] td,
html[data-festival-theme="royal_gold"] th,
html[data-festival-theme="royal_gold"] small,
html[data-festival-theme="royal_gold"] .text-slate-900,
html[data-festival-theme="royal_gold"] .text-slate-800,
html[data-festival-theme="royal_gold"] .text-slate-700,
html[data-festival-theme="royal_gold"] .text-slate-600,
html[data-festival-theme="royal_gold"] .text-slate-500,
html[data-festival-theme="royal_gold"] .text-slate-400,
html[data-festival-theme="royal_gold"] .text-gray-900,
html[data-festival-theme="royal_gold"] .text-gray-800,
html[data-festival-theme="royal_gold"] .text-gray-700,
html[data-festival-theme="royal_gold"] .text-gray-600 {
  color: #f5ecd5 !important;
}

html[data-festival-theme="royal_gold"] a:hover {
  color: #ffd700 !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6) !important;
}

/* CRYSTAL-CLEAR HIGH-CONTRAST GLOWING GOLD HERO TITLE & HEADLINES */
html[data-festival-theme="royal_gold"] #hero-title-text,
html[data-festival-theme="royal_gold"] .hero-title,
html[data-festival-theme="royal_gold"] h1,
html[data-festival-theme="royal_gold"] h2,
html[data-festival-theme="royal_gold"] h3,
html[data-festival-theme="royal_gold"] h4,
html[data-festival-theme="royal_gold"] .hero-title-gradient,
html[data-festival-theme="royal_gold"] .brand-title,
html[data-festival-theme="royal_gold"] .section-title,
html[data-festival-theme="royal_gold"] .glow-gold-text {
  color: #ffd700 !important;
  background: linear-gradient(135deg, #ffffff 0%, #fff4b0 25%, #ffd700 55%, #dfb15b 80%, #ffd700 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 2px 12px rgba(255, 215, 0, 0.65)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.9)) !important;
  font-weight: 900 !important;
}

/* HERO TITLE INNER SPANS (e.g. 'in one place' / 'एक ही जगह') */
html[data-festival-theme="royal_gold"] #hero-title-text span,
html[data-festival-theme="royal_gold"] h1 span,
html[data-festival-theme="royal_gold"] h2 span {
  color: #ffe066 !important;
  background: linear-gradient(135deg, #ffe57f 0%, #ffd700 45%, #ffb300 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 14px rgba(255, 215, 0, 0.8)) !important;
  display: inline !important;
}

/* HERO SUBTEXT */
html[data-festival-theme="royal_gold"] #hero-sub-text,
html[data-festival-theme="royal_gold"] .hero-sub,
html[data-festival-theme="royal_gold"] p#hero-sub-text {
  color: #f5ecd5 !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

/* GLOWING STATS, METRICS & NUMBERS */
html[data-festival-theme="royal_gold"] .stat-number,
html[data-festival-theme="royal_gold"] .font-black.text-3xl,
html[data-festival-theme="royal_gold"] .font-black.text-4xl,
html[data-festival-theme="royal_gold"] .font-extrabold.text-2xl {
  color: #ffd700 !important;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.85), 0 0 35px rgba(223, 177, 91, 0.4) !important;
}

/* Header, Navbar, Topbar, Sticky Bars */
html[data-festival-theme="royal_gold"] header,
html[data-festival-theme="royal_gold"] nav,
html[data-festival-theme="royal_gold"] .top-header-banner,
html[data-festival-theme="royal_gold"] .glass {
  background: rgba(8, 13, 23, 0.98) !important;
  border-color: rgba(223, 177, 91, 0.4) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.95) !important;
}

/* Tool Cards & Containers in Royal Obsidian Black */
html[data-festival-theme="royal_gold"] .tool-card,
html[data-festival-theme="royal_gold"] .bg-white,
html[data-festival-theme="royal_gold"] .bg-slate-50,
html[data-festival-theme="royal_gold"] .bg-slate-100,
html[data-festival-theme="royal_gold"] .bg-slate-800,
html[data-festival-theme="royal_gold"] .bg-slate-900,
html[data-festival-theme="royal_gold"] .bg-slate-950 {
  background-color: #0b111d !important;
  border-color: rgba(223, 177, 91, 0.35) !important;
  color: #f5ecd5 !important;
}

html[data-festival-theme="royal_gold"] .tool-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85) !important;
  border: 1px solid rgba(223, 177, 91, 0.35) !important;
}

html[data-festival-theme="royal_gold"] .tool-card:hover {
  background: #141d30 !important;
  border-color: #ffd700 !important;
  box-shadow: 0 10px 35px rgba(223, 177, 91, 0.45), inset 0 0 18px rgba(255, 215, 0, 0.12) !important;
  transform: translateY(-4px);
}

/* Global Search Input on Homepage */
html[data-festival-theme="royal_gold"] #global-tool-search {
  background-color: #080d1a !important;
  border: 2px solid rgba(223, 177, 91, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.85), 0 0 15px rgba(223, 177, 91, 0.25) !important;
}

html[data-festival-theme="royal_gold"] #global-tool-search:focus {
  border-color: #ffd700 !important;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5) !important;
}

/* Glowing Metallic Gold CTA Buttons */
html[data-festival-theme="royal_gold"] .btn-primary,
html[data-festival-theme="royal_gold"] .bg-red-600,
html[data-festival-theme="royal_gold"] .bg-blue-600,
html[data-festival-theme="royal_gold"] .auth-gold-btn,
html[data-festival-theme="royal_gold"] button.bg-gradient-to-r,
html[data-festival-theme="royal_gold"] .open-pro-modal-btn {
  background: linear-gradient(135deg, #ffd700 0%, #dfb15b 50%, #b8860b 100%) !important;
  color: #060911 !important;
  font-weight: 900 !important;
  border: 1px solid #ffe57f !important;
  box-shadow: 0 0 25px rgba(223, 177, 91, 0.6), 0 0 45px rgba(255, 215, 0, 0.3) !important;
  text-shadow: none !important;
}

html[data-festival-theme="royal_gold"] .btn-primary:hover,
html[data-festival-theme="royal_gold"] .bg-red-600:hover,
html[data-festival-theme="royal_gold"] .bg-blue-600:hover,
html[data-festival-theme="royal_gold"] .auth-gold-btn:hover,
html[data-festival-theme="royal_gold"] .open-pro-modal-btn:hover {
  background: linear-gradient(135deg, #ffe57f 0%, #ffd700 50%, #dfb15b 100%) !important;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.8), 0 0 60px rgba(223, 177, 91, 0.45) !important;
  transform: translateY(-2px);
}

/* Secondary Gold Outline Buttons */
html[data-festival-theme="royal_gold"] .btn-secondary,
html[data-festival-theme="royal_gold"] .topbar-quick-pill,
html[data-festival-theme="royal_gold"] .topbar-account-btn {
  background: rgba(14, 21, 36, 0.95) !important;
  border: 1px solid rgba(223, 177, 91, 0.5) !important;
  color: #ffd700 !important;
  box-shadow: 0 0 12px rgba(223, 177, 91, 0.25) !important;
}

html[data-festival-theme="royal_gold"] .topbar-quick-pill:hover,
html[data-festival-theme="royal_gold"] .topbar-account-btn:hover {
  border-color: #ffd700 !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.5) !important;
}

/* Inputs, Textareas, Selects */
html[data-festival-theme="royal_gold"] input,
html[data-festival-theme="royal_gold"] select,
html[data-festival-theme="royal_gold"] textarea {
  background-color: #080d1a !important;
  border-color: rgba(223, 177, 91, 0.4) !important;
  color: #ffffff !important;
}

html[data-festival-theme="royal_gold"] input:focus,
html[data-festival-theme="royal_gold"] select:focus,
html[data-festival-theme="royal_gold"] textarea:focus {
  border-color: #ffd700 !important;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.5) !important;
}

/* Badges & Highlights */
html[data-festival-theme="royal_gold"] .tool-badge,
html[data-festival-theme="royal_gold"] .badge {
  background: rgba(223, 177, 91, 0.2) !important;
  border: 1px solid #ffd700 !important;
  color: #ffd700 !important;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4) !important;
}

/* Category Filter Pills */
html[data-festival-theme="royal_gold"] .category-btn,
html[data-festival-theme="royal_gold"] .tpl-cat-pill {
  background: #0e1524 !important;
  color: #dcd3b8 !important;
  border: 1px solid rgba(223, 177, 91, 0.3) !important;
}

html[data-festival-theme="royal_gold"] .category-btn:hover,
html[data-festival-theme="royal_gold"] .tpl-cat-pill:hover {
  border-color: #ffd700 !important;
  color: #ffd700 !important;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3) !important;
}

html[data-festival-theme="royal_gold"] .category-btn.active,
html[data-festival-theme="royal_gold"] .tpl-cat-pill.active {
  background: linear-gradient(135deg, #ffd700, #dfb15b) !important;
  color: #080c14 !important;
  font-weight: 900 !important;
  border-color: #ffd700 !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.55) !important;
}

/* ============================================================
   OWNER PORTAL, MODALS, DRAWERS & DIALOGS IN ROYAL BLACK & GOLD
   ============================================================ */
html[data-festival-theme="royal_gold"] #adminModal,
html[data-festival-theme="royal_gold"] .admin-modal-card,
html[data-festival-theme="royal_gold"] #adminPanelStep,
html[data-festival-theme="royal_gold"] #adminPinVerifyPane,
html[data-festival-theme="royal_gold"] #adminForgotPinPane,
html[data-festival-theme="royal_gold"] .auth-modal-card,
html[data-festival-theme="royal_gold"] .pro-modal-card,
html[data-festival-theme="royal_gold"] .modal-content,
html[data-festival-theme="royal_gold"] .dropdown-menu,
html[data-festival-theme="royal_gold"] .mega-menu,
html[data-festival-theme="royal_gold"] #mobile-drawer > div {
  background-color: #080d1a !important;
  background: radial-gradient(circle at 50% 0%, #12192c 0%, #080d1a 100%) !important;
  border: 1.5px solid rgba(223, 177, 91, 0.55) !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.98), 0 0 45px rgba(223, 177, 91, 0.35) !important;
  color: #f5ecd5 !important;
}

html[data-festival-theme="royal_gold"] .admin-stat-card,
html[data-festival-theme="royal_gold"] .editor-section-card,
html[data-festival-theme="royal_gold"] .admin-tab-content > div,
html[data-festival-theme="royal_gold"] .admin-table-wrapper {
  background-color: #0b111d !important;
  border: 1px solid rgba(223, 177, 91, 0.35) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
  color: #f5ecd5 !important;
}

html[data-festival-theme="royal_gold"] .admin-nav-tab {
  background: #0b111d !important;
  color: #dcd3b8 !important;
  border: 1px solid rgba(223, 177, 91, 0.3) !important;
}

html[data-festival-theme="royal_gold"] .admin-nav-tab:hover {
  border-color: #ffd700 !important;
  color: #ffd700 !important;
}

html[data-festival-theme="royal_gold"] .admin-nav-tab.active {
  background: linear-gradient(135deg, #ffd700 0%, #dfb15b 100%) !important;
  color: #060911 !important;
  font-weight: 900 !important;
  border-color: #ffd700 !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.55) !important;
}

html[data-festival-theme="royal_gold"] .admin-table th {
  background-color: #0e1626 !important;
  color: #ffd700 !important;
  border-bottom: 1px solid rgba(223, 177, 91, 0.4) !important;
}

html[data-festival-theme="royal_gold"] .admin-table td {
  background-color: #080d1a !important;
  color: #f5ecd5 !important;
  border-bottom: 1px solid rgba(223, 177, 91, 0.2) !important;
}

html[data-festival-theme="royal_gold"] .admin-table tr:hover td {
  background-color: #121a2c !important;
}

/* Footer */
html[data-festival-theme="royal_gold"] footer {
  background: #070a12 !important;
  border-top: 1px solid rgba(223, 177, 91, 0.4) !important;
}

/* ============================================================
   FESTIVAL CELEBRATORY GREETING BANNER (HOMEPAGE)
   ============================================================ */
#festival-greeting-banner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #dc2626;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
}

html[data-festival-theme="royal_gold"] #festival-greeting-banner {
  background: radial-gradient(circle at 50% 50%, #151d30 0%, #080d1a 100%) !important;
  border: 1.5px solid rgba(255, 215, 0, 0.6) !important;
  color: #ffd700 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 215, 0, 0.3) !important;
}

html[data-festival-theme="diwali"] #festival-greeting-banner {
  background: radial-gradient(circle at 50% 50%, #3a0d0d 0%, #160404 100%) !important;
  border: 1.5px solid rgba(251, 191, 36, 0.7) !important;
  color: #fed7aa !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(234, 88, 12, 0.4) !important;
}

html[data-festival-theme="eid"] #festival-greeting-banner {
  background: radial-gradient(circle at 50% 50%, #0d462f 0%, #03170e 100%) !important;
  border: 1.5px solid rgba(251, 191, 36, 0.7) !important;
  color: #d1fae5 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.4) !important;
}

html[data-festival-theme="holi"] #festival-greeting-banner {
  background: radial-gradient(circle at 50% 50%, #2f1066 0%, #0e0521 100%) !important;
  border: 1.5px solid rgba(255, 0, 127, 0.7) !important;
  color: #f3e8ff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 0, 127, 0.4) !important;
}

html[data-festival-theme="independence"] #festival-greeting-banner,
html[data-festival-theme="republic"] #festival-greeting-banner {
  background: radial-gradient(circle at 50% 50%, #173277 0%, #060e22 100%) !important;
  border: 1.5px solid rgba(255, 103, 31, 0.7) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 103, 31, 0.4) !important;
}

html[data-festival-theme="navratri"] #festival-greeting-banner {
  background: radial-gradient(circle at 50% 50%, #3f0923 0%, #18030d 100%) !important;
  border: 1.5px solid rgba(255, 45, 85, 0.7) !important;
  color: #ffe4e6 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 45, 85, 0.4) !important;
}

html[data-festival-theme="rakhi"] #festival-greeting-banner {
  background: radial-gradient(circle at 50% 50%, #3d220c 0%, #140b04 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.7) !important;
  color: #ffedd5 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(217, 119, 6, 0.4) !important;
}

html[data-festival-theme="newyear"] #festival-greeting-banner {
  background: radial-gradient(circle at 50% 50%, #172554 0%, #050818 100%) !important;
  border: 1.5px solid rgba(254, 240, 138, 0.7) !important;
  color: #fef08a !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.4) !important;
}

/* 2. SHUBH DEEPAWALI THEME (🪔 diwali) */
html[data-festival-theme="diwali"],
html[data-festival="diwali"],
body[data-festival-theme="diwali"],
body[data-festival="diwali"] {
  --theme-bg: #140404;
  --theme-surface: #1e0707;
  --theme-card: #250909;
  --theme-card-hover: #310c0c;
  --theme-border: rgba(255, 184, 0, 0.45);
  --theme-primary: #ea580c;
  --theme-primary-hover: #ff3b30;
  --theme-text: #ffffff;
  --theme-text-muted: #fed7aa;
  --theme-glow: rgba(234, 88, 12, 0.4);
  background-color: #140404 !important;
  color: #fed7aa !important;
}
html[data-festival-theme="diwali"] body,
html[data-festival="diwali"] body {
  background: radial-gradient(circle at 50% 0%, #3a0d0d 0%, #140404 75%) !important;
}
html[data-festival-theme="diwali"] header,
html[data-festival="diwali"] header,
html[data-festival-theme="diwali"] nav {
  background: rgba(30, 7, 7, 0.95) !important;
  border-color: rgba(255, 184, 0, 0.4) !important;
}
html[data-festival-theme="diwali"] .tool-card,
html[data-festival="diwali"] .tool-card {
  background: #250909 !important;
  border: 1px solid rgba(255, 184, 0, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}
html[data-festival-theme="diwali"] .tool-card:hover,
html[data-festival="diwali"] .tool-card:hover {
  background: #310c0c !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.4), inset 0 0 15px rgba(255, 184, 0, 0.1) !important;
  transform: translateY(-4px);
}
html[data-festival-theme="diwali"] h1,
html[data-festival-theme="diwali"] h2,
html[data-festival-theme="diwali"] .hero-title-gradient,
html[data-festival="diwali"] h1,
html[data-festival="diwali"] h2,
html[data-festival="diwali"] .hero-title-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 30%, #ea580c 70%, #ff3b30 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 12px rgba(234, 88, 12, 0.6));
}
html[data-festival-theme="diwali"] .tool-badge,
html[data-festival="diwali"] .tool-badge {
  background: rgba(234, 88, 12, 0.2) !important;
  border: 1px solid #fbbf24 !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.35) !important;
}
html[data-festival-theme="diwali"] .category-btn.active,
html[data-festival="diwali"] .category-btn.active {
  background: linear-gradient(135deg, #ff3b30, #ea580c) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-color: #ffd700 !important;
  box-shadow: 0 0 18px rgba(234, 88, 12, 0.5) !important;
}
html[data-festival-theme="diwali"] footer,
html[data-festival="diwali"] footer {
  background: #140404 !important;
  border-top: 1px solid rgba(255, 184, 0, 0.3) !important;
}

/* 3. RANGOTSAV HOLI THEME (🎨 holi) */
html[data-festival-theme="holi"],
html[data-festival="holi"],
body[data-festival-theme="holi"],
body[data-festival="holi"] {
  --theme-bg: #0e0521;
  --theme-surface: #180938;
  --theme-card: #200c49;
  --theme-card-hover: #2a1060;
  --theme-border: rgba(255, 0, 127, 0.45);
  --theme-primary: #ff007f;
  --theme-primary-hover: #9333ea;
  --theme-text: #ffffff;
  --theme-text-muted: #e9d5ff;
  --theme-glow: rgba(255, 0, 127, 0.4);
  background-color: #0e0521 !important;
  color: #f3e8ff !important;
}
html[data-festival-theme="holi"] body,
html[data-festival="holi"] body {
  background: radial-gradient(circle at 50% 0%, #2f1066 0%, #0e0521 75%) !important;
}
html[data-festival-theme="holi"] header,
html[data-festival="holi"] header,
html[data-festival-theme="holi"] nav {
  background: rgba(24, 9, 56, 0.95) !important;
  border-color: rgba(255, 0, 127, 0.4) !important;
}
html[data-festival-theme="holi"] .tool-card,
html[data-festival="holi"] .tool-card {
  background: #200c49 !important;
  border: 1px solid rgba(255, 0, 127, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}
html[data-festival-theme="holi"] .tool-card:hover,
html[data-festival="holi"] .tool-card:hover {
  background: #2a1060 !important;
  border-color: #00e5ff !important;
  box-shadow: 0 10px 30px rgba(255, 0, 127, 0.4), inset 0 0 15px rgba(0, 229, 255, 0.1) !important;
  transform: translateY(-4px);
}
html[data-festival-theme="holi"] h1,
html[data-festival-theme="holi"] h2,
html[data-festival-theme="holi"] .hero-title-gradient,
html[data-festival="holi"] h1,
html[data-festival="holi"] h2,
html[data-festival="holi"] .hero-title-gradient {
  background: linear-gradient(135deg, #ff007f 0%, #00e5ff 35%, #ffbb00 70%, #a855f7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 12px rgba(255, 0, 127, 0.5));
}
html[data-festival-theme="holi"] .tool-badge,
html[data-festival="holi"] .tool-badge {
  background: rgba(255, 0, 127, 0.2) !important;
  border: 1px solid #00e5ff !important;
  color: #00e5ff !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35) !important;
}
html[data-festival-theme="holi"] .category-btn.active,
html[data-festival="holi"] .category-btn.active {
  background: linear-gradient(135deg, #ff007f, #9333ea) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-color: #00e5ff !important;
  box-shadow: 0 0 18px rgba(255, 0, 127, 0.5) !important;
}
html[data-festival-theme="holi"] footer,
html[data-festival="holi"] footer {
  background: #0e0521 !important;
  border-top: 1px solid rgba(255, 0, 127, 0.3) !important;
}

/* 4. MAHE-RAMZAN & EID THEME (🌙 eid) */
html[data-festival-theme="eid"],
html[data-festival="eid"],
body[data-festival-theme="eid"],
body[data-festival="eid"] {
  --theme-bg: #03140d;
  --theme-surface: #062619;
  --theme-card: #0a3523;
  --theme-card-hover: #0e442d;
  --theme-border: rgba(251, 191, 36, 0.45);
  --theme-primary: #059669;
  --theme-primary-hover: #10b981;
  --theme-text: #ffffff;
  --theme-text-muted: #a7f3d0;
  --theme-glow: rgba(5, 150, 105, 0.4);
  background-color: #03140d !important;
  color: #d1fae5 !important;
}
html[data-festival-theme="eid"] body,
html[data-festival="eid"] body {
  background: radial-gradient(circle at 50% 0%, #0d462f 0%, #03140d 75%) !important;
}
html[data-festival-theme="eid"] header,
html[data-festival="eid"] header,
html[data-festival-theme="eid"] nav {
  background: rgba(6, 38, 25, 0.95) !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
}
html[data-festival-theme="eid"] .tool-card,
html[data-festival="eid"] .tool-card {
  background: #0a3523 !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}
html[data-festival-theme="eid"] .tool-card:hover,
html[data-festival="eid"] .tool-card:hover {
  background: #0e442d !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.4), inset 0 0 15px rgba(251, 191, 36, 0.1) !important;
  transform: translateY(-4px);
}
html[data-festival-theme="eid"] h1,
html[data-festival-theme="eid"] h2,
html[data-festival-theme="eid"] .hero-title-gradient,
html[data-festival="eid"] h1,
html[data-festival="eid"] h2,
html[data-festival="eid"] .hero-title-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #34d399 30%, #fbbf24 70%, #059669 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 12px rgba(5, 150, 105, 0.5));
}
html[data-festival-theme="eid"] .tool-badge,
html[data-festival="eid"] .tool-badge {
  background: rgba(5, 150, 105, 0.2) !important;
  border: 1px solid #fbbf24 !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.35) !important;
}
html[data-festival-theme="eid"] .category-btn.active,
html[data-festival="eid"] .category-btn.active {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 18px rgba(5, 150, 105, 0.5) !important;
}
html[data-festival-theme="eid"] footer,
html[data-festival="eid"] footer {
  background: #03140d !important;
  border-top: 1px solid rgba(251, 191, 36, 0.3) !important;
}

/* 5. RAKSHA BANDHAN THEME (🌸 rakhi) */
html[data-festival-theme="rakhi"],
html[data-festival="rakhi"],
body[data-festival-theme="rakhi"],
body[data-festival="rakhi"] {
  --theme-bg: #140b04;
  --theme-surface: #241407;
  --theme-card: #2f1a09;
  --theme-card-hover: #3d220c;
  --theme-border: rgba(217, 119, 6, 0.45);
  --theme-primary: #d97706;
  --theme-primary-hover: #ef4444;
  --theme-text: #ffffff;
  --theme-text-muted: #fed7aa;
  --theme-glow: rgba(217, 119, 6, 0.4);
  background-color: #140b04 !important;
  color: #ffedd5 !important;
}
html[data-festival-theme="rakhi"] body,
html[data-festival="rakhi"] body {
  background: radial-gradient(circle at 50% 0%, #3d220c 0%, #140b04 75%) !important;
}
html[data-festival-theme="rakhi"] header,
html[data-festival="rakhi"] header,
html[data-festival-theme="rakhi"] nav {
  background: rgba(36, 20, 7, 0.95) !important;
  border-color: rgba(217, 119, 6, 0.4) !important;
}
html[data-festival-theme="rakhi"] .tool-card,
html[data-festival="rakhi"] .tool-card {
  background: #2f1a09 !important;
  border: 1px solid rgba(217, 119, 6, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}
html[data-festival-theme="rakhi"] .tool-card:hover,
html[data-festival="rakhi"] .tool-card:hover {
  background: #3d220c !important;
  border-color: #f59e0b !important;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.4) !important;
  transform: translateY(-4px);
}
html[data-festival-theme="rakhi"] h1,
html[data-festival-theme="rakhi"] h2,
html[data-festival-theme="rakhi"] .hero-title-gradient,
html[data-festival="rakhi"] h1,
html[data-festival="rakhi"] h2,
html[data-festival="rakhi"] .hero-title-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #fbbf24 30%, #d97706 70%, #ef4444 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 12px rgba(217, 119, 6, 0.5));
}
html[data-festival-theme="rakhi"] .tool-badge,
html[data-festival="rakhi"] .tool-badge {
  background: rgba(217, 119, 6, 0.2) !important;
  border: 1px solid #f59e0b !important;
  color: #fbbf24 !important;
}
html[data-festival-theme="rakhi"] .category-btn.active,
html[data-festival="rakhi"] .category-btn.active {
  background: linear-gradient(135deg, #d97706, #ef4444) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 18px rgba(217, 119, 6, 0.5) !important;
}
html[data-festival-theme="rakhi"] footer,
html[data-festival="rakhi"] footer {
  background: #140b04 !important;
  border-top: 1px solid rgba(217, 119, 6, 0.3) !important;
}

/* 6. 15 AUGUST SWATANTRATA DIWAS THEME (🇮🇳 independence) */
html[data-festival-theme="independence"],
html[data-festival="independence"],
body[data-festival-theme="independence"],
body[data-festival="independence"] {
  --theme-bg: #060e22;
  --theme-surface: #0c1c44;
  --theme-card: #11265b;
  --theme-card-hover: #173277;
  --theme-border: rgba(255, 103, 31, 0.45);
  --theme-primary: #ff671f;
  --theme-primary-hover: #046a38;
  --theme-text: #ffffff;
  --theme-text-muted: #cbd5e1;
  --theme-glow: rgba(255, 103, 31, 0.4);
  background-color: #060e22 !important;
  color: #f1f5f9 !important;
}
html[data-festival-theme="independence"] body,
html[data-festival="independence"] body {
  background: radial-gradient(circle at 50% 0%, #173277 0%, #060e22 75%) !important;
}
html[data-festival-theme="independence"] header,
html[data-festival="independence"] header,
html[data-festival-theme="independence"] nav {
  background: rgba(12, 28, 68, 0.95) !important;
  border-color: rgba(255, 103, 31, 0.4) !important;
}
html[data-festival-theme="independence"] .tool-card,
html[data-festival="independence"] .tool-card {
  background: #11265b !important;
  border: 1px solid rgba(255, 103, 31, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}
html[data-festival-theme="independence"] .tool-card:hover,
html[data-festival="independence"] .tool-card:hover {
  background: #173277 !important;
  border-color: #046a38 !important;
  box-shadow: 0 10px 30px rgba(255, 103, 31, 0.4) !important;
  transform: translateY(-4px);
}
html[data-festival-theme="independence"] h1,
html[data-festival-theme="independence"] h2,
html[data-festival-theme="independence"] .hero-title-gradient,
html[data-festival="independence"] h1,
html[data-festival="independence"] h2,
html[data-festival="independence"] .hero-title-gradient {
  background: linear-gradient(135deg, #ff671f 0%, #ffffff 45%, #046a38 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 12px rgba(255, 103, 31, 0.6));
}
html[data-festival-theme="independence"] .tool-badge,
html[data-festival="independence"] .tool-badge {
  background: rgba(255, 103, 31, 0.2) !important;
  border: 1px solid #16a34a !important;
  color: #ffffff !important;
}
html[data-festival-theme="independence"] .category-btn.active,
html[data-festival="independence"] .category-btn.active {
  background: linear-gradient(135deg, #ff671f, #c2410c, #046a38) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 18px rgba(255, 103, 31, 0.5) !important;
}
html[data-festival-theme="independence"] footer,
html[data-festival="independence"] footer {
  background: #060e22 !important;
  border-top: 1px solid rgba(255, 103, 31, 0.3) !important;
}

/* 7. 26 JANUARY GANTANTRA DIWAS THEME (🎗️ republic) */
html[data-festival-theme="republic"],
html[data-festival="republic"],
body[data-festival-theme="republic"],
body[data-festival="republic"] {
  --theme-bg: #040918;
  --theme-surface: #09173c;
  --theme-card: #0d2050;
  --theme-card-hover: #122a68;
  --theme-border: rgba(6, 3, 141, 0.6);
  --theme-primary: #06038d;
  --theme-primary-hover: #ff671f;
  --theme-text: #ffffff;
  --theme-text-muted: #cbd5e1;
  --theme-glow: rgba(6, 3, 141, 0.4);
  background-color: #040918 !important;
  color: #f1f5f9 !important;
}
html[data-festival-theme="republic"] body,
html[data-festival="republic"] body {
  background: radial-gradient(circle at 50% 0%, #122a68 0%, #040918 75%) !important;
}
html[data-festival-theme="republic"] header,
html[data-festival="republic"] header,
html[data-festival-theme="republic"] nav {
  background: rgba(9, 23, 60, 0.95) !important;
  border-color: rgba(255, 103, 31, 0.4) !important;
}
html[data-festival-theme="republic"] .tool-card,
html[data-festival="republic"] .tool-card {
  background: #0d2050 !important;
  border: 1px solid rgba(255, 103, 31, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}
html[data-festival-theme="republic"] .tool-card:hover,
html[data-festival="republic"] .tool-card:hover {
  background: #122a68 !important;
  border-color: #046a38 !important;
  box-shadow: 0 10px 30px rgba(6, 3, 141, 0.4) !important;
  transform: translateY(-4px);
}
html[data-festival-theme="republic"] h1,
html[data-festival-theme="republic"] h2,
html[data-festival-theme="republic"] .hero-title-gradient,
html[data-festival="republic"] h1,
html[data-festival="republic"] h2,
html[data-festival="republic"] .hero-title-gradient {
  background: linear-gradient(135deg, #ff671f 0%, #ffffff 40%, #60a5fa 70%, #046a38 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 12px rgba(6, 3, 141, 0.6));
}
html[data-festival-theme="republic"] .tool-badge,
html[data-festival="republic"] .tool-badge {
  background: rgba(6, 3, 141, 0.3) !important;
  border: 1px solid #ff671f !important;
  color: #ffffff !important;
}
html[data-festival-theme="republic"] .category-btn.active,
html[data-festival="republic"] .category-btn.active {
  background: linear-gradient(135deg, #06038d, #1e3a8a, #ff671f) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 18px rgba(6, 3, 141, 0.5) !important;
}
html[data-festival-theme="republic"] footer,
html[data-festival="republic"] footer {
  background: #040918 !important;
  border-top: 1px solid rgba(6, 3, 141, 0.4) !important;
}

/* 8. SHUBH NAVRATRI & DUSSEHRA THEME (🔱 navratri) */
html[data-festival-theme="navratri"],
html[data-festival="navratri"],
body[data-festival-theme="navratri"],
body[data-festival="navratri"] {
  --theme-bg: #16040b;
  --theme-surface: #260713;
  --theme-card: #330a1a;
  --theme-card-hover: #420d22;
  --theme-border: rgba(245, 158, 11, 0.45);
  --theme-primary: #e11d48;
  --theme-primary-hover: #fbbf24;
  --theme-text: #ffffff;
  --theme-text-muted: #fecdd3;
  --theme-glow: rgba(225, 29, 72, 0.4);
  background-color: #16040b !important;
  color: #ffe4e6 !important;
}
html[data-festival-theme="navratri"] body,
html[data-festival="navratri"] body {
  background: radial-gradient(circle at 50% 0%, #420d22 0%, #16040b 75%) !important;
}
html[data-festival-theme="navratri"] header,
html[data-festival="navratri"] header,
html[data-festival-theme="navratri"] nav {
  background: rgba(38, 7, 19, 0.95) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}
html[data-festival-theme="navratri"] .tool-card,
html[data-festival="navratri"] .tool-card {
  background: #330a1a !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}
html[data-festival-theme="navratri"] .tool-card:hover,
html[data-festival="navratri"] .tool-card:hover {
  background: #420d22 !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.4) !important;
  transform: translateY(-4px);
}
html[data-festival-theme="navratri"] h1,
html[data-festival-theme="navratri"] h2,
html[data-festival-theme="navratri"] .hero-title-gradient,
html[data-festival="navratri"] h1,
html[data-festival="navratri"] h2,
html[data-festival="navratri"] .hero-title-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #fbbf24 30%, #e11d48 70%, #881337 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 12px rgba(225, 29, 72, 0.5));
}
html[data-festival-theme="navratri"] .tool-badge,
html[data-festival="navratri"] .tool-badge {
  background: rgba(225, 29, 72, 0.2) !important;
  border: 1px solid #fbbf24 !important;
  color: #fbbf24 !important;
}
html[data-festival-theme="navratri"] .category-btn.active,
html[data-festival="navratri"] .category-btn.active {
  background: linear-gradient(135deg, #e11d48, #be123c, #f59e0b) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.5) !important;
}
html[data-festival-theme="navratri"] footer,
html[data-festival="navratri"] footer {
  background: #16040b !important;
  border-top: 1px solid rgba(245, 158, 11, 0.3) !important;
}

/* 9. NAV VARSH & CHRISTMAS THEME (🎉 newyear) */
html[data-festival-theme="newyear"],
html[data-festival="newyear"],
body[data-festival-theme="newyear"],
body[data-festival="newyear"] {
  --theme-bg: #08120d;
  --theme-surface: #0e2017;
  --theme-card: #132d20;
  --theme-card-hover: #193a2a;
  --theme-border: rgba(220, 38, 38, 0.45);
  --theme-primary: #dc2626;
  --theme-primary-hover: #10b981;
  --theme-text: #ffffff;
  --theme-text-muted: #a7f3d0;
  --theme-glow: rgba(16, 185, 129, 0.4);
  background-color: #08120d !important;
  color: #f1f5f9 !important;
}
html[data-festival-theme="newyear"] body,
html[data-festival="newyear"] body {
  background: radial-gradient(circle at 50% 0%, #193a2a 0%, #08120d 75%) !important;
}
html[data-festival-theme="newyear"] header,
html[data-festival="newyear"] header,
html[data-festival-theme="newyear"] nav {
  background: rgba(14, 32, 23, 0.95) !important;
  border-color: rgba(220, 38, 38, 0.4) !important;
}
html[data-festival-theme="newyear"] .tool-card,
html[data-festival="newyear"] .tool-card {
  background: #132d20 !important;
  border: 1px solid rgba(220, 38, 38, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}
html[data-festival-theme="newyear"] .tool-card:hover,
html[data-festival="newyear"] .tool-card:hover {
  background: #193a2a !important;
  border-color: #10b981 !important;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4) !important;
  transform: translateY(-4px);
}
html[data-festival-theme="newyear"] h1,
html[data-festival-theme="newyear"] h2,
html[data-festival-theme="newyear"] .hero-title-gradient,
html[data-festival="newyear"] h1,
html[data-festival="newyear"] h2,
html[data-festival="newyear"] .hero-title-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 30%, #10b981 60%, #dc2626 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 12px rgba(16, 185, 129, 0.5));
}
html[data-festival-theme="newyear"] .tool-badge,
html[data-festival="newyear"] .tool-badge {
  background: rgba(220, 38, 38, 0.2) !important;
  border: 1px solid #10b981 !important;
  color: #ffffff !important;
}
html[data-festival-theme="newyear"] .category-btn.active,
html[data-festival="newyear"] .category-btn.active {
  background: linear-gradient(135deg, #dc2626, #b91c1c, #10b981) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.5) !important;
}
html[data-festival-theme="newyear"] footer,
html[data-festival="newyear"] footer {
  background: #08120d !important;
  border-top: 1px solid rgba(220, 38, 38, 0.3) !important;
}

/* 10. DEFAULT CLASSIC PRO THEME (🏛️ default) */
html[data-festival-theme="default"],
html[data-festival="default"],
body[data-festival-theme="default"],
body[data-festival="default"] {
  --theme-bg: #0f172a;
  --theme-surface: #1e293b;
  --theme-card: #1e293b;
  --theme-border: #334155;
  --theme-primary: #dc2626;
  --theme-primary-hover: #b91c1c;
  --theme-text: #ffffff;
  --theme-text-muted: #94a3b8;
  --theme-glow: rgba(220, 38, 38, 0.3);
}

/* ============================================================
   HIGH-CONTRAST THEME-HARMONIZED TYPOGRAPHY & SURFACE STYLING
   ============================================================ */

/* --- 2. SHUBH DEEPAWALI (🪔 diwali) --- */
html[data-festival-theme="diwali"] .tool-card h3 {
  color: #fff7ed !important;
}
html[data-festival-theme="diwali"] .tool-card p {
  color: #fed7aa !important;
}
html[data-festival-theme="diwali"] #hero-sub-text {
  color: #ffedd5 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
html[data-festival-theme="diwali"] #global-tool-search {
  background-color: #1a0505 !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(251, 191, 36, 0.5) !important;
}
html[data-festival-theme="diwali"] .category-btn {
  background: #1c0707 !important;
  color: #fed7aa !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
}
html[data-festival-theme="diwali"] .category-btn:hover {
  border-color: #fbbf24 !important;
  color: #ffffff !important;
}

/* --- 3. RANGOTSAV HOLI (🎨 holi) --- */
html[data-festival-theme="holi"] .tool-card h3 {
  color: #ffffff !important;
}
html[data-festival-theme="holi"] .tool-card p {
  color: #e9d5ff !important;
}
html[data-festival-theme="holi"] #hero-sub-text {
  color: #f3e8ff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
html[data-festival-theme="holi"] #global-tool-search {
  background-color: #14072b !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(0, 229, 255, 0.5) !important;
}
html[data-festival-theme="holi"] .category-btn {
  background: #180938 !important;
  color: #e9d5ff !important;
  border: 1px solid rgba(255, 0, 127, 0.3) !important;
}
html[data-festival-theme="holi"] .category-btn:hover {
  border-color: #00e5ff !important;
  color: #ffffff !important;
}

/* --- 4. MAHE-RAMZAN & EID (🌙 eid) --- */
html[data-festival-theme="eid"] .tool-card h3 {
  color: #ffffff !important;
}
html[data-festival-theme="eid"] .tool-card p {
  color: #d1fae5 !important;
}
html[data-festival-theme="eid"] #hero-sub-text {
  color: #ecfdf5 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
html[data-festival-theme="eid"] #global-tool-search {
  background-color: #052014 !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(251, 191, 36, 0.5) !important;
}
html[data-festival-theme="eid"] .category-btn {
  background: #082d1e !important;
  color: #d1fae5 !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
}
html[data-festival-theme="eid"] .category-btn:hover {
  border-color: #10b981 !important;
  color: #ffffff !important;
}

/* --- 5. RAKSHA BANDHAN (🌸 rakhi) --- */
html[data-festival-theme="rakhi"] .tool-card h3 {
  color: #ffffff !important;
}
html[data-festival-theme="rakhi"] .tool-card p {
  color: #ffedd5 !important;
}
html[data-festival-theme="rakhi"] #hero-sub-text {
  color: #fff7ed !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
html[data-festival-theme="rakhi"] #global-tool-search {
  background-color: #1f0e04 !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
}
html[data-festival-theme="rakhi"] .category-btn {
  background: #271306 !important;
  color: #ffedd5 !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}
html[data-festival-theme="rakhi"] .category-btn:hover {
  border-color: #fbbf24 !important;
  color: #ffffff !important;
}

/* --- 6. SWATANTRATA & GANTANTRA DIWAS (🇮🇳 independence / republic) --- */
html[data-festival-theme="independence"] .tool-card h3,
html[data-festival-theme="republic"] .tool-card h3 {
  color: #ffffff !important;
}
html[data-festival-theme="independence"] .tool-card p,
html[data-festival-theme="republic"] .tool-card p {
  color: #cbd5e1 !important;
}
html[data-festival-theme="independence"] #hero-sub-text,
html[data-festival-theme="republic"] #hero-sub-text {
  color: #f1f5f9 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
html[data-festival-theme="independence"] #global-tool-search,
html[data-festival-theme="republic"] #global-tool-search {
  background-color: #09173c !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 103, 31, 0.5) !important;
}
html[data-festival-theme="independence"] .category-btn,
html[data-festival-theme="republic"] .category-btn {
  background: #0d2050 !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 103, 31, 0.3) !important;
}
html[data-festival-theme="independence"] .category-btn:hover,
html[data-festival-theme="republic"] .category-btn:hover {
  border-color: #ffffff !important;
  color: #ffffff !important;
}

/* --- 8. SHUBH NAVRATRI & DUSSEHRA (🔱 navratri) --- */
html[data-festival-theme="navratri"] .tool-card h3 {
  color: #ffffff !important;
}
html[data-festival-theme="navratri"] .tool-card p {
  color: #fecdd3 !important;
}
html[data-festival-theme="navratri"] #hero-sub-text {
  color: #ffe4e6 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
html[data-festival-theme="navratri"] #global-tool-search {
  background-color: #240713 !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 45, 85, 0.5) !important;
}
html[data-festival-theme="navratri"] .category-btn {
  background: #2d0818 !important;
  color: #ffe4e6 !important;
  border: 1px solid rgba(255, 45, 85, 0.3) !important;
}
html[data-festival-theme="navratri"] .category-btn:hover {
  border-color: #fbbf24 !important;
  color: #ffffff !important;
}

/* --- 9. NAV VARSH & CHRISTMAS (🎉 newyear) --- */
html[data-festival-theme="newyear"] .tool-card h3 {
  color: #ffffff !important;
}
html[data-festival-theme="newyear"] .tool-card p {
  color: #d1fae5 !important;
}
html[data-festival-theme="newyear"] #hero-sub-text {
  color: #f1f5f9 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
html[data-festival-theme="newyear"] #global-tool-search {
  background-color: #0e2017 !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
}
html[data-festival-theme="newyear"] .category-btn {
  background: #122d20 !important;
  color: #d1fae5 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}
html[data-festival-theme="newyear"] .category-btn:hover {
  border-color: #fef08a !important;
  color: #ffffff !important;
}

.festival-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.festival-theme-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.festival-theme-card:hover {
  transform: translateY(-2px);
  border-color: #eab308;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.festival-theme-card.active {
  border: 2px solid #eab308;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.3);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08), #0f172a);
}

.festival-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.festival-card-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.festival-card-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.festival-preview-swatch {
  display: flex;
  gap: 0.4rem;
}

.swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.festival-active-badge {
  display: none;
  font-size: 0.7rem;
  font-weight: 900;
  color: #eab308;
  background: rgba(234, 179, 8, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(234, 179, 8, 0.4);
  align-self: flex-start;
  margin-top: 0.5rem;
}

.festival-theme-card.active .festival-active-badge {
  display: inline-block;
}

/* GOOGLE SERP PREVIEW */
.google-serp-preview {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.serp-site-name {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.serp-url {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-family: monospace;
}

.serp-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #60a5fa;
  margin-top: 0.25rem;
  cursor: pointer;
}

.serp-title:hover {
  text-decoration: underline;
}

.serp-snippet {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* BUSINESS CARD PREVIEW */
.business-card-preview-box {
  background: linear-gradient(135deg, #101018 0%, #07070b 100%);
  border: 2px solid #eab308;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.editor-section-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.dark .editor-section-card {
  background: #0f172a;
  border-color: #1e293b;
}

.editor-section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #eab308;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================
   ADOBE EXPRESS AUTHENTIC VISUAL TEMPLATE CAROUSEL & CARDS
   ============================================================ */
.adobe-carousel-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1rem 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.adobe-carousel-container::-webkit-scrollbar {
  display: none;
}

.adobe-tpl-card {
  flex: 0 0 auto;
  width: 140px;
  height: 196px;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.adobe-tpl-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18), 0 0 0 2px #dc2626;
  border-color: #dc2626;
}

.dark .adobe-tpl-card {
  background: #1e293b;
  border-color: rgba(51, 65, 85, 0.8);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.adobe-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}
.adobe-arrow-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: scale(1.08);
}
.dark .adobe-arrow-btn {
  background: #1e293b;
  border-color: #334155;
  color: #ffffff;
}
.dark .adobe-arrow-btn:hover {
  background: #334155;
}
.hero-card-glow {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.dark .hero-card-glow {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(51, 65, 85, 0.8);
}

.hero-card-glow:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 16px 32px -8px rgba(220, 38, 38, 0.18);
}

.dark .hero-card-glow:hover {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 0 25px rgba(239, 68, 68, 0.2);
}

.hero-pulse-orb {
  animation: heroPulse 6s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
  50% { transform: scale(1.15) translate(15px, -10px); opacity: 0.65; }
  100% { transform: scale(1) translate(-10px, 10px); opacity: 0.4; }
}

/* ============================================================
   MOBILE APP EXPERIENCE & ULTRA-SMOOTH TOUCH OPTIMIZATION
   ============================================================ */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 12px)) !important;
    overflow-x: hidden !important;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  [data-theme="dark"] .mobile-bottom-bar,
  .dark .mobile-bottom-bar {
    background: rgba(15, 23, 42, 0.94);
    border-top-color: rgba(30, 41, 59, 0.8);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 100%;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.15s ease;
    touch-action: manipulation;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
  }

  [data-theme="dark"] .mobile-nav-item,
  .dark .mobile-nav-item {
    color: #94a3b8;
  }

  .mobile-nav-item:active,
  .mobile-nav-item.active {
    color: #dc2626;
    transform: scale(0.95);
  }

  [data-theme="dark"] .mobile-nav-item:active,
  .dark .mobile-nav-item:active {
    color: #ef4444;
  }

  .mobile-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  /* Touch Target Optimizations */
  button, a, input, select, textarea {
    touch-action: manipulation;
  }

  /* Modals on Mobile: Full viewport height and smooth scrolling */
  .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.2s ease-out;
  will-change: opacity;
}

  .auth-modal-card, .tool-modal-card {
    max-height: calc(90dvh - env(safe-area-inset-top, 0px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Improved Touch Scroll */
  .horizontal-scroll-touch {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory;
  }
}



/* ==========================================================================
   MOBILE PERFORMANCE, SPEED & TOUCH ENGINE (ANDROID & IOS 120Hz/60Hz OPTIMIZED)
   ========================================================================== */

/* Universal Touch & Speed Accelerators */
html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y manipulation;
  position: relative;
}

*, *::before, *::after {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

/* Fast Touch Response (Removes 300ms Delay) */
button, a, input, select, textarea, .tool-card, .tab-btn, .admin-nav-tab, .filter-chip {
  touch-action: manipulation !important;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea {
  -webkit-user-select: text !important;
  user-select: text !important;
}

/* Hardware GPU Layering for Silky Smooth 60/120 FPS */
.tool-card, .modal-card, .btn-primary, .auth-modal-card {
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (max-width: 768px) {
  /* Disable heavy canvas on mobile for instant rendering and 0% CPU consumption */
  #hero-office-canvas {
    display: none !important;
  }

  /* Prevent any horizontal screen wobbling */
  #app-root, #homepage-container, #tool-viewport-section {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Mobile Tool Viewport Container */
  #tool-viewport-section {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-bottom: 5.5rem !important; /* Space above bottom navigation bar */
  }

  /* Mobile Dropzone & Upload Button Ergonomics */
  .dropzone, .universal-dropzone-box {
    min-height: 170px !important;
    padding: 1.25rem 0.75rem !important;
  }

  /* Safe Area for Bottom Navigation */
  #mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 8px);
    z-index: 990;
  }

  /* Floating Action Buttons spacing on mobile */
  .floating-actions-container {
    bottom: 5.2rem !important;
    right: 0.75rem !important;
    z-index: 980;
  }

  /* Mobile Modals (Auth, Pro, Admin, Legal) */
  .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.2s ease-out;
  will-change: opacity;
}

  .auth-modal-card, .pro-modal-card, .admin-modal-container {
    width: 96vw !important;
    max-width: 480px !important;
    max-height: 88dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 1.5rem !important;
    padding: 1.25rem !important;
  }

  /* Fast Tools Grid on Phone */
  .tools-grid {
    gap: 0.75rem !important;
  }
}

/* Topbar Mobile Fit Enhancements */
@media (max-width: 640px) {
  header {
    height: 54px !important;
  }
  header > div {
    height: 54px !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  .topbar-account-btn {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.75rem !important;
    border-radius: 0.6rem !important;
  }
  .open-pro-modal-btn {
    padding: 0.35rem 0.55rem !important;
    font-size: 0.75rem !important;
    border-radius: 0.6rem !important;
  }
}

/* ============================================================
   COMPACT MOBILE TOOL CARDS (FAST 2-COLUMN VIEW ON ALL PHONES)
   ============================================================ */
@media (max-width: 640px) {
  #tools-grid-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.6rem !important;
  }

  .tool-card {
    padding: 0.65rem 0.6rem !important;
    border-radius: 0.85rem !important;
    min-height: 125px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  .tool-icon-wrapper {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.25rem !important;
    margin-bottom: 0.35rem !important;
    border-radius: 0.6rem !important;
  }

  .tool-card h3 {
    font-size: 0.825rem !important;
    line-height: 1.05rem !important;
    margin-bottom: 0.2rem !important;
    font-weight: 800 !important;
  }

  .tool-card p {
    font-size: 0.68rem !important;
    line-height: 0.9rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .tool-card .badge {
    padding: 0.12rem 0.35rem !important;
    font-size: 0.58rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }
}

/* ============================================================
   MOBILE TOPBAR RIGHT BUTTONS COMPACT & ANTI-CLIPPING ENGINE
   ============================================================ */
@media (max-width: 640px) {
  header {
    height: 50px !important;
  }
  header > div {
    height: 50px !important;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
    gap: 0.25rem !important;
  }

  /* Compact Brand Logo */
  header a[title="ilovePROpdf"] {
    gap: 0.3rem !important;
    flex-shrink: 0 !important;
  }
  header a[title="ilovePROpdf"] > div:first-child {
    width: 28px !important;
    height: 28px !important;
    border-radius: 0.5rem !important;
  }
  header a[title="ilovePROpdf"] svg {
    width: 17px !important;
    height: 17px !important;
  }
  header a[title="ilovePROpdf"] .select-none {
    font-size: 0.95rem !important;
  }

  /* Account Wrapper & Buttons */
  .account-dropdown-wrapper {
    flex-shrink: 0 !important;
    display: inline-flex !important;
  }

  .topbar-account-btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.72rem !important;
    border-radius: 0.5rem !important;
    gap: 0.25rem !important;
    height: 29px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .open-pro-modal-btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.72rem !important;
    border-radius: 0.5rem !important;
    gap: 0.2rem !important;
    height: 29px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  #mobile-menu-btn {
    width: 29px !important;
    height: 29px !important;
    font-size: 0.85rem !important;
    border-radius: 0.5rem !important;
    padding: 0 !important;
#pro-modal {
  z-index: 10000 !important;
}

@media (max-width: 640px) {
  #pro-modal .auth-modal-card {
    padding: 1.15rem 0.85rem !important;
    max-height: 92dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 1.25rem !important;
  }

  #proPlanSelectorContainer {
    gap: 0.35rem !important;
  }

  #proPlanSelectorContainer > div {
    padding: 0.6rem 0.3rem !important;
    border-radius: 0.85rem !important;
  }

  #paymentMethodTabContainer button {
    padding: 0.5rem 0.25rem !important;
    font-size: 0.7rem !important;
  }

  #payPane-upi .flex-col {
    padding: 0.75rem !important;
  }

  #proUpiQrImage {
    width: 120px !important;
    height: 120px !important;
  }
}

/* ============================================================
   POINTER EVENTS & TOUCH INTERCEPTION FIX (MOBILE BUTTONS)
   ============================================================ */
.floating-actions {
  pointer-events: none !important;
}
.floating-actions > * {
  pointer-events: auto !important;
}

.mobile-bottom-bar {
  pointer-events: auto !important;
  z-index: 99999 !important;
}

.mobile-nav-item {
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* ==========================================================================
   COMPLETE MOBILE-FIRST NATIVE RESPONSIVE ENGINE (100% WEB FEATURE PARITY)
   ========================================================================== */

/* 1. Prevent iOS Auto-Zoom on Form Inputs */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="search"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents iOS auto-zoom shift */
  }

  /* 2. Horizontal Smooth Touch-Scroll for Category Filters & Tab Rails */
  .category-filter-rail,
  .horizontal-scroll-touch,
  #category-filter-chips,
  .filter-chips-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding-bottom: 4px !important;
  }
  .category-filter-rail::-webkit-scrollbar,
  .horizontal-scroll-touch::-webkit-scrollbar,
  #category-filter-chips::-webkit-scrollbar,
  .filter-chips-container::-webkit-scrollbar {
    display: none !important;
  }

  /* 3. Responsive Tool Workspaces & Action Buttons */
  #tool-viewport-section {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .tool-action-btn,
  .btn-convert-action,
  .btn-download-action {
    width: 100% !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    border-radius: 0.85rem !important;
  }

  /* 4. Canvas & Interactive Preview Responsiveness on Mobile */
  canvas.interactive-canvas,
  .preview-card-container,
  .resume-live-preview-box,
  .business-card-preview-box {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 5. Mobile Tables & Code Blocks (No Horizontal Overflow) */
  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 6. Modals Full Responsiveness & Smooth Touch Scrolling */
    /* 6. Modals Full Responsiveness & Smooth Touch Scrolling */
  .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity 0.2s ease-out;
  will-change: opacity;
}

  .modal-overlay.open,
.modal-overlay.active,
.modal-overlay.show,
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"] {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 99999999 !important;
}

  .modal-overlay > div {
    max-height: 88dvh !important;
    width: 95vw !important;
    max-width: 500px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}


/* ============================================================
   MOBILE BOTTOM APP NAVIGATION BAR (ALWAYS CLICKABLE & VISIBLE)
   ============================================================ */
.mobile-bottom-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  z-index: 99990 !important;
  pointer-events: auto !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
}

.mobile-nav-item {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  color: var(--text-muted, #64748b) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  background: transparent !important;
  border: none !important;
  padding: 4px 0 !important;
  -webkit-tap-highlight-color: transparent !important;
}

.mobile-nav-item.active,
.mobile-nav-item:active {
  color: #dc2626 !important;
}

.mobile-nav-icon {
  font-size: 1.15rem !important;
  line-height: 1 !important;
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}


/* ============================================================
   PREMIUM MOBILE PWA INSTALL & UPDATE BANNER
   ============================================================ */

.pwa-mobile-banner {
  position: fixed;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 440px;
  z-index: 9999999;
  animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

@keyframes pwaSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 25px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.pwa-banner-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 12px 14px;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 20px rgba(239, 68, 68, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pwa-banner-glow {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.pwa-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
  padding: 0;
}

.pwa-close-btn:active, .pwa-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ffffff;
  transform: scale(1.08);
}

.pwa-banner-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
}

.pwa-icon-container {
  position: relative;
  flex-shrink: 0;
}

.pwa-card-app-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pwa-icon-verified {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: #10b981;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0f172a;
}

.pwa-card-info {
  flex: 1;
  min-width: 0;
}

.pwa-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pwa-card-title {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.pwa-pill-badge {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.pwa-pill-rating {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
}

.pwa-card-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-btn-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.pwa-premium-install-btn {
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.1px;
}

.pwa-premium-install-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.6);
}

/* Update Banner specifics */
.pwa-update-card {
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.75), 0 0 24px rgba(245, 158, 11, 0.25) !important;
}

.pwa-update-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.pwa-update-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #dc2626 100%) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5) !important;
}

.pwa-later-btn {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.pwa-later-btn:active, .pwa-later-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* iOS Guide Modal Styling */
.pwa-ios-modal-card {
  position: relative;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px 20px;
  max-width: 360px;
  width: 90%;
  margin: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  text-align: center;
  color: #ffffff;
}

.pwa-ios-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pwa-ios-icon-box {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.pwa-ios-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.pwa-ios-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.pwa-ios-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #e2e8f0;
}

.pwa-ios-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pwa-ios-done-btn {
  width: 100%;
  padding: 11px;
  background: #ef4444;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

/* Viral Share Modal Display Rules */


/* Owner Portal Explicit Display Rules */
#adminPortalModal.open,
#adminPortalModal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 9999999 !important;
}






/* Owner Portal Clean Open & Close Rules */
#adminPortalModal.open,
#adminPortalModal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 99999999 !important;
}
#adminPortalModal:not(.open) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Viral Share Modal Clean Display Rules */
#viralShareSuccessModal.open,
#viralShareSuccessModal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 99999999 !important;
}
#viralShareSuccessModal:not(.open) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Code & Tool Asset Protection */
.no-select {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* Strictly Hide All Mobile Install & PWA Banners on Desktop & Laptop screens */
@media (min-width: 769px) {
  #pwaMobileInstallBanner,
  #pwaAppUpdateBanner,
  .pwa-mobile-banner,
  #pwaIosGuideModal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    bottom: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    z-index: -9999 !important;
  }
}

/* Mobile screens: ensure mobile install banner is clearly visible above bottom bar */
@media (max-width: 768px) {
  .pwa-mobile-banner {
    position: fixed !important;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 20px) !important;
    max-width: 440px !important;
    z-index: 9999999 !important;
  }
}

/* ============================================================
   FULL-PAGE / FULL-WIDTH LAYOUT OVERRIDES
   ============================================================ */
html, body, #app-root {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}

header, main, #homepage-container, #tool-viewport-section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Zero-flicker rendering */
#homepage-container {
  contain: layout;
  will-change: auto;
}

/* Hero mesh background */
.hero-workspace-mesh {
  background-image: radial-gradient(rgba(220, 38, 38, 0.09) 1.5px, transparent 1.5px), radial-gradient(rgba(14, 165, 233, 0.07) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
}


/* Clean Zero-Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* ================= BRAND LOGO PRELOADER & SPLASH SCREEN ================= */
@keyframes loadingBarAnim {
  0% { left: -40%; width: 40%; }
  50% { left: 30%; width: 60%; }
  100% { left: 100%; width: 40%; }
}
.animate-loading-bar {
  animation: loadingBarAnim 1.1s infinite ease-in-out;
}
#app-preloader {
  opacity: 1;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
}
#app-preloader.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ================= CATEGORY TABS HORIZONTAL SCROLLER ================= */
#categoryTabsRow {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x !important;
  overscroll-behavior-x: contain !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  scroll-behavior: smooth !important;
  width: 100% !important;
  max-width: 100% !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  padding: 4px 2px !important;
  gap: 6px !important;
}
#categoryTabsRow::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.cat-filter-btn {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  touch-action: manipulation !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}


    /* ================= MODAL OVERLAYS UNIVERSAL DISPLAY & CENTERING ================= */
    .modal-overlay {
      position: fixed !important;
      inset: 0 !important;
      background: rgba(15, 23, 42, 0.82) !important;
      backdrop-filter: blur(8px) !important;
      -webkit-backdrop-filter: blur(8px) !important;
      z-index: 99999999 !important;
      display: none;
      align-items: center !important;
      justify-content: center !important;
      padding: 0.75rem !important;
      overflow-y: auto !important;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    .modal-overlay.open,
    .modal-overlay.active,
    .modal-overlay.show,
    .modal-overlay[style*="display: flex"],
    .modal-overlay[style*="display:flex"] {
      display: flex !important;
      opacity: 1 !important;
      visibility: visible !important;
      pointer-events: auto !important;
    }

    /* ================= TOP NAVBAR & MEGA-MENU CLEAN STYLES ================= */
    @media (min-width: 1024px) {
      header nav .nav-item-dropdown,
      .nav-item-dropdown {
        position: static !important;
        display: inline-flex !important;
        align-items: center !important;
      }
    }

    .mega-menu {
      display: none !important;
      position: absolute !important;
      top: 100% !important;
      left: 50% !important;
      right: auto !important;
      transform: translateX(-50%) !important;
      background-color: #ffffff !important;
      color: #0f172a !important;
      border: 1px solid #e2e8f0 !important;
      border-radius: 1rem !important;
      box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.22) !important;
      padding: 1.25rem !important;
      z-index: 999999 !important;
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
      max-height: calc(88vh - 40px) !important;
      max-width: calc(100vw - 20px) !important;
      width: calc(100vw - 20px) !important;
      overflow-y: auto !important;
      box-sizing: border-box !important;
    }

    @media (min-width: 1024px) {
      .mega-menu.mega-menu-full {
        width: min(1080px, calc(100vw - 20px)) !important;
      }
      /* Unified Centered Right Mega Menu */
      .mega-menu:not(.mega-menu-full):not(.mega-menu-right) {
        width: min(640px, calc(100vw - 20px)) !important;
      }
    }

    .mega-menu::before {
      content: '' !important;
      position: absolute !important;
      top: -16px !important;
      left: 0 !important;
      right: 0 !important;
      height: 16px !important;
      background: transparent !important;
      pointer-events: auto !important;
    }

    .dark .mega-menu,
    [data-theme="dark"] .mega-menu {
      background-color: #0f172a !important;
      color: #f8fafc !important;
      border-color: #334155 !important;
    }

    .nav-item-dropdown:hover > .mega-menu:not(.force-hide-dropdown),
    .nav-item-dropdown:focus-within > .mega-menu:not(.force-hide-dropdown),
    .mega-menu.is-open:not(.force-hide-dropdown) {
      display: block !important;
      opacity: 1 !important;
      visibility: visible !important;
      pointer-events: auto !important;
      transform: translateX(-50%) !important;
    }

    .mega-menu.force-hide-dropdown,
    .nav-item-dropdown.force-hide-dropdown .mega-menu {
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
      display: none !important;
    }


/* ================= UNIVERSAL VIEWPORT-CENTERED MEGA-MENU STYLES ================= */
@media (min-width: 1024px) {
  header nav,
  header nav .nav-item-dropdown,
  .nav-item-dropdown {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
  }
}

.mega-menu,
.mega-menu.mega-menu-full,
.mega-menu.mega-menu-right,
.mega-menu.mega-menu-center,
.nav-item-dropdown > .mega-menu {
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
  padding: clamp(0.75rem, 1.2vw, 1.25rem) !important;
  z-index: 999999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  max-height: calc(85vh - 20px) !important;
  max-width: calc(100vw - 24px) !important;
  width: calc(100vw - 24px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  box-sizing: border-box !important;
  transition: opacity 0.15s ease-out, visibility 0.15s ease-out !important;
  backdrop-filter: blur(16px) !important;
}

.mega-menu.mega-menu-full {
  width: min(1080px, calc(100vw - 24px)) !important;
}

.mega-menu.mega-menu-right {
  width: min(920px, calc(100vw - 24px)) !important;
}

.mega-menu:not(.mega-menu-full):not(.mega-menu-right) {
  width: min(640px, calc(100vw - 24px)) !important;
}

.mega-menu::before {
  content: '' !important;
  position: absolute !important;
  top: -14px !important;
  left: 0 !important;
  right: 0 !important;
  height: 14px !important;
  background: transparent !important;
  pointer-events: auto !important;
}

.dark .mega-menu,
[data-theme="dark"] .mega-menu {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
  box-shadow: 0 25px 70px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

.nav-item-dropdown:hover > .mega-menu:not(.force-hide-dropdown),
.nav-item-dropdown:focus-within > .mega-menu:not(.force-hide-dropdown),
.mega-menu.is-open:not(.force-hide-dropdown) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) !important;
}

.mega-menu.force-hide-dropdown,
.nav-item-dropdown.force-hide-dropdown .mega-menu,
.nav-item-dropdown:hover .mega-menu.force-hide-dropdown,
.nav-item-dropdown:focus-within .mega-menu.force-hide-dropdown {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}


/* ================= MOBILE TOP TOOLS BAR & DRAWER STYLES ================= */
#mobile-top-tools-bar {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.mobile-top-cat-pill {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-top-cat-pill.active {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
}


/* ================= MOBILE APP UI ENHANCEMENTS ================= */
@media (max-width: 1023px) {
  #mobile-top-tools-bar,
  #topbar-lang-toggle,
  #topbar-theme-toggle,
  .topbar-quick-pill {
    display: none !important;
  }
  
  header nav:not(.mobile-bottom-bar) {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
  }

  #mobile-drawer {
    z-index: 99999999 !important;
  }

  header .topbar-account-btn,
  header .topbar-login-gold-btn {
    padding: 0.3rem 0.65rem !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    border-radius: 0.75rem !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25) !important;
    flex-shrink: 0 !important;
  }

  header .open-pro-modal-btn {
    padding: 0.3rem 0.65rem !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    border-radius: 0.75rem !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25) !important;
    flex-shrink: 0 !important;
  }

  #mobile-menu-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 0.75rem !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    flex-shrink: 0 !important;
  }
  .dark #mobile-menu-btn {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
  }

  /* 2-Column Grid on Mobile for Tools */
  #tools-grid-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  /* Safe space at bottom so bottom nav does not overlap last cards */
  main#main-content {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
