/* ToolsHub Design System & Modern Web Utilities UI */
:root {
  --primary: #00b87c;
  --primary-hover: #009e6a;
  --primary-light: rgba(0, 184, 124, 0.12);
  --primary-gradient: linear-gradient(135deg, #00c282 0%, #009e6a 100%);
  --secondary: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;

  /* ToolsHub Pastel Icon Palette (Matching Reference Image) */
  --th-emerald: #00b87c;
  --th-emerald-hover: #009e6a;
  --th-emerald-light: #ecfdf5;
  --th-emerald-border: #a7f3d0;
  --th-rose: #f43f5e;
  --th-rose-light: #fff1f2;
  --th-rose-border: #fecdd3;
  --th-blue: #2563eb;
  --th-blue-light: #eff6ff;
  --th-blue-border: #bfdbfe;
  --th-purple: #8b5cf6;
  --th-purple-light: #f5f3ff;
  --th-purple-border: #ddd6fe;
  --th-amber: #f59e0b;
  --th-amber-light: #fffbeb;
  --th-amber-border: #fde68a;
  --th-coral: #ef4444;
  --th-coral-light: #fef2f2;
  --th-coral-border: #fecaca;
  --th-teal: #14b8a6;
  --th-teal-light: #f0fdfa;
  --th-teal-border: #99f6e4;
  --th-slate: #64748b;
  --th-slate-light: #f8fafc;
  --th-slate-border: #e2e8f0;

  --body-bg: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --card-border: #eef2f6;
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --card-shadow-hover: 0 16px 36px -8px rgba(0, 184, 124, 0.18), 0 4px 14px rgba(15, 23, 42, 0.04);
  --navbar-bg: rgba(255, 255, 255, 0.96);
  --navbar-border: #eef2f6;
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-color: #0f172a;

  /* Standard Transitions & Elevations */
  --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

body.theme-dark, html.theme-dark {
  --primary: #00c282;
  --primary-hover: #10b981;
  --primary-light: rgba(0, 194, 130, 0.2);
  --primary-gradient: linear-gradient(135deg, #065f46 0%, #047857 100%);
  --body-bg: #09121d;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --card-bg: #0f1a2e;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 16px 36px rgba(0, 194, 130, 0.22);
  --navbar-bg: rgba(15, 23, 42, 0.96);
  --navbar-border: rgba(255, 255, 255, 0.08);
  --input-bg: #0b1325;
  --input-border: rgba(255, 255, 255, 0.14);
  --input-color: #f8fafc;
}

/* Global Reset */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

main.app-main {
  flex: 1 0 auto;
}

/* Announcements Bar */
.teamcsb-announcement-bar {
  background: #1e293b;
  color: #ffffff;
  padding: 10px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.teamcsb-announcement-btn {
  background: #2563eb;
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.teamcsb-announcement-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Navbar */
.navbar-teamcsb {
  background: var(--navbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--navbar-border);
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 12px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main) !important;
  text-decoration: none;
  letter-spacing: -0.4px;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
}

.nav-link-custom {
  color: var(--text-main) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Search Box Container */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: 20px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-color);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.search-icon-addon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  max-height: 360px;
  overflow-y: auto;
  z-index: 1050;
  display: none;
}

.search-suggestion-item {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--card-border);
  transition: background 0.15s ease;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

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

/* Hero Section */
.hero-banner {
  padding: 40px 0 20px;
  text-align: center;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
  color: var(--text-main);
}

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

/* Cards & Categories */
.cat-banner {
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
}

.cat-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ToolsHub Sleek Tool Card (Matching Reference Image) */
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--card-shadow);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: var(--th-emerald-border);
  box-shadow: 0 16px 32px -8px rgba(0, 184, 124, 0.18), 0 4px 12px rgba(15, 23, 42, 0.04);
  text-decoration: none;
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--th-emerald-light);
  color: var(--th-emerald);
  border: 1px solid var(--th-emerald-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.18rem;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-card:hover .tool-card-icon {
  transform: scale(1.15) rotate(-6deg);
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 184, 124, 0.35);
}

/* Pastel Icon Accents for Tools */
.tool-card-icon.icon-rose { background: #fff1f2; color: #e11d48; border-color: #fecdd3; }
.tool-card-icon.icon-blue { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.tool-card-icon.icon-purple { background: #f5f3ff; color: #7c3aed; border-color: #ddd6fe; }
.tool-card-icon.icon-amber { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.tool-card-icon.icon-coral { background: #fef2f2; color: #ef4444; border-color: #fecaca; }
.tool-card-icon.icon-teal { background: #f0fdfa; color: #0d9488; border-color: #99f6e4; }

.tool-card-info {
  flex-grow: 1;
  overflow: hidden;
}

.tool-card-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.tool-card:hover .tool-card-title {
  color: var(--primary);
}

.tool-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card-arrow {
  color: var(--gray-400);
  font-size: 0.85rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.tool-card:hover .tool-card-arrow {
  color: var(--primary);
  transform: translateX(5px);
}
}

/* Tool Interface Studio */
.tool-studio-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.tool-studio-header {
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 18px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.tool-studio-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text-main);
}

.tool-studio-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* Form Controls */
.form-label-custom {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 6px;
  display: block;
}

.form-control-custom, .form-select-custom {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--input-color);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-control-custom:focus, .form-select-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px var(--primary-light);
  outline: none;
}

textarea.form-control-custom {
  min-height: 140px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Buttons */
.btn-primary-custom {
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 184, 124, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 184, 124, 0.45);
  color: #ffffff;
}

.btn-primary-custom:active {
  transform: scale(0.96);
}

.btn-secondary-custom {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-secondary-custom:hover {
  background: var(--th-emerald-light);
  border-color: var(--th-emerald-border);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary-custom:active {
  transform: scale(0.96);
}

.btn-secondary-custom:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--text-main);
}

body.theme-dark .btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Result Box */
.result-box-container {
  margin-top: 24px;
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
}

.result-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.result-box-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 0;
}

.result-display-area {
  background: var(--gray-50);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 16px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--text-main);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 400px;
}

body.theme-dark .result-display-area {
  background: #090e1a;
}

/* Quick Tool Action Toolbar */
.tool-action-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Star Favorite Button */
.btn-fav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--gray-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fav.active {
  color: #eab308;
  border-color: #fef08a;
  background: rgba(250, 204, 21, 0.15);
}

.btn-fav:hover {
  transform: scale(1.08);
}

/* Footer */
.app-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  padding: 40px 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 50px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ==========================================================================
   Modern Admin Panel & User Dashboard Design System (Enterprise Grade)
   ========================================================================== */

/* Admin Sidebar Layout */
.admin-sidebar {
  width: 270px;
  background: #090e1a;
  color: #f1f5f9;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1040;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-sidebar-nav {
  padding: 12px 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.admin-nav-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 16px 20px 6px;
  user-select: none;
}

.admin-nav-link {
  color: #94a3b8;
  padding: 10px 18px;
  margin: 2px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-base);
  position: relative;
}

.admin-nav-link i.nav-icon {
  width: 22px;
  font-size: 0.95rem;
  text-align: center;
  color: #64748b;
  transition: var(--transition-base);
}

.admin-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
}

.admin-nav-link:hover i.nav-icon {
  color: #818cf8;
}

.admin-nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.25) 0%, rgba(79, 70, 229, 0.08) 100%);
  font-weight: 600;
  border-left: 3px solid #6366f1;
}

.admin-nav-link.active i.nav-icon {
  color: #818cf8;
}

.admin-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
}

/* Admin Main Content Container */
.admin-content {
  margin-left: 270px;
  padding: 24px 32px 48px;
  min-height: 100vh;
  background: var(--body-bg);
  transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Admin Top Bar */
.admin-topbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navbar-border);
  padding: 14px 0;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  box-shadow: var(--card-shadow);
}

/* Mobile Sidebar Drawer & Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 992px) {
  .sidebar-overlay,
  .sidebar-overlay.active {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}

@media (max-width: 991px) {
  .admin-sidebar,
  .admin-sidebar-th {
    transform: translateX(-100%);
    z-index: 1050 !important;
    box-shadow: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  }
  .admin-sidebar.show-mobile,
  .admin-sidebar-th.show-mobile {
    transform: translateX(0);
    box-shadow: 15px 0 35px rgba(15, 23, 42, 0.22);
  }
  .sidebar-overlay.active {
    display: block;
  }
  .admin-content,
  .admin-main-th {
    margin-left: 0;
    width: 100%;
    padding: 16px 16px 36px;
  }
}

/* Pulse Live Indicator */
.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s 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 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Stat Cards & KPI Dashboards */
.stat-card-kpi {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   ToolsHub Smooth Animation Suite
   ========================================================================== */
@keyframes thFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes thFloatSubtle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(1deg); }
}

@keyframes thFloatBlob {
  0%, 100% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(12px, -15px) scale(1.05); }
  66% { transform: translate(-10px, 10px) scale(0.96); }
}

@keyframes thPulseGlow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(0, 184, 124, 0.35);
  }
  50% {
    box-shadow: 0 8px 24px rgba(0, 184, 124, 0.55);
  }
}

@keyframes thRadarPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 184, 124, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 184, 124, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 184, 124, 0);
  }
}

@keyframes thShimmerSweep {
  0% { transform: translateX(-150%) skewX(-20deg); }
  100% { transform: translateX(250%) skewX(-20deg); }
}

@keyframes thSlideUpFade {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes thProgressStripe {
  from { background-position: 40px 0; }
  to { background-position: 0 0; }
}

/* Stagger Animation Utilities */
.th-fade-in-up {
  animation: thSlideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.th-delay-1 { animation-delay: 0.06s; }
.th-delay-2 { animation-delay: 0.12s; }
.th-delay-3 { animation-delay: 0.18s; }
.th-delay-4 { animation-delay: 0.24s; }
.th-delay-5 { animation-delay: 0.30s; }

/* Dashboard Sub-Navigation Tabs */
.th-dash-nav-bar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--card-shadow);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  margin-bottom: 24px;
}
.th-dash-nav-bar::-webkit-scrollbar { display: none; }

.th-dash-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.th-dash-nav-link:hover {
  color: var(--primary);
  background: var(--th-emerald-light);
  transform: translateY(-1px);
}

.th-dash-nav-link.active {
  background: var(--primary-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 184, 124, 0.35);
}

.th-dash-nav-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
}

/* ToolsHub Pastel Stat Cards & KPI Dashboards (Matching Image Bottom 4 Stats) */
.stat-card-kpi {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: var(--card-shadow);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.stat-card-kpi:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 36px -8px rgba(0, 184, 124, 0.18), 0 6px 14px rgba(15, 23, 42, 0.04);
  border-color: var(--th-emerald-border);
}

.stat-card-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.stat-card-sky::before { background: linear-gradient(90deg, #38bdf8, #2563eb); }
.stat-card-emerald::before { background: linear-gradient(90deg, #34d399, #00b87c); }
.stat-card-purple::before { background: linear-gradient(90deg, #c084fc, #7c3aed); }
.stat-card-rose::before { background: linear-gradient(90deg, #fb7185, #e11d48); }
.stat-card-amber::before { background: linear-gradient(90deg, #fbbf24, #d97706); }
.stat-card-indigo::before { background: linear-gradient(90deg, #818cf8, #4f46e5); }

.stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card-kpi:hover .stat-icon-wrapper {
  transform: scale(1.15) rotate(-6deg);
}

/* ToolsHub Pastel Icon Variants (Matching Image) */
.stat-icon-sky { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.stat-icon-emerald { background: #ecfdf5; color: #00b87c; border: 1px solid #a7f3d0; }
.stat-icon-purple { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.stat-icon-rose { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.stat-icon-amber { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.stat-icon-indigo { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }

/* Modern ToolsHub User Hero Header Banner */
.user-hero-card {
  background: linear-gradient(135deg, #f0fdf9 0%, #ecfdf5 45%, #f6fdfa 100%);
  border: 1px solid #d1fae5;
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  color: #0f172a;
  box-shadow: 0 12px 36px rgba(0, 184, 124, 0.08), 0 4px 14px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

body.theme-dark .user-hero-card {
  background: linear-gradient(135deg, #062d22 0%, #0d2238 60%, #081711 100%);
  border-color: rgba(0, 184, 124, 0.25);
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* Ambient Floating Glowing Blobs in Hero */
.th-hero-blob-1 {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 124, 0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: thFloatBlob 12s ease-in-out infinite;
}

.th-hero-blob-2 {
  position: absolute;
  bottom: -60px;
  left: 20%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, transparent 70%);
  pointer-events: none;
  animation: thFloatBlob 10s ease-in-out infinite reverse;
}

.user-avatar-circle {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, #00c282 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 184, 124, 0.4);
  border: 3px solid #ffffff;
  position: relative;
  animation: thFloat 5s ease-in-out infinite;
}

body.theme-dark .user-avatar-circle {
  border-color: rgba(255, 255, 255, 0.2);
}

.th-avatar-online {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: #10b981;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  animation: thRadarPulse 2s infinite;
}

/* User Badge Pills */
.th-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.plan-pill-pro {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 5px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: thFloatSubtle 4s ease-in-out infinite;
}

.plan-pill-free {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.theme-dark .plan-pill-free {
  background: rgba(0, 184, 124, 0.15);
  color: #34d399;
  border-color: rgba(0, 184, 124, 0.3);
}

/* ToolsHub Hero Action Buttons */
.btn-th-hero-primary {
  background: linear-gradient(135deg, #00c282 0%, #009e6a 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 20px;
  border-radius: 9999px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 184, 124, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-th-hero-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-150%) skewX(-20deg);
  transition: transform 0.6s ease;
}

.btn-th-hero-primary:hover::after {
  transform: translateX(150%) skewX(-20deg);
}

.btn-th-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 184, 124, 0.45);
}

.btn-th-hero-primary:active {
  transform: scale(0.96);
}

.btn-th-hero-secondary {
  background: #ffffff;
  color: #1e293b !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  text-decoration: none;
}

body.theme-dark .btn-th-hero-secondary {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9 !important;
}

.btn-th-hero-secondary:hover {
  background: #f8fafc;
  border-color: #00b87c;
  color: #00b87c !important;
  transform: translateY(-2px);
}

.btn-th-hero-secondary:active {
  transform: scale(0.96);
}

/* ToolsHub Bottom CTA Banner Style (Your All-in-One Online Tools Platform) */
.membership-spotlight-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #e0f2fe 100%);
  border: 1px solid #a7f3d0;
  border-radius: 22px;
  padding: 24px 28px;
  box-shadow: 0 8px 24px rgba(0, 184, 124, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

body.theme-dark .membership-spotlight-card {
  background: linear-gradient(135deg, #06372b 0%, #092a3b 60%, #071f19 100%);
  border-color: rgba(0, 184, 124, 0.3);
}

.membership-spotlight-card:hover {
  border-color: #00b87c;
  box-shadow: 0 14px 32px rgba(0, 184, 124, 0.18);
  transform: translateY(-3px);
}

.th-progress-bar-wrap {
  width: 100%;
  height: 7px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 8px;
}

.th-progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #00c282, #059669);
  background-size: 20px 20px;
  animation: thProgressStripe 2s linear infinite;
}
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Admin Quick Control Toolbar */
.admin-toolbar-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
  border: 1px solid transparent;
}

.admin-action-btn:hover {
  transform: translateY(-2px);
}

.admin-action-btn-primary {
  background: var(--primary-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.admin-action-btn-outline {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text-main) !important;
}

.admin-action-btn-outline:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

/* Modern Enterprise Table */
.table-enterprise {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.table-enterprise thead th {
  background: var(--gray-50);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}

body.theme-dark .table-enterprise thead th {
  background: rgba(255, 255, 255, 0.03);
}

.table-enterprise tbody tr {
  transition: background-color 0.15s ease;
}

.table-enterprise tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.03);
}

.table-enterprise tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.88rem;
  vertical-align: middle;
}

/* Quick Toggle Switch Pills */
.switch-pill-btn {
  border: none;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.switch-pill-btn:hover {
  transform: scale(1.05);
}

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

.switch-pill-inactive {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.switch-pill-pro {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.switch-pill-free {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

/* Utilities, Pricing, and Badges */
.max-w-700 { max-width: 700px; }
.max-w-500 { max-width: 500px; }
.cursor-pointer { cursor: pointer; }
.shadow-xs { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.transition-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.transition-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.bg-purple-subtle {
  background-color: #f3e8ff !important;
  color: #7e22ce !important;
}
.pro-badge {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}
@media (max-width: 576px) {
  .tool-card {
    padding: 10px;
  }
  .tool-card-title {
    font-size: 0.85rem;
  }
  .teamcsb-announcement-bar {
    font-size: 0.8rem;
    flex-direction: column;
    gap: 6px;
  }
}

/* ========================================================
   TOOLSHUB MODERN DESIGN SYSTEM (USER & ADMIN UI)
   ======================================================== */

:root {
  --th-emerald: #059669;
  --th-emerald-hover: #047857;
  --th-emerald-light: #ecfdf5;
  --th-emerald-border: #a7f3d0;
  --th-primary: #10b981;
  --th-dark: #0f172a;
  --th-slate: #1e293b;
  --th-navy-sidebar: #0b132b;
  --th-navy-darker: #070d1e;
  --th-blue-action: #2563eb;
  --th-purple-action: #8b5cf6;
  --th-orange-action: #f97316;
  --th-card-border: #e2e8f0;
}

/* --- ToolsHub User Header & Navbar --- */
.navbar-toolshub {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #eef2f6;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: all 0.25s ease;
}

body.theme-dark .navbar-toolshub {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.toolshub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.toolshub-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.toolshub-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

body.theme-dark .toolshub-brand-title {
  color: #ffffff;
}

.toolshub-brand-sub {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  display: block;
}

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

.th-nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #475569;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.th-nav-link:hover,
.th-nav-link.active {
  color: var(--th-emerald);
}

.th-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--th-emerald);
  border-radius: 4px;
}

.btn-th-submit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 9999px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn-th-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.4);
}

/* --- Hero Section (ToolsHub Image 1) --- */
.th-hero-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 45%, #f0fdfa 100%);
  padding: 60px 0 70px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e6f4ea;
}

body.theme-dark .th-hero-section {
  background: linear-gradient(135deg, #092e20 0%, #0f172a 70%);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.th-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid #d1fae5;
  color: #047857;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

body.theme-dark .th-hero-badge {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.th-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 18px;
}

body.theme-dark .th-hero-title {
  color: #f8fafc;
}

.th-hero-title .text-emerald {
  color: #059669;
}

.th-hero-sub {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 580px;
}

body.theme-dark .th-hero-sub {
  color: #94a3b8;
}

.th-hero-search-box {
  background: #ffffff;
  border-radius: 9999px;
  padding: 6px 8px 6px 20px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  max-width: 560px;
  margin-bottom: 20px;
  transition: all 0.25s ease;
}

body.theme-dark .th-hero-search-box {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.th-hero-search-box:focus-within {
  border-color: #10b981;
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.25);
}

.th-hero-search-input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
  padding: 8px 0;
}

body.theme-dark .th-hero-search-input {
  color: #f8fafc;
}

.th-hero-search-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.th-hero-search-btn:hover {
  transform: scale(1.06);
}

.th-hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.th-tag-pill {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

body.theme-dark .th-tag-pill {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.th-tag-pill:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

/* Floating Laptop Visual */
.th-laptop-wrapper {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.th-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  transition: transform 0.3s ease;
}

body.theme-dark .th-floating-card {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.th-floating-card:hover {
  transform: translateY(-4px);
}

.th-floating-badge-1 { top: -10px; left: 10px; }
.th-floating-badge-2 { top: 0px; right: 0px; }
.th-floating-badge-3 { bottom: 30px; left: -20px; }
.th-floating-badge-4 { bottom: -10px; right: 20px; }

/* --- 8 Top Categories Grid (Row from Image 1) --- */
.th-cat-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}

.th-cat-tile {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

body.theme-dark .th-cat-tile {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.06);
}

.th-cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.12);
  border-color: #a7f3d0;
}

.th-cat-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.th-cat-tile-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

body.theme-dark .th-cat-tile-title {
  color: #f8fafc;
}

.th-cat-tile-count {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Featured Tools (Cards from Image 1) --- */
.th-tool-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  height: 100%;
}

body.theme-dark .th-tool-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.06);
}

.th-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.12);
  border-color: #a7f3d0;
}

.th-tool-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.th-tool-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 3px;
}

body.theme-dark .th-tool-title {
  color: #f8fafc;
}

.th-tool-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.th-tool-chevron {
  color: #cbd5e1;
  font-size: 0.85rem;
  margin-left: auto;
  transition: transform 0.2s ease, color 0.2s ease;
}

.th-tool-card:hover .th-tool-chevron {
  transform: translateX(3px);
  color: #059669;
}

/* --- Bottom CTA Banner (Image 1) --- */
.th-cta-banner {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 50%, #ccfbf1 100%);
  border-radius: 24px;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15);
}

body.theme-dark .th-cta-banner {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #0f172a 100%);
}

.btn-th-cta {
  background: #059669;
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-th-cta:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.45);
}

/* --- 4 Stats Counter Row (Image 1) --- */
.th-stat-box {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

body.theme-dark .th-stat-box {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.06);
}

.th-stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.th-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

body.theme-dark .th-stat-num {
  color: #f8fafc;
}

.th-stat-lbl {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

/* ========================================================
   TOOLSHUB ADMIN PANEL STYLING (MATCHING IMAGE 2)
   ======================================================== */

.admin-body-th {
  background: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
  display: flex;
}

body.theme-dark .admin-body-th {
  background: #090e1a;
  color: #f1f5f9;
}

/* ToolsHub Admin Sidebar (Clean Light & Emerald - Image 4) */
.admin-sidebar-th {
  width: 260px;
  background: #ffffff;
  color: #334155;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 1030;
  border-right: 1px solid #eef2f6;
  transition: transform 0.3s ease;
}

body.theme-dark .admin-sidebar-th {
  background: #0b132b;
  color: #e2e8f0;
  border-right-color: rgba(255, 255, 255, 0.06);
}

.admin-sidebar-brand {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

body.theme-dark .admin-sidebar-brand {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.admin-brand-cube {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00c282 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 194, 130, 0.35);
}

.admin-sidebar-nav-th {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar-nav-th::-webkit-scrollbar {
  width: 4px;
}
.admin-sidebar-nav-th::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
body.theme-dark .admin-sidebar-nav-th::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

.admin-nav-item-th {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-nav-item-th:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body.theme-dark .admin-nav-item-th {
  color: #94a3b8;
}

body.theme-dark .admin-nav-item-th:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

.admin-nav-item-th.active {
  background: #00b87c !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 184, 124, 0.35);
  border-radius: 12px;
}

.admin-nav-item-th .nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.admin-nav-item-th .arrow-icon {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.6;
}

.admin-sidebar-pro-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 6px 12px;
}

body.theme-dark .admin-sidebar-pro-card {
  background: #111c38;
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-sidebar-profile-bar {
  border-top: 1px solid #f1f5f9;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

body.theme-dark .admin-sidebar-profile-bar {
  background: #0b132b;
  border-color: rgba(255, 255, 255, 0.06);
}

.admin-sidebar-widget {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px;
  margin: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Admin Main Content Wrapper */
.admin-main-th {
  margin-left: 260px;
  flex: 1;
  padding: 24px 30px;
  width: calc(100% - 260px);
}

@media (max-width: 991px) {
  .admin-sidebar-th {
    width: 290px !important;
    max-width: 85vw !important;
    transform: translateX(-100%);
    z-index: 1050 !important;
    box-shadow: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    overflow: hidden;
  }
  .admin-sidebar-th.show-mobile {
    transform: translateX(0);
    box-shadow: 20px 0 50px rgba(15, 23, 42, 0.35);
  }
  .admin-sidebar-nav-th {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto !important;
    padding: 12px 10px 50px 10px !important;
  }
  .admin-nav-item-th {
    padding: 12px 14px !important;
    min-height: 46px;
    font-size: 0.92rem !important;
  }
  .sidebar-overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(15, 23, 42, 0.55);
  }
  .admin-main-th {
    margin-left: 0;
    width: 100%;
    padding: 12px 10px 85px 10px !important;
  }
  .admin-topbar-th {
    position: sticky;
    top: 8px;
    z-index: 1020;
    margin-bottom: 16px !important;
    border-radius: 14px !important;
    padding: 8px 12px !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .admin-search-wrapper {
    width: auto !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding: 6px 10px !important;
  }
  .table-responsive {
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
    box-shadow: inset -8px 0 10px -6px rgba(0, 0, 0, 0.12);
  }
  .table-enterprise thead th,
  .table-enterprise tbody td {
    padding: 10px 12px !important;
    white-space: nowrap;
  }
  .switch-pill-btn {
    min-height: 32px;
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 768px) {
  .admin-main-th input.form-control,
  .admin-main-th select.form-select,
  .admin-main-th textarea.form-control {
    font-size: 16px !important;
  }
}

/* Admin Mobile Quick Bar & Toggle Button */
.btn-emerald-mobile-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-emerald-mobile-toggle:hover,
.btn-emerald-mobile-toggle:active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  transform: scale(1.03);
}

body.theme-dark .btn-emerald-mobile-toggle {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

body.theme-dark .btn-emerald-mobile-toggle:hover,
body.theme-dark .btn-emerald-mobile-toggle:active {
  background: #10b981;
  color: #ffffff;
}

.admin-mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1040;
  padding: 0 6px;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

body.theme-dark .admin-mobile-bottom-bar {
  background: rgba(15, 23, 42, 0.96);
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}

.admin-mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: #64748b;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  transition: all 0.2s ease;
  min-width: 58px;
  touch-action: manipulation;
}

.admin-mobile-bar-btn i {
  font-size: 1.15rem;
}

.admin-mobile-bar-btn:hover,
.admin-mobile-bar-btn:active,
.admin-mobile-bar-btn.active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

body.theme-dark .admin-mobile-bar-btn {
  color: #94a3b8;
}

body.theme-dark .admin-mobile-bar-btn:hover,
body.theme-dark .admin-mobile-bar-btn:active,
body.theme-dark .admin-mobile-bar-btn.active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.16);
}

/* Admin Top Bar (Image 2) */
.admin-topbar-th {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

body.theme-dark .admin-topbar-th {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.06);
}

.admin-search-wrapper {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 320px;
}

body.theme-dark .admin-search-wrapper {
  background: #1e293b;
}

.admin-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: #0f172a;
  flex: 1;
}

body.theme-dark .admin-search-input {
  color: #f8fafc;
}

.admin-search-kbd {
  font-size: 0.72rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 6px;
  color: #64748b;
}

body.theme-dark .admin-search-kbd {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Admin 4 Metric Cards (Image 2) */
.admin-metric-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}

body.theme-dark .admin-metric-card {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.06);
}

.admin-metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.admin-metric-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin: 4px 0;
}

body.theme-dark .admin-metric-val {
  color: #f8fafc;
}

.admin-metric-lbl {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.admin-metric-trend {
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Admin Quick Action Buttons (5 Colors from Image 2) */
.btn-action-th {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-action-th:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-action-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.btn-action-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.btn-action-purple { background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%); }
.btn-action-orange { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); }
.btn-action-dark { background: linear-gradient(135deg, #475569 0%, #334155 100%); }

/* Admin Modern Card Container */
.admin-card-th {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

body.theme-dark .admin-card-th {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.06);
}

.admin-card-header-th {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-card-title-th {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

body.theme-dark .admin-card-title-th {
  color: #f8fafc;
}

/* ==========================================================================
   Visual Tool Output & Real Platform Card Results
   ========================================================================== */
.result-visual-area {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

.status-banner-online {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
}

.status-banner-offline {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
}

.status-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.status-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
  animation: pulseLive 1.6s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.th-metric-box {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.th-metric-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

body.theme-dark .th-metric-box {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}

.th-metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.th-metric-lbl {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.th-metric-val {
  font-size: 0.95rem;
  line-height: 1.2;
}

body.theme-dark .status-banner-online {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

body.theme-dark .status-banner-offline {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

/* ==========================================================================
   PRODUCTION MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS
   ========================================================================== */

/* 1. Global Viewport & Touch Reset */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* iOS Safari Input Auto-Zoom Prevention (Enforces 16px min size on mobile) */
@media (max-width: 767.98px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  input[type="url"],
  input[type="tel"],
  select,
  textarea,
  .form-control-custom,
  .form-select-custom {
    font-size: 16px !important;
  }
}

/* Touch targets and scrolling improvements */
button, a, input, select, textarea {
  touch-action: manipulation;
}

.table-responsive,
.result-display-area,
.th-dash-nav-bar,
pre,
code {
  -webkit-overflow-scrolling: touch;
}

/* 2. Mobile Offcanvas Navigation Drawer */
.mobile-offcanvas-drawer {
  width: 330px !important;
  max-width: 88vw !important;
  background: #ffffff;
  border-right: 1px solid #eef2f6;
  z-index: 1060;
  display: flex !important;
  flex-direction: column !important;
}

.mobile-offcanvas-drawer .offcanvas-header {
  flex-shrink: 0;
  padding: 16px 18px;
}

.mobile-offcanvas-drawer .offcanvas-body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 60px 16px !important;
  display: block !important;
  height: auto;
}

.mobile-offcanvas-drawer .offcanvas-body::-webkit-scrollbar {
  width: 5px;
}

.mobile-offcanvas-drawer .offcanvas-body::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-offcanvas-drawer .offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

body.theme-dark .mobile-offcanvas-drawer .offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.drawer-user-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  margin-top: 8px;
}

body.theme-dark .drawer-user-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

.drawer-user-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.drawer-user-link:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateX(2px);
}

body.theme-dark .drawer-user-link {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

body.theme-dark .drawer-user-link:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.drawer-user-link.admin-link {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.drawer-user-link.admin-link:hover {
  background: #d1fae5;
  color: #047857;
}

body.theme-dark .drawer-user-link.admin-link {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.drawer-user-link.logout-link {
  color: #dc2626;
  border-color: #fee2e2;
  background: #fef2f2;
}

.drawer-user-link.logout-link:hover {
  background: #fee2e2;
  color: #b91c1c;
}

body.theme-dark .drawer-user-link.logout-link {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

body.theme-dark .mobile-offcanvas-drawer {
  background: #0f172a;
  border-right-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}

.mobile-nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1.05rem;
  color: #64748b;
  transition: color 0.15s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #ecfdf5;
  color: #059669;
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
  color: #059669;
}

body.theme-dark .mobile-nav-link {
  color: #94a3b8;
}

body.theme-dark .mobile-nav-link:hover,
body.theme-dark .mobile-nav-link.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

body.theme-dark .mobile-nav-link:hover i,
body.theme-dark .mobile-nav-link.active i {
  color: #10b981;
}

/* 3. Breakpoint: Large Tablets & Below (<= 991.98px) */
@media (max-width: 991.98px) {
  /* Navbar & Brand */
  .navbar-toolshub {
    padding: 10px 0;
  }

  .toolshub-brand-title {
    font-size: 1.25rem;
  }

  .toolshub-brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  /* Hero Section */
  .th-hero-section {
    padding: 40px 0 30px;
  }

  .th-hero-title {
    font-size: clamp(2rem, 5.5vw, 2.75rem);
  }

  .th-hero-sub {
    font-size: 1rem;
    max-width: 100%;
  }

  .th-hero-tags {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .th-hero-tags::-webkit-scrollbar {
    display: none;
  }

  /* Admin Topbar & Sidebar */
  .admin-topbar-th {
    padding: 10px 14px;
    margin-bottom: 18px;
  }

  .admin-search-wrapper {
    width: auto !important;
    max-width: 100%;
  }

  .admin-main-th {
    padding: 16px 12px;
  }
}

/* 4. Breakpoint: Small Tablets & Mobile Phones (<= 767.98px) */
@media (max-width: 767.98px) {
  /* Announcement Bar */
  .teamcsb-announcement-bar {
    font-size: 0.78rem;
    padding: 6px 10px;
    gap: 6px;
  }

  .teamcsb-announcement-btn {
    padding: 2px 8px;
    font-size: 0.72rem;
  }

  /* Hero Search */
  .th-hero-search-box {
    padding: 4px 6px 4px 14px;
    border-radius: 9999px;
  }

  .th-hero-search-input {
    font-size: 0.9rem;
  }

  .th-hero-search-btn {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  /* Hero Badge */
  .th-hero-badge {
    font-size: 0.78rem;
    padding: 6px 12px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    line-height: 1.4;
  }

  /* Tool Studio Studio */
  .tool-studio-card {
    padding: 16px 14px;
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .tool-studio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
  }

  .tool-studio-title {
    font-size: 1.35rem;
  }

  .tool-studio-desc {
    font-size: 0.88rem;
  }

  /* User Dashboard Header */
  .user-hero-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .user-hero-card > .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 16px;
  }

  .btn-th-hero-primary,
  .btn-th-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Admin Action Buttons */
  .btn-action-th {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  /* Admin Metric Cards */
  .admin-metric-card {
    padding: 16px;
    border-radius: 14px;
  }

  .admin-metric-val {
    font-size: 1.5rem;
  }

  .admin-metric-icon {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
}

/* 5. Breakpoint: Compact Mobile Phones (<= 575.98px) */
@media (max-width: 575.98px) {
  /* Hero typography */
  .th-hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  /* Categories Grid Row */
  .th-cat-grid-row {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
  }

  .th-cat-tile {
    padding: 12px 8px;
    border-radius: 12px;
  }

  .th-cat-tile-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .th-cat-tile-title {
    font-size: 0.82rem;
  }

  .th-cat-tile-count {
    font-size: 0.7rem;
  }

  /* Tool Cards */
  .th-tool-card {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
  }

  .th-tool-icon-box {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
    border-radius: 10px;
  }

  .th-tool-title {
    font-size: 0.88rem;
  }

  .th-tool-desc {
    font-size: 0.75rem;
  }

  /* Tool Studio Interface */
  .tool-studio-card {
    padding: 12px 10px;
    border-radius: 12px;
  }

  .tool-studio-title {
    font-size: 1.25rem;
  }

  /* Tool Studio Execution Toolbar */
  .tool-action-toolbar {
    gap: 6px;
    width: 100%;
  }

  .tool-action-toolbar .btn {
    font-size: 0.8rem;
    padding: 6px 10px;
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  /* Results Area */
  .result-display-area {
    padding: 10px;
    font-size: 0.78rem;
    border-radius: 8px;
  }

  /* Generator and Checker outputs */
  #gen-output,
  #liveCcInput {
    min-height: 200px !important;
    font-size: 0.82rem !important;
  }

  /* Status banners in tools */
  .status-icon-circle {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .th-metric-box {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .th-metric-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .th-metric-lbl {
    font-size: 0.68rem;
  }

  .th-metric-val {
    font-size: 0.88rem;
  }

  /* Dashboard Nav Bar */
  .th-dash-nav-bar {
    padding: 4px;
    gap: 4px;
  }

  .th-dash-nav-link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* Footer */
  .app-footer {
    padding-top: 35px !important;
    padding-bottom: 25px !important;
  }
}

/* 6. Breakpoint: Ultra-compact devices (<= 374.98px like iPhone SE 1st gen, Galaxy Fold cover) */
@media (max-width: 374.98px) {
  .toolshub-brand-title {
    font-size: 1.1rem;
  }

  .toolshub-brand-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .th-hero-title {
    font-size: 1.65rem;
  }

  .th-cat-grid-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .th-cat-tile {
    padding: 10px 6px;
  }

  .btn-primary-custom,
  .btn-secondary-custom {
    font-size: 0.82rem;
    padding: 8px 12px;
  }
}

/* ==========================================================================
   PREMIUM TOOL VISUAL RESULTS & REALISTIC MOCKUPS
   ========================================================================== */

/* 1. Virtual Credit Card Mockup */
.virtual-card-wrapper {
  perspective: 1000px;
  max-width: 380px;
  width: 100%;
  margin: 0 auto 20px;
}

.virtual-card-body {
  width: 100%;
  min-height: 215px;
  border-radius: 18px;
  padding: 22px 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.virtual-card-body:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

.virtual-card-body.brand-visa {
  background: linear-gradient(135deg, #1e3a8a 0%, #0369a1 50%, #0f172a 100%);
}

.virtual-card-body.brand-mastercard {
  background: linear-gradient(135deg, #b91c1c 0%, #ea580c 50%, #1c1917 100%);
}

.virtual-card-body.brand-amex {
  background: linear-gradient(135deg, #065f46 0%, #0d9488 50%, #111827 100%);
}

.virtual-card-body.brand-discover {
  background: linear-gradient(135deg, #c2410c 0%, #f97316 50%, #1e293b 100%);
}

.virtual-card-body.brand-jcb {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #1e1b4b 100%);
}

.virtual-card-chip {
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-radius: 6px;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.virtual-card-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
}

.virtual-card-chip::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.2);
}

.virtual-card-number {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  word-spacing: 4px;
}

.virtual-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.virtual-card-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.75;
  margin-bottom: 2px;
}

.virtual-card-val {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* 2. MFS Digital Receipt */
.mfs-receipt-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.mfs-header-bkash { background: linear-gradient(135deg, #e2136e 0%, #b80f58 100%); color: #ffffff; }
.mfs-header-nagad { background: linear-gradient(135deg, #f7941d 0%, #d97706 100%); color: #ffffff; }
.mfs-header-rocket { background: linear-gradient(135deg, #8c3494 0%, #6b21a8 100%); color: #ffffff; }

/* 3. Color Swatch Box */
.color-swatch-box {
  width: 100%;
  height: 120px;
  border-radius: 14px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* 4. Calculator Milestone & Hero Badges */
.calc-hero-badge {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

body.theme-dark .calc-hero-badge {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}

.calc-hero-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: #059669;
  line-height: 1.2;
}

body.theme-dark .calc-hero-val {
  color: #34d399;
}

/* ==========================================================================
   ADVANCED ANIMATIONS, MICRO-INTERACTIONS & UI GLITCH ELIMINATION SUITE
   ========================================================================== */

/* 1. Keyframes Library */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes popBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  75% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

@keyframes cardShine {
  0% {
    left: -100%;
    opacity: 0;
  }
  40% {
    opacity: 0.35;
  }
  100% {
    left: 200%;
    opacity: 0;
  }
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(0.8deg);
  }
}

@keyframes pulseGlowEmerald {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 184, 124, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 184, 124, 0);
  }
}

/* 2. Micro-Interactions on Cards & Tiles */
.th-tool-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.th-tool-card:hover {
  transform: translateY(-5px) scale(1.015) !important;
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.16), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
  border-color: var(--th-emerald-border) !important;
}

.th-tool-card .th-tool-icon-box {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.th-tool-card:hover .th-tool-icon-box {
  transform: scale(1.15) rotate(6deg) !important;
}

.th-cat-tile {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.th-cat-tile:hover {
  transform: translateY(-6px) scale(1.025) !important;
  box-shadow: 0 16px 32px rgba(16, 185, 129, 0.18) !important;
  border-color: #a7f3d0 !important;
}

.th-cat-tile .th-cat-tile-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.th-cat-tile:hover .th-cat-tile-icon {
  transform: scale(1.18) rotate(-6deg) !important;
}

/* 3. Admin Metric Cards & Quick Actions */
.admin-metric-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.admin-metric-card:hover {
  transform: translateY(-5px) scale(1.015) !important;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08) !important;
}

.admin-metric-card .admin-metric-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.admin-metric-card:hover .admin-metric-icon {
  transform: scale(1.16) rotate(6deg) !important;
}

.admin-nav-item-th {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.admin-nav-item-th .nav-icon {
  transition: transform 0.25s ease !important;
}

.admin-nav-item-th .arrow-icon {
  transition: transform 0.25s ease !important;
}

.admin-nav-item-th:hover .nav-icon {
  transform: scale(1.15) translateX(2px) !important;
}

.admin-nav-item-th:hover .arrow-icon {
  transform: translateX(4px) !important;
}

.btn-action-th {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
}

.btn-action-th:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14) !important;
}

/* 4. Interactive Buttons Press Effect & Focus Glow */
.btn-primary-custom,
.btn-th-submit,
#binGenSubmitBtn,
#tool-submit-btn {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
}

.btn-primary-custom:hover,
.btn-th-submit:hover,
#binGenSubmitBtn:hover,
#tool-submit-btn:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 8px 22px rgba(0, 184, 124, 0.35) !important;
}

.btn-primary-custom:active,
.btn-th-submit:active,
#binGenSubmitBtn:active,
#tool-submit-btn:active {
  transform: scale(0.97) !important;
}

/* 5. 3D Virtual Credit Card Realistic Floating & Shine */
.virtual-card-wrapper {
  perspective: 1200px;
}

.virtual-card-body {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease !important;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.virtual-card-body::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 80%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: cardShine 6s infinite ease-in-out;
}

.virtual-card-body:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-3deg) scale(1.02) !important;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.38) !important;
}

/* 6. Dynamic Result Cards Entrance */
.result-box-container {
  animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card-generator-result-studio {
  animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mfs-receipt-card {
  animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 7. Copy Button Pop Animation */
.copy-pop-active {
  animation: popBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 8. Admin Dark Theme Contrast & Table Enhancements */
body.theme-dark .admin-card-th {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
}

body.theme-dark .admin-topbar-th {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .table-enterprise {
  color: #e2e8f0 !important;
}

body.theme-dark .table-enterprise thead th {
  background: #1e293b !important;
  color: #94a3b8 !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.theme-dark .table-enterprise tbody td {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  color: #e2e8f0 !important;
}

body.theme-dark .table-enterprise tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

body.theme-dark .card.bg-white {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.theme-dark .text-dark {
  color: #f8fafc !important;
}

body.theme-dark .bg-light {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

/* 9. Mobile Sidebar Navigation Drawer Isolation Guard */
@media (max-width: 991px) {
  .admin-sidebar-th {
    z-index: 1050 !important;
    background: #ffffff !important;
  }
  body.theme-dark .admin-sidebar-th {
    background: #0b132b !important;
  }
  .sidebar-overlay {
    z-index: 1040 !important;
  }
}

/* ==========================================================================
   10. Google Sign-In & Auth Components
   ========================================================================== */
.btn-google-sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
}

.btn-google-sign-in:hover {
  background: #f8fafc;
  border-color: #c2c7d0;
  color: #1f2328;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(60, 64, 67, 0.15);
}

.btn-google-sign-in:active {
  transform: scale(0.98);
}

body.theme-dark .btn-google-sign-in {
  background: #1e293b;
  color: #f1f5f9;
  border-color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.theme-dark .btn-google-sign-in:hover {
  background: #273548;
  border-color: #475569;
}

.auth-divider-th {
  display: flex;
  align-items: center;
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.auth-divider-th::before,
.auth-divider-th::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-dark .auth-divider-th::before,
body.theme-dark .auth-divider-th::after {
  border-bottom-color: #334155;
}

.auth-divider-th span {
  padding: 0 14px;
}

/* ==========================================================================
   11. Ultra-Modern Cool & Professional Animation Suite
   ========================================================================== */

/* Top slim page progress bar */
.th-top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #00b87c, #06b6d4, #3b82f6);
  z-index: 9999;
  transition: width 0.25s ease-out, opacity 0.4s ease;
  box-shadow: 0 0 10px rgba(0, 184, 124, 0.6);
}

/* Radiant Ambient Mesh Glow behind Hero */
.th-hero-section {
  position: relative;
  overflow: hidden;
}

.th-hero-glow-mesh {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 480px;
  background: radial-gradient(circle at 30% 40%, rgba(0, 184, 124, 0.14) 0%, transparent 60%),
              radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.12) 0%, transparent 55%),
              radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: radiantMeshFloat 12s ease-in-out infinite alternate;
}

@keyframes radiantMeshFloat {
  0% { transform: translateX(-50%) translateY(0px) scale(1); }
  50% { transform: translateX(-48%) translateY(18px) scale(1.06); }
  100% { transform: translateX(-52%) translateY(-10px) scale(0.98); }
}

/* Animated Shimmer Text Highlight */
.th-shimmer-text {
  background: linear-gradient(120deg, #00b87c 0%, #10b981 25%, #06b6d4 50%, #00b87c 75%, #059669 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmerSweep 6s linear infinite;
}

@keyframes textShimmerSweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll Reveal Base Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.reveal-left {
  transform: translateX(-30px);
}
.reveal-on-scroll.reveal-left.is-revealed {
  transform: translateX(0);
}

.reveal-on-scroll.reveal-right {
  transform: translateX(30px);
}
.reveal-on-scroll.reveal-right.is-revealed {
  transform: translateX(0);
}

.reveal-on-scroll.reveal-scale {
  transform: scale(0.92);
}
.reveal-on-scroll.reveal-scale.is-revealed {
  transform: scale(1);
}

/* Staggered Delays for Children */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* Enhanced Hero Badge Pulse */
.th-hero-badge {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 184, 124, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.th-hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 184, 124, 0.22);
}

.th-hero-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: rotate(25deg);
  animation: badgeSweep 4.5s infinite;
}

@keyframes badgeSweep {
  0% { left: -60%; }
  30%, 100% { left: 140%; }
}

/* Dynamic Glowing Focus on Hero Search Input */
.th-hero-search-box {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.th-hero-search-box:focus-within {
  transform: translateY(-2px);
  border-color: #00b87c !important;
  box-shadow: 0 10px 30px rgba(0, 184, 124, 0.2), 0 0 0 4px rgba(0, 184, 124, 0.12) !important;
}

/* Floating Badges with Asynchronous Movement */
.th-floating-badge-1 {
  animation: floatAsync1 5s ease-in-out infinite !important;
}
.th-floating-badge-2 {
  animation: floatAsync2 6s ease-in-out infinite 0.5s !important;
}
.th-floating-badge-3 {
  animation: floatAsync1 5.5s ease-in-out infinite 1s !important;
}
.th-floating-badge-4 {
  animation: floatAsync2 6.5s ease-in-out infinite 1.5s !important;
}

@keyframes floatAsync1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(1.2deg); }
}

@keyframes floatAsync2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-1.5deg); }
}

/* Stats Counter Box Glow & Hover Elevation */
.th-stat-box {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.th-stat-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  border-color: #a7f3d0 !important;
}

.th-stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00b87c, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.th-stat-box:hover::before {
  opacity: 1;
}

/* CTA Banner Floating Shimmer */
.th-cta-banner {
  position: relative;
  overflow: hidden;
}

.th-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 184, 124, 0.08) 0%, transparent 60%);
  animation: ctaBgPulse 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ctaBgPulse {
  0% { transform: scale(0.9); }
  100% { transform: scale(1.15); }
}

/* Floating Scroll-To-Top Pill Button */
.th-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00b87c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 184, 124, 0.35);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 998;
}

.th-back-to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.th-back-to-top:hover {
  background: #059669;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 184, 124, 0.45);
}







