:root{
  /* Noesis dark navy */
  --bg0:#050816;        /* darkest */
  --bg1:#070b18;        /* main background */
  --panel:#0a1126;      /* cards */
  --panel2:#081022;
  --border:#1a2740;

  --text:#e8eef6;
  --muted:#9fb0c3;

  /* Gold accents */
  --gold:#f6c356;
  --gold2:#ffd37d;

  /* Subtle logo glow (very low opacity) */
  --glowBlue: rgba(62,155,255,0.07);
  --glowTeal: rgba(90,210,220,0.05);
  --glowGold: rgba(246,195,86,0.05);

  --shadow: 0 14px 38px rgba(0,0,0,0.45);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);

  /* IMPORTANT: no stripes, no repeating gradients */
  background:
    radial-gradient(900px 600px at 72% 18%, var(--glowBlue), transparent 62%),
    radial-gradient(900px 650px at 24% 16%, var(--glowTeal), transparent 60%),
    radial-gradient(900px 650px at 70% 75%, var(--glowGold), transparent 65%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment: fixed;
}

header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  border-bottom:1px solid rgba(26,39,64,0.9);
  background: linear-gradient(180deg, rgba(10,17,38,0.96), rgba(7,11,24,0.82));
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand img{
  width:28px;
  height:28px;
  border-radius:8px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

/* Locked / Pro-only visual state (visible but unclickable) */
.opaque{
  opacity:0.45;
}
button[disabled], input[disabled], select[disabled]{
  opacity:0.45;
  cursor:not-allowed;
}
.locked-wrap{
  opacity:0.45;
}
.locked-wrap *{
  pointer-events:none;
}

nav a{
  color:var(--muted);
  text-decoration:none;
  margin-left:14px;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
nav a:hover{
  color:var(--text);
  border-color: rgba(246,195,86,0.22);
  background: rgba(246,195,86,0.06);
}

main{ padding:18px; max-width:1000px; margin:0 auto; }

.muted{ color:var(--muted); }

.card{
  background: linear-gradient(180deg, rgba(10,17,38,0.90), rgba(8,16,34,0.90));
  border:1px solid rgba(26,39,64,0.95);
  border-radius:18px;
  padding:16px;
  box-shadow: var(--shadow);
  margin-bottom:14px;
}

.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

label{
  display:block;
  margin-top:10px;
  margin-bottom:6px;
  color:var(--muted);
  font-size:13px;
}

input, select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(26,39,64,0.95);
  background: rgba(5,8,22,0.70);
  color:var(--text);
  outline:none;
}
input:focus, select:focus{
  border-color: rgba(246,195,86,0.55);
  box-shadow: 0 0 0 3px rgba(246,195,86,0.10);
}

/* Buttons */
.btn{
  appearance:none;
  border:none;
  color:#0b1022;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  font-weight:700;
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}
.btn:hover{ filter:brightness(1.03); }
.btn:active{ transform: translateY(1px); }

.btn.secondary{
  background: rgba(5,8,22,0.55);
  color: var(--text);
  border:1px solid rgba(26,39,64,0.95);
  box-shadow:none;
}
.btn.secondary:hover{
  border-color: rgba(246,195,86,0.28);
  background: rgba(5,8,22,0.72);
}
.btn.secondary.selected{
  border-color: rgba(246,195,86,0.55);
  box-shadow: 0 0 0 3px rgba(246,195,86,0.10);
}

/* Sliders (restore clean gold look) */
input[type=range]{
  width:100%;
  accent-color: var(--gold);
  background: transparent;
}

input[type=range]::-webkit-slider-runnable-track{
  height:8px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(246,195,86,0.30), rgba(246,195,86,0.65));
  border:1px solid rgba(26,39,64,0.85);
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:18px; height:18px;
  border-radius:50%;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  border:1px solid rgba(255,255,255,0.18);
  margin-top:-6px;
}

input[type=range]::-moz-range-track{
  height:8px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(246,195,86,0.30), rgba(246,195,86,0.65));
  border:1px solid rgba(26,39,64,0.85);
}
input[type=range]::-moz-range-thumb{
  width:18px; height:18px;
  border-radius:50%;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  border:1px solid rgba(255,255,255,0.18);
}

/* Floating add */
.fab{
  position:fixed;
  right:18px;
  bottom:18px;
  width:56px;
  height:56px;
  border-radius:18px;
  border:1px solid rgba(246,195,86,0.35);
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color:#0b1022;
  font-size:28px;
  cursor:pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.50);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:100;
}
.modal.open{ display:flex; }

.panel{
  width:min(520px, 100%);
  background: linear-gradient(180deg, rgba(10,17,38,0.96), rgba(8,16,34,0.96));
  border:1px solid rgba(26,39,64,0.95);
  border-radius:18px;
  padding:16px;
  box-shadow: var(--shadow);
}

/* Calm single range default: neutral track + gold thumb */
input[type=range]::-webkit-slider-runnable-track{
  background: rgba(159,176,195,0.16);
  border: 1px solid rgba(26,39,64,0.85);
}
input[type=range]::-moz-range-track{
  background: rgba(159,176,195,0.16);
  border: 1px solid rgba(26,39,64,0.85);
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.switch input { display:none; }
.switch .slider {
  position:absolute; cursor:pointer;
  inset:0;
  background:#17202c;
  border:1px solid #1f2a37;
  border-radius:999px;
  transition:0.2s;
}
.switch .slider:before{
  content:"";
  position:absolute;
  height:20px; width:20px;
  left:3px; top:2px;
  background:#e6edf3;
  border-radius:50%;
  transition:0.2s;
}
.switch input:checked + .slider{
  background: rgba(214, 172, 94, 0.18);
  border-color: rgba(214, 172, 94, 0.45);
}
.switch input:checked + .slider:before{
  transform: translateX(20px);
  background: #d6ac5e; /* gold knob */
}

/* Feedback pills (used in index.html) */
button.pill {
  appearance: none;
  border: 1px solid rgba(159,176,195,0.35);
  background: rgba(15,22,32,0.55); /* dark navy */
  color: rgba(230,237,243,0.92);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: 120ms ease;
}

button.pill:hover {
  border-color: rgba(246,195,86,0.35);
}

button.pill.selected {
  background: rgba(230,237,243,0.92); /* turns white when selected */
  color: rgba(11,15,20,0.95);
  border-color: rgba(230,237,243,0.65);
}

nav a { position: relative; }

.notif-dot{
  display:inline-block;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#ff3b30;
  position:absolute;
  top:6px;
  right:-6px;
  box-shadow: 0 0 0 2px rgba(11,16,32,1);
}