/* =============================================
   Homepage v2 — Fresh professional UX
   Same brand colors, redesigned layout
   ============================================= */

/* Prevent horizontal scroll from carousel / grid bleed */
html, body { overflow-x: hidden; max-width: 100vw; }
main { overflow-x: clip; }

/* ══════ HERO ══════ */
.v2-hero {
  position: relative;
  padding: 72px 24px 48px;
  overflow: hidden;
  background: radial-gradient(ellipse at 15% 20%, rgba(36,113,163,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 85% 80%, rgba(243,156,18,0.08) 0%, transparent 50%),
              var(--bg);
}
.v2-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,82,118,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,82,118,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.v2-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Hero left */
.v2-hero-left { }
.v2-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(243,156,18,0.1);
  border: 1px solid rgba(243,156,18,0.3);
  border-radius: 100px;
  color: var(--accent-hover, #e67e22);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.v2-hero-badge .v2-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: v2-pulse 2s ease infinite;
}
@keyframes v2-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.v2-hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 20px;
}
.v2-hero h1 .v2-accent {
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.v2-hero h1 .v2-accent::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: 4px;
  height: 10px;
  background: var(--accent);
  opacity: 0.25;
  z-index: -1;
  border-radius: 4px;
}
.v2-hero-sub {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 520px;
}

/* Smart search */
.v2-search {
  position: relative;
  max-width: 560px;
  margin-bottom: 24px;
}
.v2-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 4px 20px rgba(26,82,118,0.05);
  transition: all 0.25s;
}
.v2-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(26,82,118,0.15);
}
.v2-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}
.v2-search-input {
  flex: 1;
  border: none;
  padding: 14px 8px;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
  outline: none;
  direction: rtl;
}
.v2-search-input::placeholder { color: var(--text-muted); }
.v2-search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.v2-search-btn:hover { background: var(--primary-dark, #0d3b6e); }
.v2-search-btn:active { transform: scale(0.97); }

/* Popular search tags */
.v2-quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.v2-quick-tags-label {
  color: var(--text-muted);
  font-weight: 600;
}
.v2-quick-tag {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}
.v2-quick-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface-2);
}

/* Hero right — visual card */
.v2-hero-right {
  display: flex;
  justify-content: center;
  position: relative;
}
.v2-hero-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 60px rgba(26,82,118,0.15);
  border: 1px solid var(--border);
  position: relative;
  animation: v2-float 6s ease-in-out infinite;
}
@keyframes v2-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.v2-hero-card-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.v2-hero-card h3 {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 4px;
}
.v2-hero-card .v2-calc-name {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 900;
  margin: 0 0 24px;
}
.v2-hero-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.v2-hero-stat {
  text-align: center;
  padding: 14px 8px;
  background: var(--surface-2);
  border-radius: 12px;
}
.v2-hero-stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  font-family: 'Cairo', sans-serif;
  line-height: 1;
}
.v2-hero-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.v2-hero-card-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.v2-hero-card-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  width: 73%;
  animation: v2-bar 3s ease-in-out infinite alternate;
}
@keyframes v2-bar {
  from { width: 50%; }
  to { width: 85%; }
}
.v2-hero-card-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ══════ LIVE STATS STRIP ══════ */
.v2-stats-strip {
  max-width: 1200px;
  margin: -32px auto 48px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.v2-stats-strip-inner {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(26,82,118,0.08);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
}
.v2-stat-block {
  padding: 24px 20px;
  text-align: center;
  border-inline-end: 1px solid var(--border);
  transition: background 0.2s;
}
.v2-stat-block:last-child { border-inline-end: none; }
.v2-stat-block:hover { background: var(--surface-2); }
.v2-stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,82,118,0.08);
  border-radius: 12px;
  color: var(--primary);
}
.v2-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  line-height: 1;
}
.v2-stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* ══════ SECTION BASE ══════ */
.v2-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}
.v2-section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 32px;
}
.v2-section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.v2-section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
.v2-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: gap 0.2s;
}
.v2-section-link:hover { gap: 10px; }

/* ══════ FEATURED CAROUSEL (Splide.js) ══════ */
.v2-featured-section {
  background: linear-gradient(180deg, transparent 0%, var(--surface-2) 50%, transparent 100%);
  padding: 24px 0;
}

/* Splide base overrides */
.v2-featured-slider {
  position: relative;
  padding: 0 0 48px;
}
.v2-featured-slider .splide__track {
  overflow: hidden;
  padding: 4px 4px 8px;
}
.v2-featured-slider .splide__list {
  align-items: stretch;
}
.v2-featured-slider .splide__slide {
  height: auto;
  display: flex;
}
.v2-featured-slider .splide__slide > a {
  width: 100%;
}

/* Splide arrows — overlay circular buttons on both sides of carousel */
.v2-featured-slider .splide__arrows {
  position: static;
}
.v2-featured-slider .splide__arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: var(--surface) !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  padding: 0 !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  opacity: 1;
  z-index: 10;
  margin: 0;
}
/* Site is RTL — use physical positions for clarity */
/* Prev (go back) button → right side of slider */
.v2-featured-slider .splide__arrow--prev {
  right: -22px !important;
  left: auto !important;
}
/* Next (go forward) button → left side of slider */
.v2-featured-slider .splide__arrow--next {
  left: -22px !important;
  right: auto !important;
}
.v2-featured-slider .splide__arrow:hover:not(:disabled) {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 8px 24px rgba(26,82,118,0.25);
}
.v2-featured-slider .splide__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.v2-featured-slider .splide__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
}

/* Splide pagination dots */
.v2-splide-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.v2-splide-dots li { list-style: none; }
.v2-splide-dots .splide__pagination__page {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.v2-splide-dots .splide__pagination__page:hover {
  background: var(--text-muted);
  transform: scale(1.3);
}
.v2-splide-dots .splide__pagination__page.is-active {
  background: var(--primary);
  width: 28px;
}

.v2-featured-card {
  position: relative;
  padding: 28px 26px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  border: 2px solid transparent;
  width: 100%;
}
.v2-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.v2-featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.6;
  z-index: 0;
}
.v2-featured-card > * { position: relative; z-index: 1; }

.v2-feat-new { background: linear-gradient(135deg, #dcfce7, #bbf7d0); border-color: rgba(21,128,61,0.2); }
.v2-feat-new .v2-feat-tag { background: #15803d; }
.v2-feat-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); border-color: rgba(30,58,138,0.2); }
.v2-feat-blue .v2-feat-tag { background: #1e3a8a; }
.v2-feat-amber { background: linear-gradient(135deg, #fef3c7, #fde68a); border-color: rgba(245,158,11,0.3); }
.v2-feat-amber .v2-feat-tag { background: #d97706; }
.v2-feat-teal { background: linear-gradient(135deg, #d1fae5, #a7f3d0); border-color: rgba(16,185,129,0.2); }
.v2-feat-teal .v2-feat-tag { background: #10b981; }
.v2-feat-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); border-color: rgba(91,33,182,0.2); }
.v2-feat-purple .v2-feat-tag { background: #7c3aed; }

.v2-feat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.v2-feat-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.7);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.v2-feat-icon svg {
  width: 26px;
  height: 26px;
}
.v2-feat-new .v2-feat-icon { color: #15803d; }
.v2-feat-blue .v2-feat-icon { color: #1e3a8a; }
.v2-feat-amber .v2-feat-icon { color: #b45309; }
.v2-feat-teal .v2-feat-icon { color: #065f46; }
.v2-feat-purple .v2-feat-icon { color: #5b21b6; }
.v2-feat-tag {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.v2-feat-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.5;
}
.v2-feat-desc {
  font-size: 0.88rem;
  color: rgba(15,23,42,0.7);
  line-height: 1.7;
  margin: 0 0 auto;
  padding-bottom: 14px;
}
.v2-feat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 14px;
}
.v2-feat-cta svg {
  transition: transform 0.2s;
}
.v2-featured-card:hover .v2-feat-cta svg {
  transform: translateX(-4px);
}

/* ══════ CATEGORIES RAIL ══════ */
.v2-cat-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.v2-cat-item {
  padding: 24px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.v2-cat-item::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at top right, var(--cat-color, var(--primary)), transparent 70%);
  opacity: 0.1;
  pointer-events: none;
}
.v2-cat-item:hover {
  border-color: var(--cat-color, var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.v2-cat-item:hover::before { opacity: 0.2; }

.v2-cat-icon-wrap {
  width: 54px;
  height: 54px;
  background: var(--cat-light, rgba(26,82,118,0.08));
  color: var(--cat-color, var(--primary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.v2-cat-icon-wrap svg {
  width: 26px;
  height: 26px;
}
.v2-cat-item:hover .v2-cat-icon-wrap {
  background: var(--cat-color, var(--primary));
  color: #fff;
  transform: scale(1.05);
}
.v2-cat-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
}
.v2-cat-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Category color accents */
.v2-cat-item[data-cat="rawatib"] { --cat-color: #2471a3; --cat-light: rgba(36,113,163,0.1); }
.v2-cat-item[data-cat="qurud"] { --cat-color: #8e44ad; --cat-light: rgba(142,68,173,0.1); }
.v2-cat-item[data-cat="zakat"] { --cat-color: #27ae60; --cat-light: rgba(39,174,96,0.1); }
.v2-cat-item[data-cat="daraeb"] { --cat-color: #e67e22; --cat-light: rgba(230,126,34,0.1); }
.v2-cat-item[data-cat="dhahab"] { --cat-color: #d4a017; --cat-light: rgba(212,160,23,0.1); }
.v2-cat-item[data-cat="umlat"] { --cat-color: #16a085; --cat-light: rgba(22,160,133,0.1); }
.v2-cat-item[data-cat="mutanawia"] { --cat-color: #636e72; --cat-light: rgba(99,110,114,0.1); }
.v2-cat-item[data-cat="hayah"] { --cat-color: #1abc9c; --cat-light: rgba(26,188,156,0.1); }
.v2-cat-item[data-cat="sihha"] { --cat-color: #e74c3c; --cat-light: rgba(231,76,60,0.1); }
.v2-cat-item[data-cat="talim"] { --cat-color: #9b59b6; --cat-light: rgba(155,89,182,0.1); }

/* ══════ TOOLS GRID + FILTER ══════ */
.v2-tools-filter {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  margin: 0 -24px 28px;
}
.v2-tools-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.v2-filter-search {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.v2-filter-search svg {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.v2-filter-search input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}
.v2-filter-search input:focus {
  border-color: var(--primary);
}

.v2-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}
.v2-filter-chips::-webkit-scrollbar { display: none; }
.v2-filter-chip {
  padding: 8px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.v2-filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.v2-filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,82,118,0.25);
}

/* ══════ FAVORITES & RECENT SECTION (homepage) ══════ */
.v2-fav-section {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.v2-fav-group {
  margin-bottom: 20px;
}
.v2-fav-group-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.v2-fav-group-title svg {
  color: var(--accent);
}
.v2-fav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v2-fav-chip {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.v2-fav-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.v2-fav-chip--recent {
  background: var(--surface-2);
  border-style: dashed;
}

@media (max-width: 640px) {
  .v2-fav-section { padding: 0 16px; margin-bottom: 16px; }
  .v2-fav-chip { font-size: 0.82rem; padding: 7px 12px; }
}

/* ══════ FAVORITE BUTTON (on tool pages) ══════ */
.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 5;
  font-family: inherit;
}
.fav-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s, color 0.2s;
  stroke-width: 2;
}
.fav-btn .fav-label {
  display: none;
}
.fav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(243,156,18,0.05);
}
.fav-btn:hover svg {
  transform: scale(1.1);
}
.fav-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(243,156,18,0.3);
}
.fav-btn.is-active svg {
  fill: #fff;
  animation: fav-pop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fav-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35) rotate(-8deg); }
  70% { transform: scale(1.1) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

/* Floating version — on tool-hero (dark background), top-end corner */
.fav-btn--floating {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  inset-inline-start: auto;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.fav-btn--floating:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  transform: scale(1.05);
}
.fav-btn--floating.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(243,156,18,0.4);
}

/* Inline version (below breadcrumb, light bg) */
.fav-btn--inline {
  margin: 8px 0;
}

@media (max-width: 640px) {
  .fav-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .fav-btn svg {
    width: 16px;
    height: 16px;
  }
  .fav-btn--floating {
    top: 12px;
    inset-inline-end: 12px;
    inset-inline-start: auto;
  }
}

/* Fav toast */
.fav-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 9998;
}
.fav-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════ LOAD MORE + EMPTY STATE ══════ */
.v2-load-more-wrap {
  text-align: center;
  margin-top: 36px;
}
.v2-load-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.v2-load-more:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26,82,118,0.2);
}
.v2-load-more .lm-count {
  background: rgba(243,156,18,0.15);
  color: var(--accent-hover, #e67e22);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 800;
}
.v2-load-more:hover .lm-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.v2-load-more svg {
  transition: transform 0.25s;
}
.v2-load-more:hover svg {
  transform: translateY(2px);
}

.v2-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.v2-empty-state svg {
  color: var(--border);
  margin-bottom: 16px;
}
.v2-empty-state h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}
.v2-empty-state p {
  font-size: 0.92rem;
  margin: 0;
}

/* ══════ WHY SECTION ══════ */
.v2-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.v2-why-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  transition: all 0.25s;
}
.v2-why-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.v2-why-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(26,82,118,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.v2-why-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
}
.v2-why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ══════ TRUST / SOURCES SECTION ══════ */
.v2-trust-section {
  padding-top: 0;
}
.v2-trust-card {
  background: linear-gradient(135deg, rgba(26,82,118,0.03), rgba(243,156,18,0.03));
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.v2-trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(243,156,18,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.v2-trust-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}
.v2-trust-header > svg {
  color: var(--accent);
  flex-shrink: 0;
  background: rgba(243,156,18,0.1);
  width: 56px;
  height: 56px;
  padding: 14px;
  border-radius: 14px;
}
.v2-trust-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 4px;
}
.v2-trust-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
.v2-trust-sources {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  position: relative;
}
.v2-trust-source {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s;
}
.v2-trust-source:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.v2-trust-source-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.5;
}
.v2-trust-source-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.v2-trust-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  border-inline-start: 3px solid var(--accent);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.v2-trust-note svg {
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .v2-trust-sources { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .v2-trust-card { padding: 24px 20px; border-radius: 16px; }
  .v2-trust-header { gap: 12px; margin-bottom: 20px; }
  .v2-trust-header > svg { width: 48px; height: 48px; padding: 12px; }
  .v2-trust-title { font-size: 1.15rem; }
  .v2-trust-sub { font-size: 0.85rem; }
  .v2-trust-sources { grid-template-columns: 1fr; gap: 10px; }
}

/* ══════ COMPARISON SECTION (Us vs Them) ══════ */
.v2-compare-section {
  padding-top: 0;
}
.v2-compare-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}
.v2-compare-col {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.3s;
}
.v2-compare-us {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(26,82,118,0.03), var(--surface));
  box-shadow: 0 12px 40px rgba(26,82,118,0.08);
  transform: scale(1.02);
  z-index: 1;
}
.v2-compare-them {
  opacity: 0.9;
}
.v2-compare-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.v2-compare-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.v2-compare-badge-them {
  background: var(--surface-2);
  color: var(--text-muted);
}
.v2-compare-head h3 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
  margin: 0;
}
.v2-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v2-compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}
.v2-compare-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 2px;
  border-radius: 50%;
}
.v2-compare-list li.v2-ok svg {
  color: #fff;
  background: var(--success, #27ae60);
}
.v2-compare-list li.v2-no svg {
  color: #fff;
  background: #cbd5e1;
}
.v2-compare-list li.v2-ok span {
  color: var(--text);
  font-weight: 600;
}
.v2-compare-list li.v2-no span {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .v2-compare-table { grid-template-columns: 1fr; gap: 16px; }
  .v2-compare-us { transform: none; }
  .v2-compare-col { padding: 22px 20px; border-radius: 16px; }
  .v2-compare-head h3 { font-size: 1.05rem; }
}

/* ══════ BLOG PREVIEW STRIP ══════ */
.v2-blog-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.v2-blog-item {
  padding: 24px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  display: block;
}
.v2-blog-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.v2-blog-cat {
  display: inline-block;
  padding: 3px 10px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.v2-blog-item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.5;
}
.v2-blog-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 14px;
}
.v2-blog-read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ══════ RESPONSIVE ══════ */
@media (max-width: 960px) {
  .v2-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .v2-hero-right { order: -1; display: none; }
  .v2-stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .v2-stat-block:nth-child(even) { border-inline-end: none; }
  .v2-stat-block:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .v2-cat-rail { grid-template-columns: repeat(3, 1fr); }
  .v2-why-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-blog-strip { grid-template-columns: 1fr; }
  .v2-featured-slider .splide__arrow--prev { right: -8px !important; }
  .v2-featured-slider .splide__arrow--next { left: -8px !important; }
}
@media (max-width: 640px) {
  .v2-hero { padding: 48px 20px 32px; }
  .v2-hero h1 { font-size: 2.1rem; }
  .v2-hero-sub { font-size: 1rem; }
  .v2-search-box { padding: 4px 4px 4px 14px; border-radius: 12px; }
  .v2-search-input { padding: 10px 6px; font-size: 0.95rem; }
  .v2-search-btn { padding: 10px 16px; font-size: 0.85rem; border-radius: 10px; }
  .v2-stats-strip { margin-top: -24px; padding: 0 16px; }
  .v2-stat-value { font-size: 1.3rem; }
  .v2-stat-label { font-size: 0.75rem; }
  .v2-section { padding: 44px 20px; }
  .v2-section-title { font-size: 1.5rem; }
  .v2-section-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
  .v2-cat-rail { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .v2-cat-item { padding: 18px 12px; }
  .v2-cat-icon-wrap { width: 46px; height: 46px; }
  .v2-cat-icon-wrap svg { width: 22px; height: 22px; }
  .v2-cat-name { font-size: 0.88rem; }
  .v2-why-grid { grid-template-columns: 1fr; }
  .v2-featured-card { padding: 22px 20px; min-height: 220px; }
  .v2-featured-slider .splide__arrow { width: 40px !important; height: 40px !important; }
  .v2-featured-slider .splide__arrow svg { width: 18px; height: 18px; }
  .v2-featured-slider .splide__arrow--prev { right: 4px !important; }
  .v2-featured-slider .splide__arrow--next { left: 4px !important; }
  .v2-tools-filter { position: static; margin: 0 -20px 20px; padding: 14px 20px; }
  .v2-filter-chips { width: 100%; }
}
