:root {
  color-scheme: dark;
  --bg: #050b16;
  --bg-soft: #071120;
  --surface: rgba(255, 255, 255, .075);
  --surface-strong: rgba(255, 255, 255, .112);
  --surface-light: rgba(255, 255, 255, .15);
  --border: rgba(255, 255, 255, .12);
  --border-strong: rgba(255, 255, 255, .20);
  --text: #f4f8ff;
  --muted: #aebbd0;
  --muted-2: #7f8ca4;
  --primary: #34d3ff;
  --primary-dark: #0891b2;
  --accent: #77f2c8;
  --accent-2: #8ca7ff;
  --success: #22c7a9;
  --warning: #ffcb6b;
  --danger: #ff6c7a;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, .22);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --container: 1180px;
  --header-height: 86px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f9ff;
  --bg-soft: #edf4ff;
  --surface: rgba(255, 255, 255, .74);
  --surface-strong: rgba(255, 255, 255, .88);
  --surface-light: rgba(255, 255, 255, .96);
  --border: rgba(15, 23, 42, .10);
  --border-strong: rgba(15, 23, 42, .16);
  --text: #0b1220;
  --muted: #526076;
  --muted-2: #728197;
  --shadow: 0 24px 70px rgba(40, 58, 92, .15);
  --shadow-soft: 0 16px 40px rgba(40, 58, 92, .12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(52, 211, 255, .19), transparent 34rem),
    radial-gradient(circle at 85% 18%, rgba(119, 242, 200, .12), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 62%, var(--bg));
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::selection { background: rgba(52, 211, 255, .28); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

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

.background-orb,
.background-grid {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -2;
}

.background-orb {
  width: 38rem;
  height: 38rem;
  border-radius: 999px;
  filter: blur(72px);
  opacity: .42;
}

.orb-one { top: -14rem; left: -10rem; background: rgba(52, 211, 255, .24); }
.orb-two { right: -13rem; top: 16rem; background: rgba(140, 167, 255, .18); }

.background-grid {
  inset: 0;
  z-index: -3;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.container.narrow {
  max-width: 880px;
}

.section-xl { padding: clamp(96px, 12vw, 156px) 0 clamp(68px, 9vw, 110px); }
.section { padding: clamp(62px, 8vw, 96px) 0; }
.tight-top { padding-top: clamp(22px, 3vw, 38px); }
.muted-section {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border-block: 1px solid rgba(255,255,255,.055);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(5, 11, 22, .70);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

:root[data-theme="light"] .site-header { background: rgba(246, 249, 255, .80); }

.nav-shell {
  width: min(1380px, calc(100% - 36px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(52,211,255,.28), rgba(119,242,200,.14));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.brand-logo img { width: 48px; height: 48px; object-fit: contain; }

.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-size: 1.24rem; font-weight: 1000; letter-spacing: -.055em; }
.brand-text small { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 850;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255,255,255,.10);
}

.site-nav a:hover { transform: translateY(-1px); }

.theme-toggle,
.nav-toggle {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,.07);
  cursor: pointer;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  padding: 12px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: currentColor;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}

.hero-copy,
.page-hero .narrow {
  max-width: 860px;
}

.status-pill,
.eyebrow,
.pill,
.product-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.065);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.status-pill { gap: 8px; padding: 8px 13px; text-transform: none; letter-spacing: 0; }
.status-pill span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 7px rgba(34,199,169,.13);
}

.eyebrow { padding: 7px 11px; margin-bottom: 18px; color: var(--primary); }
.pill,
.product-chip { padding: 7px 10px; color: #cbf6ff; background: rgba(52,211,255,.11); }
.product-chip { color: var(--muted); background: rgba(255,255,255,.06); }

h1,
h2,
h3,
h4,
p { margin-top: 0; }

h1,
h2,
h3,
h4 {
  line-height: 1.05;
  letter-spacing: -.05em;
}

h1 {
  max-width: 980px;
  margin: 18px 0 24px;
  font-size: clamp(3.05rem, 7.2vw, 6.4rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.22rem, 2vw, 1.52rem);
}

h4 { margin-bottom: 8px; font-size: 1.08rem; }

.lead {
  max-width: 740px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.07rem, 1.8vw, 1.28rem);
  line-height: 1.78;
}

p { color: var(--muted); }

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover { transform: translateY(-1px); color: var(--text); }
.button-primary {
  color: #04111c;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 38px rgba(52,211,255,.20);
}
.button-primary:hover { box-shadow: 0 22px 48px rgba(52,211,255,.28); color: #031018; }
.button-secondary {
  color: var(--text);
  background: rgba(255,255,255,.075);
  border-color: var(--border-strong);
}
.button-secondary:hover { background: rgba(255,255,255,.12); }
.button-full,
.button.full { width: 100%; }

.text-link,
.card-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--primary);
  font-weight: 950;
}

.card-link::after,
.text-link::after { content: "→"; margin-left: 8px; transition: transform .18s ease; }
.card-link:hover::after,
.text-link:hover::after { transform: translateX(3px); }

.glass,
.card,
.glass-strong {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.glass-strong {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, var(--surface-strong), rgba(255,255,255,.065));
  box-shadow: var(--shadow);
}

.card {
  padding: clamp(24px, 3vw, 34px);
}

.card > *:last-child,
.glass-strong > *:last-child,
.glass > *:last-child { margin-bottom: 0; }
.card p { margin-bottom: 20px; line-height: 1.7; }

.hero-panel,
.portal-card {
  padding: clamp(26px, 4vw, 38px);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 900;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(119,242,200,.14);
}

.service-stack { display: grid; gap: 13px; }
.service-stack.compact { gap: 12px; }
.service-line {
  display: grid;
  gap: 4px;
  padding: 16px 17px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.055);
}
.service-line strong { color: var(--text); }
.service-line span { color: var(--muted); font-size: .95rem; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.trust-row span {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
  color: var(--muted);
  font-weight: 800;
  font-size: .9rem;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.stat-card {
  padding: 25px 28px;
  border-radius: var(--radius-xl);
}
.stat-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.15rem;
  color: var(--text);
}
.stat-card span { color: var(--muted); }

.section-heading {
  margin-bottom: 28px;
}
.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-heading h2 { margin-bottom: 0; }

.service-card,
.product-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
}
.service-card::before,
.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: .72;
}
.service-card .pill,
.product-card .pill { margin-top: 6px; }
.service-card h3,
.product-card h3 { margin-top: 10px; }
.service-card p,
.product-card p { flex: 1; }
.product-card .button,
.service-card .button { margin-top: auto; }
.product-card .card-link,
.service-card .card-link { margin-top: auto; }

.featured-card {
  border-color: rgba(52,211,255,.45);
  background: linear-gradient(180deg, rgba(52,211,255,.14), var(--surface));
  transform: translateY(-6px);
}

.product-price,
.product-price-large {
  margin: 4px 0 12px;
  color: var(--text);
  font-weight: 1000;
  letter-spacing: -.04em;
}
.product-price { font-size: clamp(1.45rem, 3vw, 2.15rem); }
.product-price-large { font-size: clamp(1.65rem, 3.8vw, 2.45rem); }
.product-note { color: var(--muted-2); font-weight: 800; font-size: .92rem; }
.product-features,
.service-features,
.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 24px;
  list-style: none;
}
.product-features li,
.service-features li,
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
}
.product-features li::before,
.service-features li::before,
.check-list li::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 1000;
}
.product-card-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
}
.shop-toolbar p { margin: 0; }
.shop-tags { display: flex; flex-wrap: wrap; gap: 9px; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(27px, 5vw, 48px);
}
.cta-band p { max-width: 760px; margin: 0; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: process;
}
.process-card,
.timeline-card {
  position: relative;
  min-height: 230px;
  padding: 26px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.process-card::before,
.timeline-card::before {
  counter-increment: process;
  content: counter(process, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(255,255,255,.10);
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 1000;
  line-height: .85;
  letter-spacing: -.08em;
}
.process-card .step-label,
.timeline-card span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(52,211,255,.24), rgba(119,242,200,.12));
  border: 1px solid var(--border-strong);
  color: var(--primary);
  font-weight: 1000;
}
.process-card h3,
.timeline-card h3 { position: relative; margin-bottom: 10px; }
.process-card p,
.timeline-card p { position: relative; margin: 0; }
.timeline-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.contact-layout,
.portal-auth-layout,
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
  gap: 24px;
  align-items: start;
}
.portal-layout { grid-template-columns: minmax(320px, 500px) minmax(0, 1fr); }

.contact-form,
.portal-login,
.portal-dashboard,
.contact-aside,
.portal-side,
.legal {
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-xl);
}

.contact-form,
.portal-login-form,
.inquiry-form {
  display: grid;
  gap: 18px;
}

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

.contact-form label,
.portal-login label,
.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 850;
}
.contact-form label > span,
.portal-login label > span,
.inquiry-form label > span { color: var(--muted); font-size: .95rem; }

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255,255,255,.075);
  outline: none;
}
textarea { min-height: 160px; resize: vertical; }
select { appearance: none; }
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(52,211,255,.58);
  box-shadow: 0 0 0 4px rgba(52,211,255,.13);
}

.checkbox-line,
.checkbox {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  gap: 12px !important;
  color: var(--muted) !important;
  font-weight: 650 !important;
}
.checkbox-line input,
.checkbox input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  margin-top: 4px;
}

.form-status {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.form-status:not(:empty) {
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.055);
}
.form-status.success { border-color: rgba(34,199,169,.35); color: #b7fff2; background: rgba(34,199,169,.11); }
.form-status.error { border-color: rgba(255,108,122,.35); color: #ffc0c8; background: rgba(255,108,122,.11); }

.contact-aside,
.portal-side { display: grid; gap: 18px; }
.mini-card { padding: 20px; border-radius: var(--radius-lg); }
.contact-points { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-points a { padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }

.portal-login { display: grid; gap: 18px; }
.portal-login .portal-login-form { grid-template-columns: 1fr; }
.portal-login .button { width: 100%; }
.portal-benefit-list { display: grid; gap: 14px; margin-top: 8px; }
.portal-benefit {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.045);
}
.portal-benefit strong { color: var(--text); }
.portal-benefit span { color: var(--muted); }
.hidden { display: none !important; }
.portal-dashboard { min-width: 0; }
.portal-dashboard-header,
.portal-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.portal-dashboard-header p,
.portal-dashboard-head p { margin: 6px 0 0; color: var(--muted); }
.portal-section,
.portal-heading { margin-top: 28px; }
.portal-list,
.portal-timeline { display: grid; gap: 14px; }
.order-card,
.update-card,
.empty-state,
.portal-order-card,
.timeline-item {
  padding: 18px;
  border-radius: var(--radius-lg);
}
.empty-state { border: 1px dashed var(--border); color: var(--muted); }
.order-topline,
.order-meta,
.portal-card-head,
.portal-order-meta,
.progress-row,
.timeline-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted-2);
  font-size: .92rem;
  font-weight: 850;
}
.progress-line,
.progress-track {
  overflow: hidden;
  height: 10px;
  margin: 14px 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}
.progress-line span,
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.image-card { overflow: hidden; padding: 12px; }
.image-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius-xl) - 12px); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }

.legal { max-width: 940px; margin-inline: auto; display: grid; gap: 9px; }
.legal h2 { margin: 22px 0 2px; font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0; }

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5,11,22,.58);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 58px 0 28px;
}
:root[data-theme="light"] .site-footer { background: rgba(246,249,255,.72); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 42px;
}
.footer-brand { display: inline-flex; margin-bottom: 10px; font-size: 1.35rem; font-weight: 1000; letter-spacing: -.05em; }
.site-footer h3 { margin: 0 0 8px; font-size: 1rem; }
.site-footer p,
.site-footer a,
.footer-bottom { color: var(--muted); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: .92rem;
}

.center { text-align: center; }
.center-actions { justify-content: center; }

@media (max-width: 1120px) {
  .nav-shell { grid-template-columns: auto auto auto; }
  .brand-text small { display: none; }
  .site-nav a { padding: 0 8px; font-size: .89rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel,
  .portal-card { max-width: 720px; }
  .grid-4,
  .process-grid,
  .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  :root { --header-height: 76px; }
  .container { width: min(var(--container), calc(100% - 28px)); }
  .nav-shell { width: min(100% - 22px, 1320px); grid-template-columns: auto 1fr auto; }
  .theme-toggle { display: none; }
  .nav-toggle { display: block; justify-self: end; }
  .site-nav {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    left: 11px;
    right: 11px;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    border-radius: 28px;
    padding: 10px;
    background: rgba(5, 11, 22, .94);
    box-shadow: var(--shadow);
  }
  :root[data-theme="light"] .site-nav { background: rgba(246,249,255,.96); }
  .site-nav.is-open,
  .site-nav.open { display: grid; }
  .site-nav a { min-height: 50px; }
  h1 { font-size: clamp(2.55rem, 13vw, 4.4rem); }
  .section-heading.split,
  .cta-band,
  .portal-dashboard-header,
  .portal-dashboard-head { align-items: stretch; flex-direction: column; }
  .grid-2,
  .grid-3,
  .grid-4,
  .stats-grid,
  .contact-layout,
  .portal-auth-layout,
  .portal-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .featured-card { transform: none; }
  .form-grid,
  .form-grid.two { grid-template-columns: 1fr; }
  .shop-toolbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .section-xl { padding-top: 86px; }
  .brand-logo { width: 48px; height: 48px; border-radius: 16px; }
  .brand-logo img { width: 42px; height: 42px; }
  .brand-text strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .hero-actions,
  .cta-actions { width: 100%; }
  .button { width: 100%; }
  .card,
  .glass,
  .glass-strong,
  .contact-form,
  .portal-login,
  .portal-dashboard,
  .contact-aside,
  .portal-side,
  .legal { border-radius: 26px; }
  .card,
  .contact-form,
  .portal-login,
  .portal-dashboard,
  .contact-aside,
  .portal-side,
  .legal { padding: 22px; }
  .process-grid,
  .timeline-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* Desktop-Feinschliff 2026-04-30: mobile Layout bleibt unverändert */
@media (min-width: 921px) {
  :root {
    --container: 1200px;
  }

  .site-header {
    z-index: 1000;
  }

  .section-xl {
    padding-top: clamp(92px, 7vw, 118px);
    padding-bottom: clamp(72px, 6vw, 94px);
  }

  .page-hero.section-xl {
    padding-top: 98px;
    padding-bottom: 76px;
  }

  .section {
    padding: 74px 0;
  }

  .section.tight-top {
    padding-top: 22px;
  }

  body[data-page="home"] .hero.section-xl {
    padding-top: 96px;
    padding-bottom: 42px;
  }

  body[data-page="home"] main > .section.tight-top {
    padding-top: 0;
    padding-bottom: 36px;
  }

  body[data-page="home"] main > .section:nth-of-type(3) {
    padding-top: 46px;
  }

  body[data-page="home"] main > .muted-section {
    padding-top: 70px;
  }

  h1 {
    max-width: 900px;
    font-size: clamp(4.25rem, 5.15vw, 5.75rem);
    line-height: .96;
    letter-spacing: -.075em;
  }

  h2 {
    line-height: 1.06;
  }

  p {
    max-width: 68ch;
  }

  .lead {
    max-width: 720px;
    margin-top: 22px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(350px, .72fr);
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
  }

  .hero-panel,
  .portal-card {
    max-width: 520px;
    margin-left: auto;
    padding: 30px;
  }

  .service-stack {
    gap: 16px;
  }

  .service-line {
    grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
    column-gap: 14px;
    align-items: baseline;
  }

  .service-line strong::after {
    content: ":";
    color: var(--muted-2);
    margin-left: 2px;
  }

  .grid {
    gap: 24px;
  }

  .stats-grid {
    gap: 22px;
  }

  .stat-card,
  .card.glass,
  .product-card,
  .service-card,
  .process-card,
  .timeline-card,
  .mini-card,
  .portal-benefit,
  .order-card,
  .update-card,
  .empty-state,
  .portal-order-card,
  .timeline-item {
    border-color: rgba(255,255,255,.16);
    background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.052));
    box-shadow: 0 20px 70px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.08);
  }

  :root[data-theme="light"] .stat-card,
  :root[data-theme="light"] .card.glass,
  :root[data-theme="light"] .product-card,
  :root[data-theme="light"] .service-card,
  :root[data-theme="light"] .process-card,
  :root[data-theme="light"] .timeline-card,
  :root[data-theme="light"] .mini-card,
  :root[data-theme="light"] .portal-benefit,
  :root[data-theme="light"] .order-card,
  :root[data-theme="light"] .update-card,
  :root[data-theme="light"] .empty-state,
  :root[data-theme="light"] .portal-order-card,
  :root[data-theme="light"] .timeline-item {
    background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
    border-color: rgba(19,32,54,.12);
  }

  .stat-card {
    display: grid;
    align-content: start;
    min-height: 118px;
    padding: 25px 28px;
    border-radius: 30px;
  }

  .stat-card strong {
    margin-bottom: 9px;
  }

  .service-card,
  .product-card {
    min-height: 360px;
    padding: 30px;
    border-radius: 32px;
  }

  body[data-page="home"] .service-card,
  body[data-page="home"] .product-card {
    min-height: 318px;
  }

  .service-card p,
  .product-card p {
    flex: 0 0 auto;
  }

  .product-features,
  .service-features {
    margin-top: 20px;
  }

  .product-card .button,
  .service-card .button,
  .button-full {
    width: 100%;
    min-height: 56px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .featured-card {
    transform: translateY(-8px);
    border-color: rgba(52,211,255,.50);
    box-shadow: 0 30px 85px rgba(12, 178, 255, .16), 0 22px 70px rgba(0,0,0,.25);
  }

  .shop-toolbar {
    margin-bottom: 26px;
    padding: 20px 22px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.045));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  }

  .shop-toolbar p {
    max-width: 720px;
  }

  .cta-band,
  .glass-strong.cta-band {
    overflow: hidden;
    border-radius: 36px;
    padding: 42px 46px;
    border-color: rgba(255,255,255,.18);
    background: radial-gradient(circle at 5% 0%, rgba(52,211,255,.18), transparent 32%), linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.052));
    box-shadow: 0 28px 90px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.09);
  }

  .cta-band .button {
    min-width: 220px;
    justify-content: center;
  }

  .process-grid,
  .timeline-grid {
    gap: 22px;
  }

  .process-card,
  .timeline-card {
    min-height: 210px;
    padding: 28px;
    border-radius: 32px;
  }

  .process-card::before,
  .timeline-card::before {
    content: "";
    display: none;
    counter-increment: none;
  }

  .process-card .step-label,
  .timeline-card span {
    width: auto;
    min-width: 54px;
    height: 38px;
    padding: 0 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: var(--text);
    background: linear-gradient(135deg, rgba(52,211,255,.34), rgba(129,140,248,.20));
    border-color: rgba(52,211,255,.28);
    font-size: .9rem;
  }

  .contact-layout,
  .portal-auth-layout,
  .portal-layout {
    gap: 30px;
  }

  .portal-layout {
    grid-template-columns: minmax(380px, 480px) minmax(360px, 1fr);
  }

  .contact-form,
  .portal-login,
  .portal-dashboard,
  .contact-aside,
  .portal-side,
  .legal {
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.052));
    box-shadow: 0 26px 90px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
  }

  .portal-login {
    min-height: 0;
  }

  .portal-side {
    align-content: start;
  }

  .portal-side > p {
    margin-top: 0;
  }

  .portal-benefit {
    border-radius: 22px;
  }

  .contact-form .button,
  .portal-login .button,
  .inquiry-form .button {
    min-height: 56px;
  }

  input,
  textarea,
  select {
    border-radius: 18px;
    background: rgba(255,255,255,.085);
  }
}

@media (min-width: 1320px) {
  .nav-shell {
    height: 74px;
  }

  .site-nav {
    min-height: 60px;
  }
}


/* Portal Directus Dashboard v2 */
.portal-hero {
  min-height: calc(100vh - 96px);
}

.portal-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .62fr);
  gap: 28px;
  align-items: start;
}

.portal-intro,
.portal-side,
.portal-dashboard {
  min-width: 0;
}

.portal-intro h1 {
  max-width: 820px;
}

.portal-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.portal-feature-grid article {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
}

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

.portal-feature-grid strong {
  color: var(--text);
  margin-bottom: 8px;
}

.portal-feature-grid span {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.portal-login-card {
  border-radius: 30px;
  padding: 30px;
}

.portal-login-card h2 {
  margin: 8px 0 10px;
}

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

.portal-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.portal-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
}

.portal-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.portal-form input:focus {
  border-color: rgba(125, 211, 252, .55);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, .12);
  background: rgba(255, 255, 255, .08);
}

.portal-form button:disabled {
  cursor: wait;
  opacity: .7;
}

.portal-status {
  min-height: 22px;
  margin: 0;
  font-size: .9rem;
}

.portal-status[data-mode="error"] {
  color: #fecaca;
}

.portal-status[data-mode="ok"] {
  color: #bbf7d0;
}

.portal-dashboard {
  grid-column: 1 / -1;
  display: grid;
  gap: 22px;
}

.portal-dashboard.hidden {
  display: none !important;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
}

.dashboard-header h1 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.dashboard-header p {
  margin: 0;
  color: var(--muted);
}

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

.summary-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.summary-card span,
.summary-card small {
  display: block;
  color: var(--muted);
}

.summary-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  color: var(--text);
}

.portal-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.portal-main-column,
.portal-aside-column,
.portal-services-stack {
  min-width: 0;
}

.portal-aside-column {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 104px;
}

.portal-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 16px;
}

.portal-section-title h2,
.portal-widget h3,
.portal-detail-card h4 {
  margin: 0;
}

.portal-services-stack {
  display: grid;
  gap: 22px;
}

.portal-service-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, .13), transparent 36%), rgba(255, 255, 255, .045);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.service-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.service-dashboard-head h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
}

.service-dashboard-head p,
.service-description {
  margin: 0;
  color: var(--muted);
}

.service-status-stack {
  display: grid;
  justify-items: end;
  gap: 10px;
  align-content: start;
  min-width: max-content;
}

.service-status-stack a,
.quick-links a,
.document-row a {
  color: var(--accent);
  text-decoration: none;
}

.service-status-stack a:hover,
.quick-links a:hover,
.document-row a:hover {
  text-decoration: underline;
}

.service-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.service-facts div {
  padding: 18px 22px;
  background: rgba(10, 15, 26, .34);
}

.service-facts span,
.info-row span,
.document-row span,
.ticket-row span,
.metric-legend,
.access-card dt,
.monitor-card small {
  color: var(--muted);
  font-size: .84rem;
}

.service-facts strong,
.info-row strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
}

.service-description {
  padding: 20px 26px 0;
}

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

.portal-detail-card,
.portal-widget {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .045);
  padding: 20px;
}

.portal-detail-card.wide {
  grid-column: 1 / -1;
}

.portal-detail-card h4,
.portal-widget h3 {
  margin-bottom: 14px;
}

.hosting-grid {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.hosting-main-card {
  min-width: 0;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
}

.hosting-main-card h4 {
  margin: 8px 0;
  overflow-wrap: anywhere;
}

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

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-links a {
  padding: 9px 12px;
  border: 1px solid rgba(125, 211, 252, .22);
  border-radius: 999px;
  background: rgba(125, 211, 252, .08);
  font-size: .9rem;
}

.hosting-stats,
.backup-list,
.access-list {
  display: grid;
  gap: 12px;
}

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

.portal-progress-top,
.backup-top,
.monitor-top,
.info-row,
.document-row,
.ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.portal-progress-top span {
  color: var(--muted);
}

.portal-progress-top strong {
  white-space: nowrap;
}

.portal-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
}

.portal-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
}

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

.access-card,
.monitor-card,
.backup-card,
.announcement-card,
.document-row,
.ticket-row {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  background: rgba(10, 15, 26, .28);
}

.access-card,
.monitor-card,
.backup-card,
.announcement-card {
  padding: 16px;
}

.access-card h4 {
  margin: 10px 0 12px;
}

.access-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.access-card dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.access-card p,
.monitor-card p,
.backup-card p,
.announcement-card p {
  color: var(--muted);
  line-height: 1.55;
}

.monitor-grid {
  display: grid;
  gap: 12px;
}

.monitor-card strong {
  display: block;
  margin: 10px 0 6px;
}

.backup-card h4 {
  margin: 0;
}

.backup-card .info-row {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.metric-bars {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 7px;
  padding: 16px 12px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .045);
}

.metric-day {
  flex: 1;
  height: 100%;
  display: flex;
  gap: 2px;
  align-items: end;
  justify-content: center;
}

.metric-bar {
  width: 42%;
  min-height: 6px;
  border-radius: 999px 999px 4px 4px;
  opacity: .9;
}

.metric-bar.traffic {
  background: linear-gradient(180deg, var(--accent), rgba(125, 211, 252, .35));
}

.metric-bar.requests {
  background: linear-gradient(180deg, #a78bfa, rgba(167, 139, 250, .34));
}

.metric-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.portal-widget {
  padding: 18px;
}

.announcement-card,
.document-row,
.ticket-row {
  margin-bottom: 10px;
}

.announcement-card div:first-child,
.ticket-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.announcement-card strong,
.document-row strong,
.ticket-row strong {
  display: block;
  margin-bottom: 4px;
}

.document-row,
.ticket-row {
  padding: 13px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.status-active,
.status-online,
.status-ok,
.status-success,
.status-normal,
.status-info {
  border-color: rgba(74, 222, 128, .28);
  background: rgba(74, 222, 128, .11);
  color: #bbf7d0;
}

.status-warning,
.status-pending,
.status-in_progress,
.status-high {
  border-color: rgba(251, 191, 36, .32);
  background: rgba(251, 191, 36, .13);
  color: #fde68a;
}

.status-error,
.status-offline,
.status-failed,
.status-suspended {
  border-color: rgba(248, 113, 113, .32);
  background: rgba(248, 113, 113, .13);
  color: #fecaca;
}

.empty-state {
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
}

.empty-state.small {
  padding: 14px;
  font-size: .92rem;
}

@media (max-width: 1080px) {
  .portal-shell,
  .portal-dashboard-layout,
  .hosting-grid {
    grid-template-columns: 1fr;
  }

  .portal-aside-column {
    position: static;
  }

  .portal-summary-grid,
  .service-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .portal-shell {
    width: min(100% - 28px, 1180px);
    gap: 18px;
  }

  .portal-feature-grid,
  .portal-summary-grid,
  .service-facts,
  .portal-detail-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .service-dashboard-head,
  .portal-progress-top,
  .backup-top,
  .monitor-top,
  .info-row,
  .document-row,
  .ticket-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-header,
  .portal-login-card,
  .portal-detail-card,
  .portal-widget,
  .service-dashboard-head,
  .portal-detail-grid {
    padding: 18px;
  }

  .portal-service-card,
  .dashboard-header,
  .portal-login-card {
    border-radius: 24px;
  }

  .service-status-stack {
    justify-items: start;
    min-width: 0;
  }

  .service-facts div {
    padding: 16px 18px;
  }

  .metric-bars {
    height: 140px;
  }
}

/* Portal-Fix 2026-04-30: Nach Login keinen leeren Hero-Bereich anzeigen */
body.portal-authenticated .portal-hero {
  display: none;
}

body.portal-authenticated #portal-login {
  padding-top: 2.5rem;
}


/* plainHAVEN portal desktop final gap fix: when a valid customer session exists,
   the landing/login hero is removed completely so #portal-login can never leave
   a large empty spacer below the header. */
body.portal-authenticated .portal-hero,
body.portal-authenticated [data-portal-guest] {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

body.portal-authenticated .portal-section,
body.portal-authenticated #portal-login {
  margin-top: 0 !important;
  padding-top: clamp(28px, 4vw, 56px) !important;
}

#portal-login {
  scroll-margin-top: 120px;
}

/* Admin Dashboard ------------------------------------------------------- */
.is-hidden {
  display: none !important;
}

.admin-page main {
  min-height: calc(100vh - 92px);
}

.admin-shell {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.admin-hero {
  max-width: 820px;
  margin-bottom: 26px;
}

.admin-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(2.2rem, 5vw, 5.1rem);
  line-height: .94;
  letter-spacing: -.07em;
}

.admin-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.admin-login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 28px;
  align-items: start;
  padding: 32px;
  margin-top: 20px;
}

.admin-login-card h2,
.admin-topbar h2,
.admin-panel h2,
.admin-detail h3 {
  margin: 8px 0 8px;
  letter-spacing: -.04em;
}

.admin-login-form,
.admin-detail,
.admin-form-grid {
  display: grid;
  gap: 14px;
}

.admin-login-form label,
.admin-detail label,
.admin-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: .84rem;
}

.admin-login-form input,
.admin-detail input,
.admin-detail select,
.admin-detail textarea,
.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea,
.admin-filter-row select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text);
  outline: none;
  font: inherit;
}

.admin-login-form input:focus,
.admin-detail select:focus,
.admin-detail textarea:focus,
.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus,
.admin-filter-row select:focus {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.form-message {
  min-height: 22px;
  color: var(--muted);
  font-weight: 800;
}

.form-message[data-type="error"] {
  color: #ff8b8b;
}

.admin-dashboard {
  display: grid;
  gap: 22px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.admin-kpi {
  padding: 20px;
}

.admin-kpi span,
.admin-kpi small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.admin-kpi strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 2rem;
  letter-spacing: -.05em;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.admin-tab {
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 13px 14px;
  text-align: left;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-tab:hover,
.admin-tab.active {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  border-color: var(--border);
}

.admin-content {
  min-width: 0;
  padding: 26px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.admin-panel h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
}

.admin-ticket-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.ticket-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  text-align: left;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  color: var(--text);
  cursor: pointer;
}

.ticket-item:hover,
.ticket-item.active {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ticket-top em,
.status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
  font-style: normal;
  font-weight: 900;
  font-size: .74rem;
  white-space: nowrap;
}

.ticket-item small,
.muted {
  color: var(--muted);
}

.admin-detail {
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 22px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.admin-detail textarea,
.admin-form-grid textarea {
  resize: vertical;
  min-height: 130px;
}

.admin-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

.admin-table-wrap h3 {
  margin: 0 0 12px;
  letter-spacing: -.03em;
}

.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.admin-table th {
  padding: 0 14px 8px;
  text-align: left;
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-table td {
  padding: 14px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table td:first-child {
  border-left: 1px solid var(--border);
  border-radius: 16px 0 0 16px;
}

.admin-table td:last-child {
  border-right: 1px solid var(--border);
  border-radius: 0 16px 16px 0;
}

.admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 26px;
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-system {
  display: grid;
  gap: 18px;
}

.admin-system-card,
.admin-system-list {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.admin-system-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
}

.admin-system-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.admin-system-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 1180px) {
  .admin-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-layout,
  .admin-ticket-grid,
  .admin-login-card {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-shell {
    width: min(100% - 28px, 1500px);
    padding: 42px 0 72px;
  }

  .admin-kpis,
  .admin-sidebar,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .admin-panel-head {
    display: grid;
  }

  .admin-content,
  .admin-login-card {
    padding: 20px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
}

.btn-primary {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06121f;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--accent) 24%, transparent);
}

.btn-ghost,
.btn-soft {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.btn:hover {
  transform: translateY(-1px);
}


/* Admin/Nav + Logo Theme Fix 2026-05-01 */
:root[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(52, 211, 255, .18), transparent 34rem),
    radial-gradient(circle at 85% 18%, rgba(119, 242, 200, .13), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 62%, var(--bg));
}

:root[data-theme="light"] .background-grid {
  opacity: .30;
  background-image:
    linear-gradient(rgba(15, 23, 42, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .055) 1px, transparent 1px);
}

:root[data-theme="light"] .brand-logo {
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(226, 239, 255, .72));
  border-color: rgba(15, 23, 42, .12);
  box-shadow: 0 14px 38px rgba(40, 58, 92, .14);
}

:root[data-theme="light"] .site-nav {
  background: rgba(255,255,255,.72);
  border-color: rgba(15, 23, 42, .12);
}

:root[data-theme="light"] .site-nav a:hover,
:root[data-theme="light"] .site-nav a.active {
  background: rgba(15, 23, 42, .075);
}

:root[data-theme="light"] .theme-toggle,
:root[data-theme="light"] .nav-toggle {
  background: rgba(255,255,255,.78);
  border-color: rgba(15, 23, 42, .12);
}
