/* ================================================================
   BEHANDLINGSNETT PORTAL – Integrert med Astra-tema
   Fargepalett fra behandlingsnett.no + Stian Grepstad branding
   ================================================================ */

/* ── Fonter: Geist (kropp) + Instrument Serif (display-tall) ───────── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300..800&family=Instrument+Serif:ital@0;1&display=swap');

/* ── Behandlingsnett fargevariabler ──────────────────────── */
:root {
  /* ── Grønn-skala: 50 → 950 ─────────────────────────────────── */
  --bn-green-50:   #f0fdf4;
  --bn-green-100:  #dcfce7;
  --bn-green-150:  #c7f5c4;
  --bn-green-200:  #bbf7d0;
  --bn-green-300:  #86efac;
  --bn-green-400:  #4ade80;
  --bn-green-500:  #22c55e;   /* Primær */
  --bn-green-600:  #16a34a;
  --bn-green-700:  #15803d;
  --bn-green-800:  #166534;
  --bn-green-900:  #14532d;
  --bn-green-950:  #052e16;

  /* Bakoverkompatibilitet */
  --bn-green-light:  var(--bn-green-150);
  --bn-green-soft:   #e8f5e4;
  --bn-green:        var(--bn-green-500);
  --bn-green-dark:   #2F5D50;
  --bn-green-deep:   var(--bn-green-900);
  --bn-green-bg:     rgba(34,197,94,.09);

  /* Accent-farger – mer dempet, naturlig */
  --bn-blue:         #2563eb;
  --bn-blue-bg:      rgba(37,99,235,.07);
  --bn-red:          #dc2626;
  --bn-red-bg:       rgba(220,38,38,.07);
  --bn-amber:        #d97706;
  --bn-amber-bg:     rgba(217,119,6,.08);
  --bn-orange:       var(--bn-amber);
  --bn-orange-bg:    var(--bn-amber-bg);
  --bn-purple:       #7c3aed;
  --bn-purple-bg:    rgba(124,58,237,.08);

  /* Overflater */
  --bn-bg:           #f7faf6;   /* Lysere, mer nøytral */
  --bn-bg-2:         #eef5ec;   /* Bakgrunns-accent */
  --bn-surface:      #ffffff;
  --bn-surface2:     #fafdfa;
  --bn-grouped:      #f0f5ee;
  --bn-border:       rgba(20,46,28,.07);
  --bn-border2:      rgba(20,46,28,.14);
  --bn-border-soft:  rgba(20,46,28,.04);

  /* Tekst – med mer kontrast og lesbarhet */
  --bn-text:         #0a1f10;   /* Nesten svart-grønn */
  --bn-text2:        #1f3a26;
  --bn-text3:        #4b6957;
  --bn-label:        #6b8676;
  --bn-muted:        rgba(20,46,28,.45);

  /* Radius-skala */
  --bn-r-xs: 6px; --bn-r-sm: 10px; --bn-r-md: 14px;
  --bn-r-lg: 18px; --bn-r-xl: 24px; --bn-r-2xl: 32px;

  /* Skygge-system: layered, soft */
  --bn-shadow-xs:  0 1px 2px rgba(10,31,16,.05);
  --bn-shadow-sm:  0 1px 3px rgba(10,31,16,.04), 0 4px 12px rgba(10,31,16,.04);
  --bn-shadow-md:  0 2px 6px rgba(10,31,16,.05), 0 12px 32px rgba(10,31,16,.06);
  --bn-shadow-lg:  0 4px 12px rgba(10,31,16,.06), 0 24px 56px rgba(10,31,16,.09);
  --bn-shadow-xl:  0 8px 24px rgba(10,31,16,.07), 0 40px 96px rgba(10,31,16,.12);

  /* Ring (focus state) */
  --bn-ring:       0 0 0 4px rgba(34,197,94,.15);
  --bn-ring-amber: 0 0 0 4px rgba(217,119,6,.15);
  --bn-ring-red:   0 0 0 4px rgba(220,38,38,.15);

  /* Layout */
  --bn-topbar-h: 60px;
  --bn-sidebar-w: 244px;

  /* Typografi */
  --bn-font:         'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bn-font-display: 'Instrument Serif', Georgia, serif;
  --bn-font-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Animasjon */
  --bn-ease:    cubic-bezier(.4, 0, .2, 1);
  --bn-ease-out:cubic-bezier(.16, 1, .3, 1);
}

/* ── Astra-tema overrides: skjul/tilpass tema-elementer ──── */
.bnett-portal-page .site-header,
.bnett-portal-page .ast-below-header,
.bnett-portal-page footer.site-footer,
.bnett-portal-page .ast-breadcrumbs-wrapper { display: none !important; }

.bnett-portal-page .ast-container,
.bnett-portal-page .entry-content,
.bnett-portal-page .site-content { padding: 0 !important; margin: 0 !important; max-width: none !important; }

.bnett-portal-page #page,
.bnett-portal-page .site { background: var(--bn-bg) !important; }

.bnett-portal-page .entry-content > .wp-block-shortcode,
.bnett-portal-page .entry-content > p { margin: 0 !important; padding: 0 !important; }

/* Legg til body-klasse for portal-siden via JS */
body.bnett-portal-active { background: var(--bn-bg) !important; }

/* ── RESET ───────────────────────────────────────────────── */
.bnett-portal *, .bnett-portal *::before, .bnett-portal *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.bnett-portal {
  font-family: var(--bn-font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--bn-text);
  background: var(--bn-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01', 'ss03';  /* Geist tabular numbers */
}

/* Atmosfærisk bakgrunn: subtil grønn gradient med tekstur */
.bnett-portal-page #page,
body.bnett-portal-page {
  background:
    radial-gradient(at 20% 10%, rgba(34,197,94,.04) 0, transparent 50%),
    radial-gradient(at 85% 80%, rgba(47,93,80,.05) 0, transparent 60%),
    var(--bn-bg) !important;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.bp-layout { display: flex; min-height: calc(100vh - var(--bn-topbar-h)); }
.bp-sidebar {
  width: var(--bn-sidebar-w); flex-shrink: 0;
  background: var(--bn-surface);
  border-right: 1px solid var(--bn-border);
  position: fixed;
  top: var(--bn-topbar-h); bottom: 0; left: 0;
  overflow-y: auto; z-index: 100;
  padding: 14px 10px 40px;
  transition: transform .24s cubic-bezier(.4,0,.2,1);
}
.bp-main {
  flex: 1; margin-left: var(--bn-sidebar-w);
  padding: 28px 28px 80px; min-width: 0;
  max-width: 860px;
}

/* ── TOPBAR ──────────────────────────────────────────────── */
.bp-topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--bn-topbar-h);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--bn-border);
  display: flex; align-items: center;
  padding: 0 22px; gap: 12px; z-index: 200;
  box-shadow: 0 1px 0 var(--bn-border), 0 4px 16px rgba(47,93,80,.04);
}
.bp-topbar__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--bn-font);
  font-weight: 700; font-size: 16px;
  letter-spacing: -.02em;
  color: var(--bn-green-950);
  text-decoration: none; flex-shrink: 0;
}
.bp-topbar__brand-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffffff, var(--bn-green-100));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(34,197,94,.2);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.4),
    0 1px 2px rgba(20,83,45,.06),
    0 4px 12px rgba(34,197,94,.18);
}
.bp-topbar__spacer { flex: 1; }
.bp-topbar__right { display: flex; align-items: center; gap: 10px; }
.bp-topbar__name { font-size: 13px; font-weight: 500; color: var(--bn-label); }
.bp-hamburger {
  display: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: var(--bn-r-sm);
  align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--bn-green-light);
  color: var(--bn-green-deep);
  box-shadow: 0 1px 4px rgba(34,197,94,.2);
}
.bp-hamburger:hover { background: var(--bn-green); color: #fff; }

/* ── SIDEBAR NAV ─────────────────────────────────────────── */
.bp-nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--bn-muted);
  padding: 18px 12px 8px;
  display: block;
}
.bp-nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: var(--bn-r-sm);
  font-size: 13.5px; font-weight: 500;
  color: var(--bn-text2); text-decoration: none;
  transition: background .1s, color .1s;
  position: relative; cursor: pointer;
  border: none; background: none; width: 100%; text-align: left;
  font-family: var(--bn-font);
}
.bp-nav-item:hover { background: var(--bn-grouped); color: var(--bn-green-dark); text-decoration: none; }
.bp-nav-item.is-active {
  background: var(--bn-green-bg); color: var(--bn-green-dark); font-weight: 600;
}
.bp-nav-item__icon {
  width: 28px; height: 28px; border-radius: var(--bn-r-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; background: var(--bn-grouped);
}
.bp-nav-item.is-active .bp-nav-item__icon { background: rgba(34,197,94,.15); }
.bp-nav-item__label { flex: 1; }
.bp-nav-item__badge {
  background: var(--bn-red); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 9999px;
}
.bp-nav-divider { height: 1px; background: var(--bn-border); margin: 8px 0; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.bp-page-header { margin-bottom: 22px; }
.bp-back-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500; color: var(--bn-blue);
  text-decoration: none; margin-bottom: 10px;
}
.bp-back-link:hover { text-decoration: underline; }
.bp-page-header__title {
  font-size: 24px; font-weight: 800; letter-spacing: -.4px; color: var(--bn-text);
}
.bp-page-header__sub { font-size: 14px; color: var(--bn-label); margin-top: 4px; }

/* ── MESSAGES ────────────────────────────────────────────── */
.bp-msg {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--bn-r-md);
  font-size: 14px; font-weight: 500; margin-bottom: 14px;
  border: 1px solid transparent; line-height: 1.45;
  font-family: var(--bn-font);
}
.bp-msg--success { background: rgba(34,197,94,.1); color: var(--bn-green-deep); border-color: rgba(34,197,94,.2); }
.bp-msg--error   { background: var(--bn-red-bg);    color: var(--bn-red);        border-color: rgba(239,68,68,.2); }
.bp-msg--info    { background: var(--bn-blue-bg);   color: var(--bn-blue);       border-color: rgba(0,122,255,.2); }
.bp-msg--warning { background: var(--bn-orange-bg); color: var(--bn-orange);     border-color: rgba(249,115,22,.2); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.bp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px; border-radius: var(--bn-r-sm);
  font-family: var(--bn-font); font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  transition: all .2s var(--bn-ease); line-height: 1; white-space: nowrap;
  letter-spacing: -.012em;
  position: relative;
}
.bp-btn:hover { text-decoration: none; transform: translateY(-1px); }
.bp-btn:active { transform: translateY(0) scale(.98); transition: transform .08s; }
.bp-btn--primary {
  background: linear-gradient(180deg, #2dd56f, #16a34a);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 1px 2px rgba(20,83,45,.2),
    0 6px 16px rgba(34,197,94,.28);
}
.bp-btn--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 2px 4px rgba(20,83,45,.22),
    0 10px 22px rgba(34,197,94,.38);
}
.bp-btn--blue {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 1px 2px rgba(29,78,216,.2),
    0 6px 16px rgba(37,99,235,.25);
}
.bp-btn--secondary {
  background: var(--bn-grouped);
  color: var(--bn-text2);
  box-shadow: inset 0 0 0 1px var(--bn-border);
}
.bp-btn--secondary:hover { background: var(--bn-bg-2); }
.bp-btn--outline {
  background: var(--bn-surface);
  color: var(--bn-text2);
  box-shadow: inset 0 0 0 1px var(--bn-border2);
}
.bp-btn--outline:hover { background: var(--bn-surface2); box-shadow: inset 0 0 0 1px var(--bn-text3); }
.bp-btn--danger {
  background: var(--bn-red-bg);
  color: var(--bn-red);
  box-shadow: inset 0 0 0 1px rgba(220,38,38,.2);
}
.bp-btn--danger:hover { background: rgba(220,38,38,.12); }
.bp-btn--sm  { padding: 8px 14px; font-size: 13px; border-radius: var(--bn-r-xs); }
.bp-btn--xs  { padding: 5px 10px; font-size: 12px; border-radius: 6px; gap: 4px; }
.bp-btn--block { width: 100%; }
.bp-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.bp-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
.bp-spin { animation: bp-rotate .7s linear infinite; }
@keyframes bp-rotate { to { transform: rotate(360deg); } }

/* ── CARDS ───────────────────────────────────────────────── */
.bp-card {
  background: var(--bn-surface);
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-r-lg);
  padding: 22px 24px;
  box-shadow: var(--bn-shadow-sm);
  margin-bottom: 16px;
  transition: box-shadow .25s var(--bn-ease);
}
.bp-card:hover { box-shadow: var(--bn-shadow-md); }
.bp-card__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.bp-card__title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--bn-label);
}

/* ── STAT GRID ───────────────────────────────────────────── */
.bp-stat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap: 10px; margin-bottom: 16px;
}
.bp-stat {
  background: var(--bn-surface); border: 1px solid var(--bn-border);
  border-radius: var(--bn-r-lg); padding: 16px 14px; box-shadow: var(--bn-shadow-xs);
}
.bp-stat__num { font-size: 28px; font-weight: 800; letter-spacing: -.5px; color: var(--bn-text); }
.bp-stat__label { font-size: 12px; color: var(--bn-label); margin-top: 2px; font-weight: 500; }
.bp-stat--green  .bp-stat__num { color: var(--bn-green-dark); }
.bp-stat--blue   .bp-stat__num { color: var(--bn-blue); }
.bp-stat--orange .bp-stat__num { color: var(--bn-orange); }

/* ── PROFILE HEADER ──────────────────────────────────────── */
.bp-profile-header {
  position: relative;
  background:
    radial-gradient(at 10% 20%, rgba(255,255,255,.7) 0, transparent 50%),
    linear-gradient(135deg, #e8f5e4 0%, #c7f5c4 55%, #ffffff 100%);
  border: 1px solid rgba(34,197,94,.18);
  border-radius: var(--bn-r-xl);
  padding: 24px 28px;
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 18px;
  box-shadow: var(--bn-shadow-sm);
  flex-wrap: wrap;
  overflow: hidden;
}
.bp-profile-header::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(34,197,94,.15) 0%, transparent 70%);
  pointer-events: none;
}
.bp-profile-header__avatar {
  width: 68px; height: 68px;
  border-radius: 9999px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--bn-green-200), var(--bn-green-300));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--bn-font-display);
  font-size: 30px;
  font-weight: 400;
  font-style: italic;
  color: var(--bn-green-900);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 1px rgba(34,197,94,.25),
    0 8px 24px rgba(34,197,94,.22);
  position: relative;
  z-index: 1;
}
.bp-profile-header__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bp-profile-header__info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.bp-profile-header__name {
  font-family: var(--bn-font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--bn-green-950);
  line-height: 1.1;
  margin-bottom: 4px;
}
.bp-profile-header__meta {
  font-size: 13px;
  color: var(--bn-text3);
  font-weight: 500;
  letter-spacing: -.005em;
}
.bp-profile-header__actions { display: flex; gap: 8px; position: relative; z-index: 1; }

/* ── ALERT BANNER ────────────────────────────────────────── */
.bp-alert-banner {
  background: rgba(249,115,22,.07); border: 1px solid rgba(249,115,22,.22);
  border-radius: var(--bn-r-lg); padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.bp-alert-banner__icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.bp-alert-banner__title { font-size: 13px; font-weight: 700; color: #7c3a00; }
.bp-alert-banner__list { margin-top: 5px; display: flex; flex-direction: column; gap: 4px; }
.bp-alert-banner__item { font-size: 13px; color: #7c3a00; display: flex; align-items: center; gap: 6px; }
.bp-alert-banner__item a { color: var(--bn-orange); font-weight: 600; text-decoration: none; }
.bp-alert-banner__item a:hover { text-decoration: underline; }

/* ── PLAN BADGE ──────────────────────────────────────────── */
.bp-plan-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 3px 9px;
  border-radius: 9999px; letter-spacing: .2px;
}
.bp-plan-badge--basis      { background: var(--bn-grouped); color: var(--bn-label); }
.bp-plan-badge--synlig     { background: var(--bn-blue-bg); color: var(--bn-blue); }
.bp-plan-badge--prioritert { background: var(--bn-purple-bg); color: var(--bn-purple); }
.bp-plan-badge--top        { background: rgba(251,191,36,.15); color: #92400e; }

/* ── ORDER TABLE ─────────────────────────────────────────── */
.bp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--bn-r-md); }
.bp-table { width: 100%; border-collapse: collapse; font-size: 13px; font-family: var(--bn-font); }
.bp-table th {
  text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--bn-label); padding: 10px 12px;
  border-bottom: 1px solid var(--bn-border); white-space: nowrap;
  background: var(--bn-surface2);
}
.bp-table td { padding: 12px 12px; border-bottom: 1px solid var(--bn-border); color: var(--bn-text2); vertical-align: middle; }
.bp-table tr:last-child td { border-bottom: none; }
.bp-table tr:hover td { background: var(--bn-surface2); }
.bp-status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 9999px;
}
.bp-status-badge--paid    { background: rgba(34,197,94,.1); color: var(--bn-green-deep); }
.bp-status-badge--pending { background: var(--bn-orange-bg); color: var(--bn-orange); }
.bp-status-badge--failed  { background: var(--bn-red-bg); color: var(--bn-red); }

/* ── FORM FIELDS ─────────────────────────────────────────── */
.bp-field { margin-bottom: 14px; }
.bp-field label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; color: var(--bn-label);
  margin-bottom: 5px; letter-spacing: .3px; text-transform: uppercase;
  font-family: var(--bn-font);
}
.bp-field input[type="text"],
.bp-field input[type="email"],
.bp-field input[type="url"],
.bp-field input[type="password"],
.bp-field input[type="time"],
.bp-field input[type="date"],
.bp-field input[type="number"],
.bp-field select,
.bp-field textarea {
  width: 100%; padding: 10px 13px;
  background: var(--bn-surface2); border: 1.5px solid var(--bn-border);
  border-radius: var(--bn-r-sm); font-family: var(--bn-font);
  font-size: 14px; color: var(--bn-text);
  transition: border-color .12s, box-shadow .12s; appearance: none;
}
.bp-field input:focus, .bp-field select:focus, .bp-field textarea:focus {
  outline: none; border-color: var(--bn-green); background: var(--bn-surface);
  box-shadow: 0 0 0 3px rgba(34,197,94,.14);
}
.bp-field textarea { resize: vertical; min-height: 100px; }
.bp-field__hint { font-size: 12px; color: var(--bn-label); margin-top: 4px; line-height: 1.4; }
.bp-field__hint--pending { color: var(--bn-orange); font-weight: 600; }
.bp-field__input--pending { border-color: var(--bn-orange) !important; background: var(--bn-orange-bg) !important; }
.bp-badge-pending {
  font-size: 11px; font-weight: 600; padding: 2px 7px;
  border-radius: 9999px; background: var(--bn-orange-bg); color: var(--bn-orange);
  text-transform: none; letter-spacing: 0;
}
.bp-pw-wrap { position: relative; }
.bp-pw-wrap input { padding-right: 44px; }
.bp-pw-toggle {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--bn-label); padding: 4px;
}
.bp-strength-bar { height: 3px; background: var(--bn-border); border-radius: 9999px; margin-top: 7px; overflow: hidden; }
#bp-strength-fill { height: 100%; width: 0; border-radius: 9999px; transition: width .3s, background .3s; }
.bp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bp-field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.bp-form-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--bn-border);
}
.bp-password-rules {
  background: var(--bn-surface2); border: 1px solid var(--bn-border);
  border-radius: var(--bn-r-md); padding: 13px 15px; margin-bottom: 18px; font-size: 13px;
}
.bp-password-rules ul { margin: 7px 0 0; padding-left: 16px; display: flex; flex-direction: column; gap: 3px; }
.bp-password-rules li.bp-rule-ok   { color: var(--bn-green-dark); }
.bp-password-rules li.bp-rule-fail { color: var(--bn-red); }
.bp-img-preview {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: var(--bn-r-sm); border: 1px solid var(--bn-border);
  display: block; margin-bottom: 10px;
}
.bp-upload-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border: 1.5px dashed var(--bn-border2);
  border-radius: var(--bn-r-sm); cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--bn-label);
  transition: border-color .12s, color .12s; font-family: var(--bn-font);
}
.bp-upload-btn:hover { border-color: var(--bn-green); color: var(--bn-green-dark); }

/* ── PLAN CARDS ──────────────────────────────────────────── */
.bp-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; margin-top: 14px; }
.bp-plan-card {
  background: var(--bn-surface); border: 2px solid var(--bn-border);
  border-radius: var(--bn-r-xl); padding: 20px; position: relative;
  transition: border-color .14s, box-shadow .14s;
}
.bp-plan-card:hover { border-color: var(--bn-green); box-shadow: var(--bn-shadow-md); }
.bp-plan-card.is-current { border-color: var(--bn-green); background: rgba(34,197,94,.03); }
.bp-plan-card.is-recommended { border-color: var(--bn-purple); }
.bp-plan-card__badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--bn-purple); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 9999px; white-space: nowrap;
}
.bp-plan-card__name { font-size: 16px; font-weight: 800; margin-bottom: 4px; color: var(--bn-text); }
.bp-plan-card__price { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--bn-green-deep); }
.bp-plan-card__price small { font-size: 13px; font-weight: 400; color: var(--bn-label); }
.bp-plan-card__features { margin: 13px 0; display: flex; flex-direction: column; gap: 6px; }
.bp-plan-card__feature { font-size: 13px; color: var(--bn-text2); display: flex; gap: 7px; }
.bp-plan-card__feature::before { content: '✓'; color: var(--bn-green); font-weight: 700; flex-shrink: 0; }

/* ── CHANGES LIST ────────────────────────────────────────── */
.bp-changes-list { display: flex; flex-direction: column; gap: 5px; }
.bp-change-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  padding: 10px 13px; border-radius: var(--bn-r-md);
  background: var(--bn-surface); border: 1px solid var(--bn-border); font-size: 13px;
}
.bp-change-row--pending  { background: var(--bn-orange-bg); border-color: rgba(249,115,22,.22); }
.bp-change-row--approved { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.2); }
.bp-change-row--rejected { background: var(--bn-red-bg);    border-color: rgba(239,68,68,.2); }
.bp-change-row__field    { font-weight: 600; color: var(--bn-text); }
.bp-change-row__status   { font-size: 12px; font-weight: 700; }
.bp-change-row__date     { color: var(--bn-label); font-size: 12px; }
.bp-change-row__note     { grid-column: 1/-1; color: var(--bn-red); font-size: 12px; }

/* ── CAMPAIGN ITEM ───────────────────────────────────────── */
.bp-campaign-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bn-surface); border: 1px solid var(--bn-border);
  border-radius: var(--bn-r-lg); padding: 13px 15px;
  margin-bottom: 10px; box-shadow: var(--bn-shadow-xs);
  transition: box-shadow .12s;
}
.bp-campaign-item:last-child { margin-bottom: 0; }
.bp-campaign-item:hover { box-shadow: var(--bn-shadow-sm); }
.bp-campaign-item__img {
  width: 44px; height: 44px; border-radius: var(--bn-r-sm);
  object-fit: cover; flex-shrink: 0; background: var(--bn-grouped);
}
.bp-campaign-item__info { flex: 1; min-width: 0; }
.bp-campaign-item__name { font-size: 14px; font-weight: 700; color: var(--bn-text); }
.bp-campaign-item__meta { font-size: 12px; color: var(--bn-label); margin-top: 2px; display: flex; align-items: center; gap: 6px; }

/* ── CALENDAR ────────────────────────────────────────────── */
.bp-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.bp-cal-nav__title { font-size: 16px; font-weight: 700; letter-spacing: -.2px; color: var(--bn-text); }
.bp-calendar { background: var(--bn-surface); border: 1px solid var(--bn-border); border-radius: var(--bn-r-xl); overflow: hidden; box-shadow: var(--bn-shadow-sm); margin-bottom: 16px; }
.bp-cal-head { display: grid; grid-template-columns: repeat(7,1fr); background: var(--bn-grouped); border-bottom: 1px solid var(--bn-border); }
.bp-cal-head > div { padding: 9px 4px; text-align: center; font-size: 10px; font-weight: 700; color: var(--bn-label); text-transform: uppercase; letter-spacing: .5px; }
.bp-cal-body { display: grid; grid-template-columns: repeat(7,1fr); }
.bp-cal-day { min-height: 80px; padding: 7px 5px; border-right: 1px solid var(--bn-border); border-bottom: 1px solid var(--bn-border); position: relative; transition: background .1s; }
.bp-cal-day:nth-child(7n) { border-right: none; }
.bp-cal-day__num { display: block; font-size: 12px; font-weight: 600; margin-bottom: 3px; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 9999px; }
.bp-cal-day--past { background: var(--bn-surface2); }
.bp-cal-day--past .bp-cal-day__num { color: var(--bn-muted); }
.bp-cal-day--today .bp-cal-day__num { background: var(--bn-blue); color: #fff; }
.bp-cal-day--avail { background: rgba(34,197,94,.05); }
.bp-cal-day--blocked { background: rgba(239,68,68,.04); }
.bp-cal-day--weekend { background: var(--bn-surface2); }
.bp-cal-day--weekend .bp-cal-day__num { color: var(--bn-label); }
.bp-cal-day--clickable { cursor: pointer; }
.bp-cal-day--clickable:hover { background: rgba(34,197,94,.09); }
.bp-cal-day--empty { background: var(--bn-surface2); }
.bp-cal-day__slots { display: flex; flex-direction: column; gap: 2px; }
.bp-slot-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 600; padding: 2px 5px; border-radius: 5px; cursor: pointer; max-width: 100%; overflow: hidden; }
.bp-slot-chip--avail { background: rgba(34,197,94,.12); color: var(--bn-green-dark); }
.bp-slot-chip--block { background: var(--bn-red-bg); color: var(--bn-red); }
.bp-slot-chip:hover { filter: brightness(.93); }
.bp-slot-del { background: none; border: none; cursor: pointer; font-size: 11px; line-height: 1; padding: 0 1px; opacity: .5; }
.bp-slot-del:hover { opacity: 1; }
.bp-cal-add-btn {
  display: none; position: absolute; bottom: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bn-green); color: #fff; border: none; cursor: pointer;
  font-size: 15px; line-height: 20px; text-align: center; padding: 0; font-weight: 700;
  box-shadow: 0 1px 4px rgba(34,197,94,.4);
}
.bp-cal-day--clickable:hover .bp-cal-add-btn { display: block; }
.bp-cal-legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.bp-bulk-form { display: flex; flex-direction: column; gap: 12px; }
.bp-checkbox { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; font-family: var(--bn-font); }
.bp-checkbox input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--bn-green); }

/* ── MODAL ───────────────────────────────────────────────── */
.bp-modal-overlay {
  position: fixed; inset: 0; background: rgba(26,46,26,.46);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(6px);
}
.bp-modal {
  background: var(--bn-surface); border-radius: var(--bn-r-xl);
  width: 100%; max-width: 440px; box-shadow: var(--bn-shadow-xl); overflow: hidden;
  border: 1px solid var(--bn-border);
}
.bp-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 20px 13px; border-bottom: 1px solid var(--bn-border);
}
.bp-modal__header h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--bn-text); }
.bp-modal__close {
  background: var(--bn-grouped); border: none; width: 28px; height: 28px;
  border-radius: 50%; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--bn-label);
}
.bp-modal__close:hover { background: var(--bn-border); }
.bp-modal__body { padding: 16px 20px 4px; }
.bp-modal__footer { padding: 13px 20px 17px; display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--bn-border); }
.bp-toggle-group { display: flex; gap: 6px; margin-top: 2px; }
.bp-toggle-btn {
  flex: 1; padding: 9px 12px; border-radius: var(--bn-r-sm);
  border: 1.5px solid var(--bn-border); background: var(--bn-surface2);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--bn-font); color: var(--bn-label);
}
.bp-toggle-btn[data-val="1"].is-active { background: rgba(34,197,94,.1); border-color: var(--bn-green); color: var(--bn-green-dark); }
.bp-toggle-btn[data-val="0"].is-active { background: var(--bn-red-bg); border-color: var(--bn-red); color: var(--bn-red); }
.bp-quick-slots { background: var(--bn-surface2); border-radius: var(--bn-r-md); padding: 12px; margin-top: 12px; border: 1px solid var(--bn-border); }
.bp-quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.bp-quick-btn {
  background: var(--bn-surface); border: 1px solid var(--bn-border); border-radius: var(--bn-r-sm);
  padding: 9px 8px 7px; cursor: pointer; font-family: var(--bn-font); font-size: 13px; font-weight: 600;
  color: var(--bn-text2); display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.bp-quick-btn small { font-size: 11px; font-weight: 400; color: var(--bn-label); }
.bp-quick-btn:hover, .bp-quick-btn.is-selected { background: rgba(34,197,94,.1); border-color: var(--bn-green); color: var(--bn-green-dark); }

/* ── LOGIN ───────────────────────────────────────────────── */
.bnett-portal--login {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 28px 20px;
  background:
    radial-gradient(at 20% 0%, rgba(34,197,94,.10) 0, transparent 50%),
    radial-gradient(at 80% 100%, rgba(20,83,45,.08) 0, transparent 50%),
    linear-gradient(180deg, #f7faf6 0%, #ffffff 50%, #eef5ec 100%);
}
.bp-login-wrap { width: 100%; max-width: 420px; }
.bp-login-logo {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; margin-bottom: 32px; text-align: center;
}
.bp-login-logo__icon {
  width: 68px; height: 68px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, var(--bn-green-100));
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.6),
    0 1px 3px rgba(20,83,45,.1),
    0 12px 32px rgba(34,197,94,.22);
  border: 1px solid rgba(34,197,94,.18);
}
.bp-login-logo__name {
  font-family: var(--bn-font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--bn-green-950);
  line-height: 1;
}
.bp-login-logo__sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--bn-text3);
  margin-top: 2px;
  letter-spacing: -.005em;
}
.bp-login-card {
  background: var(--bn-surface);
  border-radius: var(--bn-r-xl);
  box-shadow: var(--bn-shadow-lg);
  padding: 32px 28px;
  border: 1px solid var(--bn-border);
}
.bp-login-card__title {
  font-family: var(--bn-font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  color: var(--bn-green-950);
  line-height: 1.1;
}
.bp-login-card__sub {
  font-size: 14px;
  color: var(--bn-text3);
  margin-bottom: 26px;
  letter-spacing: -.005em;
}
.bp-forgot-link { float: right; font-size: 13px; color: var(--bn-blue); font-weight: 500; }
.bp-forgot-link:hover { text-decoration: underline; }
.bp-divider { border: none; border-top: 1px solid var(--bn-border); margin: 20px 0; }
.bp-login-footer { text-align: center; font-size: 13px; color: var(--bn-label); margin-top: 18px; }

/* ── DEMO BANNER ─────────────────────────────────────────── */
.bp-demo-banner {
  position: relative;
  background:
    radial-gradient(at 100% 0%, rgba(74,222,128,.18) 0, transparent 60%),
    linear-gradient(135deg, #0a1f10 0%, #14532d 100%);
  border: 1px solid rgba(74,222,128,.18);
  border-radius: var(--bn-r-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 32px rgba(10,31,16,.18);
  overflow: hidden;
}
.bp-demo-banner__label {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: .12em;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(217,119,6,.4);
}
.bp-demo-banner__text {
  font-size: 13px;
  color: rgba(255,255,255,.92);
  flex: 1;
  line-height: 1.45;
  letter-spacing: -.005em;
}
.bp-demo-banner__text strong { color: #86efac; font-weight: 600; }
.bp-demo-banner__btn {
  background: rgba(134,239,172,.14);
  border: 1px solid rgba(134,239,172,.28);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--bn-r-sm);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: all .15s var(--bn-ease);
  letter-spacing: -.005em;
}
.bp-demo-banner__btn:hover {
  background: rgba(134,239,172,.22);
  color: #fff;
  border-color: rgba(134,239,172,.4);
  transform: translateY(-1px);
}
.bp-demo-topbar {
  background: linear-gradient(90deg, #1a2e1a, #2F5D50);
  color: rgba(199,245,196,.85); font-size: 13px; font-weight: 500;
  padding: 10px 20px; text-align: center; border-bottom: 1px solid rgba(199,245,196,.1);
}
.bp-demo-topbar strong { color: var(--bn-green-light); }

/* ── STRENGTH CIRCLE ─────────────────────────────────────── */
.bp-strength-circle-wrap { display: flex; flex-direction: column; align-items: center; padding: 8px 0; }
.bp-strength-circle { position: relative; width: 96px; height: 96px; }
.bp-strength-circle svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.bp-strength-circle__bg { fill: none; stroke: var(--bn-grouped); stroke-width: 8; }
.bp-strength-circle__fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .7s ease, stroke .4s ease; }
.bp-strength-circle__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bp-strength-circle__pct { font-size: 20px; font-weight: 900; letter-spacing: -.5px; line-height: 1; }
.bp-strength-circle__sub { font-size: 9px; font-weight: 700; color: var(--bn-label); text-transform: uppercase; letter-spacing: .3px; }
.bp-strength-card-layout { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.bp-strength-items { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 200px; }
.bp-strength-item {
  display: flex; align-items: center; gap: 9px; font-size: 13px;
  padding: 9px 11px; border-radius: var(--bn-r-sm);
  border: 1px solid var(--bn-border); background: var(--bn-surface2);
}
.bp-strength-item.is-done { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.18); }
.bp-strength-item.is-done .bp-strength-item__icon { color: var(--bn-green); }
.bp-strength-item__icon { font-size: 15px; flex-shrink: 0; width: 22px; text-align: center; }
.bp-strength-item__label { flex: 1; font-weight: 500; color: var(--bn-text2); }
.bp-strength-item__points { font-size: 11px; font-weight: 700; color: var(--bn-label); background: var(--bn-grouped); padding: 2px 6px; border-radius: 9999px; }
.bp-strength-item a { color: var(--bn-blue); font-size: 12px; font-weight: 600; text-decoration: none; }
.bp-strength-item a:hover { text-decoration: underline; }

/* ── RANGERING ───────────────────────────────────────────── */
.bp-rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 10px; }
.bp-rank-card {
  background: var(--bn-surface2); border: 1px solid var(--bn-border);
  border-radius: var(--bn-r-md); padding: 13px;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  align-items: center; gap: 6px; transition: box-shadow .12s;
}
.bp-rank-card:hover { box-shadow: var(--bn-shadow-sm); }
.bp-rank-card--top  { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.05); }
.bp-rank-card--good { border-color: rgba(34,197,94,.28); background: rgba(34,197,94,.05); }
.bp-rank-card--bad  { border-color: rgba(239,68,68,.28); background: rgba(239,68,68,.04); }
.bp-rank-card__location { display: flex; align-items: center; gap: 9px; grid-column: 1; grid-row: 1; }
.bp-rank-card__loc-icon { font-size: 18px; flex-shrink: 0; }
.bp-rank-card__loc-name { font-size: 13px; font-weight: 700; color: var(--bn-text); }
.bp-rank-card__cat-name { font-size: 11px; color: var(--bn-label); }
.bp-rank-card__rank { grid-column: 2; grid-row: 1; text-align: right; }
.bp-rank-card__num { font-size: 26px; font-weight: 900; letter-spacing: -.5px; color: var(--bn-text); }
.bp-rank-card--top  .bp-rank-card__num { color: #92400e; }
.bp-rank-card--good .bp-rank-card__num { color: var(--bn-green-dark); }
.bp-rank-card--bad  .bp-rank-card__num { color: var(--bn-red); }
.bp-rank-card__total { font-size: 11px; color: var(--bn-label); }
.bp-rank-card__upgrade { grid-column: 1; grid-row: 2; }
.bp-rank-card__upgrade + .bp-btn--boost { grid-column: 2; grid-row: 2; }
.bp-btn--boost {
  background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(251,191,36,.12));
  border: 1px solid rgba(249,115,22,.28); color: #7c3a00; font-weight: 700;
}
.bp-btn--boost:hover { filter: brightness(.94); }

/* Lokasjoner */
.bp-loc-list { display: flex; flex-direction: column; gap: 5px; }
.bp-loc-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: var(--bn-surface2); border: 1px solid var(--bn-border); border-radius: var(--bn-r-sm); font-size: 14px; }
.bp-loc-item__type { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--bn-label); background: var(--bn-grouped); padding: 2px 7px; border-radius: 6px; flex-shrink: 0; }
.bp-loc-item__name { flex: 1; font-weight: 600; color: var(--bn-text); }
.bp-loc-search { position: relative; }
.bp-loc-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bn-surface); border: 1px solid var(--bn-border);
  border-radius: var(--bn-r-md); box-shadow: var(--bn-shadow-md);
  z-index: 300; overflow: hidden; max-height: 260px; overflow-y: auto;
}
.bp-loc-result { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; cursor: pointer; transition: background .1s; }
.bp-loc-result:hover { background: rgba(34,197,94,.08); }
.bp-loc-result__name { font-size: 14px; font-weight: 600; color: var(--bn-text); }
.bp-loc-result__type { font-size: 11px; color: var(--bn-label); background: var(--bn-grouped); padding: 2px 7px; border-radius: 6px; }
.bp-loc-no-results { padding: 14px; font-size: 13px; color: var(--bn-label); text-align: center; }

/* ── ADMIN STYLES ────────────────────────────────────────── */
.bnett-admin-cards { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0; }
.bnett-admin-card { background: #fff; border-radius: 14px; padding: 22px 26px; text-align: center; border: 1px solid #e5e7eb; min-width: 150px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.bnett-admin-card--alert { border-color: rgba(249,115,22,.28); background: rgba(249,115,22,.05); }
.bnett-admin-card__num { font-size: 38px; font-weight: 800; color: #1c1c1e; line-height: 1; }
.bnett-admin-card__label { font-size: 13px; color: #6b7280; margin-top: 4px; font-weight: 600; }
.bnett-pending-table td { vertical-align: top; padding: 12px 10px; }
.bnett-diff-old { color: #991b1b; } .bnett-diff-new { color: #166534; font-weight: 600; }

/* ── DANGER ZONE ─────────────────────────────────────────── */
.bp-danger-zone { background: var(--bn-surface); border: 1px solid rgba(239,68,68,.2); border-radius: var(--bn-r-xl); padding: 24px; max-width: 520px; }
.bp-danger-zone h3 { font-size: 15px; font-weight: 700; color: var(--bn-red); margin-bottom: 8px; }
.bp-danger-zone p { font-size: 14px; color: var(--bn-label); margin-bottom: 14px; line-height: 1.5; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --bn-sidebar-w: 0px; }
  .bp-sidebar { width: 260px; transform: translateX(-100%); box-shadow: var(--bn-shadow-xl); }
  .bp-sidebar.is-open { transform: translateX(0); }
  .bp-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(26,46,26,.4); z-index: 99; }
  .bp-sidebar.is-open ~ .bp-sidebar-overlay { display: block; }
  .bp-main { margin-left: 0; padding: 16px 13px 72px; }
  .bp-hamburger { display: flex; }
  .bp-topbar__name { display: none; }
  .bp-plan-grid { grid-template-columns: 1fr; }
  .bp-stat-grid { grid-template-columns: 1fr 1fr; }
  .bp-field-row, .bp-field-row--3 { grid-template-columns: 1fr; }
  .bp-cal-day { min-height: 52px; padding: 4px; }
  .bp-cal-day__num { font-size: 11px; width: 20px; height: 20px; line-height: 20px; }
  .bp-slot-chip { font-size: 9px; padding: 1px 4px; }
  .bp-modal { border-radius: var(--bn-r-lg) var(--bn-r-lg) 0 0; align-self: flex-end; }
  .bp-modal-overlay { align-items: flex-end; padding: 0; }
  .bp-login-card { padding: 22px 16px; }
  .bp-demo-banner { flex-direction: column; align-items: flex-start; }
  .bp-demo-banner__btn { width: 100%; text-align: center; }
  .bp-strength-card-layout { flex-direction: column; align-items: center; }
  .bp-rank-grid { grid-template-columns: 1fr; }
  .bp-profile-header__actions { width: 100%; }
}

/* ── HURTIGMENY PÅ OVERSIKT ─────────────────────────────────── */
.bp-quicknav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.bp-quicknav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 8px 12px;
  background: var(--bn-surface);
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-r-lg);
  text-decoration: none;
  color: var(--bn-text2);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: background .12s, border-color .12s, transform .1s, box-shadow .12s;
  box-shadow: var(--bn-shadow-xs);
  line-height: 1.3;
  cursor: pointer;
}
.bp-quicknav__item:hover {
  background: var(--bn-green-bg);
  border-color: rgba(34,197,94,.3);
  color: var(--bn-green-deep);
  transform: translateY(-1px);
  box-shadow: var(--bn-shadow-sm);
  text-decoration: none;
}
.bp-quicknav__item:active { transform: scale(.97); }
.bp-quicknav__item--danger:hover {
  background: var(--bn-red-bg);
  border-color: rgba(239,68,68,.25);
  color: var(--bn-red);
}
.bp-quicknav__icon {
  font-size: 22px;
  line-height: 1;
  display: block;
}
.bp-quicknav__label {
  display: block;
}

/* Responsiv: 4 kolonner -> 4 -> 4 på mobil (2 rader à 4) */
@media (max-width: 480px) {
  .bp-quicknav {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .bp-quicknav__item {
    padding: 12px 4px 10px;
    font-size: 11px;
    border-radius: var(--bn-r-md);
  }
  .bp-quicknav__icon { font-size: 20px; }
}

/* ── KAMPANJE-LOKASJONER (i Mine profiler) ───────────────── */
.bp-campaign-locations {
  background: var(--bn-surface2);
  border: 1px solid var(--bn-border);
  border-top: none;
  border-radius: 0 0 var(--bn-r-lg) var(--bn-r-lg);
  padding: 10px 14px 12px;
  margin-top: -1px;
  margin-bottom: 10px;
}
.bp-campaign-locations__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--bn-label);
  margin-bottom: 8px;
}
.bp-campaign-locations__empty { padding: 4px 0; }

/* Tilpass campaign-item border når lokasjoner følger */
.bp-campaign-item + .bp-campaign-locations {
  margin-top: -10px;
}
.bp-campaign-item:has(+ .bp-campaign-locations) {
  border-radius: var(--bn-r-lg) var(--bn-r-lg) 0 0;
  border-bottom: none;
  margin-bottom: 0;
}

.bp-rank-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bn-surface);
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-r-sm);
  margin-bottom: 5px;
  font-size: 13px;
}
.bp-rank-mini:last-child { margin-bottom: 0; }
.bp-rank-mini--add {
  text-decoration: none;
  cursor: pointer;
  border-style: dashed;
  background: transparent;
  transition: background .12s, border-color .12s;
}
.bp-rank-mini--add:hover {
  background: var(--bn-blue-bg);
  border-color: rgba(0,122,255,.3);
}
.bp-rank-mini__icon { font-size: 14px; flex-shrink: 0; }
.bp-rank-mini__loc {
  font-weight: 700;
  color: var(--bn-text);
}
.bp-rank-mini__cat {
  font-size: 11px;
  color: var(--bn-label);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-rank-mini__num {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.3px;
  flex-shrink: 0;
}
.bp-rank-mini__boost {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .bp-rank-mini { gap: 6px; padding: 7px 9px; font-size: 12px; flex-wrap: wrap; }
  .bp-rank-mini__cat { font-size: 10px; }
  .bp-rank-mini__num { font-size: 15px; }
  .bp-rank-mini__boost { padding: 4px 9px; font-size: 11px; }
}

/* ── PROFILSTYRKE-KORT på Oversikt ───────────────────────── */
.bp-strength-card { padding: 22px; }
.bp-strength-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bn-border);
  flex-wrap: wrap;
}
.bp-strength-circle-big {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.bp-strength-circle-big svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.bp-strength-circle-big svg circle:nth-child(2) {
  transition: stroke-dashoffset 1s ease, stroke .4s ease;
}
.bp-strength-circle-big__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bp-strength-circle-big__pct {
  font-size: 38px !important;
  font-weight: 400 !important;
  letter-spacing: -.04em;
  line-height: 1;
  font-style: italic;
  font-family: var(--bn-font-display) !important;
}
.bp-strength-circle-big__sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--bn-label);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: 2px;
}
.bp-strength-info {
  flex: 1;
  min-width: 200px;
}
.bp-strength-info__grade {
  font-family: var(--bn-font-display);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  line-height: 1.1;
}
.bp-strength-info__msg {
  font-size: 14px;
  color: var(--bn-text2);
  margin-bottom: 14px;
  line-height: 1.4;
}
.bp-strength-info__bar-track {
  height: 6px;
  background: var(--bn-grouped);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.bp-strength-info__bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1s ease;
}
.bp-strength-info__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--bn-label);
}

/* Sjekkliste */
.bp-strength-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp-strength-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bn-surface);
  border: 1px solid var(--bn-border-soft);
  border-radius: var(--bn-r-sm);
  font-size: 14px;
  transition: all .15s var(--bn-ease);
}
.bp-strength-row + .bp-strength-row { margin-top: 4px; }
.bp-strength-row.is-done {
  background: linear-gradient(90deg, rgba(34,197,94,.05), transparent);
  border-color: rgba(34,197,94,.12);
}
.bp-strength-row__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s var(--bn-ease);
}
.bp-strength-row.is-done .bp-strength-row__check {
  background: linear-gradient(135deg, var(--bn-green-500), var(--bn-green-600));
  color: #fff;
  box-shadow: 0 2px 6px rgba(34,197,94,.3);
}
.bp-strength-row.is-todo .bp-strength-row__check {
  background: var(--bn-bg);
  border: 1.5px solid var(--bn-border2);
}
.bp-strength-row__label {
  flex: 1;
  font-weight: 600;
  color: var(--bn-text);
}
.bp-strength-row.is-done .bp-strength-row__label {
  color: var(--bn-text2);
}
.bp-strength-row.is-todo .bp-strength-row__label {
  color: var(--bn-label);
}
.bp-strength-row__action {
  font-size: 12px;
  font-weight: 600;
  color: var(--bn-blue);
  text-decoration: none;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--bn-blue-bg);
  transition: all .15s var(--bn-ease);
  letter-spacing: -.005em;
}
.bp-strength-row__action:hover {
  background: rgba(37,99,235,.14);
  text-decoration: none;
  transform: translateY(-1px);
}
.bp-strength-row__pts {
  font-size: 11px;
  font-weight: 700;
  color: var(--bn-muted);
  background: var(--bn-grouped);
  padding: 2px 7px;
  border-radius: 9999px;
  flex-shrink: 0;
}
.bp-strength-row.is-done .bp-strength-row__pts {
  background: rgba(34,197,94,.15);
  color: var(--bn-green-dark);
}

@media (max-width: 480px) {
  .bp-strength-card { padding: 18px; }
  .bp-strength-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .bp-strength-circle-big { width: 110px; height: 110px; }
  .bp-strength-circle-big__pct { font-size: 26px; }
  .bp-strength-info { width: 100%; }
  .bp-strength-info__grade { font-size: 20px; }
  .bp-strength-row { padding: 9px 11px; font-size: 13px; gap: 8px; }
  .bp-strength-row__action { font-size: 11px; padding: 3px 7px; }
}

/* ── NETTSIDE-CTA KORT (raffinert) ───────────────────────── */
.bp-website-cta {
  position: relative;
  overflow: hidden;
  background: var(--bn-surface);
  border: 1px solid var(--bn-border);
  padding: 0;
  box-shadow: var(--bn-shadow-sm);
}
.bp-website-cta__bg {
  display: none; /* fjern grønn overlay */
}
.bp-website-cta__content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  flex-wrap: wrap;
}

/* Ikon-container: kvadrat med rounded corners, gradient og sky-skygge */
.bp-website-cta__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 16px;
  color: var(--bn-green-700);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.6),
    0 2px 4px rgba(20,83,45,.06),
    0 10px 24px rgba(34,197,94,.18);
}

.bp-website-cta__body {
  flex: 1;
  min-width: 240px;
}
.bp-website-cta__title {
  font-family: var(--bn-font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--bn-green-950);
  margin-bottom: 6px;
  line-height: 1.18;
}
.bp-website-cta__desc {
  font-size: 14px;
  color: var(--bn-text2);
  line-height: 1.55;
  margin-bottom: 14px;
  letter-spacing: -.005em;
}
.bp-website-cta__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bp-website-cta__feat {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--bn-text2);
  background: var(--bn-grouped);
  padding: 4px 11px;
  border-radius: 9999px;
  border: 1px solid var(--bn-border);
  letter-spacing: -.005em;
}

/* Action-blokk: pris stort + knapp */
.bp-website-cta__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 16px 20px;
  background: var(--bn-bg);
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-r-lg);
}
.bp-website-cta__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.bp-website-cta__price-num {
  font-family: var(--bn-font-display);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -.04em;
  color: var(--bn-green-900);
}
.bp-website-cta__price-unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--bn-green-800);
  letter-spacing: -.02em;
}
.bp-website-cta__price-sub {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--bn-label);
  margin-top: -2px;
  margin-bottom: 6px;
}
.bp-website-cta__small {
  font-size: 11px;
  color: var(--bn-label);
  font-weight: 500;
  letter-spacing: -.005em;
  margin-top: 2px;
  text-align: center;
}

@media (max-width: 640px) {
  .bp-website-cta__content { padding: 22px 20px; gap: 18px; }
  .bp-website-cta__action {
    width: 100%;
    padding: 16px 20px;
  }
  .bp-website-cta__action .bp-btn { width: 100%; }
}

/* Inline-hint i sjekklisten */
.bp-strength-row__hint {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--bn-green-dark);
  margin-top: 2px;
}
.bp-strength-row__action--cta {
  background: var(--bn-green-bg) !important;
  color: var(--bn-green-deep) !important;
  font-weight: 800 !important;
  border: 1px solid rgba(34,197,94,.3) !important;
}
.bp-strength-row__action--cta:hover {
  background: rgba(34,197,94,.18) !important;
}

@media (max-width: 600px) {
  .bp-website-cta__content { padding: 18px; gap: 14px; }
  .bp-website-cta__icon { font-size: 32px; }
  .bp-website-cta__title { font-size: 15px; }
  .bp-website-cta__action { width: 100%; }
  .bp-website-cta__action .bp-btn { width: 100%; }
}


/* ── BUTTON SPINNER (login/set-password) ────────────────── */
.bp-btn__spinner {
  display: inline-flex;
  align-items: center;
}
.bp-btn__spinner svg {
  animation: bp-rotate .7s linear infinite;
}
.bp-btn__text { display: inline-block; }

/* ── PROFILSTYRKE INLINE i Min profil-kort ───────────────── */
.bp-strength-inline-wrap {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--bn-border);
}
.bp-strength-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.bp-strength-inline-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--bn-text);
  letter-spacing: -.1px;
}
.bp-strength-inline-grade {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255,255,255,.6);
  border: 1px solid currentColor;
  letter-spacing: -.1px;
}


/* ── STAGGER-ANIMASJONER VED SIDELAST ──────────────────── */
@keyframes bnSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bp-main > .bp-card,
.bp-main > h2 {
  animation: bnSlideUp .55s var(--bn-ease-out) backwards;
}
.bp-main > *:nth-child(1) { animation-delay: .02s; }
.bp-main > *:nth-child(2) { animation-delay: .07s; }
.bp-main > *:nth-child(3) { animation-delay: .12s; }
.bp-main > *:nth-child(4) { animation-delay: .17s; }
.bp-main > *:nth-child(5) { animation-delay: .22s; }
.bp-main > *:nth-child(6) { animation-delay: .27s; }
.bp-main > *:nth-child(7) { animation-delay: .32s; }
.bp-main > *:nth-child(8) { animation-delay: .37s; }
.bp-main > *:nth-child(n+9) { animation-delay: .42s; }

/* Login-kort */
.bp-login-card, .bp-login-logo, .bp-demo-banner {
  animation: bnSlideUp .6s var(--bn-ease-out) backwards;
}
.bp-login-logo  { animation-delay: .04s; }
.bp-demo-banner { animation-delay: .12s; }
.bp-login-card  { animation-delay: .20s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── DISPLAY-NUMRE: bruk Instrument Serif for store tall ─── */
.bp-strength-circle-big__pct {
  font-family: var(--bn-font-display) !important;
  font-weight: 400 !important;
  font-style: italic;
}

/* Forfin section-heading */
.bp-section-heading {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .12em !important;
  color: var(--bn-label) !important;
  margin: 36px 6px 14px !important;
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
}
.bp-section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--bn-border), transparent);
  margin-left: 4px;
}

/* Forfin field-inputs */
.bp-field input[type="text"],
.bp-field input[type="email"],
.bp-field input[type="url"],
.bp-field input[type="tel"],
.bp-field input[type="password"],
.bp-field input[type="number"],
.bp-field input[type="date"],
.bp-field input[type="time"],
.bp-field select,
.bp-field textarea {
  border-radius: var(--bn-r-sm) !important;
  border: 1px solid var(--bn-border2) !important;
  transition: all .15s var(--bn-ease) !important;
}
.bp-field input:focus,
.bp-field select:focus,
.bp-field textarea:focus {
  border-color: var(--bn-green-500) !important;
  outline: none !important;
  box-shadow: var(--bn-ring) !important;
}

.bp-field label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .08em !important;
  color: var(--bn-text3) !important;
  margin-bottom: 6px !important;
}

/* Forfin topbar */
.bp-topbar {
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--bn-border) !important;
  box-shadow: 0 1px 3px rgba(10,31,16,.03);
}
.bp-topbar__brand {
  letter-spacing: -.02em !important;
}

/* Forfin sidebar */
.bp-sidebar {
  background: var(--bn-surface) !important;
}
.bp-nav-item {
  border-radius: var(--bn-r-xs) !important;
  transition: all .15s var(--bn-ease) !important;
}
.bp-nav-item:hover {
  background: var(--bn-grouped) !important;
  transform: translateX(2px);
}
.bp-nav-item.is-active,
.bp-nav-item--active {
  background: linear-gradient(135deg, var(--bn-green-50), var(--bn-green-100)) !important;
  color: var(--bn-green-900) !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 0 1px rgba(34,197,94,.15);
}

/* Modaler – tighter, mer luft */
.bp-modal-overlay {
  background: rgba(10,31,16,.55) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: bnFadeOverlay .2s var(--bn-ease) backwards;
}
@keyframes bnFadeOverlay { from { opacity: 0; } to { opacity: 1; } }
.bp-modal {
  border-radius: var(--bn-r-xl) !important;
  box-shadow: var(--bn-shadow-xl) !important;
  animation: bnModalIn .35s var(--bn-ease-out) backwards;
  border: 1px solid var(--bn-border);
}
@keyframes bnModalIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Lokasjon-rader */
.bp-loc-item {
  border-radius: var(--bn-r-sm) !important;
  transition: all .15s var(--bn-ease);
}
.bp-loc-item:hover { border-color: var(--bn-border2); }

/* Rank-mini (oversikt) */
.bp-rank-mini {
  border-radius: var(--bn-r-sm) !important;
  transition: all .15s var(--bn-ease);
}
.bp-rank-mini:hover {
  background: var(--bn-surface) !important;
  box-shadow: var(--bn-shadow-xs);
  border-color: var(--bn-border2) !important;
}

/* Forfin profilstyrke-sirkelen med subtil glow */
.bp-strength-circle-big {
  filter: drop-shadow(0 4px 20px rgba(34,197,94,.18));
}

/* Forfin strength-rows */
.bp-strength-row {
  border-radius: var(--bn-r-xs) !important;
  transition: background .12s var(--bn-ease);
}
.bp-strength-row:hover { background: var(--bn-surface2); }
.bp-strength-row__action--cta {
  background: linear-gradient(135deg, var(--bn-green-500), var(--bn-green-600)) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(34,197,94,.3);
}

/* Tab-system – brukt i nettside-modal */
.bp-tab-btn {
  transition: all .15s var(--bn-ease) !important;
}
.bp-tab-btn.is-active {
  box-shadow: 0 1px 3px rgba(10,31,16,.06);
}

/* Bedre scrollbar (Webkit) */
.bnett-portal::-webkit-scrollbar,
.bp-main::-webkit-scrollbar { width: 10px; height: 10px; }
.bnett-portal::-webkit-scrollbar-thumb,
.bp-main::-webkit-scrollbar-thumb {
  background: var(--bn-border2);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.bnett-portal::-webkit-scrollbar-thumb:hover,
.bp-main::-webkit-scrollbar-thumb:hover { background: var(--bn-text3); background-clip: padding-box; border: 2px solid transparent; }
.bnett-portal::-webkit-scrollbar-track { background: transparent; }

/* Forfin meldinger */
.bp-msg {
  border-radius: var(--bn-r-sm) !important;
  font-weight: 500;
  letter-spacing: -.005em;
}

/* Plan-option (registrering) */
.bp-plan-option__card {
  transition: all .15s var(--bn-ease);
}
.bp-plan-option:hover .bp-plan-option__card {
  transform: translateY(-1px);
  border-color: var(--bn-border2) !important;
  box-shadow: var(--bn-shadow-xs);
}
.bp-plan-option input[type="radio"]:checked + .bp-plan-option__card {
  background: linear-gradient(135deg, var(--bn-green-50), #ffffff) !important;
}

/* Demo-banner i login (subtilere) */
.bp-demo-banner {
  border-radius: var(--bn-r-md) !important;
  box-shadow: var(--bn-shadow-sm);
}

/* Suksess-banner */
[class*="bnFadeIn"], .bnett-portal [style*="bnFadeIn"] {
  background-image:
    linear-gradient(135deg, var(--bn-green-100), var(--bn-green-200)) !important;
  border: 1px solid rgba(34,197,94,.25) !important;
  box-shadow: var(--bn-shadow-sm);
}

/* ── REGISTER-CTA på login-side (sekundær handling, tydelig synlig) ── */
.bp-register-cta {
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--bn-surface);
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-r-lg);
  box-shadow: var(--bn-shadow-sm);
  position: relative;
}
.bp-register-cta::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--bn-r-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(34,197,94,.3), rgba(37,99,235,.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.bp-register-cta__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.bp-register-cta__icon {
  font-size: 26px;
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bn-green-100), var(--bn-green-200));
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(34,197,94,.15);
}
.bp-register-cta__title {
  font-family: var(--bn-font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--bn-green-950);
  line-height: 1.1;
  margin-bottom: 2px;
}
.bp-register-cta__sub {
  font-size: 13px;
  color: var(--bn-text3);
  letter-spacing: -.005em;
}

/* ── DEMO-MINI (subtil) på login-side ── */
.bp-demo-mini {
  margin-top: 18px;
  text-align: center;
}
.bp-demo-mini__link {
  font-size: 13px;
  color: var(--bn-label);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--bn-r-xs);
  transition: all .15s var(--bn-ease);
  display: inline-block;
  letter-spacing: -.005em;
}
.bp-demo-mini__link:hover {
  color: var(--bn-text2);
  background: var(--bn-grouped);
  text-decoration: none;
}

/* ── STATUS-BANNER (oversikt) ─────────────────────────────── */
.bp-status-banner {
  display: flex;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--bn-r-lg);
  margin-bottom: 18px;
  border: 1px solid;
  align-items: flex-start;
}
.bp-status-banner__icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
}
.bp-status-banner__body { flex: 1; min-width: 0; }
.bp-status-banner__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  letter-spacing: -.012em;
}
.bp-status-banner__text {
  font-size: 13.5px;
  line-height: 1.5;
  opacity: .92;
}
.bp-status-banner__text a {
  font-weight: 600;
  text-decoration: underline;
}

/* Inaktiv (kampanje deaktivert / vendor aktiv) – RØD */
.bp-status-banner--inactive {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-color: rgba(220,38,38,.25);
  color: #7f1d1d;
}
.bp-status-banner--inactive .bp-status-banner__icon {
  background: rgba(220,38,38,.12);
  color: #b91c1c;
}
.bp-status-banner--inactive .bp-status-banner__text a {
  color: #b91c1c;
}

/* Under godkjenning (ny vendor) – GUL */
.bp-status-banner--pending {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: rgba(217,119,6,.25);
  color: #78350f;
}
.bp-status-banner--pending .bp-status-banner__icon {
  background: rgba(217,119,6,.12);
  color: #b45309;
}

/* Noen aktiv, noen ikke – BLÅ info */
.bp-status-banner--mixed {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: rgba(37,99,235,.22);
  color: #1e3a8a;
}
.bp-status-banner--mixed .bp-status-banner__icon {
  background: rgba(37,99,235,.12);
  color: #2563eb;
}

/* ── KAMPANJE-STATUS pill ─────────────────────────────────── */
.bp-camp-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: -.005em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bp-camp-status--active {
  background: rgba(34,197,94,.12);
  color: var(--bn-green-800);
}
.bp-camp-status--inactive {
  background: rgba(220,38,38,.1);
  color: var(--bn-red);
}


/* ════════════════════════════════════════════════════════════
   FINAL DESIGN POLISH — refined nordic professional
   ════════════════════════════════════════════════════════════ */

/* Page-header på alle undersider */
.bp-page-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bn-border);
}
.bp-page-header__title {
  font-family: var(--bn-font-display) !important;
  font-size: 36px !important;
  font-weight: 400 !important;
  letter-spacing: -.025em !important;
  color: var(--bn-green-950) !important;
  line-height: 1.1 !important;
  margin: 0 0 6px !important;
}
.bp-page-header__sub {
  font-size: 14px;
  color: var(--bn-text3);
  margin: 0;
  letter-spacing: -.005em;
}

/* Sidebar — minimalistisk Apple-aktig nav */
.bp-sidebar {
  border-right: 1px solid var(--bn-border) !important;
  padding: 8px !important;
}
.bp-nav-item {
  padding: 9px 12px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: -.005em !important;
  border-radius: 8px !important;
  color: var(--bn-text2) !important;
  margin-bottom: 1px;
}
.bp-nav-item__icon { opacity: .8; }
.bp-nav-item.is-active,
.bp-nav-item--active {
  background: rgba(34,197,94,.1) !important;
  color: var(--bn-green-900) !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.bp-nav-item.is-active .bp-nav-item__icon { opacity: 1; }

/* Plan-badges — mer karakter */
.bp-plan-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 11px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bp-plan-badge--basis {
  background: rgba(107,134,118,.12);
  color: var(--bn-text3);
}
.bp-plan-badge--synlig {
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(37,99,235,.18));
  color: #1e40af;
  border: 1px solid rgba(37,99,235,.2);
}
.bp-plan-badge--prioritert {
  background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(34,197,94,.22));
  color: var(--bn-green-900);
  border: 1px solid rgba(34,197,94,.28);
  box-shadow: 0 2px 6px rgba(34,197,94,.15);
}
.bp-plan-badge--top {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  color: #78350f;
  border: 1px solid rgba(217,119,6,.3);
  box-shadow: 0 2px 6px rgba(217,119,6,.2);
}

/* Status-badges (Betalt / Venter / Feilet) */
.bp-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 9999px;
  letter-spacing: -.005em;
  white-space: nowrap;
}
.bp-status-badge--paid {
  background: rgba(34,197,94,.12);
  color: var(--bn-green-800);
}
.bp-status-badge--pending {
  background: rgba(217,119,6,.12);
  color: #b45309;
}
.bp-status-badge--failed {
  background: rgba(220,38,38,.1);
  color: var(--bn-red);
}

/* Profilbilde på Hero — mer sofistikert */
.bp-profile-header__avatar {
  position: relative;
}
.bp-profile-header__avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(34,197,94,.3), transparent);
  z-index: -1;
  filter: blur(8px);
  opacity: .8;
}

/* Profilstyrke-sirkel: ekstra glow */
.bp-strength-circle-big {
  position: relative;
}
.bp-strength-circle-big::after {
  content: '';
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(34,197,94,.15) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

/* Modal-header */
.bp-modal__header {
  border-bottom: 1px solid var(--bn-border) !important;
  padding: 18px 24px !important;
}
.bp-modal__header h3 {
  font-family: var(--bn-font-display) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  letter-spacing: -.02em !important;
  color: var(--bn-green-950) !important;
}
.bp-modal__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bn-grouped) !important;
  border: none;
  color: var(--bn-text3) !important;
  font-size: 18px !important;
  cursor: pointer;
  transition: all .15s var(--bn-ease);
}
.bp-modal__close:hover {
  background: var(--bn-bg-2) !important;
  color: var(--bn-text) !important;
  transform: rotate(90deg);
}

/* Modal-body med mer luft */
.bp-modal__body {
  padding: 22px 24px !important;
}
.bp-modal__footer {
  padding: 18px 24px !important;
  border-top: 1px solid var(--bn-border) !important;
  gap: 10px !important;
}

/* Tab-knapper med subtil shadow på aktiv */
.bp-tab-btn {
  padding: 9px 14px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: -.005em !important;
  color: var(--bn-text3) !important;
}
.bp-tab-btn.is-active {
  background: #fff !important;
  color: var(--bn-text) !important;
  box-shadow: 0 1px 3px rgba(10,31,16,.08), 0 0 0 1px rgba(10,31,16,.04) !important;
}

/* Profil-card per kampanje */
.bp-campaign-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bn-surface2);
  border-radius: var(--bn-r-md);
  border: 1px solid var(--bn-border-soft);
  transition: all .15s var(--bn-ease);
}
.bp-campaign-item:hover {
  background: var(--bn-surface);
  border-color: var(--bn-border);
  box-shadow: var(--bn-shadow-xs);
}
.bp-campaign-item__img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(10,31,16,.08);
}
.bp-campaign-item__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.012em;
  color: var(--bn-text);
  margin-bottom: 4px;
}
.bp-campaign-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Kalender — mer raffinert */
.bp-calendar-day {
  border-radius: 8px !important;
  transition: all .12s var(--bn-ease) !important;
}
.bp-calendar-day:hover:not(.is-disabled) {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(10,31,16,.08);
}

/* Login footer */
.bp-login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--bn-label);
  letter-spacing: -.005em;
}
.bp-login-footer a {
  color: var(--bn-green-700);
  font-weight: 600;
  text-decoration: none;
}
.bp-login-footer a:hover { text-decoration: underline; }

/* Flexbox layout: bp-layout */
.bp-layout {
  background: transparent !important;
}
.bp-main {
  padding: 28px 32px !important;
  max-width: 1100px;
}

@media (max-width: 768px) {
  .bp-main { padding: 20px 16px !important; }
  .bp-page-header__title { font-size: 28px !important; }
}

/* Liten polering på bp-divider */
.bp-divider {
  border: none;
  border-top: 1px solid var(--bn-border);
  margin: 20px 0;
}

/* Bp-msg — bedre */
.bp-msg {
  padding: 12px 16px !important;
  border-radius: var(--bn-r-sm) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.5;
  letter-spacing: -.005em;
}
.bp-msg--success {
  background: rgba(34,197,94,.1) !important;
  color: var(--bn-green-800) !important;
  border: 1px solid rgba(34,197,94,.25) !important;
}
.bp-msg--error {
  background: rgba(220,38,38,.08) !important;
  color: var(--bn-red) !important;
  border: 1px solid rgba(220,38,38,.2) !important;
}
.bp-msg--warning {
  background: rgba(217,119,6,.1) !important;
  color: #b45309 !important;
  border: 1px solid rgba(217,119,6,.25) !important;
}
.bp-msg--info {
  background: rgba(37,99,235,.08) !important;
  color: #1e40af !important;
  border: 1px solid rgba(37,99,235,.22) !important;
}

/* Pris-kort i upgrade.php — mer sofistikert */
.bp-plan-card {
  border-radius: var(--bn-r-lg) !important;
  transition: all .25s var(--bn-ease) !important;
}
.bp-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--bn-shadow-md);
}
.bp-plan-card__name {
  font-family: var(--bn-font-display);
  font-size: 24px !important;
  font-weight: 400 !important;
  letter-spacing: -.02em !important;
  color: var(--bn-green-950) !important;
}
.bp-plan-card__price {
  font-family: var(--bn-font-display) !important;
  font-size: 40px !important;
  font-weight: 400 !important;
  letter-spacing: -.03em !important;
  color: var(--bn-green-900) !important;
  line-height: 1;
}
.bp-plan-card__price small {
  font-family: var(--bn-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -.005em !important;
  color: var(--bn-text3) !important;
  margin-left: 4px;
}

/* Card med plan-info: profil-meta */
.bp-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bn-border-soft);
  font-size: 14px;
}
.bp-meta-row:last-child { border-bottom: none; }
.bp-meta-row__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bn-label);
  min-width: 100px;
}
.bp-meta-row__value {
  color: var(--bn-text);
  font-weight: 500;
}


/* ── PENDING-LOKASJON: tydelig "venter på godkjenning" ──────── */
.bp-loc-item--pending {
  background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
  border: 1px dashed rgba(217,119,6,.35) !important;
  position: relative;
}
.bp-loc-item--pending .bp-loc-item__name {
  color: #78350f;
  font-weight: 600;
}
.bp-loc-item__type--pending {
  background: rgba(217,119,6,.18) !important;
  color: #b45309 !important;
  font-weight: 700;
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bp-loc-item__hint {
  font-size: 11px;
  color: #92400e;
  font-style: italic;
  letter-spacing: -.005em;
  margin-left: auto;
}

/* ── INLINE SPINNER (i meldinger) ───────────────────────────── */
.bp-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0,0,0,.15);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: bn-spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes bn-spin {
  to { transform: rotate(360deg); }
}

/* Stor suksess-melding etter lokasjon-add */
.bp-msg--success strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

/* ── PENDING-LOKASJON i rank-mini (Oversikt) ────────────────── */
.bp-rank-mini--pending {
  background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
  border: 1px dashed rgba(217,119,6,.35) !important;
}
.bp-rank-mini--pending .bp-rank-mini__loc {
  color: #78350f;
}


/* ════════════════════════════════════════════════════════════
   HER ER DU SYNLIG — egen prominent lokasjons-seksjon
   ════════════════════════════════════════════════════════════ */

.bp-locations-card {
  padding: 20px 22px !important;
}

/* Tom-state: "Hele Norge" */
.bp-locations-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.bp-locations-empty__icon {
  font-size: 42px;
  flex-shrink: 0;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bn-bg-2), var(--bn-grouped));
  border-radius: 16px;
  border: 1px solid var(--bn-border);
}
.bp-locations-empty__body { flex: 1; min-width: 220px; }
.bp-locations-empty__title {
  font-family: var(--bn-font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--bn-green-950);
  margin-bottom: 4px;
}
.bp-locations-empty__text {
  font-size: 13.5px;
  color: var(--bn-text3);
  line-height: 1.5;
  letter-spacing: -.005em;
}

/* Grid med lokasjon-kort */
.bp-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* Individuelt lokasjon-kort */
.bp-loc-chip {
  background: var(--bn-surface);
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-r-md);
  padding: 14px 16px;
  transition: all .15s var(--bn-ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}
.bp-loc-chip:hover {
  border-color: rgba(34,197,94,.3);
  box-shadow: 0 4px 12px rgba(10,31,16,.07);
  transform: translateY(-1px);
}
.bp-loc-chip__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bp-loc-chip__icon {
  font-size: 16px;
  flex-shrink: 0;
}
.bp-loc-chip__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.012em;
  color: var(--bn-text);
}
.bp-loc-chip__sub {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--bn-label);
}
.bp-loc-chip__sub--pending {
  color: #b45309;
  text-transform: none;
  letter-spacing: -.005em;
  font-style: italic;
  font-size: 12px;
}
.bp-loc-chip__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--bn-border-soft);
}

/* Pending state */
.bp-loc-chip--pending {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px dashed rgba(217,119,6,.35);
}
.bp-loc-chip--pending .bp-loc-chip__name { color: #78350f; }

/* Legg til-kort */
.bp-loc-chip--add {
  background: var(--bn-bg);
  border: 1.5px dashed var(--bn-border2);
  text-decoration: none;
  justify-content: center;
  align-items: center;
  min-height: 96px;
}
.bp-loc-chip--add:hover {
  background: var(--bn-surface);
  border-color: var(--bn-green-500);
  border-style: solid;
}
.bp-loc-chip--add .bp-loc-chip__head { justify-content: center; }
.bp-loc-chip--add .bp-loc-chip__name {
  color: var(--bn-green-700);
  font-size: 14px;
}
.bp-loc-chip--add .bp-loc-chip__sub {
  text-align: center;
  text-transform: none;
  letter-spacing: -.005em;
  font-weight: 500;
  color: var(--bn-label);
}

@media (max-width: 540px) {
  .bp-locations-grid {
    grid-template-columns: 1fr;
  }
}


/* ════════════════════════════════════════════════════════════
   LOKASJONS-LISTE (Her er du synlig) — minimal, matcher resten
   ════════════════════════════════════════════════════════════ */

.bp-loc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bn-surface);
  border: 1px solid var(--bn-border-soft);
  border-radius: var(--bn-r-sm);
  transition: all .15s var(--bn-ease);
  text-decoration: none;
  color: inherit;
}
.bp-loc-row + .bp-loc-row {
  margin-top: 6px;
}
.bp-loc-row:hover {
  border-color: var(--bn-border);
  background: var(--bn-surface2);
}

.bp-loc-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bn-grouped);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.bp-loc-row__main {
  flex: 1;
  min-width: 0;
}
.bp-loc-row__name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--bn-text);
  line-height: 1.2;
  margin-bottom: 2px;
}
.bp-loc-row__meta {
  font-size: 12px;
  color: var(--bn-label);
  letter-spacing: -.005em;
}

.bp-loc-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bp-loc-row__remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--bn-border);
  background: var(--bn-surface);
  color: var(--bn-label);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all .15s var(--bn-ease);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.bp-loc-row__remove:hover {
  background: var(--bn-red-bg);
  color: var(--bn-red);
  border-color: rgba(220,38,38,.25);
}

/* Hele Norge tom-state */
.bp-loc-row--norway .bp-loc-row__icon {
  background: linear-gradient(135deg, var(--bn-bg-2), var(--bn-grouped));
  border: 1px solid var(--bn-border);
}

/* Pending */
.bp-loc-row--pending {
  background: rgba(217,119,6,.06);
  border: 1px solid rgba(217,119,6,.18);
}
.bp-loc-row--pending .bp-loc-row__icon {
  background: rgba(217,119,6,.14);
  color: #b45309;
}
.bp-loc-row--pending .bp-loc-row__name { color: #78350f; }
.bp-loc-row--pending .bp-loc-row__meta { color: #b45309; font-style: italic; }

.bp-loc-row__pending-pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(217,119,6,.14);
  color: #b45309;
}

/* Legg til-rad */
.bp-loc-row--add {
  background: transparent;
  border: 1px dashed var(--bn-border2);
}
.bp-loc-row--add:hover {
  background: var(--bn-bg);
  border-color: var(--bn-green-500);
  border-style: solid;
}
.bp-loc-row--add .bp-loc-row__icon {
  background: transparent;
  border: 1px dashed var(--bn-border2);
  color: var(--bn-green-700);
  font-weight: 700;
  font-size: 20px;
}
.bp-loc-row--add:hover .bp-loc-row__icon {
  background: var(--bn-green-50);
  border: 1px solid var(--bn-green-500);
}
.bp-loc-row--add .bp-loc-row__name {
  color: var(--bn-green-700);
}
