:root{
  --bg:#0f1112;
  --card:#0f1416;
  --muted:#9aa3a6;
  --accent:#e76f51;
  --surface:#111516;
  --glass:rgba(255,255,255,0.03);
  --text:#e6efef;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body,#app{height:100vh;margin:0}
body{
  margin:0;
  height:100vh;
  background:linear-gradient(180deg,#071014 0%, #071214 100%);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:block;
  padding:0;
  font-size:15px;
}

/* ensure the app fills the viewport exactly (full-bleed) */
#app{
  position:fixed;
  inset:0;
  display:flex;
  align-items:stretch;
  justify-content:stretch;
  background:transparent;
  z-index:9999;
}

.card{
  width:100%;
  height:100%;
  background:linear-gradient(180deg,var(--card), rgba(16,20,22,0.95));
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px;
  min-height:0;
}

/* small visual tweak to keep header compact on fullscreen */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-top:4px;
}

.brand{
  font-weight:700;
  color:var(--text);
  letter-spacing:0.4px;
}

.controls{
  display:flex;
  gap:8px;
  align-items:center;
}

.controls button, .controls select{
  background:var(--glass);
  color:var(--text);
  border:1px solid rgba(255,255,255,0.04);
  padding:8px 10px;
  border-radius:8px;
  font-size:14px;
  min-width:44px;
  height:40px;
}

.tabs{
  display:flex;
  gap:8px;
  padding-top:4px;
  flex-wrap:wrap;
}

.tab{
  flex:1 1 auto;
  min-width:110px;
  padding:10px;
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  border:1px solid transparent;
  font-weight:600;
  font-size:13px;
}

.tab.active{
  background:linear-gradient(90deg, rgba(231,111,81,0.12), rgba(231,111,81,0.06));
  color:var(--text);
  border:1px solid rgba(231,111,81,0.16);
  box-shadow:0 4px 18px rgba(231,111,81,0.06);
}

.content{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius:10px;
  padding:10px;
  flex:1 1 auto;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  margin-top:4px;
}

.list{display:flex;flex-direction:column;gap:8px}
.item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border-radius:8px;
  background:rgba(255,255,255,0.01);
  border:1px solid rgba(255,255,255,0.02);
}

.item .name{font-weight:600}
.item .val{
  background:rgba(255,255,255,0.03);
  padding:6px 10px;
  border-radius:8px;
  min-width:54px;
  text-align:center;
  font-weight:700;
}

.table{
  width:100%;
  border-collapse:collapse;
}

.table th, .table td{
  padding:10px;
  text-align:left;
  font-size:14px;
  border-bottom:1px dashed rgba(255,255,255,0.02);
}

.table th{
  color:var(--muted);
  font-weight:700;
}

.footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-top:6px;
  color:var(--muted);
  font-size:13px;
}

/* responsive small screens */
@media (max-width:420px){
  .card{border-radius:0;padding:10px}
  .tab{font-size:12px;padding:8px}
  .controls button, .controls select{height:38px;padding:6px 8px}
  .item{padding:8px}
}

/* image tinting for categories */
.gold-img{
  /* warm yellow tint */
  filter: sepia(0.9) saturate(3.2) hue-rotate(15deg) brightness(1.02);
  transition: filter 220ms ease;
}
.rainbow-img{
  /* continuous hue rotation for a rainbow effect */
  filter: saturate(1.6);
  animation: rainbow-hue 2.6s linear infinite;
}
@keyframes rainbow-hue{
  0%{filter: hue-rotate(0deg) saturate(1.6);}
  100%{filter: hue-rotate(360deg) saturate(1.6);}
}