/* ============================================================
   ILOVERESULT — Global Design System
   Author: ILOVERESULT Team
   Version: 1.0
============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@600;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --primary: #FF6B35;
  --primary-dark: #e85520;
  --primary-light: #ff8c5a;
  --primary-glow: rgba(255,107,53,0.15);
  --dark: #1A1A2E;
  --dark-2: #16213E;
  --dark-3: #0F3460;
  --charcoal: #2D2D2D;
  --gray: #6B7280;
  --gray-light: #9CA3AF;
  --border: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F8F9FA;
  --bg-muted: #F1F3F5;
  --text: #1F2937;
  --text-muted: #6B7280;
  --success: #10B981;
  --warning: #F59E0B;
  --info: #3B82F6;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.14), 0 12px 32px rgba(0,0,0,0.10);
  --shadow-primary: 0 8px 24px rgba(255,107,53,0.30);
  --shadow-primary-lg: 0 16px 48px rgba(255,107,53,0.35);

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: 0.15s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);

  --header-height: 72px;
  --container-max: 1280px;
  --section-pad: 96px 0;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select {
  font-family: var(--font-sans);
  outline: none;
}

/* ── Layout Utilities ── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad); }
.section-sm { padding: 56px 0; }
.section-lg { padding: 120px 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }
.grid { display: grid; }
.hidden { display: none !important; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--charcoal); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-muted); line-height: 1.75; }
.text-primary { color: var(--primary); }
.text-dark { color: var(--dark); }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-glow); color: var(--primary);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 6px 16px; border-radius: var(--radius-full);
  margin-bottom: 16px; border: 1px solid rgba(255,107,53,0.2);
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.1); opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-lg);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--dark); color: #fff;
}
.btn-dark:hover {
  background: var(--dark-2); transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-white {
  background: #fff; color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 8px 20px; font-size: 0.82rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; justify-content: center; }

/* ── Cards ── */
.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0; transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::before { opacity: 1; }

/* ── Tool Cards ── */
.tool-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.tool-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0); transition: transform var(--transition);
  transform-origin: left;
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}
.tool-card:hover::after { transform: scaleX(1); }
.tool-card .tool-icon {
  width: 64px; height: 64px;
  background: var(--primary-glow);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  transition: all var(--transition);
}
.tool-card:hover .tool-icon {
  background: var(--primary);
  transform: scale(1.1) rotate(5deg);
}
.tool-card:hover .tool-icon svg,
.tool-card:hover .tool-icon span { filter: brightness(0) invert(1); }
.tool-card h3 { font-size: 1rem; font-weight: 700; color: var(--charcoal); margin: 0; }
.tool-card p { font-size: 0.83rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.tool-card .btn { margin-top: auto; font-size: 0.8rem; padding: 8px 18px; }

/* ── Tool Grid ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.tools-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tools-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tools-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex; align-items: center;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.4rem; color: var(--charcoal);
  letter-spacing: -0.02em; flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 1.2rem;
  font-weight: 900; box-shadow: var(--shadow-primary);
}
.logo span.highlight { color: var(--primary); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.88rem; color: var(--charcoal);
  transition: all var(--transition); white-space: nowrap;
}
.nav-link:hover { background: var(--bg-soft); color: var(--primary); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  min-width: 200px; padding: 8px;
  opacity: 0; pointer-events: none;
  transition: all var(--transition);
  z-index: 100;
}
.dropdown.two-col {
  min-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 12px;
}
.nav-item:hover .dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500; color: var(--charcoal);
  transition: all var(--transition);
}
.dropdown a:hover { background: var(--primary-glow); color: var(--primary); }
.dropdown a span.dd-icon { font-size: 16px; }

/* Dropdown Bridge to prevent hover loss */
.dropdown::before,
.mega-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

/* Mega Menu */
.mega-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
  width: 820px; padding: 28px;
  opacity: 0; pointer-events: none;
  transition: all var(--transition);
  z-index: 100;
}
.nav-item:hover .mega-menu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.mega-col h4 {
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--primary-glow);
}
.mega-col a {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500; color: var(--charcoal);
  transition: all var(--transition-fast);
}
.mega-col a:hover {
  background: var(--primary-glow); color: var(--primary);
  padding-left: 12px;
}
.mega-col a .mm-icon { font-size: 14px; }
.mega-menu-footer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: center;
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); padding: 6px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-soft); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--charcoal); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 999;
  overflow-y: auto; padding: 24px;
  transform: translateX(100%); transition: transform var(--transition-slow);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-item { border-bottom: 1px solid var(--border); }
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; font-weight: 600; font-size: 1rem; color: var(--charcoal);
}
.mobile-nav-sub {
  padding: 8px 0 16px 16px;
  display: none;
}
.mobile-nav-sub.open { display: block; }
.mobile-nav-sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 0.875rem; color: var(--text-muted);
  border-bottom: 1px solid var(--bg-muted);
}
.mobile-nav-sub a:hover { color: var(--primary); }
.mobile-nav-sub h5 {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--primary); margin: 12px 0 6px;
}

/* ── HERO SECTION ── */
.hero {
  background: linear-gradient(135deg, #0F0F1A 0%, #1A1A2E 40%, #16213E 100%);
  min-height: calc(100vh - var(--header-height));
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(255,107,53,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(255,107,53,0.08) 0%, transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,53,0.15); color: var(--primary);
  border: 1px solid rgba(255,107,53,0.3);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero-badge span { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; animation: pulse 1.5s infinite; }
.hero h1 { color: #fff; margin-bottom: 24px; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.hero h1 .highlight { color: var(--primary); }
.hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat { text-align: left; }
.hero-stat .stat-value { font-size: 1.5rem; font-weight: 800; color: #fff; font-family: var(--font-display); }
.hero-stat .stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* Hero 3D Icons */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative; height: 420px;
}
.floating-icons-container {
  position: relative; width: 360px; height: 360px;
}
.floating-icon {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  border-radius: 24px;
  animation: floatRotate 6s ease-in-out infinite;
}
.floating-icon-1 {
  width: 130px; height: 130px;
  background: linear-gradient(135deg, #FF6B35, #FF8C5A, #FFB347);
  top: 10%; left: 10%;
  box-shadow: 0 20px 60px rgba(255,107,53,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  animation-delay: 0s;
  font-size: 52px;
  transform-style: preserve-3d;
}
.floating-icon-2 {
  width: 110px; height: 110px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED, #A855F7);
  top: 50%; right: 5%;
  transform: translateY(-50%);
  box-shadow: 0 20px 60px rgba(124,58,237,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  animation-delay: -2s;
  font-size: 44px;
}
.floating-icon-3 {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, #059669, #10B981, #34D399);
  bottom: 8%; left: 30%;
  box-shadow: 0 20px 60px rgba(5,150,105,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  animation-delay: -4s;
  font-size: 40px;
}
.floating-icon-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px;
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 12px rgba(245,158,11,0.15), 0 0 0 24px rgba(245,158,11,0.08);
  font-size: 36px;
  animation: spinGlow 8s linear infinite;
}
.floating-icon-text {
  color: #fff; font-weight: 900; font-size: 1rem;
  font-family: var(--font-display); letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.icon-glow {
  position: absolute; border-radius: 50%; filter: blur(40px);
  pointer-events: none;
}
.glow-1 {
  width: 200px; height: 200px;
  background: rgba(255,107,53,0.3);
  top: -20px; left: -20px;
  animation: glowPulse 4s ease-in-out infinite;
}
.glow-2 {
  width: 160px; height: 160px;
  background: rgba(124,58,237,0.25);
  bottom: -20px; right: -20px;
  animation: glowPulse 4s ease-in-out infinite reverse;
}
.hero-dots {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none; overflow: hidden;
}
.hero-dots::before {
  content: '';
  position: absolute; width: 300px; height: 300px;
  right: -80px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255,107,53,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── ANIMATIONS ── */
@keyframes floatRotate {
  0%   { transform: translateY(0) rotate(0deg) scale(1); }
  25%  { transform: translateY(-14px) rotate(6deg) scale(1.03); }
  50%  { transform: translateY(-8px) rotate(0deg) scale(1.01); }
  75%  { transform: translateY(-18px) rotate(-6deg) scale(1.04); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes spinGlow {
  0%   { transform: translate(-50%,-50%) rotate(0deg); box-shadow: 0 0 0 12px rgba(245,158,11,0.15), 0 0 0 24px rgba(245,158,11,0.08); }
  50%  { box-shadow: 0 0 0 18px rgba(245,158,11,0.20), 0 0 0 36px rgba(245,158,11,0.06); }
  100% { transform: translate(-50%,-50%) rotate(360deg); box-shadow: 0 0 0 12px rgba(245,158,11,0.15), 0 0 0 24px rgba(245,158,11,0.08); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.15); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── AD PLACEHOLDERS ── */
.ad-placeholder {
  background: linear-gradient(90deg, #f8f9fa, #f1f3f5, #f8f9fa);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
  border: 2px dashed #D1D5DB;
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; color: var(--gray-light);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.ad-banner { height: 100px; width: 100%; }
.ad-square { height: 280px; width: 100%; max-width: 340px; }
.ad-inline { height: 90px; width: 100%; margin: 32px 0; }
.ad-section { padding: 16px 0; }

/* ── CATEGORY SECTION ── */
.category-section { padding: 80px 0; }
.category-section:nth-child(even) { background: var(--bg-soft); }

.category-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px; flex-wrap: wrap; gap: 16px;
}
.category-header-left .category-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-glow); color: var(--primary);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 12px;
  border-radius: var(--radius-full); margin-bottom: 8px;
}
.category-header-left h2 { font-size: 1.6rem; margin-bottom: 6px; }
.category-header-left p { font-size: 0.9rem; color: var(--text-muted); }

/* ── FEATURES / WHY SECTION ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.feature-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-lg);
  background: var(--primary-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 20px;
  transition: all var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--primary);
  transform: scale(1.1);
}

/* ── HOW IT WORKS ── */
.how-it-works {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 96px 0;
}
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute;
  top: 36px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0.3;
}
.step-card { text-align: center; position: relative; }
.step-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-primary);
  font-family: var(--font-display);
}
.step-card h4 { color: #fff; margin-bottom: 8px; font-size: 1rem; }
.step-card p { color: rgba(255,255,255,0.55); font-size: 0.85rem; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item.open { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer;
  font-weight: 600; font-size: 0.95rem; color: var(--charcoal);
  transition: all var(--transition);
}
.faq-q:hover { background: var(--bg-soft); }
.faq-item.open .faq-q { background: var(--primary-glow); color: var(--primary); }
.faq-arrow {
  width: 20px; height: 20px; flex-shrink: 0;
  border-radius: 50%; background: var(--bg-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; transition: all var(--transition);
}
.faq-item.open .faq-arrow { background: var(--primary); color: #fff; transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 20px; }
.faq-a p { font-size: 0.9rem; line-height: 1.7; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 96px 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='%23fff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section h2 { color: #fff; margin-bottom: 16px; position: relative; }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 36px; position: relative; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── FOOTER ── */
.site-footer {
  background: linear-gradient(180deg, #0F0F1A 0%, #080810 100%);
  padding: 80px 0 0;
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
  line-height: 1.7; max-width: 280px; margin-bottom: 24px;
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: rgba(255,255,255,0.5);
  transition: all var(--transition); border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}
.social-link:hover { transform: translateY(-3px) scale(1.05); }
.social-link.facebook:hover  { background: #1877F2; border-color: #1877F2; color: #fff; box-shadow: 0 8px 20px rgba(24,119,242,0.4); }
.social-link.instagram:hover { background: linear-gradient(135deg,#F58529,#DD2A7B,#8134AF,#515BD4); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(221,42,123,0.4); }
.social-link.twitter:hover   { background: #000; border-color: #000; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
.social-link.youtube:hover   { background: #FF0000; border-color: #FF0000; color: #fff; box-shadow: 0 8px 20px rgba(255,0,0,0.4); }

.footer-col h4 {
  color: #fff; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 6px;
  transition: all var(--transition);
}
.footer-col ul li a::before {
  content: '›'; color: var(--primary); font-size: 1rem;
  opacity: 0; transition: all var(--transition);
  transform: translateX(-6px);
}
.footer-col ul li a:hover {
  color: #fff; padding-left: 6px;
}
.footer-col ul li a:hover::before { opacity: 1; transform: translateX(0); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); margin: 0; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: 0.82rem; color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--primary); }

/* ── TOOL PAGE HERO ── */
.tool-hero {
  background: linear-gradient(135deg, #0F0F1A 0%, #1A1A2E 100%);
  padding: 60px 0; position: relative; overflow: hidden;
}
.tool-hero::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 50%;
  background: radial-gradient(ellipse 80% 100% at 0% 50%, rgba(255,107,53,0.1) 0%, transparent 100%);
}
.tool-hero-content { position: relative; z-index: 1; }
.tool-hero-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.tool-hero-breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.tool-hero-breadcrumb a:hover { color: var(--primary); }
.tool-hero-breadcrumb span { color: rgba(255,255,255,0.25); }
.tool-hero-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin-bottom: 20px;
  box-shadow: var(--shadow-primary-lg);
}
.tool-hero h1 { color: #fff; margin-bottom: 12px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.tool-hero p { color: rgba(255,255,255,0.65); max-width: 600px; font-size: 1rem; }

/* ── TOOL UI AREA ── */
.tool-ui-section { padding: 56px 0; background: var(--bg-soft); }
.tool-box {
  background: var(--bg); border-radius: var(--radius-xl);
  border: 1px solid var(--border); padding: 36px;
  box-shadow: var(--shadow-lg); max-width: 860px; margin: 0 auto;
}
.tool-box-header {
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.tool-box-header h3 { font-size: 1.1rem; color: var(--charcoal); }

/* Upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-soft);
  position: relative;
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-glow);
}
.upload-icon { font-size: 48px; margin-bottom: 12px; display: block; }
.upload-area h4 { font-size: 1.1rem; margin-bottom: 8px; }
.upload-area p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.upload-input {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; z-index: 1;
}
.upload-area .btn {
  position: relative; z-index: 2; /* sits above the transparent input */
  pointer-events: auto;
}
.upload-area.has-file {
  border-style: solid;
  background: rgba(16,185,129,0.04);
}
.upload-icon { font-size: 48px; margin-bottom: 12px; display: block; pointer-events: none; }
.upload-preview { pointer-events: none; }

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 8px;
}
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--charcoal);
  background: var(--bg); transition: all var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control::placeholder { color: var(--gray-light); }
textarea.form-control { resize: vertical; min-height: 140px; line-height: 1.6; }

/* Result area */
.result-area {
  margin-top: 24px; padding: 20px;
  background: var(--bg-soft); border-radius: var(--radius);
  border: 1px solid var(--border); display: none;
}
.result-area.show { display: block; }
.result-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.result-stat {
  background: var(--bg); border-radius: var(--radius);
  padding: 16px 20px; border: 1px solid var(--border);
  text-align: center; flex: 1; min-width: 100px;
  box-shadow: var(--shadow-sm);
}
.result-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--primary); font-family: var(--font-display); }
.result-stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.result-output {
  width: 100%; padding: 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--charcoal);
  background: var(--bg); resize: vertical; min-height: 100px;
  line-height: 1.6; font-family: var(--font-sans);
}

/* Tool actions row */
.tool-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.progress-bar-wrap {
  background: var(--bg-muted); border-radius: var(--radius-full);
  height: 8px; overflow: hidden; margin-top: 16px; display: none;
}
.progress-bar-wrap.show { display: block; }
.progress-bar {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), #FFB347, var(--primary-light));
  background-size: 200% 100%;
  width: 0;
  animation: progressShimmer 1.5s ease infinite;
}
@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Download button */
.download-result-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
}
.download-result-btn:hover { transform: translateY(-1px); }

/* Related tools */
.related-tools { padding: 56px 0; }
.related-tools h2 { margin-bottom: 32px; }

/* Info sections */
.content-section { padding: 64px 0; }
.content-section h2 { margin-bottom: 20px; }
.content-section h3 { margin-bottom: 12px; margin-top: 28px; font-size: 1.15rem; }
.content-section p { margin-bottom: 16px; }
.content-section ul, .content-section ol {
  margin: 16px 0; padding-left: 20px;
  display: flex; flex-direction: column; gap: 8px;
  list-style: disc;
}
.content-section ul li, .content-section ol li {
  color: var(--text-muted); font-size: 0.92rem; line-height: 1.7;
}

/* Steps list */
.steps-list { counter-reset: step; display: flex; flex-direction: column; gap: 16px; }
.step-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--bg-soft);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.step-item .step-n {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 800; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
}
.step-item-body h4 { margin-bottom: 4px; font-size: 0.95rem; }
.step-item-body p { font-size: 0.85rem; margin: 0; }

/* ── HOMEPAGE SPECIFIC ── */
.popular-section { padding: 80px 0; }
.popular-section .tools-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* Stats bar */
.stats-bar {
  background: var(--primary);
  padding: 24px 0;
}
.stats-bar-inner {
  display: flex; justify-content: space-around;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.stats-bar-item { text-align: center; color: #fff; }
.stats-bar-item .val { font-size: 1.8rem; font-weight: 800; font-family: var(--font-display); }
.stats-bar-item .lbl { font-size: 0.78rem; opacity: 0.8; }

/* Hero search */
.search-wrapper {
  position: relative;
  max-width: 440px;
  width: 100%;
  margin-bottom: 32px;
  z-index: 99;
}
.hero-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full); padding: 8px 8px 8px 20px;
  width: 100%; gap: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hero-search:focus-within {
  border-color: rgba(255,107,53,0.5);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.15);
}
.hero-search input {
  flex: 1; background: none; border: none;
  color: #fff; font-size: 0.9rem;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.45); }
.hero-search button { border-radius: var(--radius-full); padding: 10px 20px; font-size: 0.85rem; }

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.search-suggestions.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover, .suggestion-item.active {
  background: rgba(255, 107, 53, 0.2);
}
.suggestion-icon {
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.15);
  border-radius: 8px;
  flex-shrink: 0;
}
.suggestion-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}
.suggestion-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.suggestion-name span.highlight {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.1);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 800;
}
.suggestion-category {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

/* ── ABOUT / CONTACT PAGES ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 72px 0; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,107,53,0.1) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.6); max-width: 600px; margin: 0 auto; }

.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; }
.contact-form-box {
  background: var(--bg); border-radius: var(--radius-xl);
  border: 1px solid var(--border); padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-info-box { display: flex; flex-direction: column; gap: 24px; }
.contact-info-card {
  background: var(--bg-soft); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: all var(--transition);
}
.contact-info-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.contact-info-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--primary-glow); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.contact-info-text h4 { margin-bottom: 4px; font-size: 0.95rem; }
.contact-info-text p { font-size: 0.85rem; margin: 0; }

/* Policy pages */
.policy-content { max-width: 800px; margin: 0 auto; padding: 64px 24px; }
.policy-content h2 { margin-top: 40px; margin-bottom: 16px; font-size: 1.4rem; }
.policy-content h3 { margin-top: 28px; margin-bottom: 12px; font-size: 1.1rem; }
.policy-content p { margin-bottom: 16px; font-size: 0.95rem; line-height: 1.8; }
.policy-content ul { padding-left: 20px; margin-bottom: 16px; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.policy-content ul li { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }
.policy-date {
  background: var(--primary-glow); border: 1px solid rgba(255,107,53,0.2);
  border-radius: var(--radius); padding: 12px 20px;
  font-size: 0.85rem; color: var(--primary); font-weight: 600;
  margin-bottom: 32px; display: inline-block;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .mega-menu { width: 700px; }
  .mega-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --section-pad: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 280px; order: -1; }
  .floating-icons-container { width: 260px; height: 260px; }
  .floating-icon-1 { width: 100px; height: 100px; font-size: 38px; }
  .floating-icon-2 { width: 84px; height: 84px; font-size: 34px; }
  .floating-icon-3 { width: 76px; height: 76px; font-size: 30px; }
  .floating-icon-center { width: 68px; height: 68px; font-size: 26px; }
  .tools-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tools-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn:not(.hamburger) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .mega-menu { display: none; }
  .tool-box { padding: 24px 16px; }
  .category-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  :root { --header-height: 60px; }
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid-3 { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .search-wrapper { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .result-stats { flex-direction: column; }
}

/* ══════════════════════════════════════════════
   TOOL PAGE COMPONENTS
══════════════════════════════════════════════ */

/* ── Result Stats (calculator/text tool pages) ── */
.result-stats { display:flex; gap:16px; flex-wrap:wrap; }
.result-stat {
  background:var(--bg-soft); border:1px solid var(--border);
  border-radius:var(--radius); padding:16px 20px; text-align:center;
  flex:1; min-width:100px; transition:var(--transition);
}
.result-stat:hover { border-color:var(--primary); box-shadow:var(--shadow-sm); }
.result-stat-value {
  font-size:1.8rem; font-weight:800; color:var(--primary);
  line-height:1; margin-bottom:4px; font-family:var(--font-display);
}
.result-stat-label {
  font-size:0.72rem; font-weight:600; text-transform:uppercase;
  letter-spacing:0.06em; color:var(--text-muted);
}

/* ── Steps List ── */
.steps-list { display:flex; flex-direction:column; gap:16px; }
.step-item {
  display:flex; align-items:flex-start; gap:20px;
  padding:20px 24px; background:var(--bg-soft);
  border-radius:var(--radius); border-left:3px solid var(--primary);
}
.step-n {
  width:36px; height:36px; border-radius:50%;
  background:var(--primary); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:1rem; flex-shrink:0;
}
.step-item-body h4 { margin-bottom:4px; font-size:1rem; font-weight:700; }
.step-item-body p { font-size:0.875rem; color:var(--text-muted); margin:0; }

/* ── Tool Hero Breadcrumb ── */
.tool-hero-breadcrumb {
  display:flex; align-items:center; gap:8px;
  font-size:0.8rem; color:rgba(255,255,255,0.65);
  margin-bottom:20px; flex-wrap:wrap; justify-content:center;
}
.tool-hero-breadcrumb a { color:rgba(255,255,255,0.75); text-decoration:none; transition:color 0.15s; }
.tool-hero-breadcrumb a:hover { color:#fff; }

/* ── Tools Grid 2-column ── */
.tools-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }

/* ── Social Links ── */
.social-links { display:flex; gap:10px; margin-top:20px; flex-wrap:wrap; }
.social-link {
  width:38px; height:38px; border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  text-decoration:none; transition:var(--transition); color:#fff;
}
.social-link:hover { transform:translateY(-2px); opacity:0.85; }
.social-link.facebook { background:#1877F2; }
.social-link.instagram { background:linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.social-link.twitter { background:#000; }
.social-link.youtube { background:#FF0000; }

/* ── Result Output (text tool result textarea) ── */
.result-output {
  width:100%; min-height:100px; background:var(--bg-soft);
  border:1px solid var(--border); border-radius:var(--radius);
  padding:14px 16px; font-family:var(--font-sans); font-size:0.9rem;
  color:var(--text); resize:vertical; outline:none; cursor:default;
}

/* ── Related Tools Section ── */
.related-tools { padding:64px 0; background:var(--bg); }

/* ── dd-icon (dropdown icon span) ── */
.dd-icon { font-size:1rem; min-width:20px; display:inline-block; text-align:center; }

/* ── Responsive overrides ── */
@media (max-width:768px) {
  .tools-grid-2 { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .result-stat-value { font-size:1.4rem; }
  .step-item { flex-direction:column; gap:12px; }
}

/* ── Word to PDF Document Preview Section ── */
.word-preview-section {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 30px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.word-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.word-preview-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.word-preview-actions {
  display: flex;
  gap: 12px;
}

/* Transparent sheet wrapper container for live preview */
.word-preview-sheet {
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Content element layouts inside document sheet */
.word-preview-sheet h1, 
.word-preview-sheet h2, 
.word-preview-sheet h3, 
.word-preview-sheet h4, 
.word-preview-sheet h5, 
.word-preview-sheet h6 {
  color: #111111;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  font-weight: bold;
  line-height: 1.3;
}
.word-preview-sheet h1 { font-size: 24px; border-bottom: 1px solid #eaeaea; padding-bottom: 6px; }
.word-preview-sheet h2 { font-size: 20px; }
.word-preview-sheet h3 { font-size: 17px; }
.word-preview-sheet p { margin-bottom: 1.2em; text-align: justify; }
.word-preview-sheet table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; table-layout: fixed; }
.word-preview-sheet th, 
.word-preview-sheet td { border: 1px solid #dddddd; padding: 10px; text-align: left; word-wrap: break-word; overflow-wrap: break-word; vertical-align: top; }
.word-preview-sheet th { background-color: #f8fafc; font-weight: bold; color: #1e293b; }
.word-preview-sheet img { max-width: 100%; height: auto !important; display: block; margin: 16px auto; border-radius: 6px; object-fit: contain; }
.word-preview-sheet ul, 
.word-preview-sheet ol { margin-bottom: 1.4em; padding-left: 24px; }
.word-preview-sheet li { margin-bottom: 0.5em; line-height: 1.6; }
.word-preview-sheet blockquote { border-left: 4px solid #10b981; padding-left: 16px; margin: 1.5em 0; color: #475569; font-style: italic; background: #f8fafc; padding-top: 8px; padding-bottom: 8px; }

/* Clean print styles to isolate only the preview sheet during browser printing */
@media print {
  /* Hide all elements on the body */
  body * {
    visibility: hidden !important;
  }
  
  /* Show only the sheet and its children */
  .word-preview-sheet, 
  .word-preview-sheet * {
    visibility: visible !important;
  }
  
  /* Reset document flow to render print margins precisely */
  .word-preview-sheet {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }
  
  /* docx-preview print overrides */
  .docx-wrapper {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: block !important;
  }
  .docx-wrapper > section.docx {
    box-shadow: none !important;
    border: none !important;
    margin: 0 auto !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
    display: block !important;
  }

  .preview-pdf-page {
    page-break-after: always !important;
    page-break-inside: avoid !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    display: block !important;
  }
}

