/* ============================================================
   Bogart Steals – utseende
   Mörkt scenljus, kraftig affischtypografi och ett glödande
   orange-rött som signalfärg.
   ============================================================ */
:root {
  --bg:        #0b0a0c;
  --bg-2:      #131115;
  --panel:     #1a171c;
  --line:      rgba(255, 255, 255, .09);
  --text:      #f3efe8;
  --muted:     #a59f98;
  --hot:       #ff4a1c;
  --hot-2:     #ffb323;
  --hot-glow:  rgba(255, 74, 28, .45);
  --ok:        #3ccf7a;
  --radius:    14px;
  --max:       1200px;
  --display:   "Anton", Impact, "Arial Narrow", sans-serif;
  --marker:    "Permanent Marker", "Comic Sans MS", cursive;
  --body:      "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Rubriker ---------- */
.kicker {
  font: 700 .8rem/1 var(--body);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--hot);
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 24px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1; margin: 0; text-transform: uppercase; }
h2 { font-size: clamp(2.6rem, 7vw, 5.2rem); padding-top: .14em; }
h3 { font-size: 1.6rem; }
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head p { max-width: 520px; margin: 14px 0 0; color: var(--muted); }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border: 2px solid var(--hot);
  background: var(--hot);
  color: #fff;
  font: 800 .9rem/1 var(--body);
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--hot-glow); }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.btn.ghost:hover { border-color: #fff; box-shadow: none; }
.btn.small { padding: 10px 18px; font-size: .75rem; }
.btn.danger { background: transparent; border-color: #c4392c; color: #ff8a7a; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* Redigeringsknappar syns bara inloggad */
.edit-only { display: none !important; }
body.editing .edit-only { display: inline-flex !important; }
.add-btn {
  border: 2px dashed rgba(255,179,35,.6); background: rgba(255,179,35,.07); color: var(--hot-2);
  padding: 12px 22px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .85rem; letter-spacing: .06em;
}
.add-btn:hover { background: rgba(255,179,35,.16); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(0,0,0,.6);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem; backdrop-filter: blur(6px);
}
.icon-btn:hover { border-color: var(--hot-2); color: var(--hot-2); }

/* ---------- Adminlist (inloggad) ---------- */
.adminbar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60; display: none; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  background: rgba(20,18,22,.92); border: 1px solid rgba(255,179,35,.4);
  border-radius: 999px; padding: 6px 8px 6px 18px; font-size: .85rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.6); backdrop-filter: blur(10px);
  max-width: calc(100% - 24px);
}
body.editing .adminbar { display: flex; }
.adminbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.adminbar button { background: none; border: 0; padding: 8px 12px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; }
.adminbar button:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Sidhuvud ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
  padding: 18px 0;
}
.site-header.scrolled { background: rgba(11,10,12,.88); backdrop-filter: blur(12px); border-color: var(--line); padding: 10px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font: 400 1.7rem/1 var(--display); letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.brand span { color: var(--hot); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; padding: 10px 12px; color: rgba(255,255,255,.8); border-radius: 8px; }
.nav a:hover { color: #fff; }
.nav a.cta { background: var(--hot); color: #fff; border-radius: 999px; padding: 11px 20px; margin-left: 8px; }
.nav a.cta:hover { box-shadow: 0 6px 24px var(--hot-glow); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; padding: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: center; gap: 10px;
    background: rgba(11,10,12,.98); transform: translateY(-105%); visibility: hidden;
    transition: transform .35s ease, visibility .35s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { font: 400 2rem/1.1 var(--display); letter-spacing: .04em; }
  .nav a.cta { margin: 16px 0 0; font-size: 1.4rem; padding: 16px 32px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 clamp(60px, 10vh, 110px); overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(255,74,28,.28), transparent 55%),
    linear-gradient(180deg, rgba(11,10,12,.55) 0%, rgba(11,10,12,.2) 35%, rgba(11,10,12,.85) 78%, var(--bg) 100%);
}
.hero-title {
  font-size: clamp(4.2rem, 17vw, 13rem); line-height: .86; padding-top: .08em; letter-spacing: -.005em;
  text-shadow: 0 6px 60px rgba(0,0,0,.5);
}
.hero-title .line2 { display: block; color: transparent; -webkit-text-stroke: 2px var(--text); }
.hero-tag { font: 400 clamp(1.4rem, 3.6vw, 2.4rem)/1.2 var(--marker); color: var(--hot-2); margin: 22px 0 6px; transform: rotate(-2deg); transform-origin: left; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 560px; color: rgba(255,255,255,.85); margin: 10px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.next-gig {
  position: absolute; right: max(20px, calc((100% - var(--max)) / 2)); bottom: clamp(60px, 10vh, 110px);
  background: rgba(15,13,16,.75); border: 1px solid var(--line); backdrop-filter: blur(10px);
  border-radius: var(--radius); padding: 18px 22px; max-width: 300px; text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.next-gig:hover { border-color: var(--hot); transform: translateY(-3px); }
.next-gig .lbl { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--hot); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.next-gig .lbl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--hot-glow); } 50% { box-shadow: 0 0 0 8px transparent; } }
.next-gig .when { font: 400 1.8rem/1.1 var(--display); text-transform: uppercase; margin-top: 8px; }
.next-gig .where { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .next-gig { position: static; margin: 36px auto 0; width: min(var(--max), 100% - 40px); max-width: none; } }

/* ---------- Rullande artistband ---------- */
.marquee { background: var(--hot); color: #140806; overflow: hidden; transform: rotate(-1.5deg); margin: -10px -20px 0; position: relative; z-index: 2; box-shadow: 0 10px 40px rgba(255,74,28,.25); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; padding: 14px 0; }
.marquee span { font: 400 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; padding: 0 22px; white-space: nowrap; }
.marquee span::after { content: "★"; margin-left: 44px; font-size: 1rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .hero-bg img { animation: none; } }

/* ---------- Spelschema ---------- */
.gigs { border-top: 1px solid var(--line); }
.gig {
  display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 28px;
  padding: 24px 8px; border-bottom: 1px solid var(--line); position: relative;
  transition: background .2s, padding .2s;
}
.gig:hover { background: linear-gradient(90deg, rgba(255,74,28,.09), transparent 70%); }
.gig-date { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); text-transform: uppercase; line-height: 1; }
.gig-date .d { font-size: 3.2rem; color: var(--text); }
.gig-date .m { font-size: 1.15rem; color: var(--hot); display: flex; flex-direction: column; gap: 2px; }
.gig-date .m small { font-family: var(--body); font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.gig-title { font: 400 1.7rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.gig-meta { color: var(--muted); font-size: .95rem; margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.gig-meta .city::before { content: "📍 "; }
.gig-note { display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hot-2); background: rgba(255,179,35,.1); border: 1px solid rgba(255,179,35,.35); padding: 4px 10px; border-radius: 6px; }
.gig-side { display: flex; align-items: center; gap: 10px; }
.tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.open { border-color: var(--hot); color: #fff; }
.gig.past { opacity: .45; }
.gig.past .gig-date .m { color: var(--muted); }
.gig.private .gig-title { color: rgba(255,255,255,.75); }
.gigs-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.gigs-empty { padding: 40px 8px; color: var(--muted); border-bottom: 1px solid var(--line); }
.linklike { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 0; }
.linklike:hover { color: #fff; }
@media (max-width: 680px) {
  .gig { grid-template-columns: 74px 1fr; gap: 16px; padding: 20px 4px; }
  .gig-date { flex-direction: column; gap: 2px; }
  .gig-date .d { font-size: 2.6rem; }
  .gig-side { grid-column: 2; }
  .gig-title { font-size: 1.35rem; }
}

/* ---------- Om bandet ---------- */
.about { background: var(--bg-2); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; filter: saturate(1.05) contrast(1.05); }
.about-img::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--hot); border-radius: var(--radius); z-index: -1; }
.about-img .stamp {
  position: absolute; left: -22px; bottom: 40px; transform: rotate(-8deg);
  background: var(--hot-2); color: #140806; font: 400 1.5rem/1 var(--marker);
  padding: 14px 20px; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.about p { color: rgba(243,239,232,.85); }
.about .lead { font-size: 1.3rem; color: var(--text); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 36px; }
.stat { background: var(--panel); padding: 22px 18px; }
.stat b { display: block; font: 400 2.6rem/1 var(--display); color: var(--hot); }
.stat span { font-size: .82rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips span { font-size: .82rem; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-img { max-width: 520px; } .about-img .stamp { left: 10px; } }

/* ---------- Video ---------- */
.videos { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.video { grid-column: span 4; position: relative; }
.video:first-child { grid-column: span 12; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame audio { position: absolute; left: 20px; right: 20px; bottom: 20px; width: calc(100% - 40px); }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s, transform .5s; }
.video-poster:hover img { opacity: .95; transform: scale(1.03); }
.video-poster .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%; background: var(--hot);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(255,74,28,.25), 0 10px 40px rgba(0,0,0,.6);
  transition: transform .2s;
}
.video-poster:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video-poster .play::after { content: ""; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.audio-bg { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,74,28,.35), transparent 60%), #120f13; display: flex; align-items: center; justify-content: center; font: 400 3rem/1 var(--display); color: rgba(255,255,255,.12); text-transform: uppercase; }
.video-cap { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-top: 12px; }
.video-cap h3 { font-size: 1.25rem; }
.video:first-child .video-cap h3 { font-size: 1.8rem; }
.video-cap p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.item-tools { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 860px) { .video { grid-column: span 6; } }
@media (max-width: 560px) { .video { grid-column: span 12; } }

/* ---------- Bilder ---------- */
.gallery { columns: 3 300px; column-gap: 14px; }
.photo { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--panel); }
.photo img { width: 100%; transition: transform .5s, filter .3s; }
.photo:hover img { transform: scale(1.04); filter: brightness(1.08); }
.photo figcaption {
  position: absolute; inset: auto 0 0; padding: 30px 14px 12px; font-size: .82rem;
  background: linear-gradient(transparent, rgba(0,0,0,.8)); opacity: 0; transition: opacity .3s;
}
.photo:hover figcaption { opacity: 1; }
.photo .item-tools { position: absolute; top: 10px; right: 10px; }
.gallery-more { text-align: center; margin-top: 30px; }

/* ---------- Låtar ---------- */
.songs-wrap { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.songs { columns: 3 260px; column-gap: 40px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.songs li { break-inside: avoid; padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; counter-increment: s; }
.songs li::before { content: counter(s, decimal-leading-zero); font: 400 .95rem/1 var(--display); color: var(--hot); min-width: 26px; }
.songs b { font-weight: 600; }
.songs i { font-style: normal; color: var(--muted); font-size: .9rem; }
.songs-note { margin-top: 28px; color: var(--muted); }

/* ---------- Omdömen ---------- */
.reviews { columns: 3 280px; column-gap: 18px; }
.review { break-inside: avoid; margin-bottom: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.review img { width: 100%; cursor: zoom-in; background: #fff; }
.review blockquote { margin: 0; padding: 26px 24px 22px; font-size: 1.05rem; }
.review blockquote::before { content: "“"; display: block; font: 400 4rem/.6 var(--display); color: var(--hot); margin-bottom: 8px; }
.review cite { display: block; margin-top: 12px; color: var(--muted); font-style: normal; font-size: .88rem; }
.review .item-tools { position: absolute; top: 10px; right: 10px; }

/* ---------- Boka ---------- */
.book { position: relative; overflow: hidden; isolation: isolate; }
.book-bg { position: absolute; inset: 0; z-index: -1; }
.book-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.3); }
.book-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 25%, rgba(11,10,12,.75)); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.book h2 .hl { color: var(--hot); }
.book-list { list-style: none; padding: 0; margin: 26px 0; }
.book-list li { padding: 10px 0 10px 34px; position: relative; }
.book-list li::before { content: "⚡"; position: absolute; left: 0; top: 9px; }
.contact-lines { display: grid; gap: 12px; margin-top: 30px; }
.contact-lines a { display: flex; align-items: center; gap: 14px; text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.contact-lines a span { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,74,28,.15); display: inline-flex; align-items: center; justify-content: center; }
.contact-lines a:hover { color: var(--hot-2); }
.form-card { background: rgba(26,23,28,.85); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 38px); backdrop-filter: blur(10px); }
.form-card h3 { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
input, textarea, select {
  color-scheme: dark;
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35); color: var(--text); font: inherit; font-size: 1rem;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255,74,28,.2); }
input[type=checkbox] { width: auto; accent-color: var(--hot); }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #ff8a7a; }
.help { font-size: .82rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Sidfot ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer .brand { color: var(--text); font-size: 2.2rem; }
.footer-tag { font-family: var(--marker); color: var(--hot-2); font-size: 1.1rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-links a, .footer-links button { color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; font-size: .9rem; }
.footer-links a:hover, .footer-links button:hover { color: #fff; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; width: min(620px, 100%); max-height: calc(100svh - 40px); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal.wide { width: min(860px, 100%); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal header h3 { font-size: 1.5rem; }
.modal header button { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal .content { padding: 22px 24px; overflow: auto; }
.modal footer { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.modal footer .right { display: flex; gap: 10px; margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.seg button { background: none; border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .9rem; }
.seg button.on { background: var(--hot); color: #fff; }
.preview-thumb { margin-top: 10px; max-height: 160px; border-radius: 8px; }
.progress { height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progress div { height: 100%; width: 0; background: var(--hot); transition: width .2s; }
table.users { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.users th, table.users td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.users th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
table.users td:last-child { text-align: right; white-space: nowrap; }
table.users select { width: auto; padding: 6px 8px; }

/* ---------- Ljusbord ---------- */
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(5,4,6,.95); display: flex; align-items: center; justify-content: center; animation: fade .2s; }
.lightbox img { max-width: calc(100% - 120px); max-height: calc(100svh - 120px); border-radius: 6px; box-shadow: 0 20px 80px rgba(0,0,0,.8); }
.lightbox .cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .9rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: var(--hot); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox img { max-width: 100%; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 60px; transform: none; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 200; background: #fff; color: #111; padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: fade .2s; }

/* ---------- Inflygning vid scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
