:root {
  --bg: #f4f8fc;
  --surface: #ffffff;
  --ink: #112a40;
  --muted: #607b90;
  --line: #e0ebf3;
  --blue: #087ed1;
  --blue-dark: #0868af;
  --blue-soft: #e6f3ff;
  --teal: #18a58a;
  --teal-soft: #e3faf5;
  --orange: #ee8b36;
  --orange-soft: #fff1e6;
  --shadow: 0 18px 45px rgba(26, 65, 91, 0.08);
  font-family: "Leelawadee UI", "Tahoma", Arial, sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

.svg-symbols {
  height: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  height: 78px;
  padding: 0 clamp(20px, 5vw, 56px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 2;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  height: 48px;
  width: 48px;
}

.brand strong {
  display: block;
  font-size: 21px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.view-switch {
  background: #eef5fb;
  border-radius: 13px;
  display: flex;
  padding: 5px;
}

.view-button {
  background: transparent;
  border-radius: 9px;
  color: var(--muted);
  min-width: 96px;
  padding: 10px 16px;
}

.view-button.active {
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 2px 10px rgba(31, 72, 97, 0.08);
  font-weight: 700;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.customer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(320px, 0.94fr) minmax(500px, 1.06fr);
  max-width: 1230px;
  margin: 0 auto;
  padding: 36px clamp(20px, 5vw, 46px);
}

.hero-card {
  background: linear-gradient(145deg, #0b83d6 0%, #075b9d 100%);
  border-radius: 26px;
  color: white;
  min-height: 690px;
  padding: 38px 42px 38px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "❄";
  color: rgba(255, 255, 255, 0.12);
  font-size: 310px;
  line-height: 1;
  position: absolute;
  bottom: -48px;
  right: -22px;
}

.hero-logo {
  background: white;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(4, 40, 69, 0.14);
  display: block;
  height: 124px;
  margin: 0 0 23px;
  padding: 3px;
  width: 124px;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero-card .eyebrow {
  color: #b9e1ff;
}

.hero-card h1 {
  font-size: clamp(35px, 4vw, 44px);
  line-height: 1.2;
  margin: 0 0 18px;
}

.hero-copy {
  color: #e1f2ff;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 40px;
  max-width: 400px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 47px;
  position: relative;
  z-index: 1;
}

.contact {
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  text-decoration: none;
}

.contact.line {
  background: #28bd56;
  color: white;
}

.contact.facebook {
  background: #176bd8;
  color: white;
}

.contact.phone {
  background: white;
  color: var(--blue);
}

.trust-row {
  border-top: 1px solid rgba(255, 255, 255, 0.23);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 26px;
  position: relative;
  z-index: 1;
}

.trust-row span {
  color: #d1eaff;
  font-size: 12px;
}

.trust-row b {
  color: white;
  display: block;
  font-size: 21px;
  margin-bottom: 4px;
}

.booking-card {
  background: var(--surface);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 32px 34px 29px;
}

.card-heading,
.panel-title,
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.booking-card h2,
.sidebar h2,
.panel-title h2 {
  margin: 0;
}

.step-pill {
  background: var(--blue-soft);
  border-radius: 30px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 13px;
}

.services {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin: 26px 0;
}

.service {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 118px;
  padding: 15px 12px;
  text-align: left;
}

.service.active {
  background: #f2f9ff;
  border: 2px solid var(--blue);
  padding: 14px 11px;
}

.service-icon {
  color: var(--blue);
  font-size: 23px;
}

.service strong {
  font-size: 14px;
}

.service small {
  color: var(--muted);
  font-size: 11px;
}

label {
  color: #415b70;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

input,
select {
  background: white;
  border: 1px solid #dbe6ee;
  border-radius: 11px;
  color: var(--ink);
  display: block;
  height: 46px;
  margin-top: 8px;
  padding: 0 13px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue-soft);
}

.field-row {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(2, 1fr);
}

.booking-summary {
  align-items: center;
  background: #f5f9fc;
  border-radius: 13px;
  display: flex;
  justify-content: space-between;
  margin: 2px 0 18px;
  padding: 13px 16px;
}

.booking-summary small {
  color: var(--muted);
  display: block;
  font-size: 11px;
}

.booking-summary strong {
  font-size: 14px;
}

.booking-summary .price {
  color: var(--blue);
}

.primary-button {
  background: var(--blue);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  transition: background .15s ease;
  width: 100%;
}

.primary-button:hover,
.new-job:hover {
  background: var(--blue-dark);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px minmax(700px, 1fr);
  min-height: calc(100vh - 78px);
}

.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 31px 20px;
}

.sidebar h2 {
  font-size: 19px;
  margin-bottom: 34px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.menu button {
  background: transparent;
  border-radius: 11px;
  color: #4a6477;
  font-size: 14px;
  padding: 13px 14px;
  text-align: left;
}

.menu button.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.reminder-box {
  background: #edf7ff;
  border-radius: 15px;
  margin-top: 48px;
  padding: 18px;
}

.reminder-box strong {
  font-size: 14px;
}

.reminder-box p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.reminder-box button {
  background: var(--blue);
  border-radius: 9px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  width: 100%;
}

.reminder-box select {
  font-size: 13px;
  height: 40px;
  margin: 13px 0 9px;
}

.reminder-box small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 11px;
}

.dashboard-main {
  padding: 33px clamp(25px, 4vw, 42px);
}

.dashboard-header {
  align-items: center;
  margin-bottom: 26px;
}

.dashboard-header h1 {
  font-size: 27px;
  margin: 0;
}

.dashboard-intro {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
}

.new-job {
  background: var(--blue);
  border-radius: 11px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 19px;
}

.stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 24px;
}

.stats article,
.schedule-panel,
.requests-panel {
  background: white;
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(25, 65, 91, 0.04);
}

.stats article {
  min-height: 126px;
  padding: 18px 20px;
}

.stats small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 14px;
}

.stats strong {
  font-size: 28px;
}

.stats strong span {
  color: #516a7e;
  font-size: 14px;
  font-weight: normal;
}

.stats p {
  color: var(--muted);
  font-size: 12px;
  margin: 9px 0 0;
}

.stats .positive {
  color: var(--teal);
}

.stats .waiting {
  color: var(--orange);
}

.operations {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(480px, 1.15fr) minmax(330px, .85fr);
}

.job-board {
  background: white;
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(25, 65, 91, 0.04);
  padding: 23px;
}

.board-header {
  gap: 22px;
}

.board-header p {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

.job-filters {
  display: flex;
  gap: 10px;
}

.job-filters input,
.job-filters select {
  margin: 0;
}

.job-filters input {
  min-width: 255px;
}

.job-filters select {
  min-width: 137px;
}

.job-table-head,
.job-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(170px, 1fr) minmax(185px, 1.05fr) minmax(215px, 1.3fr) minmax(188px, 1.08fr) minmax(135px, .9fr);
}

.job-table-head {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  padding: 0 15px 12px;
}

.job-row {
  border-bottom: 1px solid #edf2f6;
  padding: 15px;
}

.job-row:last-child {
  border-bottom: 0;
}

.job-customer strong,
.job-service strong,
.job-address strong,
.job-appointment strong {
  display: block;
  font-size: 14px;
}

.job-customer small,
.job-service small,
.job-address small,
.job-appointment small,
.job-price small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.job-service strong {
  align-items: center;
  display: flex;
  gap: 7px;
}

.job-source {
  background: #eff5fa;
  border-radius: 20px;
  color: #526a7b;
  font-size: 10px;
  padding: 4px 7px;
}

.job-controls {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.job-select {
  border-radius: 9px;
  font-size: 12px;
  height: 39px;
  margin: 0;
  padding: 0 8px;
}

.status-select.pending {
  background: var(--orange-soft);
  border-color: #f9d4b5;
  color: #a55a17;
}

.status-select.confirmed {
  background: var(--blue-soft);
  border-color: #bfdff9;
  color: var(--blue-dark);
}

.status-select.working {
  background: #fff4d9;
  border-color: #f5d98d;
  color: #886000;
}

.status-select.completed {
  background: var(--teal-soft);
  border-color: #bdece1;
  color: #087e68;
}

.job-price strong {
  font-size: 14px;
}

.empty-jobs {
  color: var(--muted);
  padding: 42px 0;
  text-align: center;
}

.rate-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(25, 65, 91, 0.04);
  margin-top: 20px;
  padding: 23px;
}

.rate-card .panel-title {
  margin-bottom: 18px;
}

.rate-card .panel-title p {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

.rate-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.rate-columns > div {
  background: #f7fafc;
  border-radius: 14px;
  padding: 17px 15px;
}

.rate-columns h3 {
  color: var(--blue-dark);
  font-size: 16px;
  margin: 0 0 13px;
}

.rate-columns p {
  align-items: flex-start;
  border-bottom: 1px dashed #e2eaf0;
  display: flex;
  font-size: 12px;
  gap: 9px;
  justify-content: space-between;
  line-height: 1.45;
  margin: 0;
  padding: 8px 0;
}

.rate-columns p:last-child {
  border: 0;
}

.rate-columns p span {
  color: #435d70;
}

.rate-columns p b {
  color: var(--blue-dark);
  flex-shrink: 0;
}

.modal-backdrop {
  align-items: center;
  background: rgba(11, 30, 48, .44);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.modal-backdrop[hidden] {
  display: none;
}

.job-modal {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 36px);
  max-width: 650px;
  overflow-y: auto;
  padding: 26px 28px;
  width: 100%;
}

.modal-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 23px;
}

.modal-header h2 {
  margin: 0;
}

.close-modal {
  background: #eef5fb;
  border-radius: 50%;
  color: #4b6376;
  font-size: 27px;
  height: 40px;
  line-height: 1;
  width: 40px;
}

.schedule-panel,
.requests-panel {
  padding: 23px;
}

.panel-title {
  align-items: center;
  margin-bottom: 24px;
}

.panel-title h2 {
  font-size: 18px;
}

.panel-title button {
  background: transparent;
  color: var(--blue);
  font-size: 13px;
}

.technician {
  border-bottom: 1px solid #edf2f6;
  padding: 0 0 23px;
}

.technician + .technician {
  border: 0;
  padding: 22px 0 0;
}

.tech-info {
  align-items: center;
  display: flex;
  gap: 11px;
  margin-bottom: 16px;
}

.avatar {
  border-radius: 50%;
  display: grid;
  font-weight: 700;
  height: 42px;
  place-items: center;
  width: 42px;
}

.avatar.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.avatar.green {
  background: var(--teal-soft);
  color: var(--teal);
}

.tech-info small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.job-track {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, 1fr);
}

.job {
  border-radius: 11px;
  border-left: 4px solid;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 72px;
  padding: 10px 12px;
}

.job b {
  font-size: 13px;
}

.job span {
  font-size: 12px;
}

.job small {
  color: var(--muted);
  font-size: 11px;
}

.job.complete {
  background: var(--teal-soft);
  border-color: var(--teal);
}

.job.active {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.job.upcoming {
  background: var(--orange-soft);
  border-color: var(--orange);
}

.live-dot {
  color: var(--teal);
  font-size: 12px;
}

.live-dot::before {
  background: var(--teal);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 7px;
  margin-right: 6px;
  width: 7px;
}

#requests-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.request-card {
  align-items: center;
  border: 1px solid #e8eef3;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  padding: 13px;
}

.request-card div {
  display: flex;
  flex-direction: column;
}

.request-card small {
  color: var(--muted);
  font-size: 11px;
}

.request-card b {
  color: #526a7b;
  font-size: 11px;
  font-weight: normal;
  grid-column: 1 / -1;
}

.tag {
  border-radius: 24px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
}

.tag.wash {
  background: var(--blue-soft);
  color: var(--blue);
}

.tag.fix {
  background: var(--orange-soft);
  color: var(--orange);
}

.tag.install {
  background: var(--teal-soft);
  color: var(--teal);
}

.toast {
  align-items: center;
  background: #fff;
  border: 1px solid #d9ebdf;
  border-radius: 16px;
  bottom: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  opacity: 0;
  padding: 15px 18px;
  position: fixed;
  right: 25px;
  transform: translateY(20px);
  transition: .24s ease;
  visibility: hidden;
  z-index: 5;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.toast-icon {
  background: var(--teal-soft);
  border-radius: 50%;
  color: var(--teal);
  display: grid;
  font-weight: 700;
  height: 38px;
  place-items: center;
  width: 38px;
}

.toast p {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 0;
}

@media (max-width: 1000px) {
  .customer-grid,
  .operations {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
  }

  .dashboard-layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .board-header,
  .job-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .job-table-head {
    display: none;
  }

  .job-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .rate-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .topbar {
    height: auto;
    gap: 16px;
    padding: 15px 16px;
  }

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

  .brand-mark {
    height: 43px;
    width: 43px;
  }

  .view-button {
    min-width: 70px;
    padding: 9px 11px;
  }

  .customer-grid,
  .dashboard-main {
    padding: 16px;
  }

  .hero-card,
  .booking-card {
    border-radius: 20px;
    padding: 27px 21px;
  }

  .hero-card h1 {
    font-size: 30px;
  }

  .trust-row,
  .services,
  .field-row,
  .stats,
  .job-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .services {
    gap: 9px;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .new-job {
    width: 100%;
  }

  .operations {
    display: block;
  }

  .requests-panel {
    margin-top: 16px;
  }

  .job-board,
  .job-modal {
    padding: 20px 16px;
  }

  .job-row {
    background: #fafcff;
    border: 1px solid var(--line);
    border-radius: 12px;
    gap: 12px;
    grid-template-columns: 1fr;
    margin-bottom: 11px;
  }
}
