/* Profilsiden (profile.js). Alt er avgrenset til .pf, så globale regler i style.css
 * (input{width:205px}, button{padding}, h1/h2 …) og den gamle .profile-*-stilen ikke treffer.
 * Nivåfargene er de samme som i chatten (community.css).
 */
.pf {
  --pf-card: #182025;
  --pf-sunk: #0f1417;
  --pf-line: rgba(255, 255, 255, .07);
  --pf-text: #e9f0f4;
  --pf-muted: #83939e;
  --pf-green: #4fd06b;
  --pf-gold: #f5c451;
  --pf-ease: cubic-bezier(.2, .8, .2, 1);
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start;
  padding: 8px 0 40px; color: var(--pf-text);
}
.pf [data-tier="1"] , .pf[data-tier="1"] { --tc: #9fb1bf; }
.pf [data-tier="2"] { --tc: #62d27c; }
.pf [data-tier="3"] { --tc: #62b8ff; }
.pf [data-tier="4"] { --tc: #b891ff; }
.pf [data-tier="5"] { --tc: #f5c451; }
.pf svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pf h1, .pf h2, .pf p { margin: 0; }
.pf button { font-family: inherit; }
.pf button:focus-visible, .pf a:focus-visible, .pf input:focus-visible { outline: 2px solid #83c8ff; outline-offset: 2px; }

.pf-eyebrow { display: block; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--pf-muted); }
.pf-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--tc, #9fb1bf) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc, #9fb1bf) 40%, transparent);
  color: color-mix(in srgb, var(--tc, #9fb1bf) 80%, #fff); font-size: 11.5px; font-weight: 750; white-space: nowrap;
}

/* ------------------------------------------------------------------ meny */
.pf-nav {
  position: sticky; top: calc(var(--header-h, 64px) + 16px);
  display: flex; flex-direction: column; gap: 6px; padding: 12px;
  border-radius: 18px; background: rgba(24, 32, 37, .72);
  box-shadow: inset 0 0 0 1px var(--pf-line), 0 20px 40px -30px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pf-me { display: flex; align-items: center; gap: 11px; padding: 6px 6px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--pf-line); }
.pf-me > div { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.pf-me b { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.pf-me-av, .pf-avatar {
  flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: var(--av); color: #fff; font-weight: 800;
}
.pf-me-av { width: 40px; height: 40px; font-size: 17px; }
.pf-me-av img, .pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-links { position: relative; display: flex; flex-direction: column; gap: 10px; }
.pf-group { display: flex; flex-direction: column; gap: 2px; }
.pf-group-title { padding: 8px 12px 4px; font-size: 10.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: #5f707b; }
.pf-link {
  position: relative; z-index: 1;
  width: 100%; height: 40px; padding: 0 12px; margin: 0;
  display: flex; align-items: center; gap: 11px;
  border: 0; border-radius: 11px; background: none;
  color: #9eadb8; font-size: 14px; font-weight: 600; text-align: left; text-decoration: none;
  transition: color .2s;
}
.pf-link:hover { background: none; color: #fff; }
.pf-link.active { color: #fff; }
.pf-link svg { width: 18px; height: 18px; flex: none; }
.pf-link.active svg { color: #7cc2ff; }
.pf-glow {
  position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0; opacity: 0;
  border-radius: 11px; pointer-events: none;
  background: linear-gradient(90deg, rgba(120, 190, 255, .2), rgba(71, 159, 235, .06));
  box-shadow: inset 0 0 0 1px rgba(140, 200, 255, .38), 0 0 18px -6px rgba(71, 159, 235, .8);
  transition: transform .5s var(--spring), height .3s ease, width .3s ease, opacity .2s;
}
.pf-glow.instant { transition: none; }
.pf-logout { margin-top: 6px; border-top: 1px solid var(--pf-line); border-radius: 0 0 11px 11px; padding-top: 2px; height: 44px; color: #8f9aa2; }
.pf-logout:hover { color: #ff8a8e; }

/* ------------------------------------------------------------------ innhold */
.pf-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pf-reveal { opacity: 0; transform: translateY(14px); }
.pf-reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--pf-ease) var(--d, 0ms), transform .7s var(--pf-ease) var(--d, 0ms); }

.pf-card, .pf-main .profile-block {
  position: relative; padding: 22px; margin: 0;
  border: 0; border-radius: 18px; background: var(--pf-card);
  box-shadow: inset 0 0 0 1px var(--pf-line);
}
.pf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pf-head h2, .pf-main .profile-block h2 { margin-top: 3px; font-size: 21px; font-weight: 780; letter-spacing: -.02em; color: #fff; }
.pf-more {
  flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 9px;
  background: rgba(255, 255, 255, .06); color: #cfdbe3; font-size: 12.5px; font-weight: 700;
}
.pf-more:hover { background: rgba(255, 255, 255, .11); color: #fff; }

/* Hero: spillerkortet */
.pf-hero {
  --tc: #9fb1bf;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); grid-template-rows: auto auto; gap: 22px 28px;
  padding: 28px; border-radius: 22px;
  background:
    radial-gradient(55% 120% at 0% 0%, color-mix(in srgb, var(--av) 26%, transparent), transparent 62%),
    radial-gradient(45% 90% at 100% 100%, color-mix(in srgb, var(--tc) 18%, transparent), transparent 70%),
    linear-gradient(135deg, #1a242a, #13191d);
  box-shadow: inset 0 0 0 1px var(--pf-line), 0 30px 60px -40px rgba(0, 0, 0, .9);
}
.pf-hero::after {   /* lysstripe som glir over kortet én gang */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .06) 50%, transparent 60%) 200% 0 / 250% 100% no-repeat;
}
.pf-hero.go::after { animation: pf-sweep 2.4s var(--pf-ease) .4s both; }
@keyframes pf-sweep { from { background-position: 200% 0; } to { background-position: -150% 0; } }
.pf-hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%); mask-image: linear-gradient(90deg, transparent 30%, #000 75%);
}
/* Brukerens egne beste treff driver sakte i bakgrunnen */
.pf-drift {
  position: absolute; width: 110px; height: 110px; object-fit: contain; opacity: .1;
  left: calc(44% + var(--i) * 6%); top: calc(4% + mod(var(--i) * 37, 70) * 1%);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .6)) saturate(.8);
  animation: pf-float calc(9s + var(--i) * 1.7s) ease-in-out calc(var(--i) * -2.3s) infinite alternate;
}
@supports not (top: mod(3, 2)) { .pf-drift:nth-child(odd) { top: 12%; } .pf-drift:nth-child(even) { top: 52%; } }
@keyframes pf-float { from { transform: translateY(-10px) rotate(-8deg); } to { transform: translateY(14px) rotate(7deg); } }

.pf-id { display: flex; align-items: center; gap: 22px; min-width: 0; }
.pf-ring { position: relative; flex: none; width: 132px; height: 132px; display: grid; place-items: center; }
.pf-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pf-ring circle { fill: none; stroke-width: 5; }
.pf-ring-track { stroke: rgba(255, 255, 255, .08); }
.pf-ring-bar {
  stroke: var(--tc); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tc) 70%, transparent));
  transition: stroke-dashoffset 1.6s var(--pf-ease) .25s;
}
.pf-hero.go .pf-ring-bar { stroke-dashoffset: calc(100 - var(--p)); }
.pf-avatar { width: 108px; height: 108px; font-size: 44px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8), inset 0 0 0 3px rgba(0, 0, 0, .25); }
.pf-ring-level {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  min-width: 34px; height: 24px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--tc); color: #0b0f12; font-size: 13px; font-weight: 850;
  box-shadow: 0 0 0 3px #161e23, 0 6px 16px -4px color-mix(in srgb, var(--tc) 80%, transparent);
}
.pf-id-text { min-width: 0; }
.pf-id-text h1 {
  margin: 4px 0 10px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 820; letter-spacing: -.035em; line-height: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--pf-muted); font-size: 13px; }
.pf-meta b { color: #cfdbe3; font-weight: 650; }
.pf-copy {
  height: 26px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 8px; background: rgba(255, 255, 255, .06);
  color: #aebbc4; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.pf-copy:hover { background: rgba(255, 255, 255, .11); color: #fff; }
.pf-copy svg { width: 13px; height: 13px; }

.pf-xp { grid-column: 1; min-width: 0; }
.pf-xp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pf-xp-top strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pf-xp-top small { color: var(--pf-muted); font-size: 13px; font-weight: 600; }
.pf-bar { position: relative; height: 10px; border-radius: 999px; background: var(--pf-sunk); box-shadow: inset 0 0 0 1px var(--pf-line); overflow: hidden; }
.pf-bar > span {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 60%, #1b2a33), var(--tc));
  box-shadow: 0 0 14px -2px color-mix(in srgb, var(--tc) 80%, transparent);
  transition: width 1.6s var(--pf-ease) .25s;
}
.pf-bar > span::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent) -100% 0 / 40% 100% no-repeat;
  animation: pf-shine 2.8s ease-in-out 2s infinite;
}
@keyframes pf-shine { 60%, 100% { background-position: 250% 0; } }
.pf-hero.go .pf-bar > span { width: var(--w); }
.pf-xp p { margin-top: 10px; color: var(--pf-muted); font-size: 12.5px; line-height: 1.5; }

.pf-next {
  grid-column: 2; grid-row: 1 / span 2; align-self: stretch;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: 18px; border-radius: 16px; text-decoration: none; color: inherit; overflow: hidden;
  background: rgba(10, 14, 17, .45); box-shadow: inset 0 0 0 1px var(--pf-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .35s var(--spring), box-shadow .3s;
}
.pf-next:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(245, 196, 81, .45), 0 18px 34px -18px rgba(245, 196, 81, .55); }
.pf-next-art { display: grid; place-items: center; height: 150px; }
.pf-next-art img { height: 150px; width: auto; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)); transition: transform .4s var(--spring); }
.pf-next-art .reward-pack-art {   /* belønningspakken i ekte, mindre størrelse (ikke bare skalert) */
  width: 104px; height: 146px; max-width: none; margin: 0; padding: 9px 6px; border-width: 3px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)); transition: transform .4s var(--spring);
}
.pf-next-art .reward-pack-art > strong { font-size: 44px; letter-spacing: -12px; padding-right: 12px; }
.pf-next-art .reward-pack-art > b { font-size: 12px; letter-spacing: 1.5px; }
.pf-next-art .reward-pack-art > span { font-size: 7px; letter-spacing: 1.5px; }
.pf-next-art .reward-pack-art > small { font-size: 6px; }
.pf-next:hover .pf-next-art img { transform: rotate(-4deg) scale(1.05); }
.pf-next:hover .pf-next-art .reward-pack-art { transform: rotate(-4deg) scale(1.05); }
.pf-next-done svg { width: 64px; height: 64px; color: var(--pf-gold); }
.pf-next-text { display: grid; gap: 3px; }
.pf-next-text b { font-size: 16px; font-weight: 780; }
.pf-next-text small { color: var(--pf-gold); font-size: 12.5px; font-weight: 700; }
.pf-next-go { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; color: #8f9ca6; transition: transform .3s var(--spring), color .2s; }
.pf-next:hover .pf-next-go { transform: translate(2px, -2px); color: #fff; }

/* Admin-kort i oversikten, bare for administratorer */
.pf-admin {
  display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 18px;
  background: radial-gradient(80% 140% at 0% 50%, rgba(245, 196, 81, .16), transparent 65%), var(--pf-card);
  box-shadow: inset 0 0 0 1px rgba(245, 196, 81, .28);
}
.pf-admin > div { min-width: 0; flex: 1; }
.pf-admin h2 { margin: 2px 0 4px; font-size: 18px; font-weight: 780; }
.pf-admin p { color: var(--pf-muted); font-size: 13px; }
.pf-admin-emblem { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(245, 196, 81, .15); color: var(--pf-gold); }
.pf-admin-emblem svg { width: 24px; height: 24px; }
.pf-admin-link.active svg { color: var(--pf-gold); }
@media (max-width: 620px) { .pf-admin { flex-wrap: wrap; } }

/* Tall */
.pf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pf-stat {
  position: relative; overflow: hidden; min-width: 0;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px;
  padding: 18px; border-radius: 16px;
  background: radial-gradient(90% 90% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 65%), var(--pf-card);
  box-shadow: inset 0 0 0 1px var(--pf-line);
  transition: transform .35s var(--spring), box-shadow .3s;
}
.pf-stat:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 16px 30px -20px color-mix(in srgb, var(--c) 80%, transparent); }
.pf-stat > svg, .pf-mini-ring { grid-row: 1 / span 3; align-self: start; }
.pf-stat-ic {
  width: 44px; height: 44px; padding: 11px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c);
}
.pf-stat > span:not(.pf-mini-ring) { font-size: 12.5px; color: var(--pf-muted); font-weight: 600; }
.pf-stat strong { font-size: 24px; font-weight: 820; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-stat small { font-size: 11.5px; color: var(--pf-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-mini-ring { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--c); }
.pf-mini-ring svg:first-child { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); }
.pf-mini-ring svg:first-child circle { fill: none; stroke-width: 3.5; stroke: rgba(255, 255, 255, .08); }
.pf-mini-ring .pf-mini-bar { stroke: var(--c) !important; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s var(--pf-ease) .4s; }
.pf-stats.in .pf-mini-bar { stroke-dashoffset: calc(100 - var(--p)); }
.pf-mini-ring > svg:last-child { width: 18px; height: 18px; }

/* Beste treff */
.pf-trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-flow: dense; gap: 12px; }
.pf-trophy {
  position: relative; min-width: 0; padding: 14px 12px 12px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  border-radius: 14px; overflow: hidden;
  background: radial-gradient(80% 60% at 50% 100%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), #1c252b;
  box-shadow: inset 0 0 0 1px var(--pf-line);
  transition: transform .35s var(--spring), box-shadow .3s;
}
.pf-trophy:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent), 0 18px 34px -20px color-mix(in srgb, var(--c) 90%, transparent); }
.pf-trophy.first { grid-column: span 2; grid-row: span 2; justify-content: center; padding: 22px; }
.pf-trophy.first::before {   /* spotlight på det største treffet */
  content: ''; position: absolute; left: 50%; top: -30%; width: 70%; height: 90%; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), transparent);
  pointer-events: none;
}
.pf-rank {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 2px 7px; border-radius: 7px; background: rgba(0, 0, 0, .35);
  font-size: 11px; font-weight: 800; color: #cfdbe3;
}
.pf-trophy.first .pf-rank { background: linear-gradient(180deg, #ffe08a, #e9a93a); color: #2b1d05; }
.pf-trophy-art { position: relative; display: grid; place-items: center; width: 100%; height: 96px; margin-bottom: 4px; }
.pf-trophy.first .pf-trophy-art { height: 190px; }
.pf-trophy.first .pf-trophy-art .product-art { height: 190px; }
/* Fast høyde: arena.css gir .product-art opptil 135px, og prosent virker ikke i et grid-område. */
.pf-trophy-art .product-art { width: 100%; height: 96px; max-width: 100%; max-height: none; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); transition: transform .4s var(--spring); }
.pf-trophy:hover .product-art { transform: scale(1.07) rotate(-3deg); }
.pf-trophy-art .product-emoji { font-size: 46px; }
.pf-trophy.first .product-emoji { font-size: 80px; }
.pf-trophy b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 650; color: #c7d4dc; }
.pf-trophy strong { font-size: 16px; font-weight: 820; color: var(--pf-green); font-variant-numeric: tabular-nums; }
.pf-trophy.first b { font-size: 15px; }
.pf-trophy.first strong { font-size: 26px; }
.pf-trophy.gold strong { color: var(--pf-gold); }
.pf-trophy small { font-size: 11px; color: #62717b; }

/* Snarveier og aktivitet */
.pf-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.pf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-action {
  position: relative; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px; text-decoration: none; color: inherit;
  background: #1c252b; box-shadow: inset 0 0 0 1px var(--pf-line);
  transition: transform .35s var(--spring), box-shadow .3s, background .3s;
}
.pf-action:hover { transform: translateY(-2px); background: radial-gradient(90% 120% at 0% 50%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), #1e282e; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.pf-action > svg:first-child { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 11px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.pf-action > span { min-width: 0; display: grid; gap: 2px; }
.pf-action b { font-size: 13.5px; }
.pf-action small { font-size: 11.5px; color: var(--pf-muted); line-height: 1.35; }
.pf-go { position: absolute; top: 10px; right: 10px; width: 14px; height: 14px; color: #5f707b; transition: transform .3s var(--spring), color .2s; }
.pf-action:hover .pf-go { transform: translate(2px, -2px); color: #fff; }
.pf-badge {
  position: absolute; top: 8px; left: 38px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--pf-gold); color: #2b1d05; font-style: normal; font-size: 10.5px; font-weight: 850; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px #1c252b; animation: pf-pop 2s var(--spring) infinite;
}
@keyframes pf-pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.18); } }

.pf-feed, .pf-tx { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.pf-feed li, .pf-tx li, .pf-session {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px;
  transition: background .2s;
}
.pf-feed li:hover, .pf-tx li:hover, .pf-session:hover { background: rgba(255, 255, 255, .03); }
.pf-feed-ic {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(255, 255, 255, .05); color: #9fb1bf;
}
.pf-feed-ic svg { width: 17px; height: 17px; }
.pf-feed-text { min-width: 0; flex: 1; display: grid; gap: 1px; }
.pf-feed-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.pf-feed-text small { font-size: 11.5px; color: #66757f; }
.pf-feed strong { flex: none; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }

.pf-tx-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 18px; font-weight: 800; }
.pf-tx li.in .pf-tx-ic { background: rgba(79, 208, 107, .13); color: var(--pf-green); }
.pf-tx li.out .pf-tx-ic { background: rgba(255, 255, 255, .05); color: #9fb1bf; }
.pf-tx-amt { flex: none; display: grid; justify-items: end; gap: 1px; }
.pf-tx-amt strong { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pf-tx li.in .pf-tx-amt strong { color: var(--pf-green); }
.pf-tx-amt small { font-size: 11px; color: #66757f; font-variant-numeric: tabular-nums; }

.pf-empty { display: grid; justify-items: center; gap: 12px; padding: 34px 16px; text-align: center; color: var(--pf-muted); }
.pf-empty > svg { width: 38px; height: 38px; color: #4c5d68; }
.pf-empty p { max-width: 340px; font-size: 13.5px; line-height: 1.5; }
.pf-empty.small { padding: 22px 10px; }

/* ------------------------------------------------------------------ skjemaer */
.pf-lead { color: var(--pf-muted); font-size: 13.5px; line-height: 1.55; margin-bottom: 18px !important; max-width: 620px; }
.pf-form { display: grid; gap: 16px; max-width: 560px; }
.pf-form > label, .pf-colors { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pf-form > label > span, .pf-colors legend { font-size: 12.5px; font-weight: 700; color: #b6c4cd; padding: 0; }
.pf-form input:not([type="color"]):not([type="file"]) {
  width: 100%; height: 46px; padding: 0 14px; margin: 0;
  border: 0; border-radius: 12px; background: var(--pf-sunk); color: #fff; font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--pf-line); transition: box-shadow .2s;
}
.pf-form input:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(120, 190, 255, .6), 0 0 0 3px rgba(71, 159, 235, .15); }
.pf-form input[readonly] { color: #8a99a3; }
.pf-form small { font-size: 11.5px; color: #66757f; line-height: 1.45; }
.pf-colors > div { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-swatch {
  position: relative; width: 32px; height: 32px; padding: 0; margin: 0;
  border: 0; border-radius: 50%; background: var(--s); cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); transition: transform .25s var(--spring), box-shadow .2s;
}
.pf-swatch:hover { transform: scale(1.12); }
.pf-swatch.on { box-shadow: 0 0 0 2px #182025, 0 0 0 4px #fff; }
.pf-custom { display: grid; place-items: center; overflow: hidden; background: conic-gradient(#e5484d, #f5c451, #4fd06b, #2bb3c0, #479feb, #8f6ae6, #d05ca6, #e5484d); }
.pf-custom input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; opacity: 0; cursor: pointer; }
.pf-form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.pf-form-foot .form-feedback { margin: 0; font-size: 13px; color: var(--pf-green); }
.pf-btn, .pf-btn-primary {
  height: 42px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 11px; font-size: 13.5px; font-weight: 750; text-decoration: none; cursor: pointer;
  transition: transform .15s, filter .2s, background .2s;
}
.pf-btn { background: rgba(255, 255, 255, .07); color: #e3ebf0; }
.pf-btn:hover { background: rgba(255, 255, 255, .12); }
.pf-btn svg { width: 16px; height: 16px; }
.pf-btn-primary {
  background: linear-gradient(180deg, #5aaaf0, #3a8fdc); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px -10px rgba(71, 159, 235, 1);
}
.pf-btn-primary:hover { filter: brightness(1.07); }
.pf-btn:active, .pf-btn-primary:active { transform: translateY(1px); }

.pf-avatar-edit { display: flex; align-items: center; gap: 20px; padding: 16px; margin-bottom: 22px; border-radius: 16px; background: #1c252b; box-shadow: inset 0 0 0 1px var(--pf-line); }
.pf-avatar-edit > div:last-child { display: grid; gap: 6px; justify-items: start; }
.pf-avatar-edit b { font-size: 14.5px; }
.pf-avatar-edit small { color: #66757f; font-size: 12px; }
.pf-avatar.big { width: 84px; height: 84px; font-size: 34px; transition: background .3s; }
.pf-upload { position: relative; margin-top: 4px; }
.pf-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }

.pf-sessions { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.pf-session.current .pf-feed-ic { background: rgba(98, 210, 124, .13); color: #62d27c; }

/* ------------------------------------------------------------------ fanene fra accounts.js */
.pf-main .profile-block > h2 + p, .pf-main .fairness-settings-copy { color: var(--pf-muted); font-size: 13.5px; line-height: 1.55; }
.pf-main .block-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pf-main .block-heading .eyebrow { font-size: 11px; letter-spacing: .12em; color: var(--pf-muted); }
.pf-main .block-heading a { color: #8fc8f5; font-size: 12.5px; font-weight: 700; }
.pf-main .account-table { overflow-x: auto; margin-top: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--pf-line); }
.pf-main .account-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pf-main .account-table th { padding: 12px 14px; text-align: left; background: #151c20; color: #7d8e99; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.pf-main .account-table td { padding: 12px 14px; border-top: 1px solid var(--pf-line); color: #d6e0e6; }
.pf-main .account-table tr:hover td { background: rgba(255, 255, 255, .025); }
.pf-main .history-actions { display: flex; gap: 6px; }
.pf-main .history-actions button { height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .07); color: #e3ebf0; font-size: 12px; font-weight: 700; }
.pf-main .history-actions button:hover { background: rgba(120, 190, 255, .18); }
.pf-main input:not([type="color"]):not([type="file"]):not([type="checkbox"]) {
  width: 100%; min-height: 44px; border: 0; border-radius: 11px; background: var(--pf-sunk); color: #fff;
  box-shadow: inset 0 0 0 1px var(--pf-line);
}
.pf-main code { border-radius: 8px; }

/* ------------------------------------------------------------------ mindre skjermer */
@media (max-width: 1180px) {
  .pf-hero { grid-template-columns: 1fr; }
  .pf-next { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; justify-content: flex-start; }
  .pf-next-art { height: 90px; width: 80px; }
  .pf-next-art img { height: 90px; }
  .pf-next-art .reward-pack-art { width: 64px; height: 90px; padding: 5px 3px; border-width: 2px; }
  .pf-next-art .reward-pack-art > strong { font-size: 26px; letter-spacing: -7px; padding-right: 7px; }
  .pf-next-art .reward-pack-art > b { font-size: 8px; }
  .pf-next-art .reward-pack-art > span, .pf-next-art .reward-pack-art > small { display: none; }
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-split { grid-template-columns: 1fr; }
}
@media (max-width: 950px) {
  .pf { grid-template-columns: 1fr; gap: 16px; }
  .pf-nav { position: relative; top: auto; flex-direction: row; align-items: center; padding: 8px; overflow-x: auto; scrollbar-width: none; }
  .pf-me, .pf-group-title, .pf-glow { display: none; }
  .pf-links, .pf-group { flex-direction: row; gap: 2px; }
  .pf-link { width: auto; white-space: nowrap; }
  .pf-link.active { background: rgba(120, 190, 255, .16); box-shadow: inset 0 0 0 1px rgba(140, 200, 255, .38); }
  .pf-logout { margin: 0; border: 0; border-radius: 11px; padding-top: 0; height: 40px; width: auto; white-space: nowrap; }
}
@media (max-width: 620px) {
  .pf-hero { padding: 20px; }
  .pf-id { flex-direction: column; align-items: flex-start; }
  .pf-actions { grid-template-columns: 1fr; }
  .pf-trophy.first { grid-column: span 2; grid-row: auto; }
  .pf-trophy.first .pf-trophy-art, .pf-trophy.first .pf-trophy-art .product-art { height: 130px; }
  .pf-stat strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-drift, .pf-badge, .pf-bar > span::after, .pf-hero.go::after { animation: none; }
  .pf-reveal { opacity: 1; transform: none; }
  .pf-ring-bar, .pf-bar > span, .pf-mini-bar, .pf-glow { transition: none; }
}
