*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --bg:#050806;
    --bg2:#0b120d;
    --panel:#0f1711;
    --green:#5cff8d;
    --green-dark:#1f6d3f;
    --text:#d7e6d0;
    --muted:#9aac95;
    --border:rgba(92,255,141,0.15);
}

body{
    background:
        radial-gradient(circle at top, rgba(33,100,61,.25), transparent 35%),
        linear-gradient(180deg,#040604 0%,#071009 100%);
    color:var(--text);
    font-family:Arial, Helvetica, sans-serif;
    min-height:100vh;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    width:1200px;
    max-width:95%;
    margin:0 auto;
}

header{
    margin-top:20px;
    background:rgba(10,15,11,.95);
    border:1px solid var(--border);
    box-shadow:0 0 30px rgba(0,120,60,.15);
}

.header-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px;
}

.logo{
    font-size:32px;
    font-weight:bold;
    color:var(--green);
    letter-spacing:2px;
}

nav{
    display:flex;
    gap:25px;
}

nav a{
    text-transform:uppercase;
    font-size:13px;
    color:#c5d3c0;
}

nav a:hover{
    color:var(--green);
}

main{
    margin-top:25px;
}

.panel{
    background:rgba(11,18,13,.95);
    border:1px solid var(--border);
    padding:25px;
}

footer{
    margin-top:30px;
    margin-bottom:30px;
    text-align:center;
    color:#6f7c6d;
    font-size:13px;
}

.btn{
    display:inline-block;
    padding:12px 22px;
    background:linear-gradient(
        180deg,
        #2e8f53,
        #15522f
    );
    border:1px solid #3eb76c;
    color:white;
    text-transform:uppercase;
    font-size:12px;
    font-weight:bold;
}

.btn:hover{
    opacity:.9;
}

.hero{
    padding:60px;
}

.hero h1{
    font-size:56px;
    margin-bottom:15px;
    color:#e8ffe8;
}

.hero p{
    max-width:700px;
    line-height:1.8;
    color:var(--muted);
}

.section-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
    margin-top:20px;
}

@media(max-width:900px){

    .header-inner{
        flex-direction:column;
        gap:15px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
    }

    .section-grid{
        grid-template-columns:1fr;
    }

    .hero{
        padding:30px;
    }

    .hero h1{
        font-size:38px;
    }
}

/* ================================
   Chaos C4 Auth / Panel
================================ */

.auth-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(7, 20, 14, 0.96);
    border: 1px solid rgba(91, 140, 91, 0.35);
    border-radius: 18px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.65);
    padding: 34px;
}

.auth-title {
    color: #d8f5d0;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #8daa8a;
    font-size: 14px;
    text-align: center;
    margin-bottom: 28px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    color: #b7d7ad;
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    background: #08150f;
    border: 1px solid rgba(116, 160, 99, 0.35);
    color: #e4f5df;
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
}

.auth-input:focus {
    border-color: #8fcf72;
    box-shadow: 0 0 0 3px rgba(143, 207, 114, 0.12);
}

.auth-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a7bea0;
    font-size: 14px;
    margin-bottom: 20px;
}

.auth-button {
    width: 100%;
    background: linear-gradient(180deg, #5f8f3f, #355b25);
    border: 1px solid #8fcf72;
    color: #f1ffe9;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-button:hover {
    filter: brightness(1.15);
}

.auth-links {
    margin-top: 18px;
    text-align: center;
}

.auth-links a {
    color: #9dd47e;
    font-size: 14px;
    text-decoration: none;
}

.auth-links a:hover {
    color: #c5f0ae;
}

.auth-error {
    color: #ff9d9d;
    font-size: 13px;
    margin-top: 6px;
}

.panel-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 20px;
}

.panel-card {
    background: rgba(7, 20, 14, 0.96);
    border: 1px solid rgba(91, 140, 91, 0.35);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.45);
}

.panel-title {
    color: #d8f5d0;
    font-size: 30px;
    margin-bottom: 10px;
}

.panel-text {
    color: #a9bea2;
}

.logout-form {
    margin: 0;
}

.logout-button {
    background: transparent;
    border: 1px solid rgba(143, 207, 114, 0.45);
    color: #d8f5d0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.logout-button:hover {
    background: rgba(143, 207, 114, 0.12);
}

/* ================================
   Chaos C4 Auth / Panel
================================ */

.auth-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card,
.panel-card {
    background: rgba(7, 20, 14, 0.96);
    border: 1px solid rgba(91, 140, 91, 0.35);
    border-radius: 18px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.65);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 34px;
}

.auth-title,
.panel-title {
    color: #d8f5d0;
    font-weight: 700;
}

.auth-title {
    font-size: 26px;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #8daa8a;
    font-size: 14px;
    text-align: center;
    margin-bottom: 28px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    color: #b7d7ad;
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    background: #08150f;
    border: 1px solid rgba(116, 160, 99, 0.35);
    color: #e4f5df;
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
}

.auth-input:focus {
    border-color: #8fcf72;
    box-shadow: 0 0 0 3px rgba(143, 207, 114, 0.12);
}

.auth-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a7bea0;
    font-size: 14px;
    margin-bottom: 20px;
}

.auth-button {
    width: 100%;
    background: linear-gradient(180deg, #5f8f3f, #355b25);
    border: 1px solid #8fcf72;
    color: #f1ffe9;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-button:hover {
    filter: brightness(1.15);
}

.auth-links {
    margin-top: 18px;
    text-align: center;
}

.auth-links a {
    color: #9dd47e;
    font-size: 14px;
    text-decoration: none;
}

.auth-links a:hover {
    color: #c5f0ae;
}

.auth-error {
    color: #ff9d9d;
    font-size: 13px;
    margin-top: 6px;
}

.panel-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 20px;
}

.panel-card {
    padding: 28px;
}

.panel-title {
    font-size: 30px;
    margin-bottom: 10px;
}

.panel-text {
    color: #a9bea2;
}

.logout-form {
    margin: 0;
}

.logout-button {
    background: transparent;
    border: 1px solid rgba(143, 207, 114, 0.45);
    color: #d8f5d0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.logout-button:hover {
    background: rgba(143, 207, 114, 0.12);
}

.nav-logout-form {
    display: inline-block;
    margin: 0;
}

.nav-logout-button {
    background: transparent;
    border: 1px solid rgba(143, 207, 114, 0.35);
    color: #d8f5d0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font: inherit;
}

.nav-logout-button:hover {
    background: rgba(143, 207, 114, 0.12);
}

/* ================================
   Chaos C4 Home Upgrade
================================ */

.home-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    padding: 70px 6%;
    border-bottom: 1px solid rgba(58, 130, 72, 0.35);
    background:
        radial-gradient(circle at 20% 20%, rgba(45, 120, 60, 0.22), transparent 36%),
        linear-gradient(180deg, rgba(4, 14, 9, 0.95), rgba(2, 8, 5, 0.95));
}

.home-hero-content {
    max-width: 760px;
}

.home-kicker {
    color: #5cff8d;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.home-hero h1 {
    font-size: 64px;
    line-height: 1;
    color: #e9ffe4;
    margin: 0 0 22px;
    text-shadow: 0 0 28px rgba(80, 255, 130, 0.16);
}

.home-hero p {
    max-width: 720px;
    color: #a8bea2;
    font-size: 18px;
    line-height: 1.8;
}

.home-actions {
    margin-top: 30px;
    display: flex;
    gap: 14px;
}

.btn-secondary {
    background: transparent;
}

.home-grid {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr;
    gap: 28px;
    padding: 28px;
}

.home-card {
    background: rgba(5, 18, 11, 0.94);
    border: 1px solid rgba(70, 130, 72, 0.35);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.35);
}

.home-card h2 {
    color: #e3ffdc;
    font-size: 28px;
    margin-bottom: 24px;
}

.news-preview h3 {
    color: #5cff8d;
    font-size: 20px;
    margin-bottom: 10px;
}

.news-preview p {
    color: #9aac95;
}

.status-list {
    display: grid;
    gap: 14px;
}

.status-list div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(91, 140, 91, 0.18);
    padding-bottom: 10px;
    color: #b8cfb0;
}

.status-list strong {
    color: #5cff8d;
}

@media (max-width: 900px) {
    .home-hero h1 {
        font-size: 42px;
    }

    .home-grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .home-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.header-logout-form {
    display: inline-block;
    margin: 0;
}

.header-logout-button {
    background: transparent;
    border: 0;
    color: #d8f5d0;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.header-logout-button:hover {
    color: #5cff8d;
}

/* ================================
   Header Fix
================================ */

.site-header {
    width: 100%;
    background: rgba(4, 13, 8, 0.98);
    border-bottom: 1px solid rgba(65, 140, 75, 0.35);
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.55);
}

.site-header-inner {
    min-height: 78px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    color: #5cff8d;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 4px;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav a,
.header-logout-button {
    color: #d8f5d0;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.4px;
}

.site-nav a:hover,
.header-logout-button:hover {
    color: #5cff8d;
}

.header-logout-form {
    display: flex;
    align-items: center;
    margin: 0;
}

.header-logout-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

@media (max-width: 900px) {
    .site-header-inner {
        flex-direction: column;
        gap: 14px;
        padding: 18px;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
}

/* ================================
   Dashboard v1 / Registration System
================================ */

.dashboard-header-card {
    background: rgba(7, 20, 14, 0.96);
    border: 1px solid rgba(91, 140, 91, 0.35);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-card {
    background: rgba(7, 20, 14, 0.96);
    border: 1px solid rgba(91, 140, 91, 0.35);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);
}

.dashboard-card h2 {
    color: #d8f5d0;
    font-size: 24px;
    margin-bottom: 18px;
}

.dashboard-info-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(91, 140, 91, 0.18);
    padding: 12px 0;
    color: #a9bea2;
}

.dashboard-info-row strong {
    color: #5cff8d;
}

.game-account-form {
    margin-top: 22px;
}

.panel-alert {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-weight: 700;
}

.panel-alert-success {
    background: rgba(50, 140, 70, 0.18);
    border: 1px solid rgba(92, 255, 141, 0.35);
    color: #9dffb9;
}

.panel-alert-error {
    background: rgba(140, 40, 40, 0.18);
    border: 1px solid rgba(255, 120, 120, 0.35);
    color: #ffb4b4;
}

@media (max-width: 900px) {
    .dashboard-header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Characters Panel v1
================================ */

.dashboard-card-wide {
    grid-column: span 2;
}

.characters-table-wrap {
    overflow-x: auto;
}

.characters-table {
    width: 100%;
    border-collapse: collapse;
    color: #c8dec1;
}

.characters-table th,
.characters-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(91, 140, 91, 0.18);
    text-align: left;
}

.characters-table th {
    color: #d8f5d0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.characters-table td {
    color: #a9bea2;
}

.status-online {
    color: #5cff8d;
    font-weight: 700;
}

.status-offline {
    color: #8daa8a;
    font-weight: 700;
}

@media (max-width: 900px) {
    .dashboard-card-wide {
        grid-column: span 1;
    }
}

/* ================================
   Rankings / Statistics v1
================================ */

.ranking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.ranking-card {
    background: rgba(7, 20, 14, 0.96);
    border: 1px solid rgba(91, 140, 91, 0.35);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);
}

.ranking-card h2 {
    color: #d8f5d0;
    font-size: 24px;
    margin-bottom: 18px;
}

.ranking-table-wrap {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    color: #c8dec1;
}

.ranking-table th,
.ranking-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(91, 140, 91, 0.18);
    text-align: left;
}

.ranking-table th {
    color: #d8f5d0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.ranking-table td {
    color: #a9bea2;
}

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

.stat-card {
    background: rgba(7, 20, 14, 0.96);
    border: 1px solid rgba(91, 140, 91, 0.35);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);
}

.stat-card span {
    display: block;
    color: #a9bea2;
    font-size: 14px;
    margin-bottom: 12px;
}

.stat-card strong {
    display: block;
    color: #5cff8d;
    font-size: 34px;
}

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

/* ================================
   Character Details v1
================================ */

.ranking-character-link {
    color: #5cff8d;
    font-weight: 700;
}

.ranking-character-link:hover {
    color: #c5f0ae;
}

.character-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

/* ================================
   Player Panel Dashboard v2
================================ */

.player-panel-page {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
}

.player-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-sidebar-card,
.player-server-card,
.player-card,
.player-hero-card {
    background:
        radial-gradient(circle at top left, rgba(60, 180, 90, 0.10), transparent 35%),
        rgba(5, 18, 11, 0.96);
    border: 1px solid rgba(92, 255, 141, 0.20);
    border-radius: 14px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);
}

.player-sidebar-card {
    padding: 22px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.player-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(92, 255, 141, 0.35);
    background: rgba(92, 255, 141, 0.10);
    color: #5cff8d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: 1px;
}

.player-welcome span,
.player-welcome small {
    display: block;
    color: #8daa8a;
    font-size: 12px;
}

.player-welcome strong {
    display: block;
    color: #e8ffe8;
    margin: 4px 0;
}

.player-sidebar-nav {
    background: rgba(5, 18, 11, 0.96);
    border: 1px solid rgba(92, 255, 141, 0.20);
    border-radius: 14px;
    overflow: hidden;
}

.player-sidebar-nav a,
.player-sidebar-nav button {
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 15px 18px;
    color: #d8f5d0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(92, 255, 141, 0.08);
    text-align: left;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
    word-break: normal;
    cursor: pointer;
}

.player-sidebar-nav a:hover,
.player-sidebar-nav a.active,
.player-sidebar-nav button:hover {
    background: linear-gradient(90deg, rgba(24, 110, 55, 0.55), rgba(6, 30, 15, 0.3));
    color: #5cff8d;
}

.player-server-card {
    padding: 20px;
}

.player-server-head,
.player-server-row,
.player-info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(92, 255, 141, 0.12);
    padding: 12px 0;
}

.player-server-head strong {
    color: #5cff8d;
    text-transform: uppercase;
    font-size: 13px;
}

.player-server-head span {
    color: #5cff8d;
    font-weight: 700;
}

.player-server-row span,
.player-info-row span {
    color: #a9bea2;
}

.player-server-row strong,
.player-info-row strong {
    color: #e8ffe8;
}

.player-sidebar-button,
.player-card-button,
.player-small-button {
    display: inline-block;
    border: 1px solid rgba(92, 255, 141, 0.35);
    color: #5cff8d;
    background: rgba(92, 255, 141, 0.05);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 12px;
    text-align: center;
    border-radius: 8px;
}

.player-sidebar-button,
.player-card-button {
    width: 100%;
    margin-top: 18px;
    padding: 13px 16px;
}

.player-small-button {
    padding: 8px 12px;
}

.player-sidebar-button:hover,
.player-card-button:hover,
.player-small-button:hover {
    background: rgba(92, 255, 141, 0.16);
}

.player-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.player-hero-card {
    min-height: 110px;
    padding: 28px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at right, rgba(92, 255, 141, 0.12), transparent 34%),
        rgba(5, 18, 11, 0.96);
}

.player-hero-card h1 {
    color: #e8ffe8;
    font-size: 30px;
    margin-bottom: 8px;
}

.player-hero-card p {
    color: #9aac95;
}

.player-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.player-card {
    padding: 24px;
}

.player-card h2 {
    color: #e8ffe8;
    font-size: 20px;
    margin-bottom: 18px;
}

.player-card-wide {
    width: 100%;
}

.player-table-wrap {
    overflow-x: auto;
}

.player-table {
    width: 100%;
    border-collapse: collapse;
}

.player-table th,
.player-table td {
    padding: 13px 10px;
    border-bottom: 1px solid rgba(92, 255, 141, 0.12);
    text-align: left;
}

.player-table th {
    color: #d8f5d0;
    font-size: 12px;
    text-transform: uppercase;
}

.player-table td {
    color: #a9bea2;
}

.player-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.player-quick-links a {
    padding: 18px;
    border: 1px solid rgba(92, 255, 141, 0.14);
    border-radius: 12px;
    background: rgba(92, 255, 141, 0.04);
}

.player-quick-links strong {
    display: block;
    color: #5cff8d;
    margin-bottom: 6px;
}

.player-quick-links span {
    color: #9aac95;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .player-panel-page {
        grid-template-columns: 1fr;
    }

    .player-cards-grid,
    .player-quick-links {
        grid-template-columns: 1fr;
    }
}

/* Chaos C4 Panel Forms v1 */
.panel-wide-card {
    margin-top: 24px;
}

.panel-success-card {
    margin-bottom: 20px;
}

.panel-form {
    margin-top: 18px;
}

.panel-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.panel-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.panel-form-group label {
    color: #dfffe7;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.panel-form-group input,
.panel-form-group select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(69, 255, 122, 0.35);
    border-radius: 8px;
    background: rgba(0, 14, 7, 0.95);
    color: #f2fff5;
    padding: 10px 12px;
    outline: none;
}

.panel-form-group input:focus,
.panel-form-group select:focus {
    border-color: #45ff7a;
    box-shadow: 0 0 0 2px rgba(69, 255, 122, 0.16);
}

.panel-error {
    color: #ff7777;
    font-weight: 700;
}

.panel-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
}

.panel-table th,
.panel-table td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(69, 255, 122, 0.16);
    text-align: left;
}

.panel-table th {
    color: #45ff7a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.panel-table td {
    color: #dfffe7;
}

.status-offline {
    color: #ff7777;
    font-weight: 800;
}

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

/* Chaos C4 Character Unstuck v1 */
.panel-error-card {
    margin-bottom: 20px;
    border-color: rgba(255, 90, 90, 0.35);
}

.panel-muted {
    color: rgba(223, 255, 231, 0.68);
    font-size: 13px;
}

.panel-action-cell {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-panel-form {
    display: inline;
    margin: 0;
}

.panel-unstuck-button {
    border: 1px solid rgba(69, 255, 122, 0.45);
    background: rgba(69, 255, 122, 0.10);
    color: #dfffe7;
    cursor: pointer;
}

.panel-unstuck-button:hover {
    background: rgba(69, 255, 122, 0.20);
}

.panel-disabled-button {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Chaos C4 Character Recovery v1 */
.panel-recover-button {
    border: 1px solid rgba(255, 210, 80, 0.45);
    background: rgba(255, 210, 80, 0.10);
    color: #fff3bf;
    cursor: pointer;
}

.panel-recover-button:hover {
    background: rgba(255, 210, 80, 0.20);
}

/* ================================
   Chaos C4 News UI Polish v1
================================ */

.news-page {
    width: 1200px;
    max-width: 95%;
    margin: 0 auto;
    padding: 36px 0 20px;
}

.news-hero-card {
    background:
        radial-gradient(circle at right, rgba(92, 255, 141, 0.12), transparent 34%),
        rgba(5, 18, 11, 0.96);
    border: 1px solid rgba(92, 255, 141, 0.20);
    border-radius: 16px;
    padding: 34px;
    margin-bottom: 24px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);
}

.news-hero-card h1 {
    color: #e8ffe8;
    font-size: 38px;
    margin: 8px 0 10px;
}

.news-hero-card p {
    color: #9aac95;
    line-height: 1.7;
}

.news-list {
    display: grid;
    gap: 22px;
}

.news-card {
    background:
        radial-gradient(circle at top left, rgba(60, 180, 90, 0.10), transparent 35%),
        rgba(5, 18, 11, 0.96);
    border: 1px solid rgba(92, 255, 141, 0.20);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);
}

.news-card-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(92, 255, 141, 0.12);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.news-category {
    display: inline-block;
    color: #5cff8d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
}

.news-card h2 {
    color: #e8ffe8;
    font-size: 28px;
}

.news-date {
    color: #7f9278;
    font-size: 13px;
    white-space: nowrap;
    padding-top: 4px;
}

.news-excerpt {
    color: #c8dec1;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-body {
    color: #9aac95;
    line-height: 1.8;
    font-size: 15px;
}

.home-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.home-card-head h2 {
    margin-bottom: 0;
}

.home-card-link {
    border: 1px solid rgba(92, 255, 141, 0.26);
    border-radius: 8px;
    color: #5cff8d;
    font-size: 12px;
    font-weight: 900;
    padding: 8px 12px;
    text-transform: uppercase;
}

.home-card-link:hover {
    background: rgba(92, 255, 141, 0.10);
}

.home-news-list {
    display: grid;
    gap: 18px;
}

.home-news-item {
    padding: 18px;
    border: 1px solid rgba(92, 255, 141, 0.12);
    border-radius: 12px;
    background: rgba(92, 255, 141, 0.035);
}

.home-news-item span {
    display: block;
    color: #7f9278;
    font-size: 12px;
    margin-bottom: 8px;
}

.home-news-item h3 {
    color: #5cff8d;
    font-size: 20px;
    margin-bottom: 8px;
}

.home-news-item p {
    color: #9aac95;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .news-card-head {
        flex-direction: column;
    }

    .news-date {
        white-space: normal;
    }

    .news-hero-card h1 {
        font-size: 30px;
    }
}


/* Chaos C4 Sidebar Fix v2 */
.player-sidebar-nav {
    display: flex;
    flex-direction: column;
}

.player-sidebar-nav a,
.player-sidebar-nav button {
    display: block;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
}

.player-sidebar-nav form {
    width: 100%;
    display: block;
}

/* Admin Game Data Lookup */
.gd-shell {
    width: min(1480px, calc(100% - 48px));
    margin: 48px auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
}

.gd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gd-profile {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 22px;
    border: 1px solid rgba(56, 255, 126, 0.25);
    border-radius: 16px;
    background: rgba(0, 32, 14, 0.82);
}

.gd-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(56, 255, 126, 0.15);
    border: 1px solid rgba(56, 255, 126, 0.35);
    color: #55ff88;
    font-weight: 900;
}

.gd-label {
    color: #a8c9a8;
    font-size: 13px;
}

.gd-name {
    color: #f2ffe9;
    font-weight: 800;
}

.gd-sub {
    color: #b9d6b4;
    font-size: 13px;
}

.gd-menu {
    border: 1px solid rgba(56, 255, 126, 0.2);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 23, 10, 0.86);
}

.gd-menu a {
    display: block;
    padding: 17px 20px;
    border-bottom: 1px solid rgba(56, 255, 126, 0.12);
    color: #d9ffd2;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
}

.gd-menu a:last-child {
    border-bottom: 0;
}

.gd-menu a.active,
.gd-menu a:hover {
    background: rgba(35, 142, 67, 0.35);
    color: #55ff88;
}

.gd-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.gd-hero,
.gd-card {
    border: 1px solid rgba(56, 255, 126, 0.25);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 28, 12, 0.96), rgba(0, 54, 24, 0.72));
    padding: 26px;
}

.gd-hero h1,
.gd-card h2 {
    margin: 0 0 10px;
    color: #f2ffe9;
}

.gd-hero p,
.gd-card p,
.gd-muted {
    color: #b9d6b4;
}

.gd-info-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(56, 255, 126, 0.13);
    color: #b9d6b4;
}

.gd-info-row strong {
    color: #f2ffe9;
}

.gd-form-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: end;
}

.gd-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #d9ffd2;
    font-weight: 700;
}

.gd-form select,
.gd-form input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(56, 255, 126, 0.25);
    background: rgba(0, 16, 8, 0.95);
    color: #f2ffe9;
    padding: 0 12px;
}

.gd-button {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 26px;
    border: 1px solid rgba(137, 255, 97, 0.6);
    border-radius: 10px;
    background: linear-gradient(180deg, #5a9536, #356923);
    color: #f2ffe9;
    font-weight: 900;
    cursor: pointer;
}

.gd-table-wrap {
    overflow-x: auto;
}

.gd-table {
    width: 100%;
    border-collapse: collapse;
}

.gd-table th,
.gd-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(56, 255, 126, 0.13);
    text-align: left;
    vertical-align: top;
}

.gd-table th {
    color: #f2ffe9;
    text-transform: uppercase;
    font-size: 13px;
}

.gd-table td {
    color: #cdebc6;
}

.gd-table strong {
    color: #f2ffe9;
}

.gd-table small {
    color: #9fbd9b;
}

@media (max-width: 980px) {
    .gd-shell {
        grid-template-columns: 1fr;
        width: min(100% - 28px, 1480px);
    }

    .gd-form-grid {
        grid-template-columns: 1fr;
    }
}

/* News Admin final form polish */
.gd-form .auth-checkbox-row {
    margin: 18px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gd-form .auth-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #55ff88;
}

.gd-form .auth-checkbox-row label {
    display: inline;
    margin: 0;
    color: #d9ffd2;
    font-weight: 700;
}

.gd-form .panel-form-group {
    margin-bottom: 18px;
}

.gd-form .panel-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d9ffd2;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

.gd-form .panel-form-group input,
.gd-form .panel-form-group textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(56, 255, 126, 0.25);
    background: rgba(0, 16, 8, 0.95);
    color: #f2ffe9;
    padding: 12px;
    font-size: 15px;
}

.gd-form .panel-form-group textarea {
    min-height: 260px;
    resize: vertical;
}

/* News Admin final layout fix */
.news-admin-shell {
    width: min(1360px, calc(100% - 48px));
    margin: 48px auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
}

.news-admin-content {
    max-width: 980px;
}

.news-admin-form-card {
    padding: 32px;
}

.news-admin-form-card .panel-form-group {
    margin-bottom: 22px;
}

.news-admin-form-card input[type="text"],
.news-admin-form-card textarea {
    box-sizing: border-box;
}

.news-admin-form-card textarea {
    min-height: 340px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.news-admin-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}

.news-admin-menu a {
    line-height: 1.25;
    word-break: normal;
}

@media (max-width: 980px) {
    .news-admin-shell {
        grid-template-columns: 1fr;
        width: min(100% - 28px, 1360px);
    }

    .news-admin-content {
        max-width: none;
    }
}

/* News Admin sidebar hard fix */
.news-admin-shell .gd-menu.news-admin-menu {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
}

.news-admin-shell .gd-menu.news-admin-menu a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 17px 20px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.news-admin-shell .gd-sidebar {
    min-width: 300px;
}

.news-admin-shell .gd-profile {
    min-width: 0;
}

.news-admin-shell .gd-content {
    min-width: 0;
}
