
/* fonts.css */
/* Plus Jakarta Sans — lokalt (Google Fonts), SIL Open Font License 1.1 */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("resources/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("resources/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("resources/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("resources/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

/* base.css */
:root {
  --bg: #0a1828;
  --bg2: #0e2133;
  --card: #122636;
  --text: #e8ecef;
  --muted: #8aa0b0;
  --accent: #178582;
  --accent-mid: #1c9e94;
  --accent2: #0f6b66;
  --gold: #bfa181;
  --gold-soft: rgba(191, 161, 129, 0.35);
  --danger: #c97a72;
  --danger-text: #f0d4d0;
  --line: rgba(191, 161, 129, 0.22);
  --line-strong: rgba(191, 161, 129, 0.38);
  --line-subtle: rgba(191, 161, 129, 0.14);
  --surface: rgba(18, 38, 54, 0.78);
  --surface-elevated: rgba(22, 46, 64, 0.9);
  --input-bg: rgba(8, 22, 36, 0.82);
  --radius: 14px;
  --space: 1rem;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --tap: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
optgroup,
select,
textarea {
  font-family: var(--font);
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 1000px 520px at 50% -15%, rgba(23, 133, 130, 0.14), transparent 58%),
    radial-gradient(ellipse 720px 420px at 100% 25%, rgba(191, 161, 129, 0.06), transparent 52%),
    radial-gradient(ellipse 640px 380px at 0% 75%, rgba(23, 133, 130, 0.09), transparent 48%),
    var(--bg);
  color: var(--text);
}

body.gate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space);
}

.gateBox {
  width: min(440px, 100%);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: calc(var(--space) * 1.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

h1 {
  margin: 0 0 var(--space);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

label {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select,
textarea.textArea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
  color: var(--text);
  font-size: 1rem;
}

textarea.textArea {
  min-height: 220px;
  resize: vertical;
  font-size: 0.95rem;
}

.roField {
  margin: 0;
  padding: 0.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: var(--tap);
  padding: 0 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: rgba(191, 161, 129, 0.12);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-mid));
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line-strong);
}

.btn.danger {
  background: rgba(201, 122, 114, 0.14);
  border-color: rgba(201, 122, 114, 0.42);
  color: var(--danger-text);
}

.btn.link {
  background: transparent;
  border: none;
  color: var(--accent);
  min-height: auto;
  padding: 0.25rem 0.35rem;
}

.btn.icon {
  min-width: var(--tap);
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
}

.btnSm {
  min-height: 40px;
  font-size: 0.95rem;
}

.msg {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(23, 133, 130, 0.12);
  border: 1px solid rgba(23, 133, 130, 0.28);
}

.msg.warn {
  background: rgba(191, 161, 129, 0.1);
  border-color: rgba(191, 161, 129, 0.35);
  color: var(--text);
}

.hidden {
  display: none !important;
}

.checkRow {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 400;
  color: var(--text);
}

.boolBox {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
}

.btnRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

code {
  font-size: 0.9em;
  color: var(--gold);
}

/* app.css */
body.app {
  margin: 0;
}

.appFrame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.appHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 24, 40, 0.88);
  border-bottom: 1px solid var(--gold-soft);
  backdrop-filter: blur(10px);
}

.appBrand {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--gold);
}

#btnMenu {
  min-width: unset;
  width: 64px;
  min-width: 64px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menuIcon {
  width: 24px;
  height: 20px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.menuIconLine {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

#btnMenu[aria-expanded='true'] .menuIcon {
  gap: 0;
}

#btnMenu[aria-expanded='true'] .menuIconLine:nth-child(1) {
  transform: translateY(1.2px) rotate(45deg);
}

#btnMenu[aria-expanded='true'] .menuIconLine:nth-child(2) {
  transform: translateY(-1.2px) rotate(-45deg);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 88vw);
  background: rgba(10, 24, 40, 0.97);
  border-left: 1px solid var(--line);
  z-index: 50;
  padding: 4.5rem 0.85rem 1rem;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.45);
}

.drawer[hidden] {
  display: none !important;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 24, 0.62);
  z-index: 40;
}

.backdrop[hidden] {
  display: none !important;
}

.navList {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.navItem {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line-subtle);
  background: var(--surface);
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.navItem.danger {
  border-color: rgba(201, 122, 114, 0.4);
  color: var(--danger-text);
  margin-top: 0.75rem;
}

.main {
  flex: 1;
  padding: 0.85rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.mainEnter {
  animation: fadeIn 0.22s ease-out;
}

.mainLeave {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.viewTitle h1 {
  margin-bottom: 0.65rem;
  padding-bottom: 0;
  border-bottom: none;
}

.viewTitle--booking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: nowrap;
  margin-bottom: 0.65rem;
  padding-bottom: 0;
  border-bottom: none;
}

.viewTitle--booking h1 {
  margin: 0;
  padding: 0;
  border: none;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.viewTitle--booking .bookingTitleAction {
  flex-shrink: 0;
  align-self: center;
}

.subHead {
  margin-top: 1.25rem;
}

.bookingSticky {
  position: sticky;
  /* Litt høyere enn header slik at sticky ikke «klipper» mot headerkanten */
  top: 3.55rem;
  z-index: 25;
  margin: 0.5rem 0 0.85rem;
  padding: 0.65rem 0 0.65rem;
  background: linear-gradient(
    180deg,
    rgba(10, 24, 40, 0.97) 0%,
    rgba(10, 24, 40, 0.94) 55%,
    rgba(10, 24, 40, 0.82) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: none;
}

.bookingSticky .panel {
  margin-bottom: 0;
}

.bookingSticky .panel--bookingForm {
  margin: 0.35rem 0 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* Skjul kommende bookinger mens «Ny booking» er åpen — unngår at siden/lista fanger scroll */
.main.booking-form-open .bookingListSection {
  display: none;
}

@media (max-width: 720px) {
  .bookingSticky {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
    padding-top: 0.65rem;
    box-sizing: border-box;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

.card--bookingNew {
  animation: bookingCardNewPulse 2.8s ease-out forwards;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@keyframes bookingCardNewPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(191, 161, 129, 0.55), 0 0 28px rgba(23, 133, 130, 0.35);
    background: rgba(23, 133, 130, 0.14);
  }
  35% {
    box-shadow: 0 0 0 4px rgba(191, 161, 129, 0.2), 0 0 36px rgba(23, 133, 130, 0.25);
    background: rgba(23, 133, 130, 0.08);
  }
  100% {
    box-shadow: none;
    background: var(--surface);
    outline-color: transparent;
    outline-width: 0;
  }
}

.card.muted.card--bookingNew {
  animation: bookingCardNewPulseMuted 2.8s ease-out forwards;
}

@keyframes bookingCardNewPulseMuted {
  0% {
    box-shadow: 0 0 0 0 rgba(191, 161, 129, 0.35);
    filter: grayscale(1) brightness(1.08);
  }
  40% {
    box-shadow: 0 0 0 3px rgba(191, 161, 129, 0.15);
  }
  100% {
    box-shadow: none;
    filter: grayscale(1);
  }
}

.panel {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.cardList {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.card {
  padding: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.card.muted {
  opacity: 0.82;
  filter: grayscale(1);
  background: rgba(14, 17, 22, 0.82);
  border-color: rgba(88, 96, 106, 0.38);
  box-shadow: none;
}

.card.muted .cardTime {
  color: #8b949e;
}

.card.muted .cardTitle {
  color: #9aa3ad;
}

.card.muted .cardMeta {
  color: #6d7680;
}

.card.muted .badge {
  background: rgba(72, 78, 86, 0.45);
  border-color: rgba(95, 102, 112, 0.5);
  color: #c5ccd3;
}

.cardTime {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--accent);
}

.cardTitle {
  font-size: 1.1rem;
  font-weight: 600;
}

.cardMeta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.35rem 0 0.5rem;
}

.badge {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(201, 122, 114, 0.18);
  border: 1px solid rgba(201, 122, 114, 0.38);
}

.adminPersTabWrap {
  margin-top: 0.35rem;
}

.adminPersTabBar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.adminPersTabBar .adminPersTab.btn {
  flex: 1;
  min-width: 0;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

/* Ikke-valgt fane: grå flate, grønn tekst (vanlig knappestil + .primary på aktiv) */
.adminPersTabBar .adminPersTab.btn:not(.primary) {
  background: var(--input-bg);
  color: var(--accent);
  border-color: var(--line-strong);
}

.adminPersTabBar .adminPersTab.btn:not(.primary):hover {
  border-color: rgba(23, 133, 130, 0.42);
  background: rgba(8, 22, 36, 0.92);
}

.adminPersTabPanel {
  padding-top: 0.1rem;
}

.adminPersTabHint {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.adminPersListEmpty {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.twoCol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

@media (min-width: 720px) {
  .twoCol {
    grid-template-columns: 1fr 1fr;
  }
}

.persRow {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-subtle);
}

.persName {
  font-weight: 600;
}

.persAdminTag {
  margin-left: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  opacity: 0.9;
}

.persActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
}

.infoArticle .infoBody {
  line-height: 1.55;
}

.infoArticle .infoBody p {
  margin: 0.65rem 0;
}

/* —— Statistikk-dashboard —— */
.main:has(.statsDash) {
  max-width: 1100px;
}

.statsHead .statsSub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.statsDash {
  margin-top: 0.5rem;
}

.statsLoading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-weight: 500;
}

.statsLoadingShimmer {
  width: min(100%, 320px);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(23, 133, 130, 0.12) 0%,
    rgba(191, 161, 129, 0.4) 50%,
    rgba(23, 133, 130, 0.12) 100%
  );
  background-size: 200% 100%;
  animation: statsShimmer 1.2s ease-in-out infinite;
}

@keyframes statsShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.statsGrid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.statsHero {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  padding: 1.35rem 1.25rem;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  background: var(--surface);
}

.statsHeroGlow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 200deg at 50% 50%,
    rgba(23, 133, 130, 0.22),
    rgba(191, 161, 129, 0.14),
    rgba(15, 107, 102, 0.2),
    rgba(23, 133, 130, 0.22)
  );
  animation: statsSpin 14s linear infinite;
  opacity: 0.5;
}

@keyframes statsSpin {
  to {
    transform: rotate(360deg);
  }
}

.statsHeroInner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.statsHeroKicker {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.statsHeroNum {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  background: linear-gradient(135deg, #e8d4b8, var(--gold), #178582);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(23, 133, 130, 0.25));
}

.statsHeroHint {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.statsHeroHint strong {
  color: var(--text);
  font-weight: 600;
}

.statsTwoCol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .statsTwoCol {
    grid-template-columns: 1fr 1fr;
  }
}

.statsBlock {
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.statsBlockTitle {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.statsHeatRow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  padding-bottom: 0.25rem;
}

.statsHeatCell {
  min-width: 0;
  min-height: 52px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.15rem;
  border: 1px solid rgba(191, 161, 129, 0.12);
  background: linear-gradient(
    145deg,
    rgba(23, 133, 130, calc(0.14 + var(--glow, 0.3) * 0.5)),
    rgba(191, 161, 129, calc(0.08 + var(--glow, 0.3) * 0.32))
  );
  box-shadow: 0 0 calc(12px + var(--glow, 0.3) * 22px) rgba(23, 133, 130, calc(0.1 + var(--glow, 0.3) * 0.22));
  transform: scale(0.65) translateY(8px);
  opacity: 0;
  animation: statsCellIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes statsCellIn {
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.statsHeatLbl {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(232, 236, 239, 0.88);
}

.statsHeatVal {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

@media (min-width: 900px) {
  .statsHeatRow {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .statsHeatCell {
    flex: 1 1 0;
    min-width: 2.25rem;
  }
}

/* Døgnet: mobil = én rad per time (nedover), desktop = søyler side om side */
.statsBars--vert {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  min-height: unset;
  padding: 0.25rem 0 0;
  overflow-x: visible;
}

.statsBars--vert .statsBarWrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  flex: none;
  min-width: 0;
  height: auto;
}

.statsBars--vert .statsBarLbl {
  flex: 0 0 1.85rem;
  text-align: right;
  font-size: 0.72rem;
  order: -1;
}

.statsBars--vert .statsBarTrack {
  flex: 1;
  min-width: 0;
  min-height: 12px;
  height: 12px;
  max-height: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 6px;
}

.statsBars--vert .statsBarFill {
  width: 0;
  height: 10px;
  max-height: 10px;
  margin: 0 3px;
  align-self: center;
  border-radius: 5px;
  background: linear-gradient(90deg, #2db5aa, #178582);
  box-shadow: 0 0 10px rgba(23, 133, 130, 0.3);
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 900px) {
  .statsBars--vert {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.25rem;
    min-height: 200px;
  }

  .statsBars--vert .statsBarWrap {
    flex-direction: column;
    flex: 1 1 0;
    align-items: center;
    gap: 0.35rem;
    height: 200px;
  }

  .statsBars--vert .statsBarLbl {
    flex: none;
    order: 0;
    text-align: center;
    font-size: 0.62rem;
  }

  .statsBars--vert .statsBarTrack {
    flex: 1;
    width: 100%;
    min-height: 160px;
    height: auto;
    max-height: none;
    align-items: flex-end;
    justify-content: center;
    border-radius: 8px;
  }

  .statsBars--vert .statsBarFill {
    width: calc(100% - 4px);
    height: 0;
    max-height: none;
    margin: 0 2px 2px;
    border-radius: 6px 6px 4px 4px;
    background: linear-gradient(180deg, #2db5aa, #178582);
    box-shadow: 0 0 14px rgba(23, 133, 130, 0.35);
    transition: height 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.statsBarTrack {
  flex: 1;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 8px;
  background: rgba(8, 22, 36, 0.55);
  border: 1px solid var(--line-subtle);
  min-height: 160px;
}

.statsBarFill {
  width: calc(100% - 4px);
  margin: 0 2px 2px;
  height: 0;
  border-radius: 6px 6px 4px 4px;
  background: linear-gradient(180deg, #2db5aa, #178582);
  box-shadow: 0 0 14px rgba(23, 133, 130, 0.35);
  transition: height 0.85s cubic-bezier(0.22, 1, 0.36, 1), width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.statsBarLbl {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
}

.statsPodium {
  --podium-cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--podium-cols), minmax(0, 1fr));
  gap: 0.5rem;
  align-items: flex-end;
  padding: 0.5rem 0 0.25rem;
}

@media (max-width: 380px) {
  .statsPodium {
    gap: 0.35rem;
  }
}

.statsPodiumCard {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  text-align: center;
  padding: 0.55rem 0.3rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--input-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 5.5rem;
  transform: translateY(24px);
  opacity: 0;
  animation: statsPodiumIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Pall 2–1–3: ulik høyde (gull høyest i midten) */
.statsPodium--podium213 .statsPodiumCard--silver {
  min-height: 6rem;
}

.statsPodium--podium213 .statsPodiumCard--gold {
  min-height: 7.75rem;
  padding-bottom: 0.75rem;
}

.statsPodium--podium213 .statsPodiumCard--bronze {
  min-height: 5.25rem;
}

@keyframes statsPodiumIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.statsPodiumCard--first,
.statsPodiumCard--gold {
  border-color: rgba(191, 161, 129, 0.55);
  box-shadow: 0 0 22px rgba(191, 161, 129, 0.12);
}

.statsMedal {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.statsPodiumName {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  word-break: break-word;
}

.statsPodiumCount {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.statsPodiumNum {
  font-weight: 600;
  color: var(--accent);
  font-size: 1.05rem;
}

/* Litt mindre type bare på seierspallene (2–1–3) */
.statsPodium--podium213 .statsMedal {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.statsPodium--podium213 .statsPodiumName {
  font-size: 0.78rem;
  line-height: 1.2;
}

.statsPodium--podium213 .statsPodiumCount {
  margin-top: 0.25rem;
  font-size: 0.68rem;
}

.statsPodium--podium213 .statsPodiumNum {
  font-size: 0.82rem;
}

.statsEmpty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Kontakt-modal (booking) */
.contactModal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
}

.contactModal[hidden] {
  display: none !important;
}

.contactModalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 24, 0.72);
  cursor: pointer;
}

.contactModalBox {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  margin: 12vh auto 2rem;
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-elevated);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.contactModalHeading {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
}

.contactModalName {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.contactModalRow {
  margin: 0 0 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contactModalLabel {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contactModalValue {
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}

.contactModalValue:hover {
  text-decoration: underline;
}

.contactModalActions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.cardMeta .btn.link.bookerContact {
  display: inline-flex;
  margin-left: 0.2rem;
  padding: 0.08rem 0.3rem;
  vertical-align: baseline;
  font-size: inherit;
  font-weight: 500;
}


