/* DigitalFreeTools — Master Production Stylesheet (Refined Modern Palette & Drag-Drop File Upload System) */

:root {
  /* Default: Clean, Modern, Professional Light Palette (TinyWow / Stripe / iLovePDF style) */
  --bg-body: #f8fafc;               /* Clean Slate-50 Canvas */
  --bg-surface: #ffffff;            /* Pure White Elevated Cards */
  --bg-surface-elevated: #f1f5f9;   /* Subtle Slate-100 Accents */
  --bg-input: #ffffff;              /* Crisp White Inputs */
  --border-subtle: #e2e8f0;         /* Slate-200 Crisp Borders */
  --border-hover: #cbd5e1;         /* Slate-300 Interactive Border */
  --border-focus: #2563eb;         /* Modern Tech Royal Blue Focus */

  /* Vibrant Modern Brand Accents */
  --primary: #2563eb;               /* Modern Tech Royal Blue */
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --primary-glow: rgba(37, 99, 235, 0.2);
  
  --emerald: #059669;               /* High-Trust Emerald Green */
  --emerald-light: rgba(5, 150, 105, 0.1);
  --cyan: #0284c7;
  --cyan-light: rgba(2, 132, 199, 0.1);
  --amber: #d97706;
  --rose: #e11d48;

  /* Crystal-Clear Modern Typography */
  --text-primary: #0f172a;          /* Rich Charcoal Slate for high readability */
  --text-secondary: #475569;        /* Balanced Slate-600 */
  --text-muted: #64748b;            /* Soft Slate-500 */

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px -2px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.09);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: #111726;
  --bg-surface-elevated: #182033;
  --bg-input: #0c101b;
  --border-subtle: #1e2738;
  --border-hover: #2d3a54;
  --border-focus: #3b82f6;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.12);
  --primary-glow: rgba(59, 130, 246, 0.25);

  --emerald: #10b981;
  --emerald-light: rgba(16, 185, 129, 0.12);
  --cyan: #06b6d4;
  --cyan-light: rgba(6, 182, 212, 0.12);
  --amber: #f59e0b;
  --rose: #f43f5e;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px -6px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ================================================= */
/* TOP NAVBAR & MEGA MENU                            */
/* ================================================= */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

[data-theme="dark"] .navbar-wrapper {
  background: rgba(17, 23, 38, 0.88);
}

.navbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative; /* Anchor for centered mega menu */
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(20, 184, 166, 0.25));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.1) rotate(4deg);
}

/* Wordmark: "DigitalFree" keeps the bold .brand-logo weight, "Tools" is lighter (as in the logo). */
.brand-name-light {
  font-weight: 500;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 16px var(--primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-link-btn {
  padding: 6px 11px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1.2;
}

.nav-link-btn:hover, .nav-link-btn.active {
  color: var(--primary);
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
}

.nav-btn-primary-trigger {
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
}

.nav-btn-primary-trigger:hover, .mega-menu-trigger.open .nav-btn-primary-trigger {
  color: var(--primary);
  border-color: var(--primary);
}

.nav-link-featured {
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.25);
}

.nav-link-featured:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: #2563eb;
}

.nav-hot-chip {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: #ef4444;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-left: 2px;
}

.nav-new-chip {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f59e0b;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-left: 2px;
}

/* Mega Menu Dropdown */
.mega-menu-trigger {
  position: static; /* Allows menu to center over .navbar */
}

.nav-link-btn .nav-chevron {
  display: inline-block;
  font-size: 0.7rem;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 2px;
}

.mega-menu-trigger:hover .nav-chevron,
.mega-menu-trigger.open .nav-chevron,
.mega-menu-trigger button[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.mega-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 1080px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.2), 0 0 1px rgba(15, 23, 42, 0.08);
  display: none;
  flex-direction: column;
  z-index: 120;
  overflow: hidden;
  animation: megaFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Invisible bridge so mouse hover never drops between trigger and menu */
.mega-menu-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

[data-theme="dark"] .mega-menu-dropdown {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.65);
}

.mega-menu-dropdown.show {
  display: flex;
}

@keyframes megaFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mega Header Strip. The "Jump to" chips move to a second row when the line is full,
   instead of each chip squeezing onto two lines. */
.mega-header-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  background: rgba(248, 250, 252, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.74rem;
}

[data-theme="dark"] .mega-header-strip {
  background: rgba(15, 23, 42, 0.85);
}

.mhs-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mhs-badge {
  font-weight: 800;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}

.mhs-text {
  color: var(--text-muted);
  font-weight: 500;
}

.mhs-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.mhs-quick-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-right: 4px;
}

.mhs-cat-chip {
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.72rem;
  white-space: nowrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.mhs-cat-chip:hover {
  background: var(--bg-surface-elevated);
  color: var(--primary);
  border-color: var(--primary);
}

/* minmax(0, 1fr), not 1fr: a 1fr track never shrinks below its widest content, so one long
   tool name pushed the third column out of the menu (which hides overflow). */
.mega-menu-inner {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 380px;
}

/* Left Featured Column */
.mega-featured-pane {
  background: rgba(248, 250, 252, 0.9);
  border-right: 1px solid var(--border-subtle);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-theme="dark"] .mega-featured-pane {
  background: rgba(15, 23, 42, 0.65);
}

.mega-pane-header {
  margin-bottom: 4px;
}

.mega-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

[data-theme="dark"] .mega-badge-pill {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
}

.mega-featured-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .mega-featured-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.07);
}

.mega-featured-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.18);
}

.mega-featured-card.card-spotlight {
  border: 1.5px solid rgba(59, 130, 246, 0.45);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), #ffffff);
}

[data-theme="dark"] .mega-featured-card.card-spotlight {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), #1e293b);
  border-color: rgba(59, 130, 246, 0.5);
}

.mfc-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.mfc-blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}
.mfc-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}
.mfc-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}
.mfc-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.mfc-content {
  flex: 1;
  min-width: 0;
}

.mfc-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.mfc-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mfc-chip {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.chip-hot {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}
.chip-free {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
}
.chip-new {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}
.chip-pro {
  background: rgba(99, 102, 241, 0.14);
  color: #6366f1;
}

.mfc-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right Categories Pane */
.mega-categories-pane {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
}

.mega-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mega-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.mch-icon {
  font-size: 0.95rem;
}

.mch-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  flex: 1;
}

.mch-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  padding: 1px 6px;
  border-radius: 10px;
}

.mega-tool-grid-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.mega-tool-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.16s ease;
}

.mega-tool-item:hover {
  background: var(--bg-surface-elevated);
  color: var(--primary);
  transform: translateX(3px);
}

.mti-icon {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* Long names wrap to a second line rather than being cut off mid-word. */
.mti-name {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.mti-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.badge-popular {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}
.badge-security {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}
.badge-pro {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}
.badge-speed {
  background: rgba(236, 72, 153, 0.12);
  color: #ec4899;
}
.badge-focus {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}
.badge-game {
  background: rgba(6, 182, 212, 0.14);
  color: #0891b2;
}

.mega-tool-more {
  margin-top: 4px;
  padding-top: 4px;
}

.mega-more-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.mega-more-link:hover {
  background: rgba(59, 130, 246, 0.08);
}

/* Mega Menu Footer Bar */
.mega-footer-bar {
  background: rgba(241, 245, 249, 0.75);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

[data-theme="dark"] .mega-footer-bar {
  background: rgba(15, 23, 42, 0.85);
}

.mf-left {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}

.mf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald);
  font-weight: 700;
}

.mf-stat {
  font-weight: 500;
}

.mf-browse-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: transform 0.16s ease;
}

.mf-browse-link:hover {
  transform: translateX(3px);
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 6px 11px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-search-trigger:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.nav-kbd {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text-muted);
}

.privacy-pill-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.privacy-pill-nav:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

[data-theme="dark"] .privacy-pill-nav {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .privacy-pill-nav:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-surface-elevated);
  color: var(--primary);
}

/* ================================================= */
/* HERO & LIVE SEARCH                                */
/* ================================================= */
.hero-wrapper {
  padding: 36px 0 20px 0;
}

/* Bento 3-Column Layout */
.hero-bento-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: stretch;
  position: relative;
}

.hero-center-column {
  min-width: 0;
  text-align: center;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Flank Rail Cards */
.hero-flank-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 14px 12px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-flank-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.hfc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.hfc-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hfc-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.hfc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.hfc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-body);
  border: 1px solid transparent;
  transition: all 0.16s ease;
  position: relative;
}

.hfc-item:hover {
  background: var(--primary-light);
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateX(3px);
  color: var(--primary);
}

.hfc-icon-squircle {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  background: var(--bg-surface);
}

.hfc-info {
  flex: 1;
  min-width: 0;
}

.hfc-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.hfc-name {
  font-size: 0.77rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.hfc-tag {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  flex-shrink: 0;
}

.hfc-sub {
  font-size: 0.67rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 1px;
}

.hfc-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.5;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.hfc-item:hover .hfc-arrow {
  opacity: 1;
  color: var(--primary);
  transform: translateX(2px);
}

.hfc-footer-banner {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}

a.hfc-footer-banner:hover {
  color: var(--primary);
  border-color: var(--border-hover);
}

.hfc-footer-banner.verified {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--emerald);
}

/* Squircle Color Themes */
.squircle-blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.squircle-emerald { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.squircle-amber { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.squircle-cyan { background: rgba(6, 182, 212, 0.1); color: #0891b2; }
.squircle-rose { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }
.squircle-indigo { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.squircle-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

/* Quick Action Chips */
.hero-quick-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 12px auto 0 auto;
  padding: 10px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .hero-quick-chips {
  background: rgba(24, 32, 51, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hqc-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 2px;
  padding: 4px 10px;
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
}

.hqc-title::before {
  content: "⚡";
  font-size: 0.85rem;
  line-height: 1;
}

[data-theme="dark"] .hqc-title {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.hqc-chip {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-hover);
  color: var(--text-primary);
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.hqc-chip span {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hqc-chip:first-of-type span {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.88rem;
}

.hqc-chip:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.hqc-chip:hover span,
.hqc-chip:hover:first-of-type span {
  color: #ffffff;
}

.hqc-chip:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px var(--primary-glow);
}

[data-theme="dark"] .hqc-chip {
  background: var(--bg-surface);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .hqc-chip:first-of-type span {
  color: #60a5fa;
}

[data-theme="dark"] .hqc-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* Mobile Above-the-fold Quick Shelf */
.mobile-above-fold-block {
  display: none;
  width: 100%;
  max-width: 560px;
  margin-top: 14px;
}

.mobile-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
}

.msh-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.msh-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.mobile-quick-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mqv2-card {
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.15s ease;
}

.mqv2-card:active {
  transform: scale(0.98);
}

.mqv2-icon {
  font-size: 1.15rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-body);
  border-radius: 6px;
  flex-shrink: 0;
}

.mqv2-info {
  flex: 1;
  min-width: 0;
}

.mqv2-name {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
  display: block;
}

.mqv2-tag {
  font-size: 0.62rem;
  color: var(--text-muted);
  display: block;
}

.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 680px;
  margin: 0 auto 12px auto;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #334155 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-title-gradient {
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 20px auto;
}

.hero-search-box {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 14px auto;
  position: relative;
}

.hero-search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 13px 20px 13px 48px;
  font-size: 0.96rem;
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.hero-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 24px var(--primary-glow);
}

.hero-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Matches listed right under the hero search box */
.hero-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 6px;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-search-results[hidden] {
  display: none;
}

.hero-search-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
}

.hero-search-option:hover,
.hero-search-option.active {
  background: var(--primary-light);
}

.hero-search-option.active {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.hso-icon {
  flex: none;
  font-size: 1.1rem;
}

.hso-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hso-name {
  min-width: 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.hso-cat {
  flex: none;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Phones: the category goes under the name so the name keeps the full width */
@media (max-width: 600px) {
  .hso-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

.hero-search-all {
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-search-empty {
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.category-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.cat-pill-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.cat-pill-btn:hover, .cat-pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

/* ================================================= */
/* CATEGORY BROWSING GRID (all-free-tool.com inspired) */
/* ================================================= */
.category-browse-section {
  padding: 10px 0 42px 0;
  text-align: center;
}

.section-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.section-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.section-title-modern {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-desc-modern {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 32px auto;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
}

.cat-browse-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cat-browse-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.cat-browse-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  transition: transform 0.25s ease;
}

.cat-browse-card:hover .cat-browse-icon {
  transform: scale(1.12);
}

.cat-browse-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cat-browse-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Category Color Themes */
.theme-developer { background: #eff6ff; color: #2563eb; }
.theme-marketing { background: #f5f3ff; color: #7c3aed; }
.theme-writers { background: #fff7ed; color: #ea580c; }
.theme-finance { background: #ecfdf5; color: #059669; }
.theme-media-pdf { background: #fef2f2; color: #dc2626; }
.theme-refreshers { background: #fdf2f8; color: #db2777; }
.theme-security-ai { background: #f0fdfa; color: #0d9488; }

/* ================================================= */
/* HOMEPAGE TRUST & CONFIDENTIALITY GUARANTEE BANNER  */
/* ================================================= */
.trust-guarantee-section {
  margin: 12px 0 40px 0;
}

.trust-guarantee-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--emerald);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  transition: var(--transition);
}

[data-theme="dark"] .trust-guarantee-card {
  background: #111726;
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--emerald);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.trust-guarantee-card:hover {
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
  border-left-color: var(--emerald);
}

.tgc-left {
  flex: 1;
}

.tgc-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tgc-icon {
  font-size: 1.25rem;
}

.tgc-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.tgc-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.tgc-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.tgc-desc strong {
  color: var(--text-primary);
  font-weight: 700;
}

.tgc-right {
  flex-shrink: 0;
}

.tgc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.tgc-cta-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.tgc-cta-arrow {
  transition: transform 0.2s ease;
}

.tgc-cta-btn:hover .tgc-cta-arrow {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .trust-guarantee-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }
  .tgc-right {
    width: 100%;
  }
  .tgc-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Category Section Header */
.category-block {
  margin-bottom: 52px;
}

.category-block-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.cb-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cb-icon {
  font-size: 1.6rem;
}

.cb-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cb-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.cb-tool-counter {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ================================================= */
/* MODERN TOOL CARDS (all-free-tool.com inspired)     */
/* ================================================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

/* Base Modern Tool Card (Matching user screenshot media_1790108169140.png) */
.tool-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  position: relative;
  text-decoration: none;
}

[data-theme="dark"] .tool-card {
  background: #111726;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.08);
}

/* Featured / Hot Card Glow (Exact match to First Card in user screenshot) */
.tool-card.card-featured {
  border: 2px solid #3b82f6 !important;
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.18) !important;
}

[data-theme="dark"] .tool-card.card-featured {
  border: 2px solid #60a5fa !important;
  box-shadow: 0 0 26px rgba(96, 165, 250, 0.25) !important;
}

.tc-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tc-icon-squircle {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  transition: transform 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tool-card:hover .tc-icon-squircle {
  transform: scale(1.08);
}

/* Vibrant Category Squircles with Gradient Accents */
.squircle-developer { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #ffffff; }
.squircle-marketing { background: linear-gradient(135deg, #10b981, #047857); color: #ffffff; }
.squircle-writers   { background: linear-gradient(135deg, #f59e0b, #d97706); color: #ffffff; }
.squircle-finance   { background: linear-gradient(135deg, #6366f1, #4338ca); color: #ffffff; }
.squircle-media-pdf { background: linear-gradient(135deg, #ec4899, #be185d); color: #ffffff; }
.squircle-refreshers { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #ffffff; }
.squircle-security-ai { background: linear-gradient(135deg, #06b6d4, #0e7490); color: #ffffff; }

/* Elegant Pill Badges (HOT, MOST USED, POPULAR, NEW, TRENDING) */
.tc-pill-badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-hot {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

[data-theme="dark"] .badge-hot {
  background: #f8fafc;
  color: #0f172a;
}

.badge-new {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

[data-theme="dark"] .badge-new {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

.badge-most-used {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

[data-theme="dark"] .badge-most-used {
  background: rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
}

.badge-popular {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}

[data-theme="dark"] .badge-popular {
  background: rgba(14, 165, 233, 0.22);
  color: #7dd3fc;
}

.badge-trending {
  background: rgba(168, 85, 247, 0.12);
  color: #7e22ce;
}

[data-theme="dark"] .badge-trending {
  background: rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
}

.badge-free {
  background: rgba(148, 163, 184, 0.15);
  color: #475569;
}

[data-theme="dark"] .badge-free {
  background: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

.tc-title {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color 0.2s ease;
  line-height: 1.35;
}

.tool-card:hover .tc-title {
  color: var(--primary);
}

.tc-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.tc-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.tc-cat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Tinted Circular Arrow Buttons Matching Category Theme */
.tc-arrow-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.arrow-developer { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.arrow-marketing { background: rgba(16, 185, 129, 0.1); color: #059669; }
.arrow-writers   { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.arrow-finance   { background: rgba(99, 102, 241, 0.1); color: #4f46e5; }
.arrow-media-pdf { background: rgba(236, 72, 153, 0.1); color: #db2777; }
.arrow-refreshers { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.arrow-security-ai { background: rgba(6, 182, 212, 0.1); color: #0891b2; }

.tool-card:hover .tc-arrow-circle {
  transform: translateX(4px);
  filter: brightness(0.92);
}

/* ================================================= */
/* DRAG & DROP FILE UPLOAD WORKSPACE SYSTEM          */
/* ================================================= */
.dropzone-container {
  margin-bottom: 24px;
}

.dropzone-box {
  background: var(--bg-surface);
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 44px 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dropzone-box:hover, .dropzone-box.drag-over, .dropzone-box.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 24px var(--primary-glow);
}

.dropzone-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  line-height: 1;
}

.dropzone-main-text {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.dropzone-sub-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.dropzone-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-light);
  color: var(--emerald);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.hidden-file-input {
  display: none !important;
}

/* File Loaded Preview Card */
.file-loaded-card {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 20px;
}

.file-loaded-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.file-loaded-icon {
  font-size: 1.6rem;
}

.file-loaded-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.file-loaded-size {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Tab Switcher (Paste Text vs Upload File) */
.input-mode-tabs {
  display: flex;
  flex-wrap: wrap; /* on a phone the CV's 5 tabs wrap instead of running off-screen */
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  max-width: 100%;
}

.mode-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.mode-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ================================================= */
/* WORKSPACE PAGE LAYOUT                             */
/* ================================================= */
.workspace-page {
  padding: 40px 0 80px 0;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.workspace-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.workspace-breadcrumbs a:hover {
  color: var(--text-primary);
}

.workspace-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.workspace-main-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.how-to-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

/* A <p>, not a heading: an <h4> straight after the <h1> broke the heading order. */
.how-to-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.how-to-steps {
  list-style: decimal inside;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Dual Pane Execution */
.dual-pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

@media (max-width: 860px) {
  .dual-pane {
    grid-template-columns: 1fr;
  }
}

.pane-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pane-header {
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pane-title {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.pane-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-pane-action {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-pane-action:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.pane-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.code-editor, .code-output {
  width: 100%;
  flex: 1;
  min-height: 280px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: var(--transition);
}

.code-editor:focus {
  border-color: var(--border-focus);
}

.code-output {
  white-space: pre-wrap;
  overflow-y: auto;
}

.pane-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 12px 20px;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-status {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 16px var(--primary-glow);
}

.btn-success {
  background: var(--emerald) !important;
  color: #ffffff !important;
}

/* ================================================= */
/* 2-COLUMN SIDEBAR & COMPLIANT ADSENSE SIDE-RAIL     */
/* ================================================= */
.page-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1080px) {
  .page-with-sidebar {
    grid-template-columns: 1fr;
  }
}

.main-content-column {
  min-width: 0;
}

.side-rail-column {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 1080px) {
  .side-rail-column {
    width: 100%;
    margin-top: 32px;
  }
}

.sticky-side-rail {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* AdSense unit wrapper (rendered only when ADSENSE_CLIENT + slot are configured) */
.ad-rail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}

/* ================================================= */
/* IN-FEED NATIVE ADSENSE BANNER (Homepage Full-Width) */
/* ================================================= */
.ad-infeed-container {
  margin: 36px 0 44px 0;
  width: 100%;
}

.ad-infeed-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 16px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .ad-infeed-card {
  background: #111726;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sidebar Widgets: Related Tools & Trust Assurance */
.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-tool-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.sidebar-tool-link:hover {
  background: var(--bg-surface-elevated);
  color: var(--primary);
  transform: translateX(3px);
}

.sidebar-trust-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(5, 150, 105, 0.06) 100%);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 18px;
  padding: 20px;
}

/* Editorial & FAQ */
.editorial-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  margin-top: 36px;
}

.editorial-section h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.editorial-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 26px 0 12px 0;
}

.editorial-section p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 16px;
  /* A long example link must wrap on phones instead of widening the page. */
  overflow-wrap: anywhere;
}

.editorial-section ul {
  margin-left: 20px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Tables in a tool's guide (benchmarks, parameter lists). The wrapper scrolls rather than
   letting a wide table push the page past the screen edge. */
.editorial-table-wrap {
  overflow-x: auto;
  margin: 0 0 20px 0;
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

.editorial-table th,
.editorial-table td {
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
  overflow-wrap: break-word;
}

.editorial-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-weight: 700;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-input);
}

.faq-question {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-answer {
  padding: 0 20px 16px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  padding: 60px 0 28px 0;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 48px;
}

.fc-col-brand h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-col-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.fc-col-title {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.fc-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fc-links-list a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.fc-links-list a:hover {
  color: var(--primary);
}

/* Footer list of every tool, grouped by category (newspaper columns keep the groups balanced). */
.footer-tools-directory {
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  margin-bottom: 36px;
}

.ftd-groups {
  column-count: 4;
  column-gap: 32px;
}

.ftd-group {
  break-inside: avoid;
  margin-bottom: 24px;
}

.ftd-cat {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.ftd-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ftd-list a {
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.ftd-list a:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .ftd-groups { column-count: 3; }
}

@media (max-width: 600px) {
  .ftd-groups { column-count: 2; column-gap: 20px; }
  .ftd-list a { display: inline-block; padding: 3px 0; }
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* Command Palette Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.command-modal {
  width: 90%;
  max-width: 600px;
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-input-wrap {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-input-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1.15rem;
}

.modal-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px;
  list-style: none;
}

.modal-result-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.modal-result-item a:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Responsive Legacy Cleanup */
@media (max-width: 900px) {
  .hero-title { font-size: 2.1rem; }
  .footer-columns-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 1.8rem; }
  .footer-columns-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CV Career Suite & Visual Studio Builder Styles
   ========================================================================== */
.cv-convert-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.cv-hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cv-hero-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cv-hero-badge-icon {
  font-size: 1.3rem;
}

.cv-hero-heading {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cv-hero-privacy-pill {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.cv-hero-subtext {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 4px;
  max-width: 720px;
}

/* Studio Workspace Layout Switcher */
.cv-view-mode-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 2px;
  border: 1px solid var(--border-subtle);
}

.cv-view-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.cv-view-mode-btn:hover {
  color: var(--text-primary);
}

.cv-view-mode-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Hero Actions Bar */
.cv-hero-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.btn-sample-view {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.3);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-sample-view:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-sample-pdf {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-sample-pdf:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

/* ==========================================================================
   CV STUDIO WORKSPACE: 3 MODES (Full-Screen Editor DEFAULT)
   ========================================================================== */
.cv-studio-workspace {
  display: grid;
  height: 86vh;
  min-height: 800px;
  max-height: 980px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

/* Mode 1: Full-Screen Editor (DEFAULT) */
.cv-studio-workspace.mode-editor-only {
  grid-template-columns: 1fr;
}
.cv-studio-workspace.mode-editor-only .cv-preview-panel {
  display: none !important;
}
.cv-studio-workspace.mode-editor-only .cv-editor-panel {
  max-width: 100%;
  border-right: none;
}

/* Mode 2: Full A4 Preview Mode */
.cv-studio-workspace.mode-preview-only {
  grid-template-columns: 1fr;
}
.cv-studio-workspace.mode-preview-only .cv-editor-panel {
  display: none !important;
}
.cv-studio-workspace.mode-preview-only .cv-preview-panel {
  display: flex !important;
  width: 100%;
}

/* Mode 3: Split Studio Mode */
.cv-studio-workspace.mode-split {
  grid-template-columns: minmax(460px, 48%) 1fr;
}
.cv-studio-workspace.mode-split .cv-editor-panel {
  display: flex !important;
  border-right: 1px solid var(--border-subtle);
}
.cv-studio-workspace.mode-split .cv-preview-panel {
  display: flex !important;
}

@media (max-width: 900px) {
  .cv-studio-workspace {
    height: auto;
    max-height: none;
    min-height: auto;
  }
  .cv-studio-workspace.mode-split {
    grid-template-columns: 1fr;
  }
  .cv-studio-workspace.mode-split .cv-editor-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

/* ==========================================================================
   LEFT: HASSLE-FREE INPUT STUDIO
   ========================================================================== */
.cv-editor-panel {
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* Stepper Navigation Pills */
.cv-stepper-nav {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.cv-stepper-nav::-webkit-scrollbar { display: none; }

.cv-step-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition);
}
.cv-step-pill:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}
.cv-step-pill.active {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.cv-editor-scroll {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 28px 140px 28px; /* 140px clearance so nothing is cut off */
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Section Input Cards */
.cv-input-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.cv-input-card:hover {
  border-color: var(--border-hover);
}
.cv-input-card:focus-within {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.cv-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.cv-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-card-icon {
  font-size: 1.3rem;
}

.cv-card-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cv-card-subtext {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.cv-badge-standard {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.btn-add-chip {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border: 1px dashed rgba(37, 99, 235, 0.4);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.btn-add-chip:hover {
  background: var(--primary);
  color: #fff;
  border-style: solid;
}

/* Modern Form Controls */
.cv-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.cv-input-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cv-label-hint {
  font-size: 0.7rem;
  font-weight: normal;
  color: var(--text-muted);
}

.cv-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cv-input-lead-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.cv-modern-input,
.cv-modern-textarea,
.cv-modern-select {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.cv-modern-input.has-icon {
  padding-left: 38px;
}

.cv-modern-input:hover,
.cv-modern-textarea:hover,
.cv-modern-select:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

.cv-modern-input:focus,
.cv-modern-textarea:focus,
.cv-modern-select:focus {
  background: var(--bg-surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.12);
}

.cv-modern-textarea {
  min-height: 105px;
  line-height: 1.6;
  resize: vertical;
}

/* Summary Starters */
.cv-prompt-chip-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cv-prompt-chip-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cv-starter-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.cv-starter-chip:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.3);
}

/* Skills Suggestion Bank */
.cv-skills-bank-box {
  margin-top: 12px;
  padding: 14px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-skills-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cv-skill-tag-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.cv-skill-tag-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

/* Experience Job Cards */
.cv-job-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.cv-job-card:hover {
  border-color: var(--border-hover);
}

.cv-job-head {
  padding: 10px 14px;
  background: var(--bg-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.cv-job-title-pill {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary);
}

.cv-job-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-surface);
}

.cv-verb-assist-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.cv-verb-chip {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.cv-verb-chip:hover {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.cv-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cv-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cv-btn-remove {
  background: none;
  border: none;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.cv-btn-remove:hover {
  background: rgba(225, 29, 72, 0.1);
}

.cv-btn-add {
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: var(--transition);
}

.cv-btn-add:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

/* Editor Bottom Sticky Bar */
.cv-editor-sticky-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  z-index: 50;
  flex-shrink: 0;
}

.cv-footer-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--emerald);
  font-weight: 700;
}

.btn-go-preview {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: var(--transition);
}

.btn-go-preview:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   RIGHT: PHOTOREALISTIC LIVE A4 PREVIEW PANEL
   ========================================================================== */
.cv-preview-panel {
  background: #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  transition: background 0.3s ease;
  position: relative;
}

[data-theme="dark"] .cv-preview-panel {
  background: #090d16;
}

.cv-preview-topbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  flex-shrink: 0;
}

.cv-preview-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cv-select-dropdown {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

.cv-zoom-btn-group {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.btn-zoom-scale {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-zoom-scale.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Desk Scroll View - 240px bottom clearance ensures full A4 visibility */
.cv-desk-scroll-view {
  flex: 1 1 0%;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 20px 240px 20px;
  display: block;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

/* Authentic A4 Paper Sheet */
.a4-paper-sheet {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 18px 45px -8px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 48px 52px 64px 52px;
  font-family: var(--font-sans);
  line-height: 1.5;
  font-size: 9.8pt;
  max-width: 794px; /* Standard A4 at 96 DPI */
  min-height: 1123px;
  margin: 0 auto 30px auto;
  box-sizing: border-box;
  transform-origin: top center;
  transition: transform 0.2s ease, font-family 0.2s ease;
}

.a4-paper-sheet.theme-classic {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.55;
}

.a4-paper-sheet.theme-tech {
  font-family: var(--font-sans);
}

[data-theme="dark"] .a4-paper-sheet {
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cv-a4-name {
  font-size: 21pt;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.theme-classic .cv-a4-name {
  font-family: Georgia, serif;
  color: #111827;
}

.cv-a4-contact {
  font-size: 8.8pt;
  color: #475569;
  text-align: center;
  margin-bottom: 18px;
  word-spacing: 1px;
}

.cv-a4-sec-head {
  font-size: 10.2pt;
  font-weight: 800;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 14px;
  margin-bottom: 4px;
}

.theme-classic .cv-a4-sec-head {
  color: #111827;
  font-family: Georgia, serif;
}

.theme-tech .cv-a4-sec-head {
  color: #0284c7;
}

.cv-a4-rule {
  height: 1.5px;
  background: #1e3a8a;
  margin-bottom: 8px;
}

.theme-classic .cv-a4-rule {
  background: #334155;
}

.theme-tech .cv-a4-rule {
  background: #0284c7;
}

.cv-a4-profile {
  font-size: 9.4pt;
  color: #1e293b;
  line-height: 1.55;
  text-align: justify;
  margin-bottom: 12px;
}

.cv-a4-comp-item {
  font-size: 9.2pt;
  color: #1e293b;
  line-height: 1.45;
  margin-bottom: 4px;
}

.cv-a4-bold {
  font-weight: 700;
  color: #0f172a;
}

.cv-a4-employer-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10pt;
  margin-top: 10px;
  margin-bottom: 2px;
}

.cv-a4-employer {
  font-weight: 700;
  color: #1e3a8a;
}

.theme-classic .cv-a4-employer {
  color: #111827;
}

.cv-a4-meta {
  font-size: 8.8pt;
  color: #64748b;
}

.cv-a4-role-line {
  display: flex;
  justify-content: space-between;
  font-size: 9pt;
  font-style: italic;
  color: #475569;
  margin-bottom: 3px;
}

.cv-a4-dot {
  margin: 0 4px;
}

.cv-a4-project-line {
  font-size: 8.8pt;
  font-weight: 600;
  font-style: italic;
  color: #475569;
  margin-bottom: 4px;
}

.cv-a4-bullets {
  margin: 2px 0 6px 18px;
  padding: 0;
  list-style-type: disc;
}

.cv-a4-bullets li {
  font-size: 9.2pt;
  color: #1e293b;
  line-height: 1.45;
  margin-bottom: 3px;
}

.cv-a4-add-item {
  font-size: 9.2pt;
  color: #1e293b;
  margin-bottom: 3px;
}

/* Document Bottom Verification Banner */
.a4-sheet-bottom-status {
  max-width: 794px;
  margin: 0 auto 50px auto;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

/* Output Cards for LinkedIn/Indeed/Bios */
.cv-output-card {
  width: 100%;
  max-width: 820px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin: 0 auto 50px auto;
}

/* Bottom Floating Action Dock (Visible in Preview Mode) */
.preview-bottom-dock {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
}

.btn-dock-action {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-dock-action:hover {
  background: var(--border-subtle);
}

.btn-dock-primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
}

.btn-dock-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* ================================================= */
/* MOBILE NAVIGATION DRAWER & HAMBURGER SYSTEM       */
/* ================================================= */
.mobile-menu-toggle {
  display: none;
}

.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 1210;
  box-shadow: none;
  transform: translateX(100%);
  /* hidden when closed: no shadow strip on the right edge and no off-screen tab stops */
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s, box-shadow 0s linear 0.3s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
  box-shadow: -6px 0 28px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-close {
  font-size: 1.1rem;
}

.mobile-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s ease;
  min-height: 44px;
}

.mobile-nav-item:hover {
  background: var(--bg-surface-elevated);
  color: var(--primary);
}

/* Regex tester: match details and cheatsheet */
.regex-details { margin-top: 12px; font-size: 0.85rem; }
.regex-match-list { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.regex-match-list li { font-family: var(--font-mono); word-break: break-word; border-left: 3px solid var(--primary); padding-left: 8px; }
.regex-groups { color: var(--text-muted); margin-top: 2px; }
.regex-more { color: var(--text-muted); margin: 8px 0 0; }
.regex-cheatsheet { font-size: 0.8rem; }
.regex-cheatsheet summary { cursor: pointer; font-weight: 700; color: var(--text-muted); }
.regex-cheatsheet table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.regex-cheatsheet td { padding: 3px 6px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }

/* Markdown preview tables */
#md-preview table { border-collapse: collapse; margin: 12px 0; width: 100%; }
#md-preview th, #md-preview td { border: 1px solid var(--border-subtle); padding: 6px 10px; }
#md-preview th { background: var(--bg-surface-elevated); }

/* Open Graph card preview */
.og-card { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-surface); max-width: 520px; }
.og-card-img { aspect-ratio: 1200 / 630; background: repeating-linear-gradient(45deg, var(--bg-surface-elevated), var(--bg-surface-elevated) 10px, var(--bg-surface) 10px, var(--bg-surface) 20px); display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-size: 0.78rem; color: var(--text-muted); word-break: break-all; }
.og-card-body { padding: 10px 12px; border-top: 1px solid var(--border-subtle); }
.og-card-domain { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.02em; }
.og-card-title { font-weight: 700; margin: 2px 0; word-break: break-word; }
.og-card-desc { font-size: 0.82rem; color: var(--text-secondary); word-break: break-word; }

/* Grammar fixer change list */
.grammar-changes { margin: 0; padding-left: 18px; font-size: 0.82rem; max-height: 140px; overflow-y: auto; }

/* Calculator formula lines */
.calc-formula { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); margin-top: 10px; text-align: center; word-break: break-word; }

/* Rent split table */
.rent-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
.rent-table th { text-align: left; font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; padding: 6px; border-bottom: 1px solid var(--border-subtle); }
.rent-table td { padding: 6px; border-bottom: 1px solid var(--border-subtle); }
.rent-table:not([data-model="size"]) .rent-col-size,
.rent-table:not([data-model="income"]) .rent-col-income { display: none; }

/* Timezone meeting picker */
.tz-meeting { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; margin-bottom: 20px; }
.tz-summary { grid-column: 1 / -1; font-size: 0.88rem; line-height: 1.7; }

/* QR warnings */
.qr-warning { margin: 0; font-size: 0.82rem; color: var(--amber); font-weight: 600; }
/* Calculators: why a result is missing or was adjusted (dark amber passes contrast on white) */
.calc-note { margin: 0; font-size: 0.84rem; font-weight: 600; color: #b45309; }
[data-theme="dark"] .calc-note { color: #fbbf24; }
.code-editor[aria-invalid="true"] { border-color: var(--rose); }
#qr-display img, #qr-display canvas { max-width: 100%; height: auto; }

/* Password strength */
.pass-strength { margin: -12px 0 20px; font-size: 0.85rem; font-weight: 700; }
.pass-strength[data-level="weak"] { color: var(--rose); }
.pass-strength[data-level="fair"] { color: var(--amber); }
.pass-strength[data-level="strong"], .pass-strength[data-level="very-strong"] { color: var(--emerald); }

/* Pomodoro settings and noise */
/* Accessibility (fix plan item 51):
   - keyboard focus is clearly visible everywhere (a faint border change was all there was);
     :is() keeps the rule stronger than the "outline: none" set on fields and the search boxes;
   - checkboxes and radio buttons are 20 px (13 px by default), and a label around one is a
     taller tap target. */
:is(a, button, input, select, textarea, summary, [tabindex], .code-editor):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
input[type="checkbox"], input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  flex-shrink: 0;
  vertical-align: middle;
  cursor: pointer;
}
label:has(> input[type="checkbox"], > input[type="radio"]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  cursor: pointer;
}

/* Mode buttons wrap on phones (they were cut off at both edges) and are 44 px touch targets */
.pomo-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.pomo-modes .cat-pill-btn { min-height: 44px; }
.pomo-status { min-height: 1.4em; margin: -12px 0 16px 0; font-weight: 700; color: var(--emerald); }
#reaction-box:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.pomo-settings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; text-align: left; }
.pomo-settings input { min-height: 40px; }
.pomo-noise { display: grid; gap: 8px; margin-top: 16px; text-align: left; }

/* Reaction stats */
.reaction-stats { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }

/* Typing result */
.type-rank { font-weight: 800; color: var(--primary); min-height: 1.2em; margin-top: 10px; text-align: center; }

/* Hash generator: bcrypt card */
.bcrypt-card {
  margin-top: 18px;
  background: var(--bg-surface);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary);
}

.bcrypt-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.bcrypt-verify-result {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 8px 0 0;
  min-height: 1.2em;
}

.bcrypt-verify-result.is-match {
  color: var(--emerald);
}

.bcrypt-verify-result.is-error {
  color: #dc2626;
}

/* ================================================= */
/* MASTER RESPONSIVE MEDIA QUERIES                   */
/* ================================================= */
/* Desktop nav: drop the least important items as the bar narrows so the
   links never run under the right-hand controls (checked by the test runner
   at every width from 901 to 1920 px). */
@media (max-width: 1224px) {
  .nav-kbd {
    display: none;
  }
}

@media (max-width: 1176px) {
  .nav-item-about {
    display: none;
  }
}

@media (max-width: 1096px) {
  .nav-hot-chip,
  .nav-new-chip {
    display: none;
  }
  .nav-links .nav-link-btn {
    padding: 6px 9px;
  }
}

@media (max-width: 1000px) {
  .nav-right .privacy-pill-nav {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
    font-size: 1.35rem;
  }
  .nav-search-trigger {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .nav-kbd {
    display: none;
  }
}

/* Below 1100px the middle column is too narrow for the heading, so the side cards
   give way to the quick-launch grid. */
@media (max-width: 1100px) {
  .hero-bento-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 0 10px 0;
    gap: 12px;
  }
  .hero-flank-card {
    display: none;
  }
  .mobile-above-fold-block {
    display: block;
  }
  .hero-title {
    font-size: 1.7rem !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }
  .hero-desc {
    font-size: 0.88rem !important;
    margin-bottom: 14px !important;
    line-height: 1.4 !important;
  }
  .hero-pill-tag {
    font-size: 0.72rem !important;
    padding: 4px 12px !important;
    margin-bottom: 10px !important;
  }
  .hero-search-box {
    margin-bottom: 10px !important;
  }
  .hero-search-input {
    padding: 11px 16px 11px 42px !important;
    font-size: 0.9rem !important;
  }
  .hero-quick-chips {
    gap: 6px !important;
    margin-top: 10px !important;
    padding: 8px 10px !important;
    border-radius: var(--radius-lg) !important;
  }
  .hqc-title {
    font-size: 0.72rem !important;
    padding: 3px 7px !important;
  }
  .hqc-chip {
    padding: 5px 10px !important;
    font-size: 0.76rem !important;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .site-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .navbar {
    padding: 10px 16px;
  }
  .brand-logo {
    font-size: 1.1rem;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
  .hero-wrapper {
    padding: 36px 0 24px 0;
  }
  .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }
  .hero-desc {
    font-size: 0.95rem !important;
    margin-bottom: 24px !important;
  }
  .hero-search-box {
    margin-bottom: 22px;
  }
  .hero-search-input {
    padding: 13px 18px 13px 46px;
    font-size: 0.95rem;
  }
  .category-filter-row {
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .cat-pill-btn {
    padding: 7px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cb-title {
    font-size: 1.25rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tool-card {
    padding: 18px;
  }
  .page-with-sidebar {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .side-rail-column {
    width: 100%;
    margin-top: 16px;
  }
  .dual-pane {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .workspace-title-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .workspace-main-title {
    font-size: 1.6rem !important;
  }
  .trust-badge-large {
    align-self: flex-start;
  }
  .pane-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .pane-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .pane-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-columns-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* Smallest phones (320-360px): tighten the header so the logo and the three
   icon buttons fit side by side. */
@media (max-width: 372px) {
  .navbar {
    gap: 10px;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .brand-logo {
    font-size: 0.9rem !important;
    gap: 7px;
  }
  .brand-logo-img {
    width: 34px;
    height: 28px;
  }
  .nav-right {
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .nav-search-label {
    display: none;
  }
  .hero-title {
    font-size: 1.55rem !important;
  }
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
  .btn-primary, .btn-pane-action {
    min-height: 44px;
  }
}

/* Tool control panels: side by side on wide screens, stacked on phones so every
   input, slider and dropdown gets the full width (image resizer / compressor,
   Add Text to PDF). */
.tool-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.tool-split-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
/* Two equal columns that stack on phones. Items keep their top alignment (unlike
   .tool-split), and minmax(0, 1fr) stops a wide field from squeezing its neighbour. */
.tool-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* Domain name generator: keyword, theme, extension and button in one row. */
.domain-controls { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 14px; align-items: end; margin-bottom: 24px; }
/* Password generator: the password beside its Copy button. */
.pass-display-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
#pass-display { min-width: 0; font-size: 1.8rem; font-family: var(--font-mono); font-weight: 800; color: var(--emerald); word-break: break-all; }
/* Percentage calculator: profit / margin / markup tiles. A huge value wraps inside its tile. */
.pct-tile-value { font-size: 1.3rem; font-weight: 800; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .tool-split { grid-template-columns: 1fr; }
  .tool-split-3 { grid-template-columns: 1fr 2fr; }
  .tool-split-3 > :first-child { grid-column: 1 / -1; }
  .tool-cols { grid-template-columns: 1fr; }
  .domain-controls { grid-template-columns: 1fr 1fr; }
  .domain-controls > :first-child, .domain-controls > button { grid-column: 1 / -1; }
  .pass-display-row { flex-direction: column; align-items: stretch; }
  #pass-display { font-size: 1.25rem; }
  .pct-tile-value { font-size: 1.1rem; }

  /* Guide tables of 3+ columns: the same card per row, so words are not split mid-word. */
  .editorial-table.stack-on-phone, .editorial-table.stack-on-phone tbody,
  .editorial-table.stack-on-phone tr, .editorial-table.stack-on-phone td { display: block; }
  .editorial-table.stack-on-phone thead { display: none; }
  .editorial-table.stack-on-phone tr { border: 1px solid var(--border-subtle); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
  .editorial-table.stack-on-phone td { border: 0; padding: 4px 0; }
  .editorial-table.stack-on-phone td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }

  /* Rent split and invoice line items: each row becomes a small card, with the column name
     (data-label) above each value, so nothing needs sideways scrolling. */
  .rent-table, .rent-table tbody, .inv-items, .inv-items tbody { display: block; min-width: 0; }
  .rent-table thead, .inv-items thead { display: none; }
  .rent-table tbody tr, .inv-items tbody tr { display: grid; gap: 8px 10px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
  .rent-table td, .inv-items td { display: block; padding: 0 !important; border: 0; }
  .rent-table td[data-label]::before, .inv-items td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
  .rent-table tbody tr { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name name remove" "size bath pays"; }
  .rent-table td:nth-child(1) { grid-area: name; }
  .rent-table .rent-col-size, .rent-table .rent-col-income { grid-area: size; }
  .rent-table td:nth-child(4) { grid-area: bath; }
  .rent-table .rent-share { grid-area: pays; }
  .rent-table td:nth-child(6) { grid-area: remove; }
  .inv-items tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "desc desc remove" "qty rate amount"; }
  .inv-items td:nth-child(1) { grid-area: desc; }
  .inv-items td:nth-child(2) { grid-area: qty; }
  .inv-items td:nth-child(3) { grid-area: rate; }
  .inv-items td:nth-child(4) { grid-area: amount; }
  .inv-items td:nth-child(5) { grid-area: remove; }
}

/* ---- Sign PDF (PDF Form Filler & Signature) --------------------------------
   Signature fonts are self-hosted under the SIL Open Font License (assets/fonts,
   licence files alongside). Great Vibes and Pacifico are subset to Latin; Dancing
   Script has a Reserved Font Name, so it is shipped unmodified. Browsers only
   download them when the typed-signature styles are shown. */
@font-face { font-family: 'Great Vibes'; src: url('../fonts/GreatVibes-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Dancing Script'; src: url('../fonts/DancingScript-wght.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Pacifico'; src: url('../fonts/Pacifico-latin.woff2') format('woff2'); font-display: swap; }

.sign-controls { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 36px; }
.sign-controls[hidden], .sign-panel[hidden], .sign-controls [role="tabpanel"][hidden] { display: none !important; }
.sign-file-line { font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; overflow-wrap: anywhere; }
.sign-modes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sign-mode-btn { flex: 1 1 160px; min-height: 44px; border-radius: var(--radius-md); border: 2px solid var(--border-subtle); background: var(--bg-surface-elevated); color: var(--text-primary); font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.sign-mode-btn[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.sign-panel { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px; margin-bottom: 14px; background: var(--bg-surface-elevated); }
.sign-panel label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.sign-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.sign-row .code-editor { min-height: 44px; width: auto; flex: 0 1 120px; }
.sign-hint { font-size: 0.85rem; color: var(--text-secondary); margin: 10px 0 0; }
.sign-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.sign-tabs [role="tab"] { min-height: 40px; padding: 0 20px; border-radius: var(--radius-full); border: 1px solid var(--border-subtle); background: var(--bg-surface); color: var(--text-secondary); font-weight: 700; cursor: pointer; }
.sign-tabs [role="tab"][aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
#sign-type-name { display: block; width: 100%; min-height: 44px; margin-top: 4px; }
.sign-font-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 10px; }
.sign-font-option { min-height: 64px; padding: 4px 12px; border: 2px solid var(--border-subtle); border-radius: var(--radius-md); background: #fff; color: #1d4ed8; font-size: 30px; line-height: 1.3; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.sign-font-option[aria-checked="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.sign-draw-pad { display: block; width: 100%; height: 180px; background: #fff; border: 2px dashed var(--border-hover); border-radius: var(--radius-md); touch-action: none; cursor: crosshair; }
.sign-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0; font-weight: 700; }
.sign-stage { position: relative; width: 100%; max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); user-select: none; -webkit-user-select: none; }
.sign-stage canvas { display: block; width: 100%; height: auto; }
.sign-overlay { position: absolute; inset: 0; cursor: text; }
.sign-overlay.sig-mode { cursor: copy; }
.sign-item { position: absolute; }
.sign-item-text { min-width: 62px; }
.sign-text-body { font-family: Helvetica, Arial, sans-serif; line-height: 1.2; white-space: pre; min-width: 1ch; outline: 1px dashed rgba(29, 78, 216, 0.6); outline-offset: 2px; cursor: text; user-select: text; -webkit-user-select: text; }
.sign-text-body:focus, .sign-item-text.is-selected .sign-text-body { outline: 2px solid var(--primary); }
.sign-item-image { cursor: move; touch-action: none; outline: 1px dashed rgba(29, 78, 216, 0.6); }
.sign-item-image:focus-visible, .sign-item-image.is-selected { outline: 2px solid var(--primary); }
.sign-item-image img { display: block; width: 100%; height: auto; pointer-events: none; }
.sign-item-move, .sign-item-delete { position: absolute; top: -32px; width: 28px; height: 28px; padding: 0; border: none; border-radius: 50%; background: var(--primary); color: #fff; font-size: 15px; line-height: 28px; text-align: center; cursor: pointer; touch-action: none; }
.sign-item-move { left: -2px; cursor: move; }
.sign-item-delete { right: -2px; background: var(--rose); }
.sign-item-resize { position: absolute; right: -10px; bottom: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; cursor: nwse-resize; touch-action: none; }
.sign-status { min-height: 1.4em; margin: 12px 0; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); }
#btn-sign-download { padding: 12px 32px; font-size: 1rem; }
@media (max-width: 600px) {
  .sign-controls { padding: 14px; }
  .sign-item-move, .sign-item-delete { width: 34px; height: 34px; line-height: 34px; top: -38px; }
  .sign-item-resize { width: 26px; height: 26px; right: -13px; bottom: -13px; }
}

/* PDF Splitter & Page Rotator UI (Visual Grid, Orientation Controls, Before/After Inspector, Output Preview) */
.pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.pdf-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pdf-toolbar-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.pdf-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  max-height: 600px;
  overflow-y: auto;
  padding: 8px 4px 12px 4px;
}
.pdf-page-card {
  position: relative;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  user-select: none;
}
.pdf-page-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pdf-page-card.is-selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.pdf-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pdf-page-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.pdf-page-card.is-selected .pdf-page-badge {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pdf-page-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}
.pdf-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
[data-theme="dark"] .pdf-thumb-wrapper {
  background: #1e293b;
}
.pdf-thumb-wrapper canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pdf-orient-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.pdf-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}
.pdf-card-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pdf-card-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--primary);
  color: var(--primary);
}
.pdf-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pdf-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}
.pdf-modal-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.pdf-modal-body {
  padding: 20px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  background: #cbd5e1;
}
[data-theme="dark"] .pdf-modal-body {
  background: #0f172a;
}
.pdf-modal-body canvas {
  max-width: 100%;
  max-height: 65vh;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  border-radius: 4px;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pdf-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

/* Page and rotation buttons above a PDF preview: they wrap onto a second line on phones
   instead of pushing the page sideways. */
.pdf-stage-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
