:root {
  --rtx-ink: #f7fbff;
  --rtx-muted: #b9c5d3;
  --rtx-deep: #06142a;
  --rtx-deep-2: #0a2342;
  --rtx-line: rgba(216, 226, 236, 0.18);
  --rtx-accent: #145bd7;
  --rtx-accent-soft: #5f748a;
  --rtx-card: rgba(255, 255, 255, 0.08);
  --rtx-card-strong: rgba(255, 255, 255, 0.13);
  --rtx-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  --rtx-radius: 22px;
}

html {
  background: var(--rtx-deep);
}

body {
  min-width: 320px;
  color: var(--rtx-ink);
  background:
    radial-gradient(circle at 16% 5%, rgba(20, 91, 215, 0.18), transparent 26rem),
    radial-gradient(circle at 84% 10%, rgba(95, 116, 138, 0.24), transparent 30rem),
    linear-gradient(135deg, #040b18 0%, var(--rtx-deep) 42%, var(--rtx-deep-2) 100%);
  font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: linear-gradient(#000, transparent 78%);
  mask-image: linear-gradient(#000, transparent 78%);
}

a {
  color: inherit;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

#container {
  width: min(1180px, calc(100% - 36px));
  margin: 16px auto 0;
  background: transparent;
  box-shadow: none;
}

#header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  height: auto;
  padding: 14px 18px;
  border: 1px solid var(--rtx-line);
  border-radius: var(--rtx-radius);
  background: rgba(5, 8, 20, 0.78);
  box-shadow: var(--rtx-shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

#header #logo {
  width: 170px;
  height: 42px;
  display: inline-flex;
  align-items: center;
}

#header #logo img {
  max-width: 154px;
  max-height: 44px;
  width: auto;
  height: auto;
}

#header p {
  width: auto;
  color: var(--rtx-muted);
  padding: 0;
  margin: 0;
  line-height: 1.5;
}

#header p a {
  color: var(--rtx-ink);
  border-radius: 999px;
  padding: 8px 11px;
  transition: background 0.18s, color 0.18s;
}

#header p a:hover {
  color: var(--rtx-ink);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

#nav {
  height: auto;
  min-height: 46px;
  margin: 14px 0 0;
  padding: 6px;
  border: 1px solid var(--rtx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#nav li a {
  width: auto;
  height: auto;
  min-height: 36px;
  line-height: 36px;
  margin: 0;
  padding: 0 14px;
  color: var(--rtx-muted);
  border-radius: 999px;
  background-image: none !important;
}

#nav li a.active,
#nav li a:hover {
  color: var(--rtx-ink);
  background: rgba(20, 91, 215, 0.32);
  text-decoration: none;
}

#content {
  min-height: 460px;
  margin: 0;
  padding: 28px 0 48px;
  color: var(--rtx-ink);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  color: var(--rtx-ink);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.25rem;
}

p,
td,
th,
label,
li,
div {
  color: inherit;
}

p,
#content li {
  color: var(--rtx-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.rtx-support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 34px;
  align-items: center;
  padding: 0 0 18px;
  width: 100%;
  max-width: 100%;
}

#landing_page .thread-body .rtx-support-hero {
  display: grid;
  margin: 0;
}

.rtx-eyebrow {
  color: var(--rtx-accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 900;
  display: inline-flex;
}

.rtx-eyebrow:before {
  content: "";
  background: currentColor;
  width: 34px;
  height: 2px;
}

.rtx-support-hero p {
  max-width: 680px;
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.rtx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.rtx-button,
.rtx-button:link,
.rtx-button:visited,
.button,
.button:link,
.button:visited,
button,
input[type="submit"],
input[type="button"] {
  border: 1px solid var(--rtx-line);
  border-radius: 16px;
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--rtx-ink) !important;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
  text-align: center;
  box-shadow: none;
  text-shadow: none;
  text-decoration: none !important;
}

.rtx-button.primary,
.button.primary,
.green.button,
button[type="submit"],
input[type="submit"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--rtx-accent), var(--rtx-accent-soft));
  box-shadow: 0 18px 42px rgba(20, 91, 215, 0.28);
}

.rtx-button:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  color: var(--rtx-ink) !important;
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.rtx-button.primary:hover,
.green.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: linear-gradient(135deg, #1b66ed, #71859b);
}

#landing_page a.rtx-button,
#landing_page .thread-body a.rtx-button,
#landing_page .thread-body a.rtx-button:link,
#landing_page .thread-body a.rtx-button:visited,
#landing_page .thread-body a.rtx-button:hover {
  color: var(--rtx-ink) !important;
  text-decoration: none !important;
}

.rtx-support-panel {
  position: relative;
  min-height: 0;
  padding: 30px;
  border: 1px solid var(--rtx-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 91, 215, 0.22), transparent 18rem),
    linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
  box-shadow: var(--rtx-shadow);
  overflow: hidden;
}

.rtx-support-panel:before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rtx-accent), rgba(255, 255, 255, 0.12));
}

.rtx-panel-kicker {
  color: #8fb8ff;
  display: block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rtx-support-panel h2 {
  margin: 0 0 12px;
  max-width: 430px;
}

.rtx-support-panel p {
  margin: 0;
  max-width: 480px;
  font-size: 1rem;
}

.rtx-flow-list {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.rtx-flow-list li {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--rtx-line);
  border-radius: 18px;
  background: rgba(5, 8, 20, 0.34);
}

.rtx-flow-list strong {
  color: var(--rtx-ink);
}

.rtx-flow-list span {
  color: var(--rtx-muted);
  line-height: 1.45;
}

.rtx-support-options,
.visitor-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
  width: 100%;
  max-width: 100%;
}

#landing_page .thread-body .rtx-support-options {
  display: grid;
  margin: 20px 0 0;
}

#landing_page .thread-body .rtx-support-card {
  margin: 0;
}

.rtx-support-card,
#landing_page #new_ticket,
#landing_page #check_status,
.featured-category,
.infoTable,
#clientLogin,
#reply,
#ticketThread table,
#ticketTable,
.search-form,
.thread-body,
.main-content,
.sidebar,
.faq-content,
.article-meta {
  border: 1px solid var(--rtx-line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(20, 91, 215, 0.08), transparent 42%), rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.rtx-support-card,
#landing_page #new_ticket,
#landing_page #check_status {
  min-height: 112px;
  padding: 18px 20px;
  background-image: none;
}

.rtx-support-card strong,
#landing_page #new_ticket h3,
#landing_page #check_status h3,
.featured-category .category-name {
  color: var(--rtx-ink);
}

.rtx-support-card p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

#landing_page {
  display: block;
}

#landing_page .sidebar {
  display: none;
}

#landing_page .main-content {
  overflow: visible;
  padding: 0;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#landing_page .thread-body {
  padding: 0;
  border: 0;
  background: transparent;
  width: auto !important;
  max-width: 100%;
  color: var(--rtx-ink);
}

#landing_page .thread-body h1,
#landing_page .thread-body h2,
#landing_page .thread-body h3,
#landing_page .thread-body strong {
  color: var(--rtx-ink);
}

#landing_page .thread-body p,
#landing_page .thread-body span {
  color: var(--rtx-muted);
}

#landing_page #new_ticket,
#landing_page #check_status {
  float: none;
  width: auto;
  margin: 0;
  padding-left: 24px;
}

#landing_page > div:last-child {
  margin-top: 28px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  color: var(--rtx-ink);
  border: 1px solid rgba(216, 226, 236, 0.28) !important;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09) !important;
  padding: 10px 12px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(185, 197, 211, 0.78);
}

table {
  color: var(--rtx-muted);
}

#ticketTable caption,
#ticketTable th,
#ticketThread .message th,
#ticketThread .response th {
  color: var(--rtx-ink);
  background: rgba(20, 91, 215, 0.18);
  border-color: var(--rtx-line);
}

#ticketTable td,
#ticketTable th,
#ticketThread table,
#ticketThread table th {
  border-color: var(--rtx-line);
}

#ticketTable tr.alt td {
  background: rgba(255, 255, 255, 0.05);
}

#msg_notice,
#msg_warning,
#msg_error {
  height: auto;
  min-height: 20px;
  border-radius: 14px;
  background-position: 12px 50%;
}

#footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 40px;
  border-top: 1px solid var(--rtx-line);
  color: var(--rtx-muted);
  text-align: left;
  font-size: 0.94rem;
}

#footer p {
  margin: 0;
}

#footer a {
  color: var(--rtx-ink);
}

#poweredBy {
  display: none !important;
}

#loading {
  color: #1b2737;
}

@media (max-width: 900px) {
  #container,
  #footer {
    width: min(100% - 24px, 1180px);
  }

  .rtx-support-hero,
  .rtx-support-options,
  .visitor-signals {
    grid-template-columns: 1fr;
  }

  .rtx-support-panel {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  #container {
    margin-top: 12px;
  }

  #header {
    position: static;
    border-radius: 18px;
    padding: 12px;
    display: grid;
    gap: 10px;
  }

  #header #logo {
    width: 136px;
    order: 1;
  }

  #header #logo img {
    max-width: 128px;
  }

  #header .pull-right {
    float: none !important;
    clear: both;
    order: 2;
    padding-top: 0;
    text-align: left;
  }

  #nav {
    margin-top: 12px;
    border-radius: 18px;
  }

  #nav li,
  #nav li a {
    width: 100%;
  }

  #content {
    padding-top: 22px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .rtx-support-panel,
  .rtx-support-card,
  #landing_page .thread-body,
  .rtx-support-hero,
  .rtx-support-options {
    border-radius: 22px;
    padding: 20px;
    width: auto !important;
    max-width: 100%;
  }

  .rtx-support-panel {
    padding: 24px 20px;
  }

  .rtx-actions {
    gap: 12px;
    margin-top: 20px;
  }

  .rtx-button {
    flex: 1 1 150px;
  }

  #landing_page .thread-body,
  .rtx-support-hero,
  .rtx-support-options {
    padding: 0;
  }

  .rtx-flow-list li {
    padding: 14px;
  }

  .rtx-support-card {
    min-height: 0;
  }
}
