/**
 * G-Com minimal CSS on top of Bootstrap 5.3
 * Only remnants Bootstrap does not cover.
 */

/* Avatar sizes */
.avatar-sm {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.avatar-lg {
  width: 6rem;
  height: 6rem;
  font-size: 2rem;
  flex-shrink: 0;
}
.avatar-lg img,
.avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.object-fit-cover {
  object-fit: cover;
}

/* Legacy form-group → Bootstrap-like spacing if pages still use it */
.form-group {
  margin-bottom: 1rem;
}
.form-group > label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  background-clip: padding-box;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.form-actions {
  margin-top: 1rem;
}
.form-footer {
  margin-top: 1rem;
  font-size: 0.9rem;
}
.btn-block {
  display: block;
  width: 100%;
}

/* Flash aliases → map to alert look if class flash still used */
.flash {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--bs-border-radius);
}
.flash-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}
.flash-error,
.flash-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}
.flash-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}
.flash-info {
  color: #055160;
  background-color: #cff4fc;
  border-color: #b6effb;
}

/* Soft shell/page wrappers still present in templates */
.page {
  /* no-op; container comes from layout */
}
.shell {
  /* no longer constrains layout; Bootstrap container handles width */
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Auth pages */
.auth-wrap {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.auth-sub {
  color: var(--bs-secondary-color);
  margin-bottom: 1rem;
}

/* XP progress helpers */
.xp-bar-nav {
  display: inline-block;
  width: 4rem;
  height: 0.35rem;
  background: var(--bs-secondary-bg);
  border-radius: 999px;
  overflow: hidden;
  vertical-align: middle;
}
.xp-bar-nav-fill {
  display: block;
  height: 100%;
  background: var(--bs-primary);
}

/* Rank badge with CSS variable color */
.rank-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--rank-color, #6c757d);
}
.chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--bs-secondary-bg);
  color: var(--bs-body-color);
}
.chip-muted {
  opacity: 0.85;
}

/* Profile banner placeholder */
.profile-banner {
  min-height: 140px;
  background: linear-gradient(135deg, #dee2e6, #adb5bd);
  border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
}
.profile-header-main {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin-top: -2.5rem;
  padding: 0 1rem 1rem;
}
.profile-name {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}
.dash-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

/* Wall media thumbs */
.wall-media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wall-media-item.wall-media-image {
  width: 150px;
  height: 150px;
  position: relative;
}
.wall-thumb-btn {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  display: block;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--bs-border-radius);
}
.wall-thumb-btn img {
  width: 100%;
  height: 100%;
  max-width: none !important;
  object-fit: cover;
  display: block;
}
.wall-thumb-btn:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}
.wall-media-del {
  margin-top: 0.25rem;
}

/* Wall lightbox */
.wall-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.wall-lightbox.is-open {
  display: flex;
}
.wall-lightbox-inner {
  position: relative;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
}
.wall-lightbox-inner img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
  margin: 0 auto;
}
.wall-lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  border: 0;
  background: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

/* PM autocomplete dropdown */
.pm-ac-wrap {
  position: relative;
}
.pm-ac-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow: auto;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow);
}
.pm-ac-list li {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}
.pm-ac-list li:hover,
.pm-ac-list li.is-active {
  background: var(--bs-tertiary-bg);
}

/* Dictionary audio button spacing */
.dict-play-btn {
  margin-left: 0.35rem;
}

/* Tables in tight layouts */
.table-responsive {
  width: 100%;
}

/* Hero simple blocks */
.page-hero h1,
.dictionary-hero h1 {
  margin-bottom: 0.35rem;
}
.page-hero p,
.dictionary-hero p {
  color: var(--bs-secondary-color);
}

/* MOTD / DS cards: rely on .card; keep minor spacing */
.motd-dash-media img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bs-border-radius);
  margin-bottom: 0.75rem;
}
.ds-card-bg {
  display: none;
}

/* Utility used in templates */
.text-muted {
  color: var(--bs-secondary-color) !important;
}
.mb-2 {
  margin-bottom: 0.5rem !important;
}
.mt-2 {
  margin-top: 0.5rem !important;
}

/* AB HIER ÄNDERUNGEN */

/**
 * G-Com facelift test V2
 * Load AFTER bootstrap.min.css and g-com.css.
 * CSS-only. Remove this stylesheet to restore the previous look.
 * Experimental. Not part of the current G-Com release.
 */

:root {
  --gcom-bg: #070b14;
  --gcom-bg-secondary: #0a101c;
  --gcom-surface: rgba(14, 20, 34, 0.88);
  --gcom-surface-solid: #101722;
  --gcom-surface-2: #141c2b;
  --gcom-surface-hover: #1a2436;
  --gcom-border: rgba(120, 136, 176, 0.16);
  --gcom-border-accent: rgba(139, 124, 246, 0.42);
  --gcom-text: #e8edf7;
  --gcom-text-muted: #8b97b3;
  --gcom-primary: #7c5cff;
  --gcom-primary-hover: #8d72ff;
  --gcom-primary-glow: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 8px 22px rgba(92, 64, 214, 0.28);
  --gcom-success: #3dce8c;
  --gcom-warning: #e6b34d;
  --gcom-danger: #ef6d78;
  --gcom-info: #6eb6ff;
  --gcom-radius: 0.8rem;
  --gcom-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);

  --bs-body-bg: var(--gcom-bg);
  --bs-body-color: var(--gcom-text);
  --bs-secondary-color: var(--gcom-text-muted);
  --bs-tertiary-color: #6f7c99;
  --bs-emphasis-color: #ffffff;
  --bs-heading-color: #f4f7fd;
  --bs-link-color: #c4b6ff;
  --bs-link-hover-color: #ddd4ff;
  --bs-border-color: var(--gcom-border);
  --bs-border-color-translucent: var(--gcom-border);
  --bs-primary: #7c5cff;
  --bs-primary-rgb: 124, 92, 255;
  --bs-secondary-bg: #141c2b;
  --bs-tertiary-bg: #1a2436;
}

html,
body {
  background:
    radial-gradient(900px 420px at 80% -8%, rgba(88, 70, 180, 0.08), transparent 60%),
    radial-gradient(700px 320px at 0% 0%, rgba(40, 70, 140, 0.06), transparent 55%),
    var(--gcom-bg);
  color: var(--gcom-text);
  color-scheme: dark;
}

body {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

h1, .h1 { font-size: 1.65rem; font-weight: 650; letter-spacing: -0.02em; color: #f7f9ff; }
h2, .h2 { font-size: 1.28rem; color: #f3f6fd; }
h3, .h3 { font-size: 1.12rem; color: #eef2fb; }
.h4, .h5, .h6, h4, h5, h6 { color: #e7edf8; }

a { color: #c9befc; text-decoration: none; }
a:hover { color: #ebe4ff; }

::selection {
  background: rgba(124, 92, 255, 0.32);
  color: #fff;
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(8, 12, 22, 0.9) !important;
  border-bottom: 1px solid rgba(130, 146, 186, 0.14) !important;
  backdrop-filter: blur(12px);
  box-shadow: none;
  min-height: 3.35rem;
}
.navbar .container,
.navbar .container-fluid {
  min-height: 3.35rem;
}
.navbar .navbar-brand {
  color: #f4f7ff !important;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.navbar .nav-link {
  color: #b7c2da !important;
  font-size: 0.86rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.04);
}
.navbar .nav-link.active {
  color: #fff !important;
  background: rgba(124, 92, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(139, 124, 246, 0.35), 0 0 16px rgba(124, 92, 255, 0.18);
}
.navbar-toggler {
  border-color: rgba(130, 146, 186, 0.28);
  padding: 0.3rem 0.45rem;
}
.navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(1.4);
}

/* ---------- Sidebar / Offcanvas ---------- */
aside,
.offcanvas,
.offcanvas-start {
  background: #0b111c;
  color: var(--gcom-text);
  border-color: rgba(130, 146, 186, 0.14);
}
.offcanvas-header {
  border-bottom: 1px solid rgba(130, 146, 186, 0.14);
}
.btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.7;
}
.nav-pills {
  gap: 0.15rem;
}
.nav-pills .nav-link {
  color: #c2cbe0;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  padding: 0.42rem 0.7rem;
}
.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background: linear-gradient(180deg, rgba(139, 114, 255, 0.95), rgba(108, 78, 240, 0.95));
  box-shadow: var(--gcom-primary-glow);
}
aside .small.text-muted,
.offcanvas .small.text-muted,
.nav .small.text-muted {
  color: #6d7a96 !important;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin-top: 0.85rem !important;
}
hr {
  border-color: rgba(130, 146, 186, 0.14);
  opacity: 1;
}

/* ---------- Cards / panels ---------- */
.card {
  background: linear-gradient(180deg, rgba(16, 23, 38, 0.94), rgba(12, 18, 30, 0.92));
  color: var(--gcom-text);
  border: 1px solid rgba(126, 142, 184, 0.16);
  border-radius: var(--gcom-radius);
  box-shadow: var(--gcom-shadow);
}
.card-header,
.card-footer {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(126, 142, 184, 0.14);
  color: var(--gcom-text);
}
.card-body {
  padding: 1.05rem 1.1rem;
}
.card-title {
  color: #f4f7fd;
  margin-bottom: 0.35rem;
}
.card .text-muted,
.text-muted,
small.text-muted {
  color: var(--gcom-text-muted) !important;
}
.card:hover {
  border-color: rgba(150, 164, 204, 0.28);
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 0.6rem;
  font-weight: 560;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #7457f6;
  --bs-btn-border-color: #7457f6;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #866bff;
  --bs-btn-hover-border-color: #866bff;
  --bs-btn-active-bg: #6346e4;
  --bs-btn-active-border-color: #6346e4;
  color: #fff;
  background: linear-gradient(180deg, #8a70ff, #6d52f2);
  border-color: #735af3;
  box-shadow: 0 8px 18px rgba(98, 70, 220, 0.28);
}
.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background: linear-gradient(180deg, #9882ff, #7b62f6);
  box-shadow: 0 10px 22px rgba(124, 92, 255, 0.34);
}
.btn-outline-secondary,
.btn-outline-primary,
.btn-ghost {
  color: #d5dced;
  background: rgba(10, 14, 24, 0.35);
  border-color: rgba(140, 156, 196, 0.28);
}
.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-ghost:hover,
.btn-outline-secondary:focus,
.btn-outline-primary:focus {
  color: #fff;
  background: rgba(124, 92, 255, 0.14);
  border-color: rgba(156, 136, 255, 0.55);
}
.btn-danger {
  background: #c45360;
  border-color: #c45360;
}
.btn-success {
  background: #2faf7a;
  border-color: #2faf7a;
}

/* ---------- Forms ---------- */
.form-control,
.form-select,
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-group select,
.form-group textarea {
  background-color: #0c121e;
  color: #eef3fb;
  border: 1px solid rgba(132, 148, 188, 0.24);
  border-radius: 0.6rem;
}
.form-control::placeholder,
textarea::placeholder {
  color: #74819d;
}
.form-control:hover,
.form-select:hover {
  border-color: rgba(156, 170, 208, 0.38);
}
.form-control:focus,
.form-select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background-color: #101826;
  color: #fff;
  border-color: rgba(156, 136, 255, 0.7);
  box-shadow: 0 0 0 0.18rem rgba(124, 92, 255, 0.2);
}
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c5cee0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.form-label,
.form-check-label {
  color: #d7deee;
  font-size: 0.86rem;
}
.form-text,
.form-hint,
.form-help {
  color: #8491ad !important;
}
.form-check-input {
  background-color: #0c121e;
  border-color: rgba(140, 156, 196, 0.4);
}
.form-check-input:checked {
  background-color: var(--gcom-primary);
  border-color: var(--gcom-primary);
  box-shadow: 0 0 0 0.15rem rgba(124, 92, 255, 0.2);
}
.input-group-text {
  background: #121a28;
  color: #d7deee;
  border-color: rgba(132, 148, 188, 0.24);
}

/* ---------- Tables ---------- */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: #e6ecf7;
  --bs-table-border-color: rgba(126, 142, 184, 0.12);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.025);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.035);
  --bs-table-hover-color: #fff;
  color: #e6ecf7;
}
.table > :not(caption) > * > * {
  background-color: transparent;
  color: inherit;
  border-bottom-color: rgba(126, 142, 184, 0.12);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.table thead th {
  color: #8ea0c0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom-color: rgba(126, 142, 184, 0.22);
}
.table-hover > tbody > tr:hover > * {
  background-color: rgba(255, 255, 255, 0.035);
  color: #fff;
}

/* ---------- Badges / alerts ---------- */
.badge {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge.text-bg-primary,
.badge.bg-primary {
  background: rgba(124, 92, 255, 0.16) !important;
  color: #ddd6ff !important;
  border: 1px solid rgba(156, 136, 255, 0.32);
}
.badge.text-bg-success,
.badge.bg-success {
  background: rgba(61, 206, 140, 0.12) !important;
  color: #b7f3d6 !important;
  border: 1px solid rgba(61, 206, 140, 0.3);
}
.badge.text-bg-danger,
.badge.bg-danger {
  background: rgba(239, 109, 120, 0.12) !important;
  color: #ffd0d4 !important;
  border: 1px solid rgba(239, 109, 120, 0.3);
}
.badge.text-bg-warning,
.badge.bg-warning {
  background: rgba(230, 179, 77, 0.12) !important;
  color: #ffe4ad !important;
  border: 1px solid rgba(230, 179, 77, 0.3);
}
.badge.text-bg-secondary,
.badge.bg-secondary,
.badge.text-bg-info,
.badge.bg-info {
  background: rgba(142, 160, 192, 0.12) !important;
  color: #d5deef !important;
  border: 1px solid rgba(142, 160, 192, 0.24);
}
.alert {
  border-radius: 0.7rem;
  border-width: 1px;
}
.alert-success,
.flash-success {
  color: #c8f6e0;
  background: rgba(61, 206, 140, 0.1);
  border-color: rgba(61, 206, 140, 0.28);
}
.alert-danger,
.flash-error,
.flash-danger {
  color: #ffd4d8;
  background: rgba(239, 109, 120, 0.1);
  border-color: rgba(239, 109, 120, 0.28);
}
.alert-warning,
.flash-warning {
  color: #ffe7ba;
  background: rgba(230, 179, 77, 0.1);
  border-color: rgba(230, 179, 77, 0.28);
}
.alert-info,
.flash-info,
.alert-primary {
  color: #dce8ff;
  background: rgba(110, 140, 220, 0.1);
  border-color: rgba(110, 140, 220, 0.26);
}

/* ---------- Lists / dropdowns / pagination ---------- */
.list-group {
  --bs-list-group-bg: transparent;
  --bs-list-group-color: var(--gcom-text);
  --bs-list-group-border-color: rgba(126, 142, 184, 0.14);
}
.list-group-item {
  background: transparent;
  color: var(--gcom-text);
  border-color: rgba(126, 142, 184, 0.14);
}
.list-group-item-action:hover,
.list-group-item-action:focus {
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
}
.dropdown-menu {
  background: #121a28;
  color: var(--gcom-text);
  border: 1px solid rgba(126, 142, 184, 0.2);
  box-shadow: var(--gcom-shadow);
}
.dropdown-item {
  color: #e6ecf7;
}
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background: rgba(124, 92, 255, 0.16);
  color: #fff;
}
.page-link {
  background: #101722;
  color: #d7deee;
  border-color: rgba(126, 142, 184, 0.22);
}
.page-link:hover {
  background: rgba(124, 92, 255, 0.14);
  color: #fff;
  border-color: rgba(156, 136, 255, 0.4);
}
.page-item.active .page-link {
  background: #6d52f2;
  border-color: #6d52f2;
  color: #fff;
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.25);
}
.page-item.disabled .page-link {
  background: #0d1420;
  color: #6f7c99;
  border-color: rgba(126, 142, 184, 0.14);
}

/* ---------- Progress / XP / ranks / awards ---------- */
.progress {
  background: #0c121e;
  border: 1px solid rgba(126, 142, 184, 0.2);
  border-radius: 999px;
  height: 0.5rem;
  overflow: hidden;
}
.progress-bar,
.xp-bar-nav-fill {
  background: linear-gradient(90deg, #6a4df0, #a78bfa);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.35);
}
.xp-bar-nav {
  background: #0c121e;
  border: 1px solid rgba(126, 142, 184, 0.22);
}
.rank-badge {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 6px 14px rgba(0, 0, 0, 0.25);
}
.chip {
  background: rgba(124, 92, 255, 0.1);
  color: #e4dcff;
  border: 1px solid rgba(156, 136, 255, 0.24);
}

/* ---------- Avatars / profile / wall ---------- */
.avatar-sm,
.avatar-lg {
  background: #141c2b;
  color: #fff;
  border: 1px solid rgba(156, 136, 255, 0.32);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.08);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.avatar-sm img,
.avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-banner {
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.05), rgba(7, 11, 20, 0.72)),
    radial-gradient(520px 160px at 72% 20%, rgba(124, 92, 255, 0.28), transparent 62%),
    linear-gradient(115deg, #10182a, #1c2140 48%, #15243c);
  border: 1px solid rgba(126, 142, 184, 0.16);
  border-bottom: 0;
  min-height: 150px;
}
.profile-name { color: #fff; }
.wall-thumb-btn,
.wall-media-item.wall-media-image {
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(126, 142, 184, 0.2);
}
.pm-ac-results,
.autocomplete,
[class*="ac-results"] {
  background: #121a28;
  border: 1px solid rgba(126, 142, 184, 0.22);
  color: var(--gcom-text);
  border-radius: 0.6rem;
  box-shadow: var(--gcom-shadow);
}

/* ---------- Footer / misc ---------- */
footer,
footer.border-top {
  background: #080d16 !important;
  border-top: 1px solid rgba(126, 142, 184, 0.14) !important;
  color: #8090ad;
}
code {
  color: #ddd4ff;
  background: rgba(124, 92, 255, 0.12);
  padding: 0.08rem 0.32rem;
  border-radius: 0.3rem;
}
.modal-content {
  background: #121a28;
  color: var(--gcom-text);
  border: 1px solid rgba(126, 142, 184, 0.22);
  box-shadow: var(--gcom-shadow);
}
.modal-header,
.modal-footer {
  border-color: rgba(126, 142, 184, 0.16);
}
.accordion-item,
.accordion-button {
  background: #121a28;
  color: var(--gcom-text);
  border-color: rgba(126, 142, 184, 0.16);
}
.accordion-button:not(.collapsed) {
  background: rgba(124, 92, 255, 0.12);
  color: #fff;
  box-shadow: none;
}
.accordion-button::after {
  filter: invert(1) grayscale(1);
}
.nav-tabs {
  border-bottom-color: rgba(126, 142, 184, 0.16);
}
.nav-tabs .nav-link {
  color: #b7c2da;
  border: 0;
  border-bottom: 2px solid transparent;
}
.nav-tabs .nav-link.active {
  background: transparent;
  color: #fff;
  border-bottom-color: var(--gcom-primary);
}
.collapse .nav-link.active {
  box-shadow: var(--gcom-primary-glow);
}

@media (max-width: 991.98px) {
  .navbar { backdrop-filter: none; }
  .card { border-radius: 0.72rem; }
  h1, .h1 { font-size: 1.4rem; }
}
