/* ==========================================================
   Fleet / Garage
   ========================================================== */

.garage-form-section{
  margin-top:18px;
  padding-top:16px;
  border-top:1px dashed var(--border);
}

.garage-form-section-first{
  margin-top:0;
  padding-top:0;
  border-top:none;
}

.garage-form-kicker{
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:4px;
}

.garage-form-note{
  font-size:13px;
  color:var(--muted);
  margin-bottom:10px;
}

.fleet-list{ display:flex; flex-direction:column; gap:10px; }

.fleet-cap-note{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,246,232,0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.fleet-cap-note.at-cap{
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
  color: var(--text);
}

.fleet-card{
  position:relative;
  isolation:isolate;
  border-radius:18px;
  padding:12px 12px;
  border:1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,246,232,0.020), rgba(255,246,232,0.006)),
    rgba(18, 18, 20, 0.82);
  box-shadow:var(--shadow-1);
  overflow:hidden;
  cursor: pointer;
}
.fleet-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  background:var(--shimmer);
  opacity:0.7;
}
body.light .fleet-card{
  background:rgba(255,255,255,0.88);
  border:1px solid rgba(15, 23, 42, 0.16);
}
.fleet-card.active{
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 16px 45px rgba(0,0,0,0.28);
}
.fleet-card-archived{
  opacity:0.8;
  cursor:default;
  border-style:dashed;
}

.fleet-archived-details{
  margin-top:14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(18,18,20,0.42);
  overflow:hidden;
}

body.light .fleet-archived-details{
  background:rgba(255,255,255,0.72);
}

.fleet-archived-details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  cursor:pointer;
  list-style:none;
  font-size:12px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--muted);
}

.fleet-archived-details summary::-webkit-details-marker{
  display:none;
}

.fleet-archived-details[open] summary{
  border-bottom:1px solid var(--border);
}

.fleet-archived-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,246,232,0.05);
  color:var(--text);
  font-size:11px;
  letter-spacing:0;
}

.fleet-archived-details .fleet-card{
  margin:12px;
}
body.light .fleet-card.active{
  border-color:rgba(15, 23, 42, 0.35);
  box-shadow:0 16px 45px rgba(15, 23, 42, 0.12);
}

.fleet-card-header{
  position: relative;
  z-index: 2;
  display:flex;
  align-items:center;
  gap:10px;
}
.fleet-info{ flex:1; min-width:0; }
.fleet-nick{
  font-weight:800;
  letter-spacing:-0.02em;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.light .fleet-nick{ color:#0f172a; }
.fleet-sub{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.fleet-edit-btn{
  border:1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(255,246,232,0.024), rgba(255,246,232,0.008)),
    rgba(18, 18, 20, 0.82);
  color:var(--text);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.fleet-edit-btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-2);
  border-color:rgba(56, 189, 248, 0.55);
}
body.light .fleet-edit-btn{
  background:#ffffff;
  color:#0f172a;
  border:1px solid rgba(15, 23, 42, 0.20);
}

/* THE SELECTOR CIRCLE (Unselected) */
.fleet-select-circle {
  position: relative;
  z-index: 5;

  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* HOVER STATE */
.fleet-select-circle:hover {
  transform: scale(1.1);
}

body.light .fleet-select-circle:hover {
  border-color: #0f172a;
}

body:not(.light) .fleet-select-circle:hover {
  border-color: var(--accent);
}

/* ACTIVE STATE — DARK MODE (Metryx default theme) */
body:not(.light) .fleet-card.active .fleet-select-circle,
body:not(.light) .fleet-select-circle.active {
  border-color: var(--accent);
  background: transparent;
  box-shadow: 0 0 0 1px var(--accent);
}

body:not(.light) .fleet-card.active .fleet-select-circle::after,
body:not(.light) .fleet-select-circle.active::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}

/* ACTIVE STATE — LIGHT MODE: direct dark like CTA buttons */
body.light .fleet-card.active .fleet-select-circle,
body.light .fleet-select-circle.active {
  border-color: #0f172a;
  background: transparent;
  box-shadow: 0 0 0 1px #0f172a;
}

body.light .fleet-card.active .fleet-select-circle::after,
body.light .fleet-select-circle.active::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: none;
}

.fleet-stats{
  position: relative;
  z-index: 2;
  display:flex;
  gap:10px;
  margin-top:10px;
}
.stat-box{
  flex:1;
  border-radius:14px;
  padding:10px 10px;
  border:1px solid rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(255,246,232,0.018), rgba(255,246,232,0.006)),
    rgba(19, 19, 21, 0.72);
}
body.light .stat-box{
  background:rgba(255,255,255,0.80);
  border:1px solid rgba(15, 23, 42, 0.12);
}
.stat-label{
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-bottom:4px;
}
.stat-val{
  font-weight:800;
  letter-spacing:-0.02em;
}
