.support-workspace {
  --support-panel: rgba(15, 23, 42, 0.93);
  --support-panel-soft: rgba(30, 41, 59, 0.78);
  --support-border: rgba(148, 163, 184, 0.2);
  --support-muted: #94a3b8;
  --support-text: #e5e7eb;
  color: var(--support-text);
}

.support-page-header {
  gap: 1rem;
  padding: 1rem 1.25rem !important;
  background: linear-gradient(180deg, var(--support-panel-soft), var(--support-panel));
  border: 1px solid var(--support-border) !important;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.24);
}

.support-page-header h1,
.support-page-header .h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
}

.support-page-header .btn-toolbar {
  flex-wrap: wrap;
}

.support-workspace .btn {
  border-radius: 8px;
  font-weight: 800;
}

.support-lead {
  max-width: 780px;
  color: var(--support-muted) !important;
}

.support-card,
.support-article-card {
  background: linear-gradient(180deg, var(--support-panel-soft), var(--support-panel));
  border: 1px solid var(--support-border);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.22);
  overflow: hidden;
}

.support-card .card-header,
.support-article-card .card-header {
  background: rgba(15, 23, 42, 0.54) !important;
  border-bottom: 1px solid var(--support-border);
  color: #f8fafc;
}

.support-card .card-body,
.support-article-card .card-body {
  color: var(--support-text);
}

.support-article-link,
.support-ticket-item {
  background: rgba(15, 23, 42, 0.42);
  border-color: rgba(148, 163, 184, 0.16);
  color: var(--support-text);
  padding: 1rem 1.1rem;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.support-article-link:hover,
.support-ticket-item:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.38);
  color: #f8fafc;
  transform: translateY(-1px);
}

.support-ticket-list {
  gap: 0.75rem;
}

.support-ticket-list .support-ticket-item {
  border-radius: 8px;
  border-width: 1px;
  margin-bottom: 0.75rem;
}

.support-workspace .badge {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
}

.support-empty {
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: rgba(14, 165, 233, 0.09);
  color: var(--support-text);
}

.support-message-box {
  background: rgba(15, 23, 42, 0.58) !important;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px !important;
  color: var(--support-text);
}

.support-thread-message {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--support-text);
}

.support-thread-message.border-primary {
  border-left-color: #38bdf8 !important;
}

.support-thread-message.border-success {
  border-left-color: #10b981 !important;
}

.support-article-content {
  line-height: 1.75;
}

.support-article-content h1,
.support-article-content h2,
.support-article-content h3,
.support-article-content h4,
.support-article-content h5,
.support-article-content h6 {
  color: #f8fafc;
  font-weight: 850;
  letter-spacing: 0;
}

.support-article-content table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.support-article-content th,
.support-article-content td {
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.support-article-content th {
  background: rgba(15, 23, 42, 0.62);
  color: #f8fafc;
}

.support-workspace .breadcrumb,
.support-workspace .card-footer {
  background: rgba(15, 23, 42, 0.45);
  border-color: var(--support-border);
}

.support-workspace .breadcrumb a,
.support-workspace a:not(.btn) {
  color: #7dd3fc;
}

.support-workspace .text-muted {
  color: var(--support-muted) !important;
}

.support-modal-content {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.34);
}

html[data-bs-theme="light"] .support-workspace {
  --support-panel: #ffffff;
  --support-panel-soft: #f8fafc;
  --support-border: rgba(15, 23, 42, 0.12);
  --support-muted: #64748b;
  --support-text: #1f2937;
  color: var(--support-text) !important;
}

html[data-bs-theme="light"] .support-page-header {
  background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
  border-color: var(--support-border) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="light"] .support-page-header h1,
html[data-bs-theme="light"] .support-page-header .h2,
html[data-bs-theme="light"] .support-page-header h1 i,
html[data-bs-theme="light"] .support-page-header .h2 i {
  color: #1e293b !important;
}

html[data-bs-theme="light"] .support-card,
html[data-bs-theme="light"] .support-article-card {
  background: #ffffff !important;
  border-color: var(--support-border);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="light"] .support-card .card-header,
html[data-bs-theme="light"] .support-article-card .card-header {
  background: #f8fafc !important;
  border-bottom-color: var(--support-border);
  color: var(--support-text) !important;
}

html[data-bs-theme="light"] .support-card .card-header h1,
html[data-bs-theme="light"] .support-card .card-header h2,
html[data-bs-theme="light"] .support-card .card-header h3,
html[data-bs-theme="light"] .support-card .card-header h4,
html[data-bs-theme="light"] .support-card .card-header h5,
html[data-bs-theme="light"] .support-card .card-header h6,
html[data-bs-theme="light"] .support-article-card .card-header h1,
html[data-bs-theme="light"] .support-article-card .card-header h2,
html[data-bs-theme="light"] .support-article-card .card-header h3,
html[data-bs-theme="light"] .support-article-card .card-header h4,
html[data-bs-theme="light"] .support-article-card .card-header h5,
html[data-bs-theme="light"] .support-article-card .card-header h6 {
  color: var(--support-text) !important;
}

html[data-bs-theme="light"] .support-card .card-body,
html[data-bs-theme="light"] .support-article-card .card-body,
html[data-bs-theme="light"] .support-article-content {
  color: var(--support-text) !important;
}

html[data-bs-theme="light"] .support-article-link,
html[data-bs-theme="light"] .support-ticket-item {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--support-text) !important;
}

html[data-bs-theme="light"] .support-article-link:hover,
html[data-bs-theme="light"] .support-ticket-item:hover {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.28);
  color: #1d4ed8 !important;
}

html[data-bs-theme="light"] .support-empty {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.18);
  color: #1e3a8a !important;
}

html[data-bs-theme="light"] .support-empty i,
html[data-bs-theme="light"] .support-empty span,
html[data-bs-theme="light"] .support-empty div {
  color: inherit !important;
}

html[data-bs-theme="light"] .support-message-box,
html[data-bs-theme="light"] .support-thread-message {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--support-text) !important;
}

html[data-bs-theme="light"] .support-article-content h1,
html[data-bs-theme="light"] .support-article-content h2,
html[data-bs-theme="light"] .support-article-content h3,
html[data-bs-theme="light"] .support-article-content h4,
html[data-bs-theme="light"] .support-article-content h5,
html[data-bs-theme="light"] .support-article-content h6 {
  color: #1e293b !important;
}

html[data-bs-theme="light"] .support-article-content th {
  background: #f8fafc !important;
  color: #1e293b !important;
}

html[data-bs-theme="light"] .support-workspace .breadcrumb,
html[data-bs-theme="light"] .support-workspace .card-footer {
  background: #f8fafc !important;
  border-color: var(--support-border);
}

html[data-bs-theme="light"] .support-workspace .breadcrumb a,
html[data-bs-theme="light"] .support-workspace a:not(.btn) {
  color: #1d4ed8 !important;
}

html[data-bs-theme="light"] .support-workspace .text-muted {
  color: var(--support-muted) !important;
}

@media (max-width: 767.98px) {
  .support-page-header {
    align-items: stretch !important;
    flex-direction: column;
  }

  .support-page-header .btn,
  .support-page-header .btn-toolbar,
  .support-page-header .btn-toolbar .btn {
    width: 100%;
  }

  .support-ticket-item {
    align-items: flex-start !important;
    gap: 0.75rem;
  }
}
