* {
    box-sizing: border-box;
}

body {
    background: #0d0f12;
    color: #e4e6eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 32px 60px;
    margin: 0;
}

.topbar {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    justify-self: start;
}

.logo-centered {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.page-title {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

#page-select {
    grid-column: 2;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: #e4e6eb;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.3px;
    padding: 4px 26px 4px 4px;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%238b8f98'/></svg>");
    background-repeat: no-repeat;
    background-position: right 4px center;
}

.server-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.server-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.server-selector label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9a9ea6;
}

#server-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #14161a;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%238b8f98'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    color: #e4e6eb;
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

#server-select:hover,
#server-select:focus {
    border-color: #4ade80;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

button {
    background: #1a1d23;
    color: #e4e6eb;
    border: 1px solid #2f333c;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

button:hover {
    background: #23272f;
}

button:active {
    transform: scale(0.97);
}

#start-server {
    border-color: #2f6f4f;
    color: #6fd19a;
}

#start-server:hover {
    background: #16261d;
}

#stop-server {
    border-color: #7a3535;
    color: #e88a8a;
}

#stop-server:hover {
    background: #2a1717;
}

h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9a9ea6;
    margin-bottom: 12px;
}

#logout-link {
    color: #e4e6eb;
    text-decoration: none;
}

#logout-link:hover {
    color: #ff5c5c;
}

.login-box {
    background: #14161a;
    border: 1px solid #2a2e37;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 340px;
    margin-top: 60px;
}

.login-box h1 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 28px;
}

.login-box form {
    display: flex;
    flex-direction: column;
}

.login-box label {
    font-size: 13px;
    color: #9a9ea6;
    margin-bottom: 6px;
    margin-top: 14px;
}

.login-box input {
    background: #0d0f12;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    color: #e4e6eb;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.login-box input:focus {
    border-color: #4ade80;
}

.login-box button {
    margin-top: 24px;
    background: #1a1d23;
    border: 1px solid #2a2e37;
    border-radius: 999px;
    color: #e4e6eb;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.login-box button:hover {
    background: #23272f;
}

.login-box button:active {
    transform: scale(0.97);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-box {
    background: #14161a;
    border: 1px solid #2a2e37;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 360px;
}

.modal-box h3 {
    margin-top: 0;
    font-size: 18px;
}

.modal-box p {
    color: #9a9ea6;
    font-size: 14px;
}

#current-map-name {
    color: #e4e6eb;
    font-weight: 600;
}

#map-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-color: #0d0f12;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%238b8f98'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    color: #e4e6eb;
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    margin-top: 12px;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.modal-actions button {
    flex: 1;
    border-radius: 999px;
    padding: 10px;
    font-size: 14px;
}

.modal-actions .secondary {
    background: transparent;
    border-color: #2a2e37;
    color: #9a9ea6;
}

.console-row {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    flex-wrap: wrap;
    justify-content: center;
}

.console-column {
    flex: 1;
    min-width: 320px;
}

.console-column h3 {
    text-align: center;
}

#server-log-box,
#action-log-box {
    background: #08090b;
    color: #4ade80;
    border: 1px solid #1f232a;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    height: 320px;
    overflow-y: auto;
    font-family: "SF Mono", "Cascadia Code", monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    box-sizing: border-box;
    word-break: break-word;
}

#player-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d0f12;
    border: 1px solid #2a2e37;
    border-radius: 8px;
    padding: 10px 14px;
}

.player-row .kick-btn {
    border-color: #7a3535;
    color: #e88a8a;
    padding: 6px 16px;
    font-size: 13px;
}

.player-row .kick-btn:hover {
    background: #2a1717;
}

.no-players {
    color: #9a9ea6;
    text-align: center;
    padding: 20px 0;
}

#ban-player {
    border-color: #7a3535;
    color: #e88a8a;
}

#ban-player:hover {
    background: #2a1717;
}

footer {
    margin-top: 60px;
    text-align: center;
}

footer .version {
    color: #9a9ea6;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

footer .alpha-notice {
    max-width: 460px;
    margin: 10px auto 0;
    color: #5c6069;
    font-size: 12px;
    line-height: 1.6;
}

footer .alpha-notice b {
    color: #9a9ea6;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.hero-tagline {
    color: #9a9ea6;
    font-size: 15px;
    margin-bottom: 28px;
}

.discord-btn {
    background: #5865f2;
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.discord-btn:hover {
    background: #4752c4;
}

.discord-btn:active {
    transform: scale(0.97);
}

.server-banners {
    width: 100%;
    max-width: 1000px;
}

.section-heading {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9a9ea6;
    text-align: center;
    margin-bottom: 20px;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.server-banner {
    background: #14161a;
    border: 1px solid #2a2e37;
    border-radius: 12px;
    padding: 20px;
}

.server-banner.online {
    border-color: #2f6f4f;
}

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

.server-name {
    font-size: 15px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
}

.status-dot.offline {
    background: #6b7280;
}

.banner-map {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.banner-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-gametype {
    background: #1a1d23;
    border: 1px solid #2a2e37;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #9a9ea6;
}

.banner-players {
    font-size: 14px;
    font-weight: 600;
    color: #4ade80;
}

.banner-offline-text {
    color: #6b7280;
    font-size: 14px;
    padding: 16px 0;
    text-align: center;
}