/* FreePixel — Global Styles */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes heroFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-18px) scale(1.04); } }

:root {
  /* PRIMARY PALETTE — teal */
  --primary:        #0891B2;
  --primary-dark:   #0E7490;
  --primary-darker: #155E75;
  --primary-light:  #CFFAFE;
  --primary-mid:    #A5F3FC;
  --shadow-purple:    0 8px 28px rgba(8,145,178,.28);
  --shadow-purple-lg: 0 16px 48px rgba(8,145,178,.35);

  /* NEUTRALS */
  --text:       #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg:         #F3F2F8;
  --surface:    #FFFFFF;
  --border:     #E5E7EB;
  --border-dk:  #D1D5DB;

  /* SEMANTIC */
  --success:      #059669;  --success-bg: #D1FAE5;  --success-text: #065F46;
  --danger:       #DC2626;  --danger-bg:  #FEE2E2;
  --amber:        #D97706;  --amber-bg:   #FEF3C7;  --amber-text: #92400E;

  /* RADII */
  --r:    8px;  --r-lg: 12px;  --r-xl: 16px;  --r-2xl: 20px;  --r-3xl: 28px;

  /* SHADOWS */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.13);

  /* TYPOGRAPHY */
  --font:  'DM Sans', -apple-system, sans-serif;
  --trans: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(circle, rgba(8,145,178,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── HEADER ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  height: 58px; display: flex; align-items: center; gap: 1rem;
}
.logo {
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  text-decoration: none; white-space: nowrap; flex-shrink: 0; letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.logo span {
  background: linear-gradient(135deg, var(--primary), #22D3EE);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header-nav {
  display: flex; align-items: center; gap: 2px; flex: 1; overflow: visible;
}
.nav-link {
  font-size: .85rem; font-weight: 500; color: var(--text-muted);
  padding: 5px 10px; border-radius: var(--r); text-decoration: none;
  transition: color var(--trans), background var(--trans); white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); text-decoration: none; }
.nav-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; flex-shrink: 0; }
.nav-group { position: relative; }
.nav-group-btn {
  font-size: .85rem; font-weight: 500; color: var(--text-muted);
  padding: 5px 10px; border-radius: var(--r); border: none; background: none;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: color var(--trans), background var(--trans); white-space: nowrap; font-family: var(--font);
}
.nav-group-btn:hover, .nav-group-btn.open { color: var(--primary); background: var(--primary-light); }
.nav-chev { font-size: 13px; transition: transform var(--trans); }
.nav-group-btn.open .nav-chev { transform: rotate(180deg); }
.nav-drop {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 6px; min-width: 210px; z-index: 200;
}
.nav-drop.open { display: block; animation: fadeIn .15s ease; }
.nav-drop a {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: var(--r); font-size: .85rem; color: var(--text-muted);
  text-decoration: none; transition: background var(--trans), color var(--trans);
}
.nav-drop a:hover { background: var(--bg); color: var(--primary); text-decoration: none; }
.nav-drop a i { font-size: 15px; flex-shrink: 0; }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 22px; padding: 4px; margin-left: auto;
}

/* ── FOOTER ── */
.site-footer { background: #0C1A27; color: var(--text-light); margin-top: auto; }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
  font-size: 13px;
}
.footer-logo {
  font-size: 1.1rem; font-weight: 800; color: #fff; letter-spacing: -.02em;
}
.footer-logo span {
  background: linear-gradient(135deg, var(--primary), #22D3EE);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-disclaimer { font-size: 12px; opacity: .7; }

/* Our Network */
.our-network { border-top: 1px solid rgba(255,255,255,.08); padding: 1.5rem 0; }
.nt-inner { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.nt-heading { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.nt-heading i { font-size: 14px; }
.nt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem; }
.nt-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 1rem; text-decoration: none; transition: all var(--trans); }
.nt-card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); text-decoration: none; }
.nt-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: .625rem; }
.nt-icon { width: 36px; height: 36px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.nt-name { font-size: 14px; font-weight: 700; color: #fff; }
.nt-tag { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 1px; }
.nt-arrow { margin-left: auto; font-size: 16px; color: rgba(255,255,255,.35); }
.nt-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.nt-pill { font-size: 11px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); padding: 2px 8px; border-radius: 99px; }
.nt-more { background: rgba(255,255,255,.05); color: rgba(255,255,255,.4); }

/* ── HOMEPAGE ── */
.home-hero {
  background: linear-gradient(145deg,#0C1929 0%,#0D3D56 40%,#0E7490 75%,#0891B2 100%);
  position: relative; overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shape {
  position: absolute; border-radius: 50%; background: rgba(8,145,178,.12);
  animation: heroFloat 10s ease-in-out infinite;
}
.hero-shape:nth-child(1) { width:500px;height:500px;top:-150px;right:-100px;animation-delay:0s; }
.hero-shape:nth-child(2) { width:300px;height:300px;bottom:-80px;left:-60px;animation-delay:-3s; }
.hero-shape:nth-child(3) { width:200px;height:200px;top:30%;left:10%;animation-delay:-6s; }
.hero-shape:nth-child(4) { width:150px;height:150px;bottom:20%;right:15%;animation-delay:-1.5s; }
.hero-inner { max-width: 700px; margin: 0 auto; padding: 5rem 1.5rem 4rem; text-align: center; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--primary-mid); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: 5px 14px; border-radius: 99px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.5rem; }
.home-hero h1 { font-size: clamp(32px,5vw,52px); font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1.1; margin-bottom: .875rem; }
.home-hero h1 em { color: var(--primary-mid); font-style: normal; text-decoration: underline; text-decoration-color: rgba(165,243,252,.4); text-underline-offset: 4px; }
.hero-sub { font-size: clamp(15px,2vw,18px); color: rgba(165,243,252,.8); max-width: 520px; margin: 0 auto 2rem; }
.hero-ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-cta-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; padding: 12px 28px; border-radius: var(--r-2xl); font-size: 15px; font-weight: 700; text-decoration: none; transition: all var(--trans); box-shadow: 0 6px 20px rgba(8,145,178,.5); }
.hero-cta-primary:hover { background: var(--primary-dark); transform: translateY(-2px); text-decoration: none; box-shadow: 0 10px 28px rgba(8,145,178,.55); }
.hero-cta-secondary { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); color: #fff; padding: 12px 24px; border-radius: var(--r-2xl); font-size: 15px; font-weight: 600; border: 1.5px solid rgba(255,255,255,.25); text-decoration: none; transition: all var(--trans); }
.hero-cta-secondary:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 4px 12px; border-radius: 99px; }

/* ── TOOLS SECTION ── */
.tools-section { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.tools-section.popular { padding-bottom: 1.5rem; }
.section-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.section-icon { width: 36px; height: 36px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.section-title { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.section-count { font-size: 12px; font-weight: 600; background: var(--primary-light); color: var(--primary); padding: 2px 10px; border-radius: 99px; margin-left: auto; }

/* Tool cards grid */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 10px; }
.tool-card {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--r-xl); padding: 14px 16px;
  text-decoration: none; color: var(--text); transition: all var(--trans);
}
.tool-card:hover { border-color: var(--primary-mid); box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.tool-icon { width: 42px; height: 42px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.tool-info { flex: 1; min-width: 0; }
.tool-info h2 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-info p { font-size: 12px; color: var(--text-muted); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-arrow { font-size: 16px; color: var(--text-light); flex-shrink: 0; transition: all var(--trans); }
.tool-card:hover .tool-arrow { color: var(--primary); transform: translateX(2px); }

/* Tool icon colour classes */
.tc-purple{background:linear-gradient(135deg,#EDE9FE,#DDD6FE);color:#6D28D9}
.tc-blue{background:linear-gradient(135deg,#DBEAFE,#BFDBFE);color:#1D4ED8}
.tc-green{background:linear-gradient(135deg,#D1FAE5,#A7F3D0);color:#065F46}
.tc-coral{background:linear-gradient(135deg,#FEE2E2,#FECACA);color:#B91C1C}
.tc-teal{background:linear-gradient(135deg,#CFFAFE,#A5F3FC);color:#0E7490}
.tc-amber{background:linear-gradient(135deg,#FEF3C7,#FDE68A);color:#92400E}
.tc-pink{background:linear-gradient(135deg,#FCE7F3,#FBCFE8);color:#9D174D}
.tc-indigo{background:linear-gradient(135deg,#E0E7FF,#C7D2FE);color:#3730A3}
.tc-gray{background:linear-gradient(135deg,#F3F4F6,#E5E7EB);color:#374151}
.tc-cyan{background:linear-gradient(135deg,#CFFAFE,#A5F3FC);color:#0E7490}
.tc-orange{background:linear-gradient(135deg,#FFEDD5,#FED7AA);color:#C2410C}

/* Category grid */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 12px; }
.category-card {
  display: flex; align-items: flex-start; gap: 14px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--r-xl); padding: 1.25rem;
  text-decoration: none; color: var(--text); transition: all var(--trans);
}
.category-card:hover { border-color: var(--primary-mid); box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.cat-icon { width: 46px; height: 46px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.cat-body { flex: 1; min-width: 0; }
.cat-body h2 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.cat-body p { font-size: 12px; color: var(--text-muted); margin-bottom: .5rem; }
.cat-tools { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.cat-tools li { font-size: 11px; color: var(--text-muted); background: var(--bg); padding: 2px 8px; border-radius: 99px; border: 1px solid var(--border); }
.cat-more { color: var(--primary) !important; background: var(--primary-light) !important; border-color: var(--primary-mid) !important; }
.cat-arrow { font-size: 16px; color: var(--text-light); flex-shrink: 0; padding-top: 2px; }
.category-card:hover .cat-arrow { color: var(--primary); }

/* Trust strip */
.trust-strip { max-width: 1100px; margin: 0 auto; padding: 1rem 1.5rem 3rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
.trust-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-xl); padding: 1.25rem; text-align: center; }
.trust-card i { font-size: 26px; color: var(--primary); margin-bottom: .625rem; display: block; }
.trust-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.trust-body { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ── TOOL PAGES ── */
.tool-page-wrap { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); text-decoration: none; margin-bottom: 1.5rem; transition: color var(--trans); }
.back-btn:hover { color: var(--primary); text-decoration: none; }
.tool-hero { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.tool-hero > i { font-size: 32px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.tool-hero h1 { font-size: clamp(20px,3vw,28px); font-weight: 800; letter-spacing: -.03em; color: var(--text); margin-bottom: .25rem; }
.tool-hero p { font-size: 14px; color: var(--text-muted); }
.privacy-banner { background: var(--primary-light); border: 1px solid var(--primary-mid); border-radius: var(--r-lg); padding: .75rem 1rem; font-size: 13px; color: var(--primary-darker); display: flex; align-items: center; gap: 8px; margin-bottom: 1.5rem; }
.privacy-banner i { flex-shrink: 0; }

/* Dropzone */
.dropzone {
  background: var(--surface); border: 2px dashed var(--border-dk); border-radius: var(--r-2xl);
  padding: 3rem 2rem; text-align: center; cursor: pointer; transition: all var(--trans); position: relative;
  margin-bottom: 1.25rem;
}
.dropzone:hover, .dropzone.drag-over { border-color: var(--primary); background: var(--primary-light); }
.dropzone h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: .375rem; }
.dropzone p { font-size: 13px; color: var(--text-muted); margin-bottom: .875rem; }
.upload-label-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--primary); color: #fff; padding: 10px 22px; border-radius: var(--r-lg); font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--trans); }
.upload-label-btn:hover { background: var(--primary-dark); }

/* Options card */
.options-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-2xl); padding: 1.5rem; margin-bottom: 1.25rem; }
.options-card h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-light); margin-bottom: 1rem; }
.options-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-light); margin-bottom: 1rem; display: flex; align-items: center; gap: 6px; }

/* Option rows — layout for label + control pairs */
.option-row { margin-bottom: .875rem; }
.option-row:last-child { margin-bottom: 0; }
.option-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: .375rem; }
.option-control { display: flex; flex-direction: column; gap: .5rem; }

/* Inputs and selects inside option-control */
.option-control input[type=text],
.option-control input[type=number],
.option-control select,
.option-control textarea {
  width: 100%; padding: 8px 12px; border: 1.5px solid var(--border-dk);
  border-radius: var(--r-lg); font-size: 14px; color: var(--text);
  background: var(--surface); font-family: var(--font);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.option-control input[type=text]:focus,
.option-control input[type=number]:focus,
.option-control select:focus,
.option-control textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,145,178,.12);
}
/* Remove native number spinners */
.option-control input[type=number]::-webkit-outer-spin-button,
.option-control input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.option-control input[type=number] { -moz-appearance: textfield; }
/* Custom select arrow */
.option-control select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; cursor: pointer;
}
/* Color swatch inputs */
.option-control input[type=color] {
  width: 44px; height: 36px; padding: 2px; border: 1.5px solid var(--border-dk);
  border-radius: var(--r); cursor: pointer; background: var(--surface);
}
.option-control input[type=color]:focus { outline: none; border-color: var(--primary); }
/* Range sliders */
.option-control input[type=range] { width: 100%; accent-color: var(--primary); }

/* Preset / option toggle button groups */
.preset-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-btn {
  padding: 7px 14px; border: 1.5px solid var(--border-dk); border-radius: var(--r-lg);
  background: var(--surface); color: var(--text-muted); font-family: var(--font);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--trans);
}
.preset-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.preset-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Toggle switch (used for checkbox controls) */
.toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
.toggle input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-slider {
  width: 40px; height: 22px; background: var(--border-dk); border-radius: 99px;
  position: relative; transition: background var(--trans); flex-shrink: 0;
}
.toggle-slider::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  background: #fff; border-radius: 50%; transition: transform var(--trans);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked ~ .toggle-slider { background: var(--primary); }
.toggle input:checked ~ .toggle-slider::after { transform: translateX(18px); }

/* Legacy .field selectors (kept for compatibility) */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: .375rem; }
.field input[type=range] { width: 100%; accent-color: var(--primary); }
.field input[type=text], .field input[type=number], .field select, .field textarea { width: 100%; padding: 8px 12px; border: 1.5px solid var(--border-dk); border-radius: var(--r-lg); font-size: 14px; color: var(--text); background: var(--surface); font-family: var(--font); transition: border-color var(--trans); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,145,178,.12); }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.radio-group { display: flex; gap: .5rem; flex-wrap: wrap; }
.radio-group label { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--border); border-radius: var(--r-lg); font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all var(--trans); }
.radio-group input[type=radio] { display: none; }
.radio-group input:checked + span, .radio-group label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* Process button */
.process-btn {
  width: 100%; height: 54px; background: var(--primary); color: #fff; border: none;
  border-radius: var(--r-2xl); font-size: 16px; font-weight: 700; font-family: var(--font);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: all var(--trans); margin-bottom: 1.25rem;
}
.process-btn:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-purple); }
.process-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.process-btn i { font-size: 19px; }

/* Spinner */
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .75s linear infinite; }

/* Feedback panels */
.error-panel { display: none; align-items: flex-start; gap: 10px; background: var(--danger-bg); border: 1px solid rgba(220,38,38,.2); border-radius: var(--r-lg); padding: 1rem; font-size: 14px; color: var(--danger); margin-bottom: 1rem; }
.error-panel.show { display: flex; animation: fadeIn .2s ease; }
.progress-wrap { display: none; text-align: center; padding: 1.5rem; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-2xl); margin-bottom: 1rem; }
.progress-wrap.show { display: block; }
.progress-label { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: .75rem; }
.progress-track { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 99px; transition: width .3s ease; width: 0; }
.result-panel { display: none; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-2xl); padding: 1.5rem; }
.result-panel.show { display: block; animation: fadeIn .3s ease; }

/* Download button (used inside result panels) */
.dl-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; background: var(--success); color: #fff; border: none; border-radius: var(--r-xl); font-size: 15px; font-weight: 700; font-family: var(--font); cursor: pointer; transition: all var(--trans); margin-top: 1rem; }
.dl-btn:hover { background: #047857; transform: translateY(-1px); }
.reset-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 42px; background: none; border: 1.5px solid var(--border); border-radius: var(--r-xl); font-size: 14px; font-weight: 500; color: var(--text-muted); font-family: var(--font); cursor: pointer; transition: all var(--trans); margin-top: .75rem; }
.reset-btn:hover { border-color: var(--primary); color: var(--primary); }

/* File item rows */
.file-item { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px 14px; margin-bottom: .5rem; }
.file-item i { font-size: 18px; color: var(--primary); flex-shrink: 0; }
.file-item-name { flex: 1; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-item-size { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.file-item-handle { color: var(--text-light); cursor: grab; }
.file-item-remove { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 16px; padding: 2px; display: flex; align-items: center; transition: color var(--trans); }
.file-item-remove:hover { color: var(--danger); }

/* Preview image in result */
.result-preview { max-width: 100%; border-radius: var(--r-lg); margin-bottom: 1rem; }
.result-meta { font-size: 13px; color: var(--text-muted); margin-bottom: .75rem; }
.result-size-row { display: flex; align-items: center; gap: 1rem; font-size: 14px; margin-bottom: 1rem; }
.result-size-before { color: var(--text-muted); }
.result-size-after { font-weight: 700; color: var(--success); }

/* ── COOKIE CONSENT BANNER ── */
#fp-consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  padding: 1rem 1.5rem; background: var(--surface);
  border-top: 1px solid var(--border); box-shadow: 0 -4px 24px rgba(0,0,0,.1);
  transform: translateY(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
}
#fp-consent-banner.fp-consent-visible { transform: translateY(0); }
.fp-consent-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.fp-consent-body { display: flex; align-items: flex-start; gap: .875rem; flex: 1; min-width: 0; }
.fp-consent-icon {
  width: 38px; height: 38px; border-radius: var(--r-lg); flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-mid));
  color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.fp-consent-text { flex: 1; min-width: 0; }
.fp-consent-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.fp-consent-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.fp-consent-desc a { color: var(--primary); text-decoration: none; }
.fp-consent-desc a:hover { text-decoration: underline; }
.fp-consent-actions { display: flex; gap: .625rem; flex-shrink: 0; }
.fp-consent-btn {
  height: 38px; padding: 0 18px; border-radius: var(--r-lg); font-size: 13px; font-weight: 600;
  font-family: var(--font); cursor: pointer; border: 1.5px solid transparent; transition: all var(--trans);
  white-space: nowrap;
}
.fp-consent-btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.fp-consent-btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.fp-consent-btn-secondary { background: var(--surface); color: var(--text-muted); border-color: var(--border-dk); }
.fp-consent-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 600px) {
  .fp-consent-inner { flex-direction: column; }
  .fp-consent-actions { width: 100%; }
  .fp-consent-btn { flex: 1; }
}

/* ── AFFILIATE RESOURCE SECTION ── */
.affiliate-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.affiliate-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin-bottom: .375rem; }
.affiliate-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.02em; margin-bottom: .25rem; }
.affiliate-subheading { font-size: 13px; color: var(--text-muted); margin-bottom: 1rem; }
.affiliate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: .875rem; }
.affiliate-card {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--r-xl); padding: 14px 16px;
  text-decoration: none; color: var(--text); transition: all var(--trans);
}
.affiliate-card:hover { border-color: var(--primary-mid); box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.affiliate-card-icon {
  width: 38px; height: 38px; border-radius: var(--r-lg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-mid)); color: var(--primary-dark);
}
.affiliate-card-body { flex: 1; min-width: 0; }
.affiliate-card-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.affiliate-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.affiliate-card-arrow { font-size: 15px; color: var(--text-light); flex-shrink: 0; transition: all var(--trans); }
.affiliate-card:hover .affiliate-card-arrow { color: var(--primary); transform: translateX(2px); }
.affiliate-disclosure { font-size: 11px; color: var(--text-light); text-align: center; }
@media (max-width: 768px) { .affiliate-grid { grid-template-columns: 1fr; } }

/* About page */
.about-hero { background: linear-gradient(145deg,#0C1929 0%,#0D3D56 40%,#0E7490 75%,#0891B2 100%); padding: 5rem 1.5rem 4rem; text-align: center; position: relative; overflow: hidden; }
.about-hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.about-hero-shape { position: absolute; border-radius: 50%; background: rgba(8,145,178,.12); animation: heroFloat 10s ease-in-out infinite; }
.about-hero-shape:nth-child(1) { width:300px;height:300px;top:-80px;right:-60px;animation-delay:0s; }
.about-hero-shape:nth-child(2) { width:200px;height:200px;bottom:-40px;left:-30px;animation-delay:-4s; }
.about-hero-inner { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.about-hero-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--primary-mid); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: 5px 14px; border-radius: 99px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.25rem; }
.about-hero h1 { font-size: clamp(28px,5vw,44px); font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1.1; margin-bottom: .75rem; }
.about-hero h1 em { color: var(--primary-mid); font-style: normal; }
.about-hero p { font-size: 16px; color: rgba(165,243,252,.85); max-width: 480px; margin: 0 auto; }
.about-wrap { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }
.about-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-2xl); padding: 2rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.about-card-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); background: var(--primary-light); padding: 4px 12px; border-radius: 99px; margin-bottom: 1.25rem; }
.about-card h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; color: var(--text); }
.about-card p { font-size: 15px; color: #4B5563; line-height: 1.75; margin-bottom: 1rem; }
.about-card p:last-child { margin-bottom: 0; }
.mission-card { background: linear-gradient(135deg,#0C1929,#0D3D56,#0E7490); border: none; border-radius: var(--r-2xl); padding: 2rem; margin-bottom: 2rem; position: relative; overflow: hidden; }
.mission-card .about-card-label { background: rgba(255,255,255,.12); color: var(--primary-mid); }
.mission-card h2 { color: #fff; }
.mission-card p { color: rgba(165,243,252,.9); }

/* Privacy page */
.privacy-wrap { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }
.privacy-section { margin-bottom: 2rem; }
.privacy-section h2 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: .75rem; }
.privacy-section p, .privacy-section li { font-size: 14px; color: var(--text-muted); line-height: 1.75; margin-bottom: .5rem; }
.privacy-section ul { padding-left: 1.25rem; }

/* 404 */
.not-found { max-width: 500px; margin: 5rem auto; padding: 2rem 1.5rem; text-align: center; }
.not-found h1 { font-size: 80px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 1rem; }
.not-found h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: .75rem; }
.not-found p { font-size: 15px; color: var(--text-muted); margin-bottom: 2rem; }
.not-found a { display: inline-flex; align-items: center; gap: 7px; background: var(--primary); color: #fff; padding: 12px 28px; border-radius: var(--r-2xl); font-size: 15px; font-weight: 700; text-decoration: none; transition: all var(--trans); }
.not-found a:hover { background: var(--primary-dark); text-decoration: none; }

/* Mobile */
@media (max-width: 768px) {
  .header-nav { display: none; flex-direction: column; align-items: flex-start; gap: 4px; position: absolute; top: 58px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem; box-shadow: var(--shadow); z-index: 99; }
  .header-nav.open { display: flex; }
  .nav-sep { display: none; }
  .nav-group { width: 100%; }
  .nav-group-btn, .nav-link { width: 100%; justify-content: flex-start; }
  .nav-drop { position: static; box-shadow: none; border: none; padding: 0 0 0 1.5rem; animation: none; }
  .nav-drop.open { display: block; }
  .hamburger { display: block; }
  .header-inner { position: relative; }
  .hero-inner { padding: 3.5rem 1.5rem 3rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .fields-row { grid-template-columns: 1fr; }
  /* Tool page responsiveness */
  .tool-page-wrap { padding: 1.5rem 1rem 3rem; }
  .tool-hero { flex-direction: column; gap: .5rem; }
  .options-card { padding: 1rem; }
  .about-wrap { padding: 2rem 1rem; }
  .about-card { padding: 1.5rem; }
  .mission-card { padding: 1.5rem; }
  .how-grid { grid-template-columns: 1fr; }
  .cf-grid { grid-template-columns: 1fr; }
  .network-grid { grid-template-columns: 1fr; }
  .cat-tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .trust-strip { grid-template-columns: 1fr; }
  .nt-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .tools-section { padding: 1.5rem 1rem; }
  .tool-page-wrap { padding: 1rem .875rem 2.5rem; }
  .process-btn { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-shape, .about-hero-shape { animation: none; }
  .tool-card:hover, .category-card:hover { transform: none; }
}
