:root{
  --bg:#0b0b0d;
  --card:#121216;
  --elev:#1a1a20;
  --fg:#e9e9ef;
  --muted:#a4a4b0;
  --line:#26262e;
  --accent:#ff3d00;
  --accent-2:#ff6a3d;
  --good:#5bd18b;
  --bad:#ff5c6c;
  --shadow: 0 8px 32px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{color:var(--fg); text-decoration:none}
a:hover{opacity:.9}

.header{
  position:sticky; top:0; z-index:100;
  display:flex; align-items:center; gap:16px;
  padding:12px 14px;
  backdrop-filter:saturate(140%) blur(10px);
  background: rgba(16,16,20,.7);
  border-bottom:1px solid var(--line);
}
.header .brand{font-weight:800; letter-spacing:.2px}

.wrap{max-width:980px; margin:0 auto; padding:16px}

.card{
  background:linear-gradient(180deg, var(--card), var(--elev));
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  margin:14px 0;
  box-shadow:var(--shadow);
}

h1,h2,h3{margin:0 0 12px 0; line-height:1.2}
/* h1{font-size:26px} h2{font-size:22px} h3{font-size:18px}*/
.muted{color:var(--muted)}

.table{width:100%; border-collapse:collapse}
.table th,.table td{padding:12px 10px; border-bottom:1px solid var(--line)}
.table thead th{text-align:left; color:var(--muted); font-weight:600; text-transform:uppercase; font-size:12px; letter-spacing:.4px}

.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px; border:1px solid var(--line);
  border-radius:999px; color:#fff;
  background:rgba(255,255,255,.03);
  font-weight:600; font-size:12px;
}

/* ----- Inputs & Buttons (login page polish) ----- */
label{display:block; font-weight:600; margin:10px 0 6px 0}
input, select, textarea{
  width:100%;
  background:#0e0e12;
  color:var(--fg);
  border:1px solid #2a2a34;
  
  -webkit-appearance: none; 
  -moz-appearance: none;
  appearance: none;

  -moz-border-radius: 12px;
  -webkit-border-radius: 12px;
  border-radius:12px;

  padding:10px 12px !important;
  outline:none;
  transition:border .2s ease, box-shadow .2s ease, background .2s ease;

}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}


select{  
  height:auto !important;
}

input:focus, select:focus, textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(255,61,0,.18);
  background:#0d0d11;
}
input[type="number"]{width:auto; min-width:120px}

button, .btn{
  appearance:none;
  border:0;
  background:linear-gradient(180deg, var(--accent), var(--accent-2));
  color:#fff; font-weight:800; letter-spacing:.3px;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  box-shadow: 0 8px 20px rgba(255,61,0,.25);
  transition: transform .06s ease, filter .2s ease, box-shadow .2s ease;
}
button:hover, .btn:hover{filter:brightness(1.05)}
button:active, .btn:active{transform:translateY(1px); box-shadow: 0 4px 12px rgba(255,61,0,.25)}

form .row{display:flex; gap:12px; flex-wrap:wrap}
form .row > *{flex:1}

/* Level bar */
.levelbar{height:10px;border-radius:999px;background:#18181e;overflow:hidden;border:1px solid #2a2a34}
.levelbar>div{height:100%;background:var(--accent);width:0;transition:width .5s ease}

/* Grid helper */
.grid{display:grid; gap:14px}
.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width: 860px){ .grid.cols-2{grid-template-columns:1fr} }

/* Small helpers */
code{background:#0d0d12;border:1px solid #2a2a34;border-radius:8px;padding:2px 6px}
hr{border:0; border-top:1px solid var(--line); margin:14px 0}
input::placeholder, textarea::placeholder{color:#7a7a88}

/* Form widths on auth page */
.wrap .card form{display:grid; gap:8px; grid-template-columns:1fr}
@media (min-width:720px){
  .auth-forms{grid-template-columns:1fr 1fr}
}

/* Tricks table specific alignment */
.tricks-table th.status, .tricks-table td.status{ text-align:right; }
