:root {
  color-scheme: only light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #edf4fb;
  --text: #102033;
  --muted: #607086;
  --line: #dbe5ef;
  --primary: #1769e0;
  --primary-dark: #0f4fa9;
  --cyan: #18bfe6;
  --teal: #14977f;
  --green: #2c9b68;
  --amber: #c88419;
  --red: #c84040;
  --shadow: 0 18px 42px rgba(16, 32, 51, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  color-scheme: only light;
  forced-color-adjust: none;
}

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

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

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 10px 20px rgba(23, 105, 224, 0.22);
  }
  50% {
    box-shadow: 0 14px 28px rgba(23, 105, 224, 0.3);
  }
}

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

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

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(23, 105, 224, 0.26);
}

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

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

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

.side-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.side-nav a:hover,
.side-nav a.active {
  background: var(--surface-2);
  color: var(--primary-dark);
}

.sidebar-packages {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #effaff);
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.06);
}

.sidebar-packages h2 {
  margin: 0 0 13px;
  color: var(--text);
  font-size: 22px;
}

.sidebar-package-list {
  display: grid;
  gap: 10px;
}

.sidebar-package-list article {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.sidebar-package-list article.featured {
  border-color: rgba(23, 105, 224, 0.45);
  background: #effaff;
}

.sidebar-package-list span {
  color: var(--muted);
  font-size: 13px;
}

.sidebar-package-list strong {
  color: var(--text);
  font-size: 24px;
}

.sidebar-package-list button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.sidebar-package-list article.featured button {
  border-color: transparent;
  background: var(--primary);
  color: #ffffff;
}

.nav-icon,
.search-icon,
.category-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.nav-icon {
  width: 18px;
  height: 18px;
}

.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
}

.nav-home::before {
  inset: 3px 3px 2px;
  border: 2px solid currentColor;
  border-top: 0;
}

.nav-home::after {
  left: 3px;
  top: 1px;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-book::before {
  inset: 2px 4px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.nav-book::after {
  top: 4px;
  bottom: 4px;
  left: 9px;
  width: 2px;
  background: currentColor;
}

.nav-grid::before {
  inset: 2px;
  background:
    linear-gradient(currentColor 0 0) left top / 7px 7px,
    linear-gradient(currentColor 0 0) right top / 7px 7px,
    linear-gradient(currentColor 0 0) left bottom / 7px 7px,
    linear-gradient(currentColor 0 0) right bottom / 7px 7px;
  background-repeat: no-repeat;
}

.nav-wallet::before {
  inset: 3px 1px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-wallet::after {
  right: 2px;
  top: 7px;
  width: 7px;
  height: 6px;
  border: 2px solid currentColor;
  border-right: 0;
  border-radius: 3px 0 0 3px;
}

.nav-ticket::before {
  inset: 3px 2px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-ticket::after {
  left: 7px;
  top: 3px;
  bottom: 3px;
  width: 2px;
  background: currentColor;
}

.nav-assets::before {
  left: 2px;
  right: 2px;
  top: 4px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.nav-assets::after {
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -3px 0 currentColor;
}

.nav-social::before {
  left: 2px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-social::after {
  right: 1px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: -7px -3px 0 -5px currentColor;
}

.main {
  min-width: 0;
  padding: 22px 28px 56px;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.08), rgba(24, 191, 230, 0.08)),
    var(--surface);
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.06);
}

.portal-title {
  min-width: 0;
}

.portal-title h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.portal-title span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.customer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 430px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.customer-profile.is-hidden {
  display: none;
}

.profile-picture {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92) 0 12%, transparent 13%),
    linear-gradient(135deg, #1769e0, #18bfe6 56%, #14977f);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.profile-picture::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: -5px;
  height: 26px;
  border-radius: 999px 999px 0 0;
  background: rgba(16, 32, 51, 0.18);
}

.profile-picture span {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.customer-profile strong,
.customer-profile span {
  display: block;
}

.customer-profile strong {
  color: var(--text);
  font-size: 14px;
}

.customer-profile div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.profile-logout {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.profile-logout:hover {
  border-color: rgba(23, 105, 224, 0.42);
  color: var(--primary-dark);
}

.customer-profile .compact-card {
  flex: 0 0 210px;
  min-height: 92px;
  margin-left: auto;
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(23, 105, 224, 0.18);
}

.customer-profile .compact-card:hover {
  transform: none;
  box-shadow: 0 12px 24px rgba(23, 105, 224, 0.18);
}

.customer-profile .compact-card::after {
  right: -34px;
  bottom: -46px;
  width: 110px;
  height: 110px;
}

.compact-card .card-top span,
.compact-card .card-top strong,
.compact-card .card-balance span,
.compact-card .card-meta span {
  font-size: 9px;
}

.compact-card .card-number {
  margin: 10px 0 8px;
  font-size: 13px;
  word-spacing: 2px;
}

.compact-card .card-balance {
  gap: 2px;
}

.compact-card .card-balance strong {
  font-size: 18px;
}

.compact-card .card-meta {
  left: 12px;
  right: 12px;
  bottom: 10px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 0 0 20px;
  background: rgba(244, 247, 251, 0.92);
  backdrop-filter: blur(12px);
}

.global-search {
  position: relative;
}

.global-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.04);
}

.global-search input:focus,
.ticket-form input:focus,
.ticket-form select:focus,
.ticket-form textarea:focus,
.inline-login-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.12);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-50%);
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
  transform: rotate(45deg);
}

.topbar-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.primary-button {
  border: 0;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(23, 105, 224, 0.22);
  animation: softPulse 4s ease-in-out infinite;
}

.primary-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.secondary-button:hover,
.ghost-button:hover {
  background: var(--surface-2);
}

.full {
  width: 100%;
}

.hero-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.76fr) minmax(280px, 340px);
  gap: 26px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #eef7fc);
  box-shadow: var(--shadow);
  animation: fadeUp 0.55s ease both;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.hero-visual.image-missing {
  display: none;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.login-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(219, 229, 239, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(16, 32, 51, 0.1);
  backdrop-filter: blur(10px);
}

.login-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1.15;
}

.login-intro {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.inline-login-form {
  display: grid;
  gap: 12px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.auth-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.auth-tabs button.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(16, 32, 51, 0.08);
}

.inline-login-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
}

.inline-login-form .primary-button {
  min-height: 46px;
  margin-top: 2px;
  font-size: 15px;
}

.login-register {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.auth-status.success {
  color: var(--green);
}

.auth-status.error {
  color: var(--red);
}

.login-panel a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.engineer-banner {
  margin: 22px 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.06);
  animation: fadeUp 0.55s 0.08s ease both;
}

.engineer-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.engineer-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: engineerScroll 22s linear infinite;
}

.engineer-set {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.engineer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 318px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.engineer-photo {
  position: relative;
  display: inline-block;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, #f2c9a8 0 15%, transparent 16%),
    radial-gradient(circle at 50% 86%, #1d3f72 0 30%, transparent 31%),
    linear-gradient(135deg, #dfeaff, #ffffff);
  box-shadow: inset 0 0 0 3px #ffffff, 0 8px 18px rgba(16, 32, 51, 0.12);
}

.engineer-photo::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 13px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0c29e;
  box-shadow: 0 -8px 0 -2px #1a2e4f;
}

.engineer-photo::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 28px;
  border-radius: 18px 18px 0 0;
  background: #1769e0;
}

.engineer-two::before {
  background: #c9956c;
  box-shadow: 0 -8px 0 -2px #172033;
}

.engineer-two::after {
  background: #14977f;
}

.engineer-three::before {
  background: #f1c8aa;
  box-shadow: 0 -8px 0 -2px #343047;
}

.engineer-three::after {
  background: #0f4fa9;
}

.engineer-four::before {
  background: #d7a078;
  box-shadow: 0 -8px 0 -2px #1a2e4f;
}

.engineer-four::after {
  background: #18bfe6;
}

.engineer-card strong,
.engineer-card span,
.engineer-card small {
  display: block;
}

.engineer-card strong {
  color: var(--text);
  font-size: 17px;
}

.engineer-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.engineer-card small {
  margin-top: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

@keyframes engineerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 30px;
}

.metrics article,
.category-card,
.article-card,
.service-item,
.wallet,
.ticket-form,
.ticket-preview,
.ops-card,
.asset-table-wrap,
.asset-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.metrics article:hover,
.article-card:hover,
.service-item:hover,
.ops-card:hover,
.asset-summary:hover,
.asset-table-wrap:hover,
.wallet:hover,
.ticket-form:hover,
.ticket-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(16, 32, 51, 0.1);
}

.metrics article {
  padding: 18px;
}

.metrics span,
.metrics small,
.wallet span,
.wallet-legend,
.ticket-preview span,
.article-card small,
.service-item small {
  color: var(--muted);
  font-size: 13px;
}

.metrics strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--text);
  font-size: 31px;
}

.section-grid,
.catalog-section,
.ticket-section,
.asset-section {
  margin-top: 34px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.section-heading.compact h2 {
  font-size: 23px;
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  margin-top: 22px;
}

.ops-card {
  padding: 20px;
}

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

.package-card {
  display: grid;
  gap: 10px;
  min-height: 158px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.package-card.featured {
  border-color: rgba(23, 105, 224, 0.45);
  background: linear-gradient(135deg, #eef7ff, #f1fffb);
}

.package-card span,
.ticket-board-card span,
.asset-summary span {
  color: var(--muted);
  font-size: 13px;
}

.package-card strong {
  color: var(--text);
  font-size: 28px;
}

.package-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ticket-board {
  display: grid;
  gap: 10px;
}

.ticket-board-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.ticket-board-card h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 15px;
}

.ticket-board-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.status-chip {
  display: inline-flex;
  justify-content: center;
  min-width: 92px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f3ff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.status-chip.warning {
  background: #fff4df;
  color: var(--amber);
}

.status-chip.success {
  background: #eaf7f2;
  color: var(--green);
}

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

.category-card {
  display: grid;
  gap: 9px;
  min-height: 126px;
  padding: 16px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.category-card:hover,
.category-card.active {
  border-color: rgba(23, 105, 224, 0.42);
  background: #f4f9ff;
  transform: translateY(-2px);
}

.category-card strong {
  font-size: 15px;
}

.category-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: #e9f3ff;
}

.category-icon::before,
.category-icon::after {
  content: "";
  position: absolute;
}

.icon-all::before {
  inset: 8px;
  border: 3px solid var(--primary);
  border-radius: 50%;
}

.icon-m365::before {
  left: 8px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: conic-gradient(var(--primary) 0 25%, var(--cyan) 0 50%, var(--green) 0 75%, #f2a23a 0);
}

.icon-cloud::before {
  left: 7px;
  top: 14px;
  width: 20px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
}

.icon-cloud::after {
  left: 11px;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
}

.icon-ai::before {
  inset: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 -8px 0 -4px var(--cyan), 8px 0 0 -4px var(--green), -8px 0 0 -4px #6aa6ff;
}

.icon-security::before {
  left: 9px;
  top: 6px;
  width: 16px;
  height: 22px;
  background: var(--green);
  clip-path: polygon(50% 0, 100% 18%, 88% 78%, 50% 100%, 12% 78%, 0 18%);
}

.icon-network::before {
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.icon-network::after {
  left: 9px;
  top: 8px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--cyan);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

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

.article-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.article-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-card h3,
.service-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.article-card p,
.service-item p,
.ticket-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.ticket-preview .estimate-breakdown {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f3ff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f3ff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.mini-button.primary {
  border-color: transparent;
  background: var(--primary);
  color: #ffffff;
}

.mini-button[data-open-guide] {
  position: relative;
}

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

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-item {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.service-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.point-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf7f2;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.wallet,
.ticket-preview,
.ticket-form {
  padding: 20px;
}

.ticket-side-panel {
  display: grid;
  gap: 14px;
}

.virtual-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 22px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #0c3c91 0%, #1769e0 48%, #18bfe6 100%);
  color: #ffffff;
  box-shadow: 0 20px 38px rgba(23, 105, 224, 0.26);
  transition: transform 0.25s, box-shadow 0.25s;
}

.virtual-card:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: 0 26px 46px rgba(23, 105, 224, 0.32);
}

.virtual-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.card-top,
.card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-top span,
.card-meta span,
.card-balance span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.card-top strong {
  font-size: 12px;
  letter-spacing: 0;
}

.card-chip {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 31px;
  margin: 26px 0 14px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.4), transparent),
    #f0d17a;
  box-shadow: inset 0 0 0 1px rgba(16, 32, 51, 0.18);
}

.card-number {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
  word-spacing: 6px;
}

.card-balance {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
}

.card-balance strong {
  font-size: 34px;
  line-height: 1;
}

.card-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
}

.wallet-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.wallet-header strong {
  color: var(--text);
}

.wallet-ring {
  display: grid;
  place-items: center;
  width: 164px;
  height: 164px;
  margin: 22px auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--surface) 0 58%, transparent 59%),
    conic-gradient(var(--primary) 0 var(--wallet-progress), #e5edf6 0);
}

.wallet-ring span {
  color: var(--text);
  font-size: 30px;
  font-weight: 900;
}

.wallet-legend {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
}

.available {
  background: var(--primary);
}

.reserved {
  background: var(--amber);
}

.used {
  background: var(--muted);
}

.ticket-form {
  display: grid;
  gap: 14px;
}

.ticket-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.ticket-form textarea {
  resize: vertical;
}

.ticket-submit-note {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.ticket-preview {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.ticket-preview strong {
  color: var(--text);
  font-size: 40px;
  line-height: 1;
}

.flow-steps {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.flow-steps button {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding-left: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  transition: color 0.2s, transform 0.2s;
}

.flow-steps button:hover,
.flow-steps button:focus-visible {
  color: var(--primary-dark);
  transform: translateX(2px);
}

.flow-steps button:focus-visible {
  outline: 2px solid rgba(23, 105, 224, 0.28);
  outline-offset: 5px;
  border-radius: 8px;
}

.flow-steps button::before {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.flow-steps .done::before {
  border-color: var(--green);
  background: var(--green);
}

.flow-steps .done {
  color: var(--green);
}

.flow-steps .active::before {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(23, 105, 224, 0.1);
}

.flow-steps .active {
  color: var(--text);
}

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

.asset-table-wrap {
  overflow: auto;
}

.asset-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.asset-table th,
.asset-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.asset-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.asset-table td {
  color: var(--text);
  font-size: 14px;
}

.asset-table tr:last-child td {
  border-bottom: 0;
}

.asset-name {
  display: grid;
  gap: 3px;
}

.asset-name small {
  color: var(--muted);
}

.asset-summary {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.asset-summary strong {
  color: var(--text);
  font-size: 32px;
}

.asset-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.social-composer,
.social-queue-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.06);
}

.social-composer label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.social-composer input,
.social-composer textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.social-composer textarea {
  resize: vertical;
}

.platform-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.platform-picker legend {
  padding: 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.platform-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 13px;
}

.platform-picker input {
  width: auto;
  min-height: 0;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-queue {
  display: grid;
  gap: 10px;
}

.social-post-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.social-post-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.social-post-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.social-post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-tags span {
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e9f3ff;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(16, 32, 51, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 32, 51, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.notice-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.notice-card {
  width: min(100%, 420px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(16, 32, 51, 0.22);
}

.notice-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
}

.notice-card p:not(.eyebrow) {
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.article-drawer {
  width: min(100%, 520px);
  height: 100%;
  overflow: auto;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -20px 0 42px rgba(16, 32, 51, 0.18);
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.drawer-overlay.open .article-drawer {
  transform: translateX(0);
}

.drawer-header,
.drawer-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.drawer-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
}

.guide-steps {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.guide-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.guide-step span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.guide-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.portal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-height: 54px;
  margin-top: 40px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.06);
}

.portal-footer a {
  color: var(--primary);
  text-decoration: none;
}

.portal-footer a:hover {
  text-decoration: underline;
}

body[class*="page-"] .hero-workspace,
body[class*="page-"] .section-grid,
body[class*="page-"] .catalog-section,
body[class*="page-"] .ticket-section,
body[class*="page-"] .asset-section,
body[class*="page-"] .social-section {
  display: none;
}

body.page-workspace .hero-workspace,
body.page-diy .section-grid,
body.page-services .catalog-section,
body.page-points .catalog-section,
body.page-tickets .ticket-section,
body.page-assets .asset-section,
body.page-social .social-section {
  display: block;
}

body.page-services .catalog-layout,
body.page-points .catalog-layout,
body.page-tickets .ticket-layout,
body.page-assets .asset-layout,
body.page-social .social-layout {
  display: grid;
}

body.page-points .service-list {
  display: none;
}

body.page-points .catalog-layout {
  grid-template-columns: minmax(280px, 420px);
}

body.page-points .wallet {
  max-width: 420px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-workspace {
    grid-template-columns: 1fr;
  }

  .catalog-layout,
  .ticket-layout,
  .operations-grid,
  .asset-layout,
  .social-layout {
    grid-template-columns: 1fr;
  }

  .portal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-profile {
    min-width: 0;
    width: 100%;
  }

  .customer-profile .compact-card {
    flex-basis: 220px;
  }

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

  .metrics,
  .article-list,
  .package-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .app-shell {
    display: block;
    width: 100%;
  }

  .sidebar {
    gap: 16px;
    padding: 16px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 11px;
  }

  .sidebar-packages {
    margin-top: 0;
    padding: 14px;
  }

  .sidebar-packages h2 {
    font-size: 21px;
  }

  .main {
    width: 100%;
    padding: 16px 14px 42px;
  }

  .topbar,
  .metrics,
  .ops-card,
  .article-list,
  .service-list,
  .category-grid,
  .package-list,
  .auth-tabs,
  .sidebar-package-list,
  .platform-picker,
  .schedule-row {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-header {
    gap: 14px;
    margin-bottom: 14px;
    padding: 18px;
  }

  .customer-profile {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .profile-logout {
    width: 100%;
  }

  .customer-profile .compact-card {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .portal-title h1 {
    font-size: 27px;
    line-height: 1.12;
  }

  .portal-title span {
    font-size: 14px;
  }

  .topbar {
    gap: 10px;
    padding-bottom: 16px;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .hero-workspace {
    gap: 16px;
    padding: 18px;
  }

  .hero-copy h1 {
    font-size: 31px;
    line-height: 1.1;
  }

  .hero-copy p:not(.eyebrow) {
    margin: 14px 0 18px;
    font-size: 15px;
  }

  .hero-visual img {
    aspect-ratio: 16 / 10;
  }

  .hero-visual,
  .login-panel,
  .ticket-preview,
  .ticket-form,
  .wallet,
  .asset-table-wrap,
  .asset-summary,
  .social-composer,
  .social-queue {
    width: 100%;
    min-width: 0;
  }

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

  .inline-login-form input,
  .inline-login-form .primary-button {
    min-height: 46px;
    font-size: 14px;
  }

  .engineer-card {
    width: 280px;
  }

  .ticket-board-card,
  .social-post-card header,
  .service-row,
  .social-submit-row {
    grid-template-columns: 1fr;
  }

  .ticket-card-actions,
  .social-actions {
    justify-content: stretch;
  }

  .ticket-card-actions > *,
  .social-actions > * {
    width: 100%;
  }

  .virtual-card {
    min-height: 220px;
    padding: 18px;
  }

  .card-number {
    font-size: 17px;
    word-spacing: 3px;
  }

  .card-meta {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .drawer-header,
  .drawer-actions,
  .portal-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .engineer-track {
    animation: engineerScroll 22s linear infinite !important;
  }
}
