:root {
  --bg-start: #131a2c;
  --bg-end: #080a12;
  --panel-color: rgba(26, 35, 56, 0.55);
  --panel-border: #2b3752;
  --border-color: #33435f;
  --box-color: rgba(18, 26, 42, 0.5);
  --box-color-solid: #121a2a;
  --box-color-double: rgba(18, 26, 42, 0.65);
  --card-color: rgba(21, 29, 48, 0.55);
  --card-hover: rgba(27, 37, 64, 0.65);
  --color-red: #ff4d4d;
  --color-blue: #4a90e2;
  --color-accent: #ffb347;
  --text-color: #eef1f7;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-border) var(--bg-end);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-end);
}

*::-webkit-scrollbar-thumb {
  background: var(--panel-border);
  border-radius: 8px;
  border: 2px solid var(--bg-end);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--color-blue);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-color);
  position: relative;
  overflow-x: hidden;
}

.cloud-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.cloud {
  position: absolute;
  width: 162px;
  height: 136px;
  background-image: url(/images/nuages.png);
  background-repeat: no-repeat;
  background-size: contain;
  animation: cloudFloat linear infinite;
}

.cloud-1 { top: 6%;  opacity: 0.16; --cloud-scale: 0.9;  animation-duration: 75s;  animation-delay: -5s; }
.cloud-2 { top: 24%; opacity: 0.13; --cloud-scale: 0.7;  animation-duration: 100s; animation-delay: -30s; }
.cloud-3 { top: 46%; opacity: 0.18; --cloud-scale: 1.15; animation-duration: 65s;  animation-delay: -50s; }
.cloud-4 { top: 68%; opacity: 0.12; --cloud-scale: 0.85; animation-duration: 115s; animation-delay: -15s; }
.cloud-5 { top: 86%; opacity: 0.15; --cloud-scale: 1.05; animation-duration: 85s;  animation-delay: -70s; }
.cloud-6 { top: 15%; opacity: 0.14; --cloud-scale: 0.75; animation-duration: 105s; animation-delay: -85s; }
.cloud-7 { top: 35%; opacity: 0.17; --cloud-scale: 1.0;  animation-duration: 90s;  animation-delay: -40s; }
.cloud-8 { top: 58%; opacity: 0.13; --cloud-scale: 0.95; animation-duration: 70s;  animation-delay: -25s; }
.cloud-9 { top: 76%; opacity: 0.16; --cloud-scale: 1.2;  animation-duration: 120s; animation-delay: -95s; }

@keyframes cloudFloat {
  from { transform: translateX(-220px) scale(var(--cloud-scale, 1)); }
  to { transform: translateX(calc(100vw + 220px)) scale(var(--cloud-scale, 1)); }
}

body.wide-layout {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
}

body.has-header {
  /* doit couvrir la vraie hauteur du header fixed : 15 (padding-top) + 14+12
     (padding .site-nav) + 70 (hauteur .site-nav-icon) + 1 (border-bottom) */
  padding-top: 137px;
}

.site-header {
  padding-top: 15px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: var(--panel-color);
  border-bottom: 1px solid var(--panel-border);
}

.site-header-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 52px;
  position: relative;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0 12px;
  flex-wrap: wrap;
}

.site-nav > *:not(:first-child) {
  position: relative;
}

.site-nav > *:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 26px;
  background: #fff;
}

.site-nav-link {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav-icon {
  width: 55px;
  height: 70px;
  flex-shrink: 0;
  object-fit: contain;
}

.site-nav-icon-settings {
  width: 30px;
  height: 37px;
}

#nav-admin-link {
  background: #f7ce76;
  border-radius: 50%;
  padding: 4px;
}

.site-nav-link-home img {
  display: block;
  width: 107px;
  height: 42px;
}

.site-nav-link:hover {
  color: #ffb347;
}

.site-nav-dropdown {
  position: relative;
}

.site-nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav-caret {
  font-size: 10px;
  transition: transform 0.15s;
}

.site-nav-dropdown.open .site-nav-caret {
  transform: rotate(180deg);
}

.site-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: var(--box-color-solid);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.site-nav-dropdown.open .site-nav-dropdown-menu {
  display: block;
}

.site-nav-dropdown-item {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: #b8c4d4;
  text-decoration: none;
  font-size: 13px;
}

.site-nav-dropdown-item:hover {
  background: rgba(255, 179, 71, 0.12);
  color: #ffb347;
}

.notif-badge {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4d6d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.site-nav-notif-toggle {
  position: relative;
}

.notif-dropdown-menu {
  min-width: 320px;
  max-width: 360px;
  padding: 0;
  overflow: hidden;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  color: #e8edf2;
}

.notif-dropdown-header button {
  background: none;
  border: none;
  color: #ffb347;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.notif-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(255, 179, 71, 0.08);
}

.notif-item.unread {
  background: rgba(255, 179, 71, 0.06);
}

.notif-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--box-color);
}

.notif-item-body {
  min-width: 0;
}

.notif-item-text {
  font-size: 12px;
  color: #e8edf2;
  line-height: 1.4;
}

.notif-item-excerpt {
  font-size: 11px;
  color: #7c879c;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-item-time {
  font-size: 10px;
  color: #6f7994;
  margin-top: 4px;
}

.notif-empty {
  padding: 20px 12px;
  text-align: center;
  font-size: 12px;
  color: #7c879c;
}

.card {
  width: 100%;
  max-width: 360px;
  background: var(--panel-color);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
}

.card h1 {
  margin: 0 0 4px;
  font-size: 22px;
  text-align: center;
  color: #ffb347;
}

.card .subtitle {
  margin: 0 0 24px;
  text-align: center;
  font-size: 13px;
  color: #93a3b8;
}

.ban-card {
  max-width: 420px;
  text-align: center;
}

.ban-logo {
  display: block;
  margin: 0 auto 16px;
}

.ban-card h1 {
  color: #ff4d6d;
}

.ban-type-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.35);
  color: #ff4d6d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ban-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--panel-border);
  font-size: 13px;
  text-align: left;
}

.ban-info-row span {
  color: #93a3b8;
}

.ban-info-row strong {
  color: #e8edf2;
  text-align: right;
}

.ban-card .submit {
  margin-top: 22px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #b8c4d4;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--box-color);
  color: #e8edf2;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus {
  border-color: #ffb347;
}

.gender-picker {
  display: flex;
  gap: 10px;
}

.gender-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--box-color);
  color: #93a3b8;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.gender-option img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
}

.gender-option:hover {
  border-color: #ffb347;
}

.gender-option.selected {
  border-color: #ffb347;
  color: #e8edf2;
  background: rgba(255, 179, 71, 0.1);
}

.submit {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 8px;
  background: #ffb347;
  color: #1b2838;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.submit:hover {
  opacity: 0.9;
}

.submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

.message.error {
  display: block;
  background: rgba(220, 80, 80, 0.15);
  border: 1px solid rgba(220, 80, 80, 0.4);
  color: #ff8f8f;
}

.message.success {
  display: block;
  background: rgba(80, 200, 130, 0.15);
  border: 1px solid rgba(80, 200, 130, 0.4);
  color: #7be3a3;
}

.footer-link {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #93a3b8;
}

.footer-link a {
  color: #ffb347;
  text-decoration: none;
}

.footer-link a:hover {
  text-decoration: underline;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.btn-secondary {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: transparent;
  color: #b8c4d4;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-secondary:hover {
  border-color: #ffb347;
  color: #ffb347;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 24px;
}

.stat {
  background: var(--box-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.stat .value {
  font-size: 16px;
  font-weight: 700;
  color: #ffb347;
}

.stat .label {
  font-size: 11px;
  color: #93a3b8;
  margin-top: 2px;
}

.field input[readonly] {
  color: #93a3b8;
  cursor: not-allowed;
}

.field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--box-color);
  color: #e8edf2;
  font-size: 14px;
  outline: none;
}

.field select:focus {
  border-color: #ffb347;
}

.loading {
  text-align: center;
  color: #93a3b8;
  font-size: 13px;
  padding: 24px 0;
}

.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--box-color);
  color: #e8edf2;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

.field textarea:focus {
  border-color: #ffb347;
}

.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #b8c4d4;
  cursor: pointer;
}

.checkbox-field input {
  width: auto;
}

.settings-title {
  margin: 0 0 4px;
  font-size: 20px;
  color: #e8edf2;
  font-weight: 700;
}

.settings-subtitle {
  margin: 0 0 18px;
  font-size: 13px;
  color: #93a3b8;
}

.category-toggle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.category-toggle-card {
  width: 200px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--box-color);
  border: 2px solid #2ecc71;
  border-radius: .8rem;
  cursor: pointer;
  transition: border-color 0.15s, opacity 0.15s;
}

.category-toggle-card img {
  width: 32px;
  height: 32px;
}

.category-toggle-card span {
  font-size: 13px;
  color: #e8edf2;
  text-align: center;
}

.category-toggle-card.disabled {
  border-color: var(--color-red);
  opacity: 0.5;
}

/* Forum page */

.forum-page {
  width: 100%;
  max-width: 1300px;
  background: var(--panel-color);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
}

.forum-header h1 {
  margin: 0 0 16px;
  font-size: 24px;
  color: #ffb347;
}

.forum-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  position: relative;
  height: 50px;
  border: 2px solid var(--border-color);
  background-color: var(--box-color);
  border-radius: .8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  text-decoration: none;
  width: auto;
  margin-bottom: 0;
  margin-left: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.tab-btn img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.tab-btn:hover {
  border-color: #ffb347;
  color: #e8edf2;
}

.tab-btn.active {
  color: #ffb347;
  border-color: #ffb347;
  background: rgba(255, 179, 71, 0.12);
  font-weight: 600;
}

.sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sub-tab-btn {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--box-color);
  color: #b8c4d4;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.sub-tab-btn:hover {
  border-color: #ffb347;
  color: #e8edf2;
}

.sub-tab-btn.active {
  border-color: #ffb347;
  color: #ffb347;
  background: rgba(255, 179, 71, 0.12);
  font-weight: 600;
}

.forum-topbar-button {
  width: 45px;
  height: 45px;
  background-color: var(--color-red);
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  cursor: pointer;
  flex-shrink: 0;
}

.forum-topbar-button.visible {
  display: flex;
}

.forum-topbar-button-icon {
  width: 13px;
  height: 16px;
  background-image: url('/images/icon_left.png');
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}

.btn-row {
  display: flex;
  gap: 10px;
}

.btn-row .submit,
.btn-row .btn-secondary {
  width: auto;
  flex: 1;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-dropdown {
  position: relative;
  min-width: 245px;
}

.filter-toggle {
  height: 55px;
  width: 245px;
  background: var(--box-color-solid);
  border: 2px solid var(--color-blue);
  border-radius: .8rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  order: 2;
  gap: 10px;
  padding: 0 15px;
  color: #e8edf2;
  font-size: 14px;
}

.filter-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.filter-label {
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-toggle:hover {
  border-color: #ffb347;
}

.filter-arrow {
  color: #93a3b8;
  font-size: 11px;
  transition: transform 0.15s;
}

.filter-dropdown.open .filter-arrow {
  transform: rotate(180deg);
}

.filter-options {
  list-style: none;
  margin: 6px 0 0;
  padding: 10px;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  background: var(--box-color-solid);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  width: 510px;
  max-height: 340px;
  overflow-y: auto;
}

.filter-dropdown.open .filter-options {
  display: flex;
  width: fit-content;
}

.filter-options li {
  height: 55px;
  width: 245px;
  background: var(--box-color-solid);
  border: 2px solid var(--color-blue);
  border-radius: .8rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  order: 2;
  gap: 10px;
  padding: 0 12px;
  font-size: 13px;
  color: #b8c4d4;
}

.filter-options li img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.filter-options li[data-value="all"] {
  order: 1;
}

.filter-options li:hover {
  border-color: #ffb347;
  color: #e8edf2;
}

.filter-options li.active {
  border-color: #ffb347;
  color: #ffb347;
  font-weight: 600;
}

.search-bar {
  flex: 1;
  min-width: 200px;
  height: 55px;
  border-radius: .8rem;
  background: var(--box-color);
  border: var(--border-color) 2px solid;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 15px;
  transition: border-color 0.15s;
}

.search-bar:focus-within {
  border-color: #ffb347;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #e8edf2;
  font-size: 14px;
  outline: none;
}

.search-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.topic-item {
  flex: 0 0 calc((100% - 40px) / 3);
  width: calc((100% - 40px) / 3);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: var(--card-color);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  position: relative;
}

.topic-item-closed-icon {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 47px;
  height: 47px;
}

.topic-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 179, 71, 0.4);
  background: var(--card-hover);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.55);
}

.topic-item-official {
  border-color: #ffd700;
}

.topic-item-official:hover {
  border-color: #ffe066;
  box-shadow: 0 12px 28px -10px rgba(255, 215, 0, 0.25);
}

.topic-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.15);
  color: #ffb347;
  border: 1px solid rgba(255, 179, 71, 0.3);
  white-space: nowrap;
}

.topic-category-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic-category-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--box-color);
  color: #93a3b8;
  cursor: pointer;
}

.topic-category-edit-btn:hover {
  color: #fff;
  border-color: #b967ff;
}

.topic-category-editor {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.topic-category-editor select {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  color: #e8edf2;
}

.topic-category-save-btn,
.topic-category-cancel-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.topic-category-save-btn {
  background: #b967ff;
  color: #fff;
}

.topic-category-cancel-btn {
  background: var(--box-color);
  color: #93a3b8;
  border: 1px solid var(--border-color);
}

.topic-card-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-left: 70px;
}

.forum-avatar-frame {
  height: 65px;
  position: absolute;
  left: 0;
  cursor: pointer;
}

.card-status-dot {
  position: absolute;
  bottom: -2px;
  right: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #0f1620;
  z-index: 1;
}

.card-status-dot.online {
  background: #2ecc71;
}

.card-status-dot.offline {
  background: var(--color-red);
}

.forum-avatar-frame .forum-avatar-custom {
  display: block;
  position: relative;
  z-index: 2;
  margin-top: -35px;
  margin-left: -9px;
  transition: transform 0.3s ease;
}

.forum-avatar-frame:hover .forum-avatar-custom {
  transform: scale(1.08);
}

.forum-avatar-custom {
  flex-shrink: 0;
}

.forum-avatar-custom.large {
  width: 96px;
  height: 96px;
}

.forum-avatar-custom.small {
  width: 36px;
  height: 36px;
}

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

.topic-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #c9d3e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-card-link:hover .topic-card-title {
  color: #ffb347;
}

.topic-card-activity {
  font-size: 12px;
  color: #93a3b8;
  margin-top: 4px;
}

.topic-card-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 4px;
}

.topic-card-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #93a3b8;
}

.stat-pill svg {
  width: 18px;
  height: 18px;
}

.stat-pill img {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.topic-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.topic-item-actions button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: #b8c4d4;
  cursor: pointer;
}

.topic-item-actions button svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.topic-item-actions button:hover {
  border-color: #ffb347;
  color: #ffb347;
}

.topic-item-actions button.danger:hover {
  border-color: #dc5050;
  color: #ff8f8f;
}

.empty-state {
  text-align: center;
  color: #93a3b8;
  font-size: 13px;
  padding: 30px 0;
}

/* Page detail sujet */

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #93a3b8;
  text-decoration: none;
  font-size: 13px;
}

.back-link:hover {
  color: #ffb347;
}

.topic-detail-title {
  margin: 8px 0 20px;
  font-size: 24px;
  color: #e8edf2;
}

.comments-title {
  font-size: 16px;
  color: #ffb347;
  margin: 0 0 14px;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.post-card {
  display: flex;
  gap: 20px;
}

.post-card-highlight .post-box {
  animation: postHighlightFlash 2.5s ease-out;
  border-radius: 10px;
}

@keyframes postHighlightFlash {
  0% { box-shadow: 0 0 0 3px #ffb347; }
  70% { box-shadow: 0 0 0 3px #ffb347; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.player {
  cursor: pointer;
  width: 350px;
  height: 130px;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.6s ease;
  position: relative;
  background-color: var(--box-color);
  border: 1px solid var(--border-color);
  display: flex;
  flex-shrink: 0;
}

.player-banner {
  width: 97%;
  position: absolute;
  align-items: center;
  justify-content: center;
  display: flex;
  border-radius: 1rem;
  top: 5%;
  left: 1.5%;
  height: 90%;
  overflow: hidden;
}

.player-banner .BannerImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-info {
  padding: 12px 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  flex-shrink: 1;
  position: relative;
  width: 50%;
  z-index: 1;
}

.player-image {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  width: 280px;
  flex-shrink: 1;
  overflow: hidden;
  z-index: 1;
}

.player-image img {
  display: block;
  position: absolute;
  left: 85px;
  bottom: 0;
  top: -10px;
  max-width: none;
  filter: drop-shadow(1px 1px 0 #fff) drop-shadow(-1px 0px 0 #fff) drop-shadow(0 -1px 0 #fff);
  animation: fadeInUp 1.4s ease;
}

.forum-view-badge {
  background-color: var(--box-color-double);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 40px;
  display: inline-block;
  height: fit-content;
  margin-top: -22%;
  position: absolute;
  left: 15%;
}

.forum-view-badge-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.forum-view-badge-title span {
  font-size: 14px;
  font-weight: 700;
  color: #e8edf2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.forum-dot.online {
  background: #2ecc71;
}

.forum-dot.offline {
  background: var(--color-red);
}

.post-main {
  flex: 1;
  min-width: 0;
}

.forum-view-timepost {
  font-size: 19px;
  padding: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
}

.forum-view-timepost-icon {
  height: 21px;
  width: 20px;
  background: url(/images/icon_time.png) no-repeat;
  background-size: contain;
}

.post-box {
  background: var(--box-color);
  border: 2px solid var(--border-color);
  border-radius: .8rem;
  padding: 16px;
}

.forum-view-post-wrapper {
  display: flex;
  flex-direction: column;
}

.forum-view-post-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  word-wrap: break-word;
  margin-left: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #d5dce6;
}

.forum-view-post-content img {
  max-width: 100%;
}

.forum-view-post-content table {
  border-collapse: collapse;
}

.forum-view-post-content td, .forum-view-post-content th {
  border: 1px solid var(--border-color);
  padding: 4px 8px;
}

.forum-view-post-content-footer {
  width: auto;
  display: flex;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
}

.forum-view-post-content-footer-button {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.forum-view-post-content-footer-button img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.forum-view-post-content-footer-button:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.forum-view-post-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

.forum-view-post-footer-center {
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.forum-view-post-footer-center-reactions {
  width: auto;
  max-width: 100%;
  padding: 8px;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  position: relative;
  top: -30px;
  z-index: 2;
}

.reaction-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.reaction-chip:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.08);
}

.reaction-chip.active {
  background: rgba(255, 179, 71, 0.15);
  border-color: #ffb347;
}

.reaction-emoji {
  font-size: 15px;
  line-height: 1;
}

.reaction-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1;
}

.reaction-count.active {
  color: #ffb347;
}

.forum-view-post-footer-center-reactions:not(.expanded) .reaction-chip[data-count="0"] {
  display: none;
}

.reactions-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.reactions-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.08);
}


.forum-view-post-footer-center-reactions.expanded .reactions-toggle {
  background: rgba(255, 179, 71, 0.15);
  border-color: #ffb347;
}

.forum-view-post-footer-right {
  width: auto;
  padding: 10px;
  border-radius: 15px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--text-color);
}

.btn-blue {
  background: var(--color-blue);
  color: #fff;
}

/* Profil - carte laterale */

.profile-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  box-sizing: border-box;
}

.staff-announcement {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 20px;
  background: #f7ce76;
  border: 2px solid #deb36c;
  border-radius: 12px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 16px;
}

.staff-announcement-avatar-wrap {
  flex-shrink: 0;
  width: 95px;
  height: 90px;
  overflow: hidden;
  position: relative;
}

.staff-announcement-avatar {
  position: absolute;
  top: -35px;
  left: -15px;
}

.staff-announcement-body {
  position: relative;
  min-width: 0;
  padding-left: 26px;
}

.staff-announcement-username {
  font-size: 18px;
  font-weight: 800;
  color: #000;
  margin-bottom: 2px;
}

.staff-announcement-message {
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.profile-layout {
  display: flex;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.profile-main-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.profile-currency-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 230px;
  background: var(--card-color);
  border: 1px solid var(--panel-border);
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: 16px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55);
}

.profile-stats-divider {
  height: 1px;
  background: var(--panel-border);
  margin: 4px 0;
}

.profile-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.profile-stat-label {
  color: #93a3b8;
}

.profile-stat-value {
  color: #eef1f7;
  font-weight: 600;
  white-space: nowrap;
}

.profile-side-card {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0a0a0a;
  border: 1px solid var(--panel-border);
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 16px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55);
}

.profile-side-username {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-side-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-side-avatar {
  width: 90px;
  flex-shrink: 0;
}

.profile-side-badges {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.profile-side-badges img {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.profile-side-motto {
  font-size: 12px;
  color: #b8c4d4;
  text-align: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  margin-bottom: 14px;
  min-height: 16px;
  word-wrap: break-word;
}

.profile-side-panel {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card-color);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55);
}

.profile-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.profile-panel-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: #7c879c;
  min-height: 100px;
}

.profile-economy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.economy-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 6px 10px;
}

.economy-item img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.economy-item-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #eef1f7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.economy-item-price {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #eef1f7;
  flex-shrink: 0;
}

.economy-item-price img {
  width: 15px;
  height: 15px;
}

#profile-economy-panel {
  flex: 1;
  min-width: 260px;
}

#profile-friends-panel {
  width: 392px;
  flex-shrink: 0;
}

.profile-friends-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  justify-items: center;
  align-content: start;
}

.friend-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid var(--ring-color, #2ecc71);
  background: #1a1a2e;
  position: relative;
  cursor: pointer;
}

.friend-circle-clip {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.friend-circle-clip img {
  position: absolute;
  width: 90px;
  height: 150px;
  left: -9px;
  top: -10px;
}

.friend-circle-empty {
  background: rgba(255, 255, 255, 0.04);
}

.profile-topics-toolbar {
  display: flex;
  gap: 8px;
}

.topics-view-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
  color: #93a3b8;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.topics-view-toggle svg {
  width: 18px;
  height: 18px;
}

.topics-view-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.topics-view-toggle.active {
  background: var(--color-blue, #4f7cff);
  color: #fff;
  border-color: transparent;
}

.profile-topics-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
}

.profile-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  width: 100%;
}

.profile-topic-square {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel-color);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.profile-topic-square:hover {
  transform: translateY(-3px);
}

.profile-topic-square.official {
  border-color: #ffd700;
}

.profile-topic-square-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.profile-topic-square-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-topic-square-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  padding: 8px 10px 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-topic-square-username {
  font-size: 11px;
  color: #93a3b8;
  padding: 0 10px 10px;
}

.profile-articles-section {
  width: 100%;
}

.profile-articles-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.profile-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.article-card {
  position: relative;
  display: block;
  height: 210px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -14px rgba(0, 0, 0, 0.65);
}

.article-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.55) 50%, rgba(10, 10, 15, 0.05) 100%);
}

.article-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px;
}

.article-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-card-description {
  font-size: 12px;
  color: #c9d3e0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Page detail article */

.article-page {
  width: 100%;
  max-width: 1300px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.article-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--panel-color);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: sticky;
  top: 188px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-sidebar-search {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--box-color);
  color: #e8edf2;
  font-size: 13px;
  outline: none;
}

.article-sidebar-search:focus {
  border-color: #ffb347;
}

.article-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-sidebar-item {
  position: relative;
  display: block;
  height: 92px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--box-color);
  background-size: cover;
  background-position: center;
  transition: border-color 0.15s;
}

.article-sidebar-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.55) 60%, rgba(10, 10, 15, 0.2) 100%);
}

.article-sidebar-item:hover {
  border-color: #ffb347;
}

.article-sidebar-item.active {
  border-color: #ffb347;
}

.article-sidebar-item-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 8px 10px;
}

.article-sidebar-item-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 6px;
}

.article-sidebar-item-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #93a3b8;
}

.article-main {
  flex: 1;
  min-width: 0;
  background: var(--panel-color);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}

.article-detail-banner {
  height: 320px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-bottom: 24px;
}

.article-detail-banner-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 28px;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.5) 60%, rgba(10, 10, 15, 0) 100%);
}

.article-detail-title {
  font-size: 26px;
  color: #fff;
  margin: 0 0 8px;
}

.article-detail-meta {
  font-size: 13px;
  color: #c9d3e0;
}

.article-author-badge {
  position: absolute;
  left: 0px;
  bottom: 0px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 6px 16px 6px 6px;
  backdrop-filter: blur(4px);
}

.article-author-badge-avatar-wrap {
  width: 42px;
  height: 42px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.article-author-badge-avatar-wrap img {
  width: 100%;
  height: auto;
}

.article-author-badge-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.article-detail-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 32px;
}

.article-detail-body img {
  max-width: 100%;
  border-radius: 8px;
}

.article-comments-section {
  border-top: 1px solid var(--panel-border);
  padding-top: 24px;
}

.article-comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.article-comment {
  display: flex;
  gap: 14px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
}

.article-comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--box-color-double);
}

.article-comment-body {
  flex: 1;
  min-width: 0;
}

.article-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.article-comment-username {
  font-weight: 700;
  color: #e8edf2;
  font-size: 13px;
}

.article-comment-time {
  font-size: 12px;
  color: #93a3b8;
}

.article-comment-delete-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #93a3b8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.article-comment-delete-btn:hover {
  color: #ff4d6d;
}

.article-comment-text {
  font-size: 13px;
  color: var(--text-color);
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  overflow-x: hidden;
}

.article-comment-text img {
  max-width: 100%;
}

.article-comment-text table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.article-comment-text td, .article-comment-text th {
  border: 1px solid var(--border-color);
  padding: 4px 8px;
}

#article-reply-section textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  background: var(--box-color);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-color);
  font-family: inherit;
  font-size: 13px;
  margin-bottom: 12px;
}

#article-reply-section textarea:focus {
  outline: none;
  border-color: #ffb347;
}

#article-reply-section .submit {
  width: auto;
  padding: 10px 24px;
  margin-top: 12px;
}

/* Page equipe */

.team-page {
  width: 100%;
  max-width: 1300px;
  background:
    radial-gradient(ellipse 900px 300px at 20% -10%, rgba(255, 179, 71, 0.1), transparent 60%),
    radial-gradient(ellipse 700px 260px at 100% 0%, rgba(79, 172, 254, 0.1), transparent 60%),
    #1a2338;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 26px 32px 32px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.team-page-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.18) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.team-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--panel-border);
}

.team-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-header-title img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.team-header-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #fff, #4facfe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.team-header-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #93a3b8;
}

.team-header-count {
  font-size: 12px;
  font-weight: 700;
  color: #c9d3e0;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 14px;
}

.team-sections {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.team-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid #93a3b8;
  padding: 4px 0 4px 12px;
  margin-bottom: 14px;
}

.team-section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #e8edf2;
}

.team-section-count {
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
  border-radius: 20px;
  padding: 1px 8px;
  opacity: 0.85;
}

.team-section-description {
  margin: -8px 0 14px 12px;
  font-size: 12.5px;
  color: #93a3b8;
  line-height: 1.4;
}

.team-member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.team-member-row {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #121a2a;
  border: 1px solid var(--team-color, var(--border-color));
  border-left: 3px solid var(--team-color, var(--border-color));
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s;
}

.team-member-row.resp {
  background: linear-gradient(90deg, color-mix(in srgb, var(--team-color) 30%, #121a2a) 0%, #121a2a 65%);
}

.team-member-badge {
  position: absolute;
  top: 0;
  left: 230px;
  transform: translateY(-50%);
  background: var(--box-color-double);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.team-member-row:hover {
  border-color: #ffb347;
}

.team-member-avatar-wrap {
  width: 50px;
  height: 70px;
  overflow: clip;
  position: relative;
  flex-shrink: 0;
}

.team-member-avatar {
  position: absolute;
  top: -10px;
  filter: drop-shadow(1px 1px 0 #fff) drop-shadow(-1px 0px 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(1px -1px 0 #fff);
}

.team-member-afk {
  position: absolute;
  top: 10px !important;
  left: 50px !important;
  width: 20px;
  height: 20px;
  z-index: 1;
}

.team-member-info {
  min-width: 0;
  flex: 1;
}

.team-member-icon {
  position: absolute;
  right: 25px;
  width: 60px;
  height: 60px;
}

.team-member-title {
  font-size: 13px;
  font-weight: 700;
  color: #e8edf2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-member-motto {
  font-size: 12px;
  font-weight: 700;
  color: #93a3b8;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-member-badge-edit-btn {
  position: absolute;
  right: 25px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}

.team-member-badge-edit-btn:hover {
  background: #ffb347;
  color: #1b2838;
}

.team-member-order-input {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 34px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.5);
  color: #e8edf2;
  font-size: 11px;
  text-align: center;
  padding: 0 2px;
  z-index: 1;
}

.team-member-order-input:focus {
  outline: none;
  border-color: #ffb347;
}

.team-badge-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.team-badge-picker-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  background: #171b28;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  padding: 24px;
}

.team-badge-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.team-badge-picker-item {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  background: var(--box-color);
  cursor: pointer;
  padding: 6px;
}

.team-badge-picker-item:hover {
  border-color: #ffb347;
}

.team-badge-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-badge-picker-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--panel-border);
  padding-top: 16px;
}

/* Page classement */

.leaderboard-page {
  width: 100%;
  max-width: 1300px;
  background:
    radial-gradient(ellipse 900px 300px at 20% -10%, rgba(255, 215, 0, 0.08), transparent 60%),
    radial-gradient(ellipse 700px 260px at 100% 0%, rgba(79, 172, 254, 0.1), transparent 60%),
    #1a2338;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 26px 32px 32px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.leaderboard-page-glow {
  position: absolute;
  top: -120px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.16) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.leaderboard-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--panel-border);
}

.leaderboard-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaderboard-header-title img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.leaderboard-header-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #fff, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.leaderboard-header-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #93a3b8;
}

.rank-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.rank-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rank-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--box-color);
  color: #9aa7bd;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.rank-tab:hover {
  color: var(--text-color);
}

.rank-tab.active {
  color: #fff;
  border-color: var(--color-accent);
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.2), rgba(255, 179, 71, 0.05));
}

.rank-month-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--box-color);
}

.rank-month-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: var(--box-color-double);
  color: var(--text-color);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.rank-month-arrow:hover:not(:disabled) {
  border-color: var(--color-accent);
  color: #fff;
}

.rank-month-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.rank-month-label {
  font-size: 13px;
  font-weight: 700;
  color: #e8edf2;
  min-width: 110px;
  text-align: center;
}

/* Rendu pixel-art net pour toutes les icones du classement. */
.rank-value-icon,
.rank-podium-badge img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.rank-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  margin-bottom: 24px;
}

/* Scene podium : fond provisoire (gradient ciel + sol), a remplacer par le
   vrai visuel de chambre Habbo quand il sera fourni. */
.rank-podium-card {
  border-radius: 12px;
  border: 3px solid var(--border-color);
  overflow: hidden;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), #16321f url('/images/hween26_kuvakisa_topstory_habbo.png') center / cover no-repeat;
  min-height: 340px;
}

.rank-podium-scene {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  height: 100%;
  padding: 24px 24px 0;
}

.rank-podium-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
}

.rank-podium-empty {
  visibility: hidden;
}

.rank-podium-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(10, 18, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rank-podium-badge img {
  width: 16px;
  height: 16px;
}

/* Siege du podium : image reelle du pod (nft_h25_zeuspod/zeuspodargent,
   73x65 natif) agrandie en pixel-art net, avatar assis (action=sit) pose
   dessus. Position approximative (pas de rendu visuel verifiable ici) : a
   ajuster si l'avatar ne tombe pas pile dans le creux du siege. */
.rank-podium-seat {
  position: relative;
  width: 160px;
  height: 142px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  image-rendering: pixelated;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.rank-podium-0 .rank-podium-seat {
  width: 190px;
  height: 169px;
}

/* Avatar plus grand que le pod lui-meme (demande explicite) : depasse donc
   du conteneur .rank-podium-seat (pas de overflow:hidden dessus). */
.rank-podium-seat-avatar {
  height: 180px;
  width: auto;
  margin-bottom: 8px;
  margin-left: 40px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35));
}

.rank-podium-0 .rank-podium-seat-avatar {
  height: 213px;
  margin-bottom: 10px;
  margin-left: 44px;
}

.rank-podium-name {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

.rank-podium-value {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.rank-podium-block {
  width: 100%;
  margin-top: 14px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  font-size: 32px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.25);
}


.rank-sidebar {
  display: flex;
}

.rank-best-card {
  width: 100%;
  background: var(--box-color-solid);
  border: 3px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rank-best-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ffd700;
  margin-bottom: 12px;
}

.rank-best-star {
  color: #ffd700;
}

.rank-best-avatar {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: top;
  margin-bottom: 6px;
}

.rank-best-username {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.rank-best-value {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #93a3b8;
  margin-top: 2px;
}

.rank-best-tier {
  margin-top: 10px;
}

.rank-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.08));
  border: 1px solid #ffd700;
  color: #ffd700;
  font-size: 12px;
  font-weight: 800;
}

.rank-best-quote {
  margin: 14px 0 0;
  font-size: 12px;
  font-style: italic;
  color: #9aa7bd;
  line-height: 1.5;
}

.rank-top10-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rank-top10-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.rank-top10-count {
  font-size: 12px;
  color: #93a3b8;
}

.rank-top10-strip {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

/* "Ta position" : la meme ligne qu'une carte du top 10, mais seule tout en
   bas, mise en avant (bordure accent) - visible meme hors du top 10. */
.rank-my-position {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--panel-border);
}

.rank-my-position-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #93a3b8;
}

.rank-my-position-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--box-color-solid);
  border: 2px solid var(--color-accent);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.rank-my-position-row .rank-top10-position {
  position: static;
}

.rank-my-position-row .rank-top10-avatar {
  margin-bottom: 0;
}

.rank-my-position-row .rank-top10-username {
  max-width: 140px;
}

.rank-my-position-row .rank-top10-tier {
  margin-top: 0;
  margin-left: auto;
}

.rank-top10-card {
  position: relative;
  flex: 0 0 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--box-color-solid);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 8px 12px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
}

.rank-top10-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--color-accent);
}

.rank-top10-position {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--box-color-double);
  border: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 800;
  color: #c3cbd9;
}

.rank-top10-avatar {
  height: 50px;
  width: auto;
  margin-bottom: 4px;
}

.rank-top10-username {
  font-size: 12px;
  font-weight: 700;
  color: #e8edf2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.rank-top10-value {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--box-color-double);
  border: 1px solid var(--border-color);
}

.rank-top10-tier {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.08));
  border: 1px solid #ffd700;
}

.rank-value-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .rank-main {
    grid-template-columns: 1fr;
  }
}

/* Page photos */

.photos-page {
  width: 100%;
  max-width: 1300px;
  background: #1a2338;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
}

.photos-section {
  margin-bottom: 32px;
}

.photos-section:last-child {
  margin-bottom: 0;
}

.photos-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #e8edf2;
  margin-bottom: 16px;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 320px);
  gap: 16px;
}

.photos-grid-covers {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.photo-card {
  position: relative;
  display: block;
  width: 320px;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--panel-border);
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photos-grid-covers .photo-card {
  height: 120px;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -14px rgba(0, 0, 0, 0.65);
}

.photo-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.85) 0%, rgba(10, 10, 15, 0) 100%);
  pointer-events: none;
}

.photo-author-badge {
  position: absolute;
  left: 0px;
  bottom: 0px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  backdrop-filter: blur(4px);
}

.photo-author-badge-avatar-wrap {
  width: 42px;
  height: 42px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.photo-author-badge-avatar-wrap img {
  width: 100%;
  height: auto;
}

.photo-author-badge-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.photo-like-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 20px;
  border: none;
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.photo-like-btn:hover {
  transform: scale(1.08);
}

.photo-like-btn:active {
  transform: scale(0.92);
}

.photo-like-btn svg {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.photo-like-btn.liked svg {
  fill: #ff4d6d;
  stroke: #ff4d6d;
  animation: photoLikePop 0.3s ease;
}

.photo-like-count {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

@keyframes photoLikePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.photo-author-badge-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-author-badge-time {
  font-size: 11px;
  color: #c9d3e0;
}

/* Page economie */

.economy-page {
  width: 100%;
  max-width: 1300px;
  background:
    radial-gradient(ellipse 900px 300px at 20% -10%, rgba(255, 179, 71, 0.1), transparent 60%),
    radial-gradient(ellipse 700px 260px at 100% 0%, rgba(155, 89, 182, 0.1), transparent 60%),
    #1a2338;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 26px 32px 32px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.economy-page-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.18) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.economy-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--panel-border);
}

.economy-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.economy-header-title img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.economy-header-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #fff, #ffb347);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.economy-header-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #93a3b8;
}

.economy-header-count {
  font-size: 12px;
  font-weight: 700;
  color: #c9d3e0;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 14px;
}

.economy-page-tabs {
  display: flex;
  gap: 28px;
  padding: 0 4px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--panel-border);
  position: relative;
  z-index: 1;
}

.economy-page-tab {
  background: none;
  border: none;
  color: #8b93a7;
  font-size: 14px;
  font-weight: 700;
  padding: 0 0 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.economy-page-tab.active {
  color: #fff;
  border-bottom-color: #ffb347;
}

.economy-listing-card {
  cursor: default;
}

.economy-listing-seller {
  display: flex;
  align-items: center;
  gap: 6px;
}

.economy-listing-seller-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--box-color-double);
}

.economy-listing-seller-name {
  font-size: 12px;
  font-weight: 700;
  color: #e8edf2;
}

.economy-listing-date {
  font-size: 10px;
  color: #6f7994;
}

.economy-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.economy-search-bar {
  position: relative;
  flex: 0 0 280px;
  display: flex;
  align-items: center;
}

.economy-search-bar svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: #93a3b8;
  pointer-events: none;
}

.economy-search-bar input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--box-color);
  color: #e8edf2;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.economy-search-bar input:focus {
  border-color: #ffb347;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.15);
}

.economy-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.economy-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px 7px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--box-color);
  color: #c9d3e0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.economy-filter-chip svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.economy-filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--tier-color);
  box-shadow: 0 0 6px 0 color-mix(in srgb, var(--tier-color) 70%, transparent);
}

.economy-filter-chip:hover {
  border-color: var(--tier-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--tier-color) 60%, transparent);
}

.economy-filter-chip.active {
  background: var(--tier-color);
  border-color: var(--tier-color);
  color: #0d1117;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--tier-color) 80%, transparent), 0 0 0 3px color-mix(in srgb, var(--tier-color) 22%, transparent);
}

.economy-filter-chip.active .economy-filter-dot {
  background: #0d1117;
  box-shadow: none;
}

.economy-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}

.economy-card {
  position: relative;
  isolation: isolate;
  cursor: pointer;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tier-color) 24%, transparent) 0%, transparent 65%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 10px),
    var(--box-color);
  border: 1px solid color-mix(in srgb, var(--tier-color) 45%, var(--border-color));
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.economy-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--tier-color);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px color-mix(in srgb, var(--tier-color) 50%, transparent), 0 0 28px -4px color-mix(in srgb, var(--tier-color) 65%, transparent);
}

.economy-card {
  animation: economyAutoHover 3s ease-in-out infinite;
}

.economy-card:nth-child(5n+1) { animation-delay: 0s; }
.economy-card:nth-child(5n+2) { animation-delay: 0.15s; }
.economy-card:nth-child(5n+3) { animation-delay: 0.3s; }
.economy-card:nth-child(5n+4) { animation-delay: 0.45s; }
.economy-card:nth-child(5n+5) { animation-delay: 0.6s; }

@keyframes economyAutoHover {
  0%, 60%, 100% {
    transform: translateY(0) scale(1);
    border-color: color-mix(in srgb, var(--tier-color) 45%, var(--border-color));
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  78% {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--tier-color);
    box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px color-mix(in srgb, var(--tier-color) 50%, transparent), 0 0 28px -4px color-mix(in srgb, var(--tier-color) 65%, transparent);
  }
}

.economy-card-glow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tier-color) 55%, transparent) 0%, transparent 70%);
  filter: blur(6px);
  z-index: -1;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.economy-card:hover .economy-card-glow {
  opacity: 1;
}

.economy-card-glow {
  animation: economyAutoGlow 3s ease-in-out infinite;
}

.economy-card:nth-child(5n+1) .economy-card-glow { animation-delay: 0s; }
.economy-card:nth-child(5n+2) .economy-card-glow { animation-delay: 0.15s; }
.economy-card:nth-child(5n+3) .economy-card-glow { animation-delay: 0.3s; }
.economy-card:nth-child(5n+4) .economy-card-glow { animation-delay: 0.45s; }
.economy-card:nth-child(5n+5) .economy-card-glow { animation-delay: 0.6s; }

@keyframes economyAutoGlow {
  0%, 60%, 100% { opacity: 0.7; }
  78% { opacity: 1; }
}

.economy-card-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.16) 50%, transparent 60%);
  background-size: 250% 250%;
  background-position: 120% 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.economy-card:hover .economy-card-shine {
  opacity: 1;
  animation: economyShineSweep 1s ease forwards;
}

@keyframes economyShineSweep {
  0% { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}

.economy-card-shine {
  animation: economyAutoShine 3s ease-in-out infinite;
}

.economy-card:nth-child(5n+1) .economy-card-shine { animation-delay: 0s; }
.economy-card:nth-child(5n+2) .economy-card-shine { animation-delay: 0.15s; }
.economy-card:nth-child(5n+3) .economy-card-shine { animation-delay: 0.3s; }
.economy-card:nth-child(5n+4) .economy-card-shine { animation-delay: 0.45s; }
.economy-card:nth-child(5n+5) .economy-card-shine { animation-delay: 0.6s; }

@keyframes economyAutoShine {
  0%, 55% { background-position: 120% 0; opacity: 0; }
  70% { opacity: 1; }
  85%, 100% { background-position: -20% 0; opacity: 0; }
}

.economy-card.tier-mythiques {
  animation: economyAutoHover 3s ease-in-out infinite, economyMythicPulse 3s ease-in-out infinite;
}

@keyframes economyMythicPulse {
  0%, 60%, 100% { filter: brightness(1); }
  78% { filter: brightness(1.15); }
}

.economy-card.owned {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tier-color) 22%, transparent) 0%, transparent 65%),
    var(--box-color-double);
}

.economy-card-tier {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tier-color);
  white-space: nowrap;
}

.economy-card-owned {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  z-index: 3;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #0d1117;
  background: #7be3a3;
  border: 2px solid var(--box-color);
  border-radius: 50%;
  box-shadow: 0 2px 8px -1px rgba(80, 200, 130, 0.6);
}

.economy-card-icon-wrap {
  position: relative;
}

.economy-card-name {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  max-width: 78%;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(120deg, color-mix(in srgb, var(--tier-color) 38%, rgba(8, 10, 18, 0.85)) 0%, rgba(8, 10, 18, 0.9) 100%);
  border: none;
  border-bottom: 2px solid var(--tier-color);
  border-right: 2px solid var(--tier-color);
  border-radius: 0 0 12px 0;
  padding: 8px 16px 7px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 4px 4px 14px -4px rgba(0, 0, 0, 0.65), 0 0 16px -6px color-mix(in srgb, var(--tier-color) 70%, transparent);
}

.economy-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 66px 16px 22px;
}

.economy-card-icon-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tier-color) 24%, transparent) 0%, transparent 72%);
  transition: transform 0.25s ease;
}

.economy-card-icon-wrap::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--tier-color) 55%, transparent);
  opacity: 0.6;
}

.economy-card-icon-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 46px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tier-color) 45%, transparent);
  filter: blur(6px);
}

.economy-card:hover .economy-card-icon-wrap {
  transform: scale(1.08);
}

.economy-card-icon-wrap {
  animation: economyAutoIconScale 3s ease-in-out infinite;
}

.economy-card:nth-child(5n+1) .economy-card-icon-wrap { animation-delay: 0s; }
.economy-card:nth-child(5n+2) .economy-card-icon-wrap { animation-delay: 0.15s; }
.economy-card:nth-child(5n+3) .economy-card-icon-wrap { animation-delay: 0.3s; }
.economy-card:nth-child(5n+4) .economy-card-icon-wrap { animation-delay: 0.45s; }
.economy-card:nth-child(5n+5) .economy-card-icon-wrap { animation-delay: 0.6s; }

@keyframes economyAutoIconScale {
  0%, 60%, 100% { transform: scale(1); }
  78% { transform: scale(1.08); }
}

.economy-card-icon {
  /* position: relative; */
  /* z-index: 1; */
  /* width: 76px; */
  /* height: 76px; */
  /* object-fit: contain; */
  /* filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.55)); */
  zoom: 2;
  image-rendering: pixelated;
}

.economy-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  background: color-mix(in srgb, var(--tier-color) 14%, rgba(0, 0, 0, 0.3));
  border-top: 1px solid color-mix(in srgb, var(--tier-color) 35%, var(--border-color));
}

.economy-card-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tier-color) 80%, white), transparent);
  opacity: 0.7;
}

.economy-card-price img {
  width: 26px;
  height: 29px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.economy-card-price {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 12px color-mix(in srgb, var(--tier-color) 60%, transparent);
  letter-spacing: 0.02em;
}

.economy-owners-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.economy-owners-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #1a2338;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.economy-owners-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.economy-owners-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.economy-owners-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  background: radial-gradient(circle at 0% 0%, rgba(255, 179, 71, 0.15), transparent 70%);
  border-bottom: 1px solid var(--panel-border);
}

.economy-owners-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.economy-owners-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.economy-owners-subtitle {
  font-size: 12px;
  color: #93a3b8;
  margin-top: 2px;
}

.economy-owners-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(255, 179, 71, 0.08);
  border-bottom: 1px solid var(--panel-border);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.economy-owners-value-amount {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #ffb347;
  text-transform: none;
  letter-spacing: normal;
}

.economy-owners-value-amount img {
  width: 15px;
  height: 15px;
}

.economy-owners-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
}

.economy-owner-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.economy-owner-row:hover {
  border-color: #ffb347;
  transform: translateX(2px);
}

.economy-owner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--box-color-double);
}

.economy-owner-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #e8edf2;
}

.economy-owner-copies {
  font-size: 11px;
  font-weight: 700;
  color: #ffb347;
  background: rgba(255, 179, 71, 0.15);
  border-radius: 20px;
  padding: 2px 8px;
}

/* Page boutique */

.shop-page {
  width: 100%;
  max-width: 1300px;
  background:
    radial-gradient(ellipse 900px 300px at 20% -10%, rgba(79, 172, 254, 0.12), transparent 60%),
    radial-gradient(ellipse 700px 260px at 100% 0%, rgba(155, 89, 182, 0.1), transparent 60%),
    #1a2338;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 26px 32px 32px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.shop-page-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.2) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.shop-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--panel-border);
}

.shop-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-header-title img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.shop-header-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #fff, #4facfe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shop-header-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #93a3b8;
}

.shop-balances {
  display: flex;
  gap: 10px;
}

.shop-balance-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 7px 14px;
}

.shop-balance-pill img {
  width: 16px;
  height: 16px;
}

.shop-section-title {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 700;
  color: #e8edf2;
  margin-bottom: 16px;
}

.shop-packages {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.shop-package-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 26px 18px 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 172, 254, 0.2) 0%, transparent 65%),
    var(--box-color);
  border: 1px solid color-mix(in srgb, #4facfe 40%, var(--border-color));
  border-radius: 14px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.shop-package-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #4facfe;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.7), 0 0 28px -4px rgba(79, 172, 254, 0.5);
}

.shop-package-icon-wrap {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.25) 0%, transparent 72%);
}

.shop-package-icon-wrap img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}

.shop-package-amount {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.shop-package-amount span {
  font-size: 12px;
  font-weight: 600;
  color: #93a3b8;
  display: block;
  margin-top: 2px;
}

.shop-package-buy {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #4facfe, #3a8ee0);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-package-buy img {
  width: 14px;
  height: 14px;
}

.shop-package-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(79, 172, 254, 0.6);
}

.shop-package-buy:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Page grattage */

.scratch-page {
  width: 100%;
  max-width: 1300px;
  background:
    radial-gradient(ellipse 900px 300px at 20% -10%, rgba(185, 103, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 260px at 100% 0%, rgba(255, 179, 71, 0.1), transparent 60%),
    #1a2338;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 26px 32px 32px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.scratch-page-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 103, 255, 0.22) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.scratch-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--panel-border);
}

.scratch-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scratch-header-title img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.scratch-header-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #fff, #b967ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scratch-header-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #93a3b8;
}

.scratch-balances {
  display: flex;
  gap: 10px;
}

.scratch-balance-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 7px 14px;
}

.scratch-balance-pill img {
  width: 26px;
  height: 29px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.scratch-layout {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.scratch-board {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.scratch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 320px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.scratch-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--box-color-double);
  border: 1px solid var(--border-color);
}

.scratch-cell-symbol {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scratch-cell-symbol img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.scratch-cell canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
  transition: opacity 0.3s ease;
}

.scratch-buy-btn {
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #b967ff, #8a3ef0);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(185, 103, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.scratch-buy-btn img {
  width: 18px;
  height: 20px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.scratch-buy-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(185, 103, 255, 0.7);
}

.scratch-buy-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.scratch-result-banner {
  display: none;
  width: 100%;
  max-width: 320px;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.scratch-result-banner.win {
  color: #7be3a3;
  background: rgba(123, 227, 163, 0.12);
  border: 1px solid rgba(123, 227, 163, 0.4);
}

.scratch-result-banner.lose {
  color: #93a3b8;
  background: rgba(147, 163, 184, 0.1);
  border: 1px solid var(--border-color);
}

.scratch-prizes {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 240px;
}

.scratch-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #e8edf2;
  margin-bottom: 16px;
}

.scratch-prize-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
}

.scratch-prize-row img {
  width: 26px;
  height: 29px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.scratch-prize-row span {
  font-size: 13px;
  font-weight: 600;
  color: #e8edf2;
}

.scratch-rules-title {
  margin-top: 26px;
}

.scratch-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scratch-rules li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #93a3b8;
}

.scratch-rules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b967ff;
}

.scratch-rules li strong {
  color: #e8edf2;
  font-weight: 700;
}

/* Page admin */

.admin-page {
  width: 100%;
  max-width: 1300px;
  background:
    radial-gradient(ellipse 900px 300px at 20% -10%, rgba(255, 77, 109, 0.12), transparent 60%),
    radial-gradient(ellipse 700px 260px at 100% 0%, rgba(255, 179, 71, 0.1), transparent 60%),
    #1a2338;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 26px 32px 32px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.admin-page-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.2) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.admin-header {
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--panel-border);
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-title img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.admin-header-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #fff, #ff4d6d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-header-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #93a3b8;
}

.admin-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: #93a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.admin-tab:hover {
  background: var(--box-color);
}

.admin-tab.active {
  background: rgba(255, 77, 109, 0.12);
  border-color: rgba(255, 77, 109, 0.35);
  color: #fff;
}

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

.admin-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-panel-toolbar input {
  flex: 1;
  max-width: 320px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  color: #e8edf2;
  font-size: 13px;
}

.admin-panel-count {
  font-size: 12px;
  color: #93a3b8;
  white-space: nowrap;
}

.admin-users-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--box-color-double);
}

.admin-user-info {
  flex: 1;
  min-width: 0;
}

.admin-user-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #e8edf2;
}

.admin-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.admin-user-dot.online {
  background: #2ecc71;
}

.admin-user-dot.offline {
  background: var(--color-red);
}

.admin-user-mail {
  font-size: 11px;
  color: #6f7994;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.admin-user-rank {
  font-size: 11px;
  font-weight: 700;
  color: #ffb347;
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.admin-user-credits {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #e8edf2;
  white-space: nowrap;
}

.admin-user-credits img {
  width: 13px;
  height: 13px;
}

.admin-user-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.admin-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--box-color-double);
  color: #93a3b8;
  cursor: pointer;
}

.admin-edit-btn:hover {
  color: #4facfe;
  border-color: #4facfe;
}

.admin-delete-btn:hover {
  color: #ff4d6d;
  border-color: #ff4d6d;
}

.admin-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-edit-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #1a2338;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  padding: 24px;
}

.admin-edit-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.admin-edit-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.admin-edit-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-edit-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--box-color-double);
}

.admin-edit-header h2 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}

.admin-edit-header p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #93a3b8;
}

.admin-edit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #93a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  font-family: inherit;
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  color: #e8edf2;
  resize: vertical;
}

.admin-field-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.admin-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.admin-btn-primary,
.admin-btn-secondary {
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.admin-btn-primary {
  background: #ff4d6d;
  color: #fff;
}

.admin-btn-secondary {
  background: var(--box-color);
  color: #93a3b8;
  border: 1px solid var(--border-color);
}

.admin-field-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #e8edf2;
  margin-bottom: 18px;
}

.admin-field-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #93a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  max-width: 420px;
}

.admin-field-block select,
.admin-field-block textarea {
  font-family: inherit;
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  color: #e8edf2;
  resize: vertical;
}

.admin-announcement-preview-label {
  margin: 26px 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: #93a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#admin-announcement-preview {
  max-width: 520px;
}

.admin-ban-form {
  max-width: 420px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--panel-border);
}

.admin-ban-autofill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: -8px 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  font-size: 12px;
}

.admin-ban-autofill div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.admin-ban-autofill span {
  color: #93a3b8;
}

.admin-ban-autofill strong {
  color: #e8edf2;
  font-weight: 600;
  word-break: break-all;
  text-align: right;
}

.admin-bans-toolbar {
  justify-content: flex-end;
}

.admin-bans-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-ban-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
}

.admin-ban-type-badge {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-ban-type-account {
  color: #4facfe;
  background: rgba(79, 172, 254, 0.12);
  border: 1px solid rgba(79, 172, 254, 0.3);
}

.admin-ban-type-ip {
  color: #ffb347;
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.3);
}

.admin-ban-type-machine {
  color: #b967ff;
  background: rgba(185, 103, 255, 0.12);
  border: 1px solid rgba(185, 103, 255, 0.3);
}

.admin-ban-type-super {
  color: #ff4d6d;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.3);
}

.admin-ban-expire {
  font-size: 12px;
  color: #93a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-ban-staff-label {
  font-size: 11px;
  color: #6f7994;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-ban-row.inactive {
  opacity: 0.55;
}

.admin-ban-status-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-ban-status-badge.active {
  color: #7be3a3;
  background: rgba(123, 227, 163, 0.12);
  border: 1px solid rgba(123, 227, 163, 0.35);
}

.admin-ban-status-badge.lifted {
  color: #93a3b8;
  background: rgba(147, 163, 184, 0.1);
  border: 1px solid var(--border-color);
}

.admin-trade-lock-btn.active,
.admin-ban-toggle-btn.active,
.admin-mute-toggle-btn.active,
.admin-forum-mute-toggle-btn.active {
  color: #ff4d6d;
  border-color: rgba(255, 77, 109, 0.4);
  background: rgba(255, 77, 109, 0.1);
}

.admin-room-feature-btn.active {
  color: #ffb347;
  border-color: rgba(255, 179, 71, 0.4);
  background: rgba(255, 179, 71, 0.1);
}

.admin-sidebar-category {
  margin: 18px 0 4px;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6f7994;
}

.admin-sidebar-category:first-child {
  margin-top: 0;
}

.admin-help-text {
  max-width: 520px;
  margin: 0 0 20px;
  font-size: 13px;
  color: #93a3b8;
  line-height: 1.5;
}

.admin-section-subtitle {
  margin: 28px 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #e4e8f1;
}

.admin-badges-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
}

.admin-badge-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.admin-badge-preview {
  display: none;
  align-items: center;
  gap: 10px;
  margin: -8px 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  font-size: 13px;
  color: #e8edf2;
}

.admin-badge-preview img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.admin-grattage-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  max-width: 680px;
}

.admin-grattage-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
}

.admin-grattage-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.admin-grattage-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--box-color-double);
  cursor: pointer;
  overflow: hidden;
}

.admin-grattage-icon-btn:disabled {
  cursor: default;
  opacity: 0.7;
}

.admin-grattage-icon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(8, 10, 18, 0.7);
  opacity: 0;
  transition: opacity 0.15s;
}

.admin-grattage-icon-btn:hover .admin-grattage-icon-overlay {
  opacity: 1;
}

.admin-grattage-name {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--box-color-double);
  border: 1px solid var(--border-color);
  color: #e8edf2;
}

.admin-grattage-name:disabled {
  color: #93a3b8;
  cursor: default;
}

.admin-grattage-hint {
  margin-top: 3px;
  font-size: 10.5px;
  color: #6f7994;
}

.admin-grattage-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #93a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: 90px;
  flex-shrink: 0;
}

.admin-grattage-field input {
  font-family: inherit;
  text-transform: none;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--box-color-double);
  border: 1px solid var(--border-color);
  color: #e8edf2;
}

.admin-grattage-field-spacer {
  width: 90px;
  flex-shrink: 0;
}

/* Admin : Radio */

.admin-radio-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.admin-radio-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
}

.admin-radio-position {
  width: 22px;
  flex-shrink: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #93a3b8;
}

.admin-radio-player {
  height: 32px;
  max-width: 260px;
  flex-shrink: 0;
}

.admin-radio-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Admin : Boutique CMS (packs) */

.admin-shop-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.admin-shop-pack-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
}

.admin-shop-pack-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-shop-pack-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
}

.admin-shop-pack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-shop-pack-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  background: var(--box-color-double);
  border: 1px solid var(--border-color);
  color: #c3cbd9;
}

.admin-shop-pack-rewards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 10px;
}

.admin-shop-pack-reward-row {
  display: flex;
  gap: 8px;
}

.admin-shop-pack-reward-row select,
.admin-shop-pack-reward-row input {
  font-family: inherit;
  font-size: 13px;
  padding: 7px 8px;
  border-radius: 6px;
  background: var(--box-color-double);
  border: 1px solid var(--border-color);
  color: #e8edf2;
}

.admin-shop-pack-reward-row select {
  flex: 1.3;
}

.admin-shop-pack-reward-row input {
  flex: 1;
  min-width: 0;
}

/* Admin : OneBox (economie) */

.admin-onebox-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  margin-top: 14px;
  align-items: start;
}

.admin-onebox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-onebox-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  text-align: left;
  cursor: pointer;
  color: var(--text-color);
}

.admin-onebox-card.active {
  border-color: var(--color-accent);
  background: var(--box-color-double);
}

.admin-onebox-card-name {
  font-weight: 700;
  font-size: 13px;
}

.admin-onebox-detail {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  min-height: 120px;
}

.admin-onebox-detail-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.admin-onebox-rewards-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.admin-onebox-reward-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--box-color-double);
}

.admin-onebox-reward-type {
  flex: 0 0 110px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
}

.admin-onebox-reward-ref {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-onebox-reward-row input,
.admin-onebox-reward-row select {
  width: 90px;
  flex-shrink: 0;
}

.admin-onebox-add-row select {
  width: auto;
  flex: 0 0 170px;
}

.admin-onebox-add-row input[type="text"] {
  flex: 1;
  min-width: 0;
  width: auto;
}

/* Admin : HabboAssets */

.admin-habboassets-section {
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
}

.admin-habboassets-section:first-of-type {
  border-top: none;
}

.admin-habboassets-section h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text-color);
}

.admin-habboassets-result {
  margin-top: 10px;
}

.admin-habboassets-pre {
  max-height: 300px;
  overflow: auto;
  padding: 10px;
  border-radius: 8px;
  background: var(--box-color-solid);
  border: 1px solid var(--border-color);
  font-size: 11px;
  color: #c3cbd9;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Admin : Catalogue */

.admin-catalog-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-catalog-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
}

.admin-catalog-id {
  font-weight: 500;
  color: #6f7994;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.admin-pagination-count {
  font-size: 12px;
  color: #93a3b8;
  white-space: nowrap;
}

.admin-pagination .admin-btn-secondary:disabled {
  opacity: 0.4;
  cursor: default;
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-itemsearch {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: -4px;
}

.admin-itemsearch input {
  font-family: inherit;
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  color: #e8edf2;
}

.admin-itemsearch-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 140px;
  overflow-y: auto;
}

.admin-itemsearch-result {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--box-color-double);
  border: 1px solid var(--border-color);
  cursor: pointer;
  color: #e8edf2;
}

.admin-itemsearch-result:hover {
  border-color: #4facfe;
  color: #4facfe;
}

.admin-itemsearch-result.empty {
  color: #6f7994;
  cursor: default;
}

.admin-itemsearch-result.empty:hover {
  border-color: var(--border-color);
  color: #6f7994;
}

.admin-edit-modal-wide {
  max-width: 760px;
}

.admin-player-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-player-profile-section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.admin-player-profile-section-row:last-child {
  border-bottom: none;
}

.admin-player-profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-color);
  margin: 18px 0 16px;
}

.admin-player-profile-tab {
  background: none;
  border: none;
  color: #93a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.admin-player-profile-tab:hover {
  color: #e4e8f1;
}

.admin-player-profile-tab.active {
  color: #fff;
  border-bottom-color: rgba(255, 77, 109, 0.8);
}

.admin-player-profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.admin-player-profile-stat-tile {
  background: var(--box-color-solid);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
}

.admin-player-profile-stat-tile .stat-label {
  font-size: 11px;
  color: #93a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-player-profile-stat-tile .stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 4px;
}

.admin-edit-modal-wide .admin-edit-avatar {
  border-radius: 8px;
  object-fit: cover;
}

.admin-currency-adjust {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}

.admin-currency-adjust select,
.admin-currency-adjust input {
  background: var(--box-color-solid);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  padding: 8px 10px;
  font-size: 13px;
}

.admin-currency-adjust input {
  width: 130px;
}

/* Page parametres */

.settings-page {
  width: 100%;
  max-width: 560px;
}

.settings-title {
  font-size: 22px;
  color: #e8edf2;
  margin: 0 0 20px;
}

.settings-card {
  background: var(--panel-color);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.settings-card-title {
  font-size: 15px;
  color: #ffb347;
  margin: 0 0 18px;
}

.profile-recent-posts {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-recent-posts-list .topic-item {
  width: 100%;
  flex: none;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: #3ecf5e;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 0;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.play-button:hover {
  background: #34b850;
}

.header-game-icon {
  width: 22px;
  height: 22px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.header-play-button {
  position: absolute;
  top: 50%;
  right: 52px;
  transform: translateY(-50%);
  padding: 10px 28px;
  white-space: nowrap;
}

.currency-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #eef1f7;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  border-radius: 6px;
}

.currency-item img {
  display: block;
  flex-shrink: 0;
}

.site-footer {
  position: relative;
  align-self: stretch;
  width: 100%;
  margin-top: 10px;
  padding: 40px 24px 36px;
  /* background: var(--panel-color); */
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-red), var(--color-accent), transparent);
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer-col {
  flex: 1 1 220px;
}

.site-footer-brand {
  text-align: left;
}

.site-footer-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-color);
  text-transform: uppercase;
}

.site-footer-social {
  display: flex;
  gap: 10px;
}

.site-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  /* background: var(--box-color); */
  /* border: 1px solid var(--border-color); */
  /* transition: border-color 0.15s, transform 0.15s; */
}

.site-footer-social a:hover {
  border-color: #ffb347;
  transform: translateY(-3px);
}

.site-footer-social img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  image-rendering: pixelated;
}

.site-footer-copy {
  flex: 1 1 260px;
  text-align: center;
}

.site-footer-copyright {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-color);
}

.site-footer-disclaimer {
  margin: 0 auto;
  max-width: 360px;
  font-size: 11px;
  color: #7c879c;
}

.site-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.site-footer-links a {
  font-size: 12px;
  color: #9aa7bd;
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer-links a:hover {
  color: var(--color-accent);
}

@media (max-width: 720px) {
  .site-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .site-footer-brand {
    text-align: center;
  }

  .site-footer-social {
    justify-content: center;
  }

  .site-footer-links {
    align-items: center;
    text-align: center;
  }
}

/* ===== Carte de profil (modale) ===== */

.profile-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.profile-card-overlay.loading .profile-card-modal {
  opacity: 0.4;
}

.profile-card-modal {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  background: #171b28;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
}

.profile-card-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.profile-card-banner {
  width: 100%;
  height: 200px;
  background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.profile-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.35) 55%, rgba(10, 10, 15, 0.95) 100%);
}

.profile-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 24px;
  margin-top: -48px;
}

.profile-card-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #6b7280;
  background: #0a0a0a;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}

.profile-card-avatar.online {
  border-color: #2ecc71;
}

.profile-card-identity {
  padding-bottom: 8px;
  min-width: 0;
}

.profile-card-username {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.profile-card-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.profile-card-handle {
  font-size: 13px;
  color: #8b93a7;
}

.profile-card-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.profile-card-status.online {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.profile-card-status.offline {
  background: rgba(139, 147, 167, 0.15);
  color: #8b93a7;
}

.profile-card-joined {
  font-size: 12px;
  color: #8b93a7;
  margin-top: 4px;
}

.profile-card-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  padding-bottom: 8px;
  flex-shrink: 0;
}

.profile-card-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.profile-card-btn-follow {
  background: var(--color-blue, #4f7cff);
  border-color: transparent;
}

.profile-card-btn-follow.following {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--panel-border);
  color: #ff8f8f;
}

.profile-card-btn-follow:disabled {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--panel-border);
  color: #93a3b8;
  cursor: default;
}

.profile-card-tabs {
  display: flex;
  gap: 24px;
  padding: 20px 24px 0;
  margin-top: 16px;
  border-bottom: 1px solid var(--panel-border);
}

.profile-card-tab {
  background: none;
  border: none;
  color: #8b93a7;
  font-size: 13px;
  font-weight: 600;
  padding: 0 0 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.profile-card-tab.active {
  color: #fff;
  border-bottom-color: var(--color-blue, #4f7cff);
}

.profile-card-body {
  padding: 20px 24px 28px;
}

.profile-card-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b93a7;
  margin-bottom: 8px;
}

.profile-card-panel + .profile-card-section-title,
.profile-card-about + .profile-card-section-title {
  margin-top: 22px;
}

.profile-card-about {
  font-size: 14px;
  color: #eef1f7;
  line-height: 1.5;
}

.profile-card-mutual-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-card-mutual-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #eef1f7;
}

.profile-card-mutual-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background: #0a0a0a;
}

.profile-card-empty {
  font-size: 13px;
  color: #7c879c;
  padding: 12px 0;
}

.profile-card-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  margin-bottom: 8px;
}

.profile-card-list-item-title {
  font-size: 13px;
  color: #eef1f7;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-list-item-meta {
  font-size: 12px;
  color: #7c879c;
  flex-shrink: 0;
}

.profile-card-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-card-photo {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0a0a0a;
}

.profile-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-card-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: #eef1f7;
  margin-bottom: 8px;
}

.profile-card-messages {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 360px;
  overflow-y: auto;
}

.profile-card-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 75%;
  margin-bottom: 6px;
}

.profile-card-message.from-me {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.profile-card-message.from-them {
  align-self: flex-start;
  flex-direction: row;
}

.profile-card-message-avatar-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  flex-shrink: 0;
}

.profile-card-message-avatar {
  position: absolute;
  width: 42px;
  height: 72px;
  left: -9px;
  top: -10px;
}

.profile-card-message-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-card-message.from-me .profile-card-message-content {
  align-items: flex-end;
}

.profile-card-message.from-them .profile-card-message-content {
  align-items: flex-start;
}

.profile-card-message-bubble {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: #fff;
  word-break: break-word;
}

.profile-card-message.from-me .profile-card-message-bubble {
  background: var(--color-blue, #4f7cff);
  border-bottom-right-radius: 4px;
}

.profile-card-message.from-them .profile-card-message-bubble {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}

.profile-card-message-time {
  font-size: 10px;
  color: #7c879c;
  margin-top: 2px;
  padding: 0 4px;
}

.profile-card-message-compose {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--panel-border);
}

.profile-card-message-compose input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 13px;
}

.profile-card-message-compose button {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: var(--color-blue, #4f7cff);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}


/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 900px) {
  .forum-page {
    padding: 22px 20px;
  }

  .topic-item {
    flex: 0 0 calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
  }

  .player {
    width: 100%;
    max-width: 350px;
  }

  .post-card {
    flex-wrap: wrap;
  }

  .post-main {
    min-width: 260px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  body.wide-layout {
    padding: 16px 10px;
  }

  body.has-header {
    padding-top: 137px;
  }

  .site-header-inner {
    padding: 0 24px;
  }

  .card {
    padding: 24px 20px;
  }

  .forum-page {
    padding: 18px 14px;
    border-radius: 10px;
  }

  .forum-header h1 {
    font-size: 20px;
  }

  .tab-btn {
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  .tab-btn img {
    width: 24px;
    height: 24px;
  }

  .forum-topbar-button {
    width: 40px;
    height: 40px;
  }

  .topic-item {
    flex: 0 0 100%;
    width: 100%;
  }

  .filter-dropdown {
    min-width: 0;
    width: 100%;
  }

  .filter-toggle {
    width: 100%;
  }

  .filter-options {
    width: 100%;
    max-width: calc(100vw - 60px);
  }

  .filter-options li {
    width: 100%;
  }

  .search-bar {
    width: 100%;
  }

  .category-toggle-card {
    width: calc(50% - 7px);
  }

  .post-card {
    flex-direction: column;
    gap: 14px;
  }

  .player {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .topic-detail-title {
    font-size: 20px;
  }

  .forum-view-post-content-footer {
    margin-left: 0;
    width: 100%;
  }

  .forum-view-post-content-footer-button {
    flex: 1 1 auto;
    text-align: center;
  }

  .forum-view-post-footer {
    margin-left: 0;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small phones */
@media (max-width: 400px) {
  .player {
    height: 150px;
  }

  .player-image {
    width: 130px;
  }

  .player-image img {
    left: 20px;
  }

  .forum-tabs {
    gap: 8px;
  }

  .tab-btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

/* Admin : Activite */

.admin-ban-type-economie {
  color: #7be3a3;
  background: rgba(123, 227, 163, 0.12);
  border: 1px solid rgba(123, 227, 163, 0.35);
}

.admin-activity-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-activity-toolbar input[type="text"] {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  color: #e8edf2;
  font-size: 13px;
}

.admin-activity-date-field {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #93a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.admin-activity-date-field input {
  font-family: inherit;
  text-transform: none;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  color: #e8edf2;
}

.admin-activity-toolbar .admin-panel-count {
  margin-left: auto;
}

.admin-activity-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
}

.admin-activity-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-activity-filter-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #93a3b8;
}

.admin-activity-filter-group-header button {
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #4facfe;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.admin-activity-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.admin-activity-filter-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #e8edf2;
  text-transform: none;
  letter-spacing: 0;
}

.admin-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-activity-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
}

.admin-activity-row .admin-user-avatar {
  margin-top: 1px;
}

.admin-activity-body {
  flex: 1;
  min-width: 0;
}

.admin-activity-label {
  font-size: 13px;
  font-weight: 600;
  color: #e8edf2;
  line-height: 1.4;
}

.admin-activity-detail {
  margin-top: 2px;
  font-size: 11.5px;
  color: #6f7994;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-activity-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.admin-activity-time {
  font-size: 11px;
  color: #6f7994;
}

/* Admin : fiche utilisateur (onglet Utilisateurs) */

.admin-user-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
}

.admin-user-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.admin-user-card-identity {
  flex: 1;
  min-width: 0;
}

.admin-user-card-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #e8edf2;
}

.admin-user-card-motto {
  margin-top: 3px;
  font-size: 12px;
  color: #6f7994;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-card-body {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  padding-left: 48px;
  font-size: 12px;
  color: #93a3b8;
}

.admin-user-card.expanded .admin-user-card-body {
  display: grid;
}

.admin-user-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #93a3b8;
  cursor: pointer;
}

.admin-user-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf2;
}

.admin-user-toggle-btn svg {
  transition: transform 0.15s ease;
}

.admin-user-card.expanded .admin-user-toggle-btn svg {
  transform: rotate(180deg);
}

.admin-user-card-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-user-card-col-right {
  align-items: flex-end;
  text-align: right;
}

.admin-user-card-col strong {
  color: #e8edf2;
  font-weight: 600;
}

.admin-user-card-currencies {
  display: flex;
  gap: 14px;
  margin-top: 2px;
}

.admin-user-card-currencies span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: #e8edf2;
  font-size: 12px;
}

.admin-user-card-currencies img {
  width: 15px;
  height: 15px;
}

@media (max-width: 640px) {
  .admin-user-card-body {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .admin-user-card-col-right {
    align-items: flex-start;
    text-align: left;
  }
}

/* Admin : Bannieres hotel (banner / stand / overlay / decoration / packs) */

.admin-cosmetic-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-cosmetic-upload input[type="file"] {
  font-size: 12px;
  color: #93a3b8;
}

.admin-cosmetic-field {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #93a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.admin-cosmetic-field input {
  font-family: inherit;
  text-transform: none;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  color: #e8edf2;
  width: 90px;
}

.admin-cosmetic-pos-input {
  width: 60px !important;
}

.admin-cosmetic-upload .admin-panel-count {
  margin-left: auto;
}

.admin-cosmetic-status {
  min-height: 16px;
  margin-bottom: 10px;
  font-size: 12px;
}

.admin-cosmetic-status.success {
  color: #7be3a3;
}

.admin-cosmetic-status.error {
  color: #ff4d6d;
}

.admin-cosmetic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.admin-cosmetic-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
}

.admin-cosmetic-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.admin-cosmetic-code {
  font-size: 11px;
  font-weight: 700;
  color: #e8edf2;
  text-align: center;
  word-break: break-all;
}

.admin-cosmetic-price-edit {
  width: 100%;
  font-family: inherit;
  font-size: 12px;
  padding: 5px 6px;
  border-radius: 6px;
  background: var(--box-color-double);
  border: 1px solid var(--border-color);
  color: #e8edf2;
  text-align: center;
}

.admin-pack-create {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-pack-create input[type="text"] {
  flex: 1;
  min-width: 160px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  color: #e8edf2;
  font-size: 13px;
}

.admin-pack-create input[type="number"] {
  width: 130px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--box-color);
  border: 1px solid var(--border-color);
  color: #e8edf2;
  font-size: 13px;
}

.admin-pack-picker {
  margin-bottom: 14px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
}

.admin-pack-picker-item {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.admin-pack-picker-item:hover {
  border-color: #4facfe;
}

.admin-pack-picker-item.active {
  border-color: #7be3a3;
  background: rgba(123, 227, 163, 0.12);
}

.admin-icon-upload-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  text-transform: none;
}

.admin-icon-upload-preview {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--box-color-double);
  border: 1px solid var(--border-color);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.admin-icon-upload-row input[type="file"] {
  font-size: 11px;
  color: #93a3b8;
  margin: 4px 0;
  display: block;
}

/* ---------- Tooltips header (bulle animee) ---------- */
/* Selecteur .site-nav-link[data-tooltip] (et non [data-tooltip] seul) pour
   passer devant .site-nav > *:not(:first-child)::before (le petit trait
   separateur blanc entre icones) qui sinon fuite sur nos pseudo-elements
   (meme ::before, background/width/height non reinitialises = trait blanc
   visible pendant l'animation). */

.site-nav-link[data-tooltip],
.friend-circle[data-tooltip] {
  position: relative;
}

.site-nav-link[data-tooltip]::after,
.site-nav-link[data-tooltip]::before,
.friend-circle[data-tooltip]::after,
.friend-circle[data-tooltip]::before {
  content: "";
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  left: 50%;
  z-index: 60;
  background: transparent;
  transition: opacity 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              visibility 0.2s;
}

.site-nav-link[data-tooltip]::after,
.friend-circle[data-tooltip]::after {
  content: attr(data-tooltip);
  top: calc(100% + 13px);
  transform: translateX(-50%) translateY(-6px) scale(0.92);
  width: max-content;
  max-width: 220px;
  background: linear-gradient(145deg, #232d45, #161c2c);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 179, 71, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.site-nav-link[data-tooltip]::before,
.friend-circle[data-tooltip]::before {
  top: calc(100% + 7px);
  transform: translateX(-50%) translateY(-6px) scale(0.92);
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-bottom-color: #1e2438;
  filter: drop-shadow(0 -1px 0 rgba(255, 179, 71, 0.2));
}

.site-nav-link[data-tooltip]:hover::after,
.site-nav-link[data-tooltip]:hover::before,
.site-nav-link[data-tooltip]:focus-visible::after,
.site-nav-link[data-tooltip]:focus-visible::before,
.friend-circle[data-tooltip]:hover::after,
.friend-circle[data-tooltip]:hover::before,
.friend-circle[data-tooltip]:focus-visible::after,
.friend-circle[data-tooltip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* ---------- Menu regroupe (Jouer + Notifications/Parametres/Deconnexion) ---------- */

.header-right-actions {
  position: absolute;
  top: 50%;
  right: 52px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-play-button {
  position: static;
  transform: none;
}

.header-menu-toggle {
  position: relative;
}

.header-menu-panel {
  left: auto;
  right: 0;
  padding: 0;
  min-width: 300px;
  max-width: 340px;
  overflow: hidden;
}

.header-menu-divider {
  height: 1px;
  background: var(--border-color);
}

.header-menu-links {
  padding: 6px;
}
