/* ECU Jobs inspired dark performance theme */
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
  --bg: #070b0e;
  --bg-soft: #0b1115;
  --paper: rgba(15, 23, 28, 0.82);
  --ink: #f6f7f9;
  --muted: #aab4bd;
  --muted-strong: #d5d9de;
  --line: rgba(255, 255, 255, 0.12);
  --portal-accent: #ff6a13;
  --portal-accent-dark: #ff8a2a;
  --portal-accent-rgb: 255, 106, 19;
  --portal-accent-soft: rgba(255, 106, 19, 0.1);
  --line-strong: rgba(var(--portal-accent-rgb), 0.42);
  --accent: var(--portal-accent);
  --accent-dark: var(--portal-accent-dark);
  --accent-soft: rgba(var(--portal-accent-rgb), 0.08);
  --green: var(--portal-accent);
  --dark: #070b0e;
  --dark-2: #111b21;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 122, 0, 0.24);
  background: rgba(9, 9, 9, 0.96);
  color: #fff;
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 220px;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.7);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 0.94rem;
  line-height: 1.1;
}

.brand span {
  color: #d6d1cb;
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  padding: 10px 11px;
  border-radius: 6px;
  color: #f0ece7;
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 122, 0, 0.16);
  color: #fff;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #111;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 122, 0, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-cta:hover,
.btn:hover {
  background: #ff8f22;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(255, 122, 0, 0.32);
}

.btn.secondary {
  background: var(--dark);
  box-shadow: none;
}

.btn.light {
  background: #fff;
  color: var(--dark);
  box-shadow: none;
}

.btn.light:hover {
  background: #f2eee8;
  color: var(--dark);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.18);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: none;
}

.btn:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(255, 122, 0, 0.5);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 76px));
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero.compact {
  min-height: 520px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--dark);
}

.hero > img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 6, 6, 0.94), rgba(10, 10, 10, 0.7) 47%, rgba(10, 10, 10, 0.2)),
    linear-gradient(0deg, rgba(255, 122, 0, 0.18), rgba(255, 122, 0, 0));
}

.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  align-content: center;
  min-height: inherit;
  padding: 76px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 6.6vw, 6.1rem);
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.25rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #eee7de;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: #efe7dd;
  font-size: 0.94rem;
}

.hero-contact span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: -54px;
  background: rgba(255, 122, 0, 0.22);
  box-shadow: var(--shadow);
}

.fact {
  min-height: 132px;
  padding: 24px;
  background: #fff;
  border-top: 3px solid var(--accent);
}

.fact strong {
  display: block;
  color: var(--accent);
  font-size: 1.02rem;
}

.fact span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-strip {
  padding: 32px 0 0;
}

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

.trust-grid div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  color: var(--ink);
}

.trust-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

section,
.page-section {
  padding: 92px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 48px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1fr);
}

.media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: var(--shadow);
}

.media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.text-block p {
  color: var(--muted);
}

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

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

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

.card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.07);
}

.card.dark {
  border: 1px solid rgba(255, 122, 0, 0.18);
  background: linear-gradient(180deg, #161616, #0f0f0f);
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.card p,
.card li {
  color: var(--muted);
}

.card.dark p,
.card.dark li {
  color: #ded7cf;
}

.card ul,
.check-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.card li,
.check-list li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
}

.card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.band {
  background: var(--dark);
  color: #fff;
  border-block: 1px solid rgba(255, 122, 0, 0.18);
}

.band .section-head p,
.band .text-block p {
  color: #d8d0c8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
}

.stat {
  padding: 30px;
  background: var(--dark-2);
  border-top: 3px solid var(--accent);
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: #d8d0c8;
}

.performance-proof {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(92, 214, 149, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(92, 214, 149, 0.12), transparent 26%),
    linear-gradient(145deg, rgba(var(--portal-accent-rgb), 0.12), rgba(255, 255, 255, 0.025)),
    rgba(7, 13, 16, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 24px 70px rgba(0, 0, 0, 0.28);
}

.performance-proof::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.28;
  pointer-events: none;
}

.performance-proof::after {
  position: absolute;
  right: clamp(18px, 5vw, 76px);
  bottom: 32px;
  width: min(420px, 72%);
  height: 150px;
  content: "";
  background:
    linear-gradient(145deg, transparent 0 12%, rgba(112, 212, 139, 0.22) 12% 14%, transparent 14% 28%, rgba(255, 212, 90, 0.2) 28% 30%, transparent 30% 45%, rgba(var(--portal-accent-rgb), 0.34) 45% 47%, transparent 47%),
    radial-gradient(circle at 78% 42%, rgba(var(--portal-accent-rgb), 0.18), transparent 36%);
  clip-path: polygon(0 72%, 14% 62%, 28% 52%, 42% 44%, 56% 36%, 72% 32%, 88% 28%, 100% 25%, 100% 45%, 88% 47%, 72% 52%, 56% 59%, 42% 66%, 28% 73%, 14% 80%, 0 88%);
  opacity: 0.7;
  pointer-events: none;
}

.performance-proof > * {
  position: relative;
  z-index: 1;
}

.performance-proof-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.performance-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 10px;
  padding: 0 10px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.32);
  border-radius: 999px;
  color: var(--portal-accent-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.performance-proof h3 {
  margin: 0;
  font-size: clamp(1.22rem, 2vw, 1.8rem);
}

.performance-gain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(92, 214, 149, 0.44);
  border-radius: 999px;
  background: rgba(92, 214, 149, 0.12);
  color: #84f0af;
  font-size: 0.92rem;
  font-weight: 950;
  white-space: nowrap;
}

.performance-bars {
  display: grid;
  gap: 16px;
}

.performance-row {
  display: grid;
  gap: 8px;
}

.performance-row div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.performance-row span {
  color: #aab4bd;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.performance-row strong {
  color: #f6f7f9;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1;
}

.performance-row i {
  display: block;
  overflow: hidden;
  height: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.performance-row b {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: #aab4bd;
}

.performance-row.tuned b {
  background: linear-gradient(90deg, #70d48b, #ffd45a 56%, var(--portal-accent));
  box-shadow: 0 0 22px rgba(var(--portal-accent-rgb), 0.28);
}

.torque-chip {
  display: grid;
  grid-template-columns: minmax(0, auto) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.34);
  border-radius: 12px;
  background: rgba(var(--portal-accent-rgb), 0.1);
}

.torque-chip span {
  color: #aab4bd;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.torque-chip strong {
  color: var(--portal-accent-dark);
  font-size: 1.25rem;
  line-height: 1;
}

.torque-chip em {
  color: #f1f4f6;
  font-style: normal;
  font-weight: 750;
}

.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-weight: 800;
}

.step p {
  margin: 6px 0 0;
  color: var(--muted);
}

.cta {
  padding: 70px 0;
  background: linear-gradient(135deg, #ff7a00, #db5d00);
  color: #111;
}

.cta .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta p {
  max-width: 680px;
  margin: 14px 0 0;
  color: #24150a;
}

.site-footer {
  background: #080808;
  color: #fff;
  padding: 56px 0 28px;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 32px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-grid a {
  color: #e8eeea;
  text-decoration: none;
}

.footer-grid p,
.footer-grid li {
  color: #d0cac3;
}

.footer-grid ul {
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aaa29a;
  font-size: 0.88rem;
}

.content-page {
  padding: 72px 0 96px;
}

.prose {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.prose h1 {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.prose h2 {
  margin-top: 34px;
  font-size: 1.45rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 16px;
}

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

.project-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 36px rgba(20, 23, 22, 0.08);
  border-top: 3px solid var(--accent);
}

.project-card h3 {
  font-size: 1.45rem;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-power {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.project-power div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.project-power span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-power strong {
  display: block;
  color: var(--accent);
  font-size: 1.02rem;
  line-height: 1.1;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.project-meta span {
  color: var(--muted);
}

.project-meta strong {
  color: var(--accent);
}

.project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.project strong {
  font-size: 1.15rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.notice {
  padding: 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: #3b220d;
}

.proof-band {
  padding: 64px 0;
  background: #ebe6dd;
}

.proof-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
}

.proof-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-section {
  padding: 88px 0;
  background: #ebe6dd;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: stretch;
}

.contact-copy,
.contact-card {
  padding: 34px;
  border-radius: var(--radius);
}

.contact-copy {
  background: var(--dark);
  color: #fff;
  border-top: 4px solid var(--accent);
}

.contact-copy p {
  color: #ded7cf;
}

.contact-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-card ul {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.contact-card li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact-card strong {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card a {
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
}


/* Final theme override: close visual match to ecu-jobs.app */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 4%, rgba(var(--portal-accent-rgb), 0.18), transparent 30rem),
    radial-gradient(circle at 12% 24%, rgba(var(--portal-accent-rgb), 0.08), transparent 24rem),
    linear-gradient(180deg, #06090c 0%, #0a1014 42%, #06090c 100%);
  color: #f6f7f9;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(var(--portal-accent-rgb), 0.08) 46% 46.3%, transparent 46.3%),
    linear-gradient(150deg, transparent 0 62%, rgba(var(--portal-accent-rgb), 0.05) 62% 62.2%, transparent 62.2%),
    radial-gradient(circle at 50% 0, transparent, rgba(0, 0, 0, 0.38) 68%);
}

p,
.section-head p,
.text-block p,
.card p,
.card li,
.fact span,
.trust-grid span,
.project-card p,
.project-meta span,
.project-power span,
.step p,
.prose p,
.prose li,
.contact-copy p,
.contact-card strong {
  color: #d5d9de;
}

.site-header {
  top: env(safe-area-inset-top, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 9, 12, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 40px, 1180px);
  min-height: 78px;
}

.brand {
  width: clamp(210px, 23vw, 286px);
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(255, 111, 15, 0.42), 0 12px 30px rgba(0, 0, 0, 0.34);
}

.brand strong {
  color: #fff;
  font-weight: 900;
}

.brand span {
  color: #aab4bd;
}

.nav-links {
  gap: clamp(12px, 1.4vw, 20px);
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  border-radius: 0;
  color: #eef1f4;
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
}

.nav-links a:not(.nav-cta)::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--portal-accent);
  transition: transform 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: transparent;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.btn,
.nav-links .nav-cta,
.nav-cta {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--portal-accent), #ff7b17 52%, var(--portal-accent-dark));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(var(--portal-accent-rgb), 0.26);
}

.btn:hover,
.btn:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(var(--portal-accent-rgb), 0.34);
}

.btn.light,
.btn.ghost,
.btn.secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  box-shadow: none;
}

.btn.light:hover,
.btn.ghost:hover,
.btn.secondary:hover {
  border-color: rgba(var(--portal-accent-rgb), 0.55);
  background: rgba(var(--portal-accent-rgb), 0.08);
  color: #fff;
  box-shadow: none;
}

.hero {
  display: grid;
  align-items: center;
  min-height: min(690px, calc(100vh - 78px));
  padding: clamp(32px, 4.5vw, 72px) 0 clamp(36px, 4.8vw, 64px);
  overflow: hidden;
  background: transparent;
  color: #f6f7f9;
}

.hero.compact {
  min-height: 560px;
}

.hero::before {
  display: none;
}

.hero::after {
  position: absolute;
  inset: auto max(20px, calc((100vw - 1180px) / 2)) 8% auto;
  z-index: -1;
  width: min(42vw, 560px);
  height: min(42vw, 560px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--portal-accent-rgb), 0.16), transparent 68%);
}

.hero > img {
  position: absolute;
  inset: 50% max(20px, calc((100vw - 1180px) / 2)) auto auto;
  z-index: 0;
  width: min(44vw, 560px);
  height: auto;
  max-height: calc(100% - 72px);
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  object-fit: contain;
  background: rgba(5, 9, 12, 0.9);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100% - 40px, 1180px);
  min-height: auto;
  padding: 0 min(48vw, 610px) 0 0;
}

.hero-inner::after {
  position: absolute;
  right: min(10vw, 120px);
  top: 50%;
  z-index: -1;
  width: min(34vw, 420px);
  height: min(28vw, 330px);
  content: "";
  transform: translateY(-50%) rotate(-10deg);
  border: 1px solid rgba(var(--portal-accent-rgb), 0.22);
  border-radius: 18px;
  pointer-events: none;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--portal-accent);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  color: #f6f7f9;
  line-height: 1.06;
  font-weight: 900;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.05rem, 3.55vw, 3.55rem);
}

h1 span {
  color: var(--accent);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 2.35vw, 2.5rem);
}

h3 {
  font-size: clamp(1.02rem, 1.15vw, 1.2rem);
}

.lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: #dce2e7;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
}

.hero-contact {
  gap: 14px 28px;
  max-width: 850px;
  margin-top: 24px;
  color: #f3f5f7;
}

.hero-contact span {
  min-height: 36px;
  border-color: rgba(255, 111, 15, 0.42);
  background: rgba(var(--portal-accent-rgb), 0.08);
  color: #f3f5f7;
  font-size: 0.9rem;
  font-weight: 800;
}

.section-inner,
.footer-grid,
.footer-bottom {
  width: min(100% - 40px, 1180px);
}

section,
.page-section {
  padding: clamp(64px, 7vw, 112px) 0;
}

.hero-facts {
  width: min(100% - 40px, 1180px);
  gap: 18px;
  margin-top: 0;
  background: transparent;
  box-shadow: none;
}

.fact,
.card,
.project-card,
.contact-card,
.contact-copy,
.prose,
.stat {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(var(--portal-accent-rgb), 0.08), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(15, 23, 28, 0.82);
  color: #f6f7f9;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.fact::before,
.card::before,
.project-card::before,
.contact-card::before,
.contact-copy::before,
.prose::before,
.stat::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, var(--portal-accent), rgba(var(--portal-accent-rgb), 0.18));
  opacity: 0.72;
  pointer-events: none;
}

.fact,
.card,
.project-card {
  border-top-color: rgba(var(--portal-accent-rgb), 0.24);
}

.fact strong,
.project-meta strong,
.project-power strong,
.badge,
.contact-card a {
  color: var(--portal-accent);
}

.trust-grid {
  gap: 18px;
}

.trust-grid div {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(var(--portal-accent-rgb), 0.08), transparent 38%),
    rgba(255, 255, 255, 0.03);
}

.trust-grid div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, var(--portal-accent), rgba(var(--portal-accent-rgb), 0.18));
  opacity: 0.72;
  pointer-events: none;
}

.media {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 28, 0.82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.media img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: rgba(5, 9, 12, 0.9);
}

.band,
.proof-band,
.contact-section {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(4, 9, 12, 0.36);
}

.card.dark {
  border-color: rgba(255, 111, 15, 0.42);
  background:
    linear-gradient(145deg, rgba(var(--portal-accent-rgb), 0.12), rgba(255, 255, 255, 0.026)),
    rgba(17, 27, 33, 0.94);
}

.card.dark p,
.card.dark li,
.band .section-head p,
.band .text-block p {
  color: #dce2e7;
}

.card li::before,
.check-list li::before {
  top: 0.08em;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  content: "✓";
  border: 1px solid rgba(255, 111, 15, 0.42);
  border-radius: 50%;
  background: transparent;
  color: var(--portal-accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.stats {
  gap: 18px;
  background: transparent;
}

.stat {
  padding: 28px;
}

.stat strong {
  color: #fff;
}

.step {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.step::before {
  background: var(--portal-accent);
  color: #fff;
}

.badge {
  border: 1px solid rgba(var(--portal-accent-rgb), 0.36);
  background: rgba(var(--portal-accent-rgb), 0.07);
}

.notice {
  border-color: rgba(var(--portal-accent-rgb), 0.26);
  background: rgba(var(--portal-accent-rgb), 0.055);
  color: #dce2e7;
}

.contact-card li {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.cta {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(var(--portal-accent-rgb), 0.18), rgba(255, 255, 255, 0.026)),
    rgba(17, 27, 33, 0.94);
  color: #f6f7f9;
}

.cta .section-inner {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 111, 15, 0.42);
  border-radius: 14px;
  background:
    radial-gradient(circle at 82% 20%, rgba(var(--portal-accent-rgb), 0.15), transparent 20rem),
    rgba(15, 23, 28, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.cta p {
  color: #dce2e7;
}

.internal-links {
  padding: clamp(44px, 6vw, 76px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006)),
    rgba(5, 9, 12, 0.72);
}

.internal-links-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.9fr 0.9fr;
  gap: 18px;
}

.internal-links-grid > div {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(var(--portal-accent-rgb), 0.18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(var(--portal-accent-rgb), 0.08), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(15, 23, 28, 0.74);
}

.internal-links-grid > div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, var(--portal-accent), rgba(var(--portal-accent-rgb), 0.18));
  opacity: 0.72;
}

.internal-links h2 {
  margin-bottom: 18px;
  font-size: clamp(1.12rem, 1.55vw, 1.45rem);
}

.internal-links ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.internal-links a {
  display: inline-flex;
  align-items: center;
  color: #dce2e7;
  font-weight: 760;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.internal-links a::before {
  width: 5px;
  height: 5px;
  margin-right: 11px;
  border-radius: 50%;
  background: rgba(var(--portal-accent-rgb), 0.58);
  content: "";
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(var(--portal-accent-rgb), 0.07);
}

.internal-links a:hover,
.internal-links a:focus-visible {
  color: #fff;
  transform: translateX(1px);
}

.internal-links a:hover::before,
.internal-links a:focus-visible::before {
  background: var(--portal-accent-dark);
}

.internal-links a:hover,
.internal-links a:focus-visible {
  color: var(--portal-accent-dark);
}

.tool-frame-section {
  padding-top: clamp(44px, 6vw, 76px);
  scroll-margin-top: 96px;
}

.tool-frame-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.28);
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(var(--portal-accent-rgb), 0.08), transparent 38%),
    rgba(15, 23, 28, 0.86);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.tool-frame-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, var(--portal-accent), rgba(var(--portal-accent-rgb), 0.18));
  pointer-events: none;
}

.tool-frame-card iframe {
  display: block;
  width: 100%;
  height: 980px;
  min-height: 700px;
  background: #05090c;
}

.tool-note {
  margin: 18px 0 0;
  color: #aab4bd;
  font-size: 0.95rem;
}

.configurator-frame-section {
  padding-top: clamp(34px, 5vw, 64px);
  scroll-margin-top: 96px;
}

.configurator-frame-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--portal-accent-rgb), 0.12), transparent 34%),
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.06), transparent 38%),
    rgba(10, 15, 18, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.configurator-frame-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 3px;
  content: "";
  background: linear-gradient(180deg, var(--portal-accent), rgba(var(--portal-accent-rgb), 0.18));
  pointer-events: none;
}

.configurator-frame-card iframe {
  width: 100%;
  height: 760px;
  min-height: 520px;
  max-height: 980px;
  background: transparent;
}

.partner-strip {
  padding: 0 0 clamp(50px, 6vw, 82px);
}

.partner-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 5vw, 56px);
  padding: clamp(22px, 3.6vw, 34px);
  border: 1px solid rgba(var(--portal-accent-rgb), 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 50%, rgba(var(--portal-accent-rgb), 0.18), transparent 18rem),
    linear-gradient(120deg, rgba(var(--portal-accent-rgb), 0.11), transparent 46%),
    rgba(15, 23, 28, 0.84);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.partner-strip-copy {
  max-width: 610px;
}

.partner-strip-copy .eyebrow {
  margin-bottom: 8px;
}

.partner-strip h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.partner-strip p {
  margin: 0;
  color: #dce2e7;
  font-size: 0.98rem;
}

.partner-strip-logo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: end;
  gap: 10px;
  flex: 0 0 min(360px, 40%);
  min-width: 260px;
  padding: 12px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0.94;
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.partner-strip-logo span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(var(--portal-accent-rgb), 0.12);
  color: var(--portal-accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.partner-strip-logo:hover,
.partner-strip-logo:focus-visible {
  border-color: rgba(var(--portal-accent-rgb), 0.52);
  opacity: 1;
  transform: translateY(-1px);
}

.partner-strip-logo img {
  display: block;
  width: min(100%, 330px);
  height: auto;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #05090c;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
  color: #aab4bd;
}

.prose a {
  color: var(--portal-accent);
}

/* Partnerprogramm-specific components kept outside the shared card system. */
.partner-logo-card {
  display: grid;
  gap: 20px;
  align-content: center;
  min-height: 100%;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 111, 15, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(var(--portal-accent-rgb), 0.11), rgba(255, 255, 255, 0.026)),
    rgba(15, 23, 28, 0.86);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.partner-logo-card a {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.partner-logo-card img {
  width: min(100%, 420px);
  height: auto;
}

.partner-logo-card p {
  margin: 0;
  color: #dce2e7;
}

.partner-package .card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.partner-device img {
  padding: clamp(12px, 2vw, 22px);
}


.partner-proof {
  padding-top: 0;
}

.partner-proof-compact {
  padding-top: clamp(18px, 2.4vw, 28px);
}

.partner-proof-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 111, 15, 0.42);
  border-radius: 14px;
  background:
    radial-gradient(circle at 82% 20%, rgba(var(--portal-accent-rgb), 0.15), transparent 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(15, 23, 28, 0.82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.partner-proof-panel p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: #dce2e7;
}

.partner-logo-link {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.partner-logo-link:hover,
.partner-logo-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(var(--portal-accent-rgb), 0.65);
  box-shadow: 0 24px 80px rgba(var(--portal-accent-rgb), 0.18);
}

.partner-logo-link img {
  width: min(100%, 360px);
  height: auto;
}

.partner-logo-dark {
  background:
    radial-gradient(circle at 82% 35%, rgba(var(--portal-accent-rgb), 0.12), transparent 14rem),
    #030405;
  border-color: rgba(var(--portal-accent-rgb), 0.24);
}

.partner-logo-dark img {
  width: min(100%, 390px);
}

/* Responsive image wrappers added for mobile performance. */
.responsive-picture {
  display: block;
}

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

.hero > .responsive-picture {
  position: absolute;
  inset: 50% max(20px, calc((100vw - 1180px) / 2)) auto auto;
  z-index: 0;
  width: min(44vw, 560px);
  max-height: calc(100% - 72px);
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(5, 9, 12, 0.9);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52);
  overflow: hidden;
}

.hero > .responsive-picture img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.partner-hero > .responsive-picture {
  width: min(44vw, 590px);
  padding: clamp(14px, 2vw, 24px);
}

.hero.home-hero > .responsive-picture {
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  transform: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero.home-hero > .responsive-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.58;
  filter: saturate(0.9) contrast(1.08);
}

.project-media .responsive-picture,
.project-media .responsive-picture img {
  width: 100%;
  height: 100%;
}

@media (max-width: 920px) {
  .hero,
  .hero.compact {
    min-height: auto;
    padding-top: 36px;
  }

  .hero > img {
    position: relative;
    inset: auto;
    order: 2;
    width: min(100% - 32px, 680px);
    height: auto;
    max-height: none;
    margin: 28px auto 0;
    transform: none;
  }

  .hero-inner {
    width: min(100% - 32px, 1180px);
    padding-right: 0;
  }

  .hero-inner::after,
  .hero::after {
    display: none;
  }

  .section-inner,
  .hero-facts,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 32px, 1180px);
  }

  .partner-proof-panel {
    grid-template-columns: 1fr;
  }

  .internal-links-grid {
    grid-template-columns: 1fr;
  }

  .partner-strip-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-strip-logo {
    justify-items: start;
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  .partner-strip-logo img {
    width: min(100%, 320px);
  }

  .hero-facts,
  .trust-grid,
  .grid.three,
  .grid.two,
  .stats,
  .split,
  .split.reverse,
  .project-grid,
  .proof-grid,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .cta .section-inner,
  .project {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta .section-inner {
    display: grid;
  }
}

@media (max-width: 560px) {
  .brand {
    width: auto;
    max-width: calc(100vw - 96px);
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 0.82rem;
  }

  .brand > span {
    display: block;
  }

  .brand > span > span {
    display: none;
  }

  .hero {
    padding-top: 30px;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
  }

  .hero-actions .btn,
  .actions .btn,
  .btn {
    width: 100%;
    min-height: 48px;
    white-space: normal;
    text-align: center;
  }

  .hero > img {
    width: min(100% - 32px, 560px);
    border-radius: 14px;
  }

  .project-power {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .actions,
  .hero-contact {
    flex-direction: column;
  }

  .contact-card li {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 26px;
  }
}

@media (max-width: 1180px) {
  .nav {
    width: min(100% - 32px, 1180px);
    min-height: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(5, 9, 12, 0.96);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.82rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(var(--portal-accent-rgb), 0.08);
  }

  .nav-links .nav-cta {
    justify-content: center;
    margin-top: 8px;
  }
}

.hero.home-hero {
  min-height: min(720px, calc(100vh - 78px));
  padding: clamp(54px, 7vw, 96px) 0 clamp(62px, 7vw, 100px);
  background: #05090c;
}

.hero.home-hero > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  transform: none;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0.58;
  filter: saturate(0.9) contrast(1.08);
  box-shadow: none;
}

.hero.home-hero > .responsive-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  transform: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero.home-hero > .responsive-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.58;
  filter: saturate(0.9) contrast(1.08);
}

.hero.home-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 9, 12, 0.96) 0%, rgba(5, 9, 12, 0.86) 36%, rgba(5, 9, 12, 0.48) 70%, rgba(5, 9, 12, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 9, 12, 0.72), rgba(5, 9, 12, 0.28) 48%, rgba(5, 9, 12, 0.88)),
    radial-gradient(circle at 18% 36%, rgba(var(--portal-accent-rgb), 0.16), transparent 28rem);
}

.hero.home-hero::after,
.hero.home-hero .hero-inner::after {
  display: none;
}

.hero.home-hero .hero-inner {
  z-index: 2;
  padding-right: 0;
}

.hero.home-hero h1,
.hero.home-hero .lead {
  max-width: 650px;
}

@media (max-width: 920px) {
  .hero.home-hero {
    min-height: auto;
    padding: 46px 0 60px;
  }

  .hero.home-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    transform: none;
    border-radius: 0;
    object-position: 58% center;
  }

  .hero.home-hero > .responsive-picture {
    position: absolute;
    inset: 0;
    order: initial;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    transform: none;
    border-radius: 0;
  }

  .hero.home-hero > .responsive-picture img {
    object-position: 58% center;
  }

  .hero.home-hero::before {
    background:
      linear-gradient(90deg, rgba(5, 9, 12, 0.97), rgba(5, 9, 12, 0.76)),
      linear-gradient(180deg, rgba(5, 9, 12, 0.7), rgba(5, 9, 12, 0.9));
  }
}

.project-card-featured,
.project-card:has(.project-media) {
  padding: 0;
  gap: 0;
}

.project-card-featured::before,
.project-card:has(.project-media)::before {
  z-index: 2;
}

.project-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(var(--portal-accent-rgb), 0.22);
  background: rgba(0, 0, 0, 0.34);
}

.project-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 62%, rgba(5, 9, 12, 0.34));
  pointer-events: none;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: brightness(1.08) saturate(1.08) contrast(1.04);
  transition: transform 0.28s ease, filter 0.28s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.035);
  filter: brightness(1.1) saturate(1.12) contrast(1.06);
}

.power-compare {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.18);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(5, 9, 12, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.power-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.34);
  border-radius: 999px;
  background: rgba(var(--portal-accent-rgb), 0.08);
  color: var(--portal-accent-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.project-links a:hover,
.project-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--portal-accent-rgb), 0.66);
  background: rgba(var(--portal-accent-rgb), 0.14);
}

.power-compare-head span {
  color: #f6f7f9;
  font-size: 0.9rem;
  font-weight: 900;
}

.power-compare-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(92, 214, 149, 0.42);
  border-radius: 999px;
  background: rgba(92, 214, 149, 0.12);
  color: #84f0af;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.power-gains {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.power-gains strong {
  min-width: 0;
}

.power-row {
  display: grid;
  gap: 5px;
}

.power-row div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.power-row span {
  color: #aab4bd;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.power-row strong {
  color: #f6f7f9;
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
}

.power-track {
  display: block;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.power-track b {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.power-base {
  width: var(--base);
  background: #aab4bd;
}

.power-tuned {
  width: var(--tuned);
  background: linear-gradient(90deg, #70d48b, #ffd45a 56%, var(--portal-accent));
  box-shadow: 0 0 18px rgba(var(--portal-accent-rgb), 0.22);
}

.chart-button {
  align-self: flex-start;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.42);
  border-radius: 999px;
  background: rgba(var(--portal-accent-rgb), 0.1);
  color: var(--portal-accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.chart-button:hover,
.chart-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--portal-accent-rgb), 0.72);
  background: rgba(var(--portal-accent-rgb), 0.16);
}

.power-chart-button {
  align-self: start;
  min-height: 34px;
  margin-top: 2px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.chart-dialog {
  width: min(100% - 32px, 1080px);
  padding: 0;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.34);
  border-radius: 14px;
  background: #080d10;
  color: #f6f7f9;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.64);
}

.chart-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.chart-dialog-inner {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px);
}

.chart-dialog h2 {
  margin: 0;
  padding-right: 48px;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.chart-dialog img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #fff;
}

.chart-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.chart-dialog-close:hover,
.chart-dialog-close:focus-visible {
  border-color: rgba(var(--portal-accent-rgb), 0.6);
  background: rgba(var(--portal-accent-rgb), 0.13);
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.reference-proof-band {
  padding-top: 0;
}

@media (max-width: 560px) {
  .project-media {
    aspect-ratio: 4 / 3;
  }

  .project-card-body {
    padding: 22px;
  }

  .project-links a {
    justify-content: center;
    width: 100%;
  }
}

/* Mobile UX pass: tighter first screens, safer media sizing and touch targets. */
@media (max-width: 920px) {
  section,
  .page-section {
    padding: clamp(46px, 8vw, 72px) 0;
  }

  .hero,
  .hero.compact {
    padding: 34px 0 44px;
  }

  .hero > .responsive-picture {
    width: min(100% - 32px, 680px);
    max-height: 360px;
    margin-top: 24px;
  }

  .hero > .responsive-picture img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
  }

  .partner-hero > .responsive-picture img,
  .hero:has(.media) > .responsive-picture img {
    object-fit: contain;
  }

  .hero-inner {
    padding-top: clamp(32px, 6vw, 48px);
    padding-bottom: clamp(32px, 6vw, 48px);
  }

  .hero-contact {
    gap: 10px;
    margin-top: 18px;
  }

  .hero-contact span {
    width: 100%;
    min-height: 38px;
    justify-content: center;
    text-align: center;
  }

  .section-head {
    gap: 14px;
    margin-bottom: 28px;
  }

  .section-head p {
    max-width: 100%;
  }

  .card,
  .fact,
  .project-card,
  .contact-copy,
  .contact-card,
  .prose,
  .internal-links-grid > div,
  .partner-proof-panel,
  .partner-strip-inner,
  .tool-frame-card {
    border-radius: 10px;
  }

  .internal-links-grid,
  .project-grid,
  .grid,
  .split {
    gap: 18px;
  }

  .partner-strip-logo,
  .partner-logo-link {
    min-width: 0;
    min-height: 120px;
  }

  .tool-frame-card iframe {
    min-height: 760px;
  }

  .chart-dialog {
    width: min(100% - 24px, 980px);
  }

  .chart-dialog-inner {
    padding: 16px;
  }
}

@media (max-width: 560px) {
  body {
    line-height: 1.52;
  }

  .nav {
    width: min(100% - 24px, 1180px);
  }

  .nav-links {
    left: 12px;
    right: 12px;
  }

  .hero,
  .hero.compact {
    padding: 26px 0 38px;
  }

  .hero-inner,
  .section-inner,
  .hero-facts,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero-inner {
    padding-top: 28px;
    padding-bottom: 30px;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: clamp(1.78rem, 8.4vw, 2.35rem);
    line-height: 1.08;
  }

  h2 {
    margin-bottom: 14px;
    font-size: clamp(1.38rem, 7.4vw, 1.95rem);
    line-height: 1.12;
  }

  h3 {
    line-height: 1.16;
  }

  .lead {
    margin-bottom: 22px;
    font-size: 0.98rem;
  }

  .hero-actions,
  .actions {
    gap: 9px;
  }

  .hero-actions .btn,
  .actions .btn,
  .btn {
    min-height: 46px;
    padding-inline: 14px;
  }

  .hero > .responsive-picture {
    width: min(100% - 24px, 560px);
    max-height: 280px;
    margin-top: 18px;
    border-radius: 12px;
  }

  .hero > .responsive-picture img {
    max-height: 280px;
  }

  .hero.home-hero {
    padding: 34px 0 44px;
  }

  .hero.home-hero .hero-inner {
    background: rgba(5, 9, 12, 0.38);
  }

  .hero.home-hero > .responsive-picture img {
    object-position: 62% center;
  }

  .hero-facts,
  .grid,
  .split,
  .project-grid,
  .internal-links-grid {
    gap: 14px;
  }

  .card,
  .fact,
  .contact-copy,
  .contact-card,
  .prose,
  .internal-links-grid > div {
    padding: 20px;
  }

  .project-card-body {
    gap: 14px;
    padding: 20px;
  }

  .project-card-body h3 {
    margin-bottom: 0;
  }

  .project-media {
    aspect-ratio: 16 / 11;
  }

  .power-compare {
    gap: 9px;
    padding: 11px;
  }

  .power-compare-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .power-compare-head strong {
    white-space: normal;
  }

  .power-gains {
    justify-content: flex-start;
  }

  .power-row div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .partner-strip-inner,
  .partner-proof-panel {
    padding: 20px;
  }

  .partner-strip-logo,
  .partner-logo-link {
    min-height: 96px;
    padding: 14px;
  }

  .partner-strip-logo span {
    align-self: start;
  }

  .partner-logo-card {
    padding: 20px;
  }

  .partner-logo-card a {
    min-height: 120px;
    padding: 16px;
  }

  .tool-frame-card {
    padding: 0;
  }

  .tool-frame-card iframe {
    min-height: 720px;
  }

  .chart-dialog {
    width: min(100% - 16px, 980px);
    max-height: calc(100dvh - 16px);
  }

  .chart-dialog-inner {
    gap: 12px;
    padding: 12px;
  }

  .chart-dialog-close {
    width: 42px;
    height: 42px;
  }
}

/* Mobile conversion layer: quick contact and compact request process. */
.conversion-strip {
  padding: 58px 0;
  border-top: 1px solid rgba(var(--portal-accent-rgb), 0.16);
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.08), transparent 34%),
    #070b0e;
}

.conversion-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.conversion-copy,
.conversion-route {
  padding: 28px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(14, 22, 26, 0.92);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.conversion-copy h2,
.conversion-route h3 {
  margin: 0 0 14px;
}

.conversion-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.conversion-steps li {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(5, 9, 12, 0.58);
}

.conversion-steps strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 0.95rem;
}

.conversion-steps span,
.conversion-route p {
  color: var(--muted);
}

.conversion-route ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.conversion-route li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.conversion-route strong {
  color: #fff;
}

.conversion-route a,
.conversion-route span {
  color: var(--portal-accent-dark);
  font-weight: 850;
  text-align: right;
  text-decoration: none;
}

.mobile-contact-bar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 80;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.28);
  border-radius: 16px;
  background: rgba(5, 9, 12, 0.92);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
}

.mobile-contact-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: none;
}

.mobile-contact-bar a:first-child {
  border-color: rgba(var(--portal-accent-rgb), 0.54);
  background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-dark));
}

.tool-page .mobile-contact-bar {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 76px;
  }

  body.tool-page {
    padding-bottom: 0;
  }

  .conversion-strip {
    padding: 42px 0;
  }

  .conversion-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .conversion-copy,
  .conversion-route {
    padding: 20px;
    border-radius: 10px;
  }

  .conversion-steps {
    grid-template-columns: 1fr;
  }

  .conversion-route li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .conversion-route a,
  .conversion-route span {
    text-align: left;
  }

  .mobile-contact-bar {
    display: grid;
  }
}

/* Hero glass cards: shared page headers on mobile and desktop. */
.hero .hero-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 0;
  margin: 0 auto;
  padding: clamp(34px, 4.8vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid rgba(var(--portal-accent-rgb), 0.82);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.09), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 28, 0.78), rgba(5, 9, 12, 0.88));
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px) saturate(1.05);
}

.hero .hero-inner::after {
  opacity: 0.42;
}

.hero.compact,
.hero.home-hero {
  display: grid;
  align-items: center;
}

.hero.compact .hero-inner,
.hero.home-hero .hero-inner {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
}

.hero.home-hero .hero-inner {
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.1), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 28, 0.72), rgba(5, 9, 12, 0.86));
}

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

@media (min-width: 981px) {
  .hero .hero-inner {
    margin-top: 24px;
    margin-bottom: 24px;
  }
}

@media (max-width: 760px) {
  .hero,
  .hero.compact,
  .hero.home-hero {
    padding-top: 24px;
  }

  .hero .hero-inner,
  .hero.compact .hero-inner,
  .hero.home-hero .hero-inner {
    width: min(100% - 18px, 560px);
    padding: 30px 18px 22px;
    border-left-width: 2px;
    border-radius: 14px;
    background:
      linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.1), transparent 38%),
      linear-gradient(180deg, rgba(8, 13, 16, 0.72), rgba(5, 9, 12, 0.88));
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
  }

  .hero .eyebrow {
    margin-bottom: 12px;
  }

  .hero h1 {
    margin-bottom: 18px;
  }

  .hero .lead {
    margin-bottom: 22px;
  }

  .hero .hero-actions,
  .hero .hero-contact {
    margin-top: 18px;
  }

  .hero .hero-contact span {
    justify-content: center;
    width: 100%;
  }
}

/* Shared glass panels for in-between content sections. */
main > section:not(.hero):not(.conversion-strip) {
  padding-block: clamp(42px, 5vw, 82px);
}

main > section:not(.hero):not(.conversion-strip) > .section-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 3px solid rgba(var(--portal-accent-rgb), 0.64);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.08), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 28, 0.72), rgba(5, 9, 12, 0.86));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px) saturate(1.05);
}

main > section:not(.hero):not(.conversion-strip) > .section-inner::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, var(--portal-accent), rgba(var(--portal-accent-rgb), 0.08));
  opacity: 0.72;
  pointer-events: none;
}

main > section:not(.hero):not(.conversion-strip) > .section-inner > * {
  position: relative;
  z-index: 1;
}

main > section.band,
main > section.proof-band,
main > section.contact-section {
  border-block: 0;
  background: transparent;
}

main > section.band > .section-inner,
main > section.proof-band > .section-inner {
  border-color: rgba(var(--portal-accent-rgb), 0.2);
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.1), transparent 34%),
    linear-gradient(180deg, rgba(17, 27, 33, 0.78), rgba(5, 9, 12, 0.9));
}

main > section.cta {
  background: transparent;
}

main > section.cta > .section-inner {
  border-color: rgba(var(--portal-accent-rgb), 0.46);
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.11), transparent 34%),
    linear-gradient(180deg, rgba(17, 27, 33, 0.82), rgba(5, 9, 12, 0.9));
}

main > section.cta h2,
main > section.cta p {
  color: #f6f7f9;
}

main > section.cta > .section-inner > div > p:not(.eyebrow) {
  color: #dce2e7;
}

main > section.cta .btn.light {
  border-color: rgba(var(--portal-accent-rgb), 0.54);
  background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-dark));
  color: #fff;
  box-shadow: 0 14px 34px rgba(var(--portal-accent-rgb), 0.28);
}

@media (max-width: 760px) {
  main > section:not(.hero):not(.conversion-strip) {
    padding-block: 24px;
  }

  main > section:not(.hero):not(.conversion-strip) > .section-inner {
    width: min(100% - 18px, 560px);
    padding: 22px 16px;
    border-left-width: 2px;
    border-radius: 14px;
  }

  main > section:not(.hero):not(.conversion-strip) .section-head {
    margin-bottom: 22px;
  }

  .performance-proof {
    gap: 18px;
    padding: 18px;
    border-radius: 14px;
  }

  .performance-proof-head {
    flex-direction: column;
    gap: 12px;
  }

  .performance-gain {
    align-self: flex-start;
  }

  .performance-row div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .performance-row i {
    height: 11px;
  }

  .torque-chip {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

/* Premium link treatment: no underlines, no extra symbols. */
a {
  text-decoration: none;
}

.card a:not(.btn):not(.fact):not(.partner-logo-link):not(.partner-strip-logo),
.text-block a:not(.btn),
.section-head a:not(.btn),
.footer-grid a,
.prose a,
.contact-card a,
.conversion-route a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.38em;
  color: var(--portal-accent-dark);
  font-weight: 850;
  text-decoration: none;
  text-underline-offset: 0;
}

.card a:not(.btn):not(.fact):not(.partner-logo-link):not(.partner-strip-logo)::after,
.text-block a:not(.btn)::after,
.section-head a:not(.btn)::after,
.footer-grid a::after,
.prose a::after,
.contact-card a::after,
.conversion-route a::after {
  content: none;
}

.internal-links a::after,
.mobile-contact-bar a::after,
.project-links a::after,
.nav-links a::after,
.nav-cta::after,
.btn::after,
.brand::after,
.fact::after,
.partner-logo-link::after,
.partner-strip-logo::after,
.chart-button::after {
  content: none;
}

.card a:not(.btn):hover,
.card a:not(.btn):focus-visible,
.text-block a:not(.btn):hover,
.text-block a:not(.btn):focus-visible,
.section-head a:not(.btn):hover,
.section-head a:not(.btn):focus-visible,
.footer-grid a:hover,
.footer-grid a:focus-visible,
.prose a:hover,
.prose a:focus-visible,
.contact-card a:hover,
.contact-card a:focus-visible,
.conversion-route a:hover,
.conversion-route a:focus-visible {
  color: #ffb067;
  text-decoration: none;
}

/* Global compact header: keep the top bar calm on desktop and mobile. */
.site-header .nav {
  position: relative;
}

.site-header .nav-toggle {
  display: block;
  flex: 0 0 auto;
}

.site-header .nav-links {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  display: none;
  width: min(360px, calc(100vw - 32px));
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.08), transparent 34%),
    rgba(5, 9, 12, 0.97);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
}

.site-header .nav-links.open {
  display: flex;
}

.site-header .nav-links a {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.site-header .nav-links a::after {
  display: none;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
  background: rgba(var(--portal-accent-rgb), 0.1);
}

.site-header .nav-links .nav-cta {
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .site-header .nav-links {
    right: 50%;
    width: min(100vw - 24px, 390px);
    transform: translateX(50%);
  }
}

/* Fileservice page */
.fileservice-form label {
  display: grid;
  gap: 8px;
  color: #e9edf1;
  font-weight: 800;
}

.required-mark,
.optional-mark {
  justify-self: start;
  margin-top: -4px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.required-mark {
  border: 1px solid rgba(var(--portal-accent-rgb), 0.38);
  background: rgba(var(--portal-accent-rgb), 0.1);
  color: var(--portal-accent-dark);
}

.optional-mark {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  color: #aab4bd;
}

.fileservice-form input,
.fileservice-form select,
.fileservice-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 9, 12, 0.82);
  color: #fff;
  font: inherit;
  outline: none;
}

.fileservice-form input:focus,
.fileservice-form select:focus,
.fileservice-form textarea:focus {
  border-color: rgba(var(--portal-accent-rgb), 0.74);
  box-shadow: 0 0 0 3px rgba(var(--portal-accent-rgb), 0.12);
}

.form-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: #ffb067;
  font-weight: 800;
}

.portal-form-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 184, 77, 0.32);
  border-radius: 10px;
  background: rgba(255, 166, 0, 0.08);
  color: #ffc46b;
  font-weight: 900;
}

.portal-form-status.success {
  border-color: rgba(32, 242, 166, 0.28);
  background: rgba(32, 242, 166, 0.08);
  color: #20f2a6;
}

.portal-form-status.error {
  border-color: rgba(255, 92, 100, 0.32);
  background: rgba(255, 92, 100, 0.08);
  color: #ff9aa0;
}

.fileservice-upload-panel {
  overflow: hidden;
}

.fileservice-form {
  display: grid;
  gap: 22px;
}

.fileservice-form fieldset {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(var(--portal-accent-rgb), 0.22);
  border-radius: 10px;
  background: rgba(5, 9, 12, 0.35);
}

.fileservice-form legend {
  padding: 0 10px;
  color: var(--portal-accent-dark);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

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

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.tool-grid {
  grid-template-columns: minmax(0, 1fr);
}

.fileservice-form textarea {
  resize: vertical;
}

.calculator-intro {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.calculator-intro h3 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.calculator-intro p {
  max-width: 760px;
  margin: 0;
  color: #aab4bd;
}

.calculator-total {
  display: grid;
  min-width: 180px;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.34);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.12), transparent),
    rgba(10, 15, 18, 0.86);
  text-align: center;
}

.calculator-total span,
.calculator-label,
.option-note,
.summary-note {
  color: #aab4bd;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calculator-total strong {
  color: #00ff9c;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.1;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.35fr) minmax(260px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.calculator-bases,
.calculator-options,
.calculator-summary {
  display: grid;
  gap: 10px;
}

.calculator-base,
.calculator-option {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.34);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.08), transparent 50%),
    rgba(10, 15, 18, 0.72);
  color: #fff;
  cursor: pointer;
}

.calculator-base input,
.calculator-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calculator-base:hover,
.calculator-option:hover,
.calculator-base:has(input:focus-visible),
.calculator-option:has(input:focus-visible) {
  border-color: rgba(var(--portal-accent-rgb), 0.72);
  box-shadow: 0 0 0 3px rgba(var(--portal-accent-rgb), 0.09);
}

.calculator-base:has(input:checked),
.calculator-option:has(input:checked) {
  border-color: rgba(0, 255, 156, 0.58);
  background:
    linear-gradient(135deg, rgba(0, 255, 156, 0.1), transparent 46%),
    rgba(10, 15, 18, 0.86);
}

.calculator-base strong,
.calculator-option strong {
  font-size: 0.92rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.calculator-base em,
.calculator-option em,
.summary-price {
  color: #00ff9c;
  font-style: normal;
  font-weight: 900;
}

.calculator-base span,
.calculator-option span {
  color: #cdd4db;
  font-size: 0.86rem;
}

.calculator-option {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.calculator-option span {
  grid-column: 1 / -1;
}

.calculator-summary {
  position: sticky;
  top: 98px;
  padding: 16px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.24);
  border-radius: 10px;
  background: rgba(5, 9, 12, 0.62);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-line:last-child {
  border-bottom: 0;
}

.summary-name {
  color: #f5f7f9;
  font-weight: 800;
}

.summary-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(var(--portal-accent-rgb), 0.3);
}

.calculator-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(var(--portal-accent-rgb), 0.24);
  border-radius: 10px;
  color: #aab4bd;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.file-drop {
  min-height: 160px;
  place-items: center;
  padding: 26px;
  border: 1px dashed rgba(var(--portal-accent-rgb), 0.44);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--portal-accent-rgb), 0.12), transparent 42%),
    rgba(10, 15, 18, 0.72);
  text-align: center;
  cursor: pointer;
}

.file-drop input {
  max-width: 420px;
  margin: 8px auto 0;
}

.file-drop span {
  max-width: 680px;
  color: #aab4bd;
  font-size: 0.92rem;
  font-weight: 600;
}

.file-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.file-hints span {
  padding: 7px 10px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.24);
  border-radius: 999px;
  background: rgba(var(--portal-accent-rgb), 0.07);
  color: #d8dee4;
  font-size: 0.84rem;
  font-weight: 800;
}

.consent-line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: #d8dee4;
}

.consent-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.compact-grid {
  align-content: start;
}

@media (max-width: 820px) {
  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .calculator-intro,
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .calculator-intro {
    display: grid;
  }

  .calculator-total {
    min-width: 0;
  }

  .calculator-summary {
    position: static;
  }

  .form-actions .btn {
    width: 100%;
  }

  .file-drop {
    min-height: 140px;
    padding: 20px;
  }
}

.portal-dev-page {
  min-height: 100vh;
}

.portal-lock {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(7, 11, 14, 0.72), rgba(7, 11, 14, 0.92)),
    var(--portal-background-image, url("/assets/images/hero-workshop.png")) center / cover no-repeat;
}

.portal-lock-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1.18fr);
  gap: 18px;
  align-items: start;
  width: min(1180px, 100%);
}

.portal-lock-language-switch {
  grid-column: 1 / -1;
  justify-self: end;
  width: min(180px, 100%);
}

.portal-lock-grid-login-only {
  grid-template-columns: minmax(320px, 440px);
  justify-content: center;
}

.portal-lock-grid-login-only:has(.portal-register-card) {
  grid-template-columns: minmax(320px, 440px) minmax(420px, 1fr);
  justify-content: center;
  width: min(1180px, 100%);
}

.portal-lock-grid-login-only:has(.portal-register-card) .portal-imprint-button {
  grid-column: 1 / -1;
  justify-self: center;
}

.portal-lock-card {
  width: 100%;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(var(--portal-accent-rgb), 0.36);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.14), transparent 42%),
    rgba(9, 14, 17, 0.94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
}

.portal-lock-card img {
  margin-bottom: 18px;
}

.portal-lock-card h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.2rem, 8vw, 4rem);
}

.portal-lock-card h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.portal-lock-card form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.portal-lock-card label {
  display: grid;
  gap: 7px;
  color: #e9edf1;
  font-weight: 800;
}

.portal-lock-card input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 9, 12, 0.82);
  color: #fff;
  font: inherit;
  outline: none;
}

.portal-lock-card input:focus {
  border-color: rgba(var(--portal-accent-rgb), 0.74);
  box-shadow: 0 0 0 3px rgba(var(--portal-accent-rgb), 0.12);
}

.portal-forgot-card {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-forgot-card summary {
  cursor: pointer;
  color: var(--portal-accent-dark);
  font-weight: 950;
}

.portal-forgot-card[open] summary {
  margin-bottom: 12px;
}

.portal-register-card {
  padding: clamp(22px, 3vw, 34px);
}

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



[data-register-private][hidden],
[data-register-company][hidden] {
  display: none !important;
}

.portal-required {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  font-size: 0.82em;
  font-weight: 950;
  line-height: 1;
}

.portal-register-form fieldset {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.22);
  border-radius: 12px;
  background: rgba(4, 9, 12, 0.5);
}

.portal-register-type {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 106, 19, 0.08), rgba(4, 9, 12, 0.78));
}

.portal-register-type-title {
  padding-left: 10px;
  color: #aeb8c6;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-register-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.portal-register-type-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(2, 7, 10, 0.78);
  color: #f4f7fb;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.portal-register-type-option:has(input:checked) {
  border-color: rgba(var(--portal-accent-rgb), 0.86);
  background: linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.28), rgba(8, 14, 18, 0.92));
  box-shadow: inset 0 0 0 1px rgba(var(--portal-accent-rgb), 0.18), 0 12px 26px rgba(255, 106, 19, 0.12);
}

.portal-register-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.portal-register-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #93a4b8;
  background: rgba(148, 163, 184, 0.08);
}

.portal-register-type-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.portal-register-type-option:has(input:checked) .portal-register-type-icon {
  color: #071014;
  background: var(--accent);
}

.portal-register-type-text {
  min-width: 0;
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.1;
}

.portal-register-type-option:focus-within {
  outline: 2px solid rgba(var(--portal-accent-rgb), 0.42);
  outline-offset: 2px;
}

.portal-register-form legend {
  padding: 0 8px;
  color: var(--accent);
  font-weight: 900;
}

.portal-register-form button {
  grid-column: 1 / -1;
}

@media (max-width: 920px) {
  .portal-lock-grid,
  .portal-lock-grid-login-only:has(.portal-register-card),
  .portal-register-form,
  .portal-register-form fieldset {
    grid-template-columns: 1fr;
  }

  .portal-register-type {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .portal-register-type-title {
    padding-left: 2px;
  }

  .portal-register-type-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-register-type-option {
    min-height: 44px;
    padding: 8px 10px;
  }

  .portal-register-type-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .portal-lock-language-switch {
    justify-self: stretch;
    width: 100%;
  }
}

.portal-app {
  min-height: 100vh;
  display: flex;
  background:
    linear-gradient(rgba(5, 7, 8, 0.74), rgba(5, 7, 8, 0.92)),
    var(--portal-background-image, url("/assets/images/hero-workshop.png")) center / cover fixed no-repeat,
    linear-gradient(90deg, rgba(var(--portal-accent-rgb), 0.09), transparent 28%),
    #050708;
}

.portal-menu-toggle,
.portal-mobile-bar {
  display: none;
}

.portal-sidebar {
  position: sticky;
  top: 0;
  width: 250px;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--portal-accent-rgb), 0.48) rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 193, 7, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 193, 7, 0.08), transparent 22%),
    radial-gradient(circle at 30% 0%, rgba(var(--portal-accent-rgb), 0.16), transparent 38%),
    rgba(7, 8, 9, 0.72);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.portal-sidebar::-webkit-scrollbar {
  width: 7px;
}

.portal-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.portal-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(var(--portal-accent-rgb), 0.55), rgba(65, 152, 255, 0.38));
  border-radius: 999px;
}

.portal-sidebar-logo {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 18px;
  background: rgba(var(--portal-accent-rgb), 0.08);
  text-decoration: none;
}

.portal-sidebar-logo img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.portal-side-nav {
  display: grid;
  gap: 8px;
}

.portal-side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  color: #f3f6f8;
  font-weight: 900;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.portal-side-nav a:hover,
.portal-side-nav a:focus-visible,
.portal-side-nav a.active {
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.12), transparent 52%),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 3px 0 0 rgba(var(--portal-accent-rgb), 0.92);
  color: #fff;
}

.portal-side-nav a.portal-sub-link {
  min-height: 34px;
  margin: -4px 0 2px 32px;
  padding-inline: 10px;
  border: 1px solid rgba(255, 193, 7, 0.14);
  color: #cbd3dc;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.026);
}

.portal-side-nav a.portal-sub-link:hover,
.portal-side-nav a.portal-sub-link:focus-visible,
.portal-side-nav a.portal-sub-link.active {
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.16), transparent 58%),
    rgba(255, 255, 255, 0.045);
  color: #fff;
  box-shadow: inset 2px 0 0 rgba(var(--portal-accent-rgb), 0.8);
}

.portal-nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  opacity: 0.82;
}

.portal-nav-icon-svg {
  display: inline-grid;
  place-items: center;
  color: rgba(225, 231, 238, 0.72);
  opacity: 1;
}

.portal-nav-icon-svg svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-nav-icon-svg.dashboard svg rect {
  fill: currentColor;
  stroke: none;
}

.portal-side-nav a:hover .portal-nav-icon-svg,
.portal-side-nav a:focus-visible .portal-nav-icon-svg {
  color: #fff;
}

.portal-side-nav a.active .portal-nav-icon-svg {
  color: var(--portal-accent);
  filter: drop-shadow(0 0 8px rgba(var(--portal-accent-rgb), 0.38));
}

.portal-nav-icon.dashboard {
  background: none;
}

.portal-nav-icon.files {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.portal-nav-icon.invoices {
  border: 0;
  border-radius: 0;
  background: none;
}

.portal-nav-icon.credits {
  border: 0;
  border-radius: 0;
  background: none;
}

.portal-nav-icon.prices {
  border: 0;
  border-radius: 0;
  background: none;
}

.portal-nav-icon.faq {
  border: 0;
  border-radius: 0;
  background: none;
}

.portal-nav-icon.users {
  border: 0;
  border-radius: 0;
  background: none;
}

.portal-nav-badges {
  display: inline-flex;
  gap: 5px;
  margin-left: auto;
}

.portal-nav-badges b {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #3d83ff;
  color: #fff;
  font-size: 0.72rem;
}

.portal-nav-badges b.danger {
  background: #ff5c64;
}

.portal-credit-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.34);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.16), transparent 50%),
    linear-gradient(90deg, rgba(255, 193, 7, 0.08), transparent 72%),
    rgba(15, 16, 18, 0.72);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px) saturate(126%);
  -webkit-backdrop-filter: blur(16px) saturate(126%);
}

.portal-credit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.4;
}

.portal-credit-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffbf19, var(--portal-accent));
  box-shadow: 0 0 24px rgba(var(--portal-accent-rgb), 0.22);
}

.portal-credit-icon::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: inset -5px 0 0 rgba(255, 255, 255, 0.24);
}

.portal-credit-card p,
.portal-credit-card strong,
.portal-credit-card small,
.portal-credit-card a {
  position: relative;
  z-index: 1;
}

.portal-credit-card p {
  margin: -36px 0 0 50px;
  color: #cfd5dc;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-credit-card strong {
  display: block;
  margin-top: 8px;
  color: #ffbf19;
  font-size: 2rem;
  line-height: 1;
}

.portal-credit-card small {
  color: var(--portal-accent-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.portal-credit-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffbf19, var(--portal-accent));
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(var(--portal-accent-rgb), 0.24);
}

.portal-credit-button span {
  font-size: 1.25rem;
  line-height: 1;
}

.portal-credit-shop {
  display: grid;
  gap: 14px;
  padding: 0;
}

.portal-credit-overview,
.portal-credit-package {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 193, 7, 0.38);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 193, 7, 0.1), transparent 28%, rgba(20, 26, 38, 0.18) 74%, transparent),
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.12), rgba(255, 255, 255, 0.035), rgba(8, 12, 19, 0.82)),
    rgba(14, 15, 17, 0.74);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
}

.portal-credit-overview {
  padding: 22px;
}

.portal-credit-overview h2 {
  margin: 4px 0 10px;
  color: #ffbf19;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: 0.95;
}

.portal-credit-overview p:last-child {
  max-width: 760px;
  margin: 0;
  color: #d4dce5;
  font-weight: 800;
}

.portal-credit-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portal-credit-package {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.portal-credit-package.highlight {
  border-color: rgba(32, 242, 166, 0.54);
  background:
    radial-gradient(circle at 78% 24%, rgba(32, 242, 166, 0.18), transparent 25%),
    linear-gradient(90deg, rgba(32, 242, 166, 0.09), transparent 30%, rgba(var(--portal-accent-rgb), 0.07)),
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.09), rgba(32, 242, 166, 0.045), rgba(8, 12, 19, 0.84)),
    rgba(10, 17, 14, 0.78);
  box-shadow:
    0 18px 48px rgba(32, 242, 166, 0.1),
    0 0 0 1px rgba(32, 242, 166, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portal-credit-package.highlight::before {
  content: "";
  position: absolute;
  inset: auto -48px -70px auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(32, 242, 166, 0.18) 0 1px, transparent 1px 20px),
    conic-gradient(from 0deg, transparent 0 58%, rgba(32, 242, 166, 0.2) 66%, transparent 74%);
  opacity: 0.38;
  transform-origin: 50% 50%;
  animation: portal-credit-radar 8s linear infinite;
  pointer-events: none;
}

.portal-credit-package.highlight::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(32, 242, 166, 0.08), transparent 36%, rgba(var(--portal-accent-rgb), 0.04));
  pointer-events: none;
}

.portal-credit-package.highlight > * {
  position: relative;
  z-index: 1;
}

@keyframes portal-credit-radar {
  to {
    transform: rotate(360deg);
  }
}

.portal-credit-package h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.portal-credit-package strong {
  color: #ffbf19;
  font-size: 1.35rem;
}

.portal-price-tax-line {
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
}

.portal-credit-package p:not(.eyebrow) {
  min-height: 46px;
  margin: 0;
  color: #cfd7df;
  font-size: 0.9rem;
  font-weight: 800;
}

.portal-credit-buy {
  min-height: 42px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffbf19, var(--portal-accent));
  color: #fff;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(var(--portal-accent-rgb), 0.22);
}

.portal-credit-buy:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  filter: saturate(0.6);
  box-shadow: none;
}

.portal-admin-panel {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.portal-admin-panel summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid rgba(255, 193, 7, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.08), transparent 50%),
    rgba(23, 26, 30, 0.72);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.portal-admin-panel summary::-webkit-details-marker {
  display: none;
}

.portal-admin-panel summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #9ca7b4;
  border-bottom: 2px solid #9ca7b4;
  transform: rotate(45deg) translateY(-2px);
}

.portal-admin-panel[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.portal-admin-panel nav {
  display: grid;
  gap: 2px;
  padding: 4px 0 0;
}

.portal-admin-panel nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 32px;
  border-radius: 7px;
  color: #f1f4f7;
  font-size: 0.94rem;
  font-weight: 900;
  text-decoration: none;
}

.portal-admin-panel nav a:hover,
.portal-admin-panel nav a:focus-visible,
.portal-admin-panel nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.portal-admin-gear,
.portal-service-upload {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  opacity: 0.9;
}

.portal-admin-gear {
  border: 2px solid #a9b0ba;
  border-radius: 50%;
  background: radial-gradient(circle, #a9b0ba 0 3px, transparent 4px);
}

.portal-service-upload {
  border: 2px solid #a9b0ba;
  border-top: 0;
  border-radius: 3px;
  background:
    linear-gradient(#a9b0ba 0 0) 50% 20% / 2px 12px no-repeat,
    linear-gradient(#a9b0ba 0 0) 50% 20% / 10px 2px no-repeat;
}

.portal-service-panel {
  margin-top: 4px;
}

.portal-language-switch {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.08), transparent 58%),
    rgba(12, 14, 16, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.portal-language-switch a {
  min-height: 34px;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #cfd7df;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-decoration: none;
}

.portal-language-switch a:hover,
.portal-language-switch a:focus-visible,
.portal-language-switch a.active {
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.22), rgba(255, 193, 7, 0.1)),
    rgba(255, 255, 255, 0.05);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--portal-accent-rgb), 0.38);
}

.portal-sidebar-logout {
  margin-top: 8px;
}

.portal-dashboard-pill,
.portal-logout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.9);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.22), rgba(var(--portal-accent-rgb), 0.06)),
    rgba(17, 19, 20, 0.96);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(var(--portal-accent-rgb), 0.12);
}

.portal-pill-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.45);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.2), rgba(255, 193, 7, 0.07)),
    rgba(5, 8, 10, 0.54);
  color: var(--portal-accent-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 20px rgba(var(--portal-accent-rgb), 0.18);
}

.portal-pill-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-processing-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 193, 7, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.08), transparent 58%),
    rgba(14, 15, 17, 0.58);
  color: #cfd8e3;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.portal-processing-mini::before {
  content: "⌛";
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.95rem;
}

.portal-processing-mini strong {
  color: #11cfff;
  font-size: 1rem;
}

.portal-open-mini {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(14, 226, 131, 0.34);
  background:
    linear-gradient(135deg, rgba(14, 226, 131, 0.24), rgba(14, 226, 131, 0.06)),
    rgba(6, 18, 12, 0.72);
  color: #19f59a;
  font-size: 0.8rem;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 0 22px rgba(14, 226, 131, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.portal-open-mini.closed {
  border-color: rgba(var(--portal-accent-rgb), 0.4);
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.22), rgba(var(--portal-accent-rgb), 0.06)),
    rgba(24, 10, 6, 0.72);
  color: var(--portal-accent-dark);
  box-shadow: 0 0 22px rgba(var(--portal-accent-rgb), 0.12);
}

.portal-logout {
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(10, 14, 17, 0.92);
  cursor: pointer;
}

.portal-shell {
  width: min(1540px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 56px;
}

.portal-shell > section,
.portal-shell > .portal-message-preview {
  padding-block: 0 !important;
}

.portal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  margin: 0 0 12px;
}

.portal-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 950;
}

.portal-dashboard-date {
  margin-left: auto;
  color: #dbe7ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.portal-section-title.small {
  font-size: 1rem;
}

.portal-section-title.finished {
  color: #f4fff1;
}

.portal-section-title.invoice {
  color: #fff;
}

.portal-section-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.42);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.16), rgba(255, 193, 7, 0.06)),
    rgba(5, 8, 10, 0.72);
  color: var(--portal-accent-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 18px rgba(var(--portal-accent-rgb), 0.14);
}

.portal-section-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-section-title.finished .portal-section-icon {
  border-color: rgba(174, 255, 44, 0.48);
  background: rgba(23, 50, 18, 0.58);
  color: #aefa2c;
}

.portal-section-title.invoice .portal-section-icon {
  border-color: rgba(158, 166, 181, 0.48);
  background: rgba(12, 17, 24, 0.72);
  color: #d9d9ee;
}

.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin-bottom: 12px;
}

.portal-stat-card,
.portal-card,
.portal-table-card,
.portal-hero,
.portal-schema {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 193, 7, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 193, 7, 0.12), transparent 24%, rgba(20, 26, 38, 0.22) 72%, transparent),
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.12), rgba(255, 255, 255, 0.035) 44%, rgba(8, 12, 19, 0.84)),
    rgba(14, 15, 17, 0.78);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
}

.portal-stat-card::before,
.portal-card::before,
.portal-table-card::before,
.portal-review-card::before,
.portal-detail-head::before,
.portal-price-card::before,
.portal-processing-card::before,
.portal-message-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 78%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 78%);
  opacity: 0.45;
}

.portal-stat-card {
  min-height: 104px;
  padding: 18px;
}

.portal-customer-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.portal-customer-stats .portal-stat-card {
  min-height: 86px;
  padding: 14px 16px;
}

.portal-customer-stats .portal-stat-card p {
  margin-bottom: 7px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.portal-customer-stats .portal-stat-card strong {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.portal-customer-stats .portal-stat-card small {
  margin-top: 6px;
  font-size: 0.76rem;
}

.portal-customer-stat-head {
  margin: 10px 0 8px;
}

.portal-review-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 193, 7, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 193, 7, 0.08), transparent 24%, rgba(20, 26, 38, 0.16) 74%, transparent),
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.08), rgba(255, 255, 255, 0.03), rgba(8, 12, 19, 0.78)),
    rgba(14, 15, 17, 0.68);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
}

.portal-review-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.18);
  color: #ffc107;
  font-size: 1.25rem;
  box-shadow: 0 0 24px rgba(255, 193, 7, 0.14);
}

.portal-review-card h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1.08rem;
}

.portal-review-card p,
.portal-review-card small {
  display: block;
  margin: 0;
  color: #d8dee8;
  font-weight: 850;
}

.portal-review-card small {
  margin-top: 2px;
  color: #95a1b2;
  font-size: 0.76rem;
}

.portal-review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.portal-company-info-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  margin: 0 0 12px;
}

.portal-company-info-title {
  margin: 18px 0 10px;
}

.portal-company-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.portal-company-panel {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(var(--portal-accent-rgb), 0.04), rgba(9, 14, 20, 0.74)),
    rgba(12, 15, 18, 0.58);
  padding: 14px;
}

.portal-company-panel-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
}

.portal-company-clock {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 112px;
  align-content: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.portal-company-clock-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(14, 226, 131, 0.28) 0 52%, transparent 54%),
    linear-gradient(#10d780 0 0) 50% 30% / 3px 12px no-repeat,
    linear-gradient(#10d780 0 0) 58% 58% / 12px 3px no-repeat,
    rgba(14, 226, 131, 0.14);
  box-shadow: 0 0 24px rgba(14, 226, 131, 0.14);
}

.portal-company-clock p {
  margin: 0;
  color: #b9c2ce;
  font-weight: 750;
}

.portal-company-clock strong {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  color: #08110d;
  background: #0ee283;
  font-size: 0.76rem;
  line-height: 1;
}

.portal-company-clock strong.closed {
  color: #fff;
  background: rgba(var(--portal-accent-rgb), 0.9);
}

.portal-company-hours {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
}

.portal-company-info-card .portal-company-hours {
  margin: 0;
}

.portal-company-hours div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.018);
}

.portal-company-hours div:first-child {
  border-radius: 9px 9px 0 0;
}

.portal-company-hours div:last-child {
  border-bottom: 0;
  border-radius: 0 0 9px 9px;
}

.portal-company-hours dt,
.portal-company-hours dd {
  margin: 0;
  color: #e9edf4;
  font-weight: 850;
}

.portal-company-hours dd {
  color: #aeb8c6;
  text-align: right;
}

.portal-company-contact {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.portal-company-contact img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  padding: 8px;
}

.portal-company-contact h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.portal-company-contact address,
.portal-company-contact-lines {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #aeb8c6;
  font-style: normal;
  font-weight: 750;
}

.portal-company-contact a {
  color: #f4f7fb;
  text-decoration: none;
}

.portal-company-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-company-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 193, 7, 0.42);
  border-radius: 999px;
  color: #ffc107;
  background: rgba(255, 193, 7, 0.06);
  font-size: 0.78rem;
  font-weight: 900;
}

.portal-powered-by {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  width: min(100%, 1120px);
  margin: -10px auto 0;
  padding: 0 10px;
  color: rgba(238, 244, 255, 0.45);
  font-size: 0.62rem;
  font-weight: 800;
  text-decoration: none;
  opacity: 0.72;
}

.portal-powered-by:hover,
.portal-powered-by:focus-visible {
  opacity: 1;
}

.portal-powered-by img {
  width: 58px;
  height: auto;
  display: block;
}

.portal-auth-powered-by {
  display: inline-flex;
  grid-column: 1 / -1;
  justify-self: center;
  align-items: center;
  gap: 4px;
  margin: -2px auto 0;
  color: rgba(238, 244, 255, 0.42);
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  opacity: 0.68;
}

.portal-auth-powered-by:hover,
.portal-auth-powered-by:focus-visible {
  opacity: 1;
}

.portal-auth-powered-by img {
  display: block;
  width: 44px;
  height: auto;
}

.portal-company-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  color: #062011 !important;
  background: linear-gradient(135deg, #0ee283, #0ac467);
  box-shadow: 0 14px 32px rgba(14, 226, 131, 0.16);
  font-weight: 950;
}

.portal-stat-card p {
  margin: 0 0 8px;
  color: #d8dde2;
  font-size: 0.85rem;
}

.portal-stat-card strong {
  display: block;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.portal-stat-card small {
  display: block;
  margin-top: 8px;
  color: #9aa4ad;
  font-weight: 750;
}

.portal-stat-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(5, 8, 10, 0.48);
  opacity: 0.92;
}

.portal-stat-mark::before,
.portal-stat-mark::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.portal-stat-mark.files {
  border-color: rgba(var(--portal-accent-rgb), 0.32);
  color: #ff8d45;
}

.portal-stat-mark.files::before {
  left: 8px;
  top: 11px;
  width: 18px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.portal-stat-mark.files::after {
  left: 8px;
  top: 8px;
  width: 10px;
  height: 6px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.portal-stat-mark.orders {
  border-color: rgba(255, 191, 25, 0.34);
  color: #ffd45c;
}

.portal-stat-mark.orders::before {
  left: 8px;
  top: 7px;
  width: 18px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.portal-stat-mark.orders::after {
  left: 12px;
  top: 13px;
  width: 10px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.portal-stat-mark.paid {
  border-color: rgba(32, 242, 166, 0.34);
  color: #35f0aa;
}

.portal-stat-mark.paid::before {
  left: 7px;
  top: 7px;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.portal-stat-mark.paid::after {
  left: 13px;
  top: 13px;
  width: 9px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.portal-stat-mark.messages {
  border-color: rgba(88, 166, 255, 0.34);
  color: #7bbcff;
}

.portal-stat-mark.messages::before {
  left: 7px;
  top: 8px;
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.portal-stat-mark.messages::after {
  left: 13px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-35deg);
  background: rgba(5, 8, 10, 0.48);
}

.portal-stat-mark.credits {
  border-color: rgba(21, 226, 144, 0.34);
  color: #13e892;
}

.portal-stat-mark.credits::before {
  left: 8px;
  top: 9px;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 5px -4px 0 -2px rgba(19, 232, 146, 0.9);
}

.portal-stat-mark.credits::after {
  left: 16px;
  top: 12px;
  width: 2px;
  height: 11px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: -4px 4px 0 -1px currentColor, 4px -4px 0 -1px currentColor;
}

.portal-stat-mark.users {
  border-color: rgba(88, 166, 255, 0.32);
  color: #58a6ff;
}

.portal-stat-mark.users::before {
  left: 9px;
  top: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 8px 2px 0 -2px currentColor;
}

.portal-stat-mark.users::after {
  left: 7px;
  top: 21px;
  width: 20px;
  height: 8px;
  border: 2px solid currentColor;
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom: 0;
}

.portal-stat-mark.online {
  border-color: rgba(14, 220, 134, 0.34);
  color: #0edc86;
}

.portal-stat-mark.online::before {
  left: 8px;
  top: 8px;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.portal-stat-mark.online::after {
  left: 15px;
  top: 10px;
  width: 3px;
  height: 14px;
  border-radius: 3px;
  background: currentColor;
}

.portal-stat-mark::before,
.portal-stat-mark::after {
  content: none;
  display: none;
}

.portal-stat-mark {
  display: grid;
  place-items: center;
}

.portal-stat-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-stat-mark.files { color: #ff8d45; }
.portal-stat-mark.orders { color: #ffd45c; }
.portal-stat-mark.paid { color: #35f0aa; }
.portal-stat-mark.messages { color: #7bbcff; }
.portal-stat-mark.credits { color: #13e892; }
.portal-stat-mark.work { color: #a5d66a; }

.portal-table-card {
  padding: 18px;
  margin-bottom: 16px;
}

.portal-table-card-finished {
  border-color: rgba(174, 255, 44, 0.34);
  background:
    linear-gradient(90deg, rgba(174, 255, 44, 0.08), transparent 26%, rgba(20, 26, 38, 0.2) 72%, transparent),
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.09), rgba(174, 255, 44, 0.04) 52%, rgba(8, 12, 19, 0.84)),
    rgba(14, 15, 17, 0.78);
}

.portal-table-card-invoices {
  border-color: rgba(var(--portal-accent-rgb), 0.5);
}

.portal-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-table-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-table-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) minmax(180px, 240px);
  gap: 10px;
  margin: 0 0 14px;
}

.portal-table-tools label {
  display: grid;
  gap: 6px;
  color: #c2cbd4;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-table-tools input,
.portal-table-tools select {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.34);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.08), rgba(0, 12, 18, 0.84)),
    rgba(4, 8, 11, 0.78);
  color: #fff;
  font: inherit;
  font-weight: 850;
  outline: none;
}

.portal-table-tools input:focus,
.portal-table-tools select:focus {
  border-color: rgba(var(--portal-accent-rgb), 0.78);
  box-shadow: 0 0 0 3px rgba(var(--portal-accent-rgb), 0.14);
}

.portal-table-empty-filter {
  padding: 22px 14px;
  color: #c2cbd4;
  font-weight: 900;
  text-align: center;
}

.portal-create-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #00bd7d, #049b68);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 189, 125, 0.18);
}

.portal-new-fileservice-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px 0 13px;
  border: 1px solid rgba(35, 240, 161, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(35, 240, 161, 0.13), rgba(var(--portal-accent-rgb), 0.1)),
    rgba(7, 13, 12, 0.82);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 12px 30px rgba(35, 240, 161, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
  overflow: hidden;
}

.portal-new-fileservice-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0 18%, #23f0a1 28%, #d8ff70 34%, transparent 44% 100%);
  animation: portal-led-ring 2.2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(35, 240, 161, 0.54));
  pointer-events: none;
  padding: 2px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}

.portal-new-fileservice-btn::before {
  content: "+";
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--portal-accent);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(var(--portal-accent-rgb), 0.28);
}

.portal-new-fileservice-btn:hover {
  border-color: rgba(35, 240, 161, 0.72);
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px rgba(35, 240, 161, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes portal-led-ring {
  to { transform: rotate(360deg); }
}

.portal-table-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.portal-count-pill,
.portal-status-badge,
.portal-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 184, 77, 0.28);
  border-radius: 999px;
  background: rgba(255, 166, 0, 0.14);
  color: #ffb34d;
  font-size: 0.78rem;
  font-weight: 900;
}

.portal-count-pill.finished,
.portal-status-badge.finished {
  border-color: rgba(174, 255, 44, 0.28);
  background: rgba(118, 155, 15, 0.38);
  color: #b8ff43;
}

.portal-status-badge.paid {
  border-color: rgba(21, 226, 144, 0.32);
  background: rgba(0, 189, 125, 0.18);
  color: #35f0aa;
}

.portal-status-badge.status-new {
  border-color: rgba(var(--portal-accent-rgb), 0.44);
  background: rgba(var(--portal-accent-rgb), 0.2);
  color: #ff9d54;
  box-shadow: 0 0 14px rgba(var(--portal-accent-rgb), 0.12);
}

.portal-status-badge.status-waiting_original {
  border-color: rgba(255, 191, 25, 0.46);
  background: rgba(255, 191, 25, 0.18);
  color: #ffd264;
}

.portal-status-badge.status-in_progress {
  border-color: rgba(77, 171, 247, 0.48);
  background: rgba(77, 171, 247, 0.16);
  color: #7bc4ff;
}

.portal-status-badge.status-waiting_customer {
  border-color: rgba(183, 128, 255, 0.48);
  background: rgba(183, 128, 255, 0.16);
  color: #d2adff;
}

.portal-status-badge.status-ready {
  border-color: rgba(32, 242, 166, 0.48);
  background: rgba(32, 242, 166, 0.16);
  color: #62ffc6;
}

.portal-status-badge.status-completed,
.portal-status-badge.status-finished {
  border-color: rgba(126, 211, 33, 0.52);
  background: rgba(126, 211, 33, 0.2);
  color: #b8ff63;
}

.portal-status-badge.status-cancelled,
.portal-status-badge.status-deleted {
  border-color: rgba(255, 92, 92, 0.48);
  background: rgba(255, 92, 92, 0.16);
  color: #ff8f8f;
}

.portal-empty {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: grid;
  align-content: center;
  padding: 28px;
  border: 1px dashed rgba(255, 193, 7, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(5, 8, 10, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.portal-empty.finished {
  border-color: rgba(174, 255, 44, 0.24);
}

.portal-empty.invoice {
  border-color: rgba(0, 189, 125, 0.28);
}

.portal-empty h3 {
  margin: 0 0 8px;
  color: #fff;
}

.portal-empty p {
  max-width: 720px;
  margin: 0;
  color: #c8d0d8;
}

.portal-table-wrap {
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: #eef2f5;
}

.portal-table th,
.portal-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(var(--portal-accent-rgb), 0.52);
  text-align: left;
  vertical-align: middle;
}

.portal-table th {
  color: #b8c0c8;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.portal-table tbody tr {
  background: rgba(var(--portal-accent-rgb), 0.045);
}

.portal-order-id-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.portal-unread-message-badge {
  position: relative;
  width: 34px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 191, 25, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 191, 25, 0.26), rgba(var(--portal-accent-rgb), 0.1)),
    rgba(8, 12, 14, 0.74);
  box-shadow:
    0 0 18px rgba(255, 191, 25, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portal-unread-message-badge span {
  width: 18px;
  height: 12px;
  display: block;
  border: 2px solid #fff3c2;
  border-radius: 3px;
  background:
    linear-gradient(145deg, transparent 48%, #fff3c2 49% 54%, transparent 55%),
    linear-gradient(35deg, transparent 48%, #fff3c2 49% 54%, transparent 55%);
}

.portal-unread-message-badge::after {
  content: "!";
  position: absolute;
  right: -6px;
  top: -8px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--portal-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
}

.portal-unread-message-badge b {
  position: absolute;
  left: -7px;
  bottom: -7px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(32, 242, 166, 0.92);
  color: #06100c;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
}

.portal-table-finished th,
.portal-table-finished td {
  border-bottom-color: rgba(var(--portal-accent-rgb), 0.42);
}

.portal-table-finished tbody tr {
  background: rgba(174, 255, 44, 0.025);
}

.portal-table-invoices thead tr {
  background: rgba(50, 54, 64, 0.75);
}

.portal-table-subline {
  display: inline-block;
  margin-top: 4px;
  color: #1ee79e;
  font-size: 0.76rem;
  font-weight: 900;
}

.portal-time-pill {
  border-color: rgba(120, 150, 190, 0.25);
  background: rgba(80, 103, 134, 0.18);
  color: #bfc9d5;
}

.portal-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(25, 32, 42, 0.86);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.portal-admin-grid,
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}

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

.portal-card {
  padding: 18px;
}

.portal-admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 12px;
  margin-top: 12px;
}

.portal-dashboard-work-card,
.portal-dashboard-system-card {
  align-self: start;
}

.portal-dashboard-order-list {
  display: grid;
  gap: 8px;
}

.portal-dashboard-order-list a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.22);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.07), rgba(5, 8, 10, 0.48)),
    rgba(5, 8, 10, 0.4);
  color: #fff;
  text-decoration: none;
}

.portal-dashboard-order-list a:hover {
  border-color: rgba(var(--portal-accent-rgb), 0.62);
  transform: translateY(-1px);
}

.portal-dashboard-order-list span {
  display: grid;
  gap: 3px;
}

.portal-dashboard-order-list b,
.portal-dashboard-order-list strong {
  color: #fff;
  font-weight: 950;
}

.portal-dashboard-order-list small {
  color: #9faab5;
  font-size: 0.78rem;
  font-weight: 850;
}

.portal-dashboard-order-list em {
  justify-self: end;
  padding: 6px 9px;
  border: 1px solid rgba(255, 191, 25, 0.32);
  border-radius: 999px;
  background: rgba(255, 191, 25, 0.09);
  color: #ffc763;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 950;
}

.portal-dashboard-order-list i {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #3d83ff;
  color: #fff;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 950;
}

.portal-dashboard-status-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.portal-dashboard-status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(5, 8, 10, 0.42);
}

.portal-dashboard-status-list dt {
  color: #c9d2dc;
  font-weight: 950;
}

.portal-dashboard-status-list dd {
  margin: 0;
  color: #fff;
  font-weight: 900;
}

.portal-dashboard-status-list dd strong {
  color: #20f2a6;
}

.portal-card h2,
.portal-card h3 {
  margin: 6px 0 10px;
  color: #fff;
}

.portal-card p,
.portal-card li {
  color: #cbd3da;
}

.portal-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.portal-detail-head {
  position: relative;
  overflow: hidden;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 4vw, 64px);
  padding: 12px clamp(24px, 4vw, 72px);
  margin-bottom: 12px;
  border: 1px solid rgba(255, 193, 7, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 193, 7, 0.08), transparent 32%, rgba(var(--portal-accent-rgb), 0.06) 100%),
    rgba(10, 12, 14, 0.78);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
}

.portal-detail-head .eyebrow {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 16px;
  margin: 0;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.42);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.18), rgba(255, 193, 7, 0.06)),
    rgba(8, 10, 12, 0.58);
  color: var(--portal-accent-dark);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.portal-detail-head h2 {
  margin: 8px 0 0;
  max-width: 1120px;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.portal-detail-head .portal-status-badge {
  justify-self: end;
  margin-top: 0;
}

.portal-detail-head .portal-back-link {
  justify-self: start;
}

.portal-status-update-form {
  display: grid;
  grid-template-columns: minmax(220px, 420px) auto;
  align-items: end;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(255, 193, 7, 0.32);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.11), rgba(7, 12, 16, 0.76)),
    rgba(9, 12, 14, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px) saturate(122%);
  -webkit-backdrop-filter: blur(16px) saturate(122%);
}

.portal-status-update-form label {
  display: grid;
  gap: 7px;
  color: #f4f6f8;
  font-size: 0.82rem;
  font-weight: 950;
}

.portal-status-update-form select {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.36);
  border-radius: 8px;
  background: rgba(5, 8, 10, 0.72);
  color: #fff;
  padding: 0 12px;
  font: inherit;
  font-weight: 900;
}

.portal-status-update-form .portal-create-btn {
  min-height: 44px;
  padding-inline: 24px;
}

.portal-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.44);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.14), rgba(255, 193, 7, 0.05)),
    rgba(10, 12, 14, 0.46);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.portal-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin-bottom: 18px;
}

.portal-order-create {
  display: grid;
  gap: 14px;
}

.portal-order-create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 193, 7, 0.38);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 193, 7, 0.11), transparent 30%, rgba(var(--portal-accent-rgb), 0.07)),
    rgba(10, 12, 14, 0.72);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
}

.portal-order-create-head h2 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  line-height: 1;
}

.portal-order-create-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #cbd5df;
  font-weight: 800;
}

.portal-new-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 18px;
  align-items: start;
}

.portal-new-order-main {
  display: grid;
  gap: 14px;
}

.portal-order-form-card,
.portal-order-summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 193, 7, 0.36);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 193, 7, 0.1), transparent 28%, rgba(20, 26, 38, 0.18) 74%, transparent),
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.11), rgba(255, 255, 255, 0.035), rgba(8, 12, 19, 0.82)),
    rgba(14, 15, 17, 0.74);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
}

.portal-order-form-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.portal-form-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-form-card-head span,
.portal-summary-title span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.24), rgba(var(--portal-accent-rgb), 0.18)),
    rgba(255, 193, 7, 0.08);
  color: #ffbf19;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portal-form-card-head h3,
.portal-summary-title h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

.portal-form-card-head p {
  margin: 3px 0 0;
  color: #aeb8c3;
  font-size: 0.92rem;
  font-weight: 800;
}

.portal-vehicle-type-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px);
}

.portal-vehicle-type {
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 193, 7, 0.44);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.18), transparent 62%),
    rgba(255, 255, 255, 0.04);
  color: #ffbf19;
  font-weight: 950;
  cursor: default;
  box-shadow: 0 16px 34px rgba(255, 193, 7, 0.08);
}

.portal-vehicle-type input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.portal-vehicle-type span {
  width: 30px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 8px 10px 6px 6px;
  position: relative;
}

.portal-vehicle-type span::before,
.portal-vehicle-type span::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.portal-vehicle-type span::before {
  left: 3px;
}

.portal-vehicle-type span::after {
  right: 3px;
}

.portal-form-grid {
  display: grid;
  gap: 14px;
}

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

.portal-order-form-card label {
  display: grid;
  gap: 7px;
  color: #f1f5f8;
  font-weight: 950;
}

.portal-order-form-card input,
.portal-order-form-card select,
.portal-order-form-card textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 8, 10, 0.58);
  color: #fff;
  font: inherit;
  font-weight: 850;
  padding: 0 13px;
}

.portal-order-form-card select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #cbd5df 50%) calc(100% - 18px) 20px / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.08), transparent 42%),
    rgba(5, 8, 10, 0.72);
  padding-right: 42px;
  cursor: pointer;
}

.portal-order-form-card select option {
  background: #10151a;
  color: #fff;
  font-weight: 850;
}

.portal-order-form-card textarea {
  min-height: 110px;
  padding-block: 12px;
  resize: vertical;
}

.portal-order-form-card input:focus,
.portal-order-form-card select:focus,
.portal-order-form-card textarea:focus {
  outline: 0;
  border-color: rgba(var(--portal-accent-rgb), 0.82);
  box-shadow: 0 0 0 3px rgba(var(--portal-accent-rgb), 0.12);
}

.portal-upload-drop {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.08), transparent 58%),
    rgba(5, 8, 10, 0.42);
  cursor: pointer;
}

.portal-upload-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.portal-upload-drop > span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 193, 7, 0.34);
  background:
    linear-gradient(#cfd7df 0 0) 50% 58% / 18px 2px no-repeat,
    linear-gradient(#cfd7df 0 0) 50% 44% / 2px 18px no-repeat,
    rgba(255, 255, 255, 0.06);
}

.portal-upload-drop > strong,
.portal-upload-drop > small,
.portal-upload-drop > em,
.portal-upload-drop > span {
  pointer-events: none;
}

.portal-upload-drop > strong {
  color: #fff;
}

.portal-upload-drop > small {
  max-width: 430px;
  color: #aeb8c2;
  line-height: 1.35;
}

.portal-upload-drop > em {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 520px);
  padding: 0 14px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.42);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.12), transparent 48%),
    rgba(5, 8, 10, 0.72);
  color: #f6f8fb;
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-upload-drop:focus-within,
.portal-upload-drop:hover {
  border-color: rgba(var(--portal-accent-rgb), 0.58);
  box-shadow: 0 0 0 3px rgba(var(--portal-accent-rgb), 0.08);
}

.portal-upload-drop strong {
  color: #fff;
}

.portal-upload-drop small {
  max-width: 460px;
  color: #aeb8c3;
  font-weight: 800;
}

.portal-upload-autopatch-preview {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 191, 25, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.12), transparent 52%),
    rgba(4, 9, 12, 0.66);
  color: #dce4ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.portal-upload-autopatch-preview[hidden] {
  display: none;
}

.portal-upload-autopatch-preview.success {
  border-color: rgba(0, 255, 170, 0.42);
  background:
    linear-gradient(135deg, rgba(0, 255, 170, 0.11), transparent 58%),
    rgba(4, 9, 12, 0.72);
}

.portal-upload-autopatch-preview.error {
  border-color: rgba(255, 90, 90, 0.42);
}

.portal-upload-autopatch-preview strong {
  color: #fff;
}

.portal-upload-autopatch-preview p {
  margin: -2px 0 0;
  color: #aeb8c3;
  font-weight: 800;
}

.portal-upload-autopatch-preview ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-upload-autopatch-preview li {
  display: flex;
  padding: 0;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.32);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(var(--portal-accent-rgb), 0.14), rgba(0, 14, 22, 0.84)),
    rgba(5, 8, 10, 0.78);
  overflow: hidden;
}

.portal-upload-autopatch-preview li label {
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-template-rows: minmax(96px, auto) 36px 38px;
  grid-template-areas:
    "icon copy"
    "toggle toggle"
    "price price";
  align-items: start;
  align-content: start;
  gap: 12px;
  width: 100%;
  min-height: 212px;
  padding: 12px;
  cursor: pointer;
}

.portal-upload-autopatch-preview li input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.portal-upload-autopatch-preview li:has(input:checked) {
  border-color: rgba(0, 255, 170, 0.58);
  background:
    linear-gradient(145deg, rgba(0, 255, 170, 0.14), rgba(var(--portal-accent-rgb), 0.08)),
    rgba(5, 8, 10, 0.86);
  box-shadow: 0 0 0 1px rgba(0, 255, 170, 0.12), 0 16px 34px rgba(0, 0, 0, 0.26);
}

.portal-upload-autopatch-preview li.disabled {
  opacity: 0.62;
}

.portal-autopatch-mini-icon {
  grid-area: icon;
  align-self: start;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.32);
  border-radius: 12px;
  background: rgba(0, 10, 16, 0.9);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-autopatch-mini-copy {
  grid-area: copy;
  align-self: start;
  display: flex;
  min-width: 0;
  min-height: 96px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
}

.portal-upload-autopatch-preview li b {
  overflow: hidden;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.portal-upload-autopatch-preview li small {
  overflow: hidden;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.portal-upload-autopatch-preview li em {
  display: block;
}

.portal-upload-autopatch-preview li small {
  margin-top: 2px;
  color: #aeb8c3;
  font-weight: 800;
}

.portal-autopatch-mini-toggle {
  grid-area: toggle;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.34);
  border-radius: 10px;
  background: rgba(0, 10, 16, 0.74);
  color: #dce4ec;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-autopatch-mini-toggle i {
  position: relative;
  width: 36px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-autopatch-mini-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dce4ec;
  transition: transform 0.16s ease, background 0.16s ease;
}

.portal-upload-autopatch-preview li:has(input:checked) .portal-autopatch-mini-toggle {
  border-color: rgba(0, 255, 170, 0.44);
  color: #fff;
}

.portal-upload-autopatch-preview li:has(input:checked) .portal-autopatch-mini-toggle i {
  background: rgba(0, 255, 170, 0.2);
  border-color: rgba(0, 255, 170, 0.48);
}

.portal-upload-autopatch-preview li:has(input:checked) .portal-autopatch-mini-toggle i::after {
  transform: translateX(16px);
  background: #00ffaa;
}

.portal-upload-autopatch-preview li em {
  grid-area: price;
  align-self: start;
  justify-self: start;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(0, 255, 170, 0.16);
  color: var(--success);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.portal-autopatch-preflight-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(16px);
}

.portal-autopatch-preflight-modal.is-open {
  display: grid;
}

.portal-autopatch-preflight-card {
  width: min(560px, 100%);
  padding: 22px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.5);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.16), rgba(0, 12, 18, 0.92) 58%),
    rgba(5, 8, 10, 0.92);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.portal-autopatch-preflight-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.portal-autopatch-preflight-head > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.42);
  border-radius: 12px;
  background: rgba(var(--portal-accent-rgb), 0.12);
}

.portal-autopatch-preflight-head > span::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: portal-spin 0.8s linear infinite;
}

.portal-autopatch-preflight-modal.is-success .portal-autopatch-preflight-head > span::before,
.portal-autopatch-preflight-modal.is-error .portal-autopatch-preflight-head > span::before {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--success);
  animation: none;
}

.portal-autopatch-preflight-modal.is-error .portal-autopatch-preflight-head > span::before {
  background: #ff5b5b;
}

.portal-autopatch-preflight-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.portal-autopatch-preflight-card p,
.portal-autopatch-preflight-card strong {
  display: block;
  color: #cbd5df;
  font-weight: 850;
  line-height: 1.55;
}

.portal-autopatch-progress {
  height: 13px;
  margin: 20px 0 12px;
  overflow: hidden;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.32);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
}

.portal-autopatch-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7ee787, #ffd54a, var(--accent));
  box-shadow: 0 0 24px rgba(var(--portal-accent-rgb), 0.42);
  animation: portal-autopatch-progress 10s linear forwards;
}

.portal-autopatch-preflight-card .portal-back-link {
  margin-top: 18px;
}

@keyframes portal-autopatch-progress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes portal-spin {
  to { transform: rotate(360deg); }
}

.portal-order-price-picker.is-disabled-by-autopatch {
  opacity: 0.48;
  filter: grayscale(0.25);
}

.portal-order-summary-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.portal-summary-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-order-summary-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.portal-order-summary-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.portal-order-summary-card dt {
  color: #dfe6ec;
  font-weight: 950;
}

.portal-order-summary-card dd {
  margin: 0;
  color: #fff;
  font-weight: 950;
}

.portal-summary-total {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 193, 7, 0.36);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.14), transparent 58%),
    rgba(255, 255, 255, 0.035);
}

.portal-summary-total span {
  color: #fff;
  font-weight: 950;
}

.portal-summary-total strong {
  color: #ffbf19;
  font-size: 2rem;
  line-height: 1;
}

.portal-summary-total small,
.portal-summary-note {
  color: #aeb8c3;
  font-weight: 800;
}

.portal-order-summary-card > p {
  margin: 0;
  color: #cbd5df;
  font-weight: 850;
}

.portal-order-summary-card > p span {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #20d77a;
}

.portal-definition-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.portal-definition-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-definition-list dt {
  color: #aeb8c2;
  font-weight: 900;
}

.portal-definition-list dd {
  margin: 0;
  color: #fff;
  font-weight: 950;
  text-align: right;
}

.portal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.portal-service-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.38);
  border-radius: 999px;
  background: rgba(var(--portal-accent-rgb), 0.12);
  color: var(--portal-accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.portal-file-list,
.portal-chat-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.portal-chat-list {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 340px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 8px 4px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--portal-accent-rgb), 0.58) rgba(255, 255, 255, 0.06);
  mask-image: linear-gradient(to bottom, transparent 0, #000 32px, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32px, #000 100%);
}

.portal-chat-list::-webkit-scrollbar {
  width: 7px;
}

.portal-chat-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.portal-chat-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--portal-accent-rgb), 0.58);
}

.portal-card .portal-file-list {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.portal-file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(5, 8, 10, 0.46);
}

.portal-file-list span,
.portal-chat-message strong {
  color: #fff;
  font-weight: 950;
}

.portal-file-list small,
.portal-chat-message small {
  color: #9da7b1;
}

.portal-file-list small {
  grid-column: 1;
}

.portal-file-list .portal-icon-btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.portal-tuned-upload-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-tuned-upload-form label {
  display: grid;
  gap: 7px;
  color: #f4f6f8;
  font-size: 0.82rem;
  font-weight: 950;
}

.portal-tuned-file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.34);
  border-radius: 8px;
  background: rgba(5, 8, 10, 0.62);
  color: #f4f6f8;
  cursor: pointer;
}

.portal-tuned-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.portal-tuned-file-picker strong {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.55);
  border-radius: 8px;
  background: rgba(var(--portal-accent-rgb), 0.14);
  color: #fff;
  font-weight: 950;
}

.portal-tuned-file-picker em {
  min-width: 0;
  color: #f4f6f8;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-chat-message {
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.22);
  border-radius: 10px;
  background: rgba(var(--portal-accent-rgb), 0.07);
}

.portal-chat-message.admin {
  border-color: rgba(0, 189, 125, 0.26);
  background: rgba(0, 189, 125, 0.07);
}

.portal-chat-message p {
  margin: 8px 0;
  color: #d8dee5;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.portal-chat-compose {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.portal-chat-compose input {
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 8, 10, 0.75);
  color: #fff;
  font: inherit;
}

.portal-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
}

.portal-price-base-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.portal-price-calculator {
  display: grid;
  gap: 14px;
  padding: 0;
}

.portal-price-summary {
  position: sticky;
  top: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 193, 7, 0.38);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 193, 7, 0.1), transparent 28%, rgba(20, 26, 38, 0.18) 74%, transparent),
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.12), rgba(255, 255, 255, 0.035), rgba(8, 12, 19, 0.86)),
    rgba(14, 15, 17, 0.84);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
}

.portal-price-summary h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.portal-price-summary p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #cfd7df;
  font-weight: 800;
}

.portal-price-summary > strong {
  min-width: 190px;
  color: #22f0a2;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-align: right;
  white-space: nowrap;
}

.portal-price-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 193, 7, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 193, 7, 0.1), transparent 26%, rgba(20, 26, 38, 0.2) 74%, transparent),
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.13), rgba(255, 255, 255, 0.035) 46%, rgba(8, 12, 19, 0.84)),
    rgba(14, 15, 17, 0.78);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
}

.portal-price-card h2 {
  margin: 8px 0;
  color: #fff;
  font-size: 1.2rem;
}

.portal-price-card > strong {
  display: block;
  margin-bottom: 14px;
  color: #22f0a2;
  font-size: 1.25rem;
}

.portal-price-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-price-card li {
  padding: 9px 10px;
  border: 1px solid rgba(255, 193, 7, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.028);
  color: #d5dde4;
  font-weight: 800;
}

.portal-price-base-card,
.portal-price-option {
  position: relative;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.045), transparent 48%),
    rgba(5, 8, 10, 0.34);
  color: #eef2f5;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.portal-price-base-card {
  min-height: 132px;
  grid-template-rows: auto minmax(46px, 1fr) auto;
  align-content: stretch;
  padding: 15px;
  border-color: rgba(255, 193, 7, 0.3);
  border-radius: 12px;
}

.portal-price-option {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px 12px 10px 40px;
}

.portal-price-base-card input,
.portal-price-option input {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--portal-accent);
  transform: translateY(-50%);
}

.portal-price-base-card input {
  left: auto;
  right: 14px;
  top: 16px;
  transform: none;
}

.portal-price-base-card b {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.18;
}

.portal-price-base-card em {
  align-self: end;
  color: #22f0a2;
  font-style: normal;
  font-weight: 950;
}

.portal-price-option b {
  color: #fff;
  font-weight: 950;
}

.portal-price-option span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.portal-price-option small {
  color: #aeb8c2;
  font-size: 0.74rem;
  font-weight: 800;
}

.portal-price-option em {
  color: #22f0a2;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.portal-price-base-card:hover,
.portal-price-option:hover,
.portal-price-base-card:has(input:focus-visible),
.portal-price-option:has(input:focus-visible) {
  border-color: rgba(var(--portal-accent-rgb), 0.58);
  box-shadow: 0 0 0 3px rgba(var(--portal-accent-rgb), 0.08);
}

.portal-price-base-card:has(input:checked),
.portal-price-option:has(input:checked) {
  border-color: rgba(34, 240, 162, 0.46);
  background:
    linear-gradient(135deg, rgba(34, 240, 162, 0.09), transparent 48%),
    rgba(5, 12, 10, 0.56);
}

.portal-price-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.portal-price-option-panels {
  display: grid;
}

.portal-price-option-panel {
  padding: 18px;
}

.portal-price-option-panel[hidden] {
  display: none;
}

.portal-price-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-price-panel-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.portal-price-panel-head > strong {
  color: #22f0a2;
  font-size: 1rem;
  white-space: nowrap;
}

.portal-price-admin {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.portal-price-admin-head,
.portal-price-admin-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 193, 7, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 193, 7, 0.08), transparent 28%, rgba(var(--portal-accent-rgb), 0.06)),
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.1), rgba(255, 255, 255, 0.028), rgba(8, 12, 19, 0.82)),
    rgba(12, 14, 16, 0.74);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
}

.portal-price-admin-head h2 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.portal-price-admin-head p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  color: #cbd5df;
  font-weight: 800;
}

.portal-price-admin-list {
  display: grid;
  gap: 14px;
}

.portal-price-admin-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: -18px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  list-style: none;
}

.portal-price-admin-title::-webkit-details-marker {
  display: none;
}

.portal-price-admin-title::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-top: 9px;
  border-right: 2px solid var(--portal-accent-dark);
  border-bottom: 2px solid var(--portal-accent-dark);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.portal-price-admin-title .portal-drag-handle {
  margin-top: 3px;
}

.portal-price-admin-details[open] .portal-price-admin-title::after {
  transform: rotate(225deg);
}

.portal-price-admin-body {
  display: grid;
  gap: 0;
  padding-top: 18px;
}

.portal-price-admin-title h3,
.portal-price-admin-card > h3,
.portal-price-admin-options-head h4 {
  margin: 0;
  color: #fff;
}

.portal-price-admin-title strong {
  color: #22f0a2;
  white-space: nowrap;
}

.portal-price-admin-title span {
  margin-left: auto;
  color: #aeb8c3;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.portal-price-admin-form {
  display: grid;
  gap: 10px;
}

.portal-price-admin-form + .portal-price-admin-form,
.portal-price-delete-form {
  margin-top: 14px;
}

.portal-price-admin-form.compact {
  grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.2fr) minmax(120px, 0.45fr) auto;
  align-items: end;
}

.portal-price-admin-form label {
  display: grid;
  gap: 6px;
  color: #dfe7ee;
  font-size: 0.82rem;
  font-weight: 950;
}

.portal-price-admin-form input,
.portal-price-admin-form select,
.portal-price-admin-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 8, 10, 0.58);
  color: #fff;
  font: inherit;
  font-weight: 850;
  padding: 0 12px;
}

.portal-price-admin-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--portal-accent-dark) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.06), rgba(5, 8, 10, 0.74)),
    rgba(5, 8, 10, 0.58);
}

.portal-price-admin-form select option {
  background: #14171b;
  color: #fff;
}

.portal-price-admin-form textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
}

.portal-template-details {
  border: 1px solid rgba(255, 153, 0, 0.36);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.08), rgba(6, 10, 13, 0.56));
  overflow: hidden;
}

.portal-template-details + .portal-template-details {
  margin-top: 12px;
}

.portal-template-details summary {
  cursor: pointer;
  padding: 14px 16px;
  color: #fff;
  font-weight: 950;
}

.portal-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 16px 16px;
}

.portal-template-grid fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.portal-template-grid legend {
  padding: 0 8px;
  color: var(--portal-accent-dark);
  font-weight: 950;
}

.portal-price-admin-form input:focus,
.portal-price-admin-form select:focus,
.portal-price-admin-form textarea:focus {
  outline: 0;
  border-color: rgba(var(--portal-accent-rgb), 0.82);
  box-shadow: 0 0 0 3px rgba(var(--portal-accent-rgb), 0.12);
}

.portal-check-field {
  display: grid;
  gap: 6px;
}

.portal-check-line {
  min-height: 42px;
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 8, 10, 0.42);
}

.portal-check-line input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--portal-accent);
}

.portal-check-line span {
  color: #fff;
  font-weight: 900;
}

.portal-settings-fieldset {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.portal-settings-fieldset legend {
  padding: 0 8px;
  color: #ff7a18;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-opening-hours-editor {
  display: grid;
  gap: 8px;
}

.portal-opening-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 120px 120px;
  gap: 8px;
  align-items: center;
}

.portal-opening-row .portal-check-line {
  min-height: 44px;
}

.portal-credit-package-form {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: end;
}

.portal-credit-package-form label:nth-of-type(5),
.portal-credit-package-form label:nth-of-type(6) {
  grid-column: span 2;
}

.portal-credit-package-form .portal-create-btn {
  align-self: end;
}

.portal-stripe-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.portal-stripe-status-card h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

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

.portal-settings-tabs {
  margin: 0;
}

.portal-settings-single-form {
  grid-template-columns: minmax(220px, 420px) auto;
  align-items: end;
}

.portal-settings-single-form .portal-settings-fieldset {
  grid-column: 1 / -1;
}

.portal-profile-password-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  max-width: 980px;
}

.portal-profile-password-form .portal-faq-admin-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.portal-profile-password-form .portal-create-btn {
  min-width: 220px;
}

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

.portal-branding-preview-card {
  display: grid;
  min-height: 170px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.26);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.1), rgba(5, 8, 10, 0.72)),
    rgba(5, 8, 10, 0.52);
}

.portal-branding-preview-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  padding: 10px;
}

.portal-branding-preview-card.background {
  position: relative;
  overflow: hidden;
  align-content: end;
  justify-items: start;
  background:
    linear-gradient(rgba(5, 8, 10, 0.36), rgba(5, 8, 10, 0.78)),
    var(--branding-preview-image) center / cover no-repeat,
    rgba(5, 8, 10, 0.62);
}

.portal-branding-form label small {
  display: block;
  margin-top: 6px;
  color: #9ca8b5;
  font-size: 0.78rem;
  font-weight: 800;
}

.portal-branding-file-picker {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.11), rgba(255, 255, 255, 0.025)),
    rgba(5, 8, 10, 0.58);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.portal-branding-file-picker:hover,
.portal-branding-file-picker:focus-within {
  border-color: rgba(var(--portal-accent-rgb), 0.72);
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.16), rgba(255, 255, 255, 0.035)),
    rgba(5, 8, 10, 0.68);
  transform: translateY(-1px);
}

.portal-branding-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.portal-branding-file-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.42);
  border-radius: 12px;
  background: rgba(var(--portal-accent-rgb), 0.14);
  color: #eef4f8;
  box-shadow: 0 12px 26px rgba(var(--portal-accent-rgb), 0.1);
}

.portal-branding-file-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-branding-file-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.portal-branding-file-copy strong {
  color: #f6f8fb;
  font-size: 0.96rem;
  line-height: 1.15;
}

.portal-branding-file-copy small {
  margin: 0;
  color: #aeb8c3;
  font-size: 0.76rem;
  line-height: 1.25;
}

.portal-branding-file-copy em {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin-top: 4px;
  padding: 0 10px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.45);
  border-radius: 999px;
  color: #f6f8fb;
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-accent-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.08), transparent 48%),
    rgba(5, 8, 10, 0.5);
}

.portal-accent-picker legend {
  padding: 0 8px;
  color: var(--portal-accent-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-accent-picker label {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(5, 8, 10, 0.58);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.portal-accent-picker label:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--swatch-color) 70%, rgba(255, 255, 255, 0.16));
}

.portal-accent-picker input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.portal-accent-picker span {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--swatch-color);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.06),
    0 0 18px color-mix(in srgb, var(--swatch-color) 56%, transparent);
}

.portal-accent-picker b {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 950;
}

.portal-accent-picker label:has(input:checked) {
  border-color: var(--swatch-color);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--swatch-color) 18%, transparent), rgba(5, 8, 10, 0.64)),
    rgba(5, 8, 10, 0.72);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--swatch-color) 14%, transparent);
}

.portal-price-admin-options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 4px;
}

.portal-price-admin-option {
  display: grid;
  grid-template-columns: auto minmax(220px, 1.3fr) minmax(100px, 0.35fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid rgba(255, 193, 7, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.026);
}

.portal-sort-save-form {
  display: flex;
  justify-content: flex-end;
}

.portal-drag-handle {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.28);
  border-radius: 9px;
  background:
    radial-gradient(circle, var(--portal-accent-dark) 0 2px, transparent 2.5px) 9px 8px / 8px 8px repeat,
    rgba(var(--portal-accent-rgb), 0.08);
  cursor: grab;
}

.portal-drag-handle:active {
  cursor: grabbing;
}

[data-sortable-item].is-dragging {
  opacity: 0.55;
  outline: 2px solid rgba(var(--portal-accent-rgb), 0.48);
  outline-offset: 3px;
}

.portal-delete-check {
  min-height: 42px;
  display: inline-flex !important;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255, 92, 100, 0.24);
  border-radius: 8px;
  color: #ff9aa0 !important;
  white-space: nowrap;
}

.portal-delete-check input {
  width: auto;
  min-height: 0;
  accent-color: #ff5c64;
}

.portal-admin-muted {
  margin: 0;
  color: #aeb8c3;
  font-weight: 800;
}

.portal-icon-btn.danger {
  border-color: rgba(255, 92, 100, 0.32);
  color: #ff9aa0;
}

.portal-faq-list {
  display: grid;
  gap: 10px;
}

.portal-faq-admin {
  display: grid;
  gap: 14px;
}

.portal-faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 193, 7, 0.34);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 193, 7, 0.08), transparent 28%, rgba(var(--portal-accent-rgb), 0.045)),
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.08), rgba(255, 255, 255, 0.03), rgba(8, 12, 19, 0.82)),
    rgba(12, 14, 16, 0.72);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
}

.portal-faq-item summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.portal-faq-item summary::-webkit-details-marker {
  display: none;
}

.portal-faq-item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--portal-accent-dark);
  border-bottom: 2px solid var(--portal-accent-dark);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.portal-faq-item[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-faq-item[open] summary::after {
  transform: rotate(225deg);
}

.portal-faq-item summary .eyebrow {
  margin: 0;
  color: var(--portal-accent);
  font-size: 0.72rem;
}

.portal-faq-item summary strong {
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.16;
}

.portal-faq-item > p {
  margin: 0;
  padding: 0 16px 16px;
  color: #cbd5df;
  font-weight: 750;
  line-height: 1.62;
}

.portal-faq-admin-list {
  gap: 12px;
}

.portal-faq-admin-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.portal-faq-admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-faq-admin-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.portal-faq-delete-form {
  display: flex;
  justify-content: flex-end;
}

.portal-processing-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin: 12px 0 20px;
  border: 1px solid rgba(255, 193, 7, 0.34);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 193, 7, 0.075), transparent 24%, rgba(20, 26, 38, 0.16) 74%, transparent),
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.08), rgba(255, 255, 255, 0.03), rgba(8, 12, 19, 0.78)),
    rgba(14, 15, 17, 0.68);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
}

.portal-processing-card p {
  margin: 0 0 3px;
  color: #d5dce4;
  font-weight: 800;
  font-size: 0.78rem;
}

.portal-processing-card strong {
  display: block;
  color: #11cfff;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 0.95;
}

.portal-processing-card small {
  display: block;
  margin-top: 4px;
  color: #8f9bad;
  font-weight: 800;
  font-size: 0.7rem;
}

.portal-processing-card > span {
  color: rgba(255, 255, 255, 0.28);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.portal-message-preview {
  padding: 0;
  margin: 0 0 18px;
}

.portal-message-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.portal-message-title .portal-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border-color: rgba(118, 139, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(92, 113, 255, 0.22), rgba(var(--portal-accent-rgb), 0.06)),
    rgba(8, 13, 18, 0.82);
  color: #dcd7ff;
}

.portal-message-title h2 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
}

.portal-message-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 12px;
  align-items: start;
}

.portal-message-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255, 193, 7, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 193, 7, 0.08), transparent 30%, rgba(59, 130, 246, 0.08)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.11), rgba(255, 255, 255, 0.03), rgba(6, 10, 18, 0.84)),
    rgba(13, 20, 34, 0.78);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.portal-message-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-message-card strong,
.portal-message-card p {
  color: #fff;
}

.portal-message-card p {
  margin: 14px 0 6px;
  font-weight: 850;
}

.portal-message-card small {
  color: #aeb9c8;
  font-weight: 800;
}

.portal-message-card em {
  display: block;
  margin-top: 12px;
  color: #a7a7b2;
  font-style: normal;
  font-weight: 900;
}

.portal-recent-service-grid {
  grid-template-columns: repeat(2, minmax(0, 360px));
  align-items: stretch;
}

.portal-recent-service-card {
  min-height: 124px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
}

.portal-recent-service-card div {
  min-height: 30px;
}

.portal-recent-service-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 12px 0 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.portal-recent-service-card small {
  align-self: end;
}

@media (max-width: 980px) {
  .portal-app {
    display: block;
  }

  .portal-menu-toggle {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .portal-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 62px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.24);
    background:
      linear-gradient(135deg, rgba(255, 193, 7, 0.1), transparent 58%),
      linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.12), transparent 62%),
      rgba(5, 7, 8, 0.76);
    color: #fff;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .portal-mobile-bar strong {
    font-size: 1rem;
  }

  .portal-mobile-bar span:last-child {
    color: #aeb8c2;
    font-size: 0.86rem;
    font-weight: 850;
  }

  .portal-burger {
    width: 30px;
    height: 22px;
    display: inline-block;
    background:
      linear-gradient(#fff 0 0) 0 0 / 100% 3px no-repeat,
      linear-gradient(#fff 0 0) 0 50% / 100% 3px no-repeat,
      linear-gradient(#fff 0 0) 0 100% / 100% 3px no-repeat;
  }

  .portal-sidebar {
    position: sticky;
    top: 62px;
    z-index: 39;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 62px);
    flex: none;
    display: none;
    padding: 18px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 193, 7, 0.22);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  }

  .portal-menu-toggle:checked + .portal-mobile-bar + .portal-sidebar {
    display: flex;
  }

  .portal-side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-sidebar-logo {
    display: none;
  }

  .portal-sidebar-logout {
    margin-top: 10px;
  }

  .portal-stats-grid,
  .portal-grid,
  .portal-admin-grid,
  .portal-admin-dashboard-grid,
  .portal-detail-grid,
  .portal-new-order-layout,
  .portal-pricing-grid,
  .portal-price-base-grid,
  .portal-credit-package-grid,
  .portal-message-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .portal-price-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-order-summary-card {
    position: static;
  }

  .portal-new-order-layout {
    grid-template-columns: 1fr;
  }

  .portal-new-order-main {
    min-width: 0;
  }

  .portal-new-order-layout > .portal-new-order-main,
  .portal-new-order-layout > .portal-order-summary-card {
    grid-column: 1 / -1;
  }

  .portal-price-summary > strong {
    min-width: 0;
    text-align: left;
  }

  .portal-company-info-grid {
    grid-template-columns: 1fr;
  }

  .portal-opening-row {
    grid-template-columns: 1fr 1fr;
  }

  .portal-opening-row .portal-check-line {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .portal-settings-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 -2px;
    padding: 6px;
    overflow-x: auto;
    border-radius: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .portal-settings-tabs::-webkit-scrollbar {
    display: none;
  }

  .portal-settings-tabs a {
    flex: 0 0 auto;
    min-height: 34px;
    max-width: 152px;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 0.76rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .portal-settings-tabs a.active {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 8px 18px rgba(0, 0, 0, 0.18);
  }

  .portal-nav,
  .portal-shell {
    width: min(100% - 24px, 1540px);
  }

  .portal-shell {
    padding: 12px 0 42px;
  }

  .portal-accent-picker {
    grid-template-columns: 1fr;
  }

  .portal-dashboard-pill {
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .portal-processing-mini {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.76rem;
  }

  .portal-logout {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .portal-company-info-card {
    padding: 18px;
    gap: 14px;
  }

  .portal-company-panel {
    padding: 12px;
  }

  .portal-company-hours div {
    padding: 9px 10px;
  }

  .portal-stats-grid,
  .portal-grid,
  .portal-admin-grid,
  .portal-admin-dashboard-grid,
  .portal-detail-grid,
  .portal-new-order-layout,
  .portal-form-grid,
  .portal-form-grid.two,
  .portal-order-base-grid,
  .portal-pricing-grid,
  .portal-price-base-grid,
  .portal-credit-package-grid,
  .portal-message-grid {
    grid-template-columns: 1fr;
  }

  .portal-dashboard-order-list a {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .portal-dashboard-order-list em {
    justify-self: start;
  }

  .portal-price-options {
    grid-template-columns: 1fr;
  }

  .portal-faq-admin-form {
    grid-template-columns: 1fr;
  }

  .portal-credit-package-form,
  .portal-stripe-form,
  .portal-branding-form,
  .portal-profile-password-form {
    grid-template-columns: 1fr;
  }

  .portal-user-pricing-head,
  .portal-user-pricing-row {
    grid-template-columns: 1fr;
  }

  .portal-profile-password-form {
    max-width: none;
  }

  .portal-profile-password-form .portal-create-btn {
    width: 100%;
    min-width: 0;
  }

  .portal-credit-package-form label:nth-of-type(5),
  .portal-credit-package-form label:nth-of-type(6) {
    grid-column: auto;
  }

  .portal-table-tools {
    grid-template-columns: 1fr;
  }

  .portal-table-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .portal-table-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .portal-table-actions .portal-create-btn,
  .portal-new-fileservice-btn {
    width: 100%;
  }

  .portal-table-wrap {
    overflow-x: visible;
  }

  .portal-table {
    min-width: 0;
    width: 100%;
  }

  .portal-table thead {
    display: none;
  }

  .portal-table tbody,
  .portal-table tr,
  .portal-table td {
    display: block;
    width: 100%;
  }

  .portal-table tbody {
    display: grid;
    gap: 10px;
  }

  .portal-table tr {
    padding: 12px;
    border: 1px solid rgba(var(--portal-accent-rgb), 0.28);
    border-radius: 10px;
    background:
      linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.09), rgba(8, 12, 14, 0.78)),
      rgba(7, 10, 12, 0.7);
  }

  .portal-table td {
    display: grid;
    grid-template-columns: minmax(72px, 30%) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-wrap: anywhere;
  }

  .portal-table td > *,
  .portal-file-list span,
  .portal-file-list small,
  .portal-order-id-cell,
  .portal-status-badge {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .portal-table td:last-child {
    border-bottom: 0;
  }

  .portal-table td::before {
    content: attr(data-label);
    color: #aeb9c8;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .portal-table td:nth-child(1)::before { content: "ID"; }
  .portal-table td:nth-child(2)::before { content: "Status"; }
  .portal-table td:nth-child(3)::before { content: "Erstellt"; }
  .portal-table td:nth-child(4)::before { content: "Fahrzeug"; }
  .portal-table td:nth-child(5)::before { content: "Credits"; }
  .portal-table td:nth-child(6)::before { content: "Aktion"; }
  .portal-table td:nth-child(7)::before { content: "User"; }
  .portal-table td:nth-child(8)::before { content: "Aktion"; }

  .portal-table td[data-label]::before {
    content: attr(data-label);
  }

  .portal-table-invoices td:nth-child(1)::before { content: "Nummer"; }
  .portal-table-invoices td:nth-child(2)::before { content: "Datum"; }
  .portal-table-invoices td:nth-child(3)::before { content: "Kunde"; }
  .portal-table-invoices td:nth-child(4)::before { content: "Gesamt"; }
  .portal-table-invoices td:nth-child(5)::before { content: "Status"; }
  .portal-table-invoices td:nth-child(6)::before { content: "Aktion"; }

  .portal-table-invoices td:first-child strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .portal-table-invoices .portal-table-subline {
    display: block;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .portal-table td .portal-icon-btn,
  .portal-table td > .portal-icon-btn {
    width: 100%;
  }

  .portal-file-list li {
    grid-template-columns: 1fr;
  }

  .portal-file-list small,
  .portal-file-list .portal-icon-btn {
    grid-column: auto;
    grid-row: auto;
  }

  .portal-file-list .portal-icon-btn {
    width: 100%;
  }

  .portal-chat-list {
    max-height: 310px;
    overflow-x: hidden;
    padding-right: 4px;
  }

  .portal-upload-autopatch-preview {
    grid-template-columns: 1fr;
  }

  .portal-upload-autopatch-preview li label {
    min-height: 0;
  }

  .portal-price-panel-head {
    flex-direction: column;
    gap: 8px;
  }

  .portal-detail-head,
  .portal-review-card,
  .portal-chat-compose,
  .portal-processing-card {
    grid-template-columns: 1fr;
  }

  .portal-detail-head {
    grid-template-columns: auto 1fr auto;
    min-height: 58px;
    gap: 8px;
    padding: 10px 14px;
  }

  .portal-detail-head .eyebrow {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .portal-detail-head .portal-status-badge {
    font-size: 0.72rem;
  }

  .portal-detail-head .portal-back-link {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .portal-status-update-form {
    grid-template-columns: 1fr;
  }

  .portal-status-update-form .portal-create-btn {
    width: 100%;
  }

  .portal-review-card {
    align-items: flex-start;
  }

  .portal-review-actions {
    width: 100%;
    justify-content: stretch;
  }

  .portal-review-actions > * {
    flex: 1 1 100%;
  }

  .portal-processing-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-side-nav {
    grid-template-columns: 1fr;
  }

  .portal-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }

  .portal-section-head .portal-section-title {
    display: none;
  }

  .portal-order-create-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .portal-order-form-card,
  .portal-order-summary-card {
    width: 100%;
    min-width: 0;
    padding: 16px;
  }

  .portal-order-summary-card dl div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
  }

  .portal-order-summary-card dd {
    overflow-wrap: anywhere;
  }

  .portal-summary-title {
    align-items: flex-start;
  }

  .portal-vehicle-type-row {
    grid-template-columns: 1fr;
  }

  .portal-upload-drop {
    min-height: 190px;
  }

  .portal-stat-card,
  .portal-table-card,
  .portal-card {
    padding: 14px;
  }

  .portal-table-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

.portal-autopatch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 191, 25, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.12), rgba(7, 13, 17, 0.72)),
    rgba(6, 10, 12, 0.74);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.portal-autopatch-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.26);
  border-radius: 999px;
  background: rgba(4, 9, 12, 0.5);
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.portal-autopatch-tabs a.active,
.portal-autopatch-tabs a:hover {
  border-color: rgba(var(--portal-accent-rgb), 0.7);
  background: linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.28), rgba(255, 191, 25, 0.1));
  color: #fff;
}

.portal-autopatch-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.portal-autopatch-quick-card {
  display: grid;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
}

.portal-autopatch-quick-card span {
  color: var(--muted);
  font-weight: 800;
}

.portal-autopatch-add-form {
  grid-template-columns: minmax(210px, 1.2fr) repeat(3, minmax(150px, 1fr)) minmax(120px, 0.6fr) auto;
}

.portal-autopatch-stats {
  margin: 0;
}

.portal-autopatch-library-card {
  display: grid;
  gap: 14px;
}

.portal-autopatch-upload-form {
  grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(170px, 0.8fr)) auto;
  align-items: end;
}

.portal-autopatch-upload-form input[type="file"] {
  width: 100%;
  min-height: 48px;
  padding: 10px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.34);
  border-radius: 10px;
  background: rgba(2, 7, 10, 0.72);
  color: var(--text);
}

.portal-inline-action-form {
  display: flex;
  justify-content: flex-end;
}

.portal-filter-field {
  display: grid;
  gap: 6px;
  min-width: min(100%, 320px);
}

.portal-filter-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-filter-field input {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.28);
  border-radius: 10px;
  background: rgba(3, 8, 10, 0.78);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  outline: none;
}

.portal-filter-field input:focus {
  border-color: rgba(var(--portal-accent-rgb), 0.74);
  box-shadow: 0 0 0 3px rgba(var(--portal-accent-rgb), 0.12);
}

.portal-autopatch-mapping-list {
  display: grid;
  gap: 10px;
}

.portal-autopatch-mapping-row {
  overflow: hidden;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.11), rgba(7, 13, 17, 0.74)),
    rgba(5, 10, 12, 0.68);
}

.portal-autopatch-mapping-row[open] {
  border-color: rgba(var(--portal-accent-rgb), 0.58);
}

.portal-autopatch-mapping-row summary {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(220px, 1.6fr) auto auto auto;
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.portal-autopatch-mapping-row summary::-webkit-details-marker {
  display: none;
}

.portal-autopatch-mapping-row summary::after {
  width: 8px;
  height: 8px;
  content: "";
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.portal-autopatch-mapping-row[open] summary::after {
  transform: rotate(225deg);
}

.portal-autopatch-mapping-row summary strong {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.portal-autopatch-mapping-row summary span {
  color: var(--text);
  font-weight: 900;
}

.portal-autopatch-mapping-row summary b {
  color: var(--success);
  white-space: nowrap;
}

.portal-autopatch-mapping-row summary em {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.portal-autopatch-mapping-row summary em.is-active {
  border-color: rgba(34, 255, 170, 0.34);
  background: rgba(34, 255, 170, 0.08);
  color: var(--success);
}

.portal-autopatch-mapping-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) minmax(210px, auto);
  gap: 12px;
  padding: 0 16px 16px;
}

.portal-autopatch-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.portal-autopatch-script-list {
  display: grid;
  gap: 10px;
}

.portal-autopatch-script-item {
  overflow: hidden;
  border: 1px solid rgba(255, 191, 25, 0.22);
  border-radius: 12px;
  background: rgba(5, 10, 12, 0.62);
}

.portal-autopatch-script-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.portal-autopatch-script-item summary::-webkit-details-marker {
  display: none;
}

.portal-autopatch-script-item summary strong {
  overflow-wrap: anywhere;
}

.portal-autopatch-script-item dl {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
  margin: 0;
}

.portal-autopatch-script-item dl div {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-autopatch-script-item dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-autopatch-script-item dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.portal-autopatch-script-assign-form {
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) auto;
  align-items: end;
  margin: 0 16px 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-autopatch-card {
  border-color: rgba(255, 191, 25, 0.44);
}

.portal-autopatch-solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.portal-autopatch-solution {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border: 1px solid rgba(255, 191, 25, 0.34);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.13), rgba(6, 12, 16, 0.78));
  cursor: pointer;
}

.portal-autopatch-solution input {
  accent-color: var(--accent);
}

.portal-autopatch-solution strong,
.portal-autopatch-solution small,
.portal-autopatch-solution em {
  display: block;
}

.portal-autopatch-solution small {
  margin-top: 4px;
  color: var(--muted);
}

.portal-autopatch-solution em {
  color: var(--success);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.portal-autopatch-solution.disabled {
  opacity: 0.58;
}

.portal-autopatch-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.25);
  border-radius: 10px;
  background: rgba(var(--portal-accent-rgb), 0.08);
}

.portal-autopatch-submit {
  margin-top: 12px;
}

.portal-autopatch-script-table td:first-child {
  max-width: 460px;
  overflow-wrap: anywhere;
}

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

.portal-storage-card {
  display: grid;
  gap: 14px;
}

.portal-storage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 0;
}

.portal-storage-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.18);
  border-radius: 10px;
  background: rgba(4, 9, 12, 0.58);
}

.portal-storage-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.portal-storage-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-storage-grid dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.portal-user-form {
  grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
  align-items: end;
}

.portal-user-list {
  display: grid;
  gap: 10px;
}

.portal-user-item {
  overflow: hidden;
  border: 1px solid rgba(255, 191, 25, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.1), rgba(6, 12, 16, 0.72)),
    rgba(5, 10, 12, 0.68);
}

.portal-user-item[open] {
  border-color: rgba(var(--portal-accent-rgb), 0.54);
}

.portal-user-item summary {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(130px, 0.8fr) minmax(180px, 1.3fr) auto auto auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.portal-user-item summary::-webkit-details-marker {
  display: none;
}

.portal-user-item summary::after {
  width: 8px;
  height: 8px;
  content: "";
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.portal-user-item[open] summary::after {
  transform: rotate(225deg);
}

.portal-user-item summary strong,
.portal-user-item summary span,
.portal-user-item summary b {
  overflow-wrap: anywhere;
}

.portal-user-item summary strong {
  color: var(--text);
}

.portal-user-item summary span,
.portal-user-item summary b {
  color: var(--muted);
  font-weight: 900;
}

.portal-user-item summary em,
.portal-user-item summary i {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.portal-user-item summary em.is-active {
  border-color: rgba(34, 255, 170, 0.34);
  background: rgba(34, 255, 170, 0.08);
  color: var(--success);
}

.portal-user-item summary i {
  border-color: rgba(var(--portal-accent-rgb), 0.28);
  color: var(--accent);
}

.portal-user-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 18px;
}

.portal-user-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.1), rgba(255, 255, 255, 0.025)),
    rgba(5, 9, 11, 0.52);
}

.portal-user-section-head span {
  color: #fff;
  font-weight: 950;
}

.portal-user-section-head small {
  color: var(--accent);
  font-weight: 950;
}

.portal-user-edit-form {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(4, 8, 10, 0.38);
}

.portal-user-edit-form .portal-faq-admin-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.portal-user-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-user-small-form,
.portal-user-danger-form {
  display: grid;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.06), transparent 56%),
    rgba(4, 8, 10, 0.48);
}

.portal-user-small-form {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.portal-user-danger-form {
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: rgba(255, 92, 100, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 92, 100, 0.07), transparent 58%),
    rgba(4, 8, 10, 0.42);
}

.portal-user-small-form h3,
.portal-user-danger-form h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.portal-user-small-form .portal-faq-admin-actions,
.portal-user-danger-form .portal-faq-admin-actions {
  justify-content: flex-end;
}

.portal-user-pricing {
  overflow: hidden;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.1), rgba(255, 193, 7, 0.035), rgba(4, 9, 12, 0.72)),
    rgba(5, 8, 10, 0.58);
}

.portal-user-pricing > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.portal-user-pricing > summary::-webkit-details-marker,
.portal-user-pricing-group > summary::-webkit-details-marker {
  display: none;
}

.portal-user-pricing > summary span {
  color: #fff;
  font-weight: 950;
}

.portal-user-pricing > summary b {
  padding: 6px 10px;
  border: 1px solid rgba(34, 255, 170, 0.32);
  border-radius: 999px;
  background: rgba(34, 255, 170, 0.08);
  color: var(--success);
  font-size: 0.82rem;
}

.portal-user-pricing-form {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.portal-user-pricing-head {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.portal-user-pricing-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.45;
}

.portal-user-pricing-grid {
  display: grid;
  gap: 10px;
}

.portal-user-pricing-group {
  overflow: hidden;
  border: 1px solid rgba(255, 191, 25, 0.22);
  border-radius: 10px;
  background: rgba(4, 8, 10, 0.48);
}

.portal-user-pricing-group[open] {
  border-color: rgba(var(--portal-accent-rgb), 0.44);
}

.portal-user-pricing-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
}

.portal-user-pricing-group > summary span {
  display: grid;
  gap: 3px;
}

.portal-user-pricing-group > summary small,
.portal-user-pricing-row small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-user-pricing-group > summary strong {
  color: #fff;
  font-weight: 950;
}

.portal-user-pricing-group > summary em {
  color: var(--success);
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.portal-user-pricing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 110px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.portal-user-pricing-row.base {
  background: rgba(var(--portal-accent-rgb), 0.045);
}

.portal-user-pricing-row span {
  min-width: 0;
  color: #f4f6f8;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.portal-user-pricing-row input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.25);
  border-radius: 8px;
  background: rgba(3, 7, 9, 0.7);
  color: #fff;
  font: inherit;
  font-weight: 900;
}

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

  .portal-table-tools {
    grid-template-columns: 1fr;
  }

  .portal-autopatch-add-form,
  .portal-autopatch-upload-form,
  .portal-autopatch-script-assign-form,
  .portal-autopatch-mapping-row summary,
  .portal-autopatch-mapping-body,
  .portal-user-form,
  .portal-user-item summary,
  .portal-user-edit-form,
  .portal-user-action-grid,
  .portal-user-small-form,
  .portal-user-danger-form {
    grid-template-columns: 1fr;
  }

  .portal-autopatch-tabs a {
    flex: 1 1 140px;
  }

  .portal-autopatch-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

.portal-imprint-button {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.36);
  border-radius: 8px;
  background: rgba(5, 9, 12, 0.72);
  color: #f5f7f9;
  font-weight: 900;
  text-decoration: none;
}

.portal-imprint-button:hover,
.portal-imprint-button:focus-visible {
  border-color: var(--portal-accent);
  color: #fff;
}

.portal-payment-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.portal-payment-actions form {
  margin: 0;
}

.portal-credit-buy.paypal {
  background: #ffc439;
  color: #111820;
}

.portal-credit-buy.paypal:hover,
.portal-credit-buy.paypal:focus-visible {
  background: #f2b600;
  color: #050709;
}

.portal-shop-admin-grid,
.portal-shop-grid {
  display: grid;
  gap: 14px;
}

.portal-shop-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portal-shop-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.portal-shop-category {
  display: grid;
  gap: 14px;
}

.portal-shop-page,
.portal-shop-admin {
  display: grid;
  gap: 18px;
}

.portal-shop-item {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.18);
  border-radius: 8px;
  background: rgba(9, 14, 18, 0.82);
}

.portal-shop-item.highlight {
  border-color: rgba(var(--portal-accent-rgb), 0.52);
}

.portal-shop-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.portal-shop-item h3,
.portal-shop-item p {
  margin: 0;
}

.portal-shop-item em {
  color: #b9c3cc;
  font-style: normal;
  font-weight: 700;
}

.portal-shop-form textarea,
.portal-shop-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.24);
  border-radius: 8px;
  background: rgba(3, 7, 9, 0.7);
  color: #fff;
  font: inherit;
}

.portal-shop-form textarea {
  resize: vertical;
}

@media (max-width: 640px) {
  .portal-section-head {
    gap: 9px;
  }

  .portal-section-head .portal-dashboard-pill {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 13px;
    border-radius: 12px;
  }

  .portal-section-head .portal-dashboard-pill span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-section-head .portal-open-mini,
  .portal-section-head .portal-processing-mini {
    width: fit-content;
    max-width: 100%;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
  }

  .portal-section-head .portal-processing-mini {
    white-space: normal;
    line-height: 1.15;
  }

  .portal-section-head .portal-processing-mini strong {
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .portal-section-head .portal-dashboard-pill {
    min-height: 44px;
    gap: 8px;
    padding: 0 11px;
    font-size: 0.84rem;
  }

  .portal-section-head .portal-dashboard-pill .portal-pill-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .portal-section-head .portal-open-mini,
  .portal-section-head .portal-processing-mini {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.74rem;
  }

  .portal-section-head .portal-processing-mini strong {
    font-size: 0.9rem;
  }
}

.portal-upload-icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  border: 1px solid rgba(255, 193, 7, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  color: #d7e0e8;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  box-shadow: 0 0 22px rgba(255, 193, 7, 0.1);
  pointer-events: none;
}

.portal-upload-text-mobile {
  display: none;
}

@media (max-width: 640px) {
  .portal-upload-drop {
    min-height: 126px;
    gap: 7px;
    padding: 16px 14px;
    border-radius: 10px;
  }

  .portal-upload-icon {
    width: 42px;
    height: 42px;
    padding: 10px;
  }

  .portal-upload-drop > strong {
    font-size: 0.95rem;
    line-height: 1.1;
  }

  .portal-upload-drop > small,
  .portal-upload-text-full {
    display: none;
  }

  .portal-upload-text-mobile {
    display: inline;
  }

  .portal-upload-drop > em {
    min-height: 30px;
    max-width: 100%;
    padding: 0 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 420px) {
  .portal-upload-drop {
    min-height: 112px;
    gap: 6px;
    padding: 13px 12px;
  }

  .portal-upload-icon {
    width: 38px;
    height: 38px;
    padding: 9px;
  }

  .portal-upload-drop > strong {
    font-size: 0.88rem;
  }

  .portal-upload-drop > em {
    min-height: 28px;
    font-size: 0.76rem;
  }
}

.portal-summary-title .portal-summary-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-summary-title .portal-summary-icon {
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.28), rgba(var(--portal-accent-rgb), 0.15)),
    rgba(255, 255, 255, 0.06);
  color: #ffd16b;
  border: 1px solid rgba(255, 193, 7, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 18px rgba(255, 193, 7, 0.08);
}

@media (max-width: 420px) {
  .portal-summary-title .portal-summary-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 9px;
  }

  .portal-summary-title .portal-summary-icon svg {
    width: 19px;
    height: 19px;
  }
}

.portal-update-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 760px);
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(35, 240, 161, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(35, 240, 161, 0.13), rgba(var(--portal-accent-rgb), 0.07) 42%, rgba(5, 10, 12, 0.82)),
    rgba(5, 10, 12, 0.78);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.portal-update-dot {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(35, 240, 161, 0.36);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(35, 240, 161, 0.28) 0 5px, transparent 5.5px),
    rgba(35, 240, 161, 0.08);
  box-shadow: 0 0 22px rgba(35, 240, 161, 0.16);
}

.portal-update-dot::before,
.portal-update-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #23f0a1;
  border-radius: 999px;
}

.portal-update-dot::before {
  top: 8px;
  width: 2px;
  height: 12px;
}

.portal-update-dot::after {
  top: 18px;
  width: 10px;
  height: 2px;
  box-shadow: -4px -4px 0 -1px #23f0a1, 4px -4px 0 -1px #23f0a1;
}

.portal-update-notice div {
  min-width: 0;
}

.portal-update-notice p {
  margin: 0 0 4px;
  color: #23f0a1;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.portal-update-notice strong,
.portal-update-version-card h3,
.portal-changelog-entry h3 {
  display: block;
  min-width: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.portal-update-notice .portal-icon-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
}

.portal-update-notice ul,
.portal-changelog-entry ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: #cfd8e3;
  font-weight: 800;
}

@media (max-width: 640px) {
  .portal-update-notice {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    width: 100%;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(35, 240, 161, 0.1), rgba(5, 10, 12, 0.9));
  }

  .portal-update-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: #23f0a1;
    box-shadow: 0 0 12px rgba(35, 240, 161, 0.5);
  }

  .portal-update-dot::before,
  .portal-update-dot::after {
    display: none;
  }

  .portal-update-notice p {
    margin-bottom: 3px;
    font-size: 0.66rem;
    line-height: 1.05;
  }

  .portal-update-notice strong {
    font-size: 0.88rem;
    line-height: 1.12;
  }

  .portal-update-notice .portal-icon-btn {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    width: auto;
    min-width: 72px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 8px;
  }
}

.portal-update-version-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.portal-update-version-card p {
  margin: 6px 0 0;
  color: #aeb8c3;
  font-weight: 800;
}

.portal-changelog-list {
  display: grid;
  gap: 14px;
}

.portal-changelog-entry h3 span {
  color: #aeb8c3;
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .portal-update-version-card {
    align-items: stretch;
    flex-direction: column;
  }
}

.portal-update-install-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-color: rgba(var(--portal-accent-rgb), 0.24);
}

.portal-update-install-card h3 {
  margin: 0;
  color: #fff;
}

.portal-update-install-card p {
  margin: 8px 0 0;
  color: #aeb8c3;
  font-weight: 800;
}

.portal-update-install-card ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: #cfd8e3;
  font-weight: 800;
}

@media (max-width: 640px) {
  .portal-update-install-card {
    flex-direction: column;
  }
}


.portal-update-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-update-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.26);
  border-radius: 12px;
  background: rgba(7, 10, 12, 0.98);
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
}

.portal-update-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.portal-update-dialog article {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.portal-update-dialog h3 {
  margin: 0;
  color: #fff;
}

.portal-update-dialog h3 span {
  color: #aeb8c3;
  font-size: 0.86rem;
}

.portal-update-dialog ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #cfd8e3;
  font-weight: 800;
}

.portal-update-dialog form {
  display: flex;
  justify-content: flex-end;
}


.portal-rollout-release-card,
.portal-rollout-target-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.portal-rollout-release-card h3,
.portal-rollout-target-card h3 {
  margin: 0;
  color: #fff;
}

.portal-rollout-release-card p,
.portal-rollout-target-card p,
.portal-rollout-target-card small {
  display: block;
  margin: 8px 0 0;
  color: #aeb8c3;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.portal-rollout-form {
  grid-template-columns: minmax(150px, 0.8fr) minmax(170px, 0.9fr) minmax(260px, 1.6fr) auto;
}

.portal-rollout-targets {
  display: grid;
  gap: 14px;
}

@media (max-width: 760px) {
  .portal-rollout-release-card,
  .portal-rollout-target-card,
  .portal-rollout-form {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}



.portal-pwa-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 24px 24px, rgba(var(--portal-accent-rgb), 0.18), transparent 46px),
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.11), rgba(8, 12, 15, 0.84)),
    rgba(8, 12, 15, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 42px rgba(0, 0, 0, 0.2);
}

.portal-pwa-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(var(--portal-accent-rgb), 0.18);
  color: var(--portal-accent);
}

.portal-pwa-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.portal-pwa-card > div:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.portal-pwa-card .eyebrow {
  margin: 0;
}

.portal-pwa-card strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.15;
}

.portal-pwa-card small {
  color: #aeb8c3;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.35;
}

.portal-pwa-card.is-active .portal-pwa-icon {
  color: var(--portal-success);
  background: rgba(32, 242, 166, 0.12);
}

.portal-pwa-card.is-disabled {
  opacity: 0.72;
}

.portal-pwa-card .portal-icon-btn {
  min-height: 34px;
  white-space: nowrap;
}

.portal-pwa-settings-card {
  width: min(760px, 100%);
  margin: 0 0 16px;
  border-color: rgba(var(--portal-accent-rgb), 0.18);
  background:
    linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.08), transparent 58%),
    rgba(7, 11, 14, 0.66);
}

.portal-pwa-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .portal-pwa-card {
    align-items: stretch;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px 12px;
    padding: 13px;
  }

  .portal-pwa-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .portal-pwa-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .portal-pwa-card .portal-icon-btn,
  .portal-pwa-card .portal-create-btn {
    justify-content: center;
    min-height: 38px;
  }
}


.portal-rollout-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-rollout-target-main {
  flex: 1 1 auto;
  min-width: 0;
}

.portal-rollout-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.portal-rollout-checklist div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.portal-rollout-checklist dt {
  color: #7f8994;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-rollout-checklist dd {
  margin: 5px 0 0;
  color: #fff;
  font-weight: 900;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .portal-rollout-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .portal-rollout-checklist {
    grid-template-columns: 1fr;
  }

  .portal-rollout-actions {
    justify-content: stretch;
  }

  .portal-rollout-actions form,
  .portal-rollout-actions button {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .portal-settings-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 8px;
    padding: 7px;
    overflow: visible;
    border-radius: 12px;
    border-color: rgba(var(--portal-accent-rgb), 0.18);
    background:
      linear-gradient(135deg, rgba(var(--portal-accent-rgb), 0.08), rgba(5, 10, 12, 0.78)),
      rgba(5, 10, 12, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  .portal-settings-tabs a {
    flex: none;
    min-width: 0;
    min-height: 33px;
    padding: 7px 8px;
    border-radius: 8px;
    border-color: rgba(var(--portal-accent-rgb), 0.18);
    background: rgba(4, 9, 12, 0.48);
    color: #b9c1ca;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1.12;
    text-align: center;
    white-space: normal;
    box-shadow: none;
  }

  .portal-settings-tabs a.active,
  .portal-settings-tabs a:hover {
    border-color: rgba(var(--portal-accent-rgb), 0.36);
    background: rgba(var(--portal-accent-rgb), 0.16);
    color: #fff;
  }

  .portal-stripe-status-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .portal-stripe-status-card .portal-status-badge {
    min-width: 66px;
    max-width: none;
    padding: 0 12px;
    overflow-wrap: normal;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .portal-settings-tabs a {
    font-size: 0.66rem;
    padding-inline: 6px;
  }
}

@media (max-width: 640px) {
  .portal-branding-file-picker {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 78px;
    gap: 11px;
    padding: 12px;
    border-radius: 10px;
  }

  .portal-branding-file-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .portal-branding-file-icon svg {
    width: 21px;
    height: 21px;
  }

  .portal-branding-file-copy strong {
    font-size: 0.88rem;
  }

  .portal-branding-file-copy small {
    display: none;
  }

  .portal-branding-file-copy em {
    max-width: 100%;
    min-height: 26px;
    margin-top: 3px;
    padding: 0 9px;
    font-size: 0.72rem;
  }
}

.portal-registration-settings-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.portal-registration-settings-form > label:not(.portal-check-line) {
  min-width: 0;
}

.portal-registration-settings-form .portal-check-line {
  width: 100%;
  min-width: 0;
  align-items: center;
  white-space: normal;
}

.portal-registration-settings-form .portal-check-line span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.portal-registration-settings-form .portal-faq-admin-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .portal-stripe-status-card {
    align-items: flex-start;
  }

  .portal-stripe-status-card .portal-status-badge {
    max-width: 48%;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  .portal-registration-settings-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .portal-registration-settings-form .portal-check-line {
    min-height: 46px;
    padding: 10px 12px;
  }

  .portal-registration-settings-form .portal-check-line input {
    flex: 0 0 auto;
  }

  .portal-registration-settings-form .portal-faq-admin-actions {
    justify-content: stretch;
  }

  .portal-registration-settings-form .portal-create-btn {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }
}

@media (max-width: 640px) {
  .portal-price-admin {
    gap: 12px;
    margin-top: 12px;
  }

  .portal-price-admin-head,
  .portal-price-admin-card {
    padding: 14px;
    border-radius: 12px;
  }

  .portal-price-admin-card > h3 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .portal-price-admin-form.compact,
  .portal-price-admin-form.options,
  .portal-price-admin-option {
    grid-template-columns: 1fr;
  }

  .portal-price-admin-form.compact .portal-create-btn,
  .portal-sort-save-form .portal-icon-btn,
  .portal-price-admin-options-head .portal-icon-btn,
  .portal-price-delete-form .portal-icon-btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .portal-sort-save-form {
    justify-content: stretch;
  }

  .portal-price-admin-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 10px;
    margin: -14px;
    padding: 14px;
  }

  .portal-price-admin-title div {
    min-width: 0;
  }

  .portal-price-admin-title .eyebrow,
  .portal-price-admin-title h3 {
    overflow-wrap: anywhere;
  }

  .portal-price-admin-title h3 {
    font-size: 1.02rem;
    line-height: 1.12;
  }

  .portal-price-admin-title span,
  .portal-price-admin-title strong {
    margin-left: 0;
    font-size: 0.82rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .portal-price-admin-title span {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin-right: 46px;
  }

  .portal-price-admin-title strong {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin-top: 22px;
    margin-right: 46px;
  }

  .portal-price-admin-title .portal-drag-handle {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    margin-top: 0;
  }

  .portal-price-admin-title::after {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    margin-top: 4px;
  }

  .portal-price-admin-body {
    padding-top: 14px;
  }

  .portal-price-admin-options-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .portal-price-admin-option {
    padding: 12px;
  }

  .portal-price-admin-option .portal-drag-handle {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .portal-price-admin-title {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .portal-price-admin-title span,
  .portal-price-admin-title strong {
    font-size: 0.78rem;
    margin-right: 42px;
  }

  .portal-price-admin-title h3 {
    max-width: 58%;
  }

  .portal-price-admin-title .portal-drag-handle {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

@media (max-width: 760px) {
  .portal-user-pricing {
    width: 100%;
    max-width: 100%;
  }

  .portal-user-pricing > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
  }

  .portal-user-pricing > summary span {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.18;
  }

  .portal-user-pricing > summary b {
    max-width: 150px;
    text-align: center;
    white-space: normal;
    line-height: 1.12;
  }

  .portal-user-pricing-form {
    min-width: 0;
    padding: 0 12px 12px;
  }

  .portal-user-pricing-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .portal-user-pricing-head label,
  .portal-user-pricing-head p {
    min-width: 0;
    max-width: 100%;
  }

  .portal-user-pricing-head p {
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .portal-user-pricing-grid,
  .portal-user-pricing-group,
  .portal-user-pricing-row {
    min-width: 0;
    max-width: 100%;
  }

  .portal-user-pricing-group > summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .portal-user-pricing-group > summary span,
  .portal-user-pricing-group > summary strong,
  .portal-user-pricing-group > summary small {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .portal-user-pricing-group > summary em {
    justify-self: start;
    white-space: normal;
    line-height: 1.1;
  }

  .portal-user-pricing-row {
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: stretch;
  }

  .portal-user-pricing-row small {
    justify-self: start;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .portal-user-pricing-row input {
    min-width: 0;
  }

  .portal-user-pricing-form .portal-faq-admin-actions {
    justify-content: stretch;
  }

  .portal-user-pricing-form .portal-create-btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .portal-user-pricing > summary {
    grid-template-columns: 1fr;
  }

  .portal-user-pricing > summary b {
    justify-self: start;
    max-width: 100%;
  }
}

.portal-credit-custom-card {
  max-width: 760px;
}

.portal-credit-custom-input {
  display: grid;
  gap: 7px;
  margin-top: 4px;
  color: #dfe7ee;
  font-size: 0.82rem;
  font-weight: 950;
}

.portal-credit-custom-input input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(var(--portal-accent-rgb), 0.32);
  border-radius: 8px;
  background: rgba(5, 8, 10, 0.62);
  color: #fff;
  font: inherit;
  font-weight: 950;
  padding: 0 12px;
}

.portal-credit-custom-form {
  grid-template-columns: minmax(160px, 0.8fr) repeat(4, minmax(120px, 1fr)) auto;
  align-items: end;
}

@media (max-width: 900px) {
  .portal-credit-custom-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-credit-custom-form .portal-create-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .portal-credit-custom-form {
    grid-template-columns: 1fr;
  }

  .portal-credit-custom-form .portal-create-btn {
    width: 100%;
  }
}

.portal-vehicle-data-panel {
  display: grid;
  gap: 12px;
}

.portal-vehicle-data-status {
  margin: -2px 0 0;
  color: #9aa7b4;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.portal-vehicle-data-status[data-mode="success"] {
  color: #23f0a1;
}

.portal-vehicle-data-status[data-mode="loading"] {
  color: #8ec5ff;
}

.portal-vehicle-data-status[data-mode="error"] {
  color: #ffbd66;
}

.portal-performance-card {
  display: grid;
  gap: 26px;
  padding: 28px;
  border-color: rgba(35, 240, 161, 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 14% 12%, rgba(35, 240, 161, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(9, 18, 24, 0.94), rgba(8, 12, 18, 0.96));
}

.portal-performance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.portal-performance-title {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.portal-performance-title h3 {
  margin: 0;
  color: #f4f7fb;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-performance-title p {
  margin: 8px 0 0;
  color: #9aa7b4;
  font-size: 0.92rem;
  font-weight: 750;
}

.portal-performance-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(35, 240, 161, 0.26);
  border-radius: 10px;
  background: rgba(35, 240, 161, 0.08);
  color: #23f0a1;
  font-weight: 950;
  white-space: nowrap;
}

.portal-performance-chip i,
.portal-performance-oem span,
.portal-performance-metric-head span {
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.portal-performance-chip i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(35, 240, 161, 0.12);
}

.portal-performance-chip svg,
.portal-performance-oem svg,
.portal-performance-metric-head svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-performance-oem {
  min-width: 214px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(9, 14, 20, 0.76);
}

.portal-performance-oem span {
  grid-row: span 2;
  color: #8b98a7;
}

.portal-performance-oem strong {
  color: #f4f7fb;
  font-size: 0.96rem;
  font-weight: 950;
}

.portal-performance-oem small,
.portal-performance-value small,
.portal-performance-minmax small {
  color: #9aa7b4;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.portal-performance-mode {
  color: #f4f7fb;
  font-size: 1rem;
  font-weight: 950;
}

.portal-performance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-performance-metric {
  display: grid;
  gap: 22px;
  min-width: 0;
  padding: 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    radial-gradient(circle at 52% 38%, rgba(35, 240, 161, 0.12), transparent 26%),
    rgba(8, 14, 20, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.portal-performance-metric.torque {
  background:
    radial-gradient(circle at 52% 38%, rgba(255, 191, 25, 0.12), transparent 26%),
    rgba(8, 14, 20, 0.78);
}

.portal-performance-metric-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-performance-metric-head span {
  width: 28px;
  height: 28px;
  color: #23f0a1;
}

.portal-performance-metric.torque .portal-performance-metric-head span {
  color: #ffbf19;
}

.portal-performance-metric-head h4 {
  margin: 0;
  color: #f4f7fb;
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portal-performance-metric-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.portal-performance-value {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.portal-performance-value strong,
.portal-performance-value b {
  color: #f4f7fb;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.portal-performance-value.stage {
  text-align: right;
}

.portal-performance-value.stage strong,
.portal-performance-value.stage b {
  color: #23f0a1;
}

.portal-performance-metric.torque .portal-performance-value.stage strong,
.portal-performance-metric.torque .portal-performance-value.stage b {
  color: #ffbf19;
}

.portal-performance-ring {
  --gain: 0%;
  width: 122px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(8, 14, 20, 0.95) 56%, transparent 58%),
    conic-gradient(#23f0a1 var(--gain), rgba(35, 240, 161, 0.14) 0);
  box-shadow: inset 0 0 0 8px rgba(35, 240, 161, 0.06);
}

.portal-performance-metric.torque .portal-performance-ring {
  background:
    radial-gradient(circle, rgba(8, 14, 20, 0.95) 56%, transparent 58%),
    conic-gradient(#ffbf19 var(--gain), rgba(255, 191, 25, 0.14) 0);
  box-shadow: inset 0 0 0 8px rgba(255, 191, 25, 0.06);
}

.portal-performance-ring strong {
  grid-area: 1 / 1;
  color: #23f0a1;
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-5px);
}

.portal-performance-metric.torque .portal-performance-ring strong {
  color: #ffbf19;
}

.portal-performance-ring small {
  grid-area: 1 / 1;
  margin-top: 4px;
  color: #dce5ed;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  transform: translateY(22px);
}

.portal-performance-minmax {
  display: flex;
  justify-content: center;
  gap: min(70px, 18%);
}

.portal-performance-minmax span {
  display: grid;
  gap: 4px;
  text-align: center;
}

.portal-performance-minmax b {
  color: #23f0a1;
  font-size: 0.92rem;
  font-weight: 950;
}

.portal-performance-metric.torque .portal-performance-minmax b {
  color: #ffbf19;
}

.portal-tuning-range-track {
  position: relative;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 25% 100%,
    rgba(5, 8, 10, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.portal-tuning-range-fill,
.portal-tuning-range-marker {
  position: absolute;
  top: 4px;
  bottom: 4px;
  transition: left 180ms ease, width 180ms ease;
}

.portal-tuning-range-fill {
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(35, 240, 161, 0.55), rgba(35, 240, 161, 0.92));
  box-shadow: 0 0 14px rgba(35, 240, 161, 0.18);
}

.portal-tuning-range-fill.torque {
  background: linear-gradient(90deg, rgba(255, 191, 25, 0.46), rgba(255, 191, 25, 0.86));
  box-shadow: 0 0 14px rgba(255, 191, 25, 0.14);
}

.portal-tuning-range-marker {
  width: 12px;
  z-index: 2;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(8, 14, 20, 0.9);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
}

.portal-tuning-target-disclaimer {
  margin: 0;
  color: #9aa7b4;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .portal-performance-head,
  .portal-performance-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-performance-oem {
    width: 100%;
  }

  .portal-performance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .portal-performance-card {
    padding: 18px;
    gap: 18px;
  }

  .portal-performance-metric {
    padding: 18px 14px;
  }

  .portal-performance-metric-body {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .portal-performance-value.stage {
    text-align: left;
  }

  .portal-performance-ring {
    width: 108px;
  }
}

.portal-performance-toggle {
  display: none;
}

@media (max-width: 640px) {
  .portal-performance-card {
    gap: 14px;
  }

  .portal-performance-toggle {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(35, 240, 161, 0.24);
    border-radius: 10px;
    background: rgba(35, 240, 161, 0.08);
    color: #23f0a1;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 950;
    padding: 0 13px;
  }

  .portal-performance-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
  }

  .portal-performance-card[data-mobile-expanded="true"] .portal-performance-toggle svg {
    transform: rotate(180deg);
  }

  .portal-performance-card[data-mobile-expanded="false"] .portal-performance-collapsible {
    display: none;
  }

  .portal-performance-card[data-mobile-expanded="true"] .portal-performance-collapsible {
    display: grid;
    gap: 18px;
  }
}