
:root{
  --bg:#0b0f12;
  --panel:#11171c;
  --ink:#e6f3f1;
  --muted:#a7b5b3;
  --teal:#20d1c3;
  --teal-weak:#20d1c355;
  --danger:#ff6b6b;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--ink); text-decoration:none}
a:hover{color:var(--teal)}
.wrapper{min-height:100%; padding:clamp(16px,2vw,24px)}
.card{
  background:linear-gradient(180deg, #10161b 0%, #0f1419 100%);
  border:1px solid var(--teal-weak); border-radius:16px;
  padding:clamp(16px,3vw,28px);
  box-shadow:0 0 0 1px #000 inset, 0 10px 40px rgba(0,0,0,.5);
}
.header{position:sticky; top:0; z-index:10; background:transparent; margin:-10px -10px 18px -10px; padding:10px}
.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:#0f1419; border:1px solid var(--teal-weak); border-radius:12px; padding:10px 12px;
  backdrop-filter:saturate(120%) blur(2px);
}
h1{margin:0; font-size:clamp(18px,4vw,24px); letter-spacing:.3px}
.logo{display:flex; align-items:center; gap:8px}
.logo-dot{width:10px; height:10px; border-radius:50%; background:var(--teal); box-shadow:0 0 8px rgba(32,209,195,.8)}
.topnav{display:flex; gap:8px; flex-wrap:wrap}
.tab{display:inline-flex; align-items:center; gap:8px; padding:10px 14px;
  border:1px solid var(--teal-weak); border-radius:12px; background:#0f1419}
.tab.active{border-color:var(--teal); box-shadow:0 0 0 2px rgba(32,209,195,.12) inset}
.content{margin-top:8px}

.grid{display:grid; grid-template-columns:repeat(12,1fr); gap:clamp(10px,2vw,16px)}
.grid > .span-12{grid-column:span 12}
@media (min-width:720px){
  .span-6{grid-column:span 6}
  .span-4{grid-column:span 4}
  .span-3{grid-column:span 3}
}

label{color:var(--muted); font-size:14px; display:block; margin-bottom:8px}
input[type="text"], input[type="password"], input[type="number"], select, textarea{
  width:100%; background:var(--panel); color:var(--ink);
  border:1px solid var(--teal-weak); outline:none; border-radius:12px;
  padding:14px; transition:border-color .15s ease, box-shadow .15s ease;
  appearance:none; min-height:48px;
  white-space:nowrap; text-overflow:ellipsis; overflow:visible;
}
/* Ensure select options show full text */
select option{white-space:normal}
textarea{min-height:110px; resize:vertical}
input::placeholder, textarea::placeholder{color:#7f8a88}
input:focus, select:focus, textarea:focus{border-color:var(--teal); box-shadow:0 0 0 3px rgba(32,209,195,.12)}

select{
  background-image:
    linear-gradient(45deg, transparent 50%, var(--teal) 50%),
    linear-gradient(135deg, var(--teal) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px),
    calc(100% - 2.2em) 0.5em;
  background-size:5px 5px,5px 5px,1px 2.8em;
  background-repeat:no-repeat;
  padding-right:44px;
}

.btn{
  width:100%; border:1px solid var(--teal); color:var(--ink);
  background:transparent; padding:16px; border-radius:14px; font-weight:600;
  letter-spacing:.02em; cursor:pointer; transition:background .15s ease, transform .02s ease;
}
.btn:hover{background:rgba(32,209,195,.08)}
.btn:active{transform:translateY(1px)}
.hr{height:1px; background:var(--teal-weak); margin:10px 0 18px; border-radius:1px}
.note{margin-top:6px; color:var(--muted); font-size:12px}
.error{color:var(--danger); padding:10px 12px; border:1px solid #ff6b6b55; background:#311b1b; border-radius:10px; margin-bottom:12px}
.small{font-size:12px; color:var(--muted)}

.tiles{display:grid; grid-template-columns:1fr; gap:18px; margin-top:10vh}
@media (min-width:720px){ .tiles{grid-template-columns:repeat(2,1fr)} }
.tile{background:#0f1419; border:1px solid var(--teal-weak); border-radius:16px; padding:24px; min-height:120px;
  display:flex; align-items:flex-end; transition:transform .1s ease, border-color .15s ease}
.tile:hover{transform:translateY(-1px); border-color:var(--teal)}
.tile h3{margin:0; font-size:18px}

.table{width:100%; border-collapse:collapse; background:#0f1419; border:1px solid var(--teal-weak); border-radius:12px; overflow:hidden}
.table th, .table td{padding:10px 12px; border-bottom:1px solid #0e1216}
.table th{color:var(--muted); text-align:left; font-weight:600; background:#0e1418}
tfoot td{border-top:1px solid var(--teal-weak)}

.neon{box-shadow:0 0 0 1px var(--teal-weak) inset, 0 0 12px rgba(32,209,195,.08)}
