﻿* { box-sizing: border-box; }
  html, body {
    margin: 0;
    padding: 0;
    background: #050810;
  }
  body {
    font-family: Tahoma, "MS Sans Serif", sans-serif;
  }

  .page {
    background: #050810;
    color: #cfd8e3;
    font-family: "Courier New", monospace;
    min-height: 100vh;
  }

  a { cursor: pointer; }

  /* Header */
  .site-header {
    background: repeating-linear-gradient(0deg,#050810,#050810 24px,#0a1020 25px), #050810;
    border-bottom: 2px solid #2b3b57;
    padding: 22px 20px;
    text-align: center;
    position: relative;
  }
  .crown { font-size: 34px; }
  .site-title {
    font-size: 34px;
    font-weight: bold;
    letter-spacing: 6px;
    color: #eef3ff;
    text-shadow: 0 0 8px #3a6ea5;
  }
  .site-sub {
    letter-spacing: 5px;
    font-size: 13px;
    color: #f4c542;
    margin-top: 2px;
  }
  .crosshair {
    position: absolute; top: 20px; font-size: 20px; color: #4da6ff;
  }
  .crosshair.left { left: 20px; }
  .crosshair.right { right: 20px; }

  /* Bandeau annonce CTF */
  .marquee-bar {
    background: #1a1400;
    border-top: 1px solid #f4c542;
    border-bottom: 1px solid #f4c542;
    color: #f4c542;
    font-size: 13px;
    padding: 6px 0;
    white-space: nowrap;
    overflow: hidden;
  }
  .marquee-bar span {
    display: inline-block;
    padding-left: 100%;
    animation: scroll 18s linear infinite;
  }
  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

  /* Top nav */
  .topnav {
    display: flex;
    justify-content: center;
    gap: 4px;
    background: #0a1020;
    border-bottom: 2px solid #2b3b57;
    padding: 0;
    flex-wrap: wrap;
  }
  .topnav button {
    background: transparent;
    border: none;
    color: #9db4d6;
    font-family: "Courier New", monospace;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
  }
  .topnav button:hover {
    color: #ffffff;
    background: #101a30;
  }
  .topnav button.active {
    color: #f4c542;
    border-bottom: 3px solid #f4c542;
    background: #101a30;
  }
  .nav-drop { position: relative; display: inline-block; }
  .nav-drop-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 168px;
    background: #0a1020;
    border: 1px solid #2b3b57;
    z-index: 50;
  }
  .nav-drop:hover .nav-drop-menu { display: block; }
  .nav-drop-menu a {
    display: block;
    padding: 10px 16px;
    color: #9db4d6;
    text-decoration: none;
    font-size: 13px;
    font-family: "Courier New", monospace;
    letter-spacing: 1px;
    font-weight: normal;
  }
  .nav-drop-menu a:hover {
    color: #f4c542;
    background: #101a30;
  }
  .nav-drop.active > button {
    color: #f4c542;
    border-bottom: 3px solid #f4c542;
    background: #101a30;
  }
  .ctf-hub-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .ctf-cat-grid,
  .ctf-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
  }
  .ctf-cat-card,
  .ctf-mode-card {
    text-align: left;
    background: #071018;
    border: 1px solid #2b3b57;
    color: #eef3ff;
    padding: 14px 12px;
    cursor: pointer;
    font-family: "Courier New", monospace;
    border-radius: 2px;
  }
  .ctf-cat-card:hover,
  .ctf-mode-card:hover:not(.ctf-mode-soon) {
    border-color: #f4c542;
    background: #101a30;
  }
  .ctf-cat-name,
  .ctf-mode-name {
    color: #f4c542;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 6px;
  }
  .ctf-cat-desc,
  .ctf-mode-desc {
    color: #9fb3cc;
    font-size: 11px;
    line-height: 1.45;
  }
  .ctf-mode-soon {
    opacity: 0.72;
    cursor: not-allowed;
  }
  .ctf-soon {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border: 1px solid #f4c542;
    color: #f4c542;
    font-size: 10px;
    letter-spacing: 1px;
    vertical-align: middle;
  }
  .side-drop {
    position: relative;
    color: #7ec8ff;
    font-size: 12px;
    font-weight: bold;
    margin: 6px 0;
    cursor: default;
  }
  .side-drop > ul {
    display: none;
    margin: 4px 0 0 12px !important;
  }
  .side-drop:hover > ul { display: block; }

  /* Layout principal */
  .layout {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 0;
  }
  .sidebar {
    border-right: 1px solid #22304a;
    padding: 14px;
  }
  .sidebar h3, .box h3 {
    color: #f4c542;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid #22304a;
    padding-bottom: 4px;
    margin: 0 0 8px 0;
  }
  .sidebar ul { list-style: none; padding: 0; margin: 0 0 18px 0; }
  .sidebar li { margin: 6px 0; }

  /* liens plus lisibles */
  .sidebar a, .box a, table.forum-table a, .link {
    color: #7ec8ff;
    text-decoration: underline;
    font-size: 12px;
    font-weight: bold;
  }
  .sidebar a:hover, .box a:hover, table.forum-table a:hover, .link:hover {
    color: #f4c542;
  }

  .status-box { font-size: 11px; line-height: 1.7; color: #9fb3cc; }
  .status-box .online { color: #3fbf5f; }
  .status-box .points { color: #f4c542; font-weight: bold; }

  .main {
    padding: 16px 20px;
  }

  .section { display: none; }
  .section.visible { display: block; }

  /* Bannière CTF à venir */
  .ctf-banner {
    border: 1px solid #f4c542;
    background: linear-gradient(180deg,#1a1400,#0d0a00);
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .ctf-banner .flag-icon { font-size: 32px; }
  .ctf-banner h2 {
    margin: 0 0 4px 0;
    color: #f4c542;
    font-size: 16px;
    letter-spacing: 1px;
  }
  .ctf-banner p { margin: 0; font-size: 12px; color: #e2e2e2; line-height: 1.5; }
  .countdown {
    margin-top: 8px;
    font-size: 12px;
    color: #3fbf5f;
  }

  /* Forum */
  .forum-cat {
    border: 1px solid #22304a;
    margin-bottom: 14px;
    background: #0a1120;
  }
  .forum-cat-title {
    background: #0d1626;
    color: #eef3ff;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 7px 10px;
    border-bottom: 1px solid #22304a;
  }
  table.forum-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }
  table.forum-table th {
    text-align: left;
    color: #8296b8;
    font-weight: normal;
    padding: 6px 10px;
    border-bottom: 1px solid #22304a;
    font-size: 11px;
  }
  table.forum-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #14202f;
    vertical-align: top;
  }
  table.forum-table tr:hover td { background: #0d1626; }
  .sub-desc { color: #8296b8; font-size: 11px; display: block; margin-top: 2px; }
  .col-num { color: #f4c542; text-align: right; }
  .col-last { color: #9fb3cc; font-size: 11px; }
  .col-last b { color: #eef3ff; font-weight: normal; }

  /* Boutique */
  .shop-intro {
    border: 1px solid #22304a;
    background: #0a1120;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.6;
    color: #cfd8e3;
  }
  .shop-intro .points-value { color: #f4c542; font-weight: bold; font-size: 14px; }
  .grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }
  .grade-card {
    border: 1px solid #22304a;
    background: #0a1120;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .grade-card .badge {
    font-size: 26px;
  }
  .grade-card .badge img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
  }
  .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .grade-inline-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: -3px;
  }
  .profile-grade img,
  .status-box img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: -3px;
  }
  .grade-card h4 {
    margin: 0;
    color: #eef3ff;
    font-size: 14px;
    letter-spacing: 1px;
  }
  .grade-card .desc {
    font-size: 11px;
    color: #9fb3cc;
    flex-grow: 1;
    line-height: 1.5;
  }
  .grade-card .cost {
    font-size: 13px;
    color: #f4c542;
    font-weight: bold;
  }
  .grade-card button {
    font-family: "Courier New", monospace;
    background: #14264a;
    color: #7ec8ff;
    border: 1px solid #3a6ea5;
    padding: 7px 10px;
    font-size: 12px;
    cursor: pointer;
    letter-spacing: 1px;
  }
  .grade-card button:hover:not(:disabled) {
    background: #1c3564;
    color: #ffffff;
  }
  .grade-card button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .grade-card.owned {
    border-color: #3fbf5f;
  }
  .grade-card.owned button {
    background: #103018;
    color: #3fbf5f;
    border-color: #3fbf5f;
  }
  .grade-card.equipped {
    border-color: #f4c542;
    box-shadow: 0 0 10px rgba(244,197,66,0.25);
  }
  .grade-card.equipped button {
    background: #2a2200;
    color: #f4c542;
    border-color: #f4c542;
  }

  /* Compte */
  .auth-wrap {
    max-width: 380px;
    margin: 0 auto;
  }
  .auth-tabs {
    display: flex;
    margin-bottom: 14px;
    border: 1px solid #22304a;
  }
  .auth-tabs button {
    flex: 1;
    background: #0a1120;
    color: #9db4d6;
    border: none;
    padding: 9px 0;
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
  }
  .auth-tabs button.active {
    background: #14264a;
    color: #f4c542;
  }
  .auth-form {
    display: none;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #22304a;
    background: #0a1120;
    padding: 16px;
  }
  .auth-form.visible { display: flex; }
  .auth-form label {
    font-size: 11px;
    color: #9fb3cc;
    display: block;
    margin-bottom: 3px;
  }
  .auth-form input {
    width: 100%;
    background: #050810;
    border: 1px solid #2b3b57;
    color: #eef3ff;
    font-family: "Courier New", monospace;
    padding: 6px 8px;
    font-size: 12px;
  }
  .auth-form input:focus { outline: 1px solid #4da6ff; }
  .auth-form button.submit {
    margin-top: 6px;
    background: #14264a;
    color: #f4c542;
    border: 1px solid #f4c542;
    padding: 8px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
  }
  .auth-form button.submit:hover { background: #1c3564; }
  .auth-msg {
    font-size: 11px;
    min-height: 14px;
  }
  .auth-msg.error { color: #ff6b6b; }
  .auth-msg.ok { color: #3fbf5f; }

  .profile-card {
    border: 1px solid #22304a;
    background: #0a1120;
    padding: 18px;
    max-width: 480px;
    margin: 0 auto;
  }
  .profile-layout {
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
    align-items: start;
  }
  .profile-main {
    border: 1px solid #22304a;
    background: #0a1120;
    padding: 18px;
  }
  .settings-side {
    border: 1px solid #22304a;
    background: #0a1120;
    padding: 8px;
  }
  .settings-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid #14202f;
    color: #9db4d6;
    font-family: "Courier New", monospace;
    font-size: 11px;
    padding: 9px 8px;
    cursor: pointer;
  }
  .settings-item:hover { color: #ffffff; background: #101a30; }
  .settings-item.active {
    color: #f4c542;
    border-bottom: 1px solid #f4c542;
  }
  .profile-top {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #22304a;
    padding-bottom: 14px;
    margin-bottom: 14px;
  }
  .avatar {
    cursor: pointer;
    width: 52px; height: 52px;
    background: #14264a;
    border: 1px solid #3a6ea5;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .avatar.avatar-anim {
    border-color: #3a6ea5;
  }
  .avatar.avatar-online {
    box-shadow: 0 0 0 2px #0a1120, 0 0 0 4px #3fbf5f;
  }
  .avatar.avatar-mini {
    width: 22px;
    height: 22px;
    font-size: 11px;
    border-radius: 2px;
    display: inline-flex;
    vertical-align: middle;
    margin-right: 4px;
    cursor: default;
    flex-shrink: 0;
  }
  .user-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    flex-wrap: wrap;
  }
  .profile-name { color: #eef3ff; font-size: 16px; font-weight: bold; }
  .profile-grade { color: #f4c542; font-size: 12px; margin-top: 2px; }
  .profile-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 5px 0;
    border-bottom: 1px solid #14202f;
  }
  .profile-row span:first-child { color: #9fb3cc; }
  .profile-row span:last-child { color: #eef3ff; }
  .logout-btn {
    margin-top: 16px;
    width: 100%;
    background: #2a1010;
    color: #ff8787;
    border: 1px solid #6b2b2b;
    padding: 8px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    cursor: pointer;
  }
  .logout-btn:hover { background: #3a1414; }

  .footer {
    text-align: center;
    color: #5a6c8a;
    font-size: 11px;
    padding: 16px;
    border-top: 1px solid #22304a;
  }

  /* Boutique style ancien (tableau forum 2000, mêmes couleurs) */
  .shop-table .shop-badge {
    width: 52px;
    text-align: center;
    vertical-align: middle;
  }
  .shop-table .shop-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
  }
  .shop-table .shop-title {
    color: #eef3ff;
    font-weight: bold;
    letter-spacing: 1px;
  }
  .shop-table .shop-owned { color: #3fbf5f; }
  .shop-table .shop-equipped { color: #f4c542; }
  .shop-table button {
    font-family: "Courier New", monospace;
    background: #14264a;
    color: #7ec8ff;
    border: 1px solid #3a6ea5;
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    letter-spacing: 1px;
  }
  .shop-table button:hover:not(:disabled) {
    background: #1c3564;
    color: #ffffff;
  }
  .shop-table button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .shop-table tr.row-owned td { background: #07140c; }
  .shop-table tr.row-equipped td { background: #141000; }

  .panel-stack {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 520px;
  }
  .panel-label {
    font-size: 11px;
    color: #9fb3cc;
    display: block;
    margin-bottom: 3px;
  }
  .panel-input, .panel-stack select, .panel-stack textarea {
    width: 100%;
    background: #050810;
    border: 1px solid #2b3b57;
    color: #eef3ff;
    font-family: "Courier New", monospace;
    padding: 6px 8px;
    font-size: 12px;
  }
  .panel-btn-gold {
    align-self: flex-start;
    background: #14264a;
    color: #f4c542;
    border: 1px solid #f4c542;
    padding: 8px 14px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
  }
  .panel-btn-red {
    align-self: flex-start;
    background: #2a1010;
    color: #ff8787;
    border: 1px solid #6b2b2b;
    padding: 8px 14px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
  }
  .panel-btn-green {
    background: #103018;
    color: #3fbf5f;
    border: 1px solid #3fbf5f;
    padding: 4px 10px;
    font-family: "Courier New", monospace;
    font-size: 11px;
    cursor: pointer;
  }
  .access-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .team-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 8px;
  }
  .team-tab {
    background: #0d1626;
    color: #9fb3cc;
    border: 1px solid #2b3b57;
    padding: 6px 10px;
    font-family: "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
  }
  .team-tab-on {
    color: #f4c542;
    border-color: #f4c542;
    background: #14264a;
  }
  .group-pick-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #22304a;
    background: #050810;
    padding: 6px 8px;
  }
  .group-pick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #eef3ff;
    padding: 4px 0;
    border-bottom: 1px solid #14202f;
  }
  .group-pick-item:last-child { border-bottom: none; }
  .pm-members {
    padding: 10px 12px;
    border-bottom: 1px solid #22304a;
    font-size: 12px;
  }
  .topic-del {
    margin-left: 8px;
    background: #2a1010;
    color: #ff8787;
    border: 1px solid #6b2b2b;
    padding: 1px 6px;
    font-family: "Courier New", monospace;
    font-size: 10px;
    cursor: pointer;
  }

  .user-link { color: #7ec8ff; font-weight: bold; text-decoration: underline; font-size: 12px; }
  .user-link:hover { color: #f4c542; }
  .nick-gradient {
    background-image: linear-gradient(90deg, var(--g1, #f4c542), var(--g2, #7ec8ff), var(--g1, #f4c542));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    animation: nickFlow 3s linear infinite;
  }
  a.user-link.nick-gradient:hover {
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    filter: brightness(1.25);
  }
  @keyframes nickFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
  }
  .pm-meta {
    margin-top: 6px;
    font-size: 10px;
    color: #8296b8;
  }
  .pm-status-vu { color: #3fbf5f; }
  .pm-status-sent { color: #9fb3cc; }

  .msg-grade { display: inline-flex; align-items: center; vertical-align: middle; font-size: 14px; line-height: 1; }
  .msg-grade img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
  }

  .post-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    border-bottom: 1px solid #14202f;
    min-height: 90px;
  }
  .post-author {
    background: #0d1626;
    border-right: 1px solid #22304a;
    padding: 10px;
    font-size: 12px;
    color: #eef3ff;
  }
  .post-body {
    padding: 10px 12px;
    font-size: 12px;
    color: #cfd8e3;
    line-height: 1.6;
    white-space: normal;
  }

  .thread-scroll {
    max-height: 420px;
    overflow-y: auto;
    border-top: 1px solid #22304a;
  }

  .inbox-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    border: 1px solid #22304a;
  }
  .inbox-list { border-right: 1px solid #22304a; }
  .nick-preview {
    font-size: 18px;
    font-weight: bold;
    padding: 10px 0 14px;
  }
  .grad-bar {
    height: 44px;
    max-width: 340px;
    border-radius: 22px;
    margin: 10px 0 4px;
    background: linear-gradient(90deg, var(--g1, #a855f7), var(--g2, #f97316));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  }
  .grad-eye {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    position: relative;
  }
  .grad-eye::after {
    content: "💧";
    font-size: 12px;
    pointer-events: none;
    position: absolute;
  }
  .grad-eye input[type="color"] {
    opacity: 0;
    width: 28px;
    height: 28px;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  .font-gg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 520px;
    margin: 8px 0 12px;
  }
  .font-gg {
    min-height: 56px;
    background: #141b2b;
    border: 1px solid #31486f;
    border-radius: 2px;
    color: #eef3ff;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: inherit;
  }
  .font-gg-on {
    border-color: #f4c542;
    box-shadow: 0 0 0 1px #f4c542 inset, 0 0 12px rgba(244,197,66,0.25);
  }
  .font-gg-pixel {
    font-size: 10px;
    line-height: 1.2;
  }
  .font-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin: 8px 0 12px;
  }
  .font-card {
    background: #0a1120;
    border: 1px solid #22304a;
    color: #eef3ff;
    padding: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
  }
  .font-card-on {
    border-color: #f4c542;
    color: #f4c542;
  }
  .team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border: 1px solid #22304a;
    background: #0a1120;
  }
  .team-logo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4c542;
  }
  .team-logo-anim {
    border-color: #f4c542;
    animation: avatarGlow 2s ease-in-out infinite;
  }

  .site-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 16, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 8000;
    padding: 20px;
  }
  .site-modal-box {
    width: 100%;
    max-width: 420px;
    background: #0a1120;
    border: 1px solid #2b3b57;
    box-shadow: 0 0 0 1px #f4c542, 0 12px 40px rgba(0,0,0,0.75);
  }
  #profileModal .site-modal-box {
    max-width: 520px;
    background: #0a1120;
  }
  #profileModalBody {
    background: #0a1120;
  }
  .site-tip {
    display: none;
    position: fixed;
    z-index: 9000;
    width: 240px;
    background: #0d1626;
    border: 1px solid #f4c542;
    pointer-events: none;
  }
  .site-tip .forum-cat-title {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .site-tip-body {
    padding: 8px 10px 10px;
    font-size: 11px;
    color: #cfd8e3;
    line-height: 1.45;
    font-family: "Courier New", monospace;
  }
  .profile-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 6px 0 4px;
    align-items: center;
  }
  .profile-badge-wrap {
    display: inline-flex;
    line-height: 0;
  }
  .profile-badge {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
  }
  .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .inbox-row { cursor: pointer; }
  .inbox-row:hover { background: #0d1626; }
  .inbox-row-on { background: #0d1626; }
  .inbox-row-on td { color: #f4c542; }

  .profile-pop {
    position: fixed;
    z-index: 8500;
    width: 300px;
    background: #0a1120;
    border: 1px solid #2b3b57;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.75);
    opacity: 1;
  }
  .pop-body {
    padding: 12px;
    background: #0a1120;
  }
  .pop-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }
  .pop-head-text {
    min-width: 0;
    flex: 1;
  }
  .pop-avatar {
    width: 52px !important;
    height: 52px !important;
    border-radius: 2px !important;
    border: 1px solid #3a6ea5 !important;
    cursor: default;
    flex-shrink: 0;
  }
  .pop-card {
    background: #071018;
    border: 1px solid #22304a;
    border-radius: 2px;
    padding: 10px;
  }
  .pop-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .pop-name {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
  }
  .pop-grade {
    color: #f4c542;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .pop-grade-ico {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 1;
  }
  .pop-grade-ico img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
  }
  .pop-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    padding: 5px 0;
    border-top: 1px solid #1a2233;
  }
  .pop-meta span:first-child { color: #9fb3cc; }
  .pop-meta span:last-child { color: #eef3ff; text-align: right; }
  .pop-full-btn {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
    text-align: center;
  }
  .team-chat {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #22304a;
    background: #071018;
    padding: 8px;
    margin-bottom: 8px;
  }
  .team-chat-line {
    padding: 6px 0;
    border-bottom: 1px solid #14202f;
  }
  .team-chat-meta {
    margin-bottom: 4px;
  }
  .team-chat-text {
    color: #eef3ff;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
  }
  .team-chat-form {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .team-chat-form .panel-input {
    flex: 1;
    margin: 0;
  }
  .save-pulse {
    box-shadow: 0 0 0 1px #f4c542 inset;
  }

  .team-desc {
    padding: 10px 12px;
    background: #0a1120;
    border: 1px solid #22304a;
    color: #cfd8e3;
    line-height: 1.5;
  }
  .avatar-crop-stage {
    display: flex;
    justify-content: center;
  }
  .avatar-crop-box {
    width: 260px;
    height: 260px;
    overflow: hidden;
    border: 2px solid #f4c542;
    background: #0a1120;
    position: relative;
    cursor: grab;
    border-radius: 8px;
    user-select: none;
  }
  .avatar-crop-box:active { cursor: grabbing; }
  .avatar-crop-box::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(255,255,255,0.35);
    pointer-events: none;
    border-radius: 6px;
  }
  .avatar-crop-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    pointer-events: none;
  }
  .avatar-crop-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }
  .avatar-crop-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .admin-pseudo-wrap {
    position: relative;
  }
  .admin-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    z-index: 40;
    background: #0a1120;
    border: 1px solid #f4c542;
    max-height: 220px;
    overflow-y: auto;
  }
  .admin-suggest-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #14202f;
    color: #eef3ff;
    padding: 8px 10px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
  }
  .admin-suggest-item:hover {
    background: #14264a;
    color: #f4c542;
  }

  @media (max-width: 700px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { border-right: none; border-bottom: 1px solid #22304a; }
    .post-row { grid-template-columns: 1fr; }
    .post-author { border-right: none; border-bottom: 1px solid #22304a; }
    .inbox-grid { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
  }
