:root{
  --bg-0:#fbf3df;
  --bg-1:#f6e8c7;
  --bg-2:#efd9a8;

  --card:#fffaf0;
  --card-2:#fff3db;
  --stroke:#2a1f17;
  --stroke-soft: rgba(42,31,23,.18);

  --text:#2a1f17;
  --muted: rgba(42,31,23,.68);

  --accent:#c08b3e;     /* warm gold */
  --accent-2:#7d4e2d;   /* warm brown */
  --good:#2e7d32;
  --warn:#b45309;
  --bad:#b91c1c;

  --shadow: 0 16px 40px rgba(42,31,23,.14);
  --shadow-soft: 0 10px 24px rgba(42,31,23,.10);

  --r-1: 14px;
  --r-2: 18px;
  --r-3: 26px;

  --pad-1: 10px;
  --pad-2: 14px;
  --pad-3: 18px;
  --pad-4: 22px;

  --font: "Nunito", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  --hand: "Patrick Hand", ui-rounded, "Comic Sans MS", cursive;

  --max: 1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg,var(--bg-0),var(--bg-1));
}

a{color:inherit; text-decoration:none}
.hidden{display:none !important}

/* Background “aloka.love-ish” vibe */
.bg{
  position:fixed;
  inset:0;
  z-index:-2;
  background: radial-gradient(1400px 700px at 50% 0%, rgba(255,255,255,.65), transparent 60%),
              linear-gradient(180deg, var(--bg-0), var(--bg-2));
}
.bg__mist{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 260px at 30% 42%, rgba(255,255,255,.45), transparent 70%),
    radial-gradient(900px 260px at 70% 55%, rgba(255,255,255,.35), transparent 70%);
  filter: blur(1px);
  opacity:.9;
}
.bg__mountains{
  position:absolute;
  inset:auto 0 0 0;
  height: 58vh;
  background:
    radial-gradient(700px 380px at 15% 70%, rgba(125,78,45,.22), transparent 65%),
    radial-gradient(850px 420px at 52% 85%, rgba(125,78,45,.18), transparent 62%),
    radial-gradient(900px 500px at 92% 75%, rgba(125,78,45,.20), transparent 66%);
  opacity:.9;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  background: rgba(251,243,223,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42,31,23,.10);
}
.brand{
  display:flex;
  gap:10px;
  align-items:baseline;
}
.brand__mark{
  font-family: var(--hand);
  letter-spacing: .8px;
  font-size: 28px;
  line-height: 1;
  padding: 2px 10px;
  border: 2px solid rgba(42,31,23,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
}
.brand__sub{
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.topbar__right{
  display:flex;
  gap:10px;
  align-items:center;
}
.iconBtn{
  border:1px solid rgba(42,31,23,.18);
  background: rgba(255,255,255,.55);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
  cursor:pointer;
}
.iconBtn:active{transform: translateY(1px)}

.userChip{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid rgba(42,31,23,.18);
  background: rgba(255,255,255,.55);
  box-shadow: var(--shadow-soft);
}
.userChip__dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(46,125,50,.15);
}
.userChip__name{font-weight:800; font-size:13px}
.userChip__meta{font-size:12px;color:var(--muted)}

/* Layout */
.shell{
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 14px 22px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 960px){
  .shell{grid-template-columns: 320px 1fr; align-items:start;}
  .sidebar{position:sticky; top:76px;}
}

.sidebar{
  border-radius: var(--r-3);
  padding: 14px;
  border: 1px solid rgba(42,31,23,.12);
  background: rgba(255,250,240,.65);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.sidebar__card{
  border-radius: var(--r-2);
  border: 1px solid rgba(42,31,23,.12);
  background: rgba(255,255,255,.6);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}
.sidebar__footer{margin-top:12px; opacity:.9}

.content{
  min-height: calc(100vh - 170px);
}

.footer{
  padding: 18px 14px 26px;
  color: rgba(42,31,23,.65);
}
.footer__inner{
  max-width: var(--max);
  margin: 0 auto;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

/* Aloka badge */
.alokaBadge{
  display:flex;
  gap:12px;
  align-items:center;
}
.alokaBadge__img{
  width:62px;height:62px;
  object-fit:contain;
  border-radius: 16px;
  border: 1px solid rgba(42,31,23,.12);
  background: rgba(255,255,255,.7);
}
.alokaBadge__title{
  font-family: var(--hand);
  font-size: 18px;
  line-height: 1.1;
}
.alokaBadge__subtitle{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

/* Nav */
.nav{display:flex;flex-direction:column; gap:10px; margin-top:12px}
.nav__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(42,31,23,.12);
  background: rgba(255,255,255,.6);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  cursor:pointer;
}
.nav__item:hover{background: rgba(255,255,255,.78)}
.nav__item--active{
  outline: 3px solid rgba(192,139,62,.25);
  border-color: rgba(192,139,62,.40);
}
.nav__item--danger{
  color: var(--bad);
}

/* UI System: cards, buttons, inputs */
.card{
  border-radius: var(--r-3);
  border: 1px solid rgba(42,31,23,.12);
  background: rgba(255,250,240,.76);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: var(--pad-4);
}
.card--flat{box-shadow: var(--shadow-soft); border-radius: var(--r-2)}
.card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom: 14px;
}
.h1{
  font-family: var(--hand);
  font-size: 42px;
  line-height:1;
  margin: 0 0 6px 0;
}
.h2{
  font-family: var(--hand);
  font-size: 28px;
  line-height:1.1;
  margin: 0 0 8px 0;
}
.sub{
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.grid{
  display:grid;
  gap: 12px;
}
.grid-2{grid-template-columns: 1fr}
.grid-3{grid-template-columns: 1fr}
@media (min-width: 700px){
  .grid-2{grid-template-columns: 1fr 1fr}
  .grid-3{grid-template-columns: 1fr 1fr 1fr}
}

.btnRow{display:flex; gap:10px; flex-wrap:wrap}
.btn{
  border: 1px solid rgba(42,31,23,.18);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255,255,255,.6);
  box-shadow: var(--shadow-soft);
  font-weight: 900;
  cursor:pointer;
}
.btn:active{transform: translateY(1px)}
.btn--primary{
  background: linear-gradient(180deg, rgba(192,139,62,.30), rgba(255,255,255,.55));
  border-color: rgba(192,139,62,.45);
}
.btn--soft{
  background: rgba(255,243,219,.75);
}
.btn--danger{
  border-color: rgba(185,28,28,.35);
  color: var(--bad);
}

.input, .select, .textarea{
  width:100%;
  border: 1px solid rgba(42,31,23,.18);
  background: rgba(255,255,255,.65);
  border-radius: 14px;
  padding: 12px 12px;
  font-weight: 800;
  color: var(--text);
  outline:none;
  box-shadow: var(--shadow-soft);
}
.label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
  margin: 10px 0 6px;
}
.help{
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(42,31,23,.12);
  background: rgba(255,255,255,.55);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}
.pill__dot{width:10px;height:10px;border-radius:999px;background: var(--accent)}

.kpi{
  border-radius: var(--r-2);
  padding: 14px;
  border: 1px solid rgba(42,31,23,.12);
  background: rgba(255,255,255,.6);
  box-shadow: var(--shadow-soft);
}
.kpi__val{font-size: 22px; font-weight: 1000}
.kpi__lbl{color: var(--muted); font-weight: 900; font-size: 12px}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.hr{
  height:1px;
  background: rgba(42,31,23,.12);
  margin: 14px 0;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(42,31,23,.12);
  background: rgba(255,255,255,.55);
  font-weight: 900;
  font-size: 12px;
}
.badge--good{color: var(--good)}
.badge--warn{color: var(--warn)}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.table th{
  text-align:left;
  font-size: 12px;
  color: var(--muted);
  font-weight: 1000;
  padding: 0 10px 6px;
}
.table td{
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(42,31,23,.12);
  padding: 12px 10px;
  font-weight: 900;
}
.table td:first-child{border-radius: 14px 0 0 14px}
.table td:last-child{border-radius: 0 14px 14px 0}

.tiny{font-size:12px; font-weight:800; color: var(--muted)}

/* Toast */
.toastHost{
  position: fixed;
  right: 14px;
  bottom: 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index: 100;
}
.toast{
  min-width: 240px;
  max-width: 360px;
  border-radius: 18px;
  border: 1px solid rgba(42,31,23,.12);
  background: rgba(255,255,255,.80);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}
.toast__title{font-weight:1000}
.toast__msg{font-weight:800; color: var(--muted); font-size:12px; margin-top:4px}
