/* ============================================
   FREECALCTOOLS - GLOBAL STYLESHEET
   freecalctools.trendmartplus.com
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --primary: #007BFF;
  --primary-dark: #0056b3;
  --primary-light: #e8f4ff;
  --secondary: #0dcaf0;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; color: var(--gray-600); }
p:last-child { margin-bottom: 0; }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,123,255,.08);
  transition: var(--transition);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  white-space: nowrap;
}
.navbar-brand .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.navbar-brand span { color: var(--gray-800); }
.navbar-brand strong { color: var(--primary); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: var(--gray-700);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Dropdown */
.nav-item { position: relative; }
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dropdown-toggle::after {
  content: '▾';
  font-size: 0.8rem;
  transition: transform 0.3s;
}
.nav-item:hover .dropdown-toggle::after { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 640px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 999;
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--gray-700);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}
.dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.dropdown-menu a .d-icon {
  width: 28px;
  height: 28px;
  background: var(--gray-100);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.dropdown-menu a:hover .d-icon { background: var(--primary-light); }

.dropdown-label {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px 2px;
  margin-top: 4px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   AD ZONES
   ============================================ */
.ad-zone {
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  overflow: hidden;
  transition: var(--transition);
}
.ad-zone-top {
  width: 100%;
  height: 90px;
  margin: 16px 0;
}
.ad-zone-mid {
  width: 100%;
  height: 280px;
  margin: 32px 0;
}
.ad-zone-bottom {
  width: 100%;
  height: 90px;
  margin: 16px 0;
}
.ad-zone-sidebar {
  width: 100%;
  min-height: 250px;
  margin-bottom: 24px;
}
@media(min-width:768px) {
  .ad-zone-top { height: 90px; }
  .ad-zone-mid { height: 280px; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0a2540 100%);
}
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 8px 20px;
  color: rgba(255,255,255,.9);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.8s ease both;
}
.hero-badge span { color: #60d8ff; }
.hero h1 {
  color: white;
  margin-bottom: 20px;
  animation: fadeInUp 0.9s ease 0.15s both;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero h1 .highlight {
  background: linear-gradient(120deg, #60d8ff, #007BFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fadeInUp 1s ease 0.3s both;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.45s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: .01em;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,123,255,.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,123,255,.5);
}
.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: white;
  border-color: white;
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-800);
  border-color: var(--gray-200);
}
.btn-secondary:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 56px;
  animation: fadeInUp 1s ease 0.6s both;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
  color: white;
}
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #60d8ff;
}
.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   TOOLS GRID / CARDS
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,123,255,.2);
  color: inherit;
}
.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-light), #dbeeff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition);
}
.tool-card:hover .tool-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: scale(1.05);
}
.tool-card h3 {
  font-size: 1.05rem;
  color: var(--gray-800);
  margin: 0;
}
.tool-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.tool-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}
.tool-card:hover .card-cta { gap: 10px; }
.tool-card .card-cta::after { content: '→'; }

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), #0dcaf0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: white;
}
.feature-card h4 { color: var(--gray-800); margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--gray-500); margin: 0; }

/* ============================================
   SEO CONTENT SECTION
   ============================================ */
.seo-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.seo-content h2 { color: var(--gray-900); margin-bottom: 20px; }
.seo-content h3 { color: var(--primary); margin: 28px 0 12px; font-size: 1.25rem; }
.seo-content p { color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.seo-content ul, .seo-content ol {
  margin: 0 0 16px 24px;
  color: var(--gray-600);
  line-height: 1.8;
}
.seo-content li { list-style: disc; margin-bottom: 6px; }
.seo-content ol li { list-style: decimal; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0056b3 50%, #0dcaf0 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='25'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; }
.cta-section h2 { color: white; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 32px; }
.cta-section .btn-white {
  background: white;
  color: var(--primary);
  border-color: white;
  font-weight: 700;
}
.cta-section .btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .navbar-brand {
  color: white;
  margin-bottom: 16px;
  display: flex;
}
.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 38px;
  height: 38px;
  background: var(--gray-800);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}
.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: var(--gray-400);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a::before { content: '›'; color: var(--primary); }
.footer-col ul li a:hover { color: white; padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--gray-500); font-size: 0.85rem; margin: 0; }
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: var(--gray-500);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--primary); }

/* ============================================
   TOOL PAGE LAYOUT
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0 40px;
  color: white;
}
.page-hero h1 { color: white; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.85); margin: 0; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: rgba(255,255,255,.7);
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,.5); }

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  padding: 48px 0;
}
.tool-main { min-width: 0; }
.tool-sidebar { position: sticky; top: 88px; }

/* Calculator Card */
.calc-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}
.calc-card h2 {
  font-size: 1.4rem;
  color: var(--gray-900);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.calc-card h2 .icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: white;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,123,255,.1);
}
.form-control::placeholder { color: var(--gray-400); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }

/* Radio/Toggle */
.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.radio-btn {
  flex: 1;
  min-width: 120px;
}
.radio-btn input { display: none; }
.radio-btn label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: var(--transition);
}
.radio-btn input:checked + label {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.radio-btn label:hover { border-color: var(--primary); }

/* Result Box */
.result-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, #dbeeff 100%);
  border: 2px solid rgba(0,123,255,.2);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  display: none;
  animation: fadeInUp 0.4s ease;
}
.result-box.show { display: block; }
.result-box .result-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.result-box .result-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.result-box .result-sub {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-top: 6px;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.result-item {
  background: white;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid rgba(0,123,255,.15);
}
.result-item .r-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 4px;
}
.result-item .r-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Error */
.error-msg {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}
.error-msg.show { display: block; }
.form-control.error { border-color: #dc3545; }

/* Calc Btn */
.calc-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: var(--transition);
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(0,123,255,.3);
}
.calc-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), #004085);
  box-shadow: 0 6px 20px rgba(0,123,255,.45);
  transform: translateY(-1px);
}
.calc-btn:active { transform: translateY(0); }
.reset-btn {
  width: 100%;
  padding: 11px;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 8px;
}
.reset-btn:hover {
  background: #fee2e2;
  color: #dc3545;
  border-color: #dc3545;
}

/* Select */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section { padding: 60px 0; }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question.active { color: var(--primary); }
.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--gray-600);
}
.faq-question.active .faq-icon {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open {
  max-height: 500px;
  padding: 0 24px 20px;
}
.faq-answer p { color: var(--gray-600); line-height: 1.8; margin: 0; }

/* ============================================
   RELATED TOOLS
   ============================================ */
.related-tools {
  padding: 60px 0;
  background: var(--gray-50);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.related-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.related-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.related-card .r-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.related-card:hover .r-icon { background: white; }
.related-card span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}
.related-card:hover span { color: var(--primary); }

/* ============================================
   STATIC PAGES (About, Contact, etc.)
   ============================================ */
.static-section {
  padding: 64px 0;
}
.static-content {
  max-width: 800px;
  margin: 0 auto;
}
.static-content h2 { color: var(--primary); margin: 36px 0 14px; }
.static-content h3 { color: var(--gray-800); margin: 24px 0 10px; }
.static-content p { color: var(--gray-600); line-height: 1.8; }
.static-content ul { margin: 0 0 16px 24px; }
.static-content ul li { list-style: disc; color: var(--gray-600); margin-bottom: 6px; }
.static-content ol li { list-style: decimal; color: var(--gray-600); margin-bottom: 6px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-form .form-control { margin-bottom: 0; }
.contact-form textarea.form-control { min-height: 140px; resize: vertical; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-info-item .ci-icon {
  width: 46px;
  height: 46px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-info-item h4 { color: var(--gray-800); margin-bottom: 4px; }
.contact-info-item p { color: var(--gray-500); font-size: 0.9rem; margin: 0; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
.animate-fade-up {
  animation: fadeInUp 0.7s ease both;
}
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }
.animate-delay-4 { animation-delay: .4s; }

/* Intersection Observer Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-link { width: 100%; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border);
    min-width: 100%;
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    margin-top: 4px;
  }
  .nav-item:hover .dropdown-menu { display: grid; }
  .dropdown-menu { display: none; }
  .nav-item.open .dropdown-menu { display: grid; }
  .seo-content { padding: 24px; }
  .calc-card { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.three { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 24px; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-row.three { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .btn { padding: 12px 22px; font-size: 0.95rem; }
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.gap-8 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
}
.separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
