/* ==========================================================================
   PRO-Admin osTicket — client theme
   Palette & design system aligned with pro-admin.pl / proadmin_v2
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url("../../proadmin/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url("../../proadmin/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  --pa-sky-50:    #f0f9ff;
  --pa-sky-100:   #e0f2fe;
  --pa-sky-200:   #bae6fd;
  --pa-sky-300:   #7dd3fc;
  --pa-sky-400:   #38bdf8;
  --pa-sky-500:   #0ea5e9;
  --pa-sky-600:   #0284c7;
  --pa-sky-700:   #0369a1;
  --pa-sky-800:   #075985;
  --pa-sky-900:   #0c4a6e;
  --pa-sky-950:   #082f49;
  --pa-slate-400: #94a3b8;
  --pa-slate-500: #64748b;
  --pa-slate-600: #475569;
  --pa-green-400: #4ade80;

  --pa-font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --pa-container: 80rem;
  --pa-radius:    0.75rem;
  --pa-radius-lg: 1rem;
  --pa-shadow-sm: 0 1px 3px 0 rgba(0,0,0,.06), 0 1px 2px -1px rgba(0,0,0,.06);
  --pa-shadow-md: 0 4px 12px -2px rgba(2,132,199,.09), 0 2px 4px -2px rgba(0,0,0,.05);
  --pa-shadow-lg: 0 10px 24px -4px rgba(2,132,199,.12), 0 4px 6px -4px rgba(0,0,0,.07);
}

/* ── Base ──────────────────────────────────────────────────────────── */
html {
  min-height: 100%;
  background: var(--pa-sky-50);
  scroll-behavior: smooth;
}

body.proadmin-client {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--pa-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--pa-sky-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--pa-sky-50);
  background-image:
    radial-gradient(circle at 14% 0, rgba(2,132,199,.07), transparent 360px),
    radial-gradient(circle at 92% 100px, rgba(14,165,233,.05), transparent 320px),
    linear-gradient(180deg, var(--pa-sky-50) 0, #f8fbff 400px, #ffffff 900px);
}

body.proadmin-client,
.proadmin-client input,
.proadmin-client select,
.proadmin-client textarea,
.proadmin-client button {
  font-family: var(--pa-font);
}

/* ── Links ─────────────────────────────────────────────────────────── */
.proadmin-client a,
.proadmin-client .link {
  color: var(--pa-sky-700);
  text-decoration: none;
  border-bottom: 0;
  transition: color .18s;
}

.proadmin-client a:hover,
.proadmin-client .link:hover {
  color: var(--pa-sky-800);
  border-bottom: 0;
}

/* ── Typography ────────────────────────────────────────────────────── */
.proadmin-client h1,
.proadmin-client h2,
.proadmin-client h3,
.proadmin-client h4 {
  margin: 0 0 .75rem;
  color: var(--pa-sky-950);
  font-weight: 700;
  line-height: 1.2;
}

.proadmin-client h1 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.015em;
}

.proadmin-client h2 { font-size: 1.2rem; }
.proadmin-client h3 { font-size: 1.05rem; }

.proadmin-client p {
  margin: 0 0 .9rem;
  color: var(--pa-slate-600);
  font-size: .94rem;
  line-height: 1.7;
}

/* ── Main container ─────────────────────────────────────────────────── */
#container {
  width: min(100% - 3rem, var(--pa-container));
  margin: 0 auto;
  flex: 1 0 auto;
  background: transparent;
  box-shadow: none;
}

/* ── Header ─────────────────────────────────────────────────────────── */
#header {
  min-height: 64px;
  margin: 0;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--pa-sky-200);
  border-top: 0;
  border-radius: 0 0 var(--pa-radius-lg) var(--pa-radius-lg);
  box-shadow: 0 2px 20px rgba(2,132,199,.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  border-bottom: 0;
}

.valign-helper { display: none; }

#header #logo img {
  height: auto;
  width: auto;
  max-height: 40px;
  max-width: 200px;
  object-fit: contain;
}

#header p {
  width: auto;
  margin: 0;
  padding: 0;
}

.proadmin-header-actions {
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-wrap: wrap;
  color: var(--pa-slate-500);
  font-size: .875rem;
}

.proadmin-client-links {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.proadmin-client-links a { font-weight: 600; }

.proadmin-language-links:empty { display: none; }

.proadmin-header-cta {
  min-height: 38px;
  padding: 0 1.25rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: var(--pa-radius);
  background: var(--pa-sky-700);
  color: #fff !important;
  font-size: .855rem;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 4px 16px rgba(3,105,161,.24);
  transition: background .18s, transform .2s ease, box-shadow .2s ease;
  border-bottom: 0 !important;
  white-space: nowrap;
}

.proadmin-header-cta:hover {
  background: var(--pa-sky-800);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(3,105,161,.32);
}

/* ── Mobile hamburger ───────────────────────────────────────────────── */
.pa-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--pa-sky-200);
  border-radius: var(--pa-radius);
  background: transparent;
  cursor: pointer;
  color: var(--pa-sky-800);
  flex-shrink: 0;
  transition: background .18s;
}

.pa-nav-toggle:hover { background: var(--pa-sky-50); }

.pa-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}

.pa-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pa-nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.pa-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Nav ────────────────────────────────────────────────────────────── */
#nav {
  min-height: 40px;
  margin: 6px 0 0;
  padding: 3px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(186,230,253,.5);
  border-radius: var(--pa-radius);
  box-shadow: 0 1px 4px rgba(2,132,199,.06);
  white-space: nowrap;
  list-style: none;
}

#nav li {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

#nav li a,
#nav li a.new {
  min-height: 32px;
  height: auto;
  margin: 0;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  background: transparent;
  background-image: none !important;
  color: var(--pa-sky-900) !important;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: none;
  transition: background .15s, color .15s;
  text-decoration: none;
  border-bottom: 0;
  position: relative;
}

#nav li a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--pa-sky-600);
  width: 0;
  transition: width .22s ease;
}

#nav li a.active,
#nav li a.new.active {
  background: rgba(224,242,254,.85);
  color: var(--pa-sky-800) !important;
  font-weight: 600;
}

#nav li a.active::after,
#nav li a.new.active::after {
  width: calc(100% - 24px);
}

#nav li a:hover,
#nav li a.new:hover {
  background: var(--pa-sky-50);
  color: var(--pa-sky-700) !important;
}

#nav li a:hover::after,
#nav li a.new:hover::after {
  width: calc(100% - 24px);
}

/* ── Content ────────────────────────────────────────────────────────── */
#content {
  min-height: 0;
  margin: 0;
  padding: 1.375rem 0 1rem;
}

/* ── Alerts ─────────────────────────────────────────────────────────── */
#msg_notice,
#msg_warning,
#msg_error,
#msg_info,
.warning-banner,
.error_bar,
.warning_bar,
.notice_bar {
  margin: 0 0 1rem;
  padding: .75rem 1rem .75rem 2.75rem;
  border: 0;
  border-left: 3px solid var(--pa-sky-400);
  border-radius: var(--pa-radius);
  font-size: .9rem;
  background: var(--pa-sky-50);
  box-shadow: var(--pa-shadow-sm);
  position: relative;
}

#msg_warning, .warning_bar { background: #fffbeb; border-left-color: #f59e0b; }
#msg_error,   .error_bar   { background: #fef2f2; border-left-color: #ef4444; }

/* ── Landing page ───────────────────────────────────────────────────── */
#landing_page {
  width: 100%;
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

/* Hero */
.support-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--pa-sky-200);
  border-radius: var(--pa-radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(240,249,255,.75)),
    linear-gradient(90deg, rgba(3,105,161,.06), transparent 58%);
  box-shadow: var(--pa-shadow-md);
}

.support-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 92% 22%, rgba(14,165,233,.11), transparent 260px);
  pointer-events: none;
}

.support-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2rem);
}

#landing_page .support-hero-copy.thread-body {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#landing_page .support-hero-copy.thread-body h1 {
  max-width: 660px;
  margin-bottom: .5rem;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem) !important;
  font-weight: 800;
  line-height: 1.15;
  color: var(--pa-sky-950);
  letter-spacing: -.02em;
}

#landing_page .support-hero-copy.thread-body p {
  max-width: 680px;
  margin: 0;
  color: var(--pa-slate-600);
  font-size: .94rem;
  line-height: 1.68;
}

.support-hero-cta {
  display: grid;
  gap: .625rem;
  align-self: center;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.button,
.button:visited,
input[type="submit"],
input[type="button"],
button[type="submit"],
.action-button,
.btn {
  min-height: 38px;
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  border: 1px solid transparent;
  border-radius: var(--pa-radius);
  background: var(--pa-sky-700);
  color: #fff !important;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: none;
  cursor: pointer;
  transition: background .18s, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 16px rgba(3,105,161,.2);
  text-decoration: none;
  border-bottom: 0 !important;
}

.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button[type="submit"]:hover,
.action-button:hover,
.btn:hover {
  background: var(--pa-sky-800);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(3,105,161,.28);
}

.button:active,
input[type="submit"]:active,
input[type="button"]:active,
button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(3,105,161,.2);
}

/* Hero CTA buttons — larger and more prominent */
.support-hero-cta .button {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 22px;
  font-size: .925rem;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: var(--pa-radius-lg);
}

.primary-cta {
  background: var(--pa-sky-700) !important;
  box-shadow: 0 8px 28px rgba(3,105,161,.3), 0 2px 6px rgba(3,105,161,.14) !important;
}

.primary-cta:hover {
  box-shadow: 0 14px 36px rgba(3,105,161,.36), 0 2px 8px rgba(3,105,161,.18) !important;
}

.secondary-cta,
.green.button,
.green.button:visited,
input[type="reset"] {
  background: rgba(255,255,255,.92) !important;
  color: var(--pa-sky-800) !important;
  border: 1.5px solid var(--pa-sky-300) !important;
  box-shadow: none !important;
}

.secondary-cta:hover,
.green.button:hover,
input[type="reset"]:hover {
  background: #fff !important;
  color: var(--pa-sky-900) !important;
  border-color: var(--pa-sky-500) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2,132,199,.12) !important;
}

/* ── Action cards (landing) ─────────────────────────────────────────── */
.support-action-grid {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .875rem;
  align-items: stretch;
}

.support-action-card {
  padding: 1.25rem 1.125rem;
  display: flex !important;
  flex-direction: column;
  gap: .5rem;
  border: 1px solid var(--pa-sky-200);
  border-top: 2px solid var(--pa-sky-400);
  border-radius: var(--pa-radius-lg);
  background: #fff;
  box-shadow: var(--pa-shadow-sm);
  text-decoration: none !important;
  transition: transform .22s ease, box-shadow .22s ease, border-top-color .22s ease;
}

.support-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(2,132,199,.14);
  border-top-color: var(--pa-sky-700);
}

/* Category label badge */
.support-action-card span {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--pa-sky-50);
  color: var(--pa-sky-700);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border: 1px solid var(--pa-sky-100);
}

.support-action-card:hover span {
  background: var(--pa-sky-100);
  border-color: var(--pa-sky-200);
}

/* Short description */
.support-action-card em {
  color: var(--pa-slate-500);
  font-size: .82rem;
  font-style: normal;
  line-height: 1.5;
}

/* Main action text */
.support-action-card strong {
  margin-top: auto;
  padding-top: .25rem;
  color: var(--pa-sky-950);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

.support-action-card strong::after {
  content: " →";
  display: inline-block;
  font-size: .85em;
  font-weight: 400;
  opacity: .4;
  transition: transform .2s ease, opacity .2s;
}

.support-action-card:hover strong::after {
  transform: translateX(4px);
  opacity: .85;
}

/* ── Main content wrapper ───────────────────────────────────────────── */
.main-content {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

/* ── Form inputs ─────────────────────────────────────────────────────── */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
select,
textarea,
.searchbar .search,
.search-form .search {
  width: 100%;
  max-width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--pa-sky-200);
  border-radius: var(--pa-radius);
  background: #fff;
  color: var(--pa-sky-950);
  font-size: .9rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(8,47,73,.03);
  transition: border-color .18s, box-shadow .18s;
}

textarea { min-height: 150px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--pa-sky-400);
  box-shadow: 0 0 0 3px rgba(56,189,248,.16);
}

input::placeholder,
textarea::placeholder { color: var(--pa-slate-400); }

/* ── Search form ─────────────────────────────────────────────────────── */
.search-form { max-width: 700px; padding: 0; }

.search-form form,
.searchbar form,
#ticketSearchForm {
  display: flex;
  align-items: center;
  gap: .625rem;
}

/* ── White panels ─────────────────────────────────────────────────────── */
#landing_page .thread-body:not(.support-hero-copy),
.faq-content,
#clientLogin,
#ticketForm,
.search.well,
.sidebar .content,
.featured-category.front-page {
  border: 1px solid var(--pa-sky-100);
  border-radius: var(--pa-radius-lg);
  background: #fff;
  box-shadow: var(--pa-shadow-sm);
}

#landing_page .thread-body:not(.support-hero-copy) { padding: 1.5rem; }

/* ── Ticket form ─────────────────────────────────────────────────────── */
#ticketForm,
#clientLogin {
  padding: 1.5rem;
  background-image: none;
  overflow-x: auto;
}

#ticketForm > table,
#ticketTable { width: 100% !important; }

#ticketForm > table td,
#ticketForm > table td + td {
  width: auto;
  padding: 8px;
}

#ticketForm td:first-child {
  width: 200px;
  color: var(--pa-sky-800);
  font-weight: 600;
  font-size: .875rem;
}

#ticketForm td textarea,
#clientLogin td textarea,
#ticketForm div textarea,
#clientLogin div textarea,
#clientLogin div input { width: 100%; }

#ticketForm .buttons,
.buttons {
  display: flex;
  justify-content: center;
  gap: .625rem;
  flex-wrap: wrap;
}

/* ── Login form ──────────────────────────────────────────────────────── */
#clientLogin .login-layout {
  display: flex;
  align-items: flex-start;
}

#clientLogin .login-box {
  width: 48%;
  padding: 0 1.5rem 0 0;
  border-right: 1px solid var(--pa-sky-100);
  box-shadow: none;
}

#clientLogin .instructions {
  padding: 0 0 0 1.5rem;
  color: var(--pa-slate-500);
  font-size: .9rem;
}

#clientLogin .forgot-link {
  padding-top: 4px;
  display: inline-block;
  font-size: .875rem;
}

#clientLogin .register-prompt { margin-bottom: 5px; }

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.sidebar { width: auto; margin: 0; }
.front-page-button { display: none; }
.sidebar .content { padding: 1rem; }

.sidebar section .header {
  margin-bottom: .625rem;
  color: var(--pa-sky-950);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 1.5rem;
}

.span8, .span4 { width: auto; margin: 0; display: block; }

/* ── Landing page extra sections ────────────────────────────────────── */
.pa-kb-section {
  padding-top: .25rem;
}

.pa-section-title {
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--pa-sky-100);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pa-sky-950);
  letter-spacing: -.005em;
}

/* ── Knowledge base ──────────────────────────────────────────────────── */
#kb { padding: 0; }

#kb li,
.featured-category.front-page {
  margin: 0 0 .875rem;
  padding: 1.25rem;
  list-style: none;
}

#kb li i { display: none; }

#faq { padding: 0; }
#faq ol { padding-left: 1.375rem; }
#faq li { margin: .5rem 0; }

/* ── Ticket table ────────────────────────────────────────────────────── */
#ticketTable {
  overflow: hidden;
  border: 1px solid var(--pa-sky-100);
  border-radius: var(--pa-radius-lg);
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: var(--pa-shadow-sm);
}

#ticketTable caption {
  padding: .75rem .875rem;
  border: 0;
  background: var(--pa-sky-50);
  color: var(--pa-sky-950);
  font-weight: 700;
  font-size: .875rem;
  text-align: left;
  letter-spacing: .01em;
}

#ticketTable th {
  height: auto;
  padding: .625rem .75rem;
  border: 0;
  border-bottom: 1px solid var(--pa-sky-200);
  background: var(--pa-sky-100);
  color: var(--pa-sky-950);
  font-size: .775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .045em;
}

#ticketTable th a { color: var(--pa-sky-950); }

#ticketTable td {
  padding: .75rem;
  border: 0;
  border-top: 1px solid var(--pa-sky-50);
  color: var(--pa-slate-600);
  font-size: .875rem;
}

#ticketTable tr:hover td { background: var(--pa-sky-50); }

/* ── Info tables (ticket view) ───────────────────────────────────────── */
.infoTable,
table.infoTable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid var(--pa-sky-100);
  border-radius: var(--pa-radius);
  overflow: hidden;
}

.infoTable .headline,
.infoTable td.headline {
  padding: .625rem .875rem;
  background: var(--pa-sky-100);
  color: var(--pa-sky-950);
  font-weight: 700;
  font-size: .775rem;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.infoTable th {
  width: 130px;
  padding: .5rem .875rem;
  background: var(--pa-sky-50);
  color: var(--pa-sky-800);
  font-weight: 600;
  font-size: .85rem;
  text-align: left;
  border-top: 1px solid var(--pa-sky-100);
  white-space: nowrap;
}

.infoTable td {
  padding: .5rem .875rem;
  color: var(--pa-sky-950);
  font-size: .875rem;
  border-top: 1px solid var(--pa-sky-100);
}

/* ── Search well ─────────────────────────────────────────────────────── */
.search.well {
  margin: 0 0 .875rem;
  padding: 1rem;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
#footer {
  flex-shrink: 0;
  margin-top: .5rem;
  background: var(--pa-sky-950);
  color: #fff;
}

#footer a {
  color: var(--pa-sky-200);
  transition: color .18s;
  border-bottom: 0;
  text-decoration: none;
}

#footer a:hover { color: #fff; }

#footer p {
  margin: 0;
  color: var(--pa-sky-200);
  font-size: .82rem;
  line-height: 1.55;
}

/* Footer grid */
.proadmin-footer-inner {
  width: min(100% - 3rem, var(--pa-container));
  margin: 0 auto;
  padding: 2.25rem 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, .8fr) minmax(190px, .9fr);
  gap: 2rem;
}

/* Footer brand column */
.proadmin-footer-brand p {
  font-size: .82rem;
  color: var(--pa-sky-200);
  max-width: 22rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Footer links column */
.proadmin-footer-links-group strong {
  display: block;
  margin-bottom: .625rem;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.proadmin-footer-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.proadmin-footer-links a {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .82rem;
  color: var(--pa-sky-300);
}

.proadmin-footer-links a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pa-sky-600);
  flex-shrink: 0;
  transition: background .18s;
}

.proadmin-footer-links a:hover { color: #fff; }
.proadmin-footer-links a:hover::before { background: var(--pa-sky-300); }

/* Footer contact column */
.proadmin-footer-contact-group strong {
  display: block;
  margin-bottom: .625rem;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.proadmin-footer-contact-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .82rem;
}

.proadmin-footer-contact-group p {
  color: var(--pa-sky-300);
  font-size: .82rem;
}

.pa-status-badge,
#footer .pa-status-badge,
span.pa-status-badge {
  display: inline-flex !important;
  align-items: center;
  gap: .375rem;
  margin-top: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: #4ade80 !important;
  line-height: 1.4;
}

.pa-status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pa-pulse 2s ease infinite;
}

@keyframes pa-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* Footer bottom bar */
.proadmin-footer-bottom {
  width: min(100% - 3rem, var(--pa-container));
  margin: 0 auto;
  padding: .875rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
}

.proadmin-footer-bottom p,
.proadmin-footer-bottom a {
  font-size: .75rem;
  color: rgba(186,230,253,.5);
}

.proadmin-footer-bottom a:hover { color: var(--pa-sky-300); }

#footer #poweredBy {
  width: auto;
  height: auto;
  margin: 0;
  text-indent: 0;
  background: none;
  font-size: .75rem;
  color: rgba(186,230,253,.45);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (min-width: 981px) {
  #landing_page { min-height: 460px; }
}

@media (max-width: 980px) {
  .support-hero-content { grid-template-columns: 1fr; }

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

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

  .row { grid-template-columns: 1fr; }

  #clientLogin .login-layout { flex-direction: column; }

  #clientLogin .login-box,
  #clientLogin .instructions {
    width: auto;
    padding: 0;
    border: 0;
  }

  #clientLogin .instructions { margin-top: 1.25rem; }

  #ticketForm > table,
  #ticketForm tbody,
  #ticketForm tr,
  #ticketForm td {
    width: 100% !important;
    display: block;
  }
}

@media (max-width: 700px) {
  #container,
  .proadmin-footer-inner,
  .proadmin-footer-bottom {
    width: min(100% - 1.5rem, var(--pa-container));
  }

  #header {
    min-height: 56px;
    padding: .75rem 1rem;
    flex-wrap: nowrap;
  }

  .proadmin-header-actions { display: none; }

  .pa-nav-toggle { display: flex; }

  #nav {
    margin-top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
    padding: .25rem;
    border-radius: var(--pa-radius);
    display: none;
    overflow: visible;
    white-space: normal;
  }

  #nav.pa-nav-open { display: flex; }

  #nav li { width: 100%; }

  #nav li a,
  #nav li a.new {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    box-sizing: border-box;
  }

  #nav li a::after { display: none; }

  #content { padding-top: .875rem; }

  .support-hero-content { padding: 1.25rem; }

  #landing_page .support-hero-copy.thread-body h1 {
    font-size: 1.65rem !important;
  }

  .support-hero-cta,
  .support-action-grid { grid-template-columns: 1fr; }

  .support-hero-cta .button {
    width: 100%;
    min-height: 44px;
  }

  .search-form form,
  .searchbar form,
  #ticketSearchForm {
    flex-direction: column;
    align-items: stretch;
  }

  #ticketTable {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .proadmin-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.75rem 0 1.25rem;
  }
}
