/* ==========================================================================
   Ajay Kumar Thakur (AKT) - Premium Utility Hub / Tools Portal
   Design System matching exact UI reference: Luxury Emerald & Gold
   ========================================================================== */

:root {
  --tools-bg: #f8fafc;
  --tools-sidebar-bg: #061c14;
  --tools-sidebar-border: rgba(255, 255, 255, 0.08);
  --tools-sidebar-text: rgba(255, 255, 255, 0.8);
  --tools-sidebar-muted: #648677;
  --tools-emerald-dark: #062217;
  --tools-emerald-mid: #0d3827;
  --tools-emerald-light: #164e37;
  --tools-gold: #deb04b;
  --tools-gold-gradient: linear-gradient(135deg, #e8b04a 0%, #caa03c 50%, #b58628 100%);
  --tools-gold-soft: rgba(222, 176, 75, 0.15);
  --tools-card-bg: #ffffff;
  --tools-card-border: #e6edf2;
  --tools-card-hover-border: rgba(202, 160, 60, 0.5);
  --tools-text-main: #0f172a;
  --tools-text-muted: #64748b;
  --tools-radius-card: 16px;
  --tools-radius-pill: 50px;
  --tools-radius-sq: 12px;
  --tools-sidebar-width: 230px;
  --tools-navbar-height: 70px;
}

* {
  box-sizing: border-box;
}

body.tools-body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--tools-bg);
  color: var(--tools-text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */
.tools-sidebar {
  width: var(--tools-sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--tools-sidebar-bg);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(13, 56, 39, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(202, 160, 60, 0.08) 0%, transparent 50%);
  border-right: 1px solid var(--tools-sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.tools-sidebar::-webkit-scrollbar {
  width: 5px;
}

.tools-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

/* Brand Header */
.tools-brand {
  padding: 13px 12px 14px;
  border-bottom: 1px solid var(--tools-sidebar-border);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tools-brand-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(222, 176, 75, 0.55);
  border-radius: 8px;
  padding: 4px 6px;
  background: rgba(14, 45, 33, 0.6);
  color: #deb04b;
}

.tools-brand-badge i {
  font-size: 13px;
  margin-bottom: 2px;
}

.tools-brand-badge span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tools-brand-info {
  display: flex;
  flex-direction: column;
}

.tools-brand-title {
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tools-brand-title span {
  color: var(--tools-gold);
}

.tools-brand-subtitle {
  color: #94b8a7;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}

.tools-brand-link {
  color: rgba(222, 176, 75, 0.75);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Menu section */
.tools-menu-label {
  padding: 20px 22px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tools-sidebar-muted);
}

.tools-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tools-nav-item {
  width: 100%;
}

.tools-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  color: var(--tools-sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.tools-nav-link i {
  font-size: 14.5px;
  width: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

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

.tools-nav-link:hover i {
  color: var(--tools-gold);
}

/* Active Nav Link - Golden gradient pill */
.tools-nav-link.active {
  background: var(--tools-gold-gradient);
  color: #121e17;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(202, 160, 60, 0.35);
}

.tools-nav-link.active i {
  color: #121e17;
}

.tools-nav-link .tools-subnav-arrow {
  margin-left: auto;
  font-size: 11px;
  width: auto;
  opacity: 0.85;
  transition: transform 0.25s ease;
}

/* Sidebar Subnav for active category */
.tools-subnav-list {
  list-style: none;
  margin: 6px 0 8px 14px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid rgba(222, 176, 75, 0.4);
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: toolsSubnavSlide 0.22s ease-out;
}

@keyframes toolsSubnavSlide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tools-subnav-item {
  width: 100%;
}

.tools-subnav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.tools-subnav-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tools-subnav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tools-subnav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.tools-subnav-link:hover .tools-subnav-bullet {
  background: var(--tools-gold);
  transform: scale(1.3);
}

/* Active sub-item (Current Tool) */
.tools-subnav-link.active {
  color: #fff;
  background: rgba(222, 176, 75, 0.16);
  font-weight: 700;
  border: 1px solid rgba(222, 176, 75, 0.35);
}

.tools-subnav-link.active .tools-subnav-bullet {
  background: var(--tools-gold);
  box-shadow: 0 0 8px rgba(222, 176, 75, 0.85);
  transform: scale(1.4);
}

.tools-now-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--tools-gold);
  color: #0c1a13;
  margin-left: auto;
  flex-shrink: 0;
  line-height: 1.2;
}

/* Sidebar Bottom Promo Card */
.tools-sidebar-promo {
  margin: 24px 14px 20px;
  padding: 16px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(14, 45, 33, 0.75), rgba(7, 26, 19, 0.9));
  border: 1px solid rgba(222, 176, 75, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.tools-sidebar-promo::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(222, 176, 75, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.tools-promo-crown {
  color: var(--tools-gold);
  font-size: 17px;
  margin-bottom: 6px;
}

.tools-promo-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tools-promo-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.tools-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tools-gold-gradient);
  color: #121e17;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.tools-promo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(222, 176, 75, 0.4);
  color: #000;
}

/* Helpline Support Sidebar Card */
.helpline-card {
  position: relative;
  background: linear-gradient(145deg, rgba(14, 45, 33, 0.85), rgba(6, 28, 20, 0.95));
  border: 1px solid rgba(222, 176, 75, 0.35);
  border-radius: 14px;
  padding: 14px 12px;
  margin: 18px 12px 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  text-align: left;
}

.helpline-card::before {
  content: '';
  position: absolute;
  top: -24px;
  right: -24px;
  width: 75px;
  height: 75px;
  background: radial-gradient(circle, rgba(222, 176, 75, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.helpline-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.helpline-icon-pill {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(222, 176, 75, 0.15);
  border: 1px solid rgba(222, 176, 75, 0.4);
  color: #deb04b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.helpline-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.helpline-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.helpline-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.helpline-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.helpline-call-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #deb04b 0%, #c49635 100%);
  color: #061c14 !important;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 9px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(222, 176, 75, 0.3);
  transition: all 0.2s ease;
  margin-bottom: 8px;
  width: 100%;
}

.helpline-call-link:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(222, 176, 75, 0.45);
  color: #000 !important;
}

.helpline-call-link i {
  font-size: 13px;
  color: #061c14;
}

.helpline-wa-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #86efac !important;
  font-weight: 600;
  font-size: 11.5px;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
}

.helpline-wa-link:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: rgba(37, 211, 102, 0.6);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.helpline-wa-link i {
  font-size: 14px;
  color: #25d366;
}


/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.tools-main {
  margin-left: var(--tools-sidebar-width);
  flex-grow: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--tools-sidebar-width));
  background-color: var(--tools-bg);
  transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================================================
   Top Navbar
   ========================================================================== */
.tools-navbar {
  height: var(--tools-navbar-height);
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.tools-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  max-width: 680px;
}

.tools-hamburger {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  font-size: 15px;
  transition: all 0.2s;
}

.tools-hamburger:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Live Search Input */
.tools-search-box {
  position: relative;
  width: 100%;
}

.tools-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}

.tools-search-input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 40px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 13.5px;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
}

.tools-search-input:focus {
  border-color: #deb04b;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(222, 176, 75, 0.15);
}

.tools-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tools-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  background: rgba(222, 176, 75, 0.14);
  color: #b48520;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid rgba(222, 176, 75, 0.35);
  white-space: nowrap;
}

.tools-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #e2e8f0;
  padding: 7px 12px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.tools-lang-btn:hover {
  background: #f8fafc;
}

.tools-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f2e22;
  color: #deb04b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid rgba(222, 176, 75, 0.5);
  transition: transform 0.2s;
}

.tools-user-avatar:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   Content Area & Hero Banner
   ========================================================================== */
.tools-content-container {
  padding: 24px 28px 60px;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

/* Hero Banner matching screenshot */
.tools-hero-banner {
  background: linear-gradient(135deg, #072218 0%, #0d3827 50%, #061e15 100%);
  border-radius: 24px;
  padding: 32px 34px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.85fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(7, 34, 24, 0.15);
  border: 1px solid rgba(222, 176, 75, 0.25);
}

.tools-hero-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(222, 176, 75, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.tools-hero-eyebrow {
  color: var(--tools-gold);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tools-hero-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px 0;
  font-family: 'Playfair Display', Georgia, serif;
  color: #fffaf0;
}

.tools-hero-subhead {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.tools-hero-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 20px;
  max-width: 480px;
}

.tools-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tools-btn-gold {
  background: var(--tools-gold-gradient);
  color: #0f1d16;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(222, 176, 75, 0.4);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.tools-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(222, 176, 75, 0.55);
  color: #000;
}

.tools-btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.tools-btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Hero Center Laptop Visual */
.tools-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tools-hero-laptop-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.tools-hero-laptop-img:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Hero Right 4 Badges */
.tools-hero-badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tools-hero-feature-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 14px;
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.tools-hero-feature-card:hover {
  transform: translateY(-2px);
}

.tools-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.tools-feature-icon.icon-light {
  background: #ecfdf5;
  color: #059669;
}

.tools-feature-icon.icon-orange {
  background: #ffedd5;
  color: #ea580c;
}

.tools-feature-icon.icon-teal {
  background: #f0fdfa;
  color: #0d9488;
}

.tools-feature-info {
  display: flex;
  flex-direction: column;
}

.tools-feature-title {
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.tools-feature-sub {
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.2;
  margin-top: 2px;
}

/* ==========================================================================
   Category Filter Pills Bar
   ========================================================================== */
.tools-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.tools-pills-bar::-webkit-scrollbar {
  display: none;
}

.tools-pill {
  padding: 9px 18px;
  border-radius: 50px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tools-pill i {
  font-size: 13px;
  color: #64748b;
}

.tools-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.tools-pill.active {
  background: #0c2b1f;
  color: #ffffff;
  border-color: #0c2b1f;
  box-shadow: 0 4px 12px rgba(12, 43, 31, 0.2);
}

.tools-pill.active i {
  color: #4ade80;
}

/* ==========================================================================
   Tool Categories & Cards Grid
   ========================================================================== */
.tools-category-section {
  margin-bottom: 34px;
}

.tools-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tools-category-title-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.tools-cat-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tools-cat-title i {
  color: var(--tools-gold);
  font-size: 16px;
}

.tools-cat-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.tools-view-all-link {
  font-size: 13px;
  font-weight: 700;
  color: #2d6a4f;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.tools-view-all-link:hover {
  color: #b48520;
  transform: translateX(2px);
}

/* The 5-Column Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Individual Tool Card */
.tool-card {
  background: #ffffff;
  border: 1px solid var(--tools-card-border);
  border-radius: var(--tools-radius-card);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  position: relative;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(222, 176, 75, 0.6);
  box-shadow: 0 10px 24px rgba(12, 43, 31, 0.08);
}

.tool-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Squircle Icon Box */
.tool-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-icon-box {
  transform: scale(1.08);
}

/* Pastel Theme variants for Squircles */
.tool-icon-mint {
  background: #ecfdf5;
  color: #059669;
}

.tool-icon-gold {
  background: #fef3c7;
  color: #d97706;
}

.tool-icon-cyan {
  background: #e0f2fe;
  color: #0284c7;
}

.tool-icon-amber {
  background: #fef9c3;
  color: #ca8a04;
}

.tool-icon-teal {
  background: #f0fdfa;
  color: #0d9488;
}

.tool-icon-purple {
  background: #f3e8ff;
  color: #9333ea;
}

.tool-icon-rose {
  background: #ffe4e6;
  color: #e11d48;
}

.tool-icon-blue {
  background: #eff6ff;
  color: #2563eb;
}

.tool-icon-slate {
  background: #f1f5f9;
  color: #475569;
}

.tool-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tool-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  transition: color 0.2s;
}

.tool-card:hover .tool-title {
  color: #064e3b;
}

.tool-desc {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right Arrow circle */
.tool-arrow-circle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 11px;
  transition: all 0.2s ease;
}

.tool-card:hover .tool-arrow-circle {
  background: #deb04b;
  color: #ffffff;
  border-color: #deb04b;
  transform: translateX(2px);
}

/* ==========================================================================
   Tool Detail Pages Layout (Individual App View)
   ========================================================================== */
.tool-page-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.tool-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 12px;
}

.tool-breadcrumbs a {
  color: #2d6a4f;
  text-decoration: none;
  font-weight: 600;
}

.tool-breadcrumbs a:hover {
  text-decoration: underline;
}

.tool-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tool-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.tool-header-text h1 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.tool-header-text p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

/* Work Area / Tool Canvas */
.tool-workspace-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.tool-input-group {
  margin-bottom: 20px;
}

.tool-input-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.tool-textarea {
  width: 100%;
  min-height: 180px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s;
  resize: vertical;
}

.tool-textarea:focus {
  border-color: #deb04b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(222, 176, 75, 0.15);
}

.tool-input {
  width: 100%;
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s;
}

.tool-input:focus {
  border-color: #deb04b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(222, 176, 75, 0.15);
}

.tool-stat-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  display: inline-flex;
  flex-direction: column;
  min-width: 90px;
  text-align: center;
}

.tool-stat-number {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.tool-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1280px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tools-hero-banner {
    grid-template-columns: 1.2fr 1fr;
  }

  .tools-hero-badges-grid {
    grid-column: span 2;
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop Sidebar Toggle & Collapse */
@media (min-width: 992px) {
  body.tools-sidebar-collapsed .tools-sidebar {
    transform: translateX(-100%);
  }

  body.tools-sidebar-collapsed .tools-main {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* Mobile Sidebar Drawer (<= 991px) */
@media (max-width: 991px) {
  .tools-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body.tools-sidebar-open .tools-sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.55);
  }

  .tools-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 1045;
  }

  body.tools-sidebar-open .tools-sidebar-backdrop {
    display: block;
  }

  .tools-main {
    margin-left: 0;
    width: 100%;
  }

  .tools-brand-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 14px;
  }

  .tools-sidebar-close {
    display: flex;
    background: rgba(222, 176, 75, 0.15);
    border: 1px solid rgba(222, 176, 75, 0.35);
    color: #deb04b;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
  }

  .tools-sidebar-close:hover {
    background: #deb04b;
    color: #061c14;
  }


  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-hero-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tools-hero-desc {
    margin: 0 auto 20px auto;
  }

  .tools-hero-actions {
    justify-content: center;
  }

  .tools-hero-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tools-navbar {
    padding: 0 16px;
  }

  .tools-content-container {
    padding: 16px 14px 40px;
  }

  .tools-badge-pill {
    display: none;
  }

  .tools-hero-banner {
    padding: 22px 18px;
  }

  .tools-hero-title {
    font-size: 26px;
  }

  .tools-hero-badges-grid {
    grid-template-columns: 1fr;
  }
}