@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --sp-bg: #121416;
  --sp-surface: #1b1d20;
  --sp-surface-2: #24272b;
  --sp-border: #30343a;
  --sp-text: #f7f7f5;
  --sp-muted: #a9afb7;
  --sp-accent: #8a2036;
  --sp-accent-hover: #a72a42;
  --sp-radius-sm: 12px;
  --sp-radius-md: 18px;
  --sp-radius-lg: 24px;
  --sp-shadow: 0 18px 50px rgba(0,0,0,.26);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; }
body, button, input, select, textarea { font-family: inherit !important; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.brand { display:flex; align-items:center; gap:12px; min-width:0; }
.brand-logo { display:block; width:190px; max-width:46vw; height:auto; }
.brand-logo-mark { display:block; width:58px; height:auto; }
.brand-large { justify-content:center; }
.brand-large .brand-logo { width:250px; max-width:100%; }

.lucide { width:18px; height:18px; stroke-width:1.9; flex:0 0 auto; }
.icon-button .lucide, .menu-button .lucide { width:20px; height:20px; }
.button-content { display:inline-flex; align-items:center; justify-content:center; gap:9px; }

.primary-button, .secondary-button, .ghost-button, .view-link, .open-vehicle-button, .danger-button, .tab-button {
  transition: transform .14s ease, background-color .14s ease, border-color .14s ease, box-shadow .14s ease, color .14s ease;
}
.primary-button:hover, .secondary-button:hover, .ghost-button:hover, .view-link:hover, .open-vehicle-button:hover { transform:translateY(-1px); }
.primary-button:active, .secondary-button:active, .ghost-button:active, .view-link:active, .open-vehicle-button:active { transform:translateY(0); }
.primary-button { background:var(--sp-accent) !important; box-shadow:0 8px 20px rgba(138,32,54,.22); }
.primary-button:hover { background:var(--sp-accent-hover) !important; box-shadow:0 10px 25px rgba(138,32,54,.3); }

input, select, textarea { transition:border-color .14s ease, box-shadow .14s ease, background-color .14s ease; }
h1, h2, h3, strong { letter-spacing:-.025em; }
.eyebrow, .admin-kicker, .login-kicker { letter-spacing:.12em !important; font-weight:700 !important; }

@media (max-width: 620px) {
  .brand-logo { width:155px; }
  .brand-large .brand-logo { width:220px; }
}
.admin-title-group { display:flex; align-items:center; gap:16px; }
.admin-title-group h1 { margin:0; }
.admin-title-group .admin-kicker { margin-bottom:5px; }
.search-box > .lucide { color:var(--sp-muted); }
/* Shared ServicePass colour mapping keeps every legacy page on one system. */
:root {
  --bg: var(--sp-bg);
  --background: var(--sp-bg);
  --surface: var(--sp-surface);
  --surface-light: var(--sp-surface-2);
  --surface-2: var(--sp-surface-2);
  --surface-soft: var(--sp-surface-2);
  --border: var(--sp-border);
  --text: var(--sp-text);
  --muted: var(--sp-muted);
  --accent: var(--sp-accent);
  --accent-light: var(--sp-accent-hover);
  --accent-bright: var(--sp-accent-hover);
}

.card, .history-card, .admin-card, .vehicle-panel, .stat-card, .login-card {
  box-shadow: var(--sp-shadow);
}

.view-link, .ghost-button, .secondary-button, .tab-button {
  border-color: var(--sp-border) !important;
}

/* V20.6 compact header wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark-icon {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
}
.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .035em;
}
.brand-service { color: var(--sp-text); }
.brand-pass { color: var(--sp-accent-hover); }
.brand-large { justify-content: center; }
.brand-large .brand-mark-icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}
.brand-large .brand-wordmark { font-size: 21px; }

.admin-title-group {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.admin-title-group .admin-brand {
  padding-right: 18px;
  border-right: 1px solid var(--sp-border);
}
.admin-title-group h1 { margin: 0; }

@media (max-width: 620px) {
  .brand { gap: 8px; }
  .brand-mark-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  .brand-wordmark { font-size: 15px; }
  .brand-large .brand-mark-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .brand-large .brand-wordmark { font-size: 19px; }
  .admin-title-group { gap: 12px; }
  .admin-title-group .admin-brand {
    padding-right: 12px;
  }
}


/* V2.3.1 unified workshop header */
.unified-app-header {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 14, 17, 0.96);
  backdrop-filter: blur(18px);
}

.unified-app-header .header-inner {
  display: flex;
  width: min(1180px, calc(100% - 36px));
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.unified-app-header .account-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.unified-app-header .account-workshop {
  display: grid;
  min-width: 150px;
  gap: 2px;
  margin-right: 4px;
  text-align: right;
}

.unified-app-header .account-workshop strong {
  font-size: 12px;
  line-height: 1.2;
}

.unified-app-header .account-workshop span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.unified-app-header .ghost-button,
.unified-app-header .view-link,
.unified-app-header .secondary-nav-link {
  display: inline-flex !important;
  min-height: 42px;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  padding: 0 14px;
  line-height: 1 !important;
  text-align: center;
}

.unified-app-header .button-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.unified-app-header svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.active-header-link {
  color: #fff !important;
  background: rgba(138, 32, 54, 0.72) !important;
}

@media (max-width: 860px) {
  .unified-app-header .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .unified-app-header .account-area {
    width: 100%;
    justify-content: flex-start;
  }

  .unified-app-header .account-workshop {
    width: 100%;
    text-align: left;
  }
}

.app-header a,.app-header a:hover,.app-header a:focus,.app-header a:visited{text-decoration:none!important}.app-header [hidden]{display:none!important}
