/* AllCalculator — premium homepage */
.home-page .sc-premium-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.home-page .sc-pstat {
  position: relative;
  padding: 1.25rem 1rem;
  background: linear-gradient(145deg, #ffffff 0%, #fdf5f6 100%);
  border-radius: 16px;
  border: 1px solid rgba(196, 30, 58, 0.15);
  box-shadow: 0 12px 32px rgba(26, 18, 20, 0.08);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.home-page .sc-pstat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C41E3A, #E8455A);
}

.home-page .sc-pstat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(196, 30, 58, 0.18);
}

.home-page .sc-pstat-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.35rem;
}

.home-page .sc-pstat-num {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: #9B1830;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.home-page .sc-pstat-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3d4f48;
  margin-top: 0.25rem;
}

.home-page .sc-pstat-sub {
  display: block;
  font-size: 0.72rem;
  color: #6b7d75;
  margin-top: 0.2rem;
}

/* Premium category browse row */
.home-page .sc-cat-premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.home-page .sc-cat-premium {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, #fff 0%, #f8fbf9 100%);
  border-radius: 14px;
  border: 1px solid rgba(196, 30, 58, 0.18);
  box-shadow: 0 8px 24px rgba(26, 36, 32, 0.06);
  color: #1a2420;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.home-page .sc-cat-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(196, 30, 58, 0.15);
  border-color: #C41E3A;
  color: #9B1830;
}

.home-page .sc-cat-premium-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(196, 30, 58, 0.12);
  border-radius: 12px;
  flex-shrink: 0;
}

.home-page .sc-cat-premium-body {
  flex: 1;
  min-width: 0;
}

.home-page .sc-cat-premium-body {
  text-align: center;
}

.home-page .sc-cat-premium-body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.home-page .sc-cat-premium-body span {
  display: block;
  font-size: 0.8rem;
  color: #6b7d75;
  line-height: 1.45;
}

.home-page .sc-cat-premium-arrow {
  font-size: 1.25rem;
  color: #C41E3A;
  font-weight: 700;
}

/* Home article block */
.home-page .sc-home-content {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}

.home-page .hm-article {
  margin-top: 0.5rem;
}

.home-page .hm-hero {
  text-align: center;
}

.home-page .hm-hero .cq-hero-title {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.home-page .hm-kw-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.home-page .hm-link {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(196, 30, 58, 0.25);
  color: #9B1830;
  transition: background 0.2s, transform 0.2s;
}

.home-page .hm-link:hover {
  background: rgba(196, 30, 58, 0.12);
  transform: translateY(-1px);
}

.home-page .hm-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  padding: 0 0 0.5rem;
}

.home-page .hm-feature-card {
  padding: 1rem;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(196, 30, 58, 0.12);
  box-shadow: 0 4px 16px rgba(26, 36, 32, 0.04);
}

.home-page .hm-feature-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.35rem;
}

.home-page .hm-feature-card strong {
  display: block;
  font-size: 0.82rem;
  color: #1a2420;
  margin-bottom: 0.2rem;
}

.home-page .hm-feature-card p {
  font-size: 0.72rem;
  color: #6b7d75;
  margin: 0;
  line-height: 1.45;
}

.home-page .hm-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.home-page .hm-cat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(196, 30, 58, 0.15);
  color: #1a2420;
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-page .hm-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(196, 30, 58, 0.12);
  color: #9B1830;
}

.home-page .hm-cat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(196, 30, 58, 0.1);
  border-radius: 11px;
}

.home-page .hm-cat-body {
  flex: 1;
}

.home-page .hm-cat-body strong {
  display: block;
  font-size: 0.9rem;
}

.home-page .hm-cat-body span {
  font-size: 0.78rem;
  color: #6b7d75;
}

.home-page .hm-cat-arrow {
  color: #C41E3A;
  font-weight: 700;
}

.home-page .hm-tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0 0.25rem;
}

.home-page .hm-tool-chip .hm-link {
  display: inline-block;
}

/* Card SEO tags */
.sc-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  margin-top: 0.55rem;
}

.sc-seo-tag {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  background: rgba(196, 30, 58, 0.1);
  color: #9B1830;
  border-radius: 6px;
  border: 1px solid rgba(196, 30, 58, 0.2);
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tool page article SEO tags */
.cq-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cq-seo-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.9);
  color: #9B1830;
  border-radius: 999px;
  border: 1px solid rgba(196, 30, 58, 0.28);
  letter-spacing: 0.02em;
}

/* Mobile horizontal scroll — Popular & Featured */
.sc-mobile-hint {
  display: none;
  font-size: 0.82rem;
  color: #6b7d75;
  margin: -0.35rem 0 0.85rem;
}

@media (max-width: 768px) {
  .sc-mobile-hint {
    display: block;
  }

  .home-page .sc-mobile-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 0.75rem;
    padding: 0.25rem 0.25rem 0.75rem;
    margin: 0 -0.25rem;
    grid-template-columns: unset;
  }

  .home-page .sc-mobile-scroll .sc-card {
    flex: 0 0 42vw;
    min-width: 148px;
    max-width: 200px;
    scroll-snap-align: start;
  }

  .home-page .sc-cat-premium-grid {
    grid-template-columns: 1fr;
  }

  .home-page .sc-premium-stats {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .home-page .hm-cat-grid {
    grid-template-columns: 1fr;
  }

  .home-page .sc-section-block {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Mobile header menu */
.sc-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: rgba(196, 30, 58, 0.12);
  border-radius: 10px;
  cursor: pointer;
}

.sc-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: #9B1830;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

body.sc-menu-open .sc-menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.sc-menu-open .sc-menu-btn span:nth-child(2) {
  opacity: 0;
}
body.sc-menu-open .sc-menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .sc-menu-btn {
    display: flex;
  }

  .sc-header {
    padding: 0 1rem;
  }

  .sc-nav {
    position: fixed;
    top: var(--header-h, 56px);
    right: 0;
    bottom: 0;
    width: min(280px, 85vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: #fff;
    border-left: 1px solid rgba(196, 30, 58, 0.2);
    box-shadow: -8px 0 32px rgba(26, 36, 32, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 200;
  }

  .sc-nav.sc-nav-open {
    transform: translateX(0);
  }

  .sc-nav a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
  }

  .sc-nav a:hover,
  .sc-nav a.active {
    background: rgba(196, 30, 58, 0.1);
  }

  body.sc-menu-open::before {
    content: '';
    position: fixed;
    inset: var(--header-h, 56px) 0 0 0;
    background: rgba(26, 36, 32, 0.4);
    z-index: 150;
  }
}
