:root {
  --brand-blue: #005d9f;
  --brand-blue-dark: #034f86;
  --brand-sky: #17a6e8;
  --ink: #151922;
  --ink-soft: #303847;
  --muted: #657182;
  --line: #e3e8ef;
  --surface: #f5f7fa;
  --panel: #ffffff;
  --hero-fog: #c7ced3;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.09);
}

html {
  font-size: 14px;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
}

a:hover {
  color: var(--brand-blue-dark);
}

.btn {
  border-radius: 8px;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
}

.btn-primary {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
}

.btn-outline-secondary {
  border-color: #c4ccd8;
  color: var(--ink-soft);
}

.btn-outline-secondary:hover {
  background: #eef3f8;
  border-color: #b6c2cf;
  color: var(--ink);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 0.18rem rgba(23, 166, 232, 0.22);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.site-nav {
  width: min(100%, 1440px);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 1.5rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink);
  white-space: nowrap;
}

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

.brand-hirdhav {
  color: #585a5f;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-divider {
  display: inline-block;
  width: 2px;
  height: 2.5rem;
  background: #111827;
}

.brand-indryom {
  color: #05070a;
  font-size: clamp(1.3rem, 1.7vw, 1.85rem);
  font-weight: 800;
}

.brand-orbit {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22bbf4 0%, #0c7ec2 65%, #075c99 100%);
  box-shadow: inset 0 -4px 7px rgba(0, 42, 96, 0.18);
}

.brand-orbit::before,
.brand-orbit::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.brand-orbit::before {
  right: 3px;
  bottom: 4px;
  width: 30px;
  height: 8px;
  border-bottom: 4px solid #ffffff;
  transform: rotate(-22deg);
}

.brand-orbit::after {
  right: -5px;
  bottom: 1px;
  width: 15px;
  height: 9px;
  background: var(--brand-sky);
  transform: rotate(18deg);
}

.site-nav-links {
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-nav .nav-link {
  color: var(--ink);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-weight: 600;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: #ffffff;
  background: var(--brand-blue);
}

.navbar-toggler {
  border: 1px solid #cbd5df;
  border-radius: 8px;
}

.navbar-toggler-icon {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 2px;
}

.main-shell {
  min-height: calc(100vh - 132px);
}

.support-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 372px;
  padding: 4.5rem max(1.25rem, calc((100vw - 1360px) / 2 + 1.25rem));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(198, 204, 209, 0.96) 0%, rgba(198, 204, 209, 0.86) 45%, rgba(198, 204, 209, 0.68) 100%),
    radial-gradient(circle at 80% 32%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 26%),
    linear-gradient(135deg, #bfc7cd 0%, #d8dde1 100%);
}

.support-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.4;
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(255, 255, 255, 0.45) 62% 63%, transparent 63%),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(255, 255, 255, 0.28) 43px 44px),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255, 255, 255, 0.2) 79px 80px);
}

.support-hero::after {
  position: absolute;
  right: 4%;
  bottom: -36px;
  width: min(560px, 48vw);
  height: 210px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  opacity: 0.32;
  transform: skewX(-18deg);
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.75) 18% 19%, transparent 19% 44%, rgba(255, 255, 255, 0.5) 44% 45%, transparent 45%),
    linear-gradient(0deg, transparent 0 42%, rgba(255, 255, 255, 0.72) 42% 43%, transparent 43%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-hero h1,
.page-heading h1,
.detail-header h1 {
  margin: 0;
  color: #030712;
  font-weight: 800;
  letter-spacing: 0;
}

.support-hero h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
}

.hero-copy {
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: #1f2937;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.support-alert,
.stat-grid,
.content-grid,
.page-heading,
.portal-form,
.lookup-form,
.queue-filters,
.ticket-list,
.detail-card {
  width: min(100% - 2.5rem, 1180px);
  margin-inline: auto;
}

.support-alert {
  margin-top: 1.5rem;
  border-radius: 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 3rem 0 2rem;
}

.stat-card,
.portal-panel,
.detail-card,
.portal-form {
  background: var(--panel);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 1.45rem;
}

.stat-card span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--brand-blue);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.stat-card p,
.portal-panel p,
.page-heading p,
.empty-state,
.detail-section p {
  color: var(--muted);
  line-height: 1.65;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  padding: 0 0 4rem;
}

.portal-panel {
  padding: 2rem;
}

.portal-panel h2,
.detail-section h2 {
  margin: 0 0 1.25rem;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 800;
}

.steps-list {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.steps-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
}

.steps-list li > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--brand-blue);
  border-radius: 999px;
  font-weight: 800;
}

.steps-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

.steps-list p {
  margin: 0;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.page-heading {
  padding: 3.5rem 0 1.5rem;
}

.page-heading h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.page-heading p:not(.eyebrow) {
  max-width: 700px;
  margin: 0.8rem 0 0;
}

.portal-form {
  margin-bottom: 4rem;
  padding: 2rem;
}

.portal-form.narrow {
  max-width: 760px;
}

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

.form-grid.single {
  grid-template-columns: 1fr;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field.wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink-soft);
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 48px;
  border: 1px solid #ced7e2;
  border-radius: 8px;
}

textarea.form-control {
  min-height: 150px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.lookup-form,
.queue-filters {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.queue-filters {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto auto;
}

.ticket-list {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 4rem;
}

.ticket-list.compact {
  width: 100%;
  margin-bottom: 0;
}

.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ticket-row:hover {
  color: var(--ink);
  border-color: rgba(0, 93, 159, 0.4);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.ticket-row span {
  display: grid;
  gap: 0.25rem;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-open {
  color: #075985;
  background: #e0f2fe;
}

.status-progress {
  color: #034f86;
  background: #d9ecfb;
}

.status-waiting {
  color: #92400e;
  background: #fef3c7;
}

.status-resolved {
  color: #166534;
  background: #dcfce7;
}

.status-closed {
  color: #475569;
  background: #e2e8f0;
}

.empty-state {
  margin: 0;
}

.empty-state.bordered {
  width: min(100% - 2.5rem, 1180px);
  margin: 0 auto 4rem;
  padding: 1.2rem;
  background: #ffffff;
  border: 1px dashed #bcc8d7;
  border-radius: 8px;
}

.detail-card {
  margin-bottom: 4rem;
  padding: 2rem;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.detail-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.detail-grid div {
  padding: 1rem;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 0.25rem 0 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-section {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.detail-section p {
  margin: 0;
  white-space: pre-wrap;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(100% - 2.5rem, 1360px);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 991.98px) {
  .site-nav {
    padding-block: 0.75rem;
  }

  .site-nav-links {
    width: 100%;
    padding-top: 0.75rem;
  }

  .site-nav .nav-link {
    display: block;
  }

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

  .content-grid {
    padding-bottom: 3rem;
  }

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

@media (max-width: 767.98px) {
  .brand-hirdhav {
    font-size: 1.35rem;
  }

  .brand-indryom {
    font-size: 1.2rem;
  }

  .brand-divider {
    height: 2rem;
  }

  .brand-orbit {
    width: 34px;
    height: 25px;
  }

  .support-hero {
    min-height: 330px;
    padding-block: 3rem;
  }

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

  .stat-grid,
  .content-grid,
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .portal-panel,
  .portal-form,
  .detail-card {
    padding: 1.25rem;
  }

  .lookup-form,
  .queue-filters {
    grid-template-columns: 1fr;
  }

  .ticket-row,
  .detail-header,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand-lockup {
    gap: 0.55rem;
  }

  .brand-hirdhav {
    display: none;
  }
}
