/* ==========================================================================
   Utility Seva - Main Stylesheet
   Clean, modern, responsive CSS without external frameworks
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette - Light Mode (Default) */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  
  --border-color: #e2e8f0;
  --border-color-hover: #cbd5e1;
  --border-focus: #6366f1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  /* Brand / Primary Accent (Indigo / Purple-Blue) */
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-glow: rgba(99, 102, 241, 0.2);
  
  /* Category Colors */
  --cat-image: #2563eb;
  --cat-image-bg: #eff6ff;
  --cat-pdf: #dc2626;
  --cat-pdf-bg: #fef2f2;
  --cat-student: #059669;
  --cat-student-bg: #ecfdf5;
  --cat-calc: #7c3aed;
  --cat-calc-bg: #f5f3ff;
  
  /* Coming Soon Badge */
  --badge-bg: #fffbeb;
  --badge-text: #d97706;
  --badge-border: #fde68a;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 5px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.09), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  
  /* Typography & Layout */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1440px;
  --nav-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: visible;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.site-header .container {
  overflow: visible;
}

.nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  overflow: visible;
}

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  user-select: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 8px var(--brand-glow);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 20px;
  height: 20px;
}

.brand-name {
  display: inline-block;
}

.brand-highlight {
  color: var(--brand-500);
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

@media (min-width: 860px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0.35rem;
  }
}

@media (min-width: 1120px) {
  .desktop-nav {
    gap: 0.85rem;
  }
}

.nav-menu-group {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-menu-group.nav-mega-group {
  position: static;
}

.nav-menu-group::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 8px);
  height: 18px;
  display: none;
  z-index: 505;
}

.nav-menu-group.is-open::after {
  display: block;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  padding: 0.42rem 0.62rem;
  border-radius: var(--radius-md);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-menu-group.is-open > .nav-item {
  color: var(--brand-600);
  background-color: var(--brand-50);
  outline: none;
}

.nav-item:focus-visible {
  box-shadow: 0 0 0 2px var(--brand-glow);
}

.nav-item.active {
  color: var(--brand-600);
  font-weight: 600;
}

.nav-chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.18s ease;
  opacity: 0.78;
  flex-shrink: 0;
}

.nav-menu-group.is-open > .nav-item .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Nav Actions (Theme toggle + Mobile trigger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-surface-alt);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

@media (min-width: 860px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.15rem 1.35rem;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 0.35rem;
  z-index: 495;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile-nav-drawer.open,
.mobile-nav-drawer.active {
  display: flex;
}

.mobile-nav-link {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--brand-50);
  color: var(--brand-600);
}

/* ==========================================================================
   Hero Section & Search Bar
   ========================================================================== */
.hero-section {
  padding: 2.25rem 0 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 3rem 0 2rem;
  }
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1.75rem, 3.15vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

@media (min-width: 900px) {
  .hero-title {
    white-space: nowrap;
  }
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

/* Search Container */
.search-form {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-icon-left {
  position: absolute;
  left: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.search-input {
  width: 100%;
  padding: 0.68rem 6.8rem 0.68rem 2.65rem;
  font-size: 0.925rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-glow), var(--shadow-sm);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Clear Search Button */
.search-clear-btn {
  position: absolute;
  right: 5.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-alt);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.search-clear-btn:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.search-clear-btn svg {
  width: 13px;
  height: 13px;
}

.search-clear-btn.visible {
  display: flex;
}

/* Search Submit Button */
.search-submit-btn {
  position: absolute;
  right: 0.3rem;
  background-color: var(--brand-600);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.48rem 1rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.search-submit-btn:hover {
  background-color: var(--brand-700);
}

.search-submit-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Category Filter Tabs
   ========================================================================== */
.category-filter-section {
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
}

.category-tabs-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.category-tabs-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

@media (min-width: 640px) {
  .category-tabs-container {
    justify-content: center;
  }
}

.category-tabs-list {
  display: inline-flex;
  gap: 0.55rem;
  padding: 0.25rem;
}

.category-tab-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.category-tab-btn:hover {
  background-color: var(--bg-surface-alt);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.category-tab-btn.active {
  background-color: var(--brand-600);
  color: #ffffff;
  border-color: var(--brand-600);
  box-shadow: 0 2px 8px var(--brand-glow);
  font-weight: 600;
}

/* ==========================================================================
   Results Status Bar (Hidden / Removed per UI Requirement)
   ========================================================================== */
.results-bar {
  display: none !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

.footer-col {
  min-width: 0;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
    gap: 2rem;
  }
}

.footer-col-brand p {
  color: var(--text-secondary);
  font-size: 0.885rem;
  line-height: 1.6;
  margin-top: 0.85rem;
  margin-bottom: 1.15rem;
  max-width: 340px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-alt);
  color: var(--text-secondary);
  font-size: 0.785rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.footer-badge svg {
  width: 14px;
  height: 14px;
  color: var(--brand-500);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 1.15rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a {
  font-size: 0.885rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-links-list a:hover {
  color: var(--brand-600);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Information Pages Layout (About, Privacy, Terms, etc.)
   ========================================================================== */
.info-page-main {
  padding: 2.5rem 0 4rem;
}

.info-content-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .info-content-card {
    padding: 3rem 2.5rem;
  }
}

.info-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.info-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.info-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.info-body {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.95rem;
}

.info-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.info-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-body p {
  margin-bottom: 1rem;
}

.info-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.info-body li {
  margin-bottom: 0.4rem;
}

.placeholder-notice {
  background-color: var(--bg-surface-alt);
  border-left: 4px solid var(--brand-500);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  font-size: 0.885rem;
}

/* ==========================================
   HEADER CATEGORY DROPDOWNS & ALL TOOLS MEGA MENU
   ========================================== */
.nav-dropdown-panel,
.nav-mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 600;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 18px 44px -10px rgba(15, 23, 42, 0.16), 0 4px 14px -2px rgba(15, 23, 42, 0.06);
  padding: 0.85rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}

.nav-dropdown-panel {
  min-width: 300px;
  max-width: min(560px, calc(100vw - 2rem));
}

.nav-dropdown-panel.is-wide {
  min-width: 520px;
}

.nav-mega-panel {
  left: 0;
  right: 0;
  width: 100%;
  max-width: min(1160px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.15rem 1.25rem 1.25rem;
}

.nav-menu-group.is-open > .nav-dropdown-panel,
.nav-menu-group.is-open > .nav-mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s;
}

.nav-dropdown-header,
.nav-mega-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0.45rem 0.65rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.nav-dropdown-title,
.nav-mega-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-dropdown-count,
.nav-mega-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-600);
  background-color: var(--brand-50);
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  max-height: min(68vh, 480px);
  overflow-y: auto;
}

.nav-dropdown-panel.is-wide .nav-dropdown-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 0.55rem;
}

.dropdown-tool-link,
.mega-tool-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.48rem 0.55rem;
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.dropdown-tool-link:hover,
.mega-tool-link:hover,
.dropdown-tool-link:focus-visible,
.mega-tool-link:focus-visible {
  background-color: var(--brand-50);
  color: var(--brand-700);
  outline: none;
}

.dropdown-tool-link:focus-visible,
.mega-tool-link:focus-visible {
  box-shadow: 0 0 0 2px var(--brand-500);
}

.nav-tool-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-tool-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}

.nav-tool-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-tool-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background-color: var(--bg-surface-alt);
  color: var(--text-muted);
  flex-shrink: 0;
}

.dropdown-tool-link.is-coming-soon,
.mega-tool-link.is-coming-soon {
  opacity: 0.68;
  cursor: default;
}

.dropdown-tool-link.is-coming-soon:hover,
.mega-tool-link.is-coming-soon:hover {
  background-color: var(--bg-surface-alt);
  color: var(--text-secondary);
}

.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  max-height: min(72vh, 540px);
  overflow-y: auto;
}

.mega-cat-col {
  min-width: 0;
}

.mega-cat-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem 0.5rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-color);
}

.mega-cat-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mega-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

@media (max-width: 1080px) {
  .nav-mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================
   MOBILE DRAWER EXPANDABLE ACCORDIONS
   ========================================== */
.mobile-acc-group {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-color);
}

.mobile-acc-group:last-child {
  border-bottom: none;
}

.mobile-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0.5rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-acc-trigger:hover,
.mobile-acc-trigger[aria-expanded="true"] {
  color: var(--brand-600);
  background-color: var(--brand-50);
}

.mobile-acc-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.mobile-acc-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-surface-alt);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.mobile-acc-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.mobile-acc-trigger[aria-expanded="true"] .mobile-acc-chevron {
  transform: rotate(180deg);
}

.mobile-acc-panel {
  display: none;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.25rem 0 0.65rem 0.35rem;
}

.mobile-acc-panel.is-open {
  display: flex;
}

.mobile-tool-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.48rem 0.55rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
}

.mobile-tool-link:hover,
.mobile-tool-link:focus-visible {
  background-color: var(--brand-50);
  color: var(--brand-700);
  outline: none;
}

.mobile-tool-link.is-coming-soon {
  opacity: 0.65;
  cursor: default;
}

.mobile-mega-sub {
  margin-top: 0.4rem;
}

.mobile-mega-sub-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.35rem 0.55rem 0.2rem;
}

