/* ═══════════════════════════════════════════════════════════
   TECHTOOLS — style.css  (ONE file for ALL pages)
   Pages: index, image-resizer, youtube-tags, qr-generator,
          hashtag, payslip, thumbnail, about, contact,
          privacy, terms, disclaimer
   No Bootstrap. No duplicates.
═══════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────
   1. VARIABLES
──────────────────────────────────────── */
html, body {
  width: 100%;
  overflow-x: hidden;
}
:root {
  --blue:     #2563eb;
  --blue-d:   #1d4ed8;
  --blue-l:   #eff6ff;
  --blue-p:   #dbeafe;
  --dark:     #0a0e1a;
  --dark2:    #0f1623;
  --text:     #111827;
  --sub:      #6b7280;
  --border:   #e5e7eb;
  --bg:       #f9fafb;
  --white:    #ffffff;
  --success:  #16a34a;
  --warn:     #d97706;
  --nav-h:    65px;
  --font:     'Inter', sans-serif;
  --r:        14px;
  --shadow:   0 1px 12px rgba(0,0,0,.06);
  --shadow-h: 0 16px 48px rgba(37,99,235,.13);
}

/* ────────────────────────────────────────
   2. RESET & BASE
──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  padding-top: var(--nav-h);
  line-height: 1.6;
}

a  { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button   { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ────────────────────────────────────────
   3. LOADER
──────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s;
}
/* supports both .ring and .spinner class names */
#loader .ring,
#loader .spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: tt-spin .7s linear infinite;
}
@keyframes tt-spin { to { transform: rotate(360deg); } }

/* ────────────────────────────────────────
   4. NAVBAR
──────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1030;                         /* above everything */
  background: rgba(10,14,26,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; width: 100%;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.08rem; font-weight: 800;
  color: #fff; white-space: nowrap; flex-shrink: 0;
}
.logo-box {
  width: 35px; height: 35px; border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; flex-shrink: 0;
}
.logo-box img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0; border-radius: 9px;
}
/* Fallback letter — shown via JS onerror */
.logo-box .lf {
  display: none; color: #fff; font-size: .8rem;
  font-weight: 900; position: relative; z-index: 1;
}
.logo-text b { color: #60a5fa; font-weight: 800; }

/* Desktop links */
.nav-menu {
  display: flex; align-items: center;
  gap: 2px; list-style: none;
}
.nav-menu > li { position: relative; }
.nav-menu a {
  display: flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,.62);
  font-size: .84rem; font-weight: 600;
  padding: 7px 13px; border-radius: 8px;
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav-menu a:hover        { color: #fff; background: rgba(255,255,255,.08); }
.nav-menu a.curr         { color: #93c5fd; background: rgba(37,99,235,.15); }
.nav-menu .arrow         { font-size: .6rem; opacity: .6; transition: transform .2s; }

/* CTA button in navbar */
.nav-cta {
  background: var(--blue)  !important;
  color: #fff              !important;
  padding: 8px 18px        !important;
  border-radius: 9px       !important;
  font-weight: 700         !important;
  margin-left: 6px;
  transition: background .15s !important;
}
.nav-cta:hover { background: var(--blue-d) !important; }

/* ── Tools dropdown ── */
.has-drop:hover .drop-menu,
.has-drop:focus-within .drop-menu { display: block; }
.has-drop:hover .arrow { transform: rotate(180deg); }

.drop-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  width: 240px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 16px 48px rgba(0,0,0,.13);
  padding: 8px; z-index: 900;
  animation: tt-dropIn .15s ease;
}
@keyframes tt-dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.drop-menu a {
  display: flex     !important;
  align-items: center; gap: 10px;
  color: var(--text)       !important;
  font-size: .84rem        !important;
  font-weight: 600         !important;
  padding: 10px 12px       !important;
  border-radius: 9px       !important;
  background: none         !important;
  transition: background .12s !important;
}
.drop-menu a:hover {
  background: var(--blue-l) !important;
  color: var(--blue)        !important;
}
.drop-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}

/* ── Hamburger ── */
.hbg {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 5px;
}
.hbg span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,.8); border-radius: 2px;
  transition: all .25s;
}
.hbg.open span:nth-child(1) { transform: rotate(45deg)  translate(5px, 5px); }
.hbg.open span:nth-child(2) { opacity: 0; }
.hbg.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Mobile nav ── */
.mob-nav {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--dark2);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 12px 20px 20px;
  z-index: 999;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.mob-nav.show {
  display: block;
  animation: tt-slideDown .22s ease;
}
@keyframes tt-slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
.mob-nav a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: .88rem; font-weight: 600;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.mob-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.mob-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 8px 0; }

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .hbg      { display: flex; }
}

/* ────────────────────────────────────────
   5. HERO  (used on every page)
──────────────────────────────────────── */
.hero {
  background: var(--dark);
  padding: 68px 24px 56px;
  text-align: center;
  position: relative; overflow: visible;
}
.hero::before {
  content: ''; position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(37,99,235,.2) 0%, transparent 68%);
  pointer-events: none;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,.14);
  border: 1px solid rgba(96,165,250,.28);
  color: #93c5fd; font-size: .71rem; font-weight: 700;
  padding: 5px 15px; border-radius: 99px;
  letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: #fff;
  line-height: 1.15; letter-spacing: -.028em;
  margin-bottom: 14px;
  max-width: 700px; margin-inline: auto;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: rgba(255,255,255,.48); font-size: .95rem;
  line-height: 1.7; max-width: 500px;
  margin: 0 auto 40px;
}

/* ────────────────────────────────────────
   6. SEARCH BAR  (homepage only)
──────────────────────────────────────── */
.search-wrap {
  max-width: 580px; margin: 0 auto;
  position: relative;
}
.search-box {
  display: flex; align-items: center;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 13px;
  padding: 7px 7px 7px 18px; gap: 10px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.search-box:focus-within {
  border-color: rgba(96,165,250,.55);
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.search-box svg { flex-shrink: 0; }

/* ✅ KEY FIX: override the global input styles for the hero search */
.search-box input,
.search-box input[type="search"] {
  flex: 1; min-width: 0;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: var(--font);
  font-size: .94rem; font-weight: 500;
  padding: 7px 0;
  border-radius: 0 !important;
  width: 100%;
}
.search-box input::placeholder,
.search-box input[type="search"]::placeholder { color: rgba(255,255,255,.35) !important; }

/* Remove browser default X button on search inputs */
.search-box input[type="search"]::-webkit-search-cancel-button { display: none; }

.search-box button {
  flex-shrink: 0; width: 96px;
  background: var(--blue); color: #fff; border: none;
  border-radius: 9px; padding: 11px 0;
  font-family: var(--font); font-size: .86rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.search-box button:hover { background: var(--blue-d); }

/* Search popup */
.s-popup {
  display: none; position: absolute;
  top: calc(100% + 10px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  overflow: hidden; z-index: 600;
  text-align: left;
  animation: tt-fadeIn .15s ease;
}
.s-popup.open { display: block; }
@keyframes tt-fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.s-popup-hdr {
  padding: 10px 16px 8px;
  font-size: .68rem; font-weight: 800; color: var(--sub);
  text-transform: uppercase; letter-spacing: .08em;
  background: #f9fafb; border-bottom: 1px solid var(--border);
}
.s-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid #f3f4f6;
  color: var(--text); transition: background .1s;
  text-decoration: none; cursor: pointer;
}
.s-row:last-child  { border-bottom: none; }
.s-row:hover       { background: #f0f7ff; }
.s-row-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.s-row-info  { flex: 1; min-width: 0; }
.s-row-name  { font-size: .86rem; font-weight: 700; color: var(--text); }
.s-row-name mark {
  background: #dbeafe; color: #1d4ed8;
  border-radius: 3px; padding: 0 2px;
  font-weight: 800; font-style: normal;
}
.s-row-desc {
  font-size: .75rem; color: var(--sub); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s-row-arr   { color: var(--blue); font-size: .85rem; font-weight: 700; flex-shrink: 0; margin-left: auto; }
.s-empty     { padding: 24px; text-align: center; color: var(--sub); font-size: .87rem; }
.s-empty strong { color: var(--text); }

/* ────────────────────────────────────────
   7. STATS BAR  (homepage)
──────────────────────────────────────── */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: center;
  gap: 56px; flex-wrap: wrap;
}
.stat      { text-align: center; }
.stat-num  { font-size: 1.35rem; font-weight: 900; color: var(--blue); }
.stat-lbl  { font-size: .72rem; color: var(--sub); font-weight: 600; margin-top: 2px; }

/* ────────────────────────────────────────
   8. PAGE WRAPPERS
──────────────────────────────────────── */
.page {
  max-width: 1200px; margin: 0 auto;
  padding: 52px 24px 80px;
}
.page-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 24px 80px;
}
.page-wrap-sm {
  max-width: 760px; margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ────────────────────────────────────────
   9. INFO CARD  (homepage "Why choose")
──────────────────────────────────────── */
.info-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 40px;
  text-align: center; margin-bottom: 52px;
  box-shadow: 0 1px 12px rgba(0,0,0,.04);
}
.info-card h2   { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.info-card p    { color: var(--sub); font-size: .9rem; line-height: 1.8; max-width: 580px; margin: 0 auto 8px; }

/* Section header */
.sec-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.sec-top h2   { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.sec-badge    { background: var(--blue-l); color: var(--blue); font-size: .76rem; font-weight: 700; padding: 4px 14px; border-radius: 99px; }

/* Hidden SEO nav */
.seo-links { display: none; }

/* ────────────────────────────────────────
   10. TOOL CARDS  (homepage grid)
──────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px)  { .grid { grid-template-columns: 1fr; gap: 12px; } }

.card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 24px 20px 20px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  animation: tt-up .4s ease both;
}
.card:nth-child(1){animation-delay:.04s} .card:nth-child(2){animation-delay:.09s}
.card:nth-child(3){animation-delay:.14s} .card:nth-child(4){animation-delay:.19s}
.card:nth-child(5){animation-delay:.24s} .card:nth-child(6){animation-delay:.29s}
@keyframes tt-up { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }

.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 16px 16px 0 0; opacity: 0; transition: opacity .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(37,99,235,.12); border-color: #bfdbfe; }
.card:hover::before { opacity: 1; }
.c1::before { background: linear-gradient(90deg,#ef4444,#f97316); }
.c2::before { background: linear-gradient(90deg,#f59e0b,#facc15); }
.c3::before { background: linear-gradient(90deg,#22c55e,#10b981); }
.c4::before { background: linear-gradient(90deg,#3b82f6,#06b6d4); }
.c5::before { background: linear-gradient(90deg,#a855f7,#ec4899); }
.c6::before { background: linear-gradient(90deg,#14b8a6,#0ea5e9); }

.card-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: .64rem; font-weight: 800;
  padding: 3px 10px; border-radius: 99px; letter-spacing: .04em;
}
.bh { background:#fef2f2; color:#ef4444; }
.bn { background:#eff6ff; color:#3b82f6; }
.bf { background:#f0fdf4; color:#16a34a; }

.card-icon  { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.card-name  { font-size: .94rem; font-weight: 800; color: var(--text); line-height: 1.3; }
.card-desc  { font-size: .8rem; color: var(--sub); line-height: 1.65; flex: 1; }
.card-cta   { display: inline-flex; align-items: center; gap: 5px; font-size: .79rem; font-weight: 700; color: var(--blue); margin-top: 4px; transition: gap .18s; }
.card:hover .card-cta { gap: 9px; }

/* Features row */
.feats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 48px; }
@media (max-width: 760px) { .feats { grid-template-columns: repeat(2,1fr); } }
.feat      { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px 14px; text-align: center; }
.feat .fi  { font-size: 1.4rem; }
.feat .ft  { font-size: .85rem; font-weight: 700; margin-top: 8px; }
.feat .fd  { font-size: .74rem; color: var(--sub); margin-top: 3px; }

/* ────────────────────────────────────────
   11. GENERIC WHITE CARD  (tool pages)
──────────────────────────────────────── */
.tt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.tt-card-title {
  font-size: 1.1rem; font-weight: 800;
  margin-bottom: 20px; text-align: center;
  letter-spacing: -.015em;
}

/* ────────────────────────────────────────
   12. FORM ELEMENTS
──────────────────────────────────────── */
.tt-label {
  display: block; font-size: .8rem; font-weight: 700;
  color: var(--sub); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .04em;
}

.tt-input,
input[type="number"],
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%; display: block;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  font-size: .9rem; font-weight: 500; color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
.tt-input:focus,
input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: #fff;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
textarea { resize: vertical; min-height: 100px; }

/* ────────────────────────────────────────
   13. BUTTONS
──────────────────────────────────────── */
.tt-btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 7px;
  font-size: .9rem; font-weight: 700;
  padding: 12px 24px; border-radius: 11px; border: none;
  transition: background .15s, transform .12s, box-shadow .15s;
  cursor: pointer; white-space: nowrap;
  font-family: var(--font);
}
.tt-btn:hover  { transform: translateY(-1px); }
.tt-btn:active { transform: none; }
.tt-btn-primary { background: var(--blue); color: #fff; }
.tt-btn-primary:hover { background: var(--blue-d); box-shadow: 0 6px 20px rgba(37,99,235,.3); }
.tt-btn-success { background: var(--success); color: #fff; }
.tt-btn-success:hover { background: #15803d; }
.tt-btn-outline {
  background: transparent; color: var(--blue);
  border: 1.5px solid var(--blue-p);
}
.tt-btn-outline:hover { background: var(--blue-l); }
.tt-btn-block { width: 100%; }
.tt-btn-sm    { padding: 8px 16px; font-size: .82rem; border-radius: 9px; }

/* ────────────────────────────────────────
   14. UPLOAD BOX
──────────────────────────────────────── */
.tt-upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 32px 20px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--bg); position: relative; overflow: hidden;
}
.tt-upload-box:hover,
.tt-upload-box.drag-over {
  border-color: var(--blue);
  background: var(--blue-l);
}
.tt-upload-box strong  { display: block; font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.tt-upload-box span    { font-size: .8rem; color: var(--sub); }
.tt-upload-box .upload-ico { font-size: 2rem; margin-bottom: 10px; display: block; }
.tt-upload-preview {
  max-width: 100%; max-height: 220px;
  border-radius: 10px; margin: 0 auto; object-fit: contain;
}

/* ────────────────────────────────────────
   15. LOCK BUTTON (aspect ratio)
──────────────────────────────────────── */
.tt-lock {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg); border: 1.5px solid var(--border);
  font-size: 1rem; cursor: pointer;
  transition: background .15s, border-color .15s;
  flex-shrink: 0; align-self: flex-end; margin-bottom: 1px;
  user-select: none;
}
.tt-lock:hover  { background: var(--blue-l); border-color: var(--blue-p); }
.tt-lock.locked { background: var(--blue-l); border-color: var(--blue); }

/* ────────────────────────────────────────
   16. MODAL
──────────────────────────────────────── */
.tt-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,.5);
  align-items: center; justify-content: center; padding: 20px;
}
.tt-modal-overlay.open { display: flex; }
.tt-modal {
  background: #fff; border-radius: 18px;
  width: 100%; max-width: 480px;
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
  animation: tt-modalIn .2s ease; overflow: hidden;
}
@keyframes tt-modalIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.tt-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  font-size: .95rem; font-weight: 800;
}
.tt-modal-close {
  background: none; border: none; font-size: 1.1rem;
  color: var(--sub); cursor: pointer;
  padding: 4px 6px; border-radius: 6px;
  transition: background .15s; line-height: 1;
}
.tt-modal-close:hover { background: var(--bg); color: var(--text); }
.tt-modal-body { padding: 22px; text-align: center; }
.tt-modal-body img {
  max-width: 100%; max-height: 280px;
  border-radius: 10px; margin: 0 auto 18px;
  border: 1px solid var(--border); object-fit: contain;
}

/* ────────────────────────────────────────
   17. ARTICLE / SEO CONTENT
──────────────────────────────────────── */
.tt-article {
  max-width: 820px; margin: 0 auto;
  padding: 0 24px 60px;
}
.tt-article h2 { font-size: 1.2rem; font-weight: 800; margin: 32px 0 12px; letter-spacing: -.015em; }
.tt-article h3 { font-size: 1rem;   font-weight: 700; margin: 24px 0 10px; }
.tt-article p  { font-size: .9rem; color: #374151; line-height: 1.8; margin-bottom: 14px; }
.tt-article strong { font-weight: 700; }
.tt-article ul,
.tt-article ol { margin: 10px 0 14px 20px; font-size: .9rem; color: #374151; line-height: 1.8; }

/* ────────────────────────────────────────
   18. NOTICE / DISCLAIMER BANNER
──────────────────────────────────────── */
.tt-notice {
  background: #fffbeb; border-left: 4px solid #f59e0b;
  border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin: 20px 0;
  font-size: .85rem; color: #78350f; line-height: 1.7;
}
.tt-notice strong { font-weight: 700; }

/* ────────────────────────────────────────
   19. FOOTER
──────────────────────────────────────── */
footer,
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 52px 24px 28px;
}
.footer-in { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 500px)  { .footer-top { grid-template-columns: 1fr; } }

.ft-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 14px;
}
.ft-logo-box {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg,#2563eb,#0ea5e9);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; flex-shrink: 0;
}
.ft-logo-box img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ft-logo-box .lf { position: relative; z-index: 1; color: #fff; font-size: .75rem; font-weight: 900; display: none; }
.ft-desc   { font-size: .81rem; color: rgba(255,255,255,.38); line-height: 1.75; max-width: 250px; margin-bottom: 16px; }
.ft-chips  { display: flex; gap: 7px; flex-wrap: wrap; }
.ft-chip   { font-size: .67rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.08); }
/* legacy alias */
.chips     { display: flex; gap: 7px; flex-wrap: wrap; }
.chip      { font-size: .67rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.08); }

.ft-col h4 { font-size: .68rem; font-weight: 800; color: rgba(255,255,255,.28); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px; }
.ft-col ul { list-style: none; }
.ft-col li { margin-bottom: 9px; }
.ft-col a  { color: rgba(255,255,255,.48); font-size: .82rem; font-weight: 500; display: flex; align-items: center; gap: 7px; transition: color .15s; }
.ft-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; padding-top: 24px;
  font-size: .77rem; color: rgba(255,255,255,.26);
}
.footer-bottom a       { color: rgba(255,255,255,.32); transition: color .15s; }
.footer-bottom a:hover { color: rgba(255,255,255,.65); }
.fbl       { display: flex; gap: 14px; flex-wrap: wrap; }
.ads-note  { text-align: center; margin-top: 12px; font-size: .7rem; color: rgba(255,255,255,.17); }
.ads-note a { color: rgba(255,255,255,.24); }

/* ────────────────────────────────────────
   20. UTILITIES
──────────────────────────────────────── */
/* Spacing */
.mt-0{margin-top:0}     .mt-1{margin-top:6px}   .mt-2{margin-top:12px}  .mt-3{margin-top:20px}  .mt-4{margin-top:32px}
.mb-0{margin-bottom:0}  .mb-1{margin-bottom:6px} .mb-2{margin-bottom:12px} .mb-3{margin-bottom:20px} .mb-4{margin-bottom:32px}

/* Flex */
.d-flex          { display: flex; }
.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1{gap:6px} .gap-2{gap:12px} .gap-3{gap:18px}
.flex-wrap       { flex-wrap: wrap; }

/* Text */
.text-center { text-align: center; }
.text-muted  { color: var(--sub); }
.fw-700      { font-weight: 700; }
.fw-800      { font-weight: 800; }

/* Misc */
.w-100       { width: 100%; }
.hidden      { display: none; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr;         gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr);   gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr);   gap: 16px; }
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}


/* Two-column tool layout */
.qr-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 820px) { .qr-layout { grid-template-columns: 1fr; } }

/* Type selector buttons */
.type-row {
  display: flex; gap: 7px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.option-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: var(--bg);
  color: var(--sub);
  font-size: .82rem; font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all .15s;
}
.option-btn:hover { border-color: var(--blue-p); color: var(--blue); background: var(--blue-l); }
.option-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Hidden sections */
.hidden { display: none !important; }

/* Section divider label */
.sec-label {
  font-size: .75rem; font-weight: 800; color: var(--sub);
  text-transform: uppercase; letter-spacing: .07em;
  margin: 20px 0 12px;
}

/* Color pickers row */
.color-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 16px;
}
.color-group label { font-size: .8rem; font-weight: 700; color: var(--sub); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: .04em; }
.color-group input[type="color"] {
  width: 100%; height: 44px;
  border-radius: 10px; border: 1.5px solid var(--border);
  padding: 4px 6px; cursor: pointer; background: var(--bg);
}
.color-group input[type="color"]:focus { border-color: var(--blue); }

/* Size slider */
.slider-row { margin-bottom: 20px; }
.slider-row .slider-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.slider-row .slider-top label { font-size: .8rem; font-weight: 700; color: var(--sub); text-transform: uppercase; letter-spacing: .04em; }
.slider-row .slider-top span { font-size: .85rem; font-weight: 800; color: var(--blue); }
input[type="range"] {
  width: 100%; height: 6px;
  border-radius: 99px;
  background: var(--border); border: none;
  outline: none; cursor: pointer;
  accent-color: var(--blue);
  padding: 0;
}

/* QR preview card */
.qr-preview-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 1px 12px rgba(0,0,0,.05);
  overflow: hidden;
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.qr-preview-top {
  padding: 20px; display: flex; align-items: center; justify-content: center;
  min-height: 240px;
  background: repeating-conic-gradient(#f3f4f6 0% 25%, #fff 0% 50%) 0 0 / 16px 16px;
}
/* Actual QR canvas/img centering */
#qrcode { display: flex; align-items: center; justify-content: center; }
#qrcode canvas, #qrcode img { border-radius: 8px; max-width: 100%; height: auto; }

.qr-empty {
  background: white;
  padding: 5px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; color: #d1d5db;
  font-size: .82rem; font-weight: 600; text-align: center;
}
.qr-empty .qr-empty-icon { font-size: 3rem; }

.qr-preview-actions { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); }

/* Info sidebar boxes */
.info-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 20px;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
  margin-bottom: 14px;
}
.info-box h3 { font-size: .88rem; font-weight: 800; margin-bottom: 10px; }
.info-box ul { list-style: none; padding: 0; }
.info-box li {
  display: flex; gap: 7px; align-items: flex-start;
  font-size: .8rem; color: var(--sub); line-height: 1.6;
  padding: 5px 0; border-bottom: 1px solid #f3f4f6;
}
.info-box li:last-child { border-bottom: none; }
.info-box .blt { color: var(--blue); font-weight: 900; flex-shrink: 0; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; font-size: .87rem; font-weight: 700; color: var(--text); background: #fff; gap: 12px; user-select: none; transition: background .15s; }
.faq-q:hover { background: var(--blue-l); }
.faq-icon { font-size: .65rem; color: var(--sub); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q { background: var(--blue-l); color: var(--blue); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 18px 14px; font-size: .84rem; color: var(--sub); line-height: 1.75; background: var(--blue-l); }
.faq-item.open .faq-a { display: block; }


/* ── Page-specific styles ── */

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) { .tool-layout { grid-template-columns: 1fr; } }

/* URL input row */
.url-row { display: flex; gap: 10px; flex-wrap: wrap; }
.url-row input { flex: 1; min-width: 0; }
.url-row button { flex-shrink: 0; white-space: nowrap; }

/* ── Error message — matches JS id="errorMessage" ── */
#errorMessage {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: .85rem;
  font-weight: 600;
  margin-top: 14px;
}
#errorMessage.active { display: block; }

/* ── Results section — matches JS id="results" ── */
#results {
  display: none;
  margin-top: 24px;
}
#results.active { display: block; }

/* Video info box */
.video-info {
  background: var(--blue-l);
  border: 1px solid var(--blue-p);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.video-info h3 {
  font-size: .85rem; font-weight: 800;
  color: var(--text); margin-bottom: 8px;
}
.video-info p {
  font-size: .82rem; color: var(--sub);
  margin: 0 0 4px; line-height: 1.6;
}
.video-info p:last-child { margin-bottom: 0; }

/* Qualities heading */
#results > h3 {
  font-size: .9rem; font-weight: 800;
  color: var(--text); margin-bottom: 16px;
}

/* ── Thumbnails grid — matches JS id="thumbnailsGrid" ── */
#thumbnailsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { #thumbnailsGrid { grid-template-columns: repeat(2,1fr); } .kw-row{flex-direction: column;} .url-row{flex-direction: column;} }
@media (max-width: 440px) { #thumbnailsGrid { grid-template-columns: 1fr; }  .kw-row{flex-direction: column;}}


/* ── Thumbnail card — matches JS class="thumbnail-card" ── */
.thumbnail-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.thumbnail-card:hover {
  border-color: var(--blue-p);
  box-shadow: 0 8px 28px rgba(37,99,235,.11);
  transform: translateY(-3px);
}

/* Card header */
.thumbnail-card h4 {
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: .82rem; font-weight: 800;
  color: var(--text);
  padding: 12px 14px 6px;
  gap: 8px;
}

/* Resolution text */
.thumbnail-card .resolution {
  font-size: .73rem; color: var(--sub);
  padding: 0 14px 8px; margin: 0;
  font-weight: 600;
}

/* Thumbnail image preview */
.thumbnail-card .thumbnail-preview {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  background: #f1f5f9;
}
.thumbnail-card .thumbnail-preview.error {
  opacity: .3; filter: grayscale(1);
}

/* Quality badges — matches JS badgeClass: 'hd', 'sd' */
.quality-badge {
  font-size: .6rem; font-weight: 800;
  padding: 2px 8px; border-radius: 99px;
  letter-spacing: .04em; text-transform: uppercase;
  flex-shrink: 0;
}
.quality-badge.hd { background: #fef2f2; color: #ef4444; }
.quality-badge.sd { background: #eff6ff; color: #3b82f6; }
.quality-badge     { background: #f0fdf4; color: #16a34a; } /* default for HQ/MQ/Default */

/* Download button — matches JS class="btn btn-download" */
.btn-download {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; width: calc(100% - 28px);
  margin: 10px 14px 14px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 9px;
  padding: 9px 0; font-size: .8rem; font-weight: 700;
  font-family: var(--font); cursor: pointer;
  transition: background .15s, transform .12s;
}
.btn-download:hover   { background: var(--blue-d); transform: translateY(-1px); }
.btn-download:active  { transform: none; }
.btn-download:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Sidebar info boxes */
.info-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px 22px;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
  margin-bottom: 14px;
}
.info-box h3 { font-size: .9rem; font-weight: 800; margin-bottom: 12px; }
.info-box ul { list-style: none; padding: 0; }
.info-box li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: .81rem; color: var(--sub); line-height: 1.6;
  padding: 6px 0; border-bottom: 1px solid #f3f4f6;
}
.info-box li:last-child { border-bottom: none; }
.info-box .blt { color: var(--blue); font-weight: 900; flex-shrink: 0; }

/* FAQ */
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; margin-bottom: 10px;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; cursor: pointer;
  font-size: .87rem; font-weight: 700; color: var(--text);
  background: #fff; gap: 12px; user-select: none;
  transition: background .15s;
}
.faq-q:hover { background: var(--blue-l); }
.faq-icon { font-size: .65rem; color: var(--sub); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q   { background: var(--blue-l); color: var(--blue); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a {
  display: none; padding: 0 18px 14px;
  font-size: .84rem; color: var(--sub); line-height: 1.75;
  background: var(--blue-l);
}
.faq-item.open .faq-a { display: block; }


/* ── Page-specific styles (image resizer only) ── */

/* Tool layout: sidebar + content or single col */
.tool-layout {
  display: grid;
  
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .tool-layout { grid-template-columns: 1fr; }
}

/* Dimension row with lock in middle */
.dim-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 8px;
  align-items: end;
}

/* Result info strip */
.result-strip {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 14px;
}
.result-pill {
  background: var(--blue-l); color: var(--blue);
  font-size: .75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 99px;
  border: 1px solid var(--blue-p);
}

/* Info box in right column */
.info-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 22px;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.info-box h3 {
  font-size: .95rem; font-weight: 800;
  margin-bottom: 12px; letter-spacing: -.01em;
}
.info-box ul {
  list-style: none; padding: 0;
}
.info-box ul li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .83rem; color: var(--sub); line-height: 1.6;
  padding: 7px 0; border-bottom: 1px solid #f3f4f6;
}
.info-box ul li:last-child { border-bottom: none; }
.info-box ul li .blt {
  color: var(--blue); font-weight: 900; flex-shrink: 0;
}


.about-wrap {
  max-width: 820px; margin: 0 auto;
  padding: 48px 24px 80px;
}
/* Stats */
.about-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 14px; margin-bottom: 28px;
}
@media (max-width: 640px) { .about-stats { grid-template-columns: repeat(2,1fr); } }
.about-stat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px 14px;
  text-align: center; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.about-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.about-stat-num { font-size: 1.5rem; font-weight: 900; color: var(--blue); display: block; margin-bottom: 4px; }
.about-stat-lbl { font-size: .72rem; font-weight: 700; color: var(--sub); text-transform: uppercase; letter-spacing: .06em; }

/* Content card */
.about-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 36px 40px;
  box-shadow: var(--shadow); margin-bottom: 20px;
}
@media (max-width: 600px) { .about-card { padding: 24px 20px; } }
.about-card h2 {
  font-size: 1rem; font-weight: 800; color: var(--text);
  margin: 26px 0 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-l); letter-spacing: -.01em;
}
.about-card h2:first-child { margin-top: 0; }
.about-card p { font-size: .88rem; color: #374151; line-height: 1.85; margin-bottom: 12px; }
.about-card p:last-child { margin-bottom: 0; }

/* Commitment grid */
.commit-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 10px; margin-bottom: 24px;
}
@media (max-width: 500px) { .commit-grid { grid-template-columns: 1fr; } }
.commit-item {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 16px;
  font-size: .84rem; font-weight: 600; color: var(--text);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  transition: border-color .15s, background .15s;
}
.commit-item:hover { border-color: var(--blue-p); background: var(--blue-l); }
.commit-item .ci { font-size: 1rem; flex-shrink: 0; }

/* Contact strip */
.about-contact-strip {
  background: var(--blue-l); border: 1px solid var(--blue-p);
  border-radius: var(--r); padding: 24px 28px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.about-contact-strip p { margin: 0 0 6px; font-size: .88rem; color: var(--text); line-height: 1.7; }
.about-contact-strip p:last-child { margin-bottom: 0; }
.about-contact-strip a { color: var(--blue); font-weight: 600; }
.about-contact-strip a:hover { text-decoration: underline; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--sub); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* Section mini-label */
.sec-mini-label { font-size: .75rem; font-weight: 800; color: var(--sub); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }



/* ── Password Generator Page Styles ── */

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) { .tool-layout { grid-template-columns: 1fr; } }

/* ── Password Display ── */
.pwd-display-wrap {
  position: relative;
  margin-bottom: 22px;
}
.pwd-display {
  width: 100%; box-sizing: border-box;
  padding: 18px 56px 18px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: .04em;
  background: #0f172a;
  color: #e2e8f0;
  border: 2px solid #1e293b;
  border-radius: 14px;
  min-height: 64px;
  word-break: break-all;
  line-height: 1.6;
  cursor: text;
  transition: border-color .2s;
  outline: none;
}
.pwd-display:focus { border-color: var(--blue); }
.pwd-display.copied-flash { border-color: #16a34a !important; color: #86efac; }

.pwd-copy-btn {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: #64748b; cursor: pointer; font-size: 1.1rem;
  padding: 6px; border-radius: 6px;
  transition: color .15s, background .15s;
  line-height: 1;
}
.pwd-copy-btn:hover { color: #e2e8f0; background: #1e293b; }

/* ── Strength Bar ── */
.strength-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.strength-bar-wrap {
  flex: 1; height: 7px;
  background: var(--border);
  border-radius: 99px; overflow: hidden;
}
.strength-bar {
  height: 100%; border-radius: 99px;
  transition: width .4s ease, background .4s;
  width: 0%;
}
.strength-label {
  font-size: .75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  min-width: 60px; text-align: right;
  color: var(--sub);
}

/* strength colors */
.str-0 { width: 0%; background: transparent; }
.str-1 { width: 20%; background: #ef4444; }
.str-2 { width: 40%; background: #f97316; }
.str-3 { width: 65%; background: #eab308; }
.str-4 { width: 85%; background: #22c55e; }
.str-5 { width: 100%; background: #16a34a; }

.str-lbl-1 { color: #ef4444; }
.str-lbl-2 { color: #f97316; }
.str-lbl-3 { color: #eab308; }
.str-lbl-4 { color: #22c55e; }
.str-lbl-5 { color: #16a34a; }

/* ── Length Section ── */
.length-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.length-header label { font-size: .78rem; font-weight: 800; color: var(--sub); text-transform: uppercase; letter-spacing: .05em; }
.length-val {
  font-size: 1rem; font-weight: 900; color: var(--blue);
  background: var(--blue-l); border: 1px solid var(--blue-p);
  border-radius: 8px; padding: 2px 12px; min-width: 40px; text-align: center;
}

input[type="range"] {
  width: 100%; height: 6px; border-radius: 99px;
  background: var(--border); border: none; outline: none;
  cursor: pointer; accent-color: var(--blue); padding: 0;
  margin-bottom: 14px;
}

/* Quick length buttons */
.quick-lengths {
  display: flex; gap: 7px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.ql-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: var(--bg); color: var(--sub);
  font-size: .78rem; font-weight: 700;
  font-family: var(--font); cursor: pointer;
  transition: all .15s;
}
.ql-btn:hover { border-color: var(--blue-p); color: var(--blue); background: var(--blue-l); }
.ql-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Options Grid ── */
.options-label { font-size: .78rem; font-weight: 800; color: var(--sub); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }

.options-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 22px;
}
@media (max-width: 480px) { .options-grid { grid-template-columns: 1fr; } }

.opt-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 13px 16px;
  cursor: pointer; transition: all .15s; user-select: none;
}
.opt-card:hover { border-color: var(--blue-p); background: var(--blue-l); }
.opt-card.active { border-color: var(--blue); background: var(--blue-l); }

.opt-left { display: flex; flex-direction: column; gap: 3px; }
.opt-name { font-size: .84rem; font-weight: 700; color: var(--text); }
.opt-sample { font-size: .7rem; font-family: 'JetBrains Mono', monospace; color: var(--sub); font-weight: 400; }

/* Toggle switch */
.toggle {
  width: 36px; height: 20px; border-radius: 99px;
  background: var(--border); position: relative;
  transition: background .2s; flex-shrink: 0;
}
.toggle::after {
  content: ''; position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.opt-card.active .toggle { background: var(--blue); }
.opt-card.active .toggle::after { transform: translateX(16px); }

/* ── Exclude chars ── */
.exclude-row { margin-bottom: 22px; }
.exclude-row label { font-size: .78rem; font-weight: 800; color: var(--sub); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 8px; }
.exclude-row input {
  width: 100%; box-sizing: border-box;
  padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: .86rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text); background: var(--bg);
  transition: border-color .15s;
}
.exclude-row input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* ── Quantity ── */
.qty-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.qty-row label { font-size: .78rem; font-weight: 800; color: var(--sub); text-transform: uppercase; letter-spacing: .05em; }
.qty-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s; font-family: var(--font);
}
.qty-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }
.qty-val { font-size: .9rem; font-weight: 800; color: var(--text); min-width: 24px; text-align: center; }

/* ── Bulk output ── */
.bulk-output {
  display: none;
  background: #0f172a; border: 2px solid #1e293b;
  border-radius: 14px; padding: 16px 18px;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .84rem; color: #94a3b8;
  line-height: 2; max-height: 240px;
  overflow-y: auto;
  word-break: break-all;
}
.bulk-output.show { display: block; }
.bulk-output span { display: block; color: #e2e8f0; font-weight: 700; padding: 2px 0; border-bottom: 1px solid #1e293b; }
.bulk-output span:last-child { border-bottom: none; }
.bulk-output .pwd-num { color: #475569; font-weight: 400; margin-right: 10px; }

/* ── Buttons ── */
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Sidebar info boxes ── */
.info-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 20px;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
  margin-bottom: 14px;
}
.info-box h3 { font-size: .88rem; font-weight: 800; margin-bottom: 10px; }
.info-box ul { list-style: none; padding: 0; }
.info-box li {
  display: flex; gap: 7px; align-items: flex-start;
  font-size: .8rem; color: var(--sub); line-height: 1.6;
  padding: 5px 0; border-bottom: 1px solid #f3f4f6;
}
.info-box li:last-child { border-bottom: none; }
.info-box .blt { color: var(--blue); font-weight: 900; flex-shrink: 0; }

/* ── Password coloring by type ── */
.char-upper { color: #60a5fa; }
.char-lower { color: #e2e8f0; }
.char-num   { color: #34d399; }
.char-sym   { color: #f87171; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; font-size: .87rem; font-weight: 700; color: var(--text); background: #fff; gap: 12px; user-select: none; transition: background .15s; }
.faq-q:hover { background: var(--blue-l); }
.faq-icon { font-size: .65rem; color: var(--sub); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q { background: var(--blue-l); color: var(--blue); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 18px 14px; font-size: .84rem; color: var(--sub); line-height: 1.75; background: var(--blue-l); }
.faq-item.open .faq-a { display: block; }
