/* ==========================================================================
   ToolJaguar - Modern SaaS Reference CSS (Optimized)
   Brand: Black (#0b0b0b) and Yellow (#f5c518)
   ========================================================================== */

:root {
  --bg: #0b0b0b;
  --bg-soft: #111827;
  --card: #ffffff;
  --card-soft: #f8f8f8;
  --text: #101010;
  --text-light: #6b7280;
  --white: #ffffff;
  --yellow: #f5c518;
  --yellow-dark: #dfb000;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-hover: 0 18px 40px rgba(0, 0, 0, .09);
  --radius: 18px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent text select for app feel */
  -webkit-user-select: none;
  user-select: none;
}

/* Allow text select in inputs, textareas, and results */
input, textarea, .result-box, p, h1, h2, h3, h4 {
  -webkit-user-select: text;
  user-select: text;
}

a {
  text-decoration: none;
  color: inherit;
  transition: .2s ease;
}

img, svg {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 14px;
  color: #111827;
}

.section-subtitle {
  color: var(--text-light);
  max-width: 760px;
  font-size: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: .25s ease;
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: var(--yellow);
  color: #111;
}

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

.btn-outline {
  border-color: rgba(255, 255, 255, .2);
  color: var(--white);
  background: rgba(255, 255, 255, .04);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .08);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11, 11, 11, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Optional App-like feature: Hide header on scroll down on mobile */
@media (max-width: 768px) {
  .site-header.hide-on-scroll {
    transform: translateY(-100%);
  }
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  background: rgba(11, 11, 11, .98);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  height: 48px;
  padding: 6px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.brand-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .2px;
}

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

.brand-tag {
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
  margin-top: 3px;
}

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

.nav-links a {
  color: rgba(255, 255, 255, .88);
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--yellow);
}

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

.header-search {
  position: relative;
  width: 280px;
}

.header-search input {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  outline: none;
  padding: 0 16px 0 42px;
  font-size: 14px;
  transition: .2s ease;
}

.header-search input:focus {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, .09);
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, .5);
}

.header-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, .6);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  display: none;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.suggestion-item:hover, .suggestion-item.selected {
  background: #f3f4f6;
  color: var(--yellow-dark);
}

.suggestion-item .category {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  margin-left: auto;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.header-search .search-suggestions {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.1);
}

.header-search .suggestion-item {
  color: #fff;
}

.header-search .suggestion-item:hover, .header-search .suggestion-item.selected {
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
}

.header-search .suggestion-item .category {
  color: rgba(255, 255, 255, 0.4);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-text {
  color: rgba(255, 255, 255, .88);
  font-weight: 600;
  font-size: 14px;
}

.btn-text:hover {
  color: var(--yellow);
}



/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(245, 197, 24, .2), transparent 25%),
    linear-gradient(135deg, #0b0b0b 0%, #101827 50%, #0b0b0b 100%);
  color: #fff;
  padding: 88px 0 70px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent 90%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent 90%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 42px;
  align-items: center;
}

.hero-copy h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 760px;
}

.hero-copy h1 span {
  color: var(--yellow);
}

.hero-copy p {
  font-size: 18px;
  color: rgba(255, 255, 255, .78);
  max-width: 650px;
  margin-bottom: 30px;
}

.hero-search {
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
  max-width: 720px;
  margin-bottom: 26px;
}

.hero-search .field {
  position: relative;
  flex: 1;
}

.hero-search input {
  width: 100%;
  height: 58px;
  border: none;
  outline: none;
  border-radius: 14px;
  background: #f3f4f6;
  padding: 0 18px 0 50px;
  font-size: 16px;
  color: #111827;
  transition: background 0.2s ease;
}

.hero-search input:focus {
  background: #eef2f6;
}

.hero-search input::placeholder {
  color: #7b8190;
}

.hero-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: #6b7280;
}

.popular-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.popular-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.popular-chip:hover {
  background: rgba(245, 197, 24, .14);
  border-color: rgba(245, 197, 24, .3);
  color: var(--yellow);
  transform: translateY(-2px);
}

.hero-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  padding: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 197, 24, .12);
  color: var(--yellow);
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(245, 197, 24, .22);
}

.hero-tool {
  background: #fff;
  color: #111827;
  border-radius: 20px;
  padding: 22px;
}

.hero-tool h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  margin-bottom: 14px;
}

.mini-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.mini-fields input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s;
}

.mini-fields input:focus {
  border-color: var(--yellow-dark);
}

.result-box {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
}

.result-box small {
  color: #6b7280;
  display: block;
  margin-bottom: 6px;
}

.result-box strong {
  font-size: 24px;
  font-family: 'Poppins', sans-serif;
  color: #111827;
}

/* Stats */
.stats {
  padding: 24px 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -30px;
  position: relative;
  z-index: 3;
}

.stat-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid #f1f5f9;
  text-align: center;
}

.stat-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  color: #111827;
}

.stat-card p {
  color: #6b7280;
  font-weight: 600;
  margin-top: 4px;
  font-size: 14px;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 24px;
}

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

.tool-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: .25s ease;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.tool-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(245, 197, 24, .18), rgba(245, 197, 24, .06));
  color: #111827;
  font-size: 26px;
  margin-bottom: 18px;
  border: 1px solid rgba(245, 197, 24, .18);
}

.tool-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  margin-bottom: 8px;
  color: #111827;
}

.tool-card p {
  color: #6b7280;
  font-size: 15px;
  margin-bottom: 18px;
  min-height: 48px;
}

.tool-card a {
  color: #111827;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.tool-card a:hover {
  color: #c99700;
}

/* Categories */
.categories {
  background: #fafafa;
}

.category-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #eef2f7;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category-head {
  padding: 24px 24px 18px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #111827;
  color: var(--yellow);
  font-size: 22px;
  flex-shrink: 0;
}

.category-head h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  color: #111827;
  margin-bottom: 2px;
}

.category-head p {
  color: #6b7280;
  font-size: 14px;
}

.category-list {
  list-style: none;
  padding: 18px 24px 24px;
}

.category-list li + li {
  margin-top: 12px;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #eef2f7;
  color: #111827;
  font-weight: 600;
  transition: .2s ease;
}

.category-list a:hover {
  background: #fff8dd;
  border-color: #f7dea1;
}

.category-list span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

/* Latest tools */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.latest-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #eef2f7;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.latest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.latest-index {
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #111827;
  color: var(--yellow);
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}

.latest-card h4 {
  font-size: 18px;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 6px;
  color: #111827;
}

.latest-card p {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 10px;
}

.latest-card a {
  color: #111827;
  font-weight: 800;
}

.latest-card a:hover {
  color: #c99700;
}

/* SEO section */
.seo-content {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.seo-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
  margin-top: 32px;
}

.content-box {
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  border: 1px solid #eef2f7;
  box-shadow: var(--shadow);
}

.content-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  margin-bottom: 14px;
  color: #111827;
}

.content-box p {
  color: #596275;
  margin-bottom: 14px;
  font-size: 15px;
}

.check-list {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #374151;
  font-weight: 500;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111827;
  color: var(--yellow);
  font-size: 12px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* FAQ */
.faq-list {
  margin-top: 34px;
  display: grid;
  gap: 16px;
}

.faq-item {
  border: 1px solid #eef2f7;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question span:last-child {
  color: #6b7280;
  font-size: 22px;
  transition: transform .25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
}

.faq-answer p {
  color: #6b7280;
  padding-bottom: 22px;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.5s ease-in-out;
}

.faq-item.active .faq-question span:last-child {
  transform: rotate(45deg);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #111827 0%, #0b0b0b 100%);
  color: #fff;
}

.cta-box {
  border-radius: 30px;
  padding: 46px;
  background:
    radial-gradient(circle at top right, rgba(245, 197, 24, .15), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.cta-box p {
  color: rgba(255, 255, 255, .75);
  max-width: 620px;
}

/* Footer */
.site-footer {
  background: #0b0b0b;
  color: #fff;
  padding: 60px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr .9fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand p {
  color: rgba(255, 255, 255, .7);
  margin-top: 14px;
  max-width: 360px;
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  margin-bottom: 16px;
  color: #fff;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, .72);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid,
  .seo-wrap,
  .footer-top {
    grid-template-columns: 1fr;
  }

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

  .latest-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-copy {
    order: 1;
  }

  .hero-card {
    order: 2;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .header-search {
    display: none;
  }
  
  /* We use proper Bottom Nav App-feel instead of hamburger, so we hide it entirely */
  .menu-toggle {
    display: none !important;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- App-like UI Bottom Nav --- */
.mobile-bottom-nav {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  body {
    /* Padding bottom space for the fixed nav */
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 16px)); 
  }

  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #eef2f7;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  }

  /* Support for Dark Mode device status / app feel */
  @media (prefers-color-scheme: dark) {
    .mobile-bottom-nav {
      background: rgba(11, 11, 11, 0.95);
      border-top: 1px solid #27272a;
    }
    .mobile-bottom-nav .bottom-nav-item {
      color: #a1a1aa;
    }
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
  }

  .bottom-nav-item:active {
    transform: scale(0.95);
  }

  .bottom-nav-item svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease, fill 0.2s ease;
  }

  .bottom-nav-item.active {
    color: var(--yellow);
  }

  .bottom-nav-item.active svg {
    transform: translateY(-2px);
    fill: var(--yellow);
  }
}

  /* --- Mobile Sheet Overlay --- */
  .mobile-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

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

  .mobile-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card);
    border-radius: 24px 24px 0 0;
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 16px));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.1, 1, 0.2, 1);
  }

  .mobile-sheet-overlay.active .mobile-sheet-content {
    transform: translateY(0);
  }

  /* Support for Dark Mode device status / app feel overlay */
  @media (prefers-color-scheme: dark) {
    .mobile-sheet-content {
      background: var(--bg-soft);
      border-top: 1px solid #27272a;
    }
    .mobile-sheet-header h3 {
      color: #fff;
    }
  }

  .mobile-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }

  .mobile-sheet-header h3 {
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
  }

  .mobile-sheet-header button {
    background: rgba(128, 128, 128, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
  }

  .mobile-auth-card {
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.2);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 24px;
    text-align: center;
  }

  .mobile-auth-card p {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--yellow-dark);
  }

  .mobile-auth-actions {
    display: flex;
    gap: 12px;
  }
  
  .mobile-auth-actions .btn {
    padding: 10px;
    font-size: 14px;
  }

  .mobile-sheet-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-sheet-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f9fafb;
    font-weight: 600;
    font-size: 15px;
    color: #111827;
  }

  @media (prefers-color-scheme: dark) {
    .mobile-sheet-links a {
      background: rgba(255,255,255,0.05);
      color: #f3f4f6;
    }
  }

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 72px 0 56px;
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
  }

  .mini-fields {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .latest-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .latest-card {
    padding: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-tag {
    display: none;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .navbar {
    min-height: 68px;
  }

  .brand-title {
    font-size: 20px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .cta-box {
    padding: 28px;
  }

  .content-box,
  .tool-card,
  .stat-card {
    padding: 22px;
  }
}
