:root {
  --ex-black: #030303;
  --ex-soft-black: #0b0b0b;
  --ex-red: #f10c0c;
  --ex-deep-red: #790000;
  --ex-white: #f6f4ef;
  --ex-gray: #9d9a96;
  --ex-line: #292726;
  --ex-panel: #101111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ex-black);
  color: var(--ex-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Excellency public showroom */
.ex-shell {
  background: var(--ex-black);
  color: var(--ex-white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.ex-header {
  align-items: center;
  background: rgba(3, 3, 3, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  height: 76px;
  justify-content: space-between;
  left: 0;
  padding: 0 52px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 20;
}

.ex-brand, .xc-admin-brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.ex-brand-logo {
  height: 38px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.xc-admin-brand-logo {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

.ex-footer-brand-logo {
  height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.ex-brand > span:last-child, .xc-admin-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
}

.ex-brand strong, .xc-admin-brand b {
  color: var(--ex-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.13em;
}

.ex-brand small, .xc-admin-brand small {
  color: var(--ex-red);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.5em;
  margin: 7px 0 0 2px;
}

.ex-logo-mark {
  display: inline-flex;
  gap: 2px;
  height: 28px;
  transform: skew(-19deg);
  width: 33px;
}

.ex-logo-mark i {
  background: var(--ex-red);
  display: block;
  height: 28px;
  width: 9px;
}

.ex-logo-mark i:nth-child(2) {
  background: var(--ex-white);
  height: 20px;
  margin-top: 8px;
}

.ex-logo-mark i:nth-child(3) {
  background: var(--ex-red);
  height: 13px;
  margin-top: 15px;
}

.ex-logo-mark.large {
  height: 41px;
  gap: 3px;
  width: 48px;
}

.ex-logo-mark.large i {
  height: 41px;
  width: 13px;
}

.ex-logo-mark.large i:nth-child(2) {
  height: 29px;
  margin-top: 12px;
}

.ex-logo-mark.large i:nth-child(3) {
  height: 19px;
  margin-top: 22px;
}

.ex-nav {
  display: flex;
  gap: 37px;
  margin-left: auto;
  margin-right: 64px;
}

.ex-nav a {
  color: #aaa7a2;
  font-size: 10px;
  letter-spacing: 0.13em;
  transition: color 0.2s ease;
}

.ex-nav a:hover {
  color: var(--ex-red);
}

.ex-header-tools {
  align-items: center;
  display: flex;
  gap: 16px;
}

.ex-admin-trigger {
  align-items: center;
  background: transparent;
  border: 1px solid #524b47;
  color: #c4c0bb;
  display: flex;
  font-size: 9px;
  gap: 6px;
  letter-spacing: 0.13em;
  padding: 10px 12px;
  transition: border-color 0.2s, color 0.2s;
}

.ex-admin-trigger:hover {
  border-color: var(--ex-red);
  color: var(--ex-red);
}

.ex-menu {
  background: none;
  border: 0;
  color: var(--ex-white);
  display: none;
  padding: 5px;
}

.ex-hero {
  background: var(--ex-black);
  min-height: 780px;
  padding: 76px 52px 26px;
  position: relative;
}

.ex-hero::before {
  background: var(--ex-red);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 76px;
  width: 24%;
}

.ex-hero-main {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  height: 650px;
  justify-content: center;
  padding-left: 6.5%;
  position: relative;
  width: 57%;
  z-index: 2;
}

.ex-hero-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 0.78;
}

.ex-hero-logo {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  object-fit: contain;
  margin-left: -4px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

.ex-hero-wordmark span {
  color: var(--ex-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(66px, 10.3vw, 151px);
  letter-spacing: -0.1em;
  margin-left: -0.08em;
  white-space: nowrap;
}

.ex-hero-wordmark strong {
  color: var(--ex-white);
  font-size: clamp(25px, 3.5vw, 51px);
  font-weight: 700;
  letter-spacing: 0.52em;
  margin: 27px 0 0 0.12em;
  white-space: nowrap;
}

.ex-hero-main p {
  color: #bbb7b1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
  margin: 41px 0 24px 3px;
  max-width: 340px;
}

.ex-red-button {
  align-items: center;
  background: var(--ex-red);
  border: 1px solid var(--ex-red);
  color: white;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 28px;
  letter-spacing: 0.13em;
  min-height: 46px;
  padding: 0 14px 0 18px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.ex-red-button:hover {
  background: transparent;
  color: var(--ex-red);
  transform: translateY(-2px);
}

.ex-red-button svg {
  transition: transform 0.2s;
}

.ex-red-button:hover svg {
  transform: translateX(4px);
}

.ex-hero-right {
  height: 100%;
  position: absolute;
  right: 52px;
  top: 76px;
  width: 40%;
}

.ex-hero-image {
  height: 620px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 50px;
  width: 82%;
}

.ex-hero-image::before {
  border: 1px solid var(--ex-red);
  content: "";
  inset: 13px;
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.ex-hero-image img {
  filter: grayscale(0.8) contrast(1.17);
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  width: 100%;
}

.ex-photo-shade {
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.15) 25%, rgba(3, 3, 3, 0.9) 100%), linear-gradient(90deg, rgba(3, 3, 3, 0.56), transparent 60%);
  inset: 0;
  position: absolute;
  pointer-events: none;
}

.ex-image-stamp {
  bottom: 33px;
  color: var(--ex-red);
  font-size: 10px;
  letter-spacing: 0.25em;
  position: absolute;
  right: 34px;
  z-index: 3;
}

.ex-hero-side-copy {
  bottom: 105px;
  display: flex;
  flex-direction: column;
  left: 0;
  position: absolute;
  z-index: 3;
}

.ex-hero-side-copy span {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.12;
}

.ex-hero-side-copy i {
  background: var(--ex-red);
  display: block;
  height: 2px;
  margin-top: 14px;
  width: 66px;
}

.ex-hero-footer {
  align-items: center;
  bottom: 27px;
  color: #736e6a;
  display: flex;
  font-size: 8px;
  justify-content: space-between;
  left: 52px;
  letter-spacing: 0.2em;
  position: absolute;
  right: 52px;
}

.ex-scroll {
  color: #c4c0bb;
  display: flex;
  align-items: center;
  gap: 11px;
}

.ex-scroll b {
  align-items: center;
  border: 1px solid var(--ex-red);
  border-radius: 50%;
  color: var(--ex-red);
  display: inline-flex;
  font-size: 19px;
  font-weight: 400;
  height: 29px;
  justify-content: center;
  width: 29px;
}

.ex-intro {
  align-items: center;
  background: var(--ex-red);
  display: grid;
  gap: 8%;
  grid-template-columns: 8px 1fr 1fr;
  min-height: 340px;
  padding: 78px max(7vw, 52px);
}

.ex-red-rule {
  background: var(--ex-black);
  height: 156px;
  width: 8px;
}

.ex-section-label {
  color: #89847e;
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.ex-intro .ex-section-label {
  color: rgba(3, 3, 3, 0.66);
}

.ex-intro h1, .ex-inventory h2, .ex-values h2 {
  color: var(--ex-black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.88;
  margin: 23px 0 0;
}

.ex-intro h1 em, .ex-inventory h2 em, .ex-values h2 em {
  font-style: italic;
  font-weight: 400;
}

.ex-intro > p {
  color: rgba(3, 3, 3, 0.78);
  font-size: 14px;
  line-height: 1.8;
  max-width: 330px;
}

.ex-inventory {
  background: var(--ex-black);
  padding: 120px max(5vw, 35px) 140px;
}

.ex-inventory-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 70px;
  max-width: 1320px;
}

.ex-inventory h2 {
  color: var(--ex-white);
  margin-top: 22px;
}

.ex-inventory h2 em {
  color: #c9c2b9;
}

.ex-inventory-note {
  max-width: 230px;
}

.ex-inventory-note > span {
  color: var(--ex-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.ex-inventory-note p {
  color: #77716d;
  font-size: 11px;
  line-height: 1.65;
  margin: 12px 0 0;
}

.ex-filter-row {
  align-items: center;
  border-bottom: 1px solid var(--ex-line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto 68px;
  max-width: 1320px;
  padding-bottom: 18px;
}

.ex-filters {
  display: flex;
  gap: 28px;
  overflow-x: auto;
}

.ex-filters button {
  background: transparent;
  border: 0;
  color: #827d78;
  font-size: 10px;
  padding: 0 0 13px;
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.ex-filters button::after {
  background: var(--ex-red);
  bottom: -19px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
  width: 100%;
}

.ex-filters button:hover, .ex-filters button.active {
  color: var(--ex-white);
}

.ex-filters button.active::after {
  transform: scaleX(1);
}

.ex-search {
  align-items: center;
  border-bottom: 1px solid #5d5955;
  color: #88827d;
  display: flex;
  gap: 8px;
  padding: 0 2px 8px;
  width: 190px;
}

.ex-search input {
  background: transparent;
  border: 0;
  color: var(--ex-white);
  font-size: 11px;
  outline: 0;
  width: 100%;
}

.ex-search input::placeholder {
  color: #77716d;
}

.ex-fleet-group {
  margin: 0 auto 92px;
  max-width: 1320px;
}

.ex-group-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 23px;
}

.ex-group-heading > div > span {
  color: var(--ex-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.ex-group-heading h3 {
  color: var(--ex-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.05em;
  margin: 10px 0 0;
}

.ex-group-heading p {
  color: #77716d;
  font-size: 10px;
  margin: 0 0 4px;
  max-width: 220px;
  text-align: right;
}

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

.ex-vehicle-card {
  background: #111;
  border: 0;
  border-radius: 17px;
  color: white;
  height: 405px;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.ex-vehicle-card:hover {
  box-shadow: 0 18px 45px rgba(241, 12, 12, 0.14);
  transform: translateY(-7px);
}

.ex-vehicle-card img {
  filter: saturate(0.7) contrast(1.05);
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s;
  width: 100%;
}

.ex-vehicle-card:hover img {
  filter: saturate(0.95) contrast(1.1);
  transform: scale(1.05);
}

.ex-card-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, transparent 30%, transparent 46%, rgba(0, 0, 0, 0.9) 100%);
  inset: 0;
  position: absolute;
  pointer-events: none;
}

.ex-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 19px;
  position: absolute;
  right: 19px;
  top: 19px;
  z-index: 2;
}

.ex-card-top small {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.ex-card-top b {
  color: var(--ex-red);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}

.ex-card-info {
  bottom: 24px;
  display: flex;
  flex-direction: column;
  left: 20px;
  position: absolute;
  z-index: 2;
}

.ex-card-info > span {
  color: #d8d2ca;
  font-family: Georgia, serif;
  font-size: 17px;
}

.ex-card-info strong {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
  margin-top: 2px;
}

.ex-card-info > small {
  color: #ded9d1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-top: 12px;
}

.ex-card-cta {
  align-items: center;
  bottom: 25px;
  color: var(--ex-red);
  display: flex;
  font-size: 8px;
  gap: 7px;
  letter-spacing: 0.11em;
  opacity: 0;
  position: absolute;
  right: 19px;
  transform: translateY(5px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
}

.ex-vehicle-card:hover .ex-card-cta {
  opacity: 1;
  transform: translateY(0);
}

.ex-empty {
  align-items: center;
  border: 1px solid var(--ex-line);
  color: #807a75;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  max-width: 1320px;
  padding: 90px 20px;
  text-align: center;
}

.ex-empty strong {
  color: var(--ex-white);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.ex-empty span {
  font-size: 11px;
}

.ex-empty button {
  background: transparent;
  border: 1px solid var(--ex-red);
  color: var(--ex-red);
  font-size: 9px;
  letter-spacing: 0.14em;
  margin-top: 12px;
  padding: 10px 13px;
}

.ex-values {
  background: var(--ex-soft-black);
  display: grid;
  gap: 10%;
  grid-template-columns: 1fr 1.8fr;
  min-height: 390px;
  padding: 105px max(8vw, 52px);
}

.ex-values .ex-section-label {
  color: var(--ex-red);
}

.ex-values h2 {
  color: var(--ex-white);
  margin-top: 24px;
}

.ex-values h2 em {
  color: #bcb6ae;
}

.ex-value-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 29px;
}

.ex-value-list > div {
  border-left: 1px solid #383432;
  padding: 0 19px;
}

.ex-value-list b {
  color: var(--ex-red);
  display: block;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 40px;
}

.ex-value-list strong {
  color: var(--ex-white);
  display: block;
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 400;
}

.ex-value-list p {
  color: #817b76;
  font-size: 11px;
  line-height: 1.7;
  margin: 12px 0 0;
  max-width: 160px;
}

.ex-footer {
  background: var(--ex-red);
  color: var(--ex-black);
  display: grid;
  gap: 50px;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding: 71px max(8vw, 52px) 27px;
}

.ex-footer-logo {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  max-width: 220px;
}

.ex-footer-logo .ex-logo-mark {
  flex-shrink: 0;
}

.ex-footer-logo > span {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
}

.ex-footer-logo small {
  flex-basis: 100%;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.46em;
  margin: 11px 0 0 61px;
}

.ex-footer-contact, .ex-footer-location {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ex-footer-contact > span, .ex-footer-location > span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.ex-footer-contact a, .ex-footer-location p, .ex-footer-location a {
  font-size: 12px;
  margin: 0;
}

.ex-footer-location a {
  font-weight: 700;
  margin-top: 11px;
}

.ex-footer-bottom {
  border-top: 1px solid rgba(3, 3, 3, 0.35);
  display: flex;
  font-size: 8px;
  grid-column: 1 / -1;
  justify-content: space-between;
  letter-spacing: 0.14em;
  margin-top: 29px;
  padding-top: 17px;
}

/* Modals */
.ex-modal-backdrop, .xc-modal-bg {
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 50;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ex-detail-modal {
  background: var(--ex-soft-black);
  border: 1px solid #45403c;
  display: grid;
  grid-template-columns: 44% 56%;
  max-height: 90vh;
  max-width: 900px;
  overflow-y: auto;
  position: relative;
  width: 100%;
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.ex-detail-image {
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.ex-detail-image img {
  filter: saturate(0.65);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ex-detail-image .ex-photo-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.84));
}

.ex-detail-image > span {
  bottom: 27px;
  color: var(--ex-red);
  font-size: 9px;
  font-weight: 700;
  left: 25px;
  letter-spacing: 0.2em;
  position: absolute;
  z-index: 2;
}

.ex-detail-image > b {
  bottom: 48px;
  color: white;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  left: 25px;
  position: absolute;
  z-index: 2;
}

.ex-detail-copy {
  padding: 64px 43px 35px;
  position: relative;
}

.ex-detail-copy .ex-section-label {
  color: var(--ex-red);
}

.ex-detail-copy h2 {
  font-family: Georgia, serif;
  font-size: 57px;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin: 18px 0 20px;
}

.ex-detail-copy > p {
  color: #aaa39c;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  max-width: 320px;
}

.ex-close {
  align-items: center;
  background: transparent;
  border: 1px solid #494440;
  color: #eee;
  display: flex;
  height: 35px;
  justify-content: center;
  position: absolute;
  right: 20px;
  top: 19px;
  width: 35px;
  transition: border-color 0.2s, color 0.2s;
}

.ex-close:hover {
  border-color: var(--ex-red);
  color: var(--ex-red);
}

.ex-detail-specs {
  border-bottom: 1px solid var(--ex-line);
  border-top: 1px solid var(--ex-line);
  display: grid;
  gap: 18px 10px;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0 24px;
  padding: 20px 0;
}

.ex-detail-specs > div {
  align-items: center;
  display: flex;
  gap: 9px;
}

.ex-detail-specs svg {
  color: var(--ex-red);
  flex-shrink: 0;
}

.ex-detail-specs span {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  gap: 4px;
}

.ex-detail-specs small, .ex-includes-label {
  color: #77716d;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.ex-includes-label {
  display: block;
}

.ex-includes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.ex-includes span {
  align-items: center;
  color: #aaa39c;
  display: flex;
  font-size: 10px;
  gap: 7px;
}

.ex-includes svg {
  color: var(--ex-red);
  flex-shrink: 0;
}

.ex-red-button.full {
  justify-content: space-between;
  margin-top: 26px;
  width: 100%;
}

.ex-detail-note {
  align-items: center;
  color: #77716d;
  display: flex;
  font-size: 8px;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}

/* Toast Notification */
.ex-toast {
  align-items: center;
  background: var(--ex-red);
  bottom: 22px;
  color: white;
  display: flex;
  font-size: 10px;
  gap: 9px;
  left: 50%;
  letter-spacing: 0.03em;
  padding: 13px 17px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: toastIn 0.25s ease-out;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.ex-toast > span {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  height: 19px;
  justify-content: center;
  width: 19px;
  flex-shrink: 0;
}

/* Admin */
.xc-admin {
  background: #ededeb;
  color: #181818;
  display: flex;
  min-height: 100vh;
}

.xc-sidebar {
  background: #080808;
  color: white;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 100vh;
  padding: 29px 21px 23px;
  width: 230px;
}

.xc-admin-brand b {
  font-size: 12px;
}

.xc-admin-brand small {
  font-size: 6px;
}

.xc-admin-tag {
  align-self: flex-end;
  border: 1px solid #4e4642;
  color: var(--ex-red);
  font-size: 7px;
  letter-spacing: 0.18em;
  margin-top: -23px;
  padding: 5px 6px;
}

.xc-side-label {
  color: #77716d;
  font-size: 8px;
  letter-spacing: 0.18em;
  margin: 67px 10px 15px;
}

.xc-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.xc-sidebar nav button {
  align-items: center;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  color: #999490;
  display: flex;
  font-size: 11px;
  gap: 11px;
  padding: 12px 10px;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.xc-sidebar nav button:hover, .xc-sidebar nav button.active {
  background: #191616;
  border-left-color: var(--ex-red);
  color: white;
}

.xc-sidebar nav button small {
  background: #3a1515;
  color: #f98d8d;
  font-size: 8px;
  margin-left: auto;
  padding: 3px 7px;
}

.xc-back {
  background: none;
  border: 0;
  color: #999490;
  font-size: 10px;
  margin-top: auto;
  padding: 8px 10px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.xc-back:hover {
  color: white;
}

.xc-admin-main {
  flex: 1;
  min-width: 0;
}

.xc-admin-header {
  align-items: center;
  background: #fafaf8;
  border-bottom: 1px solid #dadad6;
  display: flex;
  justify-content: space-between;
  min-height: 93px;
  padding: 0 43px;
}

.xc-admin-header > div:first-child > span, .xc-panel-head > span, .xc-calendar-head > div > span, .xc-selected > span, .xc-add-head > div > span {
  color: #938e89;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.xc-admin-header h1 {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 9px 0 0;
}

.xc-user {
  align-items: center;
  color: #6f6b66;
  display: flex;
  font-size: 10px;
  gap: 10px;
}

.xc-user i {
  background: #4eaa67;
  border: 2px solid #dce9dd;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.xc-user b {
  align-items: center;
  background: #181818;
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 8px;
  height: 29px;
  justify-content: center;
  width: 29px;
}

.xc-content {
  margin: 0 auto;
  max-width: 1180px;
  padding: 35px 43px 70px;
}

.xc-metrics {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(3, 1fr);
}

.xc-metrics > div, .xc-panel, .xc-table, .xc-rates, .xc-calendar-card, .xc-selected {
  background: #fafaf8;
  border: 1px solid #deded9;
}

.xc-metrics > div {
  min-height: 125px;
  padding: 18px;
}

.xc-metrics span {
  color: #88837e;
  display: block;
  font-size: 8px;
  letter-spacing: 0.13em;
}

.xc-metrics strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  margin-top: 16px;
}

.xc-metrics small {
  color: #a49e98;
  font-size: 9px;
}

.xc-metrics small.green {
  color: #3d8c51;
}

.xc-dashboard-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: 1.35fr 1fr;
  margin-top: 15px;
}

.xc-panel {
  min-height: 235px;
  padding: 24px;
}

.xc-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.xc-panel-head button {
  align-items: center;
  background: none;
  border: 0;
  color: #bb0808;
  display: flex;
  font-size: 9px;
  gap: 5px;
}

.xc-panel h2 {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  margin: 10px 0 45px;
}

.xc-status-bar {
  background: #ddd;
  display: flex;
  height: 9px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.xc-status-bar i {
  background: #4eaa67;
  display: block;
  transition: width 0.3s ease;
}

.xc-status-bar b {
  background: var(--ex-red);
  display: block;
  transition: width 0.3s ease;
}

.xc-status-legend {
  display: flex;
  gap: 25px;
  margin-top: 13px;
}

.xc-status-legend span {
  align-items: center;
  color: #8b8580;
  display: flex;
  font-size: 9px;
  gap: 5px;
}

.xc-status-legend i {
  background: #4eaa67;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.xc-status-legend span:nth-child(2) i {
  background: var(--ex-red);
}

.xc-status-legend b {
  color: #1b1b1b;
}

.xc-quick {
  align-items: center;
  background: none;
  border: 0;
  border-bottom: 1px solid #e2e1dc;
  display: flex;
  gap: 11px;
  padding: 14px 0;
  text-align: left;
  width: 100%;
  transition: background 0.15s;
}

.xc-quick:hover {
  background: rgba(0,0,0,0.02);
}

.xc-quick > svg:first-child {
  color: var(--ex-red);
  flex-shrink: 0;
}

.xc-quick span {
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 10px;
  gap: 4px;
}

.xc-quick small {
  color: #98918b;
  font-size: 9px;
}

.xc-quick > svg:last-child {
  color: #88837e;
  flex-shrink: 0;
}

.xc-content-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.xc-content-title p {
  color: #7f7973;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  max-width: 450px;
}

.xc-primary {
  align-items: center;
  background: #101010;
  border: 1px solid #101010;
  color: white;
  display: inline-flex;
  font-size: 10px;
  gap: 7px;
  min-height: 37px;
  padding: 0 14px;
  transition: background 0.2s, border-color 0.2s;
}

.xc-primary:hover {
  background: var(--ex-red);
  border-color: var(--ex-red);
}

.xc-primary:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.xc-table-tools {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.xc-table-tools label {
  align-items: center;
  background: white;
  border: 1px solid #d8d7d2;
  color: #9c9690;
  display: flex;
  gap: 8px;
  padding: 9px 11px;
  width: 245px;
}

.xc-table-tools input {
  background: none;
  border: 0;
  color: #191919;
  font-size: 10px;
  outline: 0;
  width: 100%;
}

.xc-table-tools > span {
  color: #98918b;
  font-size: 9px;
}

.xc-thead, .xc-tr {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 2fr 1fr 1fr 1.2fr 0.9fr 50px;
  padding: 0 19px;
}

.xc-thead {
  border-bottom: 1px solid #deded9;
  color: #97918b;
  font-size: 8px;
  letter-spacing: 0.12em;
  min-height: 41px;
}

.xc-tr {
  border-bottom: 1px solid #e8e7e2;
  color: #77716b;
  font-size: 10px;
  min-height: 70px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.2s;
}

.xc-tr.is-disabled {
  background: #faf8f5;
  opacity: 0.7;
}

.xc-tr.is-disabled:hover {
  opacity: 0.95;
  background: #f4eee7;
}

.xc-tr.is-disabled .xc-car-cell img {
  filter: grayscale(0.85);
}

.xc-switch-btn {
  align-items: center;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  padding: 4px 10px 4px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  width: fit-content;
  white-space: nowrap;
}

.xc-switch-pill {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.xc-switch-btn.active {
  background: #eaf7ed;
  border-color: #b7e3be;
  color: #1b6d2e;
}

.xc-switch-btn.active .xc-switch-pill {
  background: #28a745;
  box-shadow: 0 0 6px rgba(40, 167, 69, 0.45);
}

.xc-switch-btn.inactive {
  background: #fcf0ef;
  border-color: #f1cfcc;
  color: #b02a24;
}

.xc-switch-btn.inactive .xc-switch-pill {
  background: #dc3545;
  box-shadow: 0 0 6px rgba(220, 53, 69, 0.35);
}

.xc-switch-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.xc-tr:last-child {
  border: 0;
}

.xc-tr:hover, .xc-tr.selected {
  background: #f2eee9;
}

.xc-car-cell {
  align-items: center;
  display: flex;
  gap: 11px;
  min-width: 0;
}

.xc-car-cell img {
  background: #c9ceca;
  height: 38px;
  object-fit: cover;
  width: 55px;
  border-radius: 2px;
}

.xc-car-cell span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.xc-car-cell b {
  color: #1c1c1c;
  font-size: 10px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xc-car-cell small {
  color: #98918b;
  font-size: 9px;
}

.xc-status {
  align-items: center;
  background: none;
  border: 0;
  display: flex;
  font-size: 9px;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}

.xc-status:hover {
  background: rgba(0,0,0,0.05);
}

.xc-status i {
  background: #4eaa67;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.xc-status.maintenance {
  color: #9c610f;
}

.xc-status.maintenance i {
  background: #d2922a;
}

.xc-status.inactive {
  color: #a12f27;
}

.xc-status.inactive i {
  background: #b84b43;
}

.xc-tr > strong {
  color: #222;
  font-size: 11px;
}

.xc-row-actions {
  display: flex;
  gap: 7px;
}

.xc-row-actions button {
  background: none;
  border: 0;
  color: #8e8882;
  padding: 4px;
  transition: color 0.15s;
}

.xc-row-actions button:hover {
  color: var(--ex-red);
}

.xc-calendar-layout {
  display: grid;
  gap: 15px;
  grid-template-columns: 1.6fr 0.8fr;
}

.xc-calendar-card {
  padding: 25px;
}

.xc-calendar-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.xc-calendar-head h2 {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  margin: 9px 0 0;
}

.xc-calendar-head button {
  background: #eeeae5;
  border: 0;
  font-size: 16px;
  height: 27px;
  margin-left: 3px;
  width: 27px;
  transition: background 0.15s;
}

.xc-calendar-head button:hover {
  background: #ddd7cf;
}

.xc-weekdays, .xc-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.xc-weekdays {
  color: #99928b;
  font-size: 8px;
  margin-top: 32px;
  text-align: center;
}

.xc-days {
  gap: 5px;
  margin-top: 10px;
}

.xc-days button, .xc-days i {
  align-items: center;
  background: #f2f2ef;
  border: 1px solid transparent;
  color: #4c4844;
  display: flex;
  font-size: 11px;
  height: 51px;
  justify-content: center;
  font-style: normal;
  transition: border-color 0.15s, background 0.15s;
}

.xc-days button:hover {
  border-color: var(--ex-red);
}

.xc-days button.blocked {
  background: #f7d9d5;
  color: #ae3730;
  font-weight: bold;
}

.xc-calendar-legend {
  color: #8d8780;
  display: flex;
  font-size: 8px;
  gap: 20px;
  margin-top: 18px;
}

.xc-calendar-legend span {
  align-items: center;
  display: flex;
  gap: 5px;
}

.xc-calendar-legend i {
  background: #f2f2ef;
  border: 1px solid #d6d4cf;
  height: 7px;
  width: 7px;
}

.xc-calendar-legend span:nth-child(2) i {
  background: #f7d9d5;
  border: 0;
}

.xc-selected {
  padding: 25px 21px;
}

.xc-selected select {
  background: #f0efeb;
  border: 1px solid #dddcd7;
  color: #222;
  font-size: 10px;
  margin: 16px 0 20px;
  outline: 0;
  padding: 11px;
  width: 100%;
}

.xc-selected > img {
  height: 120px;
  object-fit: cover;
  width: 100%;
}

.xc-selected h3 {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  margin: 15px 0 5px;
}

.xc-selected p {
  color: #99918a;
  font-size: 9px;
  margin: 0;
}

.xc-selected hr {
  border: 0;
  border-top: 1px solid #deded9;
  margin: 20px 0;
}

.xc-selected > strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 23px;
  margin-top: 8px;
}

.xc-rates {
  background: #fafaf8;
}

.xc-rate-row {
  align-items: center;
  border-bottom: 1px solid #e2e1dc;
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 22px;
}

.xc-rate-row:last-child {
  border: 0;
}

.xc-rate-value, .xc-rate-edit {
  align-items: center;
  display: flex;
  gap: 6px;
}

.xc-rate-value > strong {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.xc-rate-value > small {
  color: #99918a;
  font-size: 9px;
}

.xc-rate-value button, .xc-rate-edit button {
  align-items: center;
  background: #eeeae5;
  border: 0;
  color: #675e58;
  display: flex;
  font-size: 9px;
  gap: 4px;
  margin-left: 13px;
  padding: 7px 9px;
  transition: color 0.15s, background 0.15s;
}

.xc-rate-value button:hover {
  color: var(--ex-red);
  background: #e4dfd8;
}

.xc-rate-edit input {
  border: 1px solid #bbb5ae;
  font-size: 12px;
  outline: 0;
  padding: 7px;
  width: 65px;
}

.xc-rate-edit button {
  background: #111;
  color: white;
  margin-left: 3px;
}

.xc-rate-edit button:hover {
  background: var(--ex-red);
}

.xc-private {
  align-items: center;
  color: #a29387;
  display: flex;
  font-size: 9px;
  gap: 5px;
}

.xc-empty {
  background: white;
  padding: 70px;
  text-align: center;
}

.xc-modal-bg {
  z-index: 70;
}

.xc-add-modal {
  background: #fafaf8;
  color: #1b1b1b;
  max-width: 640px;
  padding: 29px;
  width: 100%;
  animation: slideUp 0.25s ease-out;
}

.xc-add-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.xc-add-head h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  margin: 9px 0 25px;
}

.xc-add-head button {
  background: none;
  border: 1px solid #d8d5cf;
  color: #444;
  padding: 7px;
}

.xc-form {
  display: grid;
  gap: 13px;
  grid-template-columns: 1fr 1fr;
}

.xc-form label {
  color: #77716a;
  display: flex;
  flex-direction: column;
  font-size: 9px;
  gap: 6px;
}

.xc-form input, .xc-form select, .xc-form textarea {
  background: white;
  border: 1px solid #d9d6d0;
  color: #222;
  font-size: 11px;
  outline: 0;
  padding: 10px;
}

.xc-form textarea {
  min-height: 67px;
  resize: vertical;
}

.xc-form .wide {
  grid-column: 1 / -1;
}

.xc-add-footer {
  align-items: center;
  border-top: 1px solid #dfddd7;
  display: flex;
  justify-content: space-between;
  margin-top: 21px;
  padding-top: 17px;
}

.xc-add-footer small {
  color: #99918a;
  font-size: 9px;
  max-width: 190px;
}

.xc-add-footer > div {
  display: flex;
  gap: 8px;
}

.xc-cancel {
  background: none;
  border: 1px solid #d4d0c9;
  color: #68615b;
  font-size: 10px;
  padding: 0 13px;
}

/* Media Queries */
@media (max-width: 1050px) {
  .ex-header {
    padding-left: 29px;
    padding-right: 29px;
  }
  .ex-hero {
    padding-left: 29px;
    padding-right: 29px;
  }
  .ex-hero-footer {
    left: 29px;
    right: 29px;
  }
  .ex-hero-right {
    right: 29px;
  }
  .ex-vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ex-intro, .ex-values {
    padding-left: 8vw;
    padding-right: 8vw;
  }
  .xc-sidebar {
    width: 205px;
  }
  .xc-admin-header, .xc-content {
    padding-left: 29px;
    padding-right: 29px;
  }
}

@media (max-width: 740px) {
  .ex-header {
    height: 68px;
    padding: 0 20px;
  }
  .ex-nav {
    background: var(--ex-black);
    border-bottom: 1px solid var(--ex-line);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    margin: 0;
    padding: 10px 20px 16px;
    position: absolute;
    right: 0;
    top: 68px;
  }
  .ex-nav.open {
    display: flex;
  }
  .ex-nav a {
    border-bottom: 1px solid var(--ex-line);
    padding: 14px 0;
  }
  .ex-menu {
    display: block;
  }
  .ex-admin-trigger {
    font-size: 0;
    padding: 6px;
    border: 0;
  }
  .ex-admin-trigger svg {
    height: 19px;
    width: 19px;
  }
  .ex-hero {
    min-height: 750px;
    padding: 68px 20px 25px;
  }
  .ex-hero::before {
    top: 68px;
    width: 45%;
  }
  .ex-hero-main {
    height: 415px;
    padding-left: 4%;
    width: 100%;
  }
  .ex-hero-wordmark span {
    font-size: clamp(56px, 17vw, 100px);
  }
  .ex-hero-wordmark strong {
    font-size: clamp(19px, 6vw, 32px);
    letter-spacing: 0.37em;
    margin-top: 22px;
  }
  .ex-hero-logo {
    max-width: min(380px, 90vw);
    margin-left: 0;
  }
  .ex-hero-main p {
    font-size: 14px;
    margin-top: 29px;
    max-width: 290px;
  }
  .ex-hero-right {
    height: 310px;
    right: 20px;
    top: 430px;
    width: 83%;
  }
  .ex-hero-image {
    height: 278px;
    top: 0;
    width: 82%;
  }
  .ex-hero-side-copy {
    bottom: 47px;
    left: -23px;
  }
  .ex-hero-side-copy span {
    font-size: 14px;
  }
  .ex-hero-footer {
    bottom: 14px;
    font-size: 7px;
    left: 20px;
    right: 20px;
    justify-content: flex-end;
  }
  .ex-hero-footer > span:first-child, .ex-hero-footer > span:last-child {
    display: none;
  }
  .ex-intro {
    display: block;
    min-height: auto;
    padding: 63px 29px 70px;
  }
  .ex-red-rule {
    height: 7px;
    margin-bottom: 33px;
    width: 70px;
  }
  .ex-intro h1 {
    font-size: 54px;
  }
  .ex-intro > p {
    font-size: 13px;
    line-height: 1.7;
    margin: 33px 0 0;
  }
  .ex-inventory {
    padding: 76px 20px 88px;
  }
  .ex-inventory-head {
    align-items: start;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 42px;
  }
  .ex-inventory h2 {
    font-size: 54px;
  }
  .ex-filter-row {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 50px;
  }
  .ex-filters {
    gap: 21px;
  }
  .ex-search {
    width: 100%;
  }
  .ex-group-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
  .ex-group-heading h3 {
    font-size: 30px;
  }
  .ex-group-heading p {
    max-width: 240px;
    text-align: left;
  }
  .ex-vehicle-grid {
    grid-template-columns: 1fr;
  }
  .ex-vehicle-card {
    height: 430px;
  }
  .ex-fleet-group {
    margin-bottom: 70px;
  }
  .ex-values {
    display: block;
    min-height: auto;
    padding: 75px 29px 80px;
  }
  .ex-values h2 {
    font-size: 54px;
  }
  .ex-value-list {
    gap: 20px;
    grid-template-columns: 1fr;
    margin-top: 52px;
    padding: 0;
  }
  .ex-value-list > div {
    min-height: 87px;
  }
  .ex-value-list b {
    margin-bottom: 11px;
  }
  .ex-footer {
    display: block;
    padding: 58px 29px 24px;
  }
  .ex-footer-contact, .ex-footer-location {
    margin-top: 50px;
  }
  .ex-footer-bottom {
    margin-top: 59px;
  }
  .ex-detail-modal {
    display: block;
    max-height: 94vh;
  }
  .ex-detail-image {
    min-height: 280px;
    height: 280px;
  }
  .ex-detail-image > b {
    font-size: 31px;
  }
  .ex-detail-copy {
    padding: 37px 25px 29px;
  }
  .ex-detail-copy h2 {
    font-size: 49px;
  }
  .xc-admin {
    display: block;
  }
  .xc-sidebar {
    min-height: auto;
    padding: 17px 20px 0;
    width: 100%;
  }
  .xc-admin-tag {
    margin-top: -24px;
  }
  .xc-side-label, .xc-back {
    display: none;
  }
  .xc-sidebar nav {
    flex-direction: row;
    margin-top: 28px;
    overflow-x: auto;
  }
  .xc-sidebar nav button {
    border-bottom: 2px solid transparent;
    border-left: 0;
    justify-content: center;
    padding: 10px 13px;
    white-space: nowrap;
  }
  .xc-sidebar nav button.active {
    border-bottom-color: var(--ex-red);
    border-left: 0;
  }
  .xc-admin-header {
    min-height: 88px;
    padding: 0 20px;
  }
  .xc-admin-header h1 {
    font-size: 23px;
  }
  .xc-content {
    padding: 25px 20px 50px;
  }
  .xc-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .xc-metrics > div:last-child {
    grid-column: 1 / -1;
  }
  .xc-dashboard-grid, .xc-calendar-layout {
    grid-template-columns: 1fr;
  }
  .xc-content-title {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }
  .xc-thead, .xc-tr {
    min-width: 700px;
  }
  .xc-table {
    overflow-x: auto;
  }
  .xc-calendar-card {
    padding: 20px 13px;
  }
  .xc-days button, .xc-days i {
    height: 45px;
  }
  .xc-add-modal {
    padding: 23px 19px;
  }
  .xc-add-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .xc-add-footer > div {
    width: 100%;
  }
  .xc-add-footer > div button {
    flex: 1;
  }
  .ex-toast {
    bottom: 14px;
    max-width: calc(100vw - 28px);
    text-align: center;
    width: max-content;
  }
}

@media (max-width: 430px) {
  .ex-hero-wordmark span {
    font-size: 55px;
  }
  .ex-hero-wordmark strong {
    font-size: 18px;
  }
  .ex-inventory h2, .ex-values h2 {
    font-size: 48px;
  }
  .xc-metrics > div {
    padding: 14px;
  }
  .xc-metrics strong {
    font-size: 28px;
  }
  .xc-user {
    font-size: 0;
  }
  .xc-user b {
    font-size: 8px;
  }
}
