/* BulkBGRemover — styles. Clean, trustworthy photo-tool UI; blue primary, responsive. */

:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --green-500:#22c55e;
  --green-600:#16a34a;

  --ink-900: #0b1220;
  --ink-800: #111a2e;
  --ink-700: #1e293b;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --line:    #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --bg:      #f1f5f9;

  --radius:  14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 10px 20px -4px rgba(15,23,42,.10);
  --shadow-lg: 0 20px 40px -12px rgba(30,64,175,.22);

  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-800);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; color: var(--ink-900); }
a { color: var(--blue-600); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 4px 8px rgba(37,99,235,.35)); }
.brand-name { font-size: 1.22rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.02em; }
.brand-name strong { color: var(--blue-600); }
.header-nav { display: flex; align-items: center; gap: 10px; }
.badge-private {
  font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100);
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 54px 20px 26px; }
.hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.03em;
  margin: 0 0 14px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--blue-600), var(--blue-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 720px; margin: 0 auto; color: var(--ink-500); font-size: 1.08rem; }
.hero-sub strong { color: var(--ink-800); }
.hero-note {
  max-width: 620px; margin: 14px auto 0; font-size: .92rem; color: var(--ink-700);
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; padding: 9px 14px;
}
.hero-note strong { color: var(--blue-700); }

/* ---------- App panels ---------- */
.app { padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 22px;
}
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-head h2 { font-size: 1.15rem; margin: 0; }
.step-num {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--blue-600); color: #fff; font-weight: 700; font-size: .95rem;
  display: grid; place-items: center; box-shadow: 0 4px 10px rgba(37,99,235,.35);
}

/* ---------- Dropzone ---------- */
.dropzone {
  border: 2px dashed var(--blue-200, #bfdbfe); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--blue-50), #fff);
  padding: 40px 20px; text-align: center; cursor: pointer;
  transition: border-color .18s, background .18s, transform .06s;
  outline: none;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--blue-500); background: var(--blue-50); }
.dropzone.dragover { border-color: var(--blue-600); background: var(--blue-100); transform: scale(1.005); }
.dz-icon { color: var(--blue-600); }
.dz-title { font-size: 1.16rem; font-weight: 700; margin: 12px 0 4px; color: var(--ink-900); }
.dz-or { margin: 0 0 6px; color: var(--ink-500); }
.dz-or .link { color: var(--blue-600); font-weight: 600; text-decoration: underline; }
.dz-hint { margin: 6px 0 0; font-size: .82rem; color: var(--ink-500); }

/* ---------- Options ---------- */
.options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.option-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); margin: 0 0 12px; }

.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.swatch {
  aspect-ratio: 1; border-radius: 10px; border: 2px solid rgba(0,0,0,.08);
  cursor: pointer; position: relative; transition: transform .08s, box-shadow .12s;
  padding: 0;
}
.swatch:hover { transform: translateY(-2px); }
.swatch.selected { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue-600); border-color: transparent; }
.swatch.transparent {
  background-image:
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-color: #fff;
}
.swatch .swatch-check {
  position: absolute; inset: 0; display: none; place-items: center; color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
.swatch.selected .swatch-check { display: grid; }
.swatch.transparent .swatch-check { color: var(--ink-700); filter: none; }

.custom-color { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.custom-color-label { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-700); }
.custom-color-preview {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid rgba(0,0,0,.1);
  background: var(--blue-600); display: inline-block;
}
input[type="color"] {
  width: 40px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer;
}
.hex-input {
  width: 92px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9rem;
  padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; text-transform: uppercase;
}

.size-select, .custom-unit, #customUnit {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: .95rem; color: var(--ink-800); cursor: pointer;
}
.custom-size { margin-top: 12px; }
.cs-row { display: flex; gap: 8px; align-items: center; }
.cs-row label { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-600, #475569); }
.cs-row input[type="number"] { width: 74px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.cs-row #customUnit { width: auto; }
.cs-hint { font-size: .78rem; color: var(--ink-500); margin: 8px 0 0; }

.fit-toggle { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: .9rem; color: var(--ink-700); cursor: pointer; }
.fit-toggle input { width: 17px; height: 17px; accent-color: var(--blue-600); }

.format-row { display: flex; flex-direction: column; gap: 10px; }
.radio { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: .92rem; color: var(--ink-800); }
.radio input { margin-top: 3px; accent-color: var(--blue-600); }
.radio small { color: var(--ink-500); }
.option-note { font-size: .82rem; color: var(--ink-500); margin: 12px 0 0; }
.link-btn { background: none; border: none; color: var(--blue-600); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; font-size: inherit; }

/* ---------- Process ---------- */
.process-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  border: none; border-radius: 11px; font-weight: 650; font-size: .98rem; cursor: pointer;
  padding: 12px 20px; transition: transform .06s, box-shadow .15s, background .15s, opacity .15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.32); }
.btn-primary:hover:not(:disabled) { background: var(--blue-700); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-success { background: var(--green-600); color: #fff; box-shadow: 0 6px 16px rgba(22,163,74,.28); }
.btn-success:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--ink-500); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink-800); }
.btn-danger { background: transparent; color: #b91c1c; border: 1px solid #fca5a5; }
.btn-danger:hover:not(:disabled) { background: #fee2e2; color: #991b1b; }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }

.engine-status {
  display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 16px;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius);
}
.engine-status-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.engine-status-text strong { color: var(--ink-900); }
.engine-status-text span { font-size: .85rem; color: var(--ink-500); }
.spinner {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  border: 3px solid var(--blue-100); border-top-color: var(--blue-600);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 7px; background: var(--blue-100); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue-500), var(--blue-600)); border-radius: 999px; transition: width .25s; }

/* One-line reassurance under the process buttons. */
.process-note { font-size: .84rem; color: var(--ink-500); margin: 14px 0 0; }

/* Engine block flips to a calm green "ready" state (no spinner) once loaded. */
.engine-status.ready { background: #f0fdf4; border-color: #bbf7d0; }
.engine-status.ready .spinner { display: none; }
.engine-status.ready .engine-status-text strong { color: var(--green-600); }
#engineRetry { margin-top: 10px; align-self: flex-start; }

/* ---------- Results grid ---------- */
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.card-thumb {
  position: relative; aspect-ratio: 1; background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.checker {
  background-image:
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
.card-status {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.72); backdrop-filter: blur(2px); gap: 8px; flex-direction: column;
  font-size: .82rem; color: var(--ink-600, #475569); font-weight: 600; text-align: center; padding: 8px;
}
.card-status.hidden { display: none; }
.card-status .mini-spin {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--blue-100); border-top-color: var(--blue-600); animation: spin .8s linear infinite;
}
.card-status.error { background: rgba(254,242,242,.9); color: #b91c1c; }
.card-badge {
  position: absolute; top: 8px; left: 8px; font-size: .68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; background: rgba(15,23,42,.72); color: #fff; letter-spacing: .02em;
}
.card-body { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-name { font-size: .78rem; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-dl {
  flex: none; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100);
  border-radius: 8px; padding: 8px 14px; font-size: .8rem; font-weight: 700; cursor: pointer; text-decoration: none;
  min-height: 36px; display: inline-flex; align-items: center;
}
.card-dl:hover { background: var(--blue-100); }
/* Zoom cursor once a card is finished — its thumbnail opens the lightbox. */
.card.is-done .card-thumb { cursor: zoom-in; }

/* ---------- Info section ---------- */
.info { padding: 30px 20px 60px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.info h2 { font-size: 1.25rem; margin: 0 0 14px; }
.ticks, .steps-list { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ticks li { padding-left: 28px; position: relative; color: var(--ink-700); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  background: var(--green-500); color: #fff; border-radius: 50%; font-size: .72rem;
  display: grid; place-items: center; font-weight: 800;
}
.steps-list { counter-reset: s; }
.steps-list li { padding-left: 34px; position: relative; color: var(--ink-700); }
.steps-list li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; background: var(--blue-600); color: #fff; border-radius: 50%;
  font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { padding: 28px 20px; text-align: center; }
.footer-inner p { margin: 4px 0; color: var(--ink-700); }
.footer-fine { font-size: .82rem; color: var(--ink-500) !important; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink-900); color: #fff; padding: 11px 18px; border-radius: 10px;
  font-size: .9rem; box-shadow: var(--shadow-md); animation: pop .2s ease;
}
.toast.error { background: #b91c1c; }
.toast.success { background: var(--green-600); }

/* ---------- Nav link ---------- */
.nav-link {
  font-size: .9rem; font-weight: 600; color: var(--ink-700); text-decoration: none;
  padding: 6px 10px; border-radius: 8px;
}
.nav-link:hover { background: var(--surface-2); color: var(--blue-700); }

/* ---------- About ---------- */
.about { padding: 8px 20px 24px; }
.about-card { max-width: 820px; margin-inline: auto; }
.about-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.about-avatar {
  width: 54px; height: 54px; flex: none; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(37,99,235,.32);
}
.about-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.about-head h2 { font-size: 1.25rem; margin: 0; }
.about-role { margin: 2px 0 0; color: var(--ink-500); font-size: .95rem; }
.about-card p { color: var(--ink-700); margin: 0 0 12px; }
.about-card p:last-child { margin-bottom: 0; }

/* ---------- Footer admin link ---------- */
.footer-admin { color: var(--ink-500); text-decoration: none; }
.footer-admin:hover { color: var(--blue-600); text-decoration: underline; }

/* ---------- Modal (serial key) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(15,23,42,.55); backdrop-filter: blur(3px); padding: 20px;
  animation: fade .16s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: 100%; max-width: 440px; background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px 24px 22px;
  animation: pop .2s ease;
}
.modal-close {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  font-size: 1.6rem; line-height: 1; color: var(--ink-400); cursor: pointer; padding: 4px 8px;
}
.modal-close:hover { color: var(--ink-800); }
.modal-title { font-size: 1.25rem; margin: 0 0 8px; }
.modal-sub { font-size: .9rem; color: var(--ink-500); margin: 0 0 16px; }
.modal-sub strong { color: var(--ink-800); }
.modal-contact { display: block; margin-top: 6px; }
/* Amber heads-up: the key binds to this device/browser. */
.modal-note {
  font-size: .82rem; line-height: 1.5; margin: 0 0 16px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  padding: 9px 12px; color: #78350f;
}
.modal-note strong { color: #92400e; }
.key-input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.05rem;
  text-align: center; letter-spacing: .06em; text-transform: uppercase;
}
.key-input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.form-error { color: #b91c1c; font-size: .85rem; margin: 10px 0 0; }

/* ---------- Admin panel ---------- */
.admin-wrap { padding-top: 28px; padding-bottom: 60px; display: flex; flex-direction: column; gap: 16px; }
.admin-title { font-size: 1.5rem; margin: 0; }
.warn-panel { border-color: #fde68a; background: #fffbeb; }
.warn-panel h2 { font-size: 1.1rem; margin: 0 0 6px; color: #92400e; }
.warn-panel p { margin: 0; color: #92400e; font-size: .92rem; }
.admin-form { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.admin-form .btn { align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-700); width: 100%; }
.field input, .field select {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .95rem;
  font-weight: 400; background: #fff; color: var(--ink-800);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85rem; }
.muted { color: var(--ink-500); text-align: center; padding: 18px 0; }

.key-result { margin-top: 18px; padding: 16px; border: 1px solid var(--green-500); background: #f0fdf4; border-radius: var(--radius); }
.key-result-warn { margin: 0 0 10px; font-size: .85rem; color: #92400e; font-weight: 600; }
.key-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.key-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.2rem; font-weight: 700;
  letter-spacing: .05em; background: #fff; border: 1px dashed var(--green-600); color: var(--ink-900);
  padding: 8px 14px; border-radius: 10px; user-select: all;
}
.key-meta { margin: 12px 0 0; font-size: .88rem; color: var(--ink-600, #475569); }
.key-send { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.table-scroll { overflow-x: auto; margin-top: 4px; }
.keys-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
.keys-table th, .keys-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.keys-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.pill-on { background: #dcfce7; color: #15803d; }
.pill-off { background: #fee2e2; color: #b91c1c; }
.pill-warn { background: #fef3c7; color: #b45309; }
.pill-free { background: #e0e7ff; color: #4338ca; }
.pill + .pill { margin-left: 6px; }

/* Issued-keys: raw key + copy, and the per-row action buttons */
.key-cell { white-space: nowrap; }
.key-cell code { user-select: all; }
.key-cell .btn-sm { margin-left: 8px; }
.actions-cell { white-space: nowrap; }
.actions-cell .btn-sm { margin: 2px 4px 2px 0; }

/* Issued-keys toolbar: search + filter + refresh, plus expiry row tints */
.keys-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.keys-search { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; min-width: 200px; }
.keys-filter { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; background: #fff; }
.keys-search:focus, .keys-filter:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.keys-summary { margin: 10px 0 0; font-size: .82rem; color: var(--ink-500); }
.keys-summary:empty { display: none; }
.keys-table tr.row-soon td { background: #fffbeb; }
.keys-table tr.row-expired td { background: #fef2f2; color: var(--ink-400); }

/* ---------- Lightbox (zoom a finished result before paying) ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 210;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-img {
  max-width: min(92vw, 1100px); max-height: 86vh;
  width: auto; height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  background: #fff;
}
.lightbox-close {
  position: absolute; top: 18px; right: 20px;
  width: 46px; height: 46px; border-radius: 999px;
  border: none; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 1.7rem; line-height: 1;
  display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .28); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .options-grid { grid-template-columns: 1fr; gap: 26px; }
  .info-grid { grid-template-columns: 1fr; gap: 22px; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero { padding-top: 36px; }
  .badge-private { display: none; }
  .results { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
