:root {
  --ink: #111827;
  --muted: #667085;
  --line: #d9e0e8;
  --panel: #ffffff;
  --bg: #f5f7fa;
  --soft: #eef3f8;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --warn: #b42318;
  --ok: #067647;
  --gold: #b7791f;
  --shadow: 0 18px 45px rgba(17, 24, 39, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent-dark);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand span {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  letter-spacing: .04em;
}

.brand .brand-mark {
  color: white;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-actions {
  color: var(--muted);
  font-size: 14px;
  justify-content: flex-end;
}

.nav-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.topbar-service-status {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(560px, 44vw);
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(23, 32, 51, .06);
  white-space: nowrap;
}

.topbar-service-status strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.topbar-service-status strong::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #16a34a;
}

.topbar-service-status span {
  max-width: 360px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
}

.topbar-service-status .queue-pill {
  max-width: none;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.topbar-service-status.delay {
  border-color: #fed7aa;
  background: #fff7ed;
}

.topbar-service-status.delay strong::before {
  background: #f59e0b;
}

.topbar-service-status.closed {
  border-color: #fecaca;
  background: #fff1f0;
}

.topbar-service-status.closed strong::before {
  background: #dc2626;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
}

.language-switch a {
  min-width: 38px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.language-switch a.active {
  background: var(--accent);
  color: #04110f;
}

.layout,
.admin-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero {
  min-height: 430px;
  display: flex;
  align-items: end;
  margin-bottom: 24px;
  padding: clamp(28px, 7vw, 72px);
  color: white;
  background:
    radial-gradient(circle at 70% 15%, rgba(10, 165, 255, .22), transparent 26rem),
    linear-gradient(135deg, #05070b 0%, #081326 58%, #101827 100%);
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .74);
  font-weight: 750;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
}

.button-link,
button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-link {
  display: inline-flex;
  align-items: center;
}

button:hover,
.button-link:hover {
  background: var(--accent-dark);
}

.order-form,
.order-card,
.notice,
.empty,
.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .05);
}

.order-form {
  overflow: hidden;
}

.form-section {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2,
h3 {
  margin: 0;
}

.grid {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(15, 118, 110, .16);
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}

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

.service {
  grid-template-columns: 22px 1fr;
  align-items: center;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.service:hover {
  border-color: rgba(15, 118, 110, .45);
  box-shadow: 0 8px 18px rgba(17, 24, 39, .06);
  transform: translateY(-1px);
}

.service input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.service span {
  display: grid;
  gap: 3px;
}

.service small,
.checkout span,
.topbar span,
small {
  color: var(--muted);
}

.checkout {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  background: rgba(251, 252, 253, .95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.checkout span {
  display: block;
  margin-bottom: 2px;
}

.checkout strong {
  font-size: 26px;
}

.notice {
  margin-bottom: 16px;
  padding: 18px 20px;
}

.notice h2 {
  margin-bottom: 10px;
}

.notice p {
  margin: 7px 0;
}

.notice.success {
  border-color: rgba(6, 118, 71, .35);
  background: #ecfdf3;
}

.notice.error {
  border-color: rgba(180, 35, 24, .35);
  background: #fff1f0;
  color: var(--warn);
}

.admin-layout {
  display: grid;
  gap: 16px;
}

.order-card {
  padding: 20px;
}

.order-head,
.order-grid,
.admin-actions {
  display: grid;
  gap: 16px;
}

.order-head {
  grid-template-columns: 1fr auto;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.order-head h2 {
  margin-bottom: 6px;
}

.order-head p {
  margin: 4px 0;
  color: var(--muted);
}

.order-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px 0;
}

.order-grid h3 {
  margin-bottom: 10px;
}

.order-grid ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.badge.paid,
.badge.ready,
.badge.sent {
  background: #ecfdf3;
  color: var(--ok);
}

.badge.working {
  background: #fff7e6;
  color: var(--gold);
}

.badge.paid_working {
  background: #fff7e6;
  color: var(--gold);
}

.badge.waiting_payment {
  background: #fff7ed;
  color: #b45309;
}

.badge.cancelled {
  background: #fff1f0;
  color: var(--warn);
}

.badge.rejected {
  background: #fff1f0;
  color: var(--warn);
}

.notes,
.ready-box {
  padding: 12px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-actions {
  grid-template-columns: 180px 1fr auto;
  align-items: end;
  margin-top: 16px;
}

.admin-extra-actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-extra-actions form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}

.admin-extra-actions .reject-action {
  grid-template-columns: 1fr auto;
}

.danger-button {
  background: #b42318;
}

.danger-button:hover {
  background: #8f1d14;
}

.delete-button {
  background: #4b5563;
}

.delete-button:hover {
  background: #374151;
}

.file-link,
.ready-box a {
  overflow-wrap: anywhere;
}

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

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, rgba(10, 165, 255, .18), transparent 34rem),
    linear-gradient(135deg, #05070b 0%, #0b1220 45%, #101827 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  text-align: center;
}

.login-brand {
  justify-content: center;
  margin-bottom: 2px;
}

.login-card h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

@media (max-width: 820px) {
  .nav-actions,
  .hero-actions,
  .checkout,
  .order-head,
  .service-status-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .topbar-service-status {
    justify-self: stretch;
    max-width: 100%;
    white-space: normal;
  }

  .hero {
    min-height: 390px;
  }

  .two,
  .services,
  .order-grid,
  .admin-actions,
  .admin-extra-actions form,
  .admin-extra-actions .reject-action,
  .service-status-form {
    grid-template-columns: 1fr;
  }

  .checkout button,
  .button-link {
    width: 100%;
    justify-content: center;
  }
}

.portal-page {
  --ink: #f4f7fb;
  --muted: #9aa8b7;
  --line: #263244;
  --panel: #111827;
  --bg: #0b0f17;
  --soft: #172033;
  --accent: #28c3a7;
  --accent-dark: #15967f;
  --shadow: 0 16px 42px rgba(0, 0, 0, .28);
  background:
    linear-gradient(180deg, rgba(14, 20, 31, .98), rgba(7, 10, 16, .98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 72px);
  color: var(--ink);
}

.portal-page .topbar {
  background: rgba(11, 15, 23, .88);
  border-bottom-color: #222c3b;
}

.portal-page .brand span,
.portal-page .nav-link {
  color: var(--ink);
}

.portal-page .brand-mark {
  background: rgba(40, 195, 167, .12);
  color: var(--accent);
  border: 1px solid rgba(40, 195, 167, .34);
}

.portal-layout {
  width: min(1840px, calc(100% - 32px));
}

.portal-hero {
  padding: 22px 0 8px;
}

.portal-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0;
}

.portal-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.portal-page .eyebrow {
  color: var(--accent);
}

.portal-form,
.portal-page .notice {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.portal-page .form-section,
.portal-page .order-card,
.portal-page .login-card {
  background: rgba(17, 24, 39, .94);
  border: 1px solid rgba(93, 111, 136, .28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portal-page .form-section {
  margin-bottom: 16px;
  padding: clamp(18px, 2.4vw, 26px);
}

.step-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.step-title h2 {
  margin: 0 0 4px;
  font-size: clamp(18px, 1.5vw, 23px);
}

.step-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}

.step-title-row {
  justify-content: space-between;
  gap: 18px;
}

.step-title-row > .step-title {
  margin-bottom: 0;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  background: rgba(40, 195, 167, .12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.portal-page label {
  color: var(--ink);
  font-size: 14px;
}

.portal-page input,
.portal-page textarea,
.portal-page select {
  min-height: 46px;
  background: #0c121d;
  color: var(--ink);
  border-color: #263244;
  font-weight: 550;
}

.portal-page input::placeholder,
.portal-page textarea::placeholder {
  color: #8eaaad;
}

.portal-page input:focus,
.portal-page textarea:focus,
.portal-page select:focus {
  outline: 3px solid rgba(0, 229, 239, .13);
  border-color: var(--accent);
}

.wide-label {
  margin-top: 16px;
}

.upload-box {
  min-height: 168px;
  place-items: center;
  padding: 28px;
  border: 1px dashed #526173;
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  text-align: center;
  cursor: pointer;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.upload-box strong {
  margin-top: 10px;
  font-size: 18px;
}

.upload-box small {
  max-width: 620px;
  color: var(--muted);
}

.option-search {
  width: min(310px, 100%);
}

.option-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid #263244;
  border-radius: 8px;
  background: #0c121d;
}

.tab-button {
  min-height: 38px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 0 16px;
}

.tab-button.active {
  background: rgba(40, 195, 167, .13);
  color: var(--accent);
  border-color: rgba(40, 195, 167, .34);
}

.service-group {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #263244;
  border-radius: 8px;
  background: #111827;
}

.service-group[hidden] {
  display: none;
}

.service-group legend {
  padding: 0 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.portal-page .services {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-page .service {
  min-height: 52px;
  background: #151e2e;
  border-color: #293548;
}

.portal-page .service:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(40, 195, 167, .10);
  transform: none;
}

.portal-page .service input {
  width: 18px;
  min-height: 18px;
}

.portal-page .service small {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(40, 195, 167, .13);
  color: #53dec6;
  font-weight: 900;
}

.portal-checkout {
  background: rgba(11, 15, 23, .94);
  border: 1px solid #263244;
  border-radius: 8px;
}

.portal-page button,
.portal-page .button-link {
  background: #28c3a7;
  color: #04110f;
}

.portal-page button:hover,
.portal-page .button-link:hover {
  background: var(--accent);
}

@media (max-width: 820px) {
  .step-title-row,
  .portal-page .services {
    grid-template-columns: 1fr;
  }

  .step-title-row {
    flex-direction: column;
  }
}

/* Distinct light operations theme */
.portal-page {
  --ink: #172033;
  --muted: #64748b;
  --line: #d8e0ea;
  --panel: #ffffff;
  --bg: #eef3f8;
  --soft: #f4f7fb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --warm: #f59e0b;
  --shadow: 0 14px 34px rgba(23, 32, 51, .08);
  background:
    linear-gradient(180deg, #f7fafc 0, #eef3f8 260px, #e9eef5 100%);
  color: var(--ink);
}

.portal-page .topbar {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
}

.portal-page .brand span,
.portal-page .nav-link {
  color: var(--ink);
}

.portal-page .brand-mark {
  background: #172033;
  color: white;
  border: 0;
}

.portal-layout {
  width: min(1380px, calc(100% - 32px));
  padding-top: 20px;
}

.portal-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin: 18px 0 16px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.form-header h1 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: 0;
}

.form-header span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--accent);
  font-weight: 900;
}

.service-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.service-status-banner strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-status-banner strong::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #16a34a;
}

.service-status-banner span {
  color: var(--muted);
  font-weight: 650;
}

.service-status-banner.delay {
  border-color: #fed7aa;
  background: #fff7ed;
}

.service-status-banner.delay strong::before {
  background: #f59e0b;
}

.service-status-banner.closed {
  border-color: #fecaca;
  background: #fff1f0;
}

.service-status-banner.closed strong::before {
  background: #dc2626;
}

.service-status-form {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 12px;
  align-items: end;
}

.portal-hero::after {
  content: "ECU / TCU";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--accent);
  font-weight: 900;
  border: 1px solid #bfdbfe;
}

.portal-page .eyebrow {
  margin-bottom: 8px;
  color: var(--warm);
  font-size: 13px;
  text-transform: uppercase;
}

.portal-hero h1 {
  font-size: clamp(26px, 3vw, 38px);
}

.portal-hero p {
  color: var(--muted);
}

.portal-page .form-section,
.portal-page .order-card,
.portal-page .login-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.portal-page .form-section {
  position: relative;
  padding: 22px;
}

.portal-page .form-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.step-title {
  margin-bottom: 18px;
}

.step-title h2 {
  color: var(--ink);
  font-size: clamp(18px, 1.4vw, 22px);
}

.step-title p {
  color: var(--muted);
}

.billing-note {
  max-width: 720px;
  margin-top: 8px !important;
  color: #475569 !important;
  font-size: 13px !important;
}

.step-icon {
  background: #eff6ff;
  color: var(--accent);
  border: 1px solid #bfdbfe;
}

.portal-page label {
  color: #334155;
}

.portal-page input,
.portal-page textarea,
.portal-page select {
  background: #ffffff;
  color: var(--ink);
  border-color: #cbd5e1;
}

.portal-page input::placeholder,
.portal-page textarea::placeholder {
  color: #94a3b8;
}

.portal-page input:focus,
.portal-page textarea:focus,
.portal-page select:focus {
  outline: 3px solid rgba(37, 99, 235, .14);
  border-color: var(--accent);
}

.upload-box {
  min-height: 150px;
  grid-template-columns: auto 1fr;
  justify-items: start;
  text-align: left;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.upload-icon {
  width: 54px;
  height: 54px;
  border-color: var(--accent);
  color: var(--accent);
  background: #eff6ff;
}

.upload-box strong {
  color: var(--ink);
}

.upload-box small {
  color: var(--muted);
}

.option-tabs {
  border-color: var(--line);
  background: #f8fafc;
}

.tab-button {
  color: var(--muted);
}

.tab-button.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.service-group {
  background: #f8fafc;
  border-color: var(--line);
}

.service-group legend {
  color: var(--ink);
  background: #f8fafc;
}

.portal-page .service {
  background: #ffffff;
  border-color: #d6dee8;
}

.portal-page .service:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .08);
}

.portal-page .service input {
  accent-color: var(--accent);
}

.portal-page .service small {
  background: #fff7ed;
  color: #b45309;
}

.portal-checkout {
  background: rgba(255, 255, 255, .96);
  border-color: var(--line);
  box-shadow: 0 -10px 24px rgba(23, 32, 51, .07);
}

.custom-scope {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.portal-page button,
.portal-page .button-link,
.language-switch a.active {
  background: var(--accent);
  color: white;
}

.portal-page button:hover,
.portal-page .button-link:hover {
  background: var(--accent-dark);
}

.language-switch {
  background: #f8fafc;
  border-color: var(--line);
}

.language-switch a {
  color: var(--muted);
}

@media (max-width: 820px) {
  .portal-hero {
    grid-template-columns: 1fr;
  }

  .form-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-hero::after {
    justify-content: flex-start;
  }

  .upload-box {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Compact option list */
.portal-page .service-group {
  padding: 0;
  overflow: hidden;
}

.portal-page .service-group legend {
  width: 100%;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.portal-page .services {
  grid-template-columns: 1fr;
  gap: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
}

.portal-page .service {
  min-height: 56px;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 18px;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.portal-page .service:last-child {
  border-bottom: 0;
}

.portal-page .service:hover {
  background: #f8fafc;
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.portal-page .service span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.portal-page .service small {
  justify-self: end;
  min-width: 96px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #334155;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

.status-hero::after {
  content: "STATUS";
}

.status-card {
  display: grid;
  gap: 18px;
}

.status-summary {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.status-summary h2 {
  margin: 0 0 8px;
}

.status-summary p {
  margin: 6px 0;
}

.payment-box {
  margin: 0;
}

.status-history {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.status-history li {
  color: var(--muted);
}

.status-history strong {
  display: inline-block;
  min-width: 140px;
  color: var(--ink);
}

.refresh-note {
  color: var(--muted);
  font-size: 13px;
}

/* Logo palette: graphite, electric blue and silver */
:root {
  --ink: #081326;
  --muted: #64748b;
  --line: #cfd8e3;
  --bg: #edf3f9;
  --accent: #058ee8;
  --accent-dark: #006fbd;
  --soft: #eaf5ff;
  --shadow: 0 16px 38px rgba(8, 19, 38, .10);
}

body {
  background:
    linear-gradient(180deg, #f7fbff 0, #edf3f9 280px, #e7eef6 100%);
  color: var(--ink);
}

.topbar,
.portal-page .topbar {
  min-height: 92px;
  background: linear-gradient(90deg, #05070b, #101827);
  border-bottom: 1px solid #1f2b3d;
  box-shadow: 0 10px 28px rgba(5, 7, 11, .18);
}

.brand span,
.portal-page .brand span,
.nav-link,
.portal-page .nav-link {
  color: #f8fafc;
}

.brand-logo {
  width: 260px;
  height: 72px;
  object-fit: contain;
  border-radius: 0;
}

.brand > span {
  display: none;
}

.topbar-service-status {
  border-color: rgba(22, 163, 74, .45);
  background: rgba(8, 47, 28, .92);
  color: #f8fafc;
  box-shadow: 0 0 0 1px rgba(5, 142, 232, .10), 0 12px 28px rgba(0, 0, 0, .22);
}

.topbar-service-status strong {
  color: #f8fafc;
}

.topbar-service-status strong::before {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

.topbar-service-status span {
  color: #b8c7d9;
}

.topbar-service-status .queue-pill {
  border-left-color: rgba(207, 216, 227, .22);
  color: #eaf5ff;
}

.topbar-service-status.delay {
  border-color: rgba(245, 158, 11, .45);
  background: rgba(46, 33, 13, .92);
}

.topbar-service-status.closed {
  border-color: rgba(220, 38, 38, .5);
  background: rgba(45, 14, 18, .92);
}

.language-switch {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(207, 216, 227, .25);
}

.language-switch a {
  color: #b8c7d9;
}

.language-switch a.active,
.portal-page button,
.portal-page .button-link {
  background: linear-gradient(180deg, #0aa5ff, #057fd2);
  color: #ffffff;
}

.portal-page button:hover,
.portal-page .button-link:hover {
  background: linear-gradient(180deg, #22b4ff, #0576c2);
}

.portal-page {
  --ink: #081326;
  --muted: #64748b;
  --line: #cfd8e3;
  --panel: #ffffff;
  --bg: #edf3f9;
  --soft: #eaf5ff;
  --accent: #058ee8;
  --accent-dark: #006fbd;
  --warm: #058ee8;
  --shadow: 0 16px 38px rgba(8, 19, 38, .10);
  background:
    linear-gradient(180deg, #f7fbff 0, #edf3f9 260px, #e7eef6 100%);
}

.portal-page .form-section,
.portal-page .order-card,
.portal-page .login-card,
.custom-scope {
  background: rgba(255, 255, 255, .96);
  border-color: #cfd8e3;
  box-shadow: var(--shadow);
}

.portal-page .form-section::before {
  background: linear-gradient(180deg, #0aa5ff, #056eb8);
}

.form-header span,
.step-icon,
.upload-icon {
  background: #eaf5ff;
  color: #057fd2;
  border-color: #a9d8ff;
}

.portal-page input,
.portal-page textarea,
.portal-page select {
  border-color: #bdc9d8;
  background: #ffffff;
}

.portal-page input:focus,
.portal-page textarea:focus,
.portal-page select:focus {
  outline: 3px solid rgba(5, 142, 232, .16);
  border-color: #058ee8;
}

.option-tabs {
  background: #edf5fd;
  border-color: #c6d7e8;
}

.tab-button.active {
  background: #081326;
  color: #ffffff;
  border-color: #081326;
}

.portal-page .service-group {
  border-color: #cfd8e3;
}

.portal-page .service-group legend {
  background: #edf5fd;
}

.portal-page .service:hover {
  background: #f3f9ff;
}

.portal-page .service input {
  accent-color: #058ee8;
}

.portal-page .service small {
  color: #0570bd;
}

.portal-checkout {
  background: rgba(255, 255, 255, .97);
  border-color: #cfd8e3;
}

/* Admin login */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -12rem, rgba(10, 165, 255, .24), transparent 34rem),
    radial-gradient(circle at 12% 80%, rgba(0, 111, 189, .15), transparent 28rem),
    linear-gradient(135deg, #05070b 0%, #081326 52%, #101827 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(430px, 100%);
  padding: 34px 32px 32px;
  gap: 18px;
  text-align: center;
  border-color: rgba(207, 216, 227, .9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.login-brand {
  justify-content: center;
  margin: 0 0 4px;
}

.login-page .brand-logo {
  width: 220px;
  height: 76px;
}

.login-card h1 {
  font-size: 28px;
  line-height: 1.15;
}

.login-card label {
  text-align: left;
}
