/* ============================================================
   Client profile + garage
   ============================================================ */

.profile-main { padding: 28px 0 80px; }

.profile-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* ===== sidebar ===== */
.profile-sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px;
}
.profile-card .pa {
  width: 56px; height: 56px;
  border-radius: var(--r-pill);
  background: var(--dark);
  color: var(--text-on-dark);
  display: grid; place-items: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.profile-card .pn {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.profile-card .pphone {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.profile-card .pmeta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.profile-card .pmeta .item {
  display: flex;
  justify-content: space-between;
}
.profile-card .pmeta .item .v {
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 500;
}

.profile-nav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: background 100ms ease;
}
.profile-nav a:hover { background: var(--surface-3); color: var(--text); }
.profile-nav a.active { background: var(--dark); color: var(--text-on-dark); font-weight: 600; }
.profile-nav a.active .ms { color: var(--signal); }
.profile-nav a .ms { color: var(--text-muted); font-size: 18px; }
.profile-nav a .badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text-2);
}
.profile-nav a.active .badge { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.profile-nav .danger { color: var(--busy); }
.profile-nav .danger .ms { color: var(--busy); }

/* ===== content ===== */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.sc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.sc-head h2 {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sc-head h2 .count {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text-2);
  font-weight: 500;
}
.sc-body { padding: 20px 22px; }
.sc-body.no-pad { padding: 0; }

/* personal data grid */
.pers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.pers-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 120ms ease;
}
.pers-field:hover { border-color: var(--text); }
.pers-field .l {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}
.pers-field .v {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-top: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pers-field .v .ms { color: var(--text-muted); }
.pers-field.empty .v { color: var(--text-muted); font-weight: 400; font-style: italic; }
.pers-field.verified .v .ms { color: var(--go); font-variation-settings: 'opsz' 20, 'wght' 600, 'FILL' 1, 'GRAD' 0; }

/* ===== garage ===== */
.car-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.car-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.car-card:hover {
  border-color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}
.car-card.primary { border-color: var(--dark); border-width: 1.5px; }

.car-photo {
  height: 140px;
  position: relative;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2a2c32 0%, #1c1e23 100%);
}
.car-photo .ms {
  color: rgba(247, 246, 242, 0.18);
  font-size: 80px;
  font-variation-settings: 'opsz' 48, 'wght' 300, 'FILL' 1, 'GRAD' 0;
}
.car-photo.bg-camry .ms { color: rgba(242, 198, 0, 0.3); }
.car-photo.bg-sorento { background: linear-gradient(135deg, #d8dbe2 0%, #b9bdc8 100%); }
.car-photo.bg-sorento .ms { color: rgba(15,17,21,0.2); }

.car-photo .badge {
  position: absolute;
  top: 10px; left: 10px;
}
.car-photo .plate {
  position: absolute;
  bottom: 12px; right: 12px;
  background: white;
  border: 1px solid #1c1e23;
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #0f1115;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.car-photo .plate::after {
  content: 'RU';
  font-size: 9px;
  padding: 1px 4px;
  background: #1c1e23;
  color: white;
  border-radius: 2px;
}

.car-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.car-head-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.car-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.car-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.car-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.car-data .cell { display: flex; flex-direction: column; gap: 2px; }
.car-data .l {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}
.car-data .v {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}
.car-data .v.warn { color: var(--wait); }
.car-data .v.go { color: var(--go); }

.car-actions {
  display: flex;
  gap: 6px;
}
.car-actions button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 0;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
}
.car-actions button:hover { background: var(--surface-3); color: var(--text); }
.car-actions button .ms { font-size: 14px; }
.car-actions .primary {
  background: var(--dark);
  color: var(--text-on-dark);
  border-color: var(--dark);
}
.car-actions .primary:hover { background: var(--dark-2); color: var(--text-on-dark); }

.car-add {
  background: transparent;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: all 120ms ease;
}
.car-add:hover { border-color: var(--text); color: var(--text); background: var(--surface-2); }
.car-add .ms { font-size: 32px; color: var(--text-muted); }

/* payment cards */
.pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.pay-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 120ms ease;
}
.pay-card:hover { border-color: var(--text); }
.pay-card.primary { background: var(--dark); color: var(--text-on-dark); border-color: var(--dark); }
.pay-card.add {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
}
.pay-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pay-card-head .brand {
  width: 38px; height: 24px;
  border-radius: 4px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--surface);
}
.pay-card.primary .pay-card-head .brand { background: var(--signal); color: var(--signal-on); }
.pay-card-head .default {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--signal);
}
.pay-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.pay-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.pay-card.primary .pay-foot { color: rgba(247, 246, 242, 0.55); }
.pay-foot .exp { font-family: var(--font-mono); }
