:root {
  --bg: #07101c;
  --bg-2: #091625;
  --panel: #0d1b2a;
  --panel-2: #112235;
  --text: #f4f7fa;
  --muted: #8da0b4;
  --line: rgba(255,255,255,.1);
  --blue: #65bdff;
  --blue-2: #2c91df;
  --green: #5de3a0;
  --amber: #f4bc70;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(41,130,204,.11), transparent 28%),
    var(--bg);
  font-family: "Manrope", sans-serif;
}
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.portal-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: .025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.portal-topbar {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  width: min(1240px, calc(100% - 48px));
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--line);
}
body.dashboard-active .portal-topbar { display: none; }
.portal-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .12em; font-weight: 700; }
.portal-brand b { color: var(--blue); }
.portal-brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(101,189,255,.65);
  color: var(--blue);
  background: linear-gradient(145deg, rgba(101,189,255,.24), rgba(101,189,255,.03));
  font-family: "Unbounded", sans-serif;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.portal-top-actions { display: flex; align-items: center; gap: 18px; color: #a8b6c5; font-size: 11px; }
.portal-top-actions span { width: 1px; height: 14px; background: var(--line); }
.portal-top-actions a:hover { color: var(--blue); }
.portal-kicker { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .2em; }

.login-view { min-height: 100vh; display: grid; place-items: center; padding: 135px 24px 60px; }
.login-shell {
  width: min(1160px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  border: 1px solid var(--line);
  background: rgba(9,22,37,.82);
  box-shadow: 0 35px 100px rgba(0,0,0,.35);
}
.login-presentation {
  position: relative;
  overflow: hidden;
  padding: 65px;
  background:
    linear-gradient(90deg, rgba(6,16,28,.96), rgba(6,16,28,.65)),
    url("/assets/hero-cars.png") center / cover;
}
.login-presentation::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(44,145,223,.14);
  filter: blur(80px);
}
.login-presentation > * { position: relative; z-index: 1; }
.login-presentation h1 {
  margin: 25px 0 22px;
  font: 600 clamp(37px, 5vw, 62px)/1.08 "Unbounded", sans-serif;
  letter-spacing: -.055em;
}
.login-presentation h1 span { color: #8293a6; }
.login-presentation > p { max-width: 500px; color: #aab8c6; font-size: 15px; line-height: 1.75; }
.login-benefits { display: grid; gap: 19px; margin-top: 55px; }
.login-benefits > div { display: grid; grid-template-columns: 35px 1fr; gap: 13px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.13); }
.login-benefits > div > b { color: var(--blue); font-size: 9px; }
.login-benefits span { display: grid; gap: 5px; }
.login-benefits strong { font-size: 12px; }
.login-benefits small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.security-note { display: flex; align-items: center; gap: 9px; margin-top: 45px; color: #7f91a5; font-size: 9px; }
.security-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(93,227,160,.7); }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: 55px; background: rgba(7,17,29,.96); }
.login-card-head > span { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.login-card h2 { margin: 13px 0 10px; font: 600 26px "Unbounded", sans-serif; letter-spacing: -.04em; }
.login-card-head p { margin: 0 0 30px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.login-card form { display: grid; gap: 17px; }
label { display: grid; gap: 8px; color: #a9b7c5; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  padding: 15px;
  color: white;
  background: #0a1725;
  transition: border .2s, box-shadow .2s;
}
input:focus, textarea:focus { border-color: rgba(101,189,255,.65); box-shadow: 0 0 0 3px rgba(101,189,255,.08); }
.password-field { position: relative; }
.password-field input { padding-right: 90px; letter-spacing: .15em; }
.password-field button {
  position: absolute;
  right: 13px;
  top: 50%;
  border: 0;
  color: var(--blue);
  background: none;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}
.portal-button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 0 20px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.portal-button-primary { color: #06111c; background: linear-gradient(110deg, #8bcfff, #4babf1); }
.portal-button:disabled { cursor: wait; opacity: .7; }
.portal-message { min-height: 17px; color: var(--green); font-size: 10px; line-height: 1.5; }
.portal-message.error { color: #ff9b9b; }
.demo-access { margin-top: 25px; padding: 15px; border: 1px solid rgba(101,189,255,.2); background: rgba(101,189,255,.06); }
.demo-access span { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.demo-access p { margin: 7px 0 0; color: #8fa2b5; font-size: 9px; line-height: 1.55; }
.login-help { margin-top: 22px; color: #718398; text-align: center; font-size: 9px; }

.dashboard-view { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: #07111d; }
.dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 8;
  width: 250px;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  border-right: 1px solid var(--line);
  background: #091522;
}
.sidebar-brand { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.client-mini { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 11px; padding: 25px 0; }
.client-mini > span, .manager-profile > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(101,189,255,.35);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(101,189,255,.08);
  font-size: 11px;
  font-weight: 800;
}
.client-mini div { display: grid; gap: 4px; }
.client-mini b { font-size: 11px; }
.client-mini small { color: var(--muted); font-size: 8px; }
.dashboard-sidebar nav { display: grid; gap: 5px; }
.dashboard-sidebar nav a { display: flex; gap: 12px; align-items: center; padding: 13px 11px; color: #8293a6; font-size: 10px; font-weight: 700; transition: .2s; }
.dashboard-sidebar nav a i { color: #506276; font-size: 8px; font-style: normal; }
.dashboard-sidebar nav a:hover, .dashboard-sidebar nav a.active { color: white; background: rgba(101,189,255,.08); }
.dashboard-sidebar nav a.active i { color: var(--blue); }
.sidebar-help { display: grid; gap: 6px; margin-top: auto; padding: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.sidebar-help span { color: var(--blue); font-size: 7px; font-weight: 800; letter-spacing: .14em; }
.sidebar-help b { font-size: 10px; }
.sidebar-help a { color: var(--muted); font-size: 9px; }
.logout-button { margin-top: 12px; padding: 11px; border: 1px solid var(--line); color: #7f91a5; background: transparent; cursor: pointer; font-size: 9px; }
.logout-button:hover { color: white; border-color: rgba(255,255,255,.25); }
.dashboard-main { grid-column: 2; width: min(1180px, calc(100% - 60px)); margin: 0 auto; padding: 45px 0; }
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.dashboard-header h1 { margin: 8px 0 0; font: 600 31px "Unbounded", sans-serif; letter-spacing: -.05em; }
.dashboard-header h1 span { color: #91a3b5; }
.dashboard-header-meta { display: grid; gap: 4px; text-align: right; }
.dashboard-header-meta span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.dashboard-header-meta b { font-size: 10px; }
.order-hero {
  min-height: 340px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border: 1px solid rgba(101,189,255,.22);
  background: linear-gradient(125deg, #112338, #0b1827);
  overflow: hidden;
}
.order-hero-copy { padding: 38px; }
.order-status-line { display: flex; align-items: center; justify-content: space-between; }
.order-live { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.order-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(93,227,160,.7); }
.order-status-line > b { color: #76899e; font-size: 9px; }
.order-hero h2 { max-width: 550px; margin: 34px 0 10px; font: 600 clamp(25px, 3vw, 38px)/1.15 "Unbounded", sans-serif; letter-spacing: -.045em; }
.order-hero-copy > p { color: var(--muted); font-size: 11px; }
.order-progress { margin-top: 37px; }
.order-progress > div { display: flex; justify-content: space-between; margin-bottom: 10px; color: #aab8c5; font-size: 9px; }
.order-progress > div strong { color: white; }
.order-progress > i, .finance-progress > i { display: block; height: 5px; background: rgba(255,255,255,.09); overflow: hidden; }
.order-progress > i b, .finance-progress > i b { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue-2), var(--blue)); transition: width .8s ease; }
.order-hero-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 25px; }
.order-hero-metrics div { display: grid; gap: 5px; padding-left: 12px; border-left: 2px solid rgba(101,189,255,.35); }
.order-hero-metrics span { color: var(--muted); font-size: 8px; }
.order-hero-metrics b { font-size: 10px; }
.vehicle-preview { position: relative; min-height: 340px; overflow: hidden; }
.vehicle-preview img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-preview-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,13,22,.95), transparent 60%); }
.vehicle-preview-copy { position: absolute; left: 25px; right: 25px; bottom: 23px; }
.vehicle-preview-copy > span { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.vehicle-preview-copy h3 { margin: 7px 0 5px; font-size: 17px; }
.vehicle-preview-copy p { margin: 0; color: #a5b4c3; font-size: 9px; }
.vehicle-preview-copy p b { color: white; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.dashboard-stats article { display: grid; gap: 7px; min-height: 115px; padding: 19px; border: 1px solid var(--line); background: #0c1928; }
.dashboard-stats span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.dashboard-stats b { align-self: end; font-size: 15px; }
.dashboard-stats small { color: #65788d; font-size: 8px; }
.dashboard-columns { display: grid; grid-template-columns: 1.12fr .88fr; gap: 14px; margin-top: 14px; align-items: start; }
.dashboard-card { padding: 27px; border: 1px solid var(--line); background: #0b1826; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.card-heading > div { display: grid; gap: 6px; }
.card-heading span { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.card-heading h2 { margin: 0; font-size: 17px; }
.card-heading > strong { color: var(--green); font-size: 15px; }
.route-list { display: grid; padding-top: 7px; }
.route-item { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 13px; min-height: 82px; padding-top: 17px; }
.route-item:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 40px; bottom: -4px; width: 1px; background: #293b4d; }
.route-item.done:not(:last-child)::after { background: var(--blue-2); }
.route-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #3b4d60; border-radius: 50%; color: #607286; background: #0b1826; font-size: 8px; }
.route-item.done .route-dot { border-color: var(--blue); color: #07111d; background: var(--blue); }
.route-item.current .route-dot { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 5px rgba(93,227,160,.08); }
.route-item-copy { display: grid; align-content: start; gap: 5px; }
.route-item-copy b { font-size: 11px; }
.route-item-copy p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.route-item > time { color: #718499; font-size: 8px; white-space: nowrap; }
.route-item.current > time { color: var(--green); }
.vehicle-card-title { display: grid; grid-template-columns: 105px 1fr; gap: 15px; align-items: center; margin: 20px 0; }
.vehicle-card-title img { width: 105px; height: 74px; object-fit: cover; }
.vehicle-card-title h3 { margin: 0 0 7px; font-size: 13px; }
.vehicle-card-title span { display: inline-flex; padding: 5px 7px; color: var(--green); background: rgba(93,227,160,.08); font-size: 8px; }
.vehicle-data { display: grid; grid-template-columns: 1fr 1fr; }
.vehicle-data div { display: grid; gap: 6px; padding: 13px 0; border-top: 1px solid var(--line); }
.vehicle-data div:nth-child(even) { padding-left: 15px; border-left: 1px solid var(--line); }
.vehicle-data span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.vehicle-data b { font-size: 10px; overflow-wrap: anywhere; }
.finance-progress { padding: 20px 0; }
.finance-progress > span { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; }
.finance-list { display: grid; }
.finance-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.finance-row div { display: grid; gap: 4px; }
.finance-row span { font-size: 10px; }
.finance-row small { color: var(--muted); font-size: 8px; }
.finance-row small.paid { color: var(--green); }
.finance-row b { font-size: 11px; }
.manager-card { background: linear-gradient(145deg, #102238, #0a1725); }
.manager-profile { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; }
.manager-profile > span { width: 54px; height: 54px; }
.manager-profile small { color: var(--blue); font-size: 7px; font-weight: 800; letter-spacing: .14em; }
.manager-profile h2 { margin: 5px 0 3px; font-size: 16px; }
.manager-profile p { margin: 0; color: var(--muted); font-size: 9px; }
.manager-copy { margin: 22px 0; color: #95a6b8; font-size: 10px; line-height: 1.65; }
.manager-card textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.manager-card form { display: grid; gap: 12px; }
.manager-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.manager-contacts a { padding: 11px; border: 1px solid var(--line); color: #a8b7c6; text-align: center; font-size: 8px; }
.manager-contacts a:hover { color: var(--blue); border-color: rgba(101,189,255,.3); }
.documents-list, .updates-list { display: grid; }
.document-row { display: grid; grid-template-columns: 35px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.document-row:first-child, .update-row:first-child { border-top: 0; }
.document-icon { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(101,189,255,.2); color: var(--blue); background: rgba(101,189,255,.06); font-size: 8px; font-weight: 800; }
.document-row > div { display: grid; gap: 4px; }
.document-row b { font-size: 10px; }
.document-row small { color: var(--muted); font-size: 8px; }
.document-status { color: var(--green); font-size: 8px; }
.document-status.waiting { color: var(--amber); }
.update-row { display: grid; grid-template-columns: 92px 1fr; gap: 15px; padding: 15px 0; border-top: 1px solid var(--line); }
.update-row time { color: var(--blue); font-size: 8px; }
.update-row div { display: grid; gap: 5px; }
.update-row b { font-size: 10px; }
.update-row p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.dashboard-footer { display: flex; justify-content: space-between; margin-top: 35px; padding: 22px 0; border-top: 1px solid var(--line); color: #64778b; font-size: 8px; }
.dashboard-footer a { color: #9db0c2; }

@media (max-width: 1080px) {
  .dashboard-view { grid-template-columns: 205px 1fr; }
  .dashboard-sidebar { width: 205px; padding: 24px 17px; }
  .dashboard-main { width: calc(100% - 36px); }
  .dashboard-columns { grid-template-columns: 1fr; }
  .filter-primary { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .portal-topbar { width: calc(100% - 28px); height: 75px; }
  .portal-top-actions a:last-child, .portal-top-actions span { display: none; }
  .login-view { padding: 100px 14px 30px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-presentation { min-height: 440px; padding: 38px 28px; }
  .login-card { padding: 38px 28px; }
  .dashboard-view { display: block; }
  .dashboard-sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 13px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-brand { padding: 0; border: 0; }
  .client-mini { display: none; }
  .dashboard-sidebar nav { display: flex; justify-content: flex-end; overflow-x: auto; }
  .dashboard-sidebar nav a { padding: 9px; white-space: nowrap; }
  .dashboard-sidebar nav a i, .sidebar-help { display: none; }
  .logout-button { margin: 0 0 0 8px; }
  .dashboard-main { width: calc(100% - 28px); padding: 30px 0; }
  .dashboard-header { align-items: flex-start; }
  .dashboard-header h1 { font-size: 24px; }
  .order-hero { grid-template-columns: 1fr; }
  .vehicle-preview { min-height: 280px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .portal-brand { font-size: 11px; }
  .portal-brand-mark { width: 32px; height: 32px; }
  .portal-top-actions { font-size: 9px; }
  .login-presentation { min-height: 400px; }
  .login-presentation h1 { font-size: 36px; }
  .login-benefits { margin-top: 38px; }
  .dashboard-sidebar { grid-template-columns: 1fr auto; }
  .dashboard-sidebar nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin-top: 8px; }
  .dashboard-sidebar nav a { font-size: 9px; }
  .dashboard-header-meta { display: none; }
  .order-hero-copy, .dashboard-card { padding: 21px; }
  .order-hero h2 { font-size: 25px; }
  .order-hero-metrics, .dashboard-stats, .vehicle-data { grid-template-columns: 1fr; }
  .dashboard-stats article { min-height: 100px; }
  .vehicle-data div:nth-child(even) { padding-left: 0; border-left: 0; }
  .manager-contacts { grid-template-columns: 1fr; }
  .document-row { grid-template-columns: 35px 1fr; }
  .document-status { grid-column: 2; }
  .update-row { grid-template-columns: 1fr; gap: 6px; }
  .dashboard-footer { flex-direction: column; gap: 10px; }
}
