﻿/* =========================================================
   CalcHub - Main Stylesheet
   ========================================================= */

/* Ã¢â€â‚¬Ã¢â€â‚¬ CSS Variables Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
:root {
  --primary:        #10b981;
  --primary-dark:   #059669;
  --primary-light:  #34d399;
  --secondary:      #0d9488;
  --accent:         #06b6d4;
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --dark:           #0f172a;
  --dark-2:         #1e293b;
  --dark-3:         #334155;
  --gray:           #64748b;
  --gray-light:     #94a3b8;
  --border:         #e2e8f0;
  --light:          #f8fafc;
  --white:          #ffffff;

  --health:    #10b981;
  --finance:   #f59e0b;
  --education: #3b82f6;
  --math:      #8b5cf6;
  --fitness:   #ef4444;
  --everyday:  #06b6d4;

  --shadow-sm:  0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  --shadow:     0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-md:  0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-lg:  0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --shadow-xl:  0 25px 50px -12px rgb(0 0 0 / .25);

  --radius-sm:  0.375rem;
  --radius:     0.75rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;

  --transition: all 0.25s ease;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Base Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--dark-2);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

.fw-800 { font-weight: 800; }

img { max-width: 100%; height: auto; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Skip Link Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.skip-link:focus {
  position: fixed; top: 0; left: 0; z-index: 9999;
  padding: .5rem 1rem; background: var(--primary); color: #fff;
  text-decoration: none; font-weight: 600;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Navbar Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
#mainNav {
  background: #ffffff;
  padding: .875rem 0;
  transition: var(--transition);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

#mainNav.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: .625rem 0;
  box-shadow: 0 2px 16px rgba(0,0,0,.09);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.4px;
  color: #0f172a;
  -webkit-text-fill-color: unset;
  background: none;
}
.navbar-brand:hover { color: #0f172a; }

.navbar-brand-icon {
  width: 34px; height: 34px;
  background: #2563eb;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .9rem;
  flex-shrink: 0;
}

.navbar-nav .nav-link {
  font-weight: 600;
  font-size: .9375rem;
  padding: .5rem .75rem !important;
  border-radius: var(--radius-sm);
  transition: color .18s, background .18s;
  color: #4b5563 !important;
  position: relative;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav-link-icon { font-size: .75rem; opacity: .7; }

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: .75rem; right: .75rem;
  height: 2.5px;
  border-radius: 999px;
  background: #4f46e5;
  transform: scaleX(0);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
  transform-origin: center;
}
/* Don't override Bootstrap dropdown arrow */
.navbar-nav .dropdown-toggle::after { position: static !important; }

.navbar-nav .nav-link:hover {
  color: #111827 !important;
  background: #f9fafb;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-nav .nav-link.active {
  color: #4f46e5 !important;
  background: #eef2ff;
  font-weight: 700;
}

.btn-nav-cta {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: .875rem;
  padding: .5rem 1.125rem !important;
  border-radius: .625rem;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(79,70,229,.3);
  gap: .4rem;
}
.btn-nav-cta:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(79,70,229,.4);
}

/* Mobile search icon button */
.nav-mobile-search-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6;
  border-radius: 8px;
  color: #374151;
  font-size: .9rem;
  transition: background .15s;
  text-decoration: none;
}
.nav-mobile-search-btn:hover { background: #e5e7eb; color: #111; }

/* Pill search form */
.nav-search-form { align-items: center; }
.nav-search-inner {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search-icon {
  position: absolute;
  left: .875rem;
  color: #9ca3af;
  font-size: .8125rem;
  pointer-events: none;
  z-index: 1;
}
.nav-search-input {
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  padding: .4375rem .875rem .4375rem 2.25rem;
  font-size: .875rem;
  width: 220px;
  background: #f9fafb;
  color: #111;
  transition: border-color .2s, box-shadow .2s, width .3s ease, background .2s;
  outline: none;
  font-family: var(--font);
}
.nav-search-input::placeholder { color: #9ca3af; }
.nav-search-input:focus {
  border-color: #4f46e5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
  width: 270px;
}
/* Mobile search inside collapse */
.d-lg-none .nav-search-inner { width: 100%; }
.d-lg-none .nav-search-input { width: 100%; border-radius: 999px; }

/* Dropdown */
.dropdown-menu-calc {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  min-width: 240px;
  background: var(--white);
}

.dropdown-menu-calc .dropdown-item {
  border-radius: var(--radius-sm);
  padding: .5rem .875rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-2);
  transition: var(--transition);
}

.dropdown-menu-calc .dropdown-item:hover {
  background: var(--primary);
  color: #fff;
}

.dropdown-menu-calc .dropdown-item:hover .cat-icon-sm {
  background: rgba(255,255,255,.2) !important;
  color: #fff !important;
}

.cat-icon-sm {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem;
  flex-shrink: 0;
  transition: var(--transition);
}

/* Search */
.nav-search .form-control {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border: 1px solid #d1d5db;
  border-right: none;
  background: #f9fafb;
  color: #374151;
  font-size: 1rem;
  width: 220px;
}

.nav-search .form-control::placeholder { color: #9ca3af; }
.nav-search .form-control:focus {
  background: #fff;
  box-shadow: none;
  color: #111;
  outline: none;
  border-color: #2563eb;
}

.nav-search .btn-primary {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #2563eb;
  border-color: #2563eb;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Breadcrumb Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.breadcrumb-bar {
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  padding: .625rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.breadcrumb-bar .breadcrumb { margin: 0; }
.breadcrumb-bar .breadcrumb-item,
.breadcrumb-bar .breadcrumb-item a { color: rgba(255,255,255,.7); font-size: .9375rem; }
.breadcrumb-bar .breadcrumb-item a:hover { color: #fff; }
.breadcrumb-bar .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Hero Section Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1a0533 50%, var(--dark-2) 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99,102,241,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139,92,246,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(6,182,212,.1) 0%, transparent 50%);
}

.hero-section .container { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin-bottom: 2rem;
}

/* Hero Search */
.hero-search .input-group {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
}

.hero-search .form-control {
  border: none;
  padding: .875rem 1.25rem;
  font-size: 1rem;
  border-radius: 0;
  background: #fff;
}

.hero-search .form-control:focus { box-shadow: none; }

.hero-search .btn-search {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  padding: .875rem 1.75rem;
  font-weight: 600;
  font-size: .9375rem;
  color: #fff;
  white-space: nowrap;
}

.hero-search .btn-search:hover {
  background: linear-gradient(135deg, var(--primary-dark), #0d9488);
  color: #fff;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat span {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Floating cards */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-float {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  color: #fff;
  animation: float 4s ease-in-out infinite;
}

.hero-card-float:nth-child(2) { animation-delay: -1s; }
.hero-card-float:nth-child(3) { animation-delay: -2s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Section Layout Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .75rem;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1rem;
  max-width: 560px;
}

.section-header { margin-bottom: 3rem; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Category Cards Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  display: block;
  color: inherit;
  height: 100%;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: inherit;
  text-decoration: none;
}

.category-icon {
  width: 70px; height: 70px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(-5deg);
}

.category-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .375rem;
  color: var(--dark);
}

.category-card p {
  font-size: .9375rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.55;
}

.category-count {
  display: inline-block;
  font-size: .875rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
  margin-top: .75rem;
  background: var(--light);
  color: var(--gray);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Calculator Cards Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.calc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: inherit;
  text-decoration: none;
}

.calc-card-header {
  padding: 1.5rem 1.5rem 0;
}

.calc-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
}

.calc-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .375rem;
  color: var(--dark);
}

.calc-card p {
  font-size: .9375rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

.calc-card-footer {
  padding: 1rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.calc-card-footer .cat-badge {
  font-size: .8125rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.calc-card-footer .arrow {
  color: var(--primary);
  font-size: .875rem;
  transition: var(--transition);
}

.calc-card:hover .arrow { transform: translateX(4px); }

.calc-card-body { padding: 0 1.5rem; flex: 1; display: flex; flex-direction: column; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Calculator Tool Page Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.calc-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 3.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.calc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,.12) 0%, transparent 60%);
}

.calc-hero .container { position: relative; z-index: 1; }

.calc-hero-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}

.calc-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
  margin-bottom: .75rem;
}

.calc-hero .lead {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  max-width: 600px;
}

/* Calculator Tool Card */
.calc-page-body {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.calc-tool-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border);
}

.calc-tool-header {
  background: #0f172a;
  padding: 1.25rem 1.75rem;
  color: #fff;
}

.calc-tool-header h2 {
  font-size: 1.125rem;
  color: #fff;
  margin: 0;
  font-weight: 600;
}

.calc-tool-body { padding: 2rem; }

/* Form Styling */
.form-label {
  font-weight: 600;
  font-size: .875rem;
  color: var(--dark-2);
  margin-bottom: .375rem;
}

.form-control, .form-select {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: .625rem .875rem;
  font-size: .9375rem;
  font-family: var(--font);
  transition: var(--transition);
  background: var(--white);
  color: var(--dark-2);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.12);
  outline: none;
}

/* Toggle Units */
.unit-toggle {
  display: flex;
  background: var(--light);
  border-radius: var(--radius);
  padding: .25rem;
  gap: .25rem;
  width: fit-content;
  margin-bottom: .75rem;
}

.unit-toggle .btn {
  padding: .375rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  border-radius: calc(var(--radius) - .2rem);
  border: none;
  color: var(--gray);
  background: transparent;
  transition: var(--transition);
}

.unit-toggle .btn.active {
  background: var(--white);
  color: #10b981;
  box-shadow: var(--shadow-sm);
}

/* Calculate Button */
.btn-calculate {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: .875rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  width: 100%;
  transition: var(--transition);
  letter-spacing: .025em;
  box-shadow: 0 4px 15px rgba(15,23,42,.3);
}

.btn-calculate:hover {
  transform: translateY(-2px);
  background: #1e293b;
  box-shadow: 0 8px 25px rgba(15,23,42,.45);
  color: #fff;
}

.btn-calculate:active { transform: translateY(0); }

.btn-reset {
  background: var(--light);
  color: var(--gray);
  border: 2px solid var(--border);
  padding: .875rem 2rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.btn-reset:hover { background: var(--border); color: var(--dark-2); }

/* Results Panel */
.result-panel {
  display: none;
  animation: slideUp .4s ease;
}

.result-panel.show { display: block; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-card {
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
}

.result-card.primary {
  background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
  border-color: transparent;
  color: #fff;
}

.result-card.success {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #6ee7b7;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .25rem;
}

.result-label {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
}

.result-unit {
  font-size: .9rem;
  font-weight: 500;
  opacity: .8;
  margin-top: .25rem;
}

/* Result Grid */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.result-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.result-item .value {
  font-size: 1.375rem;
  font-weight: 800;
  color: #10b981;
  display: block;
  line-height: 1;
  margin-bottom: .25rem;
}

.result-item .label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* BMI Gauge */
.bmi-gauge {
  position: relative;
  margin: 1.5rem auto;
  max-width: 380px;
}

.bmi-bar {
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(to right, #3b82f6 0%, #22c55e 25%, #f59e0b 50%, #ef4444 75%, #991b1b 100%);
  position: relative;
  overflow: visible;
}

.bmi-pointer {
  position: absolute;
  top: -6px;
  width: 32px;
  height: 32px;
  background: var(--white);
  border: 3px solid var(--dark-2);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left 0.8s cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
}

.bmi-pointer::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--dark-2);
  border-radius: 50%;
}

.bmi-labels {
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
  font-size: .7rem;
  color: var(--gray);
  font-weight: 600;
}

/* ── Universal Calc Visual Layout ───────────────────────────────────────── */
.calc-visual-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
}
.calc-visual-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.calc-visual-svg {
  width: 100%;
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.10));
  animation: calcVisualIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes calcVisualIn {
  from { transform: scale(.7) translateY(15px); opacity: 0; }
  to   { transform: scale(1)  translateY(0);    opacity: 1; }
}
.calc-visual-label {
  font-size: .8125rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.calc-data-wrap { min-width: 0; }
@media (max-width: 640px) {
  .calc-visual-layout { grid-template-columns: 1fr; }
  .calc-visual-wrap { flex-direction: row; justify-content: center; }
}

/* BMI Scale Visual */
.bmi-result-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.bmi-scale-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.bmi-scale-svg {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.12));
  animation: scaleIn .5s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes scaleIn {
  from { transform: scale(.7) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0);    opacity: 1; }
}

.bmi-scale-status {
  font-size: .875rem;
  font-weight: 700;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: var(--light);
  color: var(--gray);
  text-align: center;
  transition: all .3s;
}

/* Age Person Visual */
.age-result-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
}

.age-person-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625rem;
}

.age-person-svg {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(99,102,241,.2));
  animation: personIn .5s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes personIn {
  from { transform: scale(.6) translateY(30px); opacity: 0; }
  to   { transform: scale(1) translateY(0);     opacity: 1; }
}

.age-person-stage {
  font-size: .8125rem;
  font-weight: 700;
  color: #6366f1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.age-data-wrap { min-width: 0; }

@media (max-width: 600px) {
  .bmi-result-layout { grid-template-columns: 1fr; }
  .bmi-scale-wrap { flex-direction: row; justify-content: center; }
  .age-result-layout { grid-template-columns: 1fr; }
  .age-person-wrap { flex-direction: row; justify-content: center; }
}

/* ── Palworld Breeding Calculator ────────────────────────── */
.pal-breed-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .875rem;
  flex-wrap: wrap;
  background: #0f172a;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
}
.pal-slot {
  width: 130px;
  min-height: 130px;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: .875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  padding: .75rem .5rem;
  text-align: center;
}
.pal-slot:hover  { border-color: #475569; background: #243047; }
.pal-slot-active { border-color: #10b981 !important; box-shadow: 0 0 0 3px #10b98133; }
.pal-slot-result { border-color: #eab308; }
.pal-slot-pulse  { animation: palPulse .4s ease; }
@keyframes palPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); box-shadow: 0 0 0 8px #6366f122; }
  100% { transform: scale(1); }
}
.pal-slot-elem { font-size: 1.75rem; line-height: 1; margin-bottom: .25rem; }
.pal-slot-name { font-size: .72rem; font-weight: 700; color: #e2e8f0; margin-top: .2rem; line-height: 1.25; word-break: break-word; }
.pal-slot-hint  { font-size: .62rem; color: #475569; margin-top: .2rem; }
.pal-breed-op   { font-size: 1.75rem; font-weight: 900; color: #10b981; flex-shrink: 0; line-height: 1; }
/* Card grid */
.pal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: .625rem;
  max-height: 420px;
  overflow-y: auto;
  padding: .25rem .125rem .5rem;
}
.pal-card {
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: .75rem;
  padding: .625rem .375rem .5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  user-select: none;
}
.pal-card:hover       { border-color: #6366f1; background: #1e2840; transform: translateY(-1px); }
.pal-card.sel-p1      { border-color: #10b981; background: #0d2a1e; }
.pal-card.sel-p2      { border-color: #3b82f6; background: #0d1e3a; }
.pal-card.sel-target  { border-color: #eab308; background: #1e1a06; }
.pal-card-elem-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  margin: 0 auto .4rem;
}
.pal-card-name   { font-size: .68rem; font-weight: 700; color: #e2e8f0; line-height: 1.2; margin-bottom: .3rem; }
.pal-card-rarity { display: inline-block; font-size: .6rem; font-weight: 700; padding: .1rem .45rem; border-radius: 1rem; }
.rarity-common    { background: #334155; color: #94a3b8; }
.rarity-rare      { background: #1d4ed8; color: #bfdbfe; }
.rarity-epic      { background: #7c3aed; color: #ddd6fe; }
.rarity-legendary { background: #92400e; color: #fde68a; }
/* Reverse result header */
.pal-result-header {
  display: flex; align-items: center; gap: .875rem;
  background: #0f172a; border-radius: .875rem;
  padding: .875rem 1.25rem; margin-bottom: .75rem;
}
.pal-elem-circle {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
/* Active tab override */
.pal-tab-active,
.pal-tab-active:hover { background: #6366f1 !important; border-color: #6366f1 !important; color: #fff !important; }
@media (max-width: 576px) {
  .pal-breed-header { gap: .375rem; padding: 1rem .5rem; }
  .pal-slot { width: 85px; min-height: 85px; }
  .pal-slot-elem { font-size: 1.35rem; }
  .pal-breed-op { font-size: 1.25rem; }
  .pal-card-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); max-height: 340px; }
}

/* ── Flatpickr custom theme ──────────────────────────────── */
.flatpickr-calendar {
  font-family: Inter, sans-serif !important;
  border-radius: 1rem !important;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.18) !important;
  border: 1.5px solid #e2e8f0 !important;
  overflow: hidden;
}
.flatpickr-months {
  background: #4f46e5 !important;
  padding: .5rem 0;
  border-radius: 0 !important;
}
.flatpickr-month,
.flatpickr-prev-month,
.flatpickr-next-month {
  color: #fff !important;
  fill: #fff !important;
}
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg { fill: #c7d2fe !important; }
.flatpickr-current-month .cur-month,
.flatpickr-current-month .numInputWrapper input {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}
.flatpickr-current-month .numInputWrapper span svg { stroke: #c7d2fe !important; }
.flatpickr-weekdays { background: #4f46e5 !important; }
span.flatpickr-weekday {
  color: #c7d2fe !important;
  font-weight: 600 !important;
  font-size: .75rem !important;
}
.flatpickr-day {
  border-radius: .5rem !important;
  font-weight: 500 !important;
  color: #1e293b !important;
}
.flatpickr-day:hover {
  background: #eef2ff !important;
  border-color: #eef2ff !important;
  color: #4f46e5 !important;
}
.flatpickr-day.today {
  border-color: #10b981 !important;
  color: #10b981 !important;
  font-weight: 700 !important;
}
.flatpickr-day.today:hover {
  background: #d1fae5 !important;
  color: #065f46 !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: #cbd5e1 !important;
  cursor: not-allowed;
}
.flatpickr-input {
  cursor: pointer !important;
}
.flatpickr-input.active { border-color: #4f46e5 !important; box-shadow: 0 0 0 3px rgba(79,70,229,.15) !important; }

/* Amortization Table */
.amort-table-wrap {
  max-height: 400px;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.amort-table {
  font-size: .82rem;
  margin: 0;
}

.amort-table th {
  background: var(--dark-2);
  color: #fff;
  font-weight: 600;
  font-size: .75rem;
  position: sticky;
  top: 0;
}

/* Chart Container */
.chart-container {
  position: relative;
  margin: 1.5rem 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Content / Blog Section Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.content-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.content-section h2 {
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
  color: var(--dark);
}

.content-section h2:first-child { margin-top: 0; }

.content-section h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: .75rem;
  color: var(--dark-2);
}

.content-section p { color: var(--dark-3); line-height: 1.75; }

.content-section ul, .content-section ol {
  padding-left: 1.5rem;
  color: var(--dark-3);
  line-height: 1.75;
}

.content-section li { margin-bottom: .375rem; }

.content-section strong { color: var(--dark); }

.content-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 1rem 0;
}

.content-section table th,
.content-section table td {
  padding: .625rem .875rem;
  border: 1px solid var(--border);
  text-align: left;
}

.content-section table th { background: var(--light); font-weight: 600; }
.content-section table tr:nth-child(even) td { background: var(--light); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Sidebar Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-card-header {
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  padding: .875rem 1.25rem;
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
}

.sidebar-card-body { padding: 1.25rem; }

.related-calc-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--dark-2);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.related-calc-link:last-child { border-bottom: none; }

.related-calc-link:hover {
  background: var(--light);
  color: var(--primary);
  text-decoration: none;
  padding-left: 1rem;
}

.related-calc-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  color: #fff;
  flex-shrink: 0;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ How It Works Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.how-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.how-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.15) 0%, transparent 60%);
}

.how-section .container { position: relative; z-index: 1; }
.how-section .section-title { color: #fff; }
.how-section .section-subtitle { color: rgba(255,255,255,.65); }

.how-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}

.how-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}

.how-step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 20px rgba(99,102,241,.4);
}

.how-card h3 { color: #fff; font-size: 1rem; margin-bottom: .5rem; }
.how-card p { color: rgba(255,255,255,.6); font-size: .875rem; margin: 0; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Featured / Popular Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.section-bg-white { background: var(--white); }
.section-bg-light { background: var(--light); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Search Results Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.search-hero {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  padding: 3rem 0;
}

.search-hero h1 { color: #fff; font-size: 1.75rem; }

.search-results-count {
  color: var(--gray);
  font-size: .9375rem;
  margin-bottom: 1.5rem;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.no-results .icon { font-size: 4rem; opacity: .2; margin-bottom: 1.5rem; }
.no-results h3 { color: var(--dark-2); }
.no-results p { color: var(--gray); }

/* Ã¢â€â‚¬Ã¢â€â‚¬ About / Contact Pages Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.page-hero {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  padding: 4rem 0 3rem;
}

.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-hero p { color: rgba(255,255,255,.7); }

.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
}

.about-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.about-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Footer Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
}

.footer-top { padding: 4rem 0 2.5rem; }

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: .75rem;
}

.footer-tagline {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: .75rem;
}

.footer-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: .625rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-heading {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: .5rem; }

.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: .25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  font-size: .875rem;
  color: rgba(255,255,255,.45);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Back to Top Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.btn-back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.btn-back-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-back-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Utilities Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.badge-cat {
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Input Group Addons */
.input-group-text {
  background: var(--light);
  border: 2px solid var(--border);
  color: var(--gray);
  font-size: .875rem;
}

.input-group .form-control:not(:first-child) { border-left: none; }
.input-group .form-control:not(:last-child) { border-right: none; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Scientific Calculator UI Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.sci-calc {
  background: var(--dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 420px;
  margin: 0 auto;
}

.sci-display {
  background: var(--dark-2);
  padding: 1.25rem 1.5rem;
  text-align: right;
}

.sci-display .expr {
  font-size: .875rem;
  color: rgba(255,255,255,.4);
  min-height: 1.5em;
  word-break: break-all;
}

.sci-display .result {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  word-break: break-all;
  line-height: 1.2;
}

.sci-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--dark-3);
}

.sci-btn {
  background: var(--dark-2);
  border: none;
  color: #fff;
  padding: .875rem .5rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  font-family: var(--font);
}

.sci-btn:hover { background: var(--dark-3); }
.sci-btn:active { background: rgba(99,102,241,.3); }
.sci-btn.operator { background: rgba(99,102,241,.2); color: var(--primary-light); }
.sci-btn.operator:hover { background: rgba(99,102,241,.35); }
.sci-btn.equals {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.sci-btn.equals:hover { opacity: .9; }
.sci-btn.clear { background: rgba(239,68,68,.2); color: #fca5a5; }
.sci-btn.clear:hover { background: rgba(239,68,68,.35); }
.sci-btn.fn { background: rgba(255,255,255,.05); color: var(--gray-light); font-size: .78rem; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ GPA Dynamic Rows Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.gpa-table .form-control { padding: .375rem .625rem; font-size: .875rem; }
.gpa-table td { vertical-align: middle; }
.gpa-table .btn-sm { padding: .25rem .5rem; }

/* Ã¢â€â‚¬Ã¢â€â‚¬ Unit Converter Tabs Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.unit-cat-tabs { border-bottom: none; gap: .375rem; flex-wrap: wrap; }
.unit-cat-tabs .nav-link {
  border-radius: 999px !important;
  background: var(--light);
  color: var(--gray);
  border: 1px solid var(--border) !important;
  font-size: .8125rem;
  font-weight: 600;
  padding: .375rem .875rem;
  transition: var(--transition);
}
.unit-cat-tabs .nav-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary) !important;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Responsive Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
@media (max-width: 991px) {
  .nav-search { display: none; }
  .hero-section { padding: 3rem 0 2.5rem; }
  .calc-tool-card { margin-top: -1.5rem; }
}

@media (max-width: 767px) {
  .hero-stats { gap: 1.25rem; }
  .hero-stat strong { font-size: 1.25rem; }
  .calc-tool-body { padding: 1.25rem; }
  .content-section { padding: 1.5rem; }
  .section { padding: 3rem 0; }
  .how-section { padding: 3rem 0; }
  .sci-btn { padding: .7rem .3rem; font-size: .8rem; }
  .sci-display .result { font-size: 2rem; }
}

@media (max-width: 575px) {
  .sci-buttons { grid-template-columns: repeat(4, 1fr); }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   MEGA-MENU
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
.mega-menu-item { position: static !important; }

.mega-dropdown {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  top: auto !important;
  border-radius: 0 0 1.5rem 1.5rem !important;
  border: none !important;
  background: #fff !important;
  box-shadow: 0 30px 60px -10px rgba(15,23,42,.18), 0 18px 36px -18px rgba(15,23,42,.12) !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 1050;
  overflow: hidden;
}
.mega-dropdown::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #f59e0b, #10b981, #06b6d4, #f97316);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  padding: 2rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.mega-col {
  padding: 0 1.25rem;
  border-right: 1px solid #f1f5f9;
}
.mega-col:last-child { border-right: none; }
.mega-col:first-child { padding-left: 0; }

.mega-cat-head {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .9375rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  padding: .5rem .75rem;
  margin: -.5rem -.75rem .75rem;
  border-radius: .625rem;
  transition: background .15s, color .15s;
}
.mega-cat-head:hover {
  background: color-mix(in srgb, var(--cat-color, #6366f1) 10%, #fff);
  color: var(--cat-color, #6366f1);
}
.mega-cat-head i {
  width: 32px; height: 32px;
  border-radius: .5rem;
  background: color-mix(in srgb, var(--cat-color, #6366f1) 15%, #fff);
  color: var(--cat-color, #6366f1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9375rem;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.mega-cat-head:hover i {
  background: var(--cat-color, #6366f1);
  color: #fff;
}

.mega-calc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mega-calc-list li { margin: 0; }
.mega-calc-list li a {
  display: block;
  padding: .45rem .75rem;
  font-size: .9375rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  border-radius: .5rem;
  line-height: 1.35;
  transition: background .12s, color .12s, padding-left .15s;
}
.mega-calc-list li a:hover {
  color: var(--cat-color, #6366f1);
  background: #f8fafc;
  padding-left: 1rem;
}

/* Per-category dropdown items */
.dropdown-menu-calc .dropdown-item i { width: 16px; }


/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — REDESIGN (May 2026)
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────── */
.home-hero {
  background: #ffffff;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}

.home-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: .875rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.home-hero-h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -.04em;
}

.home-hero-highlight {
  color: #2563eb;
}

.home-hero-lead {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

/* Hero Search */
.home-hero-search {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.home-hero-search .input-group {
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid #d1d5db;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.home-hero-search .input-group:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.home-search-icon {
  background: #fff;
  border: none;
  color: #9ca3af;
  font-size: .9rem;
  padding-left: 1.25rem;
  padding-right: .5rem;
}

.home-hero-search .form-control {
  border: none;
  padding: .9rem .75rem;
  font-size: 1rem;
  background: transparent;
  color: #111;
  box-shadow: none;
}

.home-hero-search .form-control:focus { box-shadow: none; }

.home-search-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: .9rem 1.75rem;
  font-weight: 600;
  font-size: .9375rem;
  border-radius: 0 999px 999px 0 !important;
  transition: background .15s;
}
.home-search-btn:hover { background: #1d4ed8; color: #fff; }

/* Hero Stats */
.home-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.home-hero-stat { text-align: center; }
.home-hero-stat strong {
  display: block;
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.home-hero-stat span {
  font-size: .8125rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.home-hero-stat-divider {
  width: 1px;
  height: 36px;
  background: #e5e7eb;
}

/* ── Section Shared ────────────────────────────────────── */
.home-h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.025em;
  line-height: 1.2;
}

/* ── Popular Calculators ───────────────────────────────── */
.home-popular {
  background: #f8fafc;
  padding: 5rem 0;
}

.home-popular-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .75rem;
}

.home-see-all {
  font-size: .9375rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  transition: color .15s;
}
.home-see-all:hover { color: #1d4ed8; }

/* Filter Tabs */
.home-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.home-filter-tab {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  color: #374151;
  font-size: .875rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.home-filter-tab:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.home-filter-tab.active { background: #2563eb; border-color: #2563eb; color: #fff; }

/* Calculator Card Grid */
.home-pop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-pop-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: .875rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.home-pop-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 24px -8px rgba(37,99,235,.2);
  transform: translateY(-3px);
  color: inherit;
  text-decoration: none;
}

.home-pop-card-ic {
  width: 44px;
  height: 44px;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin-bottom: .875rem;
  flex-shrink: 0;
}

.home-pop-card h4 {
  font-size: .9375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .25rem;
}
.home-pop-card p {
  font-size: .8125rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* ── Featured Calculator ───────────────────────────────── */
.home-featured {
  background: #fff;
  padding: 5rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.home-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.home-featured-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.home-featured-text p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  font-size: 1.0625rem;
}

.btn-calc-now {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  background: #0f172a;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: .875rem 1.75rem;
  border-radius: .75rem;
  text-decoration: none;
  transition: all .2s;
}
.btn-calc-now:hover { background: #1e293b; color: #fff; transform: translateY(-2px); }

.home-featured-preview {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.08);
}

.home-featured-result {
  border-radius: .75rem;
  padding: 1.25rem;
  text-align: center;
  margin-top: .5rem;
  transition: background .35s ease, border-color .35s ease;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.home-featured-result.bmi-under  { background: #fefce8; border-color: #fde68a; }
.home-featured-result.bmi-normal { background: #f0fdf4; border-color: #86efac; }
.home-featured-result.bmi-over   { background: #fff7ed; border-color: #fdba74; }
.home-featured-result.bmi-obese  { background: #fef2f2; border-color: #fca5a5; }
.bmi-result-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
  transition: color .35s ease;
  color: #3b82f6;
}
.bmi-result-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  transition: color .35s ease;
  color: #2563eb;
}
.home-featured-result.bmi-under  .bmi-result-value,
.home-featured-result.bmi-under  .bmi-result-label  { color: #ca8a04; }
.home-featured-result.bmi-normal .bmi-result-value,
.home-featured-result.bmi-normal .bmi-result-label  { color: #16a34a; }
.home-featured-result.bmi-over   .bmi-result-value,
.home-featured-result.bmi-over   .bmi-result-label  { color: #ea580c; }
.home-featured-result.bmi-obese  .bmi-result-value,
.home-featured-result.bmi-obese  .bmi-result-label  { color: #dc2626; }
.bmi-result-status {
  font-size: .9375rem;
  font-weight: 600;
  margin-top: .25rem;
  transition: color .35s ease, opacity .18s ease;
  color: #3b82f6;
}
.home-featured-result.bmi-under  .bmi-result-status { color: #a16207; }
.home-featured-result.bmi-normal .bmi-result-status { color: #15803d; }
.home-featured-result.bmi-over   .bmi-result-status { color: #c2410c; }
.home-featured-result.bmi-obese  .bmi-result-status { color: #b91c1c; }

/* ── Browse by Category ────────────────────────────────── */
.home-browse {
  background: #f8fafc;
  padding: 5rem 0;
}

.home-browse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.home-browse-block {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: box-shadow .2s;
}
.home-browse-block:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }

.home-browse-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.home-browse-ic {
  width: 36px; height: 36px;
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  flex-shrink: 0;
}

.home-browse-head-info { flex: 1; min-width: 0; }

.home-browse-cat-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.2;
}
.home-browse-cat-name:hover { color: #2563eb; }

.home-browse-count {
  font-size: .8125rem;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: .15rem .5rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.home-browse-list {
  font-size: .875rem;
  color: #4b5563;
  line-height: 1.8;
}
.home-browse-list a {
  color: #4b5563;
  text-decoration: none;
  transition: color .15s;
}
.home-browse-list a:hover { color: #2563eb; text-decoration: underline; }
.home-browse-sep { color: #d1d5db; margin: 0 .15rem; }
.home-browse-more { color: #2563eb; font-weight: 600; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 991px) {
  .home-pop-grid { grid-template-columns: repeat(2, 1fr); }
  .home-featured-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-browse-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .home-hero { padding: 3.5rem 0 3rem; }
  .home-hero-h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .home-hero-stats { gap: 1.25rem; }
  .home-hero-stat strong { font-size: 1.5rem; }
  .home-pop-grid { grid-template-columns: 1fr 1fr; }
  .home-popular, .home-featured, .home-browse { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .home-pop-grid { grid-template-columns: 1fr; }
  .home-browse-grid { grid-template-columns: 1fr; }
  .home-hero-stats { gap: .875rem; }
  .home-hero-stat-divider { display: none; }
  .home-filter-tab { font-size: .8rem; padding: .35rem .75rem; }
}

/* ═══════════════════════════════════════════════════════════
   CALCULATOR UI/UX ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

/* ── Calculate Button — vibrant green CTA ────────────────── */
.btn-calculate {
  background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
  color: #fff;
  border: none;
  padding: .9375rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  width: 100%;
  transition: all .3s cubic-bezier(.34,1.3,.64,1);
  letter-spacing: .025em;
  box-shadow: 0 4px 20px rgba(16,185,129,.35);
  position: relative;
  overflow: hidden;
}
.btn-calculate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s;
}
.btn-calculate:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #059669 0%, #0f766e 100%);
  box-shadow: 0 10px 32px rgba(16,185,129,.45);
  color: #fff;
}
.btn-calculate:hover::after { opacity: 1; }
.btn-calculate:active { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(16,185,129,.35); }
.btn-calculate i { transition: transform .3s ease; display: inline-block; }
.btn-calculate:hover i { transform: rotate(15deg) scale(1.2); }

/* ── Reset button — refined ──────────────────────────────── */
.btn-reset {
  background: #fff;
  color: #64748b;
  border: 2px solid #e2e8f0;
  padding: .9375rem 1.5rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all .22s ease;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-reset:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #334155;
}
.btn-reset i { transition: transform .4s cubic-bezier(.34,1.56,.64,1); display: inline-block; }
.btn-reset:hover i { transform: rotate(-180deg); }

/* ── Form controls — better focus ────────────────────────── */
.form-control,
.form-select {
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  padding: .6875rem .9375rem;
  font-size: .9375rem;
  background: #fafbfc;
  color: #0f172a;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control:focus,
.form-select:focus {
  border-color: #10b981;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
  outline: none;
}
.form-control::placeholder { color: #94a3b8; }

/* Hide ugly number spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* ── Form label ───────────────────────────────────────────── */
.form-label {
  font-weight: 600;
  font-size: .875rem;
  color: #374151;
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* ── Input group — synced focus ──────────────────────────── */
.input-group-text {
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  color: #64748b;
  font-size: .875rem;
  font-weight: 600;
  transition: border-color .2s, background .2s;
}
.input-group:focus-within .input-group-text {
  border-color: #10b981;
  background: #f0fdf9;
  color: #047857;
}
.input-group:focus-within .form-control,
.input-group:focus-within .form-select {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}

/* ── Calc tool card — top border glow on hover ───────────── */
.calc-tool-card {
  border-top: 3px solid transparent;
  background-clip: padding-box;
  transition: box-shadow .3s, border-color .3s;
}
.calc-tool-card:hover { border-top-color: #10b981; }

/* ── Calc tool header — gradient + accent stripe ─────────── */
.calc-tool-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 1.25rem 1.75rem;
  position: relative;
  overflow: hidden;
}
.calc-tool-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 50%, #8b5cf6 100%);
}
.calc-tool-header h2 { font-size: 1.0625rem; }

/* ── Result panel — polished entrance ───────────────────── */
@keyframes resultReveal {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
.result-panel.show {
  display: block;
  animation: resultReveal .48s cubic-bezier(.34,1.2,.64,1) both;
}

/* ── Result card primary — richer with shimmer ───────────── */
.result-card.primary {
  background: linear-gradient(135deg, #10b981 0%, #0d9488 55%, #0891b2 100%);
  border: none;
  box-shadow: 0 8px 28px rgba(16,185,129,.3), inset 0 1px 0 rgba(255,255,255,.2);
  position: relative;
  overflow: hidden;
}
.result-card.primary::before {
  content: '';
  position: absolute;
  top: -60%; right: -15%;
  width: 220px; height: 220px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  pointer-events: none;
}
.result-card.primary::after {
  content: '';
  position: absolute;
  bottom: -50%; left: -10%;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}
.result-card.primary .result-value { font-size: clamp(1.25rem, 3vw, 2rem); white-space: nowrap; }
.result-card.primary .result-label { opacity: .85; letter-spacing: .1em; }

/* ── Result card success ─────────────────────────────────── */
.result-card.success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #6ee7b7;
}

/* ── Result items — hover lift ───────────────────────────── */
.result-item {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.125rem 1rem;
  text-align: center;
  transition: all .22s ease;
  cursor: default;
}
.result-item:hover {
  border-color: #10b981;
  box-shadow: 0 4px 16px rgba(16,185,129,.12);
  transform: translateY(-2px);
}
.result-item .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #10b981;
  display: block;
  line-height: 1;
  margin-bottom: .3rem;
  transition: color .2s;
}
.result-item:hover .value { color: #059669; }
.result-item .label {
  font-size: .75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Unit toggle — pill style ────────────────────────────── */
.unit-toggle {
  background: #f1f5f9;
  border-radius: 999px;
  padding: .25rem;
  display: inline-flex;
  gap: .125rem;
  border: 1.5px solid #e2e8f0;
  margin-bottom: .875rem;
}
.unit-toggle .btn {
  border-radius: 999px !important;
  padding: .375rem 1.125rem;
  font-size: .8125rem;
  font-weight: 600;
  border: none;
  color: #64748b;
  background: transparent;
  transition: all .22s ease;
  line-height: 1.4;
}
.unit-toggle .btn.active {
  background: #10b981;
  color: #fff;
  box-shadow: 0 2px 10px rgba(16,185,129,.35);
}
.unit-toggle .btn:not(.active):hover { color: #334155; background: rgba(0,0,0,.04); }

/* ── Visual label pill ────────────────────────────────────── */
.calc-visual-label {
  background: rgba(16,185,129,.1);
  padding: .25rem .875rem;
  border-radius: 999px;
  border: 1px solid rgba(16,185,129,.25);
  font-size: .75rem;
  letter-spacing: .07em;
}

/* ── Alert info ───────────────────────────────────────────── */
.alert-info {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  color: #075985;
  font-size: .875rem;
  line-height: 1.6;
}

/* ── Chart container ─────────────────────────────────────── */
.chart-container {
  background: linear-gradient(135deg, #fafbff 0%, #fff 100%);
  border: 1.5px solid #e8edff;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(99,102,241,.06);
}

/* ── Sidebar card header ─────────────────────────────────── */
.sidebar-card-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}
.sidebar-card-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

/* ── Related calc links — animated ──────────────────────── */
.related-calc-link {
  position: relative;
  overflow: hidden;
}
.related-calc-link::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .65rem;
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  color: #10b981;
  opacity: 0;
  transition: all .22s;
}
.related-calc-link:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ── Amortization table ──────────────────────────────────── */
.amort-table th {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}
.amort-table tbody tr { transition: background .15s; }
.amort-table tbody tr:hover { background: #f0fdf4; }

/* ── Calc page body top spacing ─────────────────────────── */
.calc-page-body { padding-top: 2.5rem; }

/* ── Responsive enhancements ─────────────────────────────── */
@media (max-width: 767px) {
  .btn-calculate { padding: .8125rem 1.5rem; font-size: .9375rem; }
  .calc-tool-body { padding: 1.5rem; }
  .result-card.primary .result-value { font-size: clamp(1.125rem, 4.5vw, 1.75rem); }
}

/* ── Copy-on-click result values ─────────────────────────── */
.result-item .value,
.result-value {
  cursor: pointer;
  position: relative;
}
.result-item .value::after,
.result-value::after {
  content: '\f0c5';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .625rem;
  color: #94a3b8;
  position: absolute;
  top: 0; right: -14px;
  opacity: 0;
  transition: opacity .2s;
}
.result-item:hover .value::after,
.result-card:hover .result-value::after { opacity: 1; }

/* ── Loading spinner state on calculate button ───────────── */
.btn-calculate:disabled {
  background: linear-gradient(135deg, #6ee7b7 0%, #5eead4 100%);
  box-shadow: none;
  cursor: wait;
  transform: none;
}
.btn-calculate .spinner-border-sm {
  width: 1rem; height: 1rem;
  border-width: 2px;
  vertical-align: -.15em;
}

/* ── Input valid temp flash ──────────────────────────────── */
.form-control.is-valid-temp,
.form-select.is-valid-temp {
  border-color: #10b981 !important;
  background-image: none !important;
}

/* ── Result item — clickable hint ────────────────────────── */
.result-grid { cursor: default; }
.result-item { overflow: visible; }

/* ═══════════════════════════════════════════════════════════
   CALC HERO — ANIMATED BACKGROUND + LAYOUT
   ═══════════════════════════════════════════════════════════ */

/* Animated dot mesh */
.ch-mesh {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  animation: chMeshDrift 30s linear infinite;
}
@keyframes chMeshDrift {
  from { background-position: 0 0; }
  to   { background-position: 280px 280px; }
}

/* Glowing orbs */
.ch-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.ch-orb-1 {
  width: 420px; height: 420px;
  top: -140px; right: -80px;
  opacity: .85;
  animation: chOrbDrift 9s ease-in-out infinite alternate;
}
.ch-orb-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(99,102,241,.25) 0%, transparent 70%);
  bottom: -100px; left: 10%;
  animation: chOrbDrift 12s ease-in-out infinite alternate-reverse;
}
@keyframes chOrbDrift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(22px,16px) scale(1.08); }
}

/* Floating math particles */
.ch-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ch-p {
  position: absolute;
  color: rgba(255,255,255,.07);
  animation: chParticleRise linear infinite;
}
.ch-p1  { left: 4%;  bottom: -40px; font-size: 1.875rem; animation-duration: 14s; animation-delay:   0s; }
.ch-p2  { left: 18%; bottom: -40px; font-size: 1.25rem;  animation-duration: 17s; animation-delay:  -4s; }
.ch-p3  { left: 35%; bottom: -40px; font-size: 2.25rem;  animation-duration: 19s; animation-delay:  -8s; }
.ch-p4  { left: 55%; bottom: -40px; font-size: 1.5rem;   animation-duration: 15s; animation-delay:  -2s; }
.ch-p5  { left: 72%; bottom: -40px; font-size: 1rem;     animation-duration: 22s; animation-delay: -11s; }
.ch-p6  { left: 88%; bottom: -40px; font-size: 2.5rem;   animation-duration: 13s; animation-delay:  -5s; }
@keyframes chParticleRise {
  0%   { transform: translateY(0)      rotate(0deg);   opacity: 0; }
  6%   { opacity: 1; }
  90%  { opacity: .5; }
  100% { transform: translateY(-320px) rotate(25deg);  opacity: 0; }
}

/* Two-column layout */
.ch-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Category badge */
.ch-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 700;
  padding: .35rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity .2s;
  margin-bottom: .875rem;
  animation: chFadeUp .4s ease both;
}
.ch-cat-badge:hover { opacity: .82; text-decoration: none; }

/* Icon + H1 row */
.ch-title-row {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin-bottom: .875rem;
}

.ch-icon-box {
  width: 64px; height: 64px; min-width: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.625rem;
  color: #fff;
  position: relative;
  box-shadow: 0 8px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.2);
  animation: chIconPop .55s .1s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes chIconPop {
  from { transform: scale(0) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1) rotate(0);      opacity: 1; }
}

/* Pulsing rings */
.ch-ring {
  position: absolute;
  inset: -10px;
  border-radius: 22px;
  border: 1.5px solid currentColor;
  opacity: 0;
  pointer-events: none;
  animation: chRingPulse 2.8s ease-out infinite;
}
.ch-ring.r2 { animation-delay: 1.1s; }
@keyframes chRingPulse {
  0%   { transform: scale(.84); opacity: .55; }
  100% { transform: scale(1.65); opacity: 0; }
}

.ch-h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: #fff;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  animation: chFadeUp .4s .15s ease both;
}
.ch-lead {
  color: rgba(255,255,255,.7);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 1.375rem;
  max-width: 500px;
  animation: chFadeUp .4s .25s ease both;
}
@keyframes chFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Feature chips */
.ch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  animation: chFadeUp .4s .35s ease both;
}
.ch-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.72);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.ch-chip:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.ch-chip i { font-size: .7rem; }

/* Decorative right panel */
.ch-deco {
  position: relative;
  height: 220px;
  animation: chFadeUp .5s .2s ease both;
}

.ch-deco-card {
  position: absolute;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
}

/* Main card (top-right) */
.ch-dc-main {
  width: 195px;
  padding: 1.125rem 1.25rem;
  top: 0; right: 30px;
  animation: chCardFloat 4s ease-in-out infinite;
}

/* Secondary card (bottom-right) */
.ch-dc-secondary {
  width: 218px;
  padding: 1rem 1.125rem;
  bottom: 0; right: 0;
  animation: chCardFloat 4.8s ease-in-out .6s infinite;
}

/* Icon-only card (left-middle) */
.ch-dc-icon-card {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  top: 50%; left: 0;
  transform: translateY(-50%);
  animation: chCardFloatCenter 5.2s ease-in-out 1.1s infinite;
}

@keyframes chCardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes chCardFloatCenter {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 10px)); }
}

/* Card internals */
.ch-dc-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  margin-bottom: .5rem;
}
.ch-dc-value {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .75rem;
}
.ch-dc-num {
  display: inline-block;
  animation: chNumBlink 3.5s ease-in-out infinite;
}
@keyframes chNumBlink {
  0%, 35% { opacity: 1; }
  45%      { opacity: .25; }
  55%, 100%{ opacity: 1; }
}

/* Progress bar */
.ch-dc-bar {
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  overflow: hidden;
}
.ch-dc-bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  animation: chBarGrow 2.5s 1.2s cubic-bezier(.34,1.2,.64,1) forwards;
}
@keyframes chBarGrow {
  from { width: 0; }
  to   { width: 68%; }
}

/* Status row */
.ch-dc-row {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .625rem;
}
.ch-dc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: chDotBlink 1.6s ease-in-out infinite;
}
@keyframes chDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .3; transform: scale(.6); }
}
.ch-dc-text {
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
}

/* Sparkline */
.ch-dc-sparkline { overflow: hidden; border-radius: 6px; }
.ch-dc-sparkline svg { width: 100%; height: 36px; display: block; }
.ch-spark-dot { animation: chSparkPulse 1.6s ease-in-out infinite; }
@keyframes chSparkPulse {
  0%, 100% { opacity: 1; r: 3; }
  50%       { opacity: .45; r: 5; }
}

/* Responsive */
@media (max-width: 991px) {
  .ch-deco  { display: none; }
  .ch-layout { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .ch-title-row { gap: .875rem; }
  .ch-icon-box { width: 52px; height: 52px; min-width: 52px; font-size: 1.25rem; }
  .ch-h1 { font-size: 1.375rem; }
  .ch-lead { font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE HERO — ANIMATED DECORATION
   ═══════════════════════════════════════════════════════════ */

.home-hero { position: relative; overflow: hidden; }

/* Dot grid */
.hh-mesh {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(99,102,241,.06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  animation: chMeshDrift 35s linear infinite;
}

/* Glowing orbs */
.hh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hh-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,.1) 0%, transparent 70%);
  top: -200px; right: -150px;
  animation: hhOrbDrift 10s ease-in-out infinite alternate;
}
.hh-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,.08) 0%, transparent 70%);
  bottom: -180px; left: -80px;
  animation: hhOrbDrift 13s ease-in-out infinite alternate-reverse;
}
@keyframes hhOrbDrift {
  from { transform: translate(0,0); }
  to   { transform: translate(28px,20px); }
}

/* Floating icon tiles */
.hh-floats {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hh-float {
  position: absolute;
  width: 46px; height: 46px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  animation: hhFloatRise linear infinite;
  opacity: 0;
}
.hh-f1  { left: 2%;  bottom: -50px; color: #ef4444; animation-duration: 16s; animation-delay:   0s; }
.hh-f2  { left: 7%;  bottom: -50px; color: #f59e0b; animation-duration: 20s; animation-delay:  -5s; }
.hh-f3  { left: 90%; bottom: -50px; color: #3b82f6; animation-duration: 14s; animation-delay:  -2s; }
.hh-f4  { left: 94%; bottom: -50px; color: #ef4444; animation-duration: 18s; animation-delay:  -8s; }
.hh-f5  { left: 1%;  bottom: -50px; color: #10b981; animation-duration: 22s; animation-delay: -12s; }
.hh-f6  { left: 87%; bottom: -50px; color: #8b5cf6; animation-duration: 17s; animation-delay:  -3s; }
.hh-f7  { left: 96%; bottom: -50px; color: #06b6d4; animation-duration: 13s; animation-delay: -10s; }
.hh-f8  { left: 5%;  bottom: -50px; color: #f59e0b; animation-duration: 25s; animation-delay:  -6s; }

@keyframes hhFloatRise {
  0%   { transform: translateY(0)       rotate(0deg);   opacity: 0; }
  8%   { opacity: .9; }
  90%  { opacity: .7; }
  100% { transform: translateY(-120vh)  rotate(12deg);  opacity: 0; }
}

/* Keep hero content above decoration layers */
.home-hero .container,
.home-hero .home-hero-inner { position: relative; z-index: 1; }

@media (max-width: 767px) { .hh-float { display: none; } }

/* ══════════════════════════════════════════════════════════
   BLOG STYLES
   ══════════════════════════════════════════════════════════ */

/* Blog card */
.blog-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-3px); }

.blog-card-img-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }

.blog-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary)12, var(--secondary)18);
}

.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: .5rem;
  display: block;
}
.blog-card-cat:hover { color: var(--secondary); }

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .75rem;
}
.blog-card-title a { color: var(--dark); text-decoration: none; }
.blog-card-title a:hover { color: var(--primary); }

.blog-card-excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: auto;
}
.blog-card-meta i { margin-right: .3rem; }

/* Category filter tabs */
.blog-cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.blog-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background .15s, color .15s, border-color .15s;
}
.blog-cat-tab:hover, .blog-cat-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.blog-cat-count {
  font-size: .7rem;
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 0 .45rem;
}

/* Sidebar cards */
.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .875rem;
  overflow: hidden;
}
.sidebar-card-header {
  padding: .875rem 1.25rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.sidebar-card-body { padding: 1rem 1.25rem; }

.blog-sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1.25rem;
  text-decoration: none;
  color: var(--dark);
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.blog-sidebar-cat-link:last-child { border-bottom: none; }
.blog-sidebar-cat-link:hover, .blog-sidebar-cat-link.active {
  background: var(--surface);
  color: var(--primary);
}

.blog-recent-link {
  display: flex;
  flex-direction: column;
  padding: .75rem 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.blog-recent-link:last-child { border-bottom: none; }
.blog-recent-link:hover { background: var(--surface); }
.blog-recent-title { font-size: .85rem; font-weight: 600; color: var(--dark); line-height: 1.3; margin-bottom: .25rem; }
.blog-recent-date  { font-size: .75rem; color: var(--text-muted); }

/* Blog listing related calc link */
.related-calc-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1.25rem;
  text-decoration: none;
  color: var(--dark);
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.related-calc-link:last-child { border-bottom: none; }
.related-calc-link:hover { background: var(--surface); color: var(--primary); }
.related-calc-icon {
  width: 32px; height: 32px;
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}

/* Blog post page */
.blog-post-hero { padding: 4rem 0 3rem; }
.blog-post-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
}

.blog-post-featured-img {
  padding: 2rem 0 0;
  background: linear-gradient(to bottom, var(--dark) 60%, var(--bg) 100%);
}
.blog-post-featured-img .container { padding-bottom: 2rem; }

/* TOC */
.blog-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
}
.blog-toc-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.blog-toc-list {
  margin: 0;
  padding-left: 1.25rem;
}
.blog-toc-list li {
  font-size: .875rem;
  margin-bottom: .35rem;
}
.blog-toc-list li.toc-h3 { padding-left: 1rem; font-size: .82rem; }
.blog-toc-list a { color: var(--primary); text-decoration: none; }
.blog-toc-list a:hover { text-decoration: underline; }

/* Blog content typography */
.blog-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary);
  color: var(--dark);
}
.blog-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: .75rem;
  color: var(--dark);
}
.blog-content p { line-height: 1.85; margin-bottom: 1.1rem; color: #374151; }
.blog-content ul, .blog-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.blog-content li { margin-bottom: .4rem; line-height: 1.7; color: #374151; }
.blog-content table { font-size: .9rem; }
.blog-content img { max-width: 100%; height: auto; border-radius: .5rem; }
.blog-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: 0 .5rem .5rem 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4b5563;
}

/* Linked calculators in post */
.blog-calc-links-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.blog-calc-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .75rem;
  text-decoration: none;
  color: var(--dark);
  transition: border-color .2s, box-shadow .2s;
}
.blog-calc-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(16,185,129,.12);
}
.blog-calc-card-icon {
  width: 40px; height: 40px;
  border-radius: .625rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.blog-calc-card-text {
  display: flex; flex-direction: column; gap: .15rem; flex: 1;
}
.blog-calc-card-text strong { font-size: .9rem; font-weight: 700; }
.blog-calc-card-text span { font-size: .78rem; color: var(--text-muted); }

/* Share buttons */
.blog-share {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.blog-share-label { font-size: .875rem; font-weight: 600; color: var(--text-muted); }
.blog-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  text-decoration: none;
  font-size: .95rem;
  transition: transform .2s, opacity .2s;
  color: #fff;
}
.blog-share-btn:hover { transform: scale(1.12); opacity: .9; color: #fff; }
.blog-share-btn.twitter  { background: #000; }
.blog-share-btn.facebook { background: #1877f2; }
.blog-share-btn.linkedin { background: #0a66c2; }
.blog-share-btn.pinterest{ background: #e60023; }

/* Author box */
.blog-author-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: .875rem;
  border: 1px solid var(--border);
}
.blog-author-avatar {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}
.blog-author-name { font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.blog-author-bio  { font-size: .82rem; color: var(--text-muted); }

/* Mini post card */
.blog-card-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: border-color .2s;
}
.blog-card-mini:hover { border-color: var(--primary); }
.blog-card-mini-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.35;
}
.blog-card-mini-title:hover { color: var(--primary); }
.blog-card-mini-meta { font-size: .75rem; color: var(--text-muted); }

/* Sticky sidebar */
.blog-sidebar-sticky { position: sticky; top: 88px; }

/* Home blog preview */
.home-blog { background: var(--surface); }

/* ══════════════════════════════════════════════════════════
   FAQ STYLES
   ══════════════════════════════════════════════════════════ */

.home-faq { background: #fff; }

.faq-accordion .faq-item {
  border: 1px solid var(--border);
  border-radius: .875rem !important;
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-accordion .faq-item + .faq-item { margin-top: 0; }

.faq-btn {
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  background: #fff;
  padding: 1.1rem 1.5rem;
  gap: .75rem;
}
.faq-btn:not(.collapsed) {
  color: var(--primary);
  background: #f0fdf9;
  box-shadow: none;
}
.faq-btn::after {
  filter: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z'/%3E%3C/svg%3E");
  flex-shrink: 0;
}

.faq-body {
  font-size: .9rem;
  line-height: 1.7;
  color: #374151;
  padding: .25rem 1.5rem 1.25rem;
  background: #f0fdf9;
}

/* ══════════════════════════════════════════════════════════
   LEGAL PAGE STYLES
   ══════════════════════════════════════════════════════════ */

.legal-page h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  color: var(--dark);
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--primary);
}
.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: .5rem;
}
.legal-page p  { line-height: 1.8; margin-bottom: 1rem; color: #374151; }
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.legal-page li { margin-bottom: .4rem; line-height: 1.7; color: #374151; }

/* ══════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ══════════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 680px;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 9999;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: .875rem; flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--primary); }
.cookie-banner-actions { display: flex; gap: .75rem; flex-shrink: 0; }
.cookie-banner.hidden { display: none; }

