/* =========================
   ROOT & BAS
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}


:root{
  --accent:#4C9B50;
  accent-color:var(--accent);
}

body.no-scroll {
  overflow: visible;
}

.public-page {
  min-height: 100vh;
  background: #0f1117;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.page-container{
	flex:1;
  max-width:1200px;
  margin:0 auto;
  padding:20px 16px 80px;
}

/* =========================
   KORT & GRID
========================= */
.config-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
}
@media(max-width:950px){
  .config-grid{grid-template-columns:1fr;}
}

.config-card{
  background:rgba(26,29,37,.92);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:18px;
   overflow: visible; 
}

/* =========================
   RUBRIKER
========================= */
.config-card h2{
  margin:0 0 12px;
  font-size:15px;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#cfd3dc;
  display:flex;
  gap:10px;
  align-items:center;
}

/* =========================
   KNAPPGRUPPER
========================= */
.btn-group{
  display:flex;
  gap:6px;
  background:rgba(15,17,23,.85);
  padding:6px;
  border-radius:14px;
  margin-bottom:14px;
}

.btn-group img, .info-popup img{
height:18px;
width:18px;
vertical-align:top;}

.button{
  flex:1;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(15,17,23,.9);
  border:1px solid rgba(255,255,255,.08);
  color:#cfd3dc;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:.15s ease;
}

.button.is-active{
  border-color:var(--accent);
  background:rgba(255,255,255,.06);
  color:#fff;
}

[class^="dropdown-container-"] {
  border: 1px solid var(--accent);
  border-radius: 10px;   /* matcha .selected */
  overflow: visible;
  position: relative;
}

.selected {
  background: #1a1a1a;
  padding: 10px 14px;
  border-radius: 10px;   /* samma här */
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #e0e0e0;
}




/* =========================
   RADIOGRUPPER (NY MODELL)
========================= */
.radiogroup{
  display:none;
  padding:10px 0;
}

.radiogroup.is-active{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

@media(max-width:600px){
  .radiogroup.is-active{
    grid-template-columns:repeat(2,1fr);
  }
}

.radiocontainer{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:10px;
  border-radius:12px;
  background:rgba(15,17,23,.9);
  cursor:pointer;
}

/* =========================
   SELECT
========================= */
select{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(15,17,23,.9);

  color:#fff;
  appearance:none;
}

/* =========================
   MATTEKNAPP
========================= */
#mabutton img{
  width:18px;
  height:18px;
  opacity:1;
}


.matte-hidden{
    display:none !important;
}


/* =========================
   MOBIL
========================= */
@media(max-width:520px){
  .btn-group{flex-wrap:wrap;}
  .btn-group .button{flex:1 1 100%;}
}


.public-page div[id^="dropdown-container-"]{
  position: relative;
}

.select-icon{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  pointer-events:none;
  z-index:2;
}

.public-page select{
  position:relative;
  z-index:1;
}

/* Justera vertikal startpunkt så vänster = höger */
.controls-row{
  margin-top: 6px;          /* finjustera vid behov */
  display: flex;
  flex-direction: column;
}

/* Radiogrupper ska inte trycka ned sig själva */
.radiogroup{
  padding-top: 0;
  margin-top: 0;
}

/* Slump – slider ska ta hela bredden */
#slidecontainerq{
  width: 100%;
  margin-top: 12px;
}

#slidecontainerq{
  padding: 10px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
}


/* Själva slidern */
#slidecontainerq input[type="range"]{
  width: 100%;
}

/* Label under slidern */
#slidecontainerq .sliderllabel{
  display: block;
  width:auto;
  margin-top: 6px;
  margin-left:6px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  }
  
#slidecontainer,
#slidecontainerq{
  display: flex;
  align-items: center;
  gap: 16px;
}

.sliderl{
  flex: 1 1 auto;   /* slidern tar resterande plats */
}

.sliderllabel{
  flex: 0 0 auto;   /* label får sitt naturliga utrymme */
  white-space: nowrap;
}

/* === TIDSKRAV SWITCH === */

.toggle{
  display:inline-block;
}

.toggle input{
  display:none;
}

.toggle-track{
  display:flex;
  width:120px;
  background:#111;
  border-radius:999px;
  padding:4px;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.15);
}

.toggle-track span{
  flex:1;
  text-align:center;
  padding:6px 0;
  font-weight:700;
  font-size:14px;
  opacity:.4;
  transition:opacity .2s ease;
  border:1px solid transparent;   /* <-- saknas */
  border-radius:999px;    
}

/* PÅ */
.toggle input:checked + .toggle-track .on{
  opacity:1;
  }
  
  .toggle input:checked + .toggle-track{
  border:1px solid var(--accent);
}


/* AV */
.toggle input:not(:checked) + .toggle-track .off{
  opacity:1;
}



/* === TIDSKRAV: tvinga allt på en rad === */
.rounddivs.time-row{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  flex-wrap:nowrap !important;
}

/* Toggle får inte ta 100% */
.rounddivs.time-row .toggle{
  flex:0 0 auto !important;
}

/* Rekommenderad: stoppa fullbredd från .button */
#timerdiv.time-reco{
  display:inline-flex !important;
  width:auto !important;
  margin:0 !important;
  flex:0 0 auto !important;
  white-space:nowrap !important;
}

/* Slider-raden: tar resten av bredden */
#slidecontainer.time-slider{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  flex:1 1 auto !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  min-width:0 !important;
}

/* Själva slidern ska växa */
#slidecontainer.time-slider input[type="range"]{
  flex:1 1 auto !important;
  min-width:120px !important;
}

/* Label: nowrap + lite utrymme */
#slidecontainer.time-slider .sliderllabel{
  white-space:nowrap !important;
  min-width:120px !important;
  text-align:right !important;
}

/* Mobil: bryt snyggt */
@media (max-width:700px){
  .rounddivs.time-row{ flex-wrap:wrap !important; }
  #slidecontainer.time-slider{ flex:1 1 100% !important; }
}

/* default: AV */
#timeRow .time-reco,
#timeRow .time-slider{
  display:none;
}

/* PÅ */
#timeRow.is-on .time-reco,
#timeRow.is-on .time-slider{
  display:flex;
}

/* ===== TIMER: hård override (måste ligga SIST) ===== */

/* AV-läge: dölj alltid */
#timeRow:not(.is-on) #timerdiv,
#timeRow:not(.is-on) #slidecontainer{
  display:none !important;
}

/* PÅ-läge: visa */
#timeRow.is-on #timerdiv{
  display:inline-flex !important;
}

#timeRow.is-on #slidecontainer{
  display:flex !important;
}

#timerdiv.is-active{
  border-color: var(--accent);
  background: rgba(255,255,255,.08);
  color:#fff;
}


input[type="radio"],
input[type="range"],
select {
  cursor: pointer;
}

.radiocontainer input[type="radio"]{
  display:none;
}

.radiocontainer{
  background:rgba(15,17,23,.9);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:10px 14px;
  display:flex;
  justify-content:center;
  align-items:center;
  cursor:pointer;
  transition:.15s ease;
}

.radiocontainer input[type="radio"]:checked + .checkmark,
.radiocontainer.is-active{
  border-color:var(--accent);
  background:rgba(255,255,255,.06);
  color:#fff;
}


/* =========================
   DELPROV - RADIOSTYLE 2.0
========================= */

.radiogroup{
  display:none;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.radiogroup.is-active{
  display:grid;
}

@media(max-width:600px){
  .radiogroup.is-active{
    grid-template-columns:repeat(2,1fr);
  }
}

/* Dölj riktiga radios */
.radiocontainer input[type="radio"]{
  display:none;
}

.radiocontainer{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  background:rgba(15,17,23,.9);
  border:1px solid rgba(255,255,255,.08);
  cursor:pointer;
  transition:.15s ease;
}

.radiocontainer:hover, .btn-group .button:hover, .toggle-track:hover, .time-reco:hover{
  background:rgba(255,255,255,.04);
}

/* Aktiv */
.radiocontainer.is-active{
  border-color:var(--accent);
  background:rgba(255,255,255,.08);
  color:white;
}

/* Ikoner */
.radiocontainer .icon{
  width:18px;
  height:18px;
  opacity:.9;
}

/* =========================
   RING RUNT VALD DELPROV
========================= */

.radiocontainer{
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:10px 12px;
  transition:.15s ease;
}

/* highlight när valt */
.radiocontainer:has(input:checked){
  border-color: var(--accent);
  background: rgba(255,255,255,.06);
}

.upgrade-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    z-index:9999;

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.2s;
}

.upgrade-modal.show{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}



.upgrade-modal .modal-content{

    width: min(520px, 92vw);

    background: linear-gradient(180deg,#0f172a,#0b1220);

    border-radius:18px;

    box-shadow:
        0 25px 80px rgba(0,0,0,.6);

    overflow:hidden;

    animation: modalPop .18s ease;
}

@keyframes modalPop{
    from{
        transform:scale(.92);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

.upgrade-modal .modal-header{
    padding:18px 22px;

    background:linear-gradient(90deg,#020617,#020617);

    font-weight:600;
}

.upgrade-modal .modal-header i{
margin-right:16px;
}

.upgrade-modal .modal-body{
    padding:22px;
    line-height:1.6;
}


.upgrade-modal .modal-close{
    cursor:pointer;
    font-size:20px;
    opacity:.7;
}

.upgrade-modal .modal-close:hover{
    opacity:1;
}

.upgrade-modal .modal-btn{

    appearance:none;
    border:none;

    padding:12px 22px;
    border-radius:10px;

    font-weight:600;
    font-size:15px;

    cursor:pointer;

    background:linear-gradient(135deg,#3b82f6,#2563eb);
    color:white;

    box-shadow:
        0 6px 18px rgba(37,99,235,.35);

    transition:.18s ease;
}

/* hover */
.upgrade-modal .modal-btn:hover{
    transform:translateY(-2px);
    box-shadow:
        0 10px 26px rgba(37,99,235,.45);
}

/* klick */
.upgrade-modal .modal-btn:active{
    transform:translateY(0);
    box-shadow:
        0 4px 12px rgba(37,99,235,.35);
}

.locked-panel{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    height:110px;
    border-radius:14px;

    background:rgba(255,255,255,.03);
    border:1px dashed rgba(255,255,255,.12);

    color:#9ca3af;
    font-size:14px;
    text-align:center;
}

.is-hidden{
    display:none !important;
}


.locked-panel i{
    font-size:22px;
    margin-bottom:6px;
    opacity:.7;
}

.upgrade-link{
    margin-top:6px;
    color:#38bdf8;
    text-decoration:none;
    font-weight:600;
}

.cta-primary {
  position: relative;

}

.cta-primary.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  animation: shimmerMove 0.8s ease-out;
}

.cta-primary.shimmer {
  overflow: hidden;
}

@keyframes shimmerMove {
  from { left: -150%; }
  to { left: 150%; }
}

html {
  height: 100%;
  overflow-x: hidden!important;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}


.public-page {
  min-height: 100vh;
}


.alert {
  position: relative;
  background: linear-gradient(180deg, rgba(17,22,32,.9), rgba(10,14,20,.95));
  padding: 20px 22px;
  border-radius: 12px;
  max-width: 720px;
  margin-bottom: 12px;
  box-sizing: border-box; /* viktigt för renare border */
  animation: alertIn 1s cubic-bezier(.22,.9,.3,1) both;
}

@keyframes alertIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;        /* ändrat */
  bottom: 0;     /* ändrat */
  width: 4px;
  background: linear-gradient(to bottom, #38bdf8, #0ea5e9);
  border-radius: 4px;
}

.alert p {
  margin: 6px 0 0 0;      /* små och kontrollerade marginaler */
  color: #e2e8f0;         /* ljus text på mörk bakgrund */
  font-size: 0.95rem;     /* lite mindre än normal brödtext */
  line-height: 1.45;      /* bättre läsbarhet */
}

.alert p:first-of-type {
  margin-top: 0;          /* börja alerten tight upptill */
}

.alert.success,
.alert.error,
.alert.info {
  border-left: none;
}

.alert.success::before {
  background: linear-gradient(to bottom, #4CAF50, #2f7d36);
}

.alert.error::before {
  background: linear-gradient(to bottom, #f00, #b30000);
}

.alert.info::before {
  background: linear-gradient(to bottom, #38bdf8, #0ea5e9);
}

.title-with-info{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.info-icon{
  position:relative;
  color:rgb(207, 211, 220);
  cursor:pointer;
  margin-left: auto;
  margin-right: 16px;
  transition: transform 0.15s ease;
}

.info-icon:hover {
    transform: scale(1.11);
    
box-shadow:
    0 2px 4px rgba(255,255,255,0.12),
    0 6px 12px rgba(0,0,0,0.6);


}
.info-popup {
  position: absolute;
  right: 0;
  bottom: 22px;
  width: 440px;
  background: linear-gradient(180deg, rgba(17,22,32,.8), rgba(10,14,20,.85));
  padding: 14px 14px 14px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-size: 13px;
  line-height: 1.2;
  color: #e5e7eb;
  font-weight: 400;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; /* valfritt */
  backdrop-filter: blur(6px);

  max-height: 40vh;
  overflow-y: auto; /* eller auto om du verkligen vill visa scrollbar */
  will-change: opacity, transform;
    display:flex;
  flex-direction:column;
  gap:4px;
}

.info-popup{
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.28) transparent;
}

.info-popup::-webkit-scrollbar{
  width:8px;
}

.info-popup::-webkit-scrollbar-track{
  background:transparent;
}

.info-popup::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.22);
  border-radius:20px;
  border:2px solid transparent;
  background-clip:padding-box;

  transition:background .2s ease;
}

.info-popup::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,.38);
  background-clip:padding-box;
}

.info-popup-head,
.info-popup-header {
  display:block;
}

.info-popup.popup-down {
  top: 22px;
  bottom: auto;
}

.info-popup::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0px;
  bottom: 0px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, #38bdf8, #0ea5e9);
  box-shadow: 0 0 8px rgba(56,189,248,.7);

  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease-out 0.2s;
}

.info-icon:hover .info-popup::before { 
  transform: scaleY(1);
}


/* Visa popupen vid hover */
.info-icon:hover .info-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.info-popup .info-popup-header {
	font-size:15px;
	margin-bottom:0px;
}

.info-popup img{
	height:18px;
	weidth:18px;
}

.info-popup p{
	  font-weight: 400;
  font-size: 13px;
    line-height: 1.4;
    color: rgb(229, 231, 235);
}

.info-popup .badge{
font-weight: 700;
  font-size: 11px;
    line-height: 1;
	padding:2px 6px;
	margin-top:0;
}

.info-popup .badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width:42px;

  margin-right:8px;
  vertical-align:middle;
}


	  

.info-popup span{
vertical-align:middle;
 align-items:center;
 margin-bottom:0;
}

.info-popup img {
  width:15px;
  height:auto;
  vertical-align:middle;
  margin:0 2px 1px 0px;
  opacity:0.9;
}

.info-row{
  display:flex;
  align-items:center;
  gap:4px;
  margin:2px 0;
}


.info-popup-head{
  display:flex;
  align-items:center;
  gap:8px;

  margin-top:8px;
  margin-bottom:0px;

  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;

  color:#cbd5e1;
}

.info-popup-head i{
  width:14px;
  text-align:center;
  opacity:.9;
}
	

.kpi-norm-badge {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  padding: 5px 12px;
  border-radius: 6px;
  border: 0.5px solid rgba(255,255,255,.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kpi-norm-badge strong {
  color: #fbbf24;
  font-weight: 700;
  font-size: 13px;
}

.kpi-norm-label {
  font-size: 10px;
  color: rgba(255,255,255,.25);
  margin-top: 3px;
  letter-spacing: .04em;
}

/* ===== WELCOME TOAST ===== */

.test-toast {
  position: fixed !important;
  top: 24px !important;
  right: 24px !important;
  transform: translateX(calc(100% + 48px));

  width: 360px;
  padding: 18px 20px;

  display: block !important;     /* 💥 bryt grid/flex */
  grid-template-columns: none !important;
  flex-direction: column !important;

  border-radius: 16px;
  background: linear-gradient(135deg,#0f172a,#1e293b);
  color: #fff;

  box-shadow: 0 25px 60px rgba(0,0,0,.45);
 
  opacity: 0;
transition: transform 0.55s cubic-bezier(.34,1.56,.64,1), opacity 0.3s ease;
z-index:9999999999;
}

.test-toast.show {
  transform: translateX(0); /* ← DENNA SAKNAS */
  opacity: 1;
}

/* Inner frosted card */
.test-toast-inner {
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 18.5px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  overflow: hidden;
    text-align:center;
	overflow: visible;
}

/* Subtle shimmer streak */
.test-toast-inner::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: skewX(-20deg);
  animation: shimmers 3.5s ease-in-out infinite;
}

@keyframes shimmers {
  0%   { left: -60%; }
  50%  { left: 120%; }
  100% { left: 120%; }
}

.test-toast-header {
  display: flex;
  flex-direction: column;  /* stapla ikonen ovanför texten */
  align-items: center;     /* centrera horisontellt */
  gap: 8px;
  text-align: center;
}

.test-toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}

.test-toast-icon img {
    width: 22px;
    height: 22px;
	animation: tossAndSpin 1.5s ease-in-out 1.5s forwards;
}

.test-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: #1ed760;
  transform-origin: left;
  transform: scaleX(1);
}

.test-toast.show .test-toast-progress {
  animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@keyframes tossAndSpin {

  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    animation-timing-function: ease-out;
  }

  45% {
    transform: translateY(-45px) translateX(-5px) rotate(180deg) scale(0.4);
    animation-timing-function: ease-in;
  }

  80% {
    transform: translateY(0) rotate(320deg) scale(1);
  }

  90% {
    transform: translateY(-5px) rotate(360deg) scale(1);
  }

  100% {
    transform: translateY(0)  rotate(360deg) scale(1);
  }

}

body > #testToast.test-toast {
    transform: translateX(calc(100% + 48px)) !important;
}

body > #testToast.test-toast.show {
    transform: translateX(0) !important;
}

body > #testToast.test-toast {
    position: fixed !important;
    transform: translateX(calc(100% + 48px)) !important;
    right: 24px !important;
    top: 24px !important;
    z-index: 9999999999 !important;
}

body > #testToast.test-toast.show {
    transform: translateX(0) !important;
    opacity: 1 !important;
}
.custom-select {
  position: relative;
  width: 100%;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}

/* ===== HEADER ===== */
.selected, .custom-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  font-size: 13px;
  color: #fff;
  background: rgba(15,17,23,.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}

.selected .fa-chevron-down {
  font-size: 11px;
  opacity: 0.5;
  transition: transform 0.2s;
}

.custom-select.open .selected .fa-chevron-down {
  transform: rotate(180deg);
}

/* ===== DROPDOWN ===== */
.options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #161819;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  margin-top: 6px;
  padding: 6px 0 10px;
  z-index: 999;
  scrollbar-width: thin;
  scrollbar-color: #2e3440 transparent;
}

.options::-webkit-scrollbar {
  width: 4px;
}

.options::-webkit-scrollbar-track {
  background: transparent;
}

.options::-webkit-scrollbar-thumb {
  background: #2e3440;
  border-radius: 4px;
}

.options::-webkit-scrollbar-thumb:hover {
  background: #3d4455;
}

.custom-select.open .options {
  display: block;
}

/* uppåt */
.custom-select.open-up .options {
  bottom: 100%;
  top: auto;
  margin-bottom: 6px;
}

/* ===== GROUP ===== */
.optgroup {
  margin-top: 6px;
}

.optgroup:first-child {
  margin-top: 0;
}

/* 🔥 GROUP LABEL (fixad) */
.optgroup-label {
  padding: 8px 14px 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
cursor: default;
}

/* ===== OPTIONS ===== */
.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: background 0.15s;
  font-weight: 400;
}

/* 🔥 INDENT (tydligare) */
.optgroup .option {
  padding-left: 30px;
}

/* 🔥 "ALLA INOM" = mindre indent */
.optgroup .option:first-of-type {
  padding-left: 14px;
  font-weight: 500;
  color: #fff;
}

/* hover */
.option:hover {
  background: rgba(255,255,255,0.09);
  color: #fff;
  font-weight:600;
}

/* selected */
.option.selected,
.option.selected-item {
  background: rgba(255,255,255,0.09);
  color: #fff;
}

/* locked */
.option[data-locked="1"] {
  color: rgba(255,255,255,0.55);
  cursor: default;
}

.option[data-locked="1"]:hover {
  background: transparent;
}

/* icon */
.option .fa-lock {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* layout fixes */
body {
  overflow-x: hidden;
  overflow-y: auto;
}

.page-container {
  height: auto;
  overflow-y: visible;
}

/* remove old lock */
.lock {
  display: none;
}

.custom-select.open-up .options {
  bottom: 100%;
  top: auto;
  margin-top: 0;
  margin-bottom: 6px;
}

.option-label {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.option-label, .selected {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.option.locked {
  color: rgba(255,255,255,0.55);
  cursor: default;
}

.option.locked:hover {
  background: transparent;
}

/* =========================
   LIGHTER MODERN CONFIG UI
========================= */

.config-grid {
  gap: 22px;
}

.config-card {
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 18px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(0,0,0,.24);
}

.config-card h2 {
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.72);
}

.btn-group {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  padding: 5px;
  border-radius: 14px;
  gap: 6px;
}

.button {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,.68);
  border-radius: 11px;
  padding: 10px 12px;
  box-shadow: none;
}

.button:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}

.button.is-active {
  background: rgba(255,255,255,.10);
  border-color: rgba(76,155,80,.75);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(76,155,80,.15);
}

.radiogroup.is-active {
  gap: 10px;
  padding-top: 2px;
}

.radiocontainer {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 11px 12px;
  box-shadow: none;
}

.radiocontainer:hover {
  background: rgba(255,255,255,.075);
}

.radiocontainer.is-active,
.radiocontainer:has(input:checked) {
  background: rgba(76,155,80,.14);
  border-color: rgba(76,155,80,.9);
  box-shadow: 0 0 0 1px rgba(76,155,80,.12);
}

/* lite lugnare badges */
.badge {
  box-shadow: none !important;
  filter: saturate(.9);
}

/* dropdown/select lättare */
.selected,
.custom-select {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
}

.options {
  background: rgba(18,22,30,.96);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

.cta-primary,
.start-button {
  border-radius: 14px;
  padding: 14px 34px;
  background: linear-gradient(135deg, #35d46a, #22c55e);
  color: #07120b;
  font-weight: 800;
  border: none;
  box-shadow: 0 14px 34px rgba(34,197,94,.25);
}

.cta-primary:hover,
.start-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(34,197,94,.32);
}

.cta-primary,
.start-button {
  background: linear-gradient(135deg, #37e06f, #22c55e);
  color: #06120a;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(34,197,94,.28);
}

.cta-primary:hover,
.start-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(34,197,94,.36);
}

.config-card {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(18,24,34,.84), rgba(18,24,34,.84)) padding-box,
    radial-gradient(
      circle at 12% 0%,
      rgba(255,255,255,.55),
      rgba(255,255,255,.18) 16%,
      transparent 34%
    ) border-box,
    radial-gradient(
      circle at 88% 100%,
      rgba(76,155,80,.38),
      rgba(76,155,80,.12) 18%,
      transparent 36%
    ) border-box,
    linear-gradient(
      135deg,
      rgba(255,255,255,.08),
      rgba(255,255,255,.02)
    ) border-box;
}

