﻿/* ========================================
   AXIONBOX BASE
======================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: #191b1d;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}


/* ========================================
   NAVBAR
======================================== */

.navbar {
    height: 64px;

    display: flex;
    align-items: center;

    padding: 0 22px;

    background: #222529;
    border-bottom: 1px solid #393e46;
}

.logo {
    color: #00e676;
    font-size: 21px;
    font-weight: bold;
    margin-right: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    background: transparent;
    border: none;

    color: #bbbbbb;

    padding: 10px 14px;

    border-radius: 5px;

    font-size: 14px;

    cursor: default;
}

.nav-link:hover {
    background: #30343a;
    color: #ffffff;
}

.navbar-auth {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 8px;
}

.navbar-auth-btn {
    padding: 8px 16px;
    font-size: 13px;
}


/* ========================================
   GLOBAL USER SECTION
======================================== */

#user-section {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 15px;

    padding-right: 20px;
}

#user-section span {
    font-weight: 500;
    color: #ffffff;
}

#user-section button {
    cursor: pointer;
    transition: all 0.2s ease;
}

#user-section button:hover {
    background: rgba(255, 68, 68, 0.1);
    transform: scale(1.02);
}


/* ========================================
   AUTH TERMS
======================================== */

.auth-terms {
    margin: 10px 0 15px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.auth-terms a {
    color: #00E676;
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}


/* ========================================
   WELCOME
======================================== */

.welcome-container {
    min-height: calc(100vh - 64px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

.welcome-card {
    width: 100%;
    max-width: 650px;

    text-align: center;

    background: #222529;

    border: 1px solid #393e46;
    border-radius: 8px;

    padding: 45px 35px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.welcome-card h1 {
    margin: 0 0 12px;
    font-size: 32px;
}

.welcome-card p {
    margin: 0;
    color: #aaaaaa;
    font-size: 16px;
}

.welcome-buttons {
    display: flex;
    justify-content: center;

    gap: 10px;

    margin-top: 28px;
}


/* ========================================
   BUTTONS
======================================== */

.auth-btn {
    border: none;
    border-radius: 5px;

    padding: 11px 25px;

    background: #00e676;
    color: #000000;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    transition: background 0.15s;
}

.auth-btn:hover {
    background: #00c968;
}

.secondary-auth {
    background: #30343a;
    color: #ffffff;

    border: 1px solid #44484e;
}

.secondary-auth:hover {
    background: #393e46;
}

.full-auth-btn {
    width: 100%;
    margin-top: 5px;
}


/* ========================================
   AUTH MODAL
======================================== */

.modal {
    position: fixed;

    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.72);

    z-index: 1000;
}

.modal.active {
    display: flex;
}

.auth-modal-box {
    position: relative;

    width: 400px;
    max-width: calc(100% - 30px);

    background: #222529;

    border: 1px solid #393e46;
    border-radius: 8px;

    padding: 28px;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.55);
}

.auth-modal-box h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.auth-description {
    color: #999999;
    font-size: 14px;
    margin: 0 0 20px;
}


/* ========================================
   INPUTS
======================================== */

.auth-input {
    width: 100%;

    padding: 11px 12px;

    margin-bottom: 10px;

    background: #191b1d;

    color: #ffffff;

    border: 1px solid #393e46;
    border-radius: 5px;

    outline: none;

    font-size: 14px;
}

.auth-input:focus {
    border-color: #00e676;
}

.auth-input::placeholder {
    color: #777777;
}


/* ========================================
   MODAL CONTROLS
======================================== */

.modal-close {
    position: absolute;

    top: 9px;
    right: 13px;

    background: transparent;
    border: none;

    color: #888888;

    font-size: 25px;

    cursor: pointer;
}

.modal-close:hover {
    color: #ffffff;
}

.auth-switch {
    text-align: center;

    margin: 18px 0 0;

    color: #888888;

    font-size: 13px;
}

.switch-btn {
    background: transparent;
    border: none;

    color: #00e676;

    cursor: pointer;

    font-size: 13px;
}

.switch-btn:hover {
    text-decoration: underline;
}


/* ========================================
   GAMES
======================================== */

.games-container {
    padding: 30px;
}

.games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}

.games-header h1 {
    margin: 0;
    font-size: 28px;
}

.game-search {
    width: 260px;

    padding: 10px 12px;

    background: #191b1d;
    color: #ffffff;

    border: 1px solid #393e46;
    border-radius: 5px;

    outline: none;

    font-size: 14px;
}

.game-search:focus {
    border-color: #00e676;
}

.game-search::placeholder {
    color: #777777;
}

.games-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(200px, 1fr));

    gap: 20px;
}

.game-card {
    background: #222529;

    border: 1px solid #393e46;
    border-radius: 8px;

    padding: 18px;

    transition: border-color 0.15s;
}

.game-card:hover {
    border-color: #555a62;
}

.game-card h2 {
    margin: 0 0 8px;
    font-size: 19px;
}

.game-card p {
    margin: 0;

    color: #999999;

    font-size: 14px;
}

.play-btn {
    width: 100%;

    margin-top: 15px;

    padding: 10px;

    background: #00e676;
    color: #000000;

    border: none;
    border-radius: 5px;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;
}

.play-btn:hover {
    background: #00c968;
}

.no-games {
    color: #888888;
    padding: 20px 0;
}

.no-games h2 {
    color: #ffffff;
    margin: 0 0 8px;
}

.no-games p {
    margin: 0;
}


/* ========================================
   V-MONEY
======================================== */

.vmoney-container {
    padding: 30px;
}

.vmoney-card {
    max-width: 650px;

    background: #222529;

    border: 1px solid #393e46;
    border-radius: 8px;

    padding: 30px;

    margin-bottom: 20px;
}

.vmoney-card h1,
.vmoney-card h2 {
    margin-top: 0;
}

.vmoney-description {
    margin: 0 0 25px;

    color: #999999;

    font-size: 14px;
}

.vmoney-balance {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 20px;

    background: #191b1d;

    border: 1px solid #393e46;
    border-radius: 6px;
}

.vmoney-label {
    color: #999999;
    font-size: 14px;
}

.vmoney-amount {
    color: #00e676;

    font-size: 24px;
    font-weight: bold;
}

.vmoney-currency {
    color: #bbbbbb;
    font-size: 14px;
}

.vmoney-actions {
    display: flex;
    gap: 10px;

    margin-top: 20px;
}

.vmoney-action-btn {
    min-width: 150px;
}


/* ========================================
   SHOP
======================================== */

.shop-container {
    padding: 30px;
}

.shop-header {
    margin-bottom: 25px;
}

.shop-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.shop-header p {
    margin: 0;

    color: #999999;

    font-size: 14px;
}

.shop-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(200px, 1fr));

    gap: 20px;
}

.shop-item {
    background: #222529;

    border: 1px solid #393e46;
    border-radius: 8px;

    padding: 18px;
}

.shop-item h2 {
    margin: 0 0 8px;
    font-size: 19px;
}

.shop-item-description {
    margin: 0;

    color: #999999;

    font-size: 14px;
}

.shop-item-price {
    margin-top: 15px;

    color: #00e676;

    font-weight: bold;
}

.shop-buy-btn {
    width: 100%;

    margin-top: 12px;

    padding: 10px;

    background: #00e676;
    color: #000000;

    border: none;
    border-radius: 5px;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;
}

.shop-buy-btn:hover {
    background: #00c968;
}

.no-shop-items {
    color: #888888;
    padding: 20px 0;
}

.no-shop-items h2 {
    color: #ffffff;
    margin: 0 0 8px;
}

.no-shop-items p {
    margin: 0;
}

.shop-search {
    width: 220px;

    padding: 10px 12px;

    background: #191b1d;
    color: #ffffff;

    border: 1px solid #393e46;
    border-radius: 5px;

    outline: none;

    font-size: 14px;
}

.shop-search:focus {
    border-color: #00e676;
}

.shop-search::placeholder {
    color: #777777;
}


/* ========================================
   FORUM
======================================== */

.forum-container {
    padding: 30px;
}

.forum-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}

.forum-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.forum-header p {
    margin: 0;

    color: #999999;

    font-size: 14px;
}

.forum-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.forum-post {
    background: #222529;

    border: 1px solid #393e46;
    border-radius: 8px;

    padding: 18px;
}

.forum-post h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.forum-post-info {
    color: #999999;
    font-size: 13px;
}

.forum-post-content {
    margin-top: 12px;

    color: #cccccc;

    font-size: 14px;
}

.no-forum-posts {
    color: #888888;
    padding: 20px 0;
}

.no-forum-posts h2 {
    color: #ffffff;
    margin: 0 0 8px;
}

.no-forum-posts p {
    margin: 0;
}

.forum-search {
    width: 220px;

    padding: 10px 12px;

    background: #191b1d;
    color: #ffffff;

    border: 1px solid #393e46;
    border-radius: 5px;

    outline: none;

    font-size: 14px;
}

.forum-search:focus {
    border-color: #00e676;
}

.forum-search::placeholder {
    color: #777777;
}


/* ========================================
   USERS
======================================== */

.users-container {
    padding: 40px;
}

.users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}

.users-header h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.users-header p {
    margin: 0;

    color: #999999;

    font-size: 14px;
}

.user-search {
    width: 220px;

    padding: 10px 12px;

    background: #191b1d;
    color: #ffffff;

    border: 1px solid #393e46;
    border-radius: 5px;

    outline: none;

    font-size: 14px;
}

.user-search:focus {
    border-color: #00e676;
}

.user-search::placeholder {
    color: #777777;
}

.users-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(220px, 1fr));

    gap: 20px;
}

.user-card {
    display: flex;
    align-items: center;

    gap: 15px;

    background: #2c3036;

    border: 1px solid #393e46;
    border-radius: 8px;

    padding: 15px;

    transition: border-color 0.15s;
}

.user-card:hover {
    border-color: #4b5159;
}

.user-avatar {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    border-radius: 50%;

    object-fit: cover;

    background: #4e545c;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #aaaaaa;

    font-size: 22px;
    font-weight: bold;
}

.user-avatar-empty {
    border: 1px solid #393e46;
}

.user-card-info {
    min-width: 0;
}

.user-card-info h3 {
    margin: 0 0 5px;

    font-size: 16px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-info p {
    margin: 0;

    color: #888888;

    font-size: 12px;
}

.no-users {
    grid-column: 1 / -1;

    padding: 50px;

    text-align: center;

    background: #222529;

    border: 1px solid #393e46;
    border-radius: 8px;

    color: #888888;
}


/* ========================================
   USER META
======================================== */

.user-meta {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 8px;
}

.user-join-date {
    color: #777;
    font-size: 12px;
}

.user-join-date strong {
    color: #aaa;
    font-weight: normal;
}

.user-status {
    display: inline-block;

    padding: 4px 8px;

    border-radius: 5px;

    font-size: 11px;
    font-weight: bold;
}

.user-status.active {
    color: #00E676;

    background: rgba(0, 230, 118, 0.10);

    border: 1px solid rgba(0, 230, 118, 0.25);
}

.user-status.temporary-banned {
    color: #ffb300;

    background: rgba(255, 179, 0, 0.10);

    border: 1px solid rgba(255, 179, 0, 0.25);
}


/* ========================================
   PROFILE ACCESSORY
======================================== */

.profile-container .vmoney-card > div:first-child {
    overflow: visible !important;
    position: relative;
}

#avatar-accessory {
    position: absolute;

    font-size: 50px;

    left: 50%;

    transform: translateX(-50%);

    pointer-events: none;

    z-index: 999;
}


/* ========================================
   HOME
======================================== */

.home-hero {
    padding: 80px 30px 70px;

    display: flex;
    justify-content: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 230, 118, 0.08),
            transparent 60%
        );
}

.home-hero-content {
    width: 100%;
    max-width: 850px;
}

.home-badge {
    display: inline-block;

    padding: 6px 12px;
    margin-bottom: 18px;

    border: 1px solid #393e46;
    border-radius: 20px;

    color: #00e676;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 1px;
}

.home-hero h1 {
    margin: 0 0 15px;
    font-size: 44px;
}

.home-hero p {
    margin: 0 auto;

    max-width: 650px;

    color: #aaaaaa;

    font-size: 17px;
    line-height: 1.6;
}

.home-hero-buttons {
    display: flex;
    justify-content: center;

    gap: 10px;

    margin-top: 30px;
}

.home-primary-btn {
    padding-left: 25px;
    padding-right: 25px;
}

.home-section {
    padding: 55px 40px;
}

.home-section-header {
    text-align: center;

    margin-bottom: 30px;
}

.home-section-header h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.home-section-header p {
    margin: 0;

    color: #888888;

    font-size: 14px;
}

.home-feature-grid {
    max-width: 1050px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));

    gap: 18px;
}

.home-feature-card {
    background: #222529;

    border: 1px solid #393e46;
    border-radius: 8px;

    padding: 25px 20px;

    cursor: pointer;

    transition:
        border-color 0.15s,
        background 0.15s;
}

.home-feature-card:hover {
    background: #292d32;
    border-color: #555a62;
}

.home-feature-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    background: #30343a;

    border-radius: 7px;

    font-size: 20px;
    font-weight: bold;
}

.home-feature-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.home-feature-card p {
    margin: 0;

    color: #888888;

    font-size: 13px;
    line-height: 1.5;
}

.home-create {
    padding: 25px 40px 60px;
}

.home-create-card {
    max-width: 1050px;

    margin: 0 auto;

    padding: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    background: #222529;

    border: 1px solid #393e46;
    border-radius: 8px;
}

.home-create-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.home-create-card p {
    margin: 0;

    color: #888888;

    font-size: 14px;
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
    padding: 25px 20px;

    text-align: center;

    color: #666;

    font-size: 13px;

    border-top: 1px solid #2d3035;

    margin-top: 20px;
}


/* ========================================
   RULES
======================================== */

.rules-container {
    max-width: 950px;

    margin: 0 auto;

    padding: 55px 30px;
}

.rules-header {
    text-align: center;
    margin-bottom: 35px;
}

.rules-header h1 {
    margin: 12px 0;
    font-size: 36px;
}

.rules-header p {
    color: #888;
    font-size: 15px;
    line-height: 1.6;
}

.rules-card {
    background: #222529;

    border: 1px solid #393e46;
    border-radius: 8px;

    padding: 22px 25px;

    margin-bottom: 15px;
}

.rules-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.rules-card p {
    margin: 0;

    color: #aaa;

    font-size: 14px;
    line-height: 1.6;
}

.rules-footer-card {
    margin-top: 30px;

    padding: 28px;

    text-align: center;

    background: #222529;

    border: 1px solid #393e46;
    border-radius: 8px;
}

.rules-footer-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rules-footer-card p {
    margin: 0;

    color: #888;

    font-size: 14px;
}


/* ========================================
   ADMIN PANEL
======================================== */

.admin-container {
    max-width: 950px;

    margin: 0 auto;

    padding: 55px 30px;
}

.admin-header {
    text-align: center;
    margin-bottom: 35px;
}

.admin-header h1 {
    margin: 12px 0;
    font-size: 36px;
}

.admin-header p {
    color: #888;
    font-size: 15px;
}

.admin-card {
    background: #222529;

    border: 1px solid #393e46;
    border-radius: 8px;

    padding: 25px;

    margin-bottom: 18px;
}

.admin-card h2 {
    margin: 0 0 20px;
    font-size: 19px;
}

.admin-search-row {
    display: flex;
    gap: 10px;
}

.admin-input {
    width: 100%;

    padding: 11px;

    background: #191b1d;

    color: #fff;

    border: 1px solid #393e46;
    border-radius: 5px;

    outline: none;
}

.admin-input:focus {
    border-color: #00e676;
}

.admin-error {
    margin-top: 12px;

    color: #ff5555;

    font-size: 13px;
}

.admin-user {
    display: flex;
    align-items: center;

    gap: 18px;
}

.admin-avatar {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #30343a;

    border-radius: 8px;

    font-size: 30px;

    overflow: hidden;
}

.admin-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.admin-user-info h2 {
    margin: 0 0 8px;
}

.admin-user-info p {
    margin: 4px 0;

    color: #888;

    font-size: 13px;
}

.admin-ban-section {
    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #393e46;
}

.admin-ban-section h3 {
    margin-top: 0;
}

.admin-ban-section label {
    display: block;

    margin-bottom: 7px;

    color: #aaa;

    font-size: 13px;
}

.admin-action-buttons {
    display: flex;

    gap: 10px;

    margin-top: 12px;
}

.admin-ban-btn,
.admin-unban-btn,
.admin-unban-small {
    border: none;

    padding: 9px 15px;

    border-radius: 5px;

    font-weight: bold;

    cursor: pointer;
}

.admin-ban-btn {
    background: #ff4444;
    color: #fff;
}

.admin-unban-btn,
.admin-unban-small {
    background: #00e676;
    color: #000;
}

.admin-ban-entry,
.admin-history-entry {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;

    padding: 15px 0;

    border-bottom: 1px solid #393e46;
}

.admin-ban-entry:last-child,
.admin-history-entry:last-child {
    border-bottom: none;
}

.admin-ban-entry p,
.admin-history-entry p {
    margin: 5px 0;

    color: #999;

    font-size: 13px;
}

.admin-history-entry {
    display: block;
}

.admin-history-entry small {
    color: #666;
}

.admin-empty {
    padding: 20px;

    color: #777;

    text-align: center;
}


/* ========================================
   APPEALS
======================================== */

.admin-appeal-card {
    background: #15181c;

    border: 1px solid #292e35;
    border-radius: 10px;

    padding: 16px;

    margin-bottom: 12px;
}

.appeal-card-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 10px;

    margin-bottom: 12px;
}

.appeal-card-info {
    color: #aaa;

    font-size: 14px;
    line-height: 1.7;

    margin-bottom: 14px;
}

.appeal-status {
    padding: 4px 9px;

    border-radius: 6px;

    font-size: 12px;
    font-weight: bold;
}

.appeal-status-pending {
    background: #332b00;
    color: #ffd740;
}

.appeal-status-approved {
    background: #063d20;
    color: #00e676;
}

.appeal-status-denied {
    background: #3d0808;
    color: #ff5252;
}

.appeal-details {
    line-height: 1.6;
}

.appeal-message {
    background: #101216;

    border: 1px solid #292e35;
    border-radius: 8px;

    padding: 12px;

    white-space: pre-wrap;
    word-break: break-word;
}

.appeal-actions {
    display: flex;

    gap: 10px;

    margin-top: 15px;
}


/* ========================================
   PASSWORD SETTINGS
======================================== */

#current-password,
#new-password,
#confirm-password {
    width: 100%;
    max-width: 100%;
    min-height: 42px;

    padding: 10px 12px;

    font-size: 15px;

    background: #191B1D;

    color: white;

    border: 1px solid #393E46;
    border-radius: 8px;

    outline: none;
}

#current-password:focus,
#new-password:focus,
#confirm-password:focus {
    border-color: #00E676;
}


/* ========================================
   WARNING USER BUTTON
======================================== */

.warn-user-btn {
    width: 100%;

    padding: 10px 16px;

    margin-top: 10px;

    background: #191B1D;

    color: #ffb300;

    border: 1px solid #ffb300;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.warn-user-btn:hover {
    background: #2a2415;

    border-color: #ffc107;

    color: #ffc107;

    transform: translateY(-1px);
}

.warn-user-btn:active {
    transform: translateY(0);
    background: #151718;
}

.warn-user-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}


/* ========================================
   MODERATION PAGE
======================================== */

.moderated-container {
    min-height: calc(100vh - 75px);

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 50px 25px;
}

.moderated-card {
    width: 100%;
    max-width: 620px;

    background: #222529;

    border: 1px solid #393e46;
    border-radius: 12px;

    padding: 40px;

    text-align: center;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
}

.moderated-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 68, 68, 0.10);

    border: 1px solid rgba(255, 68, 68, 0.30);

    border-radius: 50%;

    font-size: 34px;
}

.moderated-card h1 {
    margin: 0 0 12px;

    font-size: 30px;

    color: #fff;
}

.moderated-card > p {
    margin: 0 auto;

    max-width: 480px;

    color: #999;

    font-size: 14px;

    line-height: 1.6;
}

.moderated-info {
    margin-top: 28px;

    padding: 18px;

    background: #191b1d;

    border: 1px solid #393e46;
    border-radius: 8px;

    text-align: left;
}

.moderated-info p {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin: 0;

    padding: 12px 0;

    color: #888;

    font-size: 14px;

    border-bottom: 1px solid #30343a;
}

.moderated-info p:last-child {
    border-bottom: none;
}

.moderated-info strong {
    color: #aaa;
}

.moderated-info span {
    color: #fff;
    text-align: right;
}

.moderated-note {
    margin-top: 22px !important;

    color: #666 !important;

    font-size: 12px !important;
}

.moderated-container + .site-footer {
    margin-top: 0;
}


/* ========================================
   ACCOUNT STATUS
======================================== */

.status-container {
    max-width: 900px;

    margin: 40px auto;

    padding: 20px;
}

.status-card {
    background: #222529;

    border: 1px solid #393E46;
    border-radius: 12px;

    padding: 30px;

    text-align: center;
}

.status-icon {
    font-size: 56px;
    margin-bottom: 10px;
}

.status-title {
    font-size: 30px;
    margin: 0;
}

.status-description {
    color: #aaa;
    margin-top: 10px;
}

.violations-section {
    margin-top: 25px;
}

.violations-title {
    margin-bottom: 15px;
}

.violation-card {
    background: #191B1D;

    border: 1px solid #393E46;
    border-radius: 8px;

    padding: 16px;

    margin-bottom: 12px;

    text-align: left;
}

.violation-header {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    flex-wrap: wrap;
}

.violation-type {
    font-weight: bold;
    color: #fff;
}

.violation-action {
    color: #00E676;
}

.violation-details {
    margin-top: 10px;

    color: #aaa;

    line-height: 1.6;
}

.violation-status {
    display: inline-block;

    margin-top: 10px;

    padding: 4px 8px;

    border-radius: 6px;

    font-size: 12px;

    border: 1px solid #555;
}

.empty-history {
    color: #aaa;
    padding: 20px;
}

.account-status-user-section {
    display: none;

    color: #fff;

    font-size: 14px;

    align-items: center;

    gap: 10px;
}

.account-status-username {
    color: #00E676;
}

.account-status-logout-btn {
    border-color: #ff4444;
    color: #ff4444;
}


/* ========================================
   MODERATED PAGE EXTRA
======================================== */

.moderated-note-box {
    margin-top: 20px;

    padding: 16px;

    background: #191B1D;

    border: 1px solid #444;
    border-radius: 8px;

    text-align: left;

    line-height: 1.5;

    display: none;
}

.moderated-note-title {
    display: block;

    margin-bottom: 8px;

    color: #ffb300;

    font-weight: bold;
}

#moderated-note,
#warning-message {
    color: #ddd;

    white-space: pre-wrap;
    word-break: break-word;
}

.moderated-moderator {
    margin-top: 10px;
}

.moderated-error {
    margin-top: 20px;

    padding: 12px;

    background: #3a2020;

    border: 1px solid #ff4444;
    border-radius: 8px;

    color: #ff8888;

    display: none;
}

#moderated-warning-box {
    display: none;
}

.warning-message-box {
    margin-top: 20px;

    padding: 16px;

    background: #191B1D;

    border: 1px solid #ffb300;
    border-radius: 8px;

    text-align: left;

    line-height: 1.5;
}

.warning-message-title {
    display: block;

    margin-bottom: 8px;

    color: #ffb300;

    font-weight: bold;
}

#warning-continue-btn {
    width: 100%;
    margin-top: 20px;
}

#moderated-rules-link {
    display: inline-block;

    margin-top: 18px;

    padding: 10px 18px;

    background: #191B1D;

    border: 1px solid #555;
    border-radius: 7px;

    color: #00E676;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

#moderated-rules-link:hover {
    background: #222629;

    border-color: #00E676;

    transform: translateY(-1px);
}

#moderated-rules-link:active {
    transform: translateY(0);

    background: #151718;
}

.moderated-user-section {
    display: none;

    color: #fff;

    font-size: 14px;

    align-items: center;

    gap: 10px;
}

.moderated-username {
    color: #00E676;
}

.moderated-navbar-logout {
    border-color: #ff4444;
    color: #ff4444;
}

#appeal-btn {
    border-color: #00B0FF;
    color: #00B0FF;
}

#logout-btn {
    border-color: #ff4444;
    color: #ff4444;
}


/* ========================================
   APPEAL MODAL
======================================== */

#appeal-modal {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 100000;

    background: rgba(0, 0, 0, 0.75);

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.appeal-modal-window {
    width: min(500px, 100%);

    background: #222529;

    border: 1px solid #393E46;
    border-radius: 12px;

    padding: 25px;
}

.appeal-modal-window h2 {
    margin-top: 0;
}

.appeal-modal-description {
    color: #aaa;
}

#appeal-reason {
    width: 100%;

    min-height: 160px;

    resize: vertical;

    padding: 12px;

    background: #191B1D;

    color: white;

    border: 1px solid #393E46;
    border-radius: 8px;

    font-family: Arial, sans-serif;
}

#appeal-error {
    display: none;

    margin-top: 10px;

    color: #ff8888;
}

#appeal-status {
    display: none;

    margin-top: 10px;

    color: #00E676;
}

.appeal-action-btn {
    flex: 1;
}

#appeal-close-btn {
    border-color: #666;
    color: #aaa;
}


/* ========================================
   INVENTORY
======================================== */

#inventory-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(220px, 1fr));

    gap: 20px;

    margin-top: 25px;
}

.inventory-card {
    background: #1b1f24;

    border: 1px solid #393e46;

    border-radius: 12px;

    overflow: hidden;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;

    min-width: 0;
}

.inventory-card:hover {
    transform: translateY(-3px);

    border-color: #666;

    background: #20252b;
}

.inventory-preview {
    width: 100%;
    height: 150px;

    background: #111315;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.inventory-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.inventory-icon {
    font-size: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
}

.inventory-content {
    padding: 15px;
}

.inventory-type {
    color: #aaa;

    font-size: 13px;
    font-weight: bold;

    margin-bottom: 7px;
}

.inventory-content h3 {
    color: #fff;

    font-size: 18px;

    margin: 0 0 12px 0;

    word-break: break-word;
}

.inventory-meta {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.inventory-info {
    color: #aaa;
    font-size: 13px;
}

.inventory-price {
    color: #00e676;

    font-size: 13px;

    font-weight: bold;
}

.inventory-id {
    color: #666;

    font-size: 11px;

    word-break: break-all;
}


/* ========================================
   EDITOR
======================================== */

#canvas-container {
    width: 100vw;
    height: 100vh;
}

.editor-ui {
    position: fixed;

    top: 20px;
    left: 20px;

    background: rgba(34, 37, 41, 0.9);

    padding: 20px;

    border-radius: 8px;

    border: 1px solid #393E46;

    z-index: 100;

    color: #fff;

    font-family: sans-serif;
}

.editor-btn {
    background: #00E676;

    color: #000;

    border: none;

    padding: 10px 15px;

    font-weight: bold;

    border-radius: 4px;

    cursor: pointer;

    margin-top: 10px;

    width: 100%;
}

.editor-btn.delete-mode {
    background: #ff4444;
    color: #fff;
}

#editor-error {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 99999;

    background: #111315;

    color: white;

    align-items: center;
    justify-content: center;

    text-align: center;

    font-family: Arial, sans-serif;

    padding: 30px;
}


/* ========================================
   EXPLORER
======================================== */

#explorer-panel {
    position: fixed;

    top: 20px;
    right: 20px;

    width: 280px;

    max-height: calc(100vh - 40px);

    background: rgba(24, 24, 24, 0.95);

    border: 1px solid #393E46;
    border-radius: 10px;

    color: white;

    font-family: sans-serif;

    z-index: 500;

    display: flex;

    flex-direction: column;

    overflow: hidden;
}

.explorer-header {
    padding: 12px 15px;

    font-size: 17px;
    font-weight: bold;

    border-bottom: 1px solid #393E46;
}

#places-toggle {
    width: 100%;

    border: none;

    background: transparent;

    color: white;

    text-align: left;

    padding: 10px;

    cursor: pointer;

    font-size: 14px;
}

#places-list {
    max-height: 280px;

    overflow-y: auto;

    padding: 0 8px 8px;
}

.explorer-item {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px 10px;

    border-radius: 6px;

    cursor: pointer;

    font-size: 14px;
}

.explorer-item:hover {
    background: #292929;
}

.explorer-item.selected {
    background: #303030;

    outline: 1px solid #00E676;
}

.explorer-icon {
    width: 20px;
    text-align: center;
}

#explorer-properties {
    border-top: 1px solid #393E46;

    padding: 12px;
}

.properties-title {
    color: #999;

    font-size: 12px;

    margin-bottom: 8px;
}

#selected-object-name {
    margin-bottom: 12px;

    font-weight: bold;
}

#add-script-btn {
    width: 100%;

    padding: 9px;

    border: none;

    border-radius: 6px;

    background: #292929;

    color: white;

    cursor: pointer;
}

#add-script-btn:hover {
    background: #3a3a3a;
}

#add-script-btn:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}

#delete-script-btn {
    width: 100%;

    margin-top: 8px;

    padding: 9px;

    border: none;

    border-radius: 6px;

    background: #ff4444;

    color: white;

    cursor: pointer;
}

#delete-script-btn:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}


/* ========================================
   PLAY 3D
======================================== */

#game-canvas {
    width: 100vw;
    height: 100vh;
}

.game-over-ui {
    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background: rgba(34, 37, 41, 0.95);

    padding: 30px;

    border-radius: 10px;

    border: 2px solid #ff4444;

    color: #fff;

    text-align: center;

    font-family: sans-serif;

    display: none;

    z-index: 1000;
}

.mobile-menu-btn {
    position: fixed;

    top: 18px;
    left: 18px;

    width: 52px;
    height: 52px;

    z-index: 9000;

    border: 1px solid #444;

    border-radius: 10px;

    background: rgba(24, 24, 24, 0.85);

    color: white;

    font-size: 26px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    backdrop-filter: blur(5px);

    transition: 0.15s;
}

.mobile-menu-btn:hover {
    background: rgba(55, 55, 55, 0.9);

    transform: scale(1.03);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.esc-menu {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(5px);
}

.esc-menu-box {
    width: 320px;

    padding: 30px;

    background: #181818;

    border: 1px solid #333;

    border-radius: 12px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6);

    text-align: center;

    font-family: sans-serif;
}

.esc-menu-box h1 {
    margin: 0 0 25px;

    color: white;

    font-size: 28px;

    letter-spacing: 2px;
}

.esc-menu-btn {
    width: 100%;

    padding: 13px;

    margin-top: 10px;

    border: none;

    border-radius: 7px;

    background: #292929;

    color: white;

    font-size: 16px;

    cursor: pointer;

    transition: 0.15s;
}

.esc-menu-btn:hover {
    background: #3a3a3a;

    transform: translateY(-1px);
}

.esc-menu-btn:active {
    transform: scale(0.98);
}

.esc-menu-btn.danger {
    background: #8b2222;
}

.esc-menu-btn.danger:hover {
    background: #b52d2d;
}


/* ========================================
   GAME LOADING
======================================== */

#game-loading-screen {
    position: fixed;

    inset: 0;

    background: #111315;

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 999999;

    color: white;

    font-family: Arial, sans-serif;
}

.loading-box {
    width: min(420px, calc(100vw - 40px));

    text-align: center;

    padding: 30px;
}

.loading-title {
    font-size: 32px;

    font-weight: bold;

    color: #00E676;

    margin-bottom: 15px;
}

.loading-text {
    font-size: 18px;

    margin-bottom: 20px;
}

.loading-bar {
    width: 100%;

    height: 10px;

    background: #2C3036;

    border-radius: 10px;

    overflow: hidden;
}

#loading-progress {
    width: 0%;

    height: 100%;

    background: #00E676;

    transition: width 0.2s ease;
}

#loading-status {
    margin-top: 12px;

    font-size: 13px;

    color: #aaa;
}


/* ========================================
   GAME CHAT
======================================== */

#chat-toggle {
    position: fixed;

    top: 18px;
    left: 82px;

    width: 52px;
    height: 52px;

    z-index: 9000;

    margin: 0;
    padding: 0;

    border: 1px solid #444;

    border-radius: 10px;

    background: rgba(24, 24, 24, 0.85);

    color: white;

    font-size: 23px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    backdrop-filter: blur(5px);

    transition: 0.15s;
}

#chat-toggle:hover {
    background: rgba(55, 55, 55, 0.9);

    transform: scale(1.03);
}

#chat-toggle:active {
    transform: scale(0.95);
}

#game-chat {
    position: fixed;

    top: 78px;
    left: 18px;

    width: 360px;

    max-width: calc(100vw - 36px);

    height: auto;

    min-height: 0;

    max-height: none;

    margin: 0;
    padding: 0;

    z-index: 8000;

    display: none;

    box-sizing: border-box;

    background: rgba(25, 27, 29, 0.96);

    border: 1px solid #393E46;

    border-radius: 10px;

    overflow: hidden;

    font-family: Arial, sans-serif;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(8px);
}

#game-chat-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    height: 42px;

    margin: 0;

    padding: 0 12px;

    background: #222529;

    border-bottom: 1px solid #393E46;

    color: white;

    font-weight: bold;
}

#chat-close {
    margin: 0;
    padding: 0;

    width: 30px;
    height: 30px;

    border: none;

    background: transparent;

    color: #aaa;

    font-size: 24px;

    cursor: pointer;
}

#chat-close:hover {
    color: white;
}

#game-chat-messages {
    width: 100%;

    height: 180px;

    min-height: 0;
    max-height: 180px;

    margin: 0;

    padding: 10px;

    box-sizing: border-box;

    overflow-y: auto;

    display: flex;

    flex-direction: column;

    gap: 6px;
}

.game-chat-message {
    width: fit-content;

    max-width: 100%;

    margin: 0;

    padding: 7px 9px;

    box-sizing: border-box;

    background: #2C3036;

    border-radius: 7px;

    color: white;

    font-size: 14px;

    line-height: 1.35;

    word-break: break-word;
}

.game-chat-name {
    color: #00E676;

    font-weight: bold;
}

#game-chat-input-row {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 6px;

    margin: 0;

    padding: 8px;

    box-sizing: border-box;

    border-top: 1px solid #393E46;
}

#game-chat-input {
    flex: 1;

    min-width: 0;

    width: auto;

    height: 38px;

    margin: 0;

    padding: 8px 10px;

    box-sizing: border-box;

    background: #191B1D;

    border: 1px solid #393E46;

    border-radius: 6px;

    outline: none;

    color: white;

    font-size: 14px;
}

#game-chat-input:focus {
    border-color: #00E676;
}

#game-chat-send {
    flex-shrink: 0;

    height: 38px;

    margin: 0;

    padding: 8px 12px;

    box-sizing: border-box;

    border: none;

    border-radius: 6px;

    background: #00E676;

    color: #000;

    font-weight: bold;

    cursor: pointer;
}

#game-chat-send:hover {
    background: #00c964;
}

#game-chat-warning {
    width: 100%;

    margin: 0;

    padding: 7px 10px;

    box-sizing: border-box;

    color: #ff8888;

    background: rgba(255, 68, 68, 0.08);

    border-top: 1px solid #4a2a2a;

    font-size: 12px;

    text-align: center;

    display: none;
}


/* ========================================
   GAME SETTINGS PANEL
======================================== */

.settings-panel {
    width: 100%;

    margin-top: 10px;

    color: white;

    text-align: left;
}

.settings-panel h2 {
    margin: 0 0 20px;

    text-align: center;

    font-size: 22px;
}

.setting-row {
    margin-bottom: 20px;
}

.setting-row label {
    display: block;

    margin-bottom: 8px;

    color: #ddd;

    font-size: 14px;
}

#settings-sensitivity {
    width: 100%;

    cursor: pointer;
}

#settings-graphics {
    width: 100%;

    padding: 10px;

    background: #292929;

    border: 1px solid #444;

    border-radius: 7px;

    color: white;

    font-size: 15px;

    outline: none;
}

#settings-graphics:focus {
    border-color: #00E676;
}


/* ========================================
   MOBILE CONTROLS
======================================== */

#mobile-controls {
    position: fixed;

    inset: 0;

    z-index: 99999;

    pointer-events: none;

    touch-action: none;
}

#mobile-joystick {
    position: absolute;

    left: 30px;
    bottom: 30px;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    border: 2px solid rgba(255, 255, 255, 0.3);

    pointer-events: auto;

    touch-action: none;

    user-select: none;
}

#joystick-knob {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 55px;
    height: 55px;

    border-radius: 50%;

    background: rgba(0, 230, 118, 0.8);

    border: 2px solid rgba(255, 255, 255, 0.4);

    transform: translate(-50%, -50%);

    pointer-events: none;
}

#mobile-jump {
    position: absolute;

    right: 30px;
    bottom: 45px;

    width: 75px;
    height: 75px;

    border-radius: 50%;

    border: 2px solid rgba(255, 255, 255, 0.3);

    background: rgba(255, 255, 255, 0.12);

    color: white;

    font-size: 30px;

    font-weight: bold;

    pointer-events: auto;

    touch-action: none;

    user-select: none;
}

#mobile-jump:active {
    transform: scale(0.92);
}


/* ========================================
   MOBILE / TABLET
======================================== */

@media (max-width: 1024px) {

    #chat-toggle {
        top: 15px;
        left: 81px;

        width: 56px;
        height: 56px;
    }

    #game-chat {
        top: 78px;
        left: 10px;

        width: calc(100vw - 20px);

        max-width: none;
    }

    .mobile-menu-btn {
        width: 56px;
        height: 56px;

        font-size: 28px;

        top: 15px;
        left: 15px;
    }
}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 650px) {

    .home-hero {
        padding: 60px 20px;
    }

    .home-hero h1 {
        font-size: 34px;
    }

    .home-hero-buttons {
        flex-direction: column;
    }

    .home-section {
        padding: 40px 20px;
    }

    .home-create {
        padding: 20px 20px 40px;
    }

    .home-create-card {
        flex-direction: column;
        align-items: stretch;
    }

    .rules-container {
        padding: 40px 20px;
    }

    .rules-header h1 {
        font-size: 30px;
    }

    .rules-card {
        padding: 20px;
    }

    .admin-container {
        padding: 40px 20px;
    }

    .admin-search-row {
        flex-direction: column;
    }

    .admin-user {
        align-items: flex-start;
    }

    .admin-action-buttons {
        flex-direction: column;
    }

    .moderated-container {
        padding: 30px 18px;
    }

    .moderated-card {
        padding: 30px 20px;
    }

    .moderated-card h1 {
        font-size: 26px;
    }

    .moderated-info p {
        flex-direction: column;
        gap: 4px;
    }

    .moderated-info span {
        text-align: left;
    }

    #game-chat-messages {
        max-height: 180px;
    }

    #game-chat-input {
        font-size: 16px;
    }

    #inventory-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .inventory-preview {
        height: 180px;
    }
}


/* ========================================
   SMALL PHONES
======================================== */

@media (max-width: 500px) {

    #mobile-joystick {
        left: 20px;
        bottom: 20px;

        width: 105px;
        height: 105px;
    }

    #joystick-knob {
        width: 48px;
        height: 48px;
    }

    #mobile-jump {
        right: 20px;
        bottom: 30px;

        width: 68px;
        height: 68px;
    }
}