/* Rahvion Support Center
 * Client-facing osTicket theme matched to rahvion.com:
 * deep navy (#04070d), cyan accent (#00d0ff), Inter + Manrope,
 * rounded cards and 10px-radius buttons, same header/footer treatment
 * as the main site and the division subdomains.
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --rv-black: #04070d;
  --rv-black-soft: #081120;
  --rv-panel: #0a1826;
  --rv-panel-2: #0d1f33;
  --rv-line: rgba(255, 255, 255, .09);
  --rv-line-soft: rgba(255, 255, 255, .06);
  --rv-gold: #00d0ff;
  --rv-gold-soft: #6fe3ff;
  --rv-white: #eaf6ff;
  --rv-muted: #9db8cc;
  --rv-muted-2: #c7dcee;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--rv-white);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(0, 208, 255, .13), transparent 60%),
    radial-gradient(700px 420px at -10% 10%, rgba(42, 255, 196, .07), transparent 55%),
    var(--rv-black);
  font: 15px/1.6 'Inter', Arial, Helvetica, sans-serif;
}
a, .link { color: var(--rv-gold); text-decoration: none; }
a:hover, .link:hover { color: var(--rv-gold-soft); border-bottom-color: var(--rv-gold); }

#container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
  color: var(--rv-white);
  background: transparent;
  box-shadow: none;
}

#header {
  position: relative;
  height: auto;
  min-height: 84px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rv-line);
  background: rgba(4, 10, 18, .92);
}
#header .pull-right {
  padding-top: 8px;
  color: var(--rv-muted);
  font-size: 12px;
  letter-spacing: .5px;
}
#header .pull-right p { width: auto; margin: 0; padding: 0; }
#header .pull-right a { color: var(--rv-gold); }
#logo {
  display: flex !important;
  align-items: center;
  width: min(620px, 70%);
  height: 52px;
}
#logo img, #logo .valign-helper { display: none !important; }
#logo:before {
  display: block;
  margin-right: 12px;
  content: "RAHVION";
  color: var(--rv-white);
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 5px;
}
#logo:after {
  display: block;
  padding-left: 13px;
  border-left: 1px solid var(--rv-gold);
  content: "SUPPORT FOR RESIDENTS";
  color: var(--rv-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

#nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--rv-line);
  background: transparent;
  box-shadow: none;
}
#nav li { display: inline-flex; margin: 0; padding: 0; list-style: none; }
#nav li a {
  display: inline-flex;
  align-items: center;
  height: 48px;
  margin: 0 25px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--rv-muted-2);
  background-image: none !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
#nav li a.active, #nav li a:hover {
  color: var(--rv-gold);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--rv-gold);
}

#content {
  min-height: 610px;
  margin: 0;
  padding: 54px 0 64px;
  color: var(--rv-muted-2);
  background: transparent;
}
h1, h2, h3, h4, .subject { color: var(--rv-white); font-family: 'Manrope', 'Inter', sans-serif; }
h1 {
  margin: 0 0 20px;
  color: var(--rv-white);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.08;
}
h2, .subject { color: var(--rv-white); font-size: 22px; font-weight: 700; }
h3 { color: var(--rv-white); font-size: 17px; font-weight: 700; }
p { color: var(--rv-muted-2); }
hr { border: 0; border-top: 1px solid var(--rv-line); }

#landing_page .main-content:before {
  display: block;
  margin-bottom: 12px;
  content: "ZERO-FRICTION SUPPORT";
  color: var(--rv-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
}
#landing_page .main-content { width: calc(100% - 310px); }
#landing_page .main-content .thread-body {
  padding: 22px 0;
  border-top: 1px solid var(--rv-line);
  color: var(--rv-muted-2);
  background: transparent !important;
}
#landing_page .main-content .thread-body p:first-child {
  margin: 0 0 11px;
  color: var(--rv-white);
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.08;
}
#landing_page .main-content .thread-body p { max-width: 720px; }
#landing_page .search-form {
  margin-bottom: 28px;
  padding: 0;
}
#landing_page .search-form .search {
  width: calc(100% - 105px);
  min-height: 41px;
  margin: 0 7px 0 0;
}
#landing_page .sidebar {
  width: 275px;
  margin-left: 34px;
}
#landing_page .front-page-button {
  padding: 18px;
  border: 1px solid var(--rv-line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--rv-panel), var(--rv-black-soft));
  text-align: left;
}
#landing_page .front-page-button:before {
  display: block;
  margin-bottom: 14px;
  content: "CLIENT ACCESS";
  color: var(--rv-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
#landing_page .front-page-button p { margin: 0 0 10px; }
#landing_page .front-page-button p:last-child { margin-bottom: 0; }
#landing_page .front-page-button .button {
  display: block;
  max-width: none;
  padding: 13px 14px !important;
  color: var(--rv-white) !important;
  background: transparent !important;
  text-align: left;
}
#landing_page .front-page-button .button:hover {
  color: #02131f !important;
  background: var(--rv-gold) !important;
}
#landing_page #new_ticket,
#landing_page #check_status {
  width: min(760px, 100%);
  min-height: 116px;
  margin-top: 25px;
  padding: 22px 22px 22px 85px;
  border: 1px solid var(--rv-line);
  border-radius: 16px;
  background-color: var(--rv-black-soft);
  background-position: 22px 28px;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
#landing_page #new_ticket:hover,
#landing_page #check_status:hover {
  border-color: rgba(0, 208, 255, .45);
  background-color: var(--rv-panel);
  transform: translateY(-2px);
}
#landing_page #new_ticket h3,
#landing_page #check_status h3 { margin-bottom: 5px; color: var(--rv-white); font-size: 19px; font-weight: 700; }
#landing_page #new_ticket a,
#landing_page #check_status a { color: var(--rv-gold); }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
textarea, select {
  max-width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 10px !important;
  color: var(--rv-white);
  background: var(--rv-panel) !important;
  font: inherit;
  outline: 0;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--rv-gold) !important;
  box-shadow: 0 0 0 3px rgba(0, 208, 255, .16);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--rv-white);
  box-shadow: 0 0 0 1000px var(--rv-panel) inset !important;
  transition: background-color 9999s ease-out 0s;
}
select option { color: var(--rv-white); background: var(--rv-panel); }

input[type="submit"], input[type="button"], button, .button, a.button,
.green.button, .blue.button {
  padding: 11px 18px !important;
  border: 1px solid var(--rv-gold) !important;
  border-radius: 10px !important;
  color: #02131f !important;
  background: var(--rv-gold) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font: 700 12px/1.2 'Inter', Arial, Helvetica, sans-serif !important;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
input[type="submit"]:hover, input[type="button"]:hover, button:hover,
.button:hover, a.button:hover, .green.button:hover, .blue.button:hover {
  color: var(--rv-gold) !important;
  background: transparent !important;
}

#kb-search, #faq-search, .search.well, #clientLogin, #reply,
.sidebar .content, .infoTable, .featured-category {
  border: 1px solid var(--rv-line) !important;
  border-radius: 16px !important;
  color: var(--rv-muted-2);
  background: var(--rv-black-soft) !important;
  box-shadow: none !important;
}
#kb-search { padding: 16px; }
#kb > li {
  border-color: var(--rv-line);
  background: var(--rv-black-soft);
}
#faq ol, #faq ol li a { border-color: var(--rv-line); }
#faq ol li a:hover { background-color: var(--rv-panel); }
.featured-category { padding: 15px; }
.featured-category i { color: var(--rv-gold); text-shadow: none; }

table { max-width: 100%; color: var(--rv-muted-2); }
#ticketTable, table.list, table.form_table, table.ticket_info, table.custom-data {
  border-color: var(--rv-line) !important;
  background: var(--rv-black-soft) !important;
}
#ticketTable caption, #ticketTable th, table.list th, table.form_table th,
table.custom-data th, table .headline, table.custom-data .headline {
  border-color: var(--rv-line) !important;
  color: var(--rv-gold-soft);
  background: var(--rv-panel) !important;
}
#ticketTable td, table.list td, table.form_table td, table.custom-data td {
  border-color: var(--rv-line) !important;
  color: var(--rv-muted-2);
  background: var(--rv-black-soft) !important;
}
#ticketTable tr.alt td { background: var(--rv-panel) !important; }

.thread-entry .header, .thread-entry.response .header, .thread-entry.message .header {
  border-color: var(--rv-line);
  color: var(--rv-white);
  background: var(--rv-panel) !important;
}
.thread-entry .thread-body {
  border-color: var(--rv-line);
  color: var(--rv-muted-2);
  background: var(--rv-black-soft);
}
.thread-body .attachments { border-color: var(--rv-line); background: var(--rv-panel); }

#msg_notice, #msg_warning, #msg_error, #msg_info,
.info-banner, .warning-banner, .error-banner, .success-banner {
  height: auto;
  min-height: 36px;
  padding: 8px 12px 8px 37px !important;
  border-radius: 16px !important;
  color: var(--rv-muted-2);
  background-color: var(--rv-black-soft) !important;
}

#footer {
  min-height: 105px;
  padding: 23px 0 26px;
  border-top: 1px solid var(--rv-line);
  color: var(--rv-muted);
  background: transparent;
  text-align: left;
}
#footer:before {
  display: block;
  margin-bottom: 6px;
  content: "RAHVION \00B7 SUPPORT FOR RESIDENTS";
  color: var(--rv-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
#footer p { margin: 0; color: var(--rv-muted); font-size: 12px; }
#footer #poweredBy {
  width: auto;
  height: auto;
  margin: 4px 0 0;
  color: #5f7d94;
  background: none;
  font-size: 10px;
  text-indent: 0;
}

@media (max-width: 720px) {
  #container { width: min(1200px, calc(100% - 48px)); }
  #header { min-height: 116px; }
  #header .pull-right { float: none !important; text-align: left; }
  #logo { width: 100%; height: 48px; }
  #logo:before { font-size: 17px; letter-spacing: 4px; }
  #logo:after { font-size: 9px; }
  #nav li a { height: 40px; margin-right: 15px; font-size: 9px; letter-spacing: .8px; }
  #content { min-height: 500px; padding: 35px 0 45px; overflow-x: auto; }
  #landing_page .main-content, #landing_page .sidebar { width: 100%; margin: 0 0 22px; }
  #landing_page .main-content .thread-body p:first-child { font-size: 34px; }
  #landing_page .search-form .search { width: calc(100% - 92px) !important; }
  #landing_page #new_ticket, #landing_page #check_status { padding-left: 74px; background-position: 15px 25px; }
  #ticketForm td textarea, #clientLogin td textarea, #ticketForm div textarea, #clientLogin div textarea { width: 100%; }
  .main-content, .sidebar, .login-box, .span4, .span8 { display: block; width: 100%; margin: 0 0 18px; }
}

/* ---- navy1 fixes: contrast, sidebar rhythm, button solidity, KB cards ---- */
#landing_page h1, #content h1, .main-content h1, #ticketForm h1, #clientLogin h1 {
  color: var(--rv-white) !important;
}
#landing_page .sidebar .front-page-button { margin-bottom: 18px; }
#landing_page .front-page-button .button {
  color: #02131f !important;
  background: var(--rv-gold) !important;
  border-radius: 10px !important;
  text-align: center;
}
#landing_page .front-page-button .button:hover {
  color: var(--rv-gold) !important;
  background: transparent !important;
}
#landing_page .sidebar .content { padding: 16px 18px; }
#landing_page .sidebar .content .header {
  position: static;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: var(--rv-white);
  background: none;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
}
#landing_page .sidebar .content section > div { margin: 7px 0; }
input[type="reset"] {
  padding: 11px 18px !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  border-radius: 10px !important;
  color: var(--rv-muted-2) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font: 700 12px/1.2 'Inter', Arial, Helvetica, sans-serif !important;
  letter-spacing: .5px;
  cursor: pointer;
}
input[type="reset"]:hover {
  color: var(--rv-gold) !important;
  border-color: var(--rv-gold) !important;
  background: transparent !important;
}
#kb { list-style: none; margin: 0; padding: 0; }
#kb > li {
  list-style: none;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--rv-line);
  border-radius: 16px;
}

/* ---- navy2 fix: the landing welcome heading is an h2 inside .thread-body ---- */
#landing_page h2, #landing_page h3, #landing_page h4,
#content h2, #content h3, #content h4,
.thread-body h1, .thread-body h2, .thread-body h3, .thread-body h4 {
  color: var(--rv-white) !important;
}

/* ---- navy3 fix: footer aligned to the content column, header right side breathing room ---- */
#footer {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}
#header .pull-right { padding-right: 4px; }
#header .pull-right a { white-space: nowrap; }
