/* ToolBox - Design System */
:root {
  --bg: #ffffff;
  --bg2: #f8f9fa;
  --bg3: #f1f3f5;
  --surface: #ffffff;
  --border: #e9ecef;
  --border2: #dee2e6;
  --text: #1a1a2e;
  --text2: #495057;
  --text3: #868e96;
  --accent: #4361ee;
  --accent-light: #eef0fd;
  --accent-hover: #3a56d4;
  --success: #2ecc71;
  --success-light: #eafaf1;
  --danger: #e74c3c;
  --danger-light: #fdedec;
  --warning: #f39c12;
  --warning-light: #fef9e7;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --nav-h: 64px;
  --sidebar-w: 260px;
}

[data-theme="dark"] {
  --bg: #0f1117;
  --bg2: #161b22;
  --bg3: #1c2128;
  --surface: #161b22;
  --border: #30363d;
  --border2: #3d444d;
  --text: #e6edf3;
  --text2: #8b949e;
  --text3: #6e7681;
  --accent: #4d70f0;
  --accent-light: #1a2142;
  --accent-hover: #6082f5;
  --success-light: #0d2818;
  --danger-light: #2d0e0e;
  --warning-light: #2d1f00;
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  transition: background 0.2s, color 0.2s;
}

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text2); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
code, pre { font-family: var(--font-mono); }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem; gap: 1rem;
  backdrop-filter: blur(8px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; flex-shrink: 0; }
.nav-logo .logo-icon { width: 34px; height: 34px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; }

/* CENTER NAV */
.nav-categories { display: flex; align-items: center; gap: 4px; height: 100%; flex: 1; justify-content: center; }
.nav-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; flex-shrink: 0; }

/* Shared nav button style */
.nav-cat-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-cat-btn {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  background: none; border: none;
  font-family: var(--font); font-size: 13.5px; font-weight: 600;
  color: var(--text2); cursor: pointer; border-radius: 99px;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-cat-btn--primary { background: var(--accent); color: #fff; }
.nav-cat-btn--primary:hover { background: var(--accent-hover); color: #fff; }
.nav-cat-icon { display: flex; align-items: center; color: var(--text3); }
.nav-cat-chevron { transition: transform 0.2s; color: currentColor; opacity: 0.6; margin-left: -2px; }
.nav-cat-item:hover .nav-cat-btn:not(.nav-cat-btn--primary),
.nav-cat-item:focus-within .nav-cat-btn:not(.nav-cat-btn--primary) { color: var(--accent); background: var(--accent-light); }
.nav-cat-item:hover .nav-cat-chevron,
.nav-cat-item:focus-within .nav-cat-chevron { transform: rotate(180deg); }

/* Popular quick links */
.nav-popular-link {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px;
  font-size: 13px; font-weight: 600; color: var(--text2);
  text-decoration: none; border-radius: 99px; white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-popular-link:hover { color: var(--accent); background: var(--accent-light); }
.nav-popular-icon { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }

/* MEGA PANEL base */
.mega-panel {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 8px);
  min-width: 480px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 0.75rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 210;
}
.mega-panel::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav-cat-item:hover .mega-panel,
.nav-cat-item:focus-within .mega-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 4px); }
/* first-child rule removed — popular links have no mega panel */

/* ALL TOOLS mega panel — wide grid */
.at-panel { left: auto; right: -280px; transform: translate(0, 8px); min-width: 1150px; max-width: calc(100vw - 2rem); padding: 1rem; }
.nav-all-tools:hover .at-panel,
.nav-all-tools:focus-within .at-panel { transform: translate(0, 4px); }
.at-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.at-col { padding: 0 6px; border-right: 1px solid var(--border); }
.at-col:last-child { border-right: none; }
.at-col-title {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 6px 8px; margin-bottom: 2px;
  border-bottom: 1px solid var(--border);
}
.at-col-title svg { flex-shrink: 0; }
.at-item {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 6px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text2); font-size: 12.5px; font-weight: 500;
  transition: background 0.1s, color 0.1s;
}
.at-item:hover { background: var(--accent-light); color: var(--accent); }
.at-item-icon { width: 22px; height: 22px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.at-item-name { line-height: 1.3; }
.at-footer { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; text-align: right; }
.at-view-all { font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
.at-view-all:hover { text-decoration: underline; }

/* Standard mega items (used in Resources) */
.mega-panel-simple { min-width: 300px; }
.mega-panel-inner { display: grid; grid-template-columns: repeat(2,1fr); gap: 4px; }
.mega-panel-inner-list { grid-template-columns: 1fr; }
.mega-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); transition: background 0.12s; }
.mega-item:hover { background: var(--bg2); }
.mega-item-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.mega-item-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mega-item-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.mega-item-desc { font-size: 11.5px; color: var(--text3); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-resources .mega-panel { left: 50%; right: auto; transform: translate(-50%, 8px); }
.nav-resources:hover .mega-panel,
.nav-resources:focus-within .mega-panel { transform: translate(-50%, 4px); }

/* RIGHT: search + actions */
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-search { position: relative; width: 220px; }
.nav-search input {
  width: 100%; padding: 8px 38px 8px 34px;
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--bg2); color: var(--text);
  font-size: 13px; font-family: var(--font); outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
.nav-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.nav-search .search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text3); pointer-events: none; }
.nav-search .search-kbd {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 600; color: var(--text3);
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 1px 5px; line-height: 1.5; pointer-events: none;
}
.nav-search input:focus ~ .search-kbd,
.nav-search input:not(:placeholder-shown) ~ .search-kbd { display: none; }
.btn-icon { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg2); color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.15s; }
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.mobile-menu-btn { display: none; }

/* ── RESPONSIVE NAVBAR ── */
@media (max-width: 1100px) {
  .at-grid { grid-template-columns: repeat(3, 1fr); }
  .at-panel { min-width: 480px; }
}
@media (max-width: 900px) {
  .nav-categories { display: none; }
  .nav-search { width: auto; flex: 1; }
  .nav-search input { border-radius: 8px; }
  .mobile-menu-btn { display: flex; }
}
@media (max-width: 560px) {
  .nav-search { display: none; }
}

/* ── LAYOUT ── */
.page-wrapper { display: flex; min-height: calc(100vh - var(--nav-h)); }
.sidebar { width: var(--sidebar-w); flex-shrink: 0; border-right: 1px solid var(--border); padding: 1.5rem 0; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; background: var(--bg); }
.main-content { flex: 1; min-width: 0; padding: 2rem 2.5rem; }

/* ── SIDEBAR ── */
.sidebar-section { margin-bottom: 0.25rem; }
.sidebar-title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); padding: 0 1.25rem; margin: 1.25rem 0 0.4rem; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 7px 1.25rem; color: var(--text2); font-size: 14px; font-weight: 500; text-decoration: none; border-radius: 0; transition: all 0.15s; position: relative; }
.sidebar-link:hover { background: var(--bg2); color: var(--text); text-decoration: none; }
.sidebar-link.active { background: var(--accent-light); color: var(--accent); }
.sidebar-link.active::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--accent); border-radius: 0 2px 2px 0; }
.sidebar-link .icon { width: 20px; text-align: center; font-size: 16px; }
.sidebar-badge { margin-left: auto; background: var(--bg3); color: var(--text3); font-size: 11px; padding: 2px 7px; border-radius: 99px; font-weight: 600; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s; border: none; font-family: var(--font); text-decoration: none; }
.btn-primary { background: var(--accent); text-decoration: none;color: white; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; color: white; }
.btn-secondary { background: var(--bg2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg3); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg2); text-decoration: none; color: var(--text); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── CARDS ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.card-sm { padding: 1rem 1.25rem; }

/* ── TOOL GRID ── */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.25rem 1rem; text-decoration: none; color: var(--text); transition: all 0.2s; display: flex; flex-direction: column; gap: 0.5rem; }
.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.tool-card .tool-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 0.25rem; }
.tool-card .tool-name { font-size: 14px; font-weight: 600; color: var(--text); }
.tool-card .tool-desc { font-size: 13px; color: var(--text3); line-height: 1.4; }
.tool-card .tool-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; align-self: flex-start; margin-top: auto; }

/* Category icon colors */
.icon-blue { background: #eef0fd; color: #4361ee; }
.icon-green { background: #eafaf1; color: #27ae60; }
.icon-orange { background: #fef5e7; color: #e67e22; }
.icon-purple { background: #f5eeff; color: #8e44ad; }
.icon-red { background: #fdedec; color: #e74c3c; }
.icon-teal { background: #e8f8f5; color: #1abc9c; }
.icon-pink { background: #fdeef8; color: #c0392b; }
.icon-yellow { background: #fefde7; color: #d4ac0d; }
[data-theme="dark"] .icon-blue { background: #1a2142; color: #7fa7ff; }
[data-theme="dark"] .icon-green { background: #0d2818; color: #4ade80; }
[data-theme="dark"] .icon-orange { background: #2d1a00; color: #fb923c; }
[data-theme="dark"] .icon-purple { background: #1e1333; color: #c084fc; }
[data-theme="dark"] .icon-red { background: #2d0e0e; color: #f87171; }
[data-theme="dark"] .icon-teal { background: #0d2424; color: #2dd4bf; }
[data-theme="dark"] .icon-yellow { background: #2d2500; color: #facc15; }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-hint { font-size: 12px; color: var(--text3); }
input[type="text"], input[type="number"], input[type="email"], input[type="url"], select, textarea {
  padding: 10px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  width: 100%;
  outline: none;
  transition: border 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }
textarea.mono { font-family: var(--font-mono); font-size: 13px; }
select { cursor: pointer; }

/* ── CUSTOM DATEPICKER ── */
.dp-wrap { position: relative; width: 100%; }
.dp-input {
  padding: 10px 38px 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  width: 100%;
  outline: none;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
}
.dp-input::placeholder { color: var(--text3); }
.dp-input:focus, .dp-wrap.dp-open .dp-input { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.dp-icon {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text3); display: flex; cursor: pointer; pointer-events: auto;
  transition: color 0.15s;
}
.dp-wrap.dp-open .dp-icon, .dp-wrap:hover .dp-icon { color: var(--accent); }

.dp-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 0.85rem;
}
.dp-panel.hidden { display: none; }

.dp-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 0.65rem; }
.dp-header-selects { display: flex; gap: 6px; flex: 1; }
.dp-month-select, .dp-year-select {
  padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg2); color: var(--text); font-size: 13px; font-family: var(--font);
  font-weight: 600; cursor: pointer; outline: none;
}
.dp-month-select { flex: 1.4; }
.dp-year-select { flex: 1; }
.dp-nav {
  width: 28px; height: 28px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg2); color: var(--text2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.15s;
}
.dp-nav:hover { border-color: var(--accent); color: var(--accent); }

.dp-weekdays, .dp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-weekdays span { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; padding: 4px 0; }
.dp-day {
  display: flex; align-items: center; justify-content: center;
  height: 32px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text); cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.dp-day:hover:not(.dp-empty):not(.dp-disabled) { background: var(--accent-light); color: var(--accent); }
.dp-day.dp-today { font-weight: 700; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dp-day.dp-selected { background: var(--accent); color: #fff; font-weight: 700; }
.dp-day.dp-selected.dp-today { box-shadow: none; }
.dp-day.dp-disabled { color: var(--text3); opacity: 0.35; cursor: not-allowed; }
.dp-day.dp-empty { cursor: default; }

.dp-footer { display: flex; gap: 8px; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.dp-today-btn, .dp-clear-btn {
  flex: 1; padding: 7px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg2); color: var(--text2); font-size: 12.5px; font-weight: 600;
  font-family: var(--font); cursor: pointer; transition: all 0.15s;
}
.dp-today-btn:hover { border-color: var(--accent); color: var(--accent); }
.dp-clear-btn:hover { border-color: #e74c3c; color: #e74c3c; }

@media (max-width: 480px) {
  .dp-panel { width: 260px; left: 50%; transform: translateX(-50%); }
}

/* ── TOOL PAGE LAYOUT ── */
.tool-page { max-width: 900px; }
.tool-header { margin-bottom: 2rem; }
.tool-header .breadcrumb { font-size: 13px; color: var(--text3); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 6px; }
.tool-header .breadcrumb a { color: var(--text3); }
.tool-header .breadcrumb a:hover { color: var(--accent); }
.tool-header h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.tool-header p { font-size: 15px; color: var(--text2); }
.tool-body { display: flex; flex-direction: column; gap: 1.25rem; }
.tool-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.panel-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 1rem; }
.tool-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── OUTPUT ── */
.output-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; font-family: var(--font-mono); font-size: 13px; color: var(--text); min-height: 60px; word-break: break-all; white-space: pre-wrap; position: relative; }
.output-copy { position: absolute; top: 8px; right: 8px; }
.stat-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.stat-box { flex: 1; min-width: 100px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem 1rem; text-align: center; }
.stat-box .stat-val { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-box .stat-lbl { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: var(--success-light); color: #1a7a44; border: 1px solid #a9dfbf; }
.alert-danger { background: var(--danger-light); color: #a93226; border: 1px solid #f5b7b1; }
.alert-info { background: var(--accent-light); color: var(--accent); border: 1px solid #c5cdf8; }
[data-theme="dark"] .alert-success { color: #4ade80; border-color: #166534; }
[data-theme="dark"] .alert-danger { color: #f87171; border-color: #7f1d1d; }
[data-theme="dark"] .alert-info { color: #7fa7ff; border-color: #1e3a8a; }

/* ── TABS ── */
.tabs { display: flex; gap: 2px; background: var(--bg2); border-radius: var(--radius-sm); padding: 3px; margin-bottom: 1rem; }
.tab-btn { flex: 1; padding: 7px 14px; border: none; background: transparent; color: var(--text2); font-size: 13px; font-weight: 600; cursor: pointer; border-radius: calc(var(--radius-sm) - 2px); transition: all 0.15s; font-family: var(--font); }
.tab-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ── COPY BUTTON ── */
.copy-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text2); font-size: 12px; cursor: pointer; font-family: var(--font); font-weight: 500; transition: all 0.15s; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { border-color: var(--success); color: var(--success); }

/* ── HERO SECTION ── */
.hero { padding: 5rem 0 4rem; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-light); color: var(--accent); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 99px; margin-bottom: 1.5rem; }
.hero h1 { max-width: 720px; margin: 0 auto 1.25rem; }
.hero p { font-size: 1.1rem; color: var(--text2); max-width: 540px; margin: 0 auto 2.5rem; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 3.5rem; flex-wrap: wrap; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--text); }
.hero-stat .lbl { font-size: 13px; color: var(--text3); }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.feature-card { padding: 1.25rem; border-radius: var(--radius-lg); background: var(--bg2); border: 1px solid var(--border); }
.feature-icon { font-size: 28px; margin-bottom: 0.75rem; }
.feature-card h4 { margin-bottom: 0.25rem; font-size: 15px; }
.feature-card p { font-size: 13px; }

/* ── SEARCH RESULTS ── */
.search-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); z-index: 220; max-height: 360px; overflow-y: auto; }
.search-result-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; text-decoration: none; color: var(--text); font-size: 14px; }
.search-result-item:hover { background: var(--bg2); }
.search-result-item .result-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.search-result-item .result-name { font-weight: 600; }
.search-result-item .result-cat { font-size: 12px; color: var(--text3); }
.search-empty { padding: 1rem 1.25rem; color: var(--text3); font-size: 14px; text-align: center; }

/* ── SECTION ── */
.section { margin-bottom: 3.5rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.section-header h2 { font-size: 1.35rem; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn { width: 100%; text-align: left; padding: 1rem 0; background: none; border: none; color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font); }
.faq-answer { padding: 0 0 1rem; color: var(--text2); font-size: 14px; line-height: 1.7; }
.faq-icon { font-size: 20px; color: var(--text3); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 3rem 2.5rem 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { font-size: 13px; color: var(--text3); margin-top: 0.75rem; max-width: 260px; }
.footer-col h5 { font-size: 13px; font-weight: 700; margin-bottom: 0.75rem; }
.footer-col a { display: block; font-size: 13px; color: var(--text3); text-decoration: none; margin-bottom: 5px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 13px; color: var(--text3); flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: var(--text3); }

/* ── PROGRESS BAR ── */
.progress { height: 8px; background: var(--bg3); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.3s; }

/* ── RANGE INPUT ── */
input[type="range"] { -webkit-appearance: none; height: 6px; background: var(--bg3); border-radius: 99px; outline: none; width: 100%; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; }

/* ── TOGGLE ── */
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.toggle input { display: none; }
.toggle-track { width: 40px; height: 22px; background: var(--border2); border-radius: 99px; position: relative; transition: background 0.2s; flex-shrink: 0; }
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; transition: left 0.2s; }
.toggle input:checked + .toggle-track::after { left: 21px; }

/* ── STRENGTH BAR (passwords) ── */
.strength-bar { display: flex; gap: 4px; margin: 8px 0; }
.strength-seg { flex: 1; height: 5px; background: var(--bg3); border-radius: 99px; transition: background 0.3s; }

/* ── MOBILE SIDEBAR DRAWER ── */
@media (max-width: 768px) {
  .sidebar {
    display: block;
    position: fixed; left: 0; top: 0; bottom: 0;
    width: min(var(--sidebar-w), 80vw);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    padding-top: 1rem;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
  }
  .sidebar-overlay.open { display: block; }
  .sidebar-close {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    margin: 0 0 0.5rem 1.25rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg2); color: var(--text2);
    font-size: 16px; cursor: pointer;
  }
  .main-content { padding: 1.25rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3rem 0 2rem; }
  .hero-stats { gap: 1.5rem; }
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (min-width: 769px) {
  .sidebar-close, .sidebar-overlay { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 0.5rem; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero h1 { font-size: 1.7rem; line-height: 1.25; }
  .hero p { font-size: 0.95rem; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; text-align: center; }
  .hero-stat .num { font-size: 1.6rem; }
  .home-wrapper { padding: 0 1.25rem; }
}

/* ── STATIC CONTENT PAGES ── */
.static-page { max-width: 760px; }
.static-page .breadcrumb { font-size: 13px; color: var(--text3); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 6px; }
.static-page .breadcrumb a { color: var(--text3); }
.static-page .breadcrumb a:hover { color: var(--accent); }
.static-page h1 { font-size: 1.9rem; margin-bottom: 0.5rem; }
.static-page .lead { font-size: 15px; color: var(--text2); margin-bottom: 2rem; }
.static-page h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.static-page h3 { font-size: 1.05rem; margin: 1.25rem 0 0.5rem; }
.static-page p { font-size: 14.5px; line-height: 1.75; color: var(--text2); margin-bottom: 1rem; }
.static-page ul, .static-page ol { font-size: 14.5px; line-height: 1.75; color: var(--text2); margin: 0 0 1rem 1.25rem; }
.static-page li { margin-bottom: 0.35rem; }
.static-page a { color: var(--accent); }
.static-page strong { color: var(--text); }
.static-page .updated { font-size: 12.5px; color: var(--text3); margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 2rem; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.contact-card .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-card h3 { margin: 0 0 0.25rem; font-size: 14px; }
.contact-card p { margin: 0; font-size: 13.5px; }
.contact-card a { font-weight: 600; }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg2); color: var(--text); font-size: 14px; font-family: var(--font); outline: none; transition: border 0.2s;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-note { font-size: 12.5px; color: var(--text3); margin-top: 1rem; }

/* ── BLOG ── */
.blog-hero { max-width: 760px; margin-bottom: 2rem; }
.blog-hero h1 { font-size: 1.9rem; margin-bottom: 0.5rem; }
.blog-hero p { font-size: 15px; color: var(--text2); }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.75rem; }
.blog-filter-btn { padding: 6px 14px; border: 1px solid var(--border); border-radius: 99px; background: var(--bg2); color: var(--text2); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; font-family: var(--font); }
.blog-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.blog-filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; text-decoration: none; color: var(--text); transition: all 0.2s; display: flex; flex-direction: column; gap: 0.6rem; }
.blog-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.blog-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.blog-card-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.blog-card h2 { font-size: 16px; margin: 0; }
.blog-card p { font-size: 13.5px; color: var(--text3); margin: 0; line-height: 1.6; flex: 1; }
.blog-card .read-more { font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 0.25rem; }

.blog-article { max-width: 825px; }
.blog-article .breadcrumb { font-size: 13px; color: var(--text3); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.blog-article .breadcrumb a { color: var(--text3); }
.blog-article .breadcrumb a:hover { color: var(--accent); }
.blog-article .blog-meta { font-size: 12.5px; color: var(--text3); margin-bottom: 0.75rem; }
.blog-article h1 { font-size: 1.9rem; margin-bottom: 0.5rem; line-height: 1.25; }
.blog-article .lead { font-size: 15px; color: var(--text2); margin-bottom: 1.75rem; }
.blog-article h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.blog-article h3 { font-size: 1.05rem; margin: 1.25rem 0 0.5rem; }
.blog-article p { font-size: 14.5px; line-height: 1.75; color: var(--text2); margin-bottom: 1rem; }
.blog-article ul, .blog-article ol { font-size: 14.5px; line-height: 1.75; color: var(--text2); margin: 0 0 1rem 1.25rem; }
.blog-article li { margin-bottom: 0.35rem; }
.blog-article a { color: var(--accent); }
.blog-article strong { color: var(--text); }
.blog-article code { background: var(--bg3); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 13px; }
.blog-cta { background: var(--accent-light); border: 1px solid var(--accent); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin: 1.75rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.blog-cta p { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.blog-cta .btn { white-space: nowrap; }
.related-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; margin: 0.5rem 0 1.5rem; }
.related-tools a.tool-card { text-decoration: none; }

@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

.hidden { display: none !important; }
.text-center { text-align: center; }
.text-mono { font-family: var(--font-mono); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-full { width: 100%; }

/* ── BLOG ── */
.blog-page { max-width: 1100px; }
.blog-page .breadcrumb { font-size: 13px; color: var(--text3); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 6px; }
.blog-page .breadcrumb a { color: var(--text3); }
.blog-page .breadcrumb a:hover { color: var(--accent); }
.blog-page h1 { font-size: 1.9rem; margin-bottom: 0.5rem; }
.blog-page .lead { font-size: 15px; color: var(--text2); margin-bottom: 1.5rem; max-width: 700px; }



/* ── PASSWORD VISIBILITY TOGGLE ── */
.pw-vis-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: var(--radius-sm);
  color: var(--text3); cursor: pointer; transition: color 0.15s, background 0.15s;
}
.pw-vis-btn:hover { color: var(--accent); background: var(--accent-light); }
