:root {
  --fantasy-bg-deep: #121212;
  --fantasy-bg-base: #1b1b1b;
  --fantasy-bg-raised: #242322;
  --fantasy-bg-panel: #242322;
  --fantasy-primary: #D4AF37;
  --fantasy-primary-dark: #8b6a2f;
  --fantasy-accent: #2f7de1;
  --fantasy-accent-hover: #4a93ea;
  --fantasy-danger: #a03030;
  --fantasy-text: #F5F5F5;
  --fantasy-text-secondary: #CFCFCF;
  --fantasy-text-muted: #A8A8A8;
  --fantasy-border: rgba(212, 175, 55, 0.25);
  --fantasy-border-strong: rgba(212, 175, 55, 0.45);
  --fantasy-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --fantasy-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.55);
  --fantasy-radius: 0.5rem;
  --fantasy-font-heading: "Cinzel", "Times New Roman", serif;
  --fantasy-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-bg: var(--fantasy-bg-deep);
  --bs-body-color: var(--fantasy-text);
  --bs-border-color: var(--fantasy-border);
  --bs-link-color: var(--fantasy-accent);
  --bs-link-hover-color: var(--fantasy-accent-hover);
  --bs-primary: var(--fantasy-accent);
  --bs-secondary: var(--fantasy-primary-dark);
  --bs-danger: var(--fantasy-danger);
  --bs-success: #2d8a4e;
  --bs-warning: #c9a44d;
  --bs-info: var(--fantasy-accent);
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--fantasy-font-body);
  background:
    radial-gradient(ellipse at top, rgba(47, 125, 225, 0.08), transparent 55%),
    linear-gradient(180deg, var(--fantasy-bg-base) 0%, var(--fantasy-bg-deep) 100%);
  color: var(--fantasy-text);
  line-height: 1.6;
}

a {
  color: var(--fantasy-accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--fantasy-accent-hover);
}

.fantasy-heading,
.page-header h1,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--fantasy-font-heading);
  color: var(--fantasy-primary);
  letter-spacing: 0.02em;
}

.border-fantasy {
  border-color: var(--fantasy-border) !important;
}

/* ── Topbar ─────────────────────────────────────────────── */

.app-topbar {
  background: linear-gradient(180deg, #1f1f1f 0%, #171717 100%);
  border-bottom: 1px solid var(--fantasy-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  z-index: 1030;
  min-height: 4rem;
}

.app-brand {
  color: var(--fantasy-primary) !important;
  font-family: var(--fantasy-font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.app-brand:hover {
  opacity: 0.9;
  color: var(--fantasy-primary) !important;
}

.app-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  background: linear-gradient(135deg, rgba(47, 125, 225, 0.25), rgba(201, 164, 77, 0.15));
  border: 1px solid var(--fantasy-border);
  color: var(--fantasy-accent);
  font-size: 1.1rem;
}

.app-topbar-actions {
  margin-left: auto;
}

.btn-outline-fantasy {
  color: var(--fantasy-text);
  border-color: var(--fantasy-border);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline-fantasy:hover,
.btn-outline-fantasy:focus,
.btn-outline-fantasy.show {
  color: var(--fantasy-primary);
  border-color: var(--fantasy-border-strong);
  background: rgba(201, 164, 77, 0.1);
}

.app-account-menu {
  background: linear-gradient(180deg, #242424 0%, #1b1b1b 100%);
  border: 1px solid var(--fantasy-border);
  box-shadow: var(--fantasy-shadow);
  min-width: 12rem;
}

.app-account-menu .dropdown-item {
  color: var(--fantasy-text);
  font-size: 0.875rem;
}

.app-account-menu .dropdown-item:hover,
.app-account-menu .dropdown-item:focus {
  background: rgba(47, 125, 225, 0.12);
  color: var(--fantasy-text);
}

.app-account-menu .dropdown-divider {
  border-color: var(--fantasy-border);
}

.app-online-status {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fantasy-border);
  font-size: 0.8rem;
}

.app-online-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #3ecf6a;
  box-shadow: 0 0 8px rgba(62, 207, 106, 0.65);
}

.app-online-label {
  color: var(--fantasy-text-muted);
}

.app-online-count {
  color: var(--fantasy-text);
  font-weight: 600;
}

.navbar-toggler {
  color: var(--fantasy-text);
}

.navbar-toggler-icon {
  filter: invert(1) opacity(0.75);
}

/* ── Layout ─────────────────────────────────────────────── */

.app-body {
  flex: 1 1 auto;
}

.app-layout-row {
  align-items: flex-start;
}

@media (min-width: 992px) {
  .app-layout-row {
    flex-wrap: nowrap;
  }
}

.app-sidebar-col {
  width: 100%;
}

@media (min-width: 992px) {
  .app-sidebar-col {
    flex: 0 0 260px;
    max-width: 260px;
    width: 260px;
  }
}

.app-main-col {
  min-width: 0;
}

@media (min-width: 992px) {
  .app-main-col {
    flex: 1 1 auto;
    max-width: none;
  }
}

.app-widget-col {
  width: 100%;
}

@media (min-width: 992px) {
  .app-widget-col {
    flex: 0 0 340px;
    max-width: 340px;
    width: 340px;
  }
}

@media (max-width: 991.98px) {
  .app-sidebar-col {
    order: 1;
  }

  .app-main-col {
    order: 2;
  }

  .app-widget-col {
    order: 3;
  }
}

.app-main {
  min-width: 0;
}

.fantasy-content-panel {
  background:
    linear-gradient(180deg, rgba(42, 36, 24, 0.55) 0%, rgba(27, 27, 27, 0.85) 100%);
  border: 1px solid var(--fantasy-border);
  border-radius: calc(var(--fantasy-radius) + 0.125rem);
  box-shadow: var(--fantasy-shadow);
  padding: 1.25rem 1.5rem;
}

.layout-mode-auth .fantasy-content-panel {
  max-width: 32rem;
}

.layout-mode-auth .app-main--auth {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

/* ── Sidebar ────────────────────────────────────────────── */

.fantasy-sidebar {
  width: 100%;
  background: linear-gradient(180deg, #1e1e1e 0%, #161616 100%);
  border: 1px solid var(--fantasy-border);
  border-radius: calc(var(--fantasy-radius) + 0.125rem);
  box-shadow: var(--fantasy-shadow);
}

@media (min-width: 992px) {
  .fantasy-sidebar {
    max-width: 260px;
  }
}

@media (min-width: 992px) {
  .fantasy-sidebar.offcanvas-lg {
    position: static;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
    height: auto;
  }
}

.fantasy-sidebar-group {
  background: transparent;
  border-color: var(--fantasy-border);
}

.fantasy-sidebar-group--active {
  border-left: 2px solid var(--fantasy-primary);
}

.fantasy-sidebar-toggle--active-group {
  background: rgba(201, 164, 77, 0.12) !important;
}

.fantasy-sidebar-toggle--active-group::after {
  display: none;
}

.fantasy-sidebar-toggle {
  background: transparent !important;
  color: var(--fantasy-primary) !important;
  font-family: var(--fantasy-font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none !important;
  padding: 0.85rem 1rem;
}

.fantasy-sidebar-toggle:not(.collapsed) {
  background: rgba(201, 164, 77, 0.08) !important;
}

.fantasy-sidebar-toggle::after {
  filter: invert(0.75) sepia(0.5) saturate(2);
}

.sidebar-group-icon {
  color: var(--fantasy-accent);
  width: 1rem;
  text-align: center;
}

.fantasy-sidebar-links {
  padding: 0.25rem 0.5rem 0.75rem;
}

.fantasy-sidebar-link {
  color: var(--fantasy-text-muted) !important;
  font-size: 0.875rem;
  padding: 0.55rem 0.75rem !important;
  border-radius: 0.375rem;
  margin-bottom: 0.125rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.fantasy-sidebar-link:hover {
  color: var(--fantasy-text) !important;
  background: rgba(255, 255, 255, 0.04);
}

.fantasy-sidebar-link.active {
  color: var(--fantasy-text) !important;
  background: rgba(47, 125, 225, 0.18);
  border-left: 3px solid var(--fantasy-accent);
  box-shadow: inset 0 0 0 1px rgba(201, 164, 77, 0.35);
  font-weight: 600;
}

.sidebar-link-icon {
  color: var(--fantasy-primary);
  width: 1.1rem;
  text-align: center;
  font-size: 0.8rem;
}

.app-nav-badge {
  background: var(--fantasy-accent) !important;
  color: #fff;
  font-size: 0.65rem;
}

/* ── Breadcrumbs & page header ──────────────────────────── */

.app-breadcrumbs .breadcrumb {
  --bs-breadcrumb-divider: "›";
  background: transparent;
  padding: 0;
  margin: 0;
}

.app-breadcrumbs .breadcrumb-item,
.app-breadcrumbs .breadcrumb-item a {
  color: var(--fantasy-text-muted);
  font-size: 0.8rem;
}

.app-breadcrumbs .breadcrumb-item.active {
  color: var(--fantasy-primary);
}

.app-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  color: var(--fantasy-border-strong);
}

.page-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.page-header .page-header-subtitle {
  color: var(--fantasy-text-muted);
  font-size: 0.95rem;
}

/* ── Footer ─────────────────────────────────────────────── */

.app-footer {
  background: linear-gradient(180deg, #171717 0%, #101010 100%);
  border-top: 1px solid var(--fantasy-border);
  margin-top: 1.5rem;
}

.app-footer-copy,
.app-footer-powered {
  color: var(--fantasy-text-muted);
}

.app-footer-powered a,
.app-footer-link {
  color: var(--fantasy-text-muted);
}

.app-footer-powered a:hover,
.app-footer-link:hover {
  color: var(--fantasy-primary);
}

/* ── Fantasy cards & widgets ────────────────────────────── */

.fantasy-card,
.card.fantasy-card,
.widget-rank,
.widget-server-save,
.widget-shop,
.widget-store,
.widget-poll {
  background: linear-gradient(180deg, rgba(36, 35, 34, 0.98) 0%, rgba(28, 27, 26, 0.99) 100%);
  border: 1px solid var(--fantasy-border);
  border-radius: var(--fantasy-radius);
  box-shadow: var(--fantasy-shadow);
  color: var(--fantasy-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fantasy-card:hover,
.card.fantasy-card:hover,
.widget-rank:hover,
.widget-server-save:hover,
.widget-shop:hover,
.widget-store:hover,
.widget-poll:hover {
  transform: translateY(-2px);
  box-shadow: var(--fantasy-shadow-hover);
  border-color: var(--fantasy-border-strong);
}

.fantasy-card .card-title,
.widget-rank .card-title,
.widget-server-save .card-title,
.widget-shop .card-title,
.widget-store .card-title,
.widget-poll .card-title {
  font-family: var(--fantasy-font-heading);
  color: var(--fantasy-primary);
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--fantasy-border);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
}

.app-widget-panel--right {
  width: 100%;
}

.app-widget-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-widget-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* ── Buttons ────────────────────────────────────────────── */

.btn-accent,
.btn.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: linear-gradient(180deg, #3d8ef0 0%, var(--fantasy-accent) 100%);
  --bs-btn-border-color: #1f5fb8;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #4a93ea;
  --bs-btn-hover-border-color: #2f7de1;
  background: linear-gradient(180deg, #3d8ef0 0%, var(--fantasy-accent) 100%);
  border: 1px solid #1f5fb8;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.75rem;
  box-shadow: 0 4px 12px rgba(47, 125, 225, 0.25);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-accent:hover,
.btn.btn-accent:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(47, 125, 225, 0.35);
  color: #fff;
}

.btn-fantasy-gold,
.btn.btn-fantasy-gold {
  background: linear-gradient(180deg, #d4b05a 0%, var(--fantasy-primary) 100%);
  border: 1px solid var(--fantasy-primary-dark);
  color: #1a1408;
  font-weight: 600;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-fantasy-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #1a1408;
}

.btn-primary,
.btn.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, #3d8ef0 0%, var(--fantasy-accent) 100%);
  border-color: #1f5fb8;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary.show,
.btn-check:checked + .btn-primary {
  background: #4a93ea;
  border-color: #2f7de1;
  color: #fff;
}

.btn-success,
.btn.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, #3aa862 0%, var(--bs-success) 100%);
  border-color: #1f6b3a;
  color: #fff;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  filter: brightness(1.08);
  color: #fff;
}

.btn-danger,
.btn.btn-danger {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, #c04040 0%, var(--fantasy-danger) 100%);
  border-color: #7a2020;
  color: #fff;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  filter: brightness(1.08);
  color: #fff;
}

.btn-warning,
.btn.btn-warning {
  --bs-btn-color: #1a1408;
  --bs-btn-hover-color: #1a1408;
  --bs-btn-active-color: #1a1408;
  --bs-btn-disabled-color: rgba(26, 20, 8, 0.65);
  color: #1a1408;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  color: #1a1408;
}

.btn-info,
.btn.btn-info {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  color: #fff;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
  color: #fff;
}

.btn-secondary,
.btn.btn-secondary {
  --bs-btn-color: var(--fantasy-text);
  --bs-btn-hover-color: var(--fantasy-text);
  --bs-btn-active-color: var(--fantasy-text);
  color: var(--fantasy-text);
}

.btn-outline-primary {
  --bs-btn-color: var(--fantasy-accent);
  --bs-btn-border-color: var(--fantasy-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--fantasy-accent);
  --bs-btn-hover-border-color: var(--fantasy-accent);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--fantasy-accent);
  --bs-btn-active-border-color: var(--fantasy-accent);
}

.btn-outline-success {
  --bs-btn-color: var(--bs-success);
  --bs-btn-border-color: var(--bs-success);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-success);
  --bs-btn-hover-border-color: var(--bs-success);
  --bs-btn-active-color: #fff;
}

.btn-outline-danger {
  --bs-btn-color: var(--fantasy-danger);
  --bs-btn-border-color: var(--fantasy-danger);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--fantasy-danger);
  --bs-btn-hover-border-color: var(--fantasy-danger);
  --bs-btn-active-color: #fff;
}

.btn-outline-warning {
  --bs-btn-color: var(--fantasy-primary);
  --bs-btn-border-color: var(--fantasy-primary);
  --bs-btn-hover-color: #1a1408;
  --bs-btn-hover-bg: var(--fantasy-primary);
  --bs-btn-hover-border-color: var(--fantasy-primary);
  --bs-btn-active-color: #1a1408;
}

.btn-outline-info {
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
}

.btn-outline-secondary {
  --bs-btn-color: var(--fantasy-text-secondary);
  --bs-btn-border-color: var(--fantasy-border);
  --bs-btn-hover-color: var(--fantasy-text);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-btn-hover-border-color: var(--fantasy-border-strong);
  --bs-btn-active-color: var(--fantasy-text);
}

a.btn,
a.btn:hover,
a.btn:focus,
a.btn:active,
button.btn,
button.btn:hover {
  text-decoration: none;
}

a.btn-primary,
a.btn-success,
a.btn-danger,
a.btn-info {
  color: #fff;
}

a.btn-warning,
a.btn-outline-warning:hover,
a.btn-outline-warning:active {
  color: #1a1408;
}

.page-controls .btn {
  transition: filter 0.2s ease, transform 0.2s ease;
}

.page-controls .btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* ── Forms ──────────────────────────────────────────────── */

.form-control,
.form-select,
textarea.form-control {
  background-color: rgba(18, 18, 18, 0.85);
  border: 1px solid var(--fantasy-border);
  color: var(--fantasy-text);
  border-radius: var(--fantasy-radius);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  background-color: rgba(18, 18, 18, 0.95);
  border-color: var(--fantasy-accent);
  box-shadow: 0 0 0 0.2rem rgba(47, 125, 225, 0.2);
  color: var(--fantasy-text);
}

.form-control::placeholder {
  color: rgba(184, 173, 150, 0.65);
}

.form-label,
label {
  color: var(--fantasy-primary);
  font-weight: 500;
  font-size: 0.875rem;
}

.form-check-input {
  background-color: rgba(18, 18, 18, 0.85);
  border-color: var(--fantasy-border);
}

.form-check-input:checked {
  background-color: var(--fantasy-accent);
  border-color: var(--fantasy-accent);
}

/* ── Tables ─────────────────────────────────────────────── */

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--fantasy-text);
  --bs-table-border-color: var(--fantasy-border);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(47, 125, 225, 0.08);
  --bs-table-hover-color: var(--fantasy-text);
}

.table thead th {
  font-family: var(--fantasy-font-heading);
  color: var(--fantasy-primary);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom-width: 2px;
  border-bottom-color: var(--fantasy-border-strong);
}

.table-dark {
  --bs-table-bg: rgba(24, 24, 24, 0.9);
}

/* ── Pagination ─────────────────────────────────────────── */

.pagination {
  --bs-pagination-bg: rgba(24, 24, 24, 0.9);
  --bs-pagination-border-color: var(--fantasy-border);
  --bs-pagination-color: var(--fantasy-text-muted);
  --bs-pagination-hover-color: var(--fantasy-text);
  --bs-pagination-hover-bg: rgba(47, 125, 225, 0.12);
  --bs-pagination-hover-border-color: var(--fantasy-border-strong);
  --bs-pagination-focus-color: var(--fantasy-text);
  --bs-pagination-focus-bg: rgba(47, 125, 225, 0.15);
  --bs-pagination-active-color: #fff;
  --bs-pagination-active-bg: var(--fantasy-accent);
  --bs-pagination-active-border-color: var(--fantasy-accent);
  --bs-pagination-disabled-color: rgba(184, 173, 150, 0.45);
  --bs-pagination-disabled-bg: rgba(18, 18, 18, 0.6);
  --bs-pagination-disabled-border-color: var(--fantasy-border);
}

/* ── Alerts & flash ─────────────────────────────────────── */

.alert {
  border-radius: var(--fantasy-radius);
  border-width: 1px;
}

.alert-warning,
.site-closed-banner {
  background: rgba(201, 164, 77, 0.12);
  border-color: var(--fantasy-primary);
  color: var(--fantasy-text);
}

.alert-info,
.site-closed-admin-bypass {
  background: rgba(47, 125, 225, 0.12);
  border-color: var(--fantasy-accent);
  color: var(--fantasy-text);
}

.alert-success {
  background: rgba(45, 138, 78, 0.15);
  border-color: var(--bs-success);
  color: var(--fantasy-text);
}

.alert-danger {
  background: rgba(160, 48, 48, 0.15);
  border-color: var(--fantasy-danger);
  color: var(--fantasy-text);
}

/* ── Modals ─────────────────────────────────────────────── */

.modal-content {
  background: linear-gradient(180deg, #242424 0%, #1b1b1b 100%);
  border: 1px solid var(--fantasy-border);
  color: var(--fantasy-text);
  box-shadow: var(--fantasy-shadow-hover);
}

.modal-header {
  border-bottom-color: var(--fantasy-border);
}

.modal-footer {
  border-top-color: var(--fantasy-border);
}

.modal-title {
  font-family: var(--fantasy-font-heading);
  color: var(--fantasy-primary);
}

.btn-close {
  filter: invert(1) opacity(0.65);
}

/* ── News cards ─────────────────────────────────────────── */

.news-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.92) 0%, rgba(24, 24, 24, 0.96) 100%);
  border: 1px solid var(--fantasy-border);
  border-radius: var(--fantasy-radius);
  box-shadow: var(--fantasy-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--fantasy-shadow-hover);
  border-color: var(--fantasy-border-strong);
}

.news-card-thumb {
  flex: 0 0 4rem;
  width: 4rem;
  height: 4rem;
  border-radius: 0.375rem;
  overflow: hidden;
  border: 1px solid var(--fantasy-border);
  background: var(--fantasy-bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.news-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.news-card-title {
  font-family: var(--fantasy-font-heading);
  color: var(--fantasy-primary);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.news-card-meta {
  color: var(--fantasy-text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.news-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

.news-card-tag--event {
  background: rgba(47, 125, 225, 0.2);
  color: #7eb8ff;
  border: 1px solid rgba(47, 125, 225, 0.35);
}

.news-card-tag--update {
  background: rgba(45, 138, 78, 0.2);
  color: #7fd99a;
  border: 1px solid rgba(45, 138, 78, 0.35);
}

.news-hero {
  position: relative;
  border-radius: calc(var(--fantasy-radius) + 0.125rem);
  overflow: hidden;
  border: 1px solid var(--fantasy-border-strong);
  margin-bottom: 1.5rem;
  box-shadow: var(--fantasy-shadow);
}

.news-hero-image {
  width: 100%;
  min-height: 16rem;
  object-fit: cover;
  display: block;
}

.news-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.15) 0%, rgba(18, 18, 18, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.news-hero-badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: var(--fantasy-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0.25rem;
}

.news-hero-title {
  font-family: var(--fantasy-font-heading);
  color: var(--fantasy-primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.news-hero-text {
  color: var(--fantasy-text);
  max-width: 42rem;
  margin-bottom: 0.75rem;
}

.news-hero-meta {
  color: var(--fantasy-text-muted);
  font-size: 0.85rem;
}

.news-ticker {
  background: rgba(47, 125, 225, 0.1);
  border: 1px solid rgba(47, 125, 225, 0.25);
  border-radius: var(--fantasy-radius);
  padding: 0.65rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* ── Admin dashboard ────────────────────────────────────── */

.dashboard-statistics .info-box,
.dashboard-statistics .fantasy-stat-box {
  display: flex;
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.95) 0%, rgba(24, 24, 24, 0.98) 100%);
  border: 1px solid var(--fantasy-border);
  border-radius: var(--fantasy-radius);
  margin-bottom: 0;
  min-height: 5rem;
  box-shadow: var(--fantasy-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.dashboard-statistics .info-box:hover,
.dashboard-statistics .fantasy-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--fantasy-shadow-hover);
}

.dashboard-statistics .info-box-icon,
.dashboard-statistics .fantasy-stat-icon {
  width: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.dashboard-statistics .info-box-content,
.dashboard-statistics .fantasy-stat-content {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-statistics .info-box-text,
.dashboard-statistics .fantasy-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--fantasy-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-statistics .info-box-number,
.dashboard-statistics .fantasy-stat-value {
  display: block;
  font-family: var(--fantasy-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fantasy-primary);
}

.dashboard-statistics a {
  color: inherit;
  text-decoration: none;
}

.bg-aqua { background: linear-gradient(135deg, #2f7de1, #1f5fb8) !important; }
.bg-red { background: linear-gradient(135deg, #c04040, var(--fantasy-danger)) !important; }
.bg-green { background: linear-gradient(135deg, #3aa862, #1f6b3a) !important; }
.bg-yellow { background: linear-gradient(135deg, #d4b05a, var(--fantasy-primary-dark)) !important; }
.bg-green-gradient { background: linear-gradient(135deg, #3aa862, #1f6b3a) !important; }

.dashboard-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.dashboard-col {
  flex: 1 1 220px;
  max-width: 280px;
}

/* ── Legacy Tibia content inside panels ─────────────────── */

.fantasy-content-panel .Box,
.fantasy-content-panel .NewsHeadline {
  background: transparent;
}

.fantasy-content-panel .text-muted {
  color: var(--fantasy-text-muted) !important;
}

/* ── Generic content layer (.app-content) ───────────────── */

.app-content {
  color: var(--fantasy-text);
  font-size: 0.9375rem;
  line-height: 1.6;
  min-width: 0;
}

.app-content > * + * {
  margin-top: 1rem;
}

.app-content h1,
.app-content h2,
.app-content h3,
.app-content h4,
.app-content h5,
.app-content h6 {
  margin-bottom: 0.75rem;
}

.app-content p {
  margin-bottom: 0.85rem;
}

.app-content img {
  max-width: 100%;
  height: auto;
}

.app-content .AuctionOutfitImage {
  max-width: none;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.app-content .widget-rank-outfit {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
  background: transparent;
}

.app-content ul,
.app-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.app-content hr {
  border-color: var(--fantasy-border);
  opacity: 1;
}

.app-content a {
  color: var(--fantasy-accent);
  text-decoration: none;
}

.app-content a:hover {
  color: var(--fantasy-accent-hover);
  text-decoration: underline;
}

.app-content b,
.app-content strong {
  color: var(--fantasy-text);
}

.app-content .text-muted {
  color: var(--fantasy-text-muted) !important;
}

.text-secondary {
  color: var(--fantasy-text-secondary) !important;
}

.text-gold,
.auction-character-name,
.widget-rank-name {
  color: var(--fantasy-primary) !important;
}

.text-white {
  color: var(--fantasy-text) !important;
}

.app-content .green {
  color: #3ecf6a !important;
}

.app-content .red {
  color: #e05555 !important;
}

/* Responsive overflow for data tables */
.app-content .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Opt-in enhanced table styling */
.app-content .app-table {
  width: 100%;
  color: var(--fantasy-text);
}

.app-content .app-table th,
.app-content .app-table td {
  padding: 0.65rem 0.85rem;
  vertical-align: middle;
}

.app-content .app-table thead th {
  font-family: var(--fantasy-font-heading);
  color: var(--fantasy-primary);
  border-bottom: 2px solid var(--fantasy-border-strong);
}

/* Opt-in form styling */
.app-content .app-form label {
  color: var(--fantasy-primary);
  font-weight: 500;
  font-size: 0.875rem;
}

.app-content .app-form .form-control,
.app-content .app-form .form-select {
  background-color: rgba(18, 18, 18, 0.85);
  border-color: var(--fantasy-border);
  color: var(--fantasy-text);
}

/* Opt-in card styling */
.app-content .app-card {
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.92) 0%, rgba(24, 24, 24, 0.96) 100%);
  border: 1px solid var(--fantasy-border);
  border-radius: var(--fantasy-radius);
  box-shadow: var(--fantasy-shadow);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

/* Bootstrap components inside content */
.app-content .card {
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.92) 0%, rgba(24, 24, 24, 0.96) 100%);
  border: 1px solid var(--fantasy-border);
  color: var(--fantasy-text);
}

.app-content .alert {
  border-radius: var(--fantasy-radius);
}

.app-content .pagination {
  margin-top: 1rem;
  margin-bottom: 0;
}

.app-content .btn {
  transition: filter 0.2s ease, transform 0.2s ease;
}

.app-content .btn:hover {
  filter: brightness(1.06);
}

.app-content .form-control,
.app-content .form-select {
  background-color: rgba(18, 18, 18, 0.85);
  border-color: var(--fantasy-border);
  color: var(--fantasy-text);
}

.app-content .form-control:focus,
.app-content .form-select:focus {
  border-color: var(--fantasy-accent);
  box-shadow: 0 0 0 0.2rem rgba(47, 125, 225, 0.2);
}

.app-content .container-fluid {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

/* ── Widget specifics ───────────────────────────────────── */

.widget-server-save .display-6,
.widget-server-save .server-save-timer {
  font-family: var(--fantasy-font-heading);
  color: #3ecf6a;
  font-size: 1.75rem;
  text-shadow: 0 0 16px rgba(62, 207, 106, 0.35);
}

.widget-server-save .progress {
  height: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
}

.widget-server-save .progress-bar {
  background: linear-gradient(90deg, var(--fantasy-accent), #3ecf6a);
}

.widget-shop .btn-shop,
.widget-store .btn-store {
  background: linear-gradient(180deg, #8b2030 0%, #5a1520 100%);
  border: 1px solid #a03030;
  color: var(--fantasy-text);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.widget-shop .btn-shop:hover,
.widget-store .btn-store:hover {
  filter: brightness(1.1);
  color: var(--fantasy-text);
}

/* ── Admin legacy box classes ───────────────────────────── */

.box,
.card.box {
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.95) 0%, rgba(24, 24, 24, 0.98) 100%);
  border: 1px solid var(--fantasy-border);
  border-radius: var(--fantasy-radius);
  box-shadow: var(--fantasy-shadow);
  margin-bottom: 1rem;
}

.box-header,
.card-header {
  background: rgba(201, 164, 77, 0.08);
  border-bottom: 1px solid var(--fantasy-border);
  color: var(--fantasy-primary);
  padding: 0.85rem 1rem;
}

.box-title,
.card-title {
  font-family: var(--fantasy-font-heading);
  color: var(--fantasy-primary);
  font-size: 1rem;
  margin: 0;
}

.box-body,
.card-body {
  padding: 1rem;
}

.box-footer {
  border-top: 1px solid var(--fantasy-border);
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.15);
}

.box-warning {
  border-color: var(--fantasy-border-strong);
}

/* Admin inline status messages, shared by the admin news and shop offer screens. */
.admin_success {
  color: var(--bs-success);
  font-weight: 600;
}

.admin_error {
  color: var(--fantasy-danger);
  font-weight: 600;
}

.admin_hidden {
  color: var(--fantasy-text-muted);
}

.admin_table,
.offer_form_table {
  margin-left: auto;
  margin-right: auto;
}

.admin_table {
  width: 90%;
}

.admin_table tr td {
  text-align: center;
}

.offer_form_table td {
  padding: 0.25rem;
}

/* ── Character Bazaar ───────────────────────────────────── */

.auction-card .card-header {
  background: rgba(212, 175, 55, 0.06);
  border-bottom: 1px solid var(--fantasy-border);
}

.auction-character-meta {
  color: var(--fantasy-text-secondary);
  font-size: 0.9rem;
}

.auction-outfit-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  padding: 0.5rem;
  border: 1px solid var(--fantasy-border);
  border-radius: var(--fantasy-radius);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
}

.auction-outfit-panel .AuctionNewIcon {
  position: absolute;
  left: -4px;
  top: -4px;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.auction-outfit-panel .AuctionNewIcon img {
  width: 28px;
  height: auto;
}

.auction-outfit-image {
  display: block;
  width: 64px;
  height: 64px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  image-rendering: pixelated;
  margin: 0 auto;
}

.auction-equipment-window {
  display: inline-block;
  padding: 0.65rem;
  border: 1px solid var(--fantasy-border);
  border-radius: var(--fantasy-radius);
  background: linear-gradient(180deg, rgba(28, 27, 26, 0.95) 0%, rgba(18, 17, 16, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auction-equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  grid-template-rows: repeat(4, 48px);
  gap: 4px;
  grid-template-areas:
    "necklace helmet backpack"
    "weapon armor shield"
    "ring legs ammo"
    "soul boots cap";
}

.auction-equipment-slot {
  width: 48px;
  height: 48px;
  border: 1px solid var(--fantasy-border);
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.auction-equipment-slot:hover {
  border-color: var(--fantasy-border-strong);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.auction-equipment-slot--1 { grid-area: helmet; }
.auction-equipment-slot--2 { grid-area: necklace; }
.auction-equipment-slot--3 { grid-area: backpack; }
.auction-equipment-slot--4 { grid-area: armor; }
.auction-equipment-slot--5 { grid-area: shield; }
.auction-equipment-slot--6 { grid-area: weapon; }
.auction-equipment-slot--7 { grid-area: legs; }
.auction-equipment-slot--8 { grid-area: boots; }
.auction-equipment-slot--9 { grid-area: ring; }
.auction-equipment-slot--10 { grid-area: ammo; }
.auction-equipment-slot--soul { grid-area: soul; }
.auction-equipment-slot--cap { grid-area: cap; }

.auction-equipment-slot img,
.auction-equipment-slot.CVIconObject img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}

.auction-equipment-slot--stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.2rem;
  text-align: center;
}

.auction-stat-label {
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fantasy-text-muted);
  line-height: 1;
}

.auction-stat-value {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fantasy-text);
  line-height: 1;
  white-space: nowrap;
}

.auction-equipment-slot .ObjectAmount,
.auction-equipment-slot .auction-item-count {
  position: absolute;
  right: 2px;
  bottom: 1px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #fff;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
  line-height: 1;
}

.auction-depot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 0.35rem;
  max-width: 100%;
}

.auction-depot-grid .auction-item-slot {
  width: 40px;
  height: 40px;
  border: 1px solid var(--fantasy-border);
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auction-item-slot,
.auction-item-slot.CVIcon,
.auction-item-slot.CVIconObject {
  width: 40px;
  height: 40px;
  border: 1px solid var(--fantasy-border);
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  float: none;
  margin: 0;
  padding: 2px;
  overflow: hidden;
}

.auction-item-slot img,
.auction-item-slot.CVIconObject img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.auction-item-slot--empty {
  color: var(--fantasy-text-muted);
  font-size: 0.65rem;
}

.auction-item-count,
.auction-item-slot .ObjectAmount {
  position: absolute;
  right: 2px;
  bottom: 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 2px #000;
}

.auction-meta dt {
  color: var(--fantasy-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.auction-meta dd {
  color: var(--fantasy-text);
  margin-bottom: 0.85rem;
}

.auction-value {
  color: var(--fantasy-primary);
  font-size: 1.05rem;
}

.auction-coin-icon {
  width: 16px;
  height: 16px;
  margin-left: 0.25rem;
}

.auction-bid-panel {
  padding: 1rem;
  border: 1px solid var(--fantasy-border);
  border-radius: var(--fantasy-radius);
  background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
  .auction-card-layout > .col-lg {
    margin-top: 0.25rem;
  }

  .auction-equipment-window {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575.98px) {
  .auction-equipment-grid {
    grid-template-columns: repeat(3, 44px);
    grid-template-rows: repeat(4, 44px);
    gap: 3px;
  }

  .auction-equipment-slot {
    width: 44px;
    height: 44px;
  }

  .auction-equipment-slot img,
  .auction-equipment-slot.CVIconObject img {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
  }
}

/* ── Highscores widget ──────────────────────────────────── */

.widget-rank-row {
  border-bottom: 1px solid var(--fantasy-border) !important;
}

.widget-rank-row:last-child {
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.widget-rank-medal {
  width: 2rem;
  text-align: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.widget-rank-meta {
  color: var(--fantasy-text-secondary);
  font-size: 0.85rem;
}

.widget-rank-name {
  font-weight: 600;
  text-decoration: none;
}

.widget-rank-name:hover {
  color: #e8c766 !important;
}

/* ── Shop ───────────────────────────────────────────────── */

.shop-category-nav .nav-link {
  color: var(--fantasy-text-secondary);
  border: 1px solid transparent;
}

.shop-category-nav .nav-link.active,
.shop-category-nav .nav-link:hover {
  color: var(--fantasy-text);
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--fantasy-border);
}

.shop-product-card:hover {
  border-color: var(--fantasy-border-strong);
}

.shop-product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
  padding: 0.75rem;
  border-radius: var(--fantasy-radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--fantasy-border);
}

.shop-product-image img,
.shop-product-image .addon-preview img {
  width: 96px !important;
  height: 96px !important;
  max-width: 96px;
  max-height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  border: 0 !important;
  margin: 0 !important;
  position: static !important;
}

.shop-product-image .addon-preview {
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0.5rem;
}

.shop-product-image .addon-preview td {
  vertical-align: middle;
  text-align: center;
}

.shop-product-image--missing::before {
  content: "\f466";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--fantasy-text-muted);
  line-height: 1;
}

.shop-product-image--missing img {
  display: none;
}

.shop-featured-card .shop-product-image img,
.shop-featured-card .shop-product-image .addon-preview img {
  width: 112px !important;
  height: 112px !important;
  max-width: 112px;
  max-height: 112px;
}

.border-gold-subtle {
  border-color: var(--fantasy-border) !important;
}

/* ── Server save tiles ──────────────────────────────────── */

.server-save-tile {
  padding: 1rem 0.75rem;
  border: 1px solid var(--fantasy-border);
  border-radius: var(--fantasy-radius);
  background: rgba(0, 0, 0, 0.28);
}

.server-save-tile-label {
  color: var(--fantasy-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.server-save-tile-value {
  color: var(--fantasy-primary);
  font-family: var(--fantasy-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Gallery ────────────────────────────────────────────── */

.gallery-card-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card-image-link {
  display: block;
  overflow: hidden;
}

/* ── Outfit sprites (highscores, online, tables) ─────────── */

.app-table .outfit-cell {
  width: 4.5rem;
  min-width: 4.5rem;
  max-width: 4.5rem;
  height: 4rem;
  padding: 0.25rem;
  vertical-align: middle;
  text-align: center;
}

.outfit-cell-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  overflow: hidden;
}

.outfit-sprite,
.app-table .outfit-cell img,
.app-table td img.outfit-sprite {
  display: block;
  max-width: 4rem;
  max-height: 4rem;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  position: static !important;
  margin: 0 !important;
  vertical-align: middle;
}

/* ── Forum post outfits ───────────────────────────────────── */

.forum-post-outfit {
  display: inline-block;
}

.forum-post-outfit .outfit-cell-inner {
  position: relative;
}

.forum-post-outfit .outfit-cell-inner img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  image-rendering: pixelated;
  max-width: none;
  max-height: none;
  margin: 0;
}

/* ── Global image polish ────────────────────────────────── */

.app-content .auction-coin-icon,
.app-content .VSCCoinImages {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  object-fit: contain;
}

.app-content img.rounded {
  object-fit: contain;
}

.app-content .gallery-card-image {
  width: 100%;
}

.app-content .card-body > .table-responsive:first-child,
.app-content .card-body.p-0 .table-responsive {
  border-radius: 0 0 var(--fantasy-radius) var(--fantasy-radius);
}

.static-page-content table {
  width: 100%;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .fantasy-content-panel {
    padding: 1rem;
  }

  .news-card {
    flex-direction: column;
  }

  .news-card-thumb {
    width: 4rem;
    flex: 0 0 4rem;
    height: 4rem;
  }
}

@media (max-width: 575.98px) {
  .app-topbar {
    min-height: 3.5rem;
  }

  .fantasy-content-panel {
    padding: 0.85rem;
  }
}

/*
 * Cancelled purchases in the admin transactions table. Bootstrap 5.3 paints row shading through an
 * inset box-shadow, so the highlight has to be handed to it as a table state rather than a cell
 * background, otherwise striping wins.
 */
.table tbody tr.cancelled-row {
  --bs-table-bg-state: color-mix(in srgb, var(--fantasy-danger) 45%, var(--fantasy-bg-raised));
}
