/* Free Tools Port - Master Stylesheet (With Ultra Premium About Us Styling) */

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

:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-border: #a7f3d0;
  --accent: #10b981;
  
  --sky-blue: #0284c7;
  --sky-blue-light: #e0f2fe;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  --shadow-emerald: 0 10px 25px -5px rgba(16, 185, 129, 0.25);
  --radius: 20px;
  --radius-sm: 12px;
}

/* Dark Mode Variables */
body.dark-mode {
  --bg-main: #0b132b;
  --bg-card: #1c2541;
  --text-dark: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --primary-light: #064e3b;
  --primary-border: #047857;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Smooth Page Entrance Animation */
@keyframes pageSmoothEntrance {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  animation: pageSmoothEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.site-header {
  animation: headerSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-freetools, .main-wrapper, .tool-main-box, .tool-sidebar {
  animation: pageSmoothEntrance 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered entrance animation for tool cards on page refresh */
.tools-grid .tool-card:nth-child(1) { animation-delay: 0.03s; }
.tools-grid .tool-card:nth-child(2) { animation-delay: 0.06s; }
.tools-grid .tool-card:nth-child(3) { animation-delay: 0.09s; }
.tools-grid .tool-card:nth-child(4) { animation-delay: 0.12s; }
.tools-grid .tool-card:nth-child(5) { animation-delay: 0.15s; }
.tools-grid .tool-card:nth-child(6) { animation-delay: 0.18s; }
.tools-grid .tool-card:nth-child(7) { animation-delay: 0.21s; }
.tools-grid .tool-card:nth-child(8) { animation-delay: 0.24s; }
.tools-grid .tool-card:nth-child(9) { animation-delay: 0.27s; }
.tools-grid .tool-card:nth-child(10) { animation-delay: 0.30s; }

a {
  color: inherit;
  text-decoration: none;
}

/* Scroll-triggered Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.animated-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-pop {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
}

.reveal-pop.animated-visible {
  opacity: 1;
  transform: scale(1);
}

/* Header Navbar */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

body.dark-mode .site-header {
  background: rgba(11, 19, 43, 0.95);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 4px 8px rgba(2, 132, 199, 0.25));
}

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

.brand-name {
  font-family: 'Carter One', Impact, sans-serif;
  color: #0284c7;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.brand-suffix {
  color: var(--primary);
  margin-left: 2px;
}

/* Center Header Search Box */
.header-search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input-header {
  width: 100%;
  padding: 10px 16px 10px 42px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  background: rgba(241, 245, 249, 0.9);
  color: var(--text-dark);
  outline: none;
  transition: all 0.2s ease;
}

body.dark-mode .search-input-header {
  background: rgba(30, 41, 59, 0.9);
}

.search-input-header:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

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

/* Header Search Live Dropdown Popup */
.header-search-results-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.search-result-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.search-result-details {
  flex: 1;
  overflow: hidden;
}

.search-result-name {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-dark);
}

.search-result-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-dropdown {
  position: relative;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

.nav-btn:hover {
  background-color: rgba(5, 150, 105, 0.08);
  color: var(--primary);
}

/* 2-Column Mega Categories Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: -60px;
  margin-top: 12px;
  width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  z-index: 120;
}

.dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-dropdown:hover .dropdown-menu {
  display: grid;
  animation: fadeInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-radius: 14px;
  transition: all 0.25s ease;
}

.cat-icon {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
  transition: transform 0.2s ease;
}

.dropdown-item:hover .cat-icon {
  transform: scale(1.2);
}

/* CUSTOM UNIQUE CATEGORY COLOR PALETTE & HOVER EFFECTS */
.item-math .cat-icon { color: #059669; }
.item-math:hover { background: #ecfdf5; color: #047857; }

.item-network .cat-icon { color: #0284c7; }
.item-network:hover { background: #e0f2fe; color: #0369a1; }

.item-encode .cat-icon { color: #7c3aed; }
.item-encode:hover { background: #f3e8ff; color: #6d28d9; }

.item-conversion .cat-icon { color: #d97706; }
.item-conversion:hover { background: #fef3c7; color: #b45309; }

.item-code .cat-icon { color: #0891b2; }
.item-code:hover { background: #cffafe; color: #0e7490; }

.item-seo .cat-icon { color: #2563eb; }
.item-seo:hover { background: #dbeafe; color: #1d4ed8; }

.item-security .cat-icon { color: #e11d48; }
.item-security:hover { background: #ffe4e6; color: #be123c; }

.item-image .cat-icon { color: #db2777; }
.item-image:hover { background: #fce7f3; color: #be185d; }

.item-data .cat-icon { color: #9333ea; }
.item-data:hover { background: #f3e8ff; color: #7e22ce; }

.item-text .cat-icon { color: #ea580c; }
.item-text:hover { background: #ffedd5; color: #c2410c; }

.item-time .cat-icon { color: #16a34a; }
.item-time:hover { background: #dcfce7; color: #15803d; }

.item-ai .cat-icon { color: #c026d3; }
.item-ai:hover { background: #fae8ff; color: #a21caf; }

.item-social .cat-icon { color: #ff0000; }
.item-social:hover { background: #ffe4e6; color: #dc2626; }

/* ABOUT US STYLING ENHANCEMENTS */
.about-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-lg);
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.icon-emerald { background: #ecfdf5; color: #059669; }
.icon-rose { background: #ffe4e6; color: #e11d48; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-fuchsia { background: #fae8ff; color: #c026d3; }

.about-cat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.about-cat-box:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Light / Dark Mode Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

.icon-sun { display: inline-block; color: #f59e0b; }
.icon-moon { display: none; color: #6366f1; }

body.dark-mode .icon-sun { display: none; }
body.dark-mode .icon-moon { display: inline-block; }

/* Main Container */
.main-wrapper {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

/* Hero Section (Clean & Minimalist Theme) */
.hero-freetools {
  position: relative;
  text-align: center;
  width: 100%;
  padding: 50px 24px 45px;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
  overflow: hidden;
}

body.dark-mode .hero-freetools {
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.15) 0%, rgba(15, 23, 42, 0) 100%);
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-heading {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .hero-heading {
    font-size: 2rem;
  }
}

.hero-highlight {
  color: var(--primary);
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 28px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-action-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.btn-hero-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-hero-glass:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.stat-badge-box {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-badge-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-badge-text {
  display: flex;
  flex-direction: column;
}

.stat-number-lg {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.stat-label-sm {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.icon-stat-primary { color: var(--primary); font-size: 1.2rem; }
.icon-stat-yellow { color: #f59e0b; font-size: 1.2rem; }
.icon-stat-blue { color: #0284c7; font-size: 1.2rem; }
.icon-stat-green { color: #10b981; font-size: 1.2rem; }

/* Categories Filter Bar */
.category-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.cat-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-filter-btn:hover,
.cat-filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-emerald);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tools Grid Staggered Entrance */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-lg);
}

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

.tool-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* CATEGORY SPECIFIC TOOL CARD COLOR SCHEMES */

/* Image Category */
.tool-card[data-category="image"] .tool-icon,
.tool-meta-icon.cat-image { background: #fce7f3; color: #db2777; }
body.dark-mode .tool-card[data-category="image"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-image { background: rgba(219, 39, 119, 0.2); color: #f472b6; }
.tool-card[data-category="image"]:hover { border-color: #db2777; }
.tool-card[data-category="image"]:hover .tool-icon { background: #db2777; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="image"] .tool-footer { color: #db2777; }

/* Math Category */
.tool-card[data-category="math"] .tool-icon,
.tool-meta-icon.cat-math { background: #ecfdf5; color: #059669; }
body.dark-mode .tool-card[data-category="math"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-math { background: rgba(5, 150, 105, 0.2); color: #34d399; }
.tool-card[data-category="math"]:hover { border-color: #059669; }
.tool-card[data-category="math"]:hover .tool-icon { background: #059669; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="math"] .tool-footer { color: #059669; }

/* Security Category */
.tool-card[data-category="security"] .tool-icon,
.tool-meta-icon.cat-security { background: #ffe4e6; color: #e11d48; }
body.dark-mode .tool-card[data-category="security"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-security { background: rgba(225, 29, 72, 0.2); color: #fb7185; }
.tool-card[data-category="security"]:hover { border-color: #e11d48; }
.tool-card[data-category="security"]:hover .tool-icon { background: #e11d48; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="security"] .tool-footer { color: #e11d48; }

/* Network Category */
.tool-card[data-category="network"] .tool-icon,
.tool-meta-icon.cat-network { background: #e0f2fe; color: #0284c7; }
body.dark-mode .tool-card[data-category="network"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-network { background: rgba(2, 132, 199, 0.2); color: #38bdf8; }
.tool-card[data-category="network"]:hover { border-color: #0284c7; }
.tool-card[data-category="network"]:hover .tool-icon { background: #0284c7; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="network"] .tool-footer { color: #0284c7; }

/* Data Category */
.tool-card[data-category="data"] .tool-icon,
.tool-meta-icon.cat-data { background: #fef3c7; color: #d97706; }
body.dark-mode .tool-card[data-category="data"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-data { background: rgba(217, 119, 6, 0.2); color: #fbbf24; }
.tool-card[data-category="data"]:hover { border-color: #d97706; }
.tool-card[data-category="data"]:hover .tool-icon { background: #d97706; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="data"] .tool-footer { color: #d97706; }

/* Text Category */
.tool-card[data-category="text"] .tool-icon,
.tool-meta-icon.cat-text { background: #ede9fe; color: #7c3aed; }
body.dark-mode .tool-card[data-category="text"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-text { background: rgba(124, 58, 237, 0.2); color: #a78bfa; }
.tool-card[data-category="text"]:hover { border-color: #7c3aed; }
.tool-card[data-category="text"]:hover .tool-icon { background: #7c3aed; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="text"] .tool-footer { color: #7c3aed; }

/* Encode Category */
.tool-card[data-category="encode"] .tool-icon,
.tool-meta-icon.cat-encode { background: #f3e8ff; color: #6d28d9; }
body.dark-mode .tool-card[data-category="encode"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-encode { background: rgba(109, 40, 217, 0.2); color: #c084fc; }
.tool-card[data-category="encode"]:hover { border-color: #6d28d9; }
.tool-card[data-category="encode"]:hover .tool-icon { background: #6d28d9; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="encode"] .tool-footer { color: #6d28d9; }

/* Conversion Category */
.tool-card[data-category="conversion"] .tool-icon,
.tool-meta-icon.cat-conversion { background: #e0e7ff; color: #4338ca; }
body.dark-mode .tool-card[data-category="conversion"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-conversion { background: rgba(67, 56, 202, 0.2); color: #818cf8; }
.tool-card[data-category="conversion"]:hover { border-color: #4338ca; }
.tool-card[data-category="conversion"]:hover .tool-icon { background: #4338ca; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="conversion"] .tool-footer { color: #4338ca; }

/* Code Category */
.tool-card[data-category="code"] .tool-icon,
.tool-meta-icon.cat-code { background: #cffafe; color: #0891b2; }
body.dark-mode .tool-card[data-category="code"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-code { background: rgba(8, 145, 178, 0.2); color: #22d3ee; }
.tool-card[data-category="code"]:hover { border-color: #0891b2; }
.tool-card[data-category="code"]:hover .tool-icon { background: #0891b2; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="code"] .tool-footer { color: #0891b2; }

/* Time Category */
.tool-card[data-category="time"] .tool-icon,
.tool-meta-icon.cat-time { background: #ccfbf1; color: #0d9488; }
body.dark-mode .tool-card[data-category="time"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-time { background: rgba(13, 148, 136, 0.2); color: #2dd4bf; }
.tool-card[data-category="time"]:hover { border-color: #0d9488; }
.tool-card[data-category="time"]:hover .tool-icon { background: #0d9488; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="time"] .tool-footer { color: #0d9488; }

/* SEO Category */
.tool-card[data-category="seo"] .tool-icon,
.tool-meta-icon.cat-seo { background: #dbeafe; color: #2563eb; }
body.dark-mode .tool-card[data-category="seo"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-seo { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }
.tool-card[data-category="seo"]:hover { border-color: #2563eb; }
.tool-card[data-category="seo"]:hover .tool-icon { background: #2563eb; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="seo"] .tool-footer { color: #2563eb; }

/* PDF Category */
.tool-card[data-category="pdf"] .tool-icon,
.tool-meta-icon.cat-pdf { background: #fee2e2; color: #dc2626; }
body.dark-mode .tool-card[data-category="pdf"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-pdf { background: rgba(220, 38, 38, 0.2); color: #f87171; }
.tool-card[data-category="pdf"]:hover { border-color: #dc2626; }
.tool-card[data-category="pdf"]:hover .tool-icon { background: #dc2626; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="pdf"] .tool-footer { color: #dc2626; }

/* AI Category */
.tool-card[data-category="ai"] .tool-icon,
.tool-meta-icon.cat-ai { background: #fae8ff; color: #c026d3; }
body.dark-mode .tool-card[data-category="ai"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-ai { background: rgba(192, 38, 211, 0.2); color: #e879f9; }
.tool-card[data-category="ai"]:hover { border-color: #c026d3; }
.tool-card[data-category="ai"]:hover .tool-icon { background: #c026d3; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="ai"] .tool-footer { color: #c026d3; }

/* Calculators Category */
.tool-card[data-category="calculators"] .tool-icon,
.tool-meta-icon.cat-calculators { background: #ecfdf5; color: #059669; }
body.dark-mode .tool-card[data-category="calculators"] .tool-icon,
body.dark-mode .tool-meta-icon.cat-calculators { background: rgba(5, 150, 105, 0.2); color: #34d399; }
.tool-card[data-category="calculators"]:hover { border-color: #059669; }
.tool-card[data-category="calculators"]:hover .tool-icon { background: #059669; color: #ffffff; transform: scale(1.15) rotate(-4deg); }
.tool-card[data-category="calculators"] .tool-footer { color: #059669; }

/* Category Filter Bar Icon Custom Styling */
.cat-filter-btn[data-cat="calculators"] i { color: #059669; }
.cat-filter-btn[data-cat="pdf"] i { color: #dc2626; }
.cat-filter-btn[data-cat="image"] i { color: #db2777; }
.item-calculators .cat-icon { color: #059669; }
.item-calculators:hover { background: #ecfdf5; color: #047857; }
.cat-filter-btn[data-cat="math"] i { color: #059669; }
.cat-filter-btn[data-cat="security"] i { color: #e11d48; }
.cat-filter-btn[data-cat="network"] i { color: #0284c7; }
.cat-filter-btn[data-cat="data"] i { color: #d97706; }
.cat-filter-btn[data-cat="text"] i { color: #7c3aed; }
.cat-filter-btn[data-cat="encode"] i { color: #6d28d9; }
.cat-filter-btn[data-cat="conversion"] i { color: #4338ca; }
.cat-filter-btn[data-cat="code"] i { color: #0891b2; }
.cat-filter-btn[data-cat="time"] i { color: #0d9488; }
.cat-filter-btn[data-cat="seo"] i { color: #2563eb; }
.cat-filter-btn[data-cat="ai"] i { color: #c026d3; }
.cat-filter-btn.active i { color: white !important; }


.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-hot { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; }
.badge-new { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.badge-popular { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

.tool-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.tool-footer i {
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-footer i {
  transform: translateX(5px);
}

/* Single Tool Page Layout */
.tool-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

@media (max-width: 992px) {
  .tool-page-layout { grid-template-columns: 1fr; }
  .dropdown-menu { width: 320px; grid-template-columns: 1fr; right: 0; }
  .hero-line1, .hero-line3 { font-size: 3.2rem; }
  .hero-line2 { font-size: 4.2rem; }
}

.tool-main-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.tool-meta-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.tool-meta-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.tool-meta-title {
  font-size: 1.75rem;
  font-weight: 800;
}

.tool-meta-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Controls & UI Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-dark);
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

textarea.form-control {
  font-family: 'JetBrains Mono', monospace;
  min-height: 140px;
  resize: vertical;
}

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-emerald);
}

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

.btn-secondary {
  background: #e2e8f0;
  color: var(--text-dark);
}

body.dark-mode .btn-secondary {
  background: #334155;
  color: #f8fafc;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-border);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* Result Box */
.result-box {
  margin-top: 24px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Advertisement Spot Containers */
.ad-container {
  margin: 20px 0;
  text-align: center;
}

.ad-demo-banner {
  background: var(--primary-light);
  border: 2px dashed var(--primary-border);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.ad-btn {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   MASTER ADMIN CONTROL PANEL STYLES
   ========================================================================== */

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.admin-login-card {
  max-width: 440px;
  margin: 60px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.admin-login-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.admin-login-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  color: white;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.3);
}

.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px 30px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .admin-header-bar { flex-direction: column; align-items: flex-start; }
}

.admin-tabs-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.admin-tab-btn:hover,
.admin-tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-emerald);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

.admin-stat-box:hover {
  transform: translateY(-4px);
}

.admin-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.admin-stat-val {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.1;
  font-family: 'Carter One', sans-serif;
}

.admin-stat-lbl {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Switch Toggle Styling */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

body.dark-mode .switch-toggle .slider {
  background-color: #475569;
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch-toggle input:checked + .slider {
  background-color: var(--primary);
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(24px);
}

.admin-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.admin-tool-row:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}


.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .header-search-box { display: none; }
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0f172a;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   ULTRA PREMIUM ABOUT US PAGE STYLES
   ========================================================================== */

/* Hero Banner */
.about-hero-section {
  position: relative;
  text-align: center;
  padding: 80px 24px 70px;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, rgba(2, 132, 199, 0.08) 50%, transparent 80%), var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  margin-bottom: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.about-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.about-hero-title {
  font-family: 'Carter One', 'Plus Jakarta Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .about-hero-title { font-size: 2.2rem; }
}

.about-hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 500;
}

/* Stats Counter Row */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.about-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 26px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.about-stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 14px;
}

.stat-val {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 6px;
  font-family: 'Carter One', sans-serif;
}

.stat-lbl {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Feature Pillars Grid */
.about-pillars-section {
  margin-bottom: 60px;
}

.section-tagline {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-main-heading {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.about-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px 26px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.about-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--primary), var(--sky-blue));
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.about-pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.about-pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.icon-box-emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }
.icon-box-sky { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.icon-box-purple { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.icon-box-amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }

.pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Two Column Mission & Tech Section */
.about-mission-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .about-mission-section { grid-template-columns: 1fr; }
}

.about-mission-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
}

.mission-heading {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
}

.mission-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.mission-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mission-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.mission-bullets i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 2px;
}

/* Categories Showcase Cards V2 */
.about-cats-section {
  margin-bottom: 60px;
}

.cats-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.about-cat-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.about-cat-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.cat-v2-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cat-v2-details {
  flex: 1;
}

.cat-v2-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cat-v2-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cat-v2-arrow {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.about-cat-card-v2:hover .cat-v2-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

/* CTA Banner */
.about-cta-card {
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  color: white;
  border-radius: 28px;
  padding: 50px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-emerald);
  margin-bottom: 40px;
}

.about-cta-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.cta-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 16px;
  font-family: 'Carter One', sans-serif;
}

.cta-sub {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.cta-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #059669;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: 14px;
  transition: all 0.25s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn-white:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  background: #f8fafc;
}

/* ==========================================================================
   STANDALONE ADMIN PANEL SIDEBAR & LAYOUT
   ========================================================================== */
body.admin-standalone-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-body);
  color: var(--text-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
}

.admin-layout-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.admin-sidebar-nav {
  width: 320px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.admin-sidebar-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #047857);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-emerald);
}

.admin-sidebar-brand-text h2 {
  font-family: 'Carter One', sans-serif;
  font-size: 1.35rem;
  margin: 0;
  color: var(--text-dark);
  line-height: 1.1;
}

.admin-sidebar-brand-text span {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.admin-sidebar-menu-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-left: 10px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  text-align: left;
}

.admin-nav-item i {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
  width: 24px;
  text-align: center;
}

.admin-nav-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateX(4px);
}

.admin-nav-item:hover i {
  color: var(--primary);
}

.admin-nav-item.active {
  background: var(--primary);
  color: white !important;
  border-color: var(--primary);
  box-shadow: var(--shadow-emerald);
}

.admin-nav-item.active i {
  color: white !important;
}

.admin-nav-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-nav-item:not(.active) .admin-nav-badge {
  background: var(--primary-light);
  color: var(--primary);
}

.admin-sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.admin-footer-btn.btn-view-site {
  background: var(--bg-hover);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.admin-footer-btn.btn-view-site:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.admin-footer-btn.btn-admin-logout {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.admin-footer-btn.btn-admin-logout:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.admin-main-viewport {
  flex-grow: 1;
  padding: 36px 40px;
  overflow-y: auto;
  max-width: calc(100vw - 320px);
}

.admin-login-standalone-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 50%),
              radial-gradient(circle at bottom left, rgba(2, 132, 199, 0.08), transparent 50%);
}

@media (max-width: 992px) {
  .admin-layout-wrapper {
    flex-direction: column;
  }
  .admin-sidebar-nav {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
  }
  .admin-main-viewport {
    max-width: 100%;
    padding: 20px;
  }
}

/* ==========================================================================
   ENHANCED MASTER ADMIN PANEL STYLING
   ========================================================================== */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: all 0.25s ease;
}

.admin-card:hover {
  box-shadow: var(--shadow-md);
}

.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.admin-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.admin-stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.admin-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.admin-stat-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.1;
}

.admin-stat-lbl {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Switch Toggle Styling */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: 0.3s;
  border-radius: 34px;
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-toggle input:checked + .slider {
  background-color: var(--primary);
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(22px);
}

/* Admin Tool Row */
.admin-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.2s ease;
  gap: 12px;
}

.admin-tool-row:hover {
  background: var(--bg-card);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

/* Admin Ad Placement Container */
.admin-ad-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.admin-ad-card:hover {
  border-color: var(--primary-border);
}

.ad-preview-box {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 14px;
  padding: 16px;
  margin-top: 12px;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-badge-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
}

.badge-active { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-disabled { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; }

/* Admin Login Card */
.admin-login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

/* ==========================================================================
   ULTRA RESPONSIVE MOBILE NAVIGATION & DRAWER STYLES
   ========================================================================== */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Mobile Overlay */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Slide-Over Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-card);
  z-index: 999;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fecaca;
}

.mobile-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-search-box {
  position: relative;
  width: 100%;
}

.mobile-menu-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.mobile-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-cat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.mobile-cat-card span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-cat-card:hover {
  transform: translateY(-2px);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.mobile-footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  border-radius: 12px;
  font-size: 0.9rem;
}

/* Screen Breakpoints (Mobile & Tablet Optimization) */
@media (max-width: 768px) {
  .desktop-nav,
  .desktop-search-box {
    display: none !important;
  }

  .mobile-menu-toggle-btn {
    display: flex;
  }

  .header-container {
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  /* Hero Section Typography for Mobile */
  .hero-freetools {
    padding: 40px 16px 36px;
    margin-bottom: 24px;
  }

  .hero-line1 {
    font-size: 2.5rem;
  }

  .hero-line2 {
    font-size: 2.8rem;
    margin: 2px 0;
  }

  .hero-line3 {
    font-size: 2.2rem;
  }

  .hero-subtext {
    font-size: 0.98rem;
    margin-bottom: 24px;
    padding: 0 8px;
  }

  .hero-action-btns {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn-hero-primary,
  .btn-hero-glass {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
  }

  /* Category Filter Bar Horizontal Touch Scroll on Mobile */
  .category-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 12px;
    margin-bottom: 24px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .cat-filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}





/* ==========================================================================
   ADMIN PANEL - COMPLETE MISSING STYLES
   ========================================================================== */

/* Admin Tool Row */
.admin-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.2s ease;
  gap: 12px;
}

.admin-tool-row:hover {
  border-color: var(--primary-border);
  background: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

/* Admin Badge Pills */
.admin-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-active {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-disabled {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Admin Ad Card */
.admin-ad-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.admin-ad-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

/* Admin Login Card */
.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 40px 36px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.admin-login-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 70%);
  pointer-events: none;
}

/* Admin Tab Content */
.admin-tab-content {
  animation: pageSmoothEntrance 0.3s ease forwards;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

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

.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body:not(.dark-mode) .theme-toggle-btn .icon-sun {
  opacity: 1;
  transform: scale(1);
}
body:not(.dark-mode) .theme-toggle-btn .icon-moon {
  opacity: 0;
  transform: scale(0.5);
}
body.dark-mode .theme-toggle-btn .icon-sun {
  opacity: 0;
  transform: scale(0.5);
}
body.dark-mode .theme-toggle-btn .icon-moon {
  opacity: 1;
  transform: scale(1);
}

/* Admin Tabs Old Style (for backward compat) */
.admin-tabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover,
.admin-tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-emerald);
}

/* Admin Usage Count Badge */
.admin-usage-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Pulse dot for dashboard */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Admin Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.admin-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.admin-stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.admin-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.admin-stat-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.1;
}

.admin-stat-lbl {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Switch Toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border-color);
  transition: 0.3s;
  border-radius: 34px;
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-toggle input:checked + .slider {
  background-color: var(--primary);
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(22px);
}

/* Admin Card */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: all 0.25s ease;
}

.admin-card:hover {
  box-shadow: var(--shadow-md);
}

/* Admin Header Bar */
.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-main-viewport {
    padding: 16px;
  }
  .admin-card {
    padding: 18px;
  }
  .admin-tool-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-ad-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .admin-login-card {
    padding: 28px 20px;
  }
}


/* ==========================================================================
   ADBLOCK DETECTOR OVERLAY
   ========================================================================== */

#ftp-adblock-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#ftp-adblock-overlay.ftp-adb-visible {
  opacity: 1;
  pointer-events: all;
}

.ftp-adb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ftp-adb-modal {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 44px 40px 36px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 32px 80px -10px rgba(0, 0, 0, 0.35);
  text-align: center;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#ftp-adblock-overlay.ftp-adb-visible .ftp-adb-modal {
  transform: translateY(0) scale(1);
}

/* Icon */
.ftp-adb-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.ftp-adb-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 12px 30px -6px rgba(239, 68, 68, 0.45);
  animation: ftp-adb-pulse 2s ease-in-out infinite;
}

@keyframes ftp-adb-pulse {
  0%, 100% { box-shadow: 0 12px 30px -6px rgba(239, 68, 68, 0.45); }
  50%       { box-shadow: 0 16px 40px -4px rgba(239, 68, 68, 0.65); }
}

/* Title */
.ftp-adb-title {
  font-family: 'Carter One', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.2;
}

/* Description */
.ftp-adb-desc {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.ftp-adb-desc strong {
  color: var(--primary);
}

/* Steps */
.ftp-adb-steps {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.ftp-adb-step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
}

.ftp-adb-step strong {
  color: var(--primary);
}

.ftp-adb-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* Action Buttons */
.ftp-adb-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.ftp-adb-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-emerald);
}

.ftp-adb-btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(16, 185, 129, 0.45);
}

.ftp-adb-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.25s ease;
}

.ftp-adb-btn-secondary:hover {
  background: var(--bg-main);
  color: var(--text-dark);
  border-color: var(--text-muted);
}

/* Footer Note */
.ftp-adb-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ftp-adb-note i {
  color: var(--primary);
}

.ftp-adb-note strong {
  color: var(--text-dark);
}

/* Dark mode adjustments */
body.dark-mode .ftp-adb-backdrop {
  background: rgba(0, 0, 0, 0.82);
}

/* Mobile responsive */
@media (max-width: 540px) {
  .ftp-adb-modal {
    padding: 32px 22px 28px;
    border-radius: 22px;
  }
  .ftp-adb-title {
    font-size: 1.45rem;
  }
  .ftp-adb-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }
}


/* ==========================================================================
   QR CODE GENERATOR TOOL STYLES
   ========================================================================== */

.qr-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s ease;
}

.qr-tab-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.qr-tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-emerald);
}

.qr-tab-panel {
  animation: pageSmoothEntrance 0.25s ease forwards;
}

#qr-canvas-wrap {
  box-shadow: var(--shadow-md);
}

#qr-result-box {
  animation: pageSmoothEntrance 0.3s ease forwards;
}
