/* ══════════════════════════════════════════════
   tool.css — FileZone Tool Page Styles
   All variables reference :root / body.day-mode via styles.css
   ══════════════════════════════════════════════ */

@keyframes spin    { to   { transform: rotate(360deg); } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideIn { from { opacity:0; transform:translateX(-12px); } to { opacity:1; transform:translateX(0); } }
@keyframes bounceY { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes popIn   { from { opacity:0; transform:scale(.85); } to { opacity:1; transform:scale(1); } }

/* ── BREADCRUMB ── */
.breadcrumb {
  position: relative; z-index: 2;
  margin-top: var(--nav-h);
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.breadcrumb .container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; font-size: .84rem; transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border2); margin: 0 .5rem; }
.breadcrumb span { color: var(--text); font-size: .84rem; }

/* ── CONTAINER ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 2rem; }

/* ── TOOL HERO ── */
.tool-hero { position: relative; z-index: 2; padding: 3.5rem 0 2.5rem; text-align: center; }
.tool-hero-inner { display: inline-flex; flex-direction: column; align-items: center; gap: .7rem; }
.tool-hero-icon {
  font-size: 3rem; width: 88px; height: 88px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 24px; display: grid; place-items: center; margin-bottom: .4rem;
  box-shadow: 0 0 48px rgba(0,229,255,.08);
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
.tool-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem,4vw,3rem);
  font-weight: 800; letter-spacing: -.02em; text-transform: uppercase;
  animation: fadeUp .5s .1s ease both;
}
.tool-hero p { color: var(--muted); font-size: 1rem; max-width: 500px; animation: fadeUp .5s .18s ease both; }

/* ── WORKSPACE ── */
.tool-workspace { padding: 0 0 5rem; position: relative; z-index: 2; }

/* ── DROP ZONE ── */
.drop-zone {
  border: 2px dashed var(--border2);
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 40%, rgba(0,255,136,.03), transparent 70%);
  min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; cursor: pointer;
  transition: all .25s; position: relative;
  margin-bottom: 1.5rem;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent); border-style: solid;
  background: rgba(0,255,136,.04);
  box-shadow: 0 0 40px rgba(0,255,136,.08);
}
.drop-inner { padding: 2.5rem; display: flex; flex-direction: column; align-items: center; }
.drop-icon  { font-size: 3.2rem; margin-bottom: .9rem; animation: bounceY 2.4s ease-in-out infinite; }
.drop-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .3rem; }
.drop-sub   { color: var(--muted); font-size: .88rem; }
.drop-hint  { color: var(--muted); font-size: .72rem; margin-top: .9rem; letter-spacing: .05em; opacity: .7; }

/* ── FILE LIST ── */
.file-list { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 1.5rem; }
.file-list-header { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.4rem; border-bottom: 1px solid var(--border); }
.file-list-header h3 { font-family: var(--font-head); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.btn-sm { padding: .35rem .9rem !important; font-size: .76rem !important; border-radius: 7px !important; }
.file-item { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.4rem; border-bottom: 1px solid var(--border); transition: background .15s; animation: slideIn .22s ease both; }
.file-item:last-child { border-bottom: none; }
.file-item:hover { background: var(--surface2); }
.file-thumb { width: 44px; height: 44px; border-radius: 9px; background: var(--surface2); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; overflow: hidden; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: .875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: .72rem; color: var(--muted); }
.file-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: .25rem .4rem; border-radius: 6px; transition: all .15s; line-height: 1; }
.file-remove:hover { background: rgba(244,63,94,.12); color: #fb7185; }

/* ══════════════════════════════════
   IMAGE SETTINGS PANEL
   ══════════════════════════════════ */
.img-settings-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  margin-bottom: 1.5rem;
  animation: fadeUp .35s ease both;
}
.settings-hdr {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.4rem 1.75rem;
  background: linear-gradient(90deg, rgba(0,255,136,.04), rgba(0,229,255,.04));
  border-bottom: 1px solid var(--border); font-size: 1.5rem;
}
.settings-hdr-title { font-family: var(--font-head); font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.settings-hdr-sub   { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.settings-block { padding: 1.5rem 1.75rem; border-bottom: 1px solid var(--border); }
.settings-block:last-child { border-bottom: none; }
.settings-block-label {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem;
}

/* FORMAT BUTTONS */
.fmt-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.fmt-btn {
  display: flex; align-items: center; gap: .45rem;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); padding: .6rem 1.2rem;
  border-radius: 100px; font-size: .84rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-ui); transition: all .2s;
}
.fmt-btn:hover  { border-color: var(--accent); color: var(--text); }
.fmt-btn.active { background: rgba(0,255,136,.1); border-color: var(--accent); color: var(--accent); }
.fmt-icon { font-size: 1rem; }

/* ASPECT LOCK */
.aspect-lock-label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--muted); cursor: pointer;
  background: var(--surface2); border: 1px solid var(--border);
  padding: .3rem .8rem; border-radius: 100px; transition: all .2s;
  text-transform: none; font-weight: 500; letter-spacing: 0;
}
.aspect-lock-label input { display: none; }
.aspect-lock-label:has(input:checked) { border-color: var(--accent); color: var(--accent); }

/* DIMENSIONS */
.dim-grid { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.dim-cell { display: flex; flex-direction: column; gap: .4rem; }
.dim-lbl  { font-size: .75rem; color: var(--muted); }
.dim-input-group { display: flex; }
.dim-num {
  background: var(--surface2); border: 1px solid var(--border);
  border-right: none; color: var(--text);
  padding: .6rem .85rem; border-radius: 9px 0 0 9px;
  font-size: .875rem; font-family: var(--font-ui);
  outline: none; transition: border-color .2s; width: 110px;
}
.dim-num:focus { border-color: var(--accent); }
.dim-unit {
  background: var(--surface2); border: 1px solid var(--border);
  border-left: 1px solid rgba(255,255,255,.06);
  color: var(--muted); padding: .6rem .5rem;
  border-radius: 0 9px 9px 0; font-size: .78rem;
  font-family: var(--font-ui); outline: none;
  cursor: pointer; min-width: 60px; transition: border-color .2s;
}
.dim-unit:focus { border-color: var(--accent); }
.dim-unit option { background: var(--surface2); color: var(--text); }
.dim-times { font-size: 1.1rem; color: var(--muted); padding-bottom: .55rem; }
.dim-cell-dpi { margin-left: auto; }
.current-dims-row {
  display: flex; align-items: center; gap: .5rem; font-size: .78rem;
  padding: .6rem .85rem;
  background: rgba(0,229,255,.04); border: 1px solid rgba(0,229,255,.1);
  border-radius: 9px; flex-wrap: wrap; margin-bottom: .9rem;
}
.cdim-label { color: var(--muted); }
.cdim-val   { font-weight: 600; color: var(--text); font-family: monospace; }
.cdim-out   { color: var(--accent); }

/* PRESETS */
.presets-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.presets-lbl { font-size: .72rem; color: var(--muted); margin-right: .25rem; }
.preset-pill {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); padding: .3rem .75rem; border-radius: 100px;
  font-size: .72rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-ui); transition: all .18s;
}
.preset-pill:hover { border-color: var(--accent); color: var(--accent); }

/* QUALITY SLIDER */
.quality-tag {
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.2);
  color: #34d399; padding: .2rem .75rem; border-radius: 100px;
  font-size: .72rem; font-weight: 700; transition: all .25s;
  text-transform: none; letter-spacing: 0;
}
.quality-track-row { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.ql-lo, .ql-hi { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.ql-range {
  flex: 1; height: 6px; -webkit-appearance: none; appearance: none;
  border-radius: 3px; outline: none; cursor: pointer;
  /* Background set by JS for cross-browser reliability */
  background: linear-gradient(90deg, var(--accent) 90%, rgba(255,255,255,.08) 90%);
  transition: background .08s;
}
.ql-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(0,255,136,.4);
  cursor: pointer; transition: transform .15s;
}
.ql-range::-webkit-slider-thumb:hover { transform: scale(1.25); }
.ql-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; border: none;
  background: var(--accent); cursor: pointer;
}
.quality-markers { position: relative; height: 16px; margin-bottom: .75rem; }
.qm { position: absolute; font-size: .65rem; color: var(--muted); transform: translateX(-50%); }
.est-size-row { font-size: .78rem; color: var(--muted); padding: .5rem .85rem; background: var(--surface2); border-radius: 8px; display: inline-block; }
#estSizeText span { color: var(--accent); font-weight: 600; }

/* LIVE PREVIEW */
.preview-pair { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.preview-box  { flex: 1; min-width: 200px; }
.preview-lbl  { font-size: .72rem; color: var(--muted); margin-bottom: .5rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.preview-img-wrap { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; min-height: 140px; display: grid; place-items: center; }
.preview-img-wrap img { max-width: 100%; max-height: 240px; object-fit: contain; display: block; }
.preview-meta  { font-size: .72rem; color: var(--muted); margin-top: .5rem; }
.preview-arrow { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; }

/* ── PDF / OTHER OPTIONS ── */
.tool-options {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem; animation: fadeUp .35s ease both;
}
.tool-options h4 { font-family: var(--font-head); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1.2rem; }
.opt-group { margin-bottom: 1.2rem; }
.opt-label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: .45rem; }
.opt-label span { color: var(--accent); font-weight: 700; }
input[type=range].std-range {
  width: 100%; height: 5px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,.08); border-radius: 3px; outline: none; cursor: pointer;
}
input[type=range].std-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent); cursor: pointer; transition: transform .15s;
}
input[type=range].std-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.opt-row   { display: flex; gap: .9rem; flex-wrap: wrap; align-items: flex-end; }
.opt-field { display: flex; flex-direction: column; gap: .4rem; flex: 1; min-width: 130px; }
.opt-field label { font-size: .78rem; color: var(--muted); }
.opt-field input, .opt-field select, .opt-field textarea {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); padding: .6rem .85rem; border-radius: 9px;
  font-size: .875rem; font-family: var(--font-ui); outline: none;
  transition: border-color .2s; width: 100%;
}
.opt-field input:focus, .opt-field select:focus, .opt-field textarea:focus { border-color: var(--accent); }
.opt-field select option { background: var(--surface2); color: var(--text); }
.opt-field textarea { resize: vertical; min-height: 90px; }
.opt-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .875rem; color: var(--muted); }
.opt-check input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.rotate-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.rotate-btn {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); padding: .55rem 1.15rem;
  border-radius: 9px; cursor: pointer; font-size: .875rem;
  font-family: var(--font-ui); transition: all .2s;
}
.rotate-btn:hover  { border-color: var(--accent); color: var(--text); }
.rotate-btn.active { background: rgba(0,255,136,.1); border-color: var(--accent); color: var(--accent); }

/* ── ACTION BAR ── */
.action-bar { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.btn-process { padding: .9rem 2.4rem; font-size: 1rem; border-radius: 12px; gap: .6rem; }

/* ── PROGRESS ── */
.process-progress {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.4rem 1.75rem;
  margin-bottom: 1.5rem; animation: fadeUp .3s ease;
}
.progress-lbl-row { display: flex; justify-content: space-between; font-size: .875rem; margin-bottom: .75rem; }
#progressPct { color: var(--accent); font-weight: 700; }
.pb-outer { height: 8px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.pb-inner { height: 100%; border-radius: 4px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s ease; box-shadow: 0 0 10px rgba(0,255,136,.3); }

/* ── RESULTS ── */
.results-section {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 16px; overflow: hidden; animation: fadeUp .4s ease both;
}
.results-hdr {
  display: flex; align-items: center; gap: .75rem;
  padding: .95rem 1.4rem; border-bottom: 1px solid var(--border);
  background: rgba(0,255,136,.04);
  font-family: var(--font-head); font-size: .9rem; font-weight: 700; text-transform: uppercase;
}
.results-done-icon { font-size: 1.2rem; }
.result-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1.4rem; border-bottom: 1px solid var(--border);
  animation: slideIn .28s ease both; transition: background .15s;
}
.result-item:last-child { border-bottom: none; }
.result-item:hover { background: var(--surface2); }
.result-thumb { width: 50px; height: 50px; border-radius: 9px; flex-shrink: 0; background: var(--surface2); overflow: hidden; display: grid; place-items: center; font-size: 1.4rem; }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.result-info  { flex: 1; min-width: 0; }
.result-name  { font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-meta  { font-size: .72rem; color: var(--muted); margin-top: .18rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.result-tag   { padding: .15rem .55rem; border-radius: 100px; font-size: .65rem; font-weight: 700; letter-spacing: .04em; }
.tag-saving { background: rgba(52,211,153,.12); color: #34d399; border: 1px solid rgba(52,211,153,.2); }
.tag-dims   { background: rgba(0,255,136,.08); color: var(--accent); border: 1px solid rgba(0,255,136,.15); }
.tag-fmt    { background: rgba(168,85,247,.1); color: #a78bfa; border: 1px solid rgba(168,85,247,.2); }
.btn-download {
  background: rgba(0,255,136,.1); border: 1px solid rgba(0,255,136,.2);
  color: var(--accent); padding: .45rem 1rem; border-radius: 8px;
  font-size: .78rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-ui); transition: all .2s;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: .35rem;
}
.btn-download:hover { background: rgba(0,255,136,.18); box-shadow: 0 0 16px rgba(0,255,136,.2); }

/* ── FILE LIST ── */
.file-list { margin-bottom: 2rem; animation: fadeUp .4s ease both; }
.file-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.file-list h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.file-item {
  display: flex; align-items: center; padding: 1rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: .85rem; transition: transform .2s, border-color .2s;
}
.file-item:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.1); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.file-thumb {
  width: 46px; height: 46px; background: var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-right: 1.15rem; flex-shrink: 0;
  overflow: hidden;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: .92rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .25rem; }
.file-size { font-size: .78rem; color: var(--muted); }
.file-remove {
  background: none; border: none; color: var(--muted); font-size: 1.2rem;
  cursor: pointer; margin-left: 1rem; transition: color .2s;
}
.file-remove:hover { color: var(--text); }

/* ── SPECIAL CARDS ── */
.special-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 2rem; animation: fadeUp .4s ease;
  margin-bottom: 1rem;
}
.special-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1.5rem; }

/* PASSWORD */
.pw-display {
  font-family: 'JetBrains Mono', monospace; font-size: 1.4rem; font-weight: 700;
  letter-spacing: .06em; padding: 1.1rem 1.5rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 1.2rem; color: var(--accent);
  word-break: break-all; min-height: 68px; transition: all .2s;
}
.strength-track { display: flex; gap: 4px; margin-bottom: .5rem; max-width: 320px; margin-left: auto; margin-right: auto; }
.strength-seg   { height: 5px; flex: 1; border-radius: 3px; background: rgba(255,255,255,.08); transition: background .3s; }
.strength-lbl   { font-size: .75rem; margin-bottom: 1.2rem; text-align: center; }

/* BARCODE */
.barcode-wrap { background: #fff; padding: 1.5rem 2rem; border-radius: 12px; display: inline-block; border: 1px solid rgba(255,255,255,.1); min-width: 200px; min-height: 80px; }
#bcSvg { display: block; max-width: 100%; }

/* COLOR PALETTE */
.color-palette { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1rem; }
.color-swatch  { width: 68px; text-align: center; cursor: pointer; transition: transform .15s; }
.color-swatch:hover { transform: scale(1.1); }
.swatch-box    { width: 68px; height: 68px; border-radius: 12px; margin-bottom: .35rem; border: 1px solid rgba(255,255,255,.1); }
.swatch-hex    { font-size: .65rem; color: var(--muted); font-family: monospace; }

/* ── TOAST (tool page) ── */
#toastContainer { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; }
.toast {
  background: rgba(3,6,13,.97); backdrop-filter: blur(14px);
  padding: .7rem 1.5rem; border-radius: 100px;
  font-size: .875rem; font-family: var(--font-ui); font-weight: 500;
  pointer-events: all; animation: fadeUp .3s ease;
  max-width: 92vw; text-align: center;
}
.toast-success { border: 1px solid rgba(52,211,153,.4); color: #34d399; }
.toast-error   { border: 1px solid rgba(244,63,94,.4);  color: #fb7185; }
.toast-info    { border: 1px solid rgba(0,229,255,.35); color: var(--accent); }
.toast-warn    { border: 1px solid rgba(245,158,11,.4); color: var(--amber); }

/* ── RELATED TOOLS ── */
.related-tools { padding: 4rem 0; position: relative; z-index: 2; }
.related-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px,1fr)); gap: 1rem; }
.related-card  {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.1rem; text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: .8rem; transition: all .22s;
}
.related-card:hover { border-color: var(--border2); background: var(--surface2); transform: translateY(-2px); }
.rc-icon { font-size: 1.4rem; flex-shrink: 0; }
.rc-name { font-family: var(--font-head); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }

/* ── DAY MODE ADJUSTMENTS ── */
body.day-mode .drop-zone { border-color: rgba(0,0,0,.18); background: radial-gradient(ellipse at 50% 40%, rgba(22,163,74,.03), transparent 70%); }
body.day-mode .drop-zone:hover { border-color: var(--accent); background: rgba(22,163,74,.04); }
body.day-mode .img-settings-panel, body.day-mode .file-list, body.day-mode .tool-options,
body.day-mode .process-progress, body.day-mode .results-section, body.day-mode .special-card,
body.day-mode .related-card { background: var(--surface); border-color: var(--border); }
body.day-mode .file-item:hover, body.day-mode .result-item:hover { background: var(--surface2); }
body.day-mode .fmt-btn, body.day-mode .preset-pill, body.day-mode .rotate-btn,
body.day-mode .dim-num, body.day-mode .dim-unit, body.day-mode .opt-field input,
body.day-mode .opt-field select, body.day-mode .opt-field textarea { background: var(--surface2); border-color: var(--border); color: var(--text); }
body.day-mode .pw-display { background: var(--surface2); border-color: var(--border); }
body.day-mode .pb-outer { background: rgba(0,0,0,.06); }
body.day-mode .settings-hdr { background: rgba(22,163,74,.04); }
body.day-mode .current-dims-row { background: rgba(22,163,74,.04); border-color: rgba(22,163,74,.12); }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .dim-grid   { flex-direction: column; }
  .dim-times  { display: none; }
  .preview-pair  { flex-direction: column; }
  .preview-arrow { transform: rotate(90deg); }
  .fmt-row, .opt-row { flex-wrap: wrap; }
}

/* ── GREETING MODAL ── */
.greeting-overlay {
  position: fixed; inset: 0; background: rgba(3,6,13,.85); backdrop-filter: blur(8px);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .4s ease;
}
.greeting-overlay.show { opacity: 1; visibility: visible; }
.greeting-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 3rem 2.5rem; text-align: center;
  max-width: 440px; width: 90%; position: relative;
  transform: scale(.9) translateY(20px); opacity: 0; transition: all .4s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(0,255,136,.15);
}
.greeting-overlay.show .greeting-modal { transform: scale(1) translateY(0); opacity: 1; }
.greeting-icon { font-size: 3.5rem; margin-bottom: 1rem; animation: bounceY 2.5s ease-in-out infinite; }
.greeting-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; color: var(--text); margin-bottom: .6rem; }
.greeting-title span { color: var(--accent); }
.greeting-desc { color: var(--muted); font-size: .95rem; line-height: 1.6; margin-bottom: 2rem; }
.greeting-close { position: absolute; top: 1.25rem; right: 1.25rem; background: none; border: none; font-size: 1.5rem; color: var(--muted); cursor: pointer; transition: color .2s; }
.greeting-close:hover { color: var(--accent); }
body.day-mode .greeting-overlay { background: rgba(255,255,255,.85); }
body.day-mode .greeting-modal { background: var(--surface); box-shadow: 0 20px 60px rgba(0,0,0,.15); }

/* ══════════════════════════════════════════
   SEO LANDING PAGE CONTENT SECTION
   ══════════════════════════════════════════ */
.tool-seo-section {
  padding: 4rem 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
}
.tool-seo-section .container { max-width: 960px; margin: 0 auto; padding: 0 2rem; }

/* What is / Description */
.seo-desc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.seo-desc-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
}
.seo-section-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .65rem;
}
.seo-desc-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: .85rem;
}
.seo-desc-text {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
}

/* Feature Trust Grid */
.seo-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.seo-trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  transition: border-color .2s;
}
.seo-trust-card:hover { border-color: var(--border2); }
.seo-trust-icon {
  font-size: 1.6rem;
  margin-bottom: .65rem;
  display: block;
}
.seo-trust-title {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  margin-bottom: .35rem;
}
.seo-trust-desc {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.55;
}

/* How-to Steps */
.seo-howto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
}
.seo-steps-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: 1.15rem;
}
.seo-step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.seo-step-num {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.seo-step-title {
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
  margin-bottom: .2rem;
}
.seo-step-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* FAQ Accordion */
.seo-faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.seo-faq-header {
  padding: 1.5rem 2.25rem 0;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:first-of-type { border-top: none; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.15rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  transition: color .2s;
}
.faq-question:hover { color: var(--accent); }
.faq-arrow {
  font-size: .7rem;
  color: var(--accent);
  transition: transform .25s;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  padding: 0 2.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 2.25rem 1.25rem;
}

/* Day mode adjustments */
body.day-mode .seo-desc-card,
body.day-mode .seo-trust-card,
body.day-mode .seo-howto-card,
body.day-mode .seo-faq-card {
  background: var(--surface);
  border-color: var(--border);
}

@media (max-width: 640px) {
  .seo-trust-grid { grid-template-columns: 1fr 1fr; }
  .seo-desc-card, .seo-howto-card, .seo-faq-card { padding: 1.5rem 1.25rem; }
  .faq-question { padding: 1rem 1.25rem; }
  .faq-answer { padding: 0 1.25rem; }
  .faq-item.open .faq-answer { padding: 0 1.25rem 1rem; }
}
