body.auth-screen,
body.citizen-shell {
  background: #f4f7fc;
}

.auth-screen .demo-ribbon,
.auth-screen .topbar,
.auth-screen footer {
  display: none;
}

.auth-screen {
  min-height: 100vh;
  color: #fff;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 86px 86px,
    linear-gradient(40deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 112px 112px,
    linear-gradient(180deg, #075384, #0f75bb);
}

.auth-screen .container {
  max-width: 520px;
  min-height: 100vh;
  padding: 72px 22px 36px;
}

.auth-language {
  position: fixed;
  top: 56px;
  right: 28px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #273241;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.auth-logo {
  width: fit-content;
  margin: 10px auto 82px;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: end;
  color: #fff;
  font-weight: 950;
  letter-spacing: 5px;
}

.auth-logo span,
.auth-logo strong {
  display: block;
  padding: 5px 9px;
  background: #2a91dc;
  line-height: 1;
}

.auth-logo span {
  letter-spacing: 1px;
}

.auth-logo strong {
  font-size: 31px;
}

.auth-logo:after {
  content: ".MK";
  align-self: end;
  padding: 5px 7px;
  background: #e31f26;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
}

.auth-screen .auth-card {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.auth-screen .auth-card h1 {
  color: #fff;
  font-size: 44px;
  line-height: 1.05;
  margin: 10px 0;
  letter-spacing: 0;
}

.auth-screen .auth-card p,
.auth-screen .auth-card .muted {
  color: rgba(255, 255, 255, .72);
}

.auth-screen .auth-card a {
  color: rgba(255, 255, 255, .86);
}

.auth-screen .form-stack {
  margin-top: 34px;
  gap: 20px;
}

.auth-screen .form-stack label {
  color: transparent;
  font-size: 0;
}

.auth-screen .form-stack input {
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  min-height: 68px;
  padding: 0 22px;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.auth-screen .form-stack input::placeholder {
  color: rgba(255, 255, 255, .72);
}

.auth-screen .form-stack input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}

.auth-screen .btn.primary {
  min-height: 66px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff3838, #cf1117);
  box-shadow: 0 12px 26px rgba(80, 0, 0, .2);
  font-size: 20px;
}

.auth-screen .demo-box {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  text-align: left;
}

.citizen-shell .demo-ribbon {
  position: relative;
  z-index: 30;
}

.citizen-shell .topbar {
  height: 154px;
  align-items: flex-start;
  overflow: visible;
  padding-top: 42px;
  background: linear-gradient(180deg, #0c75bd, #0870b5);
  border-bottom: 0;
  color: #fff;
}

.citizen-shell .topbar:after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -67px;
  height: 112px;
  background: #f4f7fc;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 0;
}

.citizen-shell .brand,
.citizen-shell .topbar a {
  color: #fff;
}

.citizen-shell .brand,
.citizen-shell .nav-toggle {
  position: relative;
  z-index: 2;
}

.citizen-shell .brandmark {
  background: #fff;
  color: #0b73b9;
}

.citizen-shell .brand small {
  color: rgba(255, 255, 255, .78);
}

.citizen-shell .nav-toggle {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .14);
}

.citizen-shell .nav-toggle span {
  background: #fff;
}

.citizen-shell .topbar nav[data-nav-menu] {
  color: var(--ink);
}

.citizen-shell .topbar nav[data-nav-menu] a {
  color: var(--navy);
}

.citizen-shell .container {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: -36px;
  padding: 0 18px 112px;
}

.citizen-shell footer {
  display: none;
}

.citizen-shell .page-head {
  margin: 0 0 16px;
}

.citizen-shell .app-title h1,
.citizen-shell .page-head h1 {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.citizen-shell .page-head p {
  font-size: 14px;
}

.citizen-shell .panel,
.citizen-shell .active-card,
.citizen-shell .vehicle-item {
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(13, 42, 73, .11);
}

.citizen-shell .panel {
  margin-top: 16px;
  padding: 20px;
}

.citizen-shell .panel h2,
.citizen-shell section > h2 {
  margin-top: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.parking-start-panel {
  overflow: hidden;
}

.parking-start-panel .form-stack label,
.vehicles-shell .form-stack label {
  font-size: 12px;
  color: var(--muted);
}

.parking-start-panel select,
.parking-start-panel input,
.citizen-shell .form-row input,
.citizen-shell .form-row select {
  min-height: 54px;
  border-radius: 14px;
  background: #f8fbff;
}

.citizen-shell .btn {
  border-radius: 14px;
  min-height: 48px;
}

.citizen-shell .btn.primary {
  border: 0;
  background: linear-gradient(90deg, #21b6bd, #60d3d2);
  color: #fff;
  box-shadow: 0 14px 30px rgba(20, 144, 160, .22);
}

.citizen-shell .btn.stop {
  border: 0;
  background: linear-gradient(180deg, #ff3e3e, #ce1219);
}

.citizen-shell .zone-big {
  color: #fff;
  background: #d51e27;
  display: inline-grid;
  min-width: 108px;
  min-height: 76px;
  place-items: center;
  border-radius: 14px;
  font-size: 44px;
  letter-spacing: 0;
}

.citizen-shell .active-card .zone-big {
  color: #fff;
}

.citizen-shell .plate {
  background: #f7f9fc;
}

.citizen-shell .sms-fallback {
  border-radius: 14px;
  background: #eef6ff;
}

.citizen-shell .table-wrap {
  margin: 0 -6px;
}

.citizen-shell table {
  min-width: 520px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(207, 221, 235, .75);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(13, 42, 73, .14);
  backdrop-filter: blur(12px);
}

.bottom-nav a,
.bottom-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #a8c7e8;
  display: grid;
  place-items: center;
  gap: 2px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.bottom-nav span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 17px;
  background: #edf5ff;
}

.bottom-nav small {
  font-size: 9px;
  line-height: 1;
}

.bottom-nav .active {
  color: #0c73b8;
}

.bottom-nav .active span {
  color: #fff;
  background: #0c73b8;
  box-shadow: 0 4px 0 #e31f26;
}

.map-screen {
  display: grid;
  gap: 16px;
}

.demo-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(42deg, transparent 47%, rgba(156, 174, 193, .24) 48%, rgba(156, 174, 193, .24) 52%, transparent 53%) 0 0 / 118px 118px,
    linear-gradient(135deg, transparent 47%, rgba(156, 174, 193, .2) 48%, rgba(156, 174, 193, .2) 52%, transparent 53%) 0 0 / 92px 92px,
    #eef3f8;
  box-shadow: inset 0 0 0 1px rgba(180, 196, 215, .6);
}

.street,
.zone-line {
  position: absolute;
  display: block;
  border-radius: 999px;
  transform-origin: left center;
}

.street {
  height: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 0 0 1px rgba(210, 220, 230, .75);
}

.street.s1 { width: 310px; left: 36px; top: 78px; transform: rotate(-18deg); }
.street.s2 { width: 380px; left: -44px; top: 212px; transform: rotate(16deg); }
.street.s3 { width: 330px; left: 124px; top: 318px; transform: rotate(-32deg); }
.street.s4 { width: 260px; left: 214px; top: 144px; transform: rotate(70deg); }

.zone-line {
  height: 12px;
  width: 118px;
  opacity: .82;
}

.zone-line.red { background: #e0355a; }
.zone-line.teal { background: #56be89; }
.zone-line.amber { background: #ecd33a; }
.zone-line.z1 { left: 58px; top: 150px; transform: rotate(-16deg); }
.zone-line.z2 { left: 300px; top: 96px; transform: rotate(70deg); }
.zone-line.z3 { left: 192px; top: 270px; transform: rotate(-28deg); }
.zone-line.z4 { left: 320px; top: 330px; transform: rotate(12deg); }

.app-zone-list article {
  grid-template-columns: 64px 1fr auto;
  background: #fff;
  box-shadow: 0 10px 24px rgba(13, 42, 73, .08);
}

.zone-summary {
  display: grid;
  grid-template-columns: minmax(92px, auto) 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.zone-summary .zone-big {
  min-width: 96px;
  min-height: 70px;
  margin: 0;
  font-size: 38px;
}

.zone-summary strong,
.zone-summary span,
.zone-summary small {
  display: block;
}

.zone-summary strong {
  font-size: 17px;
  line-height: 1.2;
}

.zone-summary span,
.zone-summary small {
  color: var(--muted);
  line-height: 1.45;
}

.inline-add-vehicle {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.inline-add-vehicle summary {
  padding: 13px 0 0;
  color: var(--blue);
  cursor: pointer;
  font-weight: 850;
}

.quick-vehicle-form {
  margin-top: 10px;
}

.form-row.three label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  display: grid;
  gap: 12px;
}

.empty-state h3 {
  margin: 0;
  font-size: 22px;
}

.empty-line {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  text-align: center;
  padding: 22px 0;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}

.profile-summary div {
  min-height: 82px;
  display: grid;
  align-content: center;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(13, 42, 73, .11);
}

.profile-summary span,
.profile-summary strong {
  display: block;
}

.profile-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.profile-summary strong {
  margin-top: 3px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.password-box {
  display: grid;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
}

.profile-actions {
  display: grid;
  gap: 10px;
}

@media (min-width: 780px) {
  .auth-screen .container {
    padding-top: 86px;
  }

  .citizen-shell .container {
    max-width: 680px;
  }
}

@media (max-width: 520px) {
  .citizen-shell .topbar {
    height: 144px;
    padding-top: 34px;
  }

  .citizen-shell .brand strong {
    font-size: 18px;
  }

  .citizen-shell .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .bottom-nav small {
    display: none;
  }
}
