/* ============================================================
   ANNONS-SAJTEN – designsystem
   Mörkt, modernt tema med rosa/violett accent.
   ============================================================ */

:root {
  --bg: #0e0a17;
  --bg-soft: #140e22;
  --panel: #191130;
  --card: #1d1435;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f4f0fd;
  --muted: #a99cc9;
  --pink: #ff5ca8;
  --violet: #8b5cf6;
  --grad: linear-gradient(135deg, #ff5ca8 0%, #8b5cf6 100%);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 14px 40px rgba(6, 3, 16, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(900px 420px at 0% 0%, rgba(255, 92, 168, 0.12), transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { width: min(1180px, 92vw); margin: 0 auto; }

/* ---------- Typografi ---------- */
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  border: 1px solid transparent;
  padding: .62em 1.25em;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  background: var(--panel);
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 92, 168, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(255, 92, 168, 0.5); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-danger { background: rgba(251, 113, 133, .14); color: #ffb3c0; border-color: rgba(251,113,133,.35); }
.btn-ok { background: rgba(52, 211, 153, .14); color: #86efac; border-color: rgba(52,211,153,.35); }
.btn-sm { padding: .4em .9em; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(14, 10, 23, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; letter-spacing: .2px; }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(255, 92, 168, .4);
}
.brand .logo-mark svg { width: 19px; height: 19px; color: #fff; }
.nav-links { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav-links a { padding: .45em .9em; border-radius: 999px; font-size: .93rem; color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.07); }

/* ---------- Hero ---------- */
.hero { padding: 4.2rem 0 2.6rem; text-align: center; position: relative; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; margin-bottom: .6em; }
.hero p.lede { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin: 0 auto 1.6em; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hero-meta {
  display: inline-flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center;
  color: var(--muted); font-size: .92rem; font-weight: 600;
}
.hero-meta b { color: var(--ink); }

/* ---------- Filterrad ---------- */
.filterbar {
  position: sticky; top: 61px; z-index: 40;
  background: rgba(14, 10, 23, .85);
  backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
  padding: .7rem 0;
  margin-bottom: 1.6rem;
}
.filterbar-inner { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }
.pill-row { display: flex; gap: .45rem; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: .42em 1em; border-radius: 999px; font-size: .88rem; font-weight: 600;
}
.pill:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.pill.active { background: var(--grad); color: #fff; border-color: transparent; }
.filter-select, .filter-search {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .48em 1.1em; font-size: .9rem; outline: none;
}
.filter-search { min-width: 200px; }
.filter-select:focus, .filter-search:focus { border-color: var(--violet); }

/* ---------- Annonsgrid & kort ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.2rem;
  padding-bottom: 3rem;
}
.ad-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,255,255,.16); }

.ad-media { position: relative; aspect-ratio: 4 / 4.6; background: #120c20; overflow: hidden; }
.ad-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ad-card:hover .ad-media img { transform: scale(1.04); }

/* Avatar-fallback (inget foto) */
.avatar-face {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--gc, #8b5cf6) 0%, rgba(139, 92, 246, .55) 55%, rgba(20, 12, 38, .9) 100%);
}
.avatar-face span {
  font-size: 4.4rem; font-weight: 800; color: rgba(255,255,255,.92);
  text-shadow: 0 6px 30px rgba(0,0,0,.35);
}

.badge-gender {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  padding: .28em .85em; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .3px;
  background: rgba(10, 6, 18, .65); backdrop-filter: blur(6px);
  color: #fff; border: 1px solid rgba(255,255,255,.18);
}
.badge-gender::before { content: "●"; margin-right: .45em; color: var(--gc, #ff5ca8); }

.feat-flag {
  position: absolute; top: .7rem; right: 3.6rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .35em;
  background: rgba(20,12,38,.7); backdrop-filter: blur(6px);
  border: 1px solid rgba(251,191,36,.45); color: #ffd97a;
  padding: .28em .8em; border-radius: 999px; font-size: .76rem; font-weight: 700;
}

.fav-btn {
  position: absolute; top: .65rem; right: .65rem; z-index: 3;
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(10,6,18,.6); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.16); color: #fff;
}
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.on { background: var(--grad); border-color: transparent; }

.ad-body { padding: .95rem 1rem .4rem; }
.ad-body h3 { font-size: 1.06rem; margin: 0; display: flex; align-items: baseline; gap: .4em; }
.ad-body h3 .age { color: var(--muted); font-weight: 700; }
.ad-city { display: flex; align-items: center; gap: .35em; color: var(--muted); font-size: .86rem; margin-top: .15rem; font-weight: 600; }
.ad-city svg { width: 14px; height: 14px; flex: none; }
.ad-text {
  color: #cfc6e6; font-size: .92rem; margin: .55rem 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.ad-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem 1rem 1rem; margin-top: auto; }
.ad-meta { color: var(--muted); font-size: .8rem; display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.ad-meta svg { width: 14px; height: 14px; }

/* Kön-färger */
.g-tjej        { --gc: #ff6fae; }
.g-killar      { --gc: #5aa9ff; }
.g-trans_tjej  { --gc: #c084fc; }
.g-trans_kill  { --gc: #2dd4bf; }
.g-nonbinna    { --gc: #fbbf24; }

/* ---------- Paginering ---------- */
.pagination { display: flex; gap: .4rem; justify-content: center; padding-bottom: 3.5rem; flex-wrap: wrap; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 .8em;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); font-weight: 700;
}
.page-btn:hover { background: rgba(255,255,255,.08); }
.page-btn.active { background: var(--grad); border-color: transparent; color: #fff; }
.page-btn[disabled] { opacity: .4; cursor: default; }

/* ---------- Tomt state / laddning ---------- */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state .big { font-size: 3rem; margin-bottom: .5rem; }
.spinner {
  width: 42px; height: 42px; margin: 3.5rem auto;
  border-radius: 999px; border: 3px solid var(--line); border-top-color: var(--pink);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Detaljsida ---------- */
.detail-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 1.6rem; padding-top: 2rem; }
.back-link { display: inline-flex; align-items: center; gap: .4em; color: var(--muted); font-weight: 600; margin-bottom: 1.2rem; }
.back-link:hover { color: var(--ink); }

.photo-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #120c20; aspect-ratio: 4/5; }
.photo-stage img, .photo-face { width: 100%; height: 100%; object-fit: cover; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 999px; border: none;
  background: rgba(10,6,18,.65); color: #fff; font-size: 1.3rem; backdrop-filter: blur(6px);
}
.carousel-nav:hover { background: rgba(255,92,168,.75); }
.carousel-prev { left: .7rem; }
.carousel-next { right: .7rem; }
.photo-count { position: absolute; bottom: .7rem; right: .7rem; z-index: 3; background: rgba(10,6,18,.7); padding: .25em .8em; border-radius: 999px; font-size: .8rem; font-weight: 700; }

.detail-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; align-self: start; position: sticky; top: 84px;
}
.detail-head h2 { font-size: 1.7rem; margin-bottom: .15em; }
.detail-sub { color: var(--muted); display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; font-weight: 600; font-size: .92rem; }
.detail-text { white-space: pre-line; margin: 1.1rem 0; color: #ddd4f2; }

.contact-box { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.contact-box h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: .8em; }
.contact-list { display: grid; gap: .55rem; }
.contact-item {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: .55em .9em; font-size: .93rem; font-weight: 600;
}
.contact-item a { color: #ffb3d2; }

/* ---------- Formulär ---------- */
.form-card { max-width: 780px; margin: 2.4rem auto 3.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field-full { grid-column: 1 / -1; }
label.f-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4em; }
label.f-label small { color: var(--muted); font-weight: 500; }
input[type="text"], input[type="number"], input[type="email"], select, textarea {
  width: 100%; background: var(--bg-soft); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: .72em 1em; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.22); }
textarea { resize: vertical; min-height: 130px; }
select option { background: var(--bg-soft); }

.gender-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; }
.gender-opt input { position: absolute; opacity: 0; pointer-events: none; }
.gender-opt span {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius-md);
  padding: .7em .6em; font-weight: 700; font-size: .92rem; cursor: pointer; transition: all .15s ease; text-align: center;
}
.gender-opt span::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--gc, #8b5cf6); flex: none; }
.gender-opt input:checked + span { border-color: var(--gc, var(--violet)); background: rgba(139,92,246,.16); box-shadow: 0 0 0 3px rgba(139,92,246,.15); }

.photo-drop {
  border: 2px dashed var(--line); border-radius: var(--radius-md);
  padding: 1.4rem; text-align: center; color: var(--muted); font-weight: 600; cursor: pointer; transition: all .15s ease;
}
.photo-drop:hover { border-color: var(--violet); background: rgba(139,92,246,.08); }
.photo-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: .8rem; }
.photo-prev-item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); }
.photo-prev-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove {
  position: absolute; top: .4rem; right: .4rem; z-index: 2;
  width: 30px; height: 30px; border-radius: 999px; border: none;
  background: rgba(10,6,18,.75); color: #fff; font-size: 1rem; line-height: 1;
}

.check-row { display: flex; gap: .6rem; align-items: flex-start; margin-top: .4rem; }
.check-row input { width: 20px; height: 20px; accent-color: var(--pink); margin-top: .15em; flex: none; }

.form-errors { background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.4); color: #ffc2cd; border-radius: var(--radius-md); padding: .8em 1em; margin-bottom: 1.2rem; font-size: .93rem; }
.form-errors ul { margin: .3em 0 0; padding-left: 1.2em; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 1.5rem; align-items: start; margin-bottom: 3.5rem; }
@media (max-width: 980px) { .form-layout { grid-template-columns: 1fr; } }

/* ---------- Framgångsskärm ---------- */
.success-screen { max-width: 560px; margin: 4.5rem auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 3rem 2rem; }
.success-icn { width: 84px; height: 84px; margin: 0 auto 1.4rem; border-radius: 999px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 12px 34px rgba(255,92,168,.45); }
.success-icn svg { width: 40px; height: 40px; color: #fff; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: .6rem; width: min(480px, 92vw); }
.toast {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  padding: .85em 1.2em; border-radius: var(--radius-md); font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow); animation: toast-in .25s ease;
}
.toast.ok { border-color: rgba(52,211,153,.5); }
.toast.err { border-color: rgba(251,113,133,.55); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.modal-backdrop[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2.4rem 0 3rem; color: var(--muted); }
.footer-inner { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .92rem; }
.age-badge {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 2.5px solid #ff5c7a; color: #ff8aa3; font-weight: 800; font-size: .8rem; letter-spacing: .5px;
}

/* ============================================================
   ADMINPANEL
   ============================================================ */
.admin-shell { padding-bottom: 4rem; }
.login-card { max-width: 420px; margin: 6vh auto 3rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem; text-align: center; }
.login-card .logo-big { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 18px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(255,92,168,.4); }
.login-card .logo-big svg { width: 30px; height: 30px; color: #fff; }

.admin-topbar { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0 .9rem; flex-wrap: wrap; }
.admin-title { font-size: 1.25rem; font-weight: 800; }
.admin-tabs { display: flex; gap: .4rem; margin-left: auto; flex-wrap: wrap; }
.tab-btn { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: .5em 1.1em; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.tab-btn.active { background: var(--grad); color: #fff; border-color: transparent; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; }
.stat-card .num { font-size: 2.1rem; font-weight: 800; line-height: 1; margin-bottom: .35em; }
.stat-card .lbl { color: var(--muted); font-weight: 700; font-size: .9rem; }
.stat-card.c-pending .num { color: var(--warn); }
.stat-card.c-active .num { color: var(--ok); }
.stat-card.c-rejected .num { color: var(--danger); }

.dash-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: start; }
.panel-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; margin-bottom: 1rem; }
.panel-box h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 1em; }

.bar-row { display: grid; grid-template-columns: 110px 1fr 40px; gap: .7rem; align-items: center; margin-bottom: .55rem; font-size: .9rem; font-weight: 600; }
.bar-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--grad); }

.day-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; align-items: end; height: 120px; padding-top: .5rem; }
.day-col { display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; height: 100%; text-align: center; font-size: .72rem; color: var(--muted); font-weight: 600; }
.day-bar { background: linear-gradient(180deg, #ff5ca8, #8b5cf6); border-radius: 6px 6px 3px 3px; min-height: 4px; }

/* Tabell */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 860px; }
.admin-table th { text-align: left; padding: .8em 1em; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: .75em 1em; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.03); }

.ad-thumb { width: 46px; height: 56px; border-radius: 9px; object-fit: cover; background: #120c20; flex: none; }
.thumb-face { display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(160deg, var(--gc,#8b5cf6), rgba(139,92,246,.5)); }
.thumb-face.ad-thumb { font-size: 1.35rem; }

.status-badge { display: inline-flex; align-items: center; gap: .4em; padding: .28em .8em; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.st-active   { background: rgba(52,211,153,.14); color: #86efac; }
.st-pending  { background: rgba(251,191,36,.14); color: #ffd97a; }
.st-rejected { background: rgba(251,113,133,.14); color: #ffb3c0; }

.row-actions { display: flex; gap: .35rem; flex-wrap: wrap; white-space: nowrap; }
.icon-btn { border: 1px solid var(--line); background: transparent; color: var(--ink); width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn.ok { color: #86efac; border-color: rgba(52,211,153,.4); }
.icon-btn.warn { color: #ffd97a; border-color: rgba(251,191,36,.4); }
.icon-btn.danger { color: #ffb3c0; border-color: rgba(251,113,133,.4); }
.icon-btn.star.on { background: rgba(251,191,36,.2); color: #ffd97a; border-color: rgba(251,191,36,.55); }

.table-toolbar { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.count-pill { background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 700; padding: .3em .9em; border-radius: 999px; font-size: .85rem; }

/* Anmälan-post */
.report-item { display: flex; gap: .9rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1rem; margin-bottom: .8rem; }
.report-item.done { opacity: .55; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(6,3,16,.7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 1rem; }
.modal { width: min(560px, 94vw); max-height: 88vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.modal h3 { margin-bottom: 1em; }
.modal-actions { display: flex; gap: .7rem; justify-content: flex-end; margin-top: 1.4rem; flex-wrap: wrap; }

/* ---------- Responsivt ---------- */
@media (max-width: 900px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-card { position: static; }
  .dash-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.keep-mobile) { display: none; }
  .hero { padding-top: 3rem; }
  .photo-previews { grid-template-columns: repeat(2, 1fr); }
}
