:root{
  --bg:#07070c;
  --bg2:#0b0b12;
  --panel:rgba(15,15,24,.78);
  --panel2:rgba(255,255,255,.03);
  --text:#f1f1fb;
  --muted:#a7a7bb;
  --muted2:#7c7c95;
  --border:rgba(255,255,255,.10);
  --border2:rgba(255,255,255,.06);
  --accent:#00a863;
  --accent2:rgba(0,168,99,.18);
  --shadow:0 18px 55px rgba(0,0,0,.55);
  --radius:20px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 10% 0%, rgba(0,168,99,.14), transparent 60%),
    radial-gradient(900px 700px at 92% 18%, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(700px 500px at 30% 110%, rgba(0,168,99,.08), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

.wrap{
  max-width:1120px;
  margin:0 auto;
  padding:30px 18px 48px;
}

.top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin: bottom 28px;
}

.top h1{
  margin:0 0 6px;
  font-size:34px;
  letter-spacing:.2px;
  font-weight:850;
}

.sub{
  margin:0;
  color:var(--muted);
  font-weight:550;
}

.sub span{
  color:var(--text);
  border-bottom:1px dotted var(--border);
}

.dashboard{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}

.col{display:grid; gap:18px}

@media (max-width: 920px){
  .dashboard{grid-template-columns:1fr}
}

.card{
  position:relative;
  background: var(--panel);
  border:1px solid var(--border2);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: var(--radius);
  pointer-events:none;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 35%, transparent 65%, rgba(0,168,99,.10));
  opacity:.35;
}

.card > *{position:relative}

.card h2{
  margin:0 0 12px;
  font-size:14px;
  color:var(--muted);
  font-weight:750;
  letter-spacing:.35px;
  text-transform:uppercase;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.stat{
  background: var(--panel2);
  border:1px solid var(--border2);
  border-radius:16px;
  padding:14px 14px 12px;
  min-height:82px;
}

.label{
  color:var(--muted2);
  font-size:12px;
  font-weight:650;
}

.value{
  font-size:34px;
  margin-top:6px;
  font-weight:900;
  letter-spacing:.2px;
}

.value::after{
  content:" days";
  font-size:12px;
  color:var(--muted2);
  margin-left:6px;
  font-weight:700;
}

.list{display:grid; gap:12px}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 14px;
  border:1px solid var(--border2);
  background: rgba(255,255,255,.02);
  border-radius:16px;
}

.row .name{
  font-weight:850;
  font-size:16px;
}

.row .label{
  margin-top:3px;
  font-size:13px;
  color:var(--muted);
  font-weight:600;
}

.row .num{
  color:var(--accent);
  font-weight:900;
  font-size:16px;
}

.progress-wrap{margin-top:10px}

.progress-bar{
  width:100%;
  height:12px;
  background: rgba(255,255,255,.07);
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
}

.progress-fill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(0,168,99,.55), var(--accent));
  box-shadow: 0 0 24px rgba(0,168,99,.35);
  transition: width .35s ease;
}

.progress-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.progress-text{
  font-size:13px;
  color:var(--muted);
  font-weight:650;
}

.foot{
  margin-top:22px;
  color:rgba(255,255,255,.55);
  text-align:left;
}

/* --- Trip form styles --- */
.formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

@media (max-width: 520px){
  .formGrid{ grid-template-columns: 1fr; }
}

.field{display:flex; flex-direction:column; gap:6px}
.fieldLabel{
  font-size:12px;
  color:rgba(255,255,255,.70);
  font-weight:750;
  letter-spacing:.2px;
}

.fieldInput{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  padding:10px 12px;
  border-radius:14px;
  outline:none;
}

.fieldInput:focus{
  border-color: rgba(0,168,99,.45);
  box-shadow: 0 0 0 3px rgba(0,168,99,.12);
}

.formActions{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

.btn{
  background: rgba(0,168,99,.20);
  border:1px solid rgba(0,168,99,.35);
  color: rgba(255,255,255,.95);
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
}

.btn:hover{ filter: brightness(1.08); }

.btn.ghost{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.90);
}

.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.formError{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,80,80,.25);
  background: rgba(255,80,80,.08);
  color: rgba(255,255,255,.90);
  font-weight:700;
  font-size:13px;
}

.codeBox{
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.90);
  overflow:auto;
  min-height: 54px;
  font-size:12px;
}

.hint{
  margin-top:10px;
  color: rgba(255,255,255,.55);
  font-size:12px;
  font-weight:650;
}

.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

.currentStatus{
  margin: 6px 0 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,168,99,.15), rgba(255,255,255,.04));
  border: 1px solid rgba(0,168,99,.35);
  font-weight: 750;
  font-size: 14px;
  letter-spacing: .2px;
  color: rgba(255,255,255,.95);
  box-shadow: 0 0 25px rgba(0,168,99,.18);
}

.currentStatus strong{
  color: var(--accent);
  font-weight: 900;
}
