/* Hytale Server Manager - Main Stylesheet */


* { margin: 0; padding: 0; box-sizing: border-box; }
*::-webkit-scrollbar {
    width: 10px;
}
*::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
*::-webkit-scrollbar-thumb {
    background: rgba(238, 187, 77, 0.5);
    border-radius: 999px;
}
body {
    background-color: var(--bg-core);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
body::before,
body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 187, 77, 0.12), transparent 65%);
    opacity: 0.8;
    z-index: -2;
}
body::before {
    top: -120px;
    left: -120px;
}
body::after {
    bottom: -140px;
    right: -160px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.12), transparent 65%);
}

.app-shell {
    position: relative;
    min-height: 100vh;
}

.app-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(238, 187, 77, 0.08), transparent 55%),
                radial-gradient(circle at 80% 10%, rgba(67, 192, 246, 0.08), transparent 45%),
                radial-gradient(circle at 70% 80%, rgba(243, 163, 73, 0.08), transparent 50%);
    z-index: -2;
    pointer-events: none;
}

.bg-noise { position: fixed; inset: 0; z-index: -1; opacity: 0.04; pointer-events: none; background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJnIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNnKSIgb3BhY2l0eT0iMC41Ii8+PC9zdmc+'); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0 24px; height: 44px; border-radius: 4px; border: none; cursor: pointer;
    font-family: 'Cinzel', serif; font-weight: 700; text-transform: uppercase; font-size: 0.85rem;
    transition: 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
    background: linear-gradient(180deg, #eebb4d 0%, #b88a2d 100%); color: #2b1d00;
    border: 1px solid #ffeeb0; box-shadow: 0 6px 0 #7a5814, 0 16px 30px rgba(0,0,0,0.4);
}
.btn-gold:active { transform: translateY(4px); box-shadow: none; }
.btn-ghost { background: rgba(15, 23, 42, 0.4); border: 1px solid var(--border-highlight); color: var(--text-muted); }
.btn-ghost:hover { border-color: var(--gold-main); color: white; background: rgba(255,255,255,0.05); }
.btn:focus-visible {
    outline: 2px solid rgba(238, 187, 77, 0.6);
    outline-offset: 2px;
}
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Header */
header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(5, 7, 10, 0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08); height: 70px;
    display: flex; align-items: center; justify-content: center;
}
header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(238, 187, 77, 0.6), transparent);
    opacity: 0.7;
}
.nav-inner { width: 100%; max-width: 1400px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.5rem; color: white; letter-spacing: 1px; text-shadow: 0 0 15px var(--gold-glow); }
.logo span { color: var(--gold-main); }

.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 7, 10, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    height: auto;
    display: block;
}

.main-nav .nav-inner {
    max-width: none;
    width: 100%;
    padding: 0 20px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.brand-title {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: white;
    letter-spacing: 1px;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    margin: 4px 0;
}

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-left: 12px;
}

.nav-center,
.nav-right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.nav-center {
    flex: 1;
    justify-content: center;
}
.nav-right {
    margin-left: auto;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.2);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.nav-item img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.nav-item:hover {
    border-color: rgba(238, 187, 77, 0.4);
    color: white;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 25px rgba(238, 187, 77, 0.15);
    transform: translateY(-1px);
}

.nav-user {
    text-transform: none;
}

.nav-action {
    height: 36px;
    padding: 0 14px;
    font-size: 0.85rem;
    text-transform: none;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: rgba(15, 23, 42, 0.35);
}

.nav-action img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.nav-action:hover {
    border-color: rgba(238, 187, 77, 0.4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 25px rgba(238, 187, 77, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
}

.nav-dropdown {
    position: relative;
}

.nav-chevron {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: rgba(10, 15, 25, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    z-index: 20;
}

.nav-menu-right {
    left: auto;
    right: 0;
}

.nav-dropdown.is-open .nav-menu {
    display: flex;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    border: 1px solid transparent;
}

.nav-menu-item img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.nav-menu-item:hover {
    border-color: rgba(238, 187, 77, 0.4);
    color: white;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 25px rgba(238, 187, 77, 0.12);
}

.nav-menu-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 8px;
}

.nav-menu-name {
    font-weight: 600;
    color: white;
}

.nav-menu-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.nav-server {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.4);
}

.nav-server-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-server-name {
    font-weight: 700;
    color: white;
}

.nav-server-actions {
    display: inline-flex;
    gap: 6px;
}

.nav-server-actions .btn {
    height: 32px;
    padding: 0 12px;
    font-size: 0.7rem;
}

.subtle-text { color: var(--text-subtle); }
.muted { color: var(--text-muted); }
.title-caps { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.7rem; color: var(--text-subtle); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--outline-soft);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-muted);
}

.chip-success { color: var(--success); border-color: rgba(46, 204, 113, 0.4); }
.chip-warning { color: var(--accent-orange); border-color: rgba(243, 163, 73, 0.5); }
.chip-info { color: var(--accent-cyan); border-color: rgba(67, 192, 246, 0.4); }
.chip-progress { color: var(--gold-main); border-color: rgba(238, 187, 77, 0.5); }

.status-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-main);
    border: 1px solid rgba(238, 187, 77, 0.4);
    background: rgba(238, 187, 77, 0.08);
}

.status-text.busy {
    color: var(--gold-main);
}

.status-text.online {
    color: var(--success);
}

.status-text.offline {
    color: var(--accent-orange);
}

.status-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 6px;
    border-radius: 50%;
    border: 2px solid rgba(238, 187, 77, 0.25);
    border-top-color: var(--gold-main);
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section-head {
    position: relative;
    display: flex; align-items: flex-end; justify-content: space-between;
    border-bottom: 1px solid var(--border-highlight); padding-bottom: 15px; margin: 40px 0 30px;
}
.section-head::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-main), transparent);
    bottom: -2px;
    left: 0;
    opacity: 0.7;
}
.section-title { font-family: 'Cinzel', serif; font-size: 1.8rem; color: white; margin: 0; }
.section-title span { color: var(--gold-main); }

/* Form Elements */
.form-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.input-field, .form-input {
    width: 100%; background: var(--bg-input); border: 1px solid var(--border-highlight);
    border-radius: var(--radius-sm); padding: 12px 16px; color: white; font-size: 1rem; outline: none; transition: 0.3s;
}
.input-field:hover, .form-input:hover { border-color: rgba(238, 187, 77, 0.4); }
.input-field:focus, .form-input:focus { border-color: var(--gold-main); box-shadow: inset 0 0 10px rgba(238, 187, 77, 0.1); }
.input-group { margin-bottom: 20px; }
.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

/* Login/Setup */
.split-container { display: grid; grid-template-columns: 1.2fr 1fr; height: 100vh; }
.art-side {
    position: relative; background: url('../images/hytalelogin.png') center/cover no-repeat;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 60px;
}
.art-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(5,7,10,0.3), rgba(5,7,10,0.95)); mix-blend-mode: multiply; }
.art-content { position: relative; z-index: 2; max-width: 600px; }
.art-quote { font-family: 'Cinzel', serif; font-size: 2.5rem; line-height: 1.2; margin-bottom: 20px; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }
.form-side { background: var(--bg-core); display: flex; align-items: center; justify-content: center; position: relative; padding: 40px; }
.login-box {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 10;
    background: var(--bg-panel);
    border: 1px solid var(--border-highlight);
    border-radius: 10px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.login-box .logo-header {
    margin-bottom: 28px;
}

.login-box .btn {
    width: 100%;
}
.logo-header { text-align: center; margin-bottom: 40px; }
.logo-header h1 { font-family: 'Cinzel', serif; font-size: 2rem; color: white; text-shadow: 0 0 15px var(--gold-glow); }
.logo-header span { color: var(--gold-main); }
.logo-header p { color: var(--text-muted); margin-top: 5px; font-size: 0.95rem; }

/* Alerts */
.alert {
    padding: 15px; border-radius: 6px; margin-bottom: 20px; border-left: 4px solid;
    background: linear-gradient(120deg, rgba(255,255,255,0.04), rgba(0,0,0,0.2));
    box-shadow: var(--shadow-hard);
}
.alert-success { background: rgba(46, 204, 113, 0.1); border-color: var(--success); color: var(--success); }
.alert-error { background: rgba(231, 76, 60, 0.1); border-color: var(--error); color: var(--error); }
.alert-info { background: rgba(52, 152, 219, 0.1); border-color: var(--info); color: var(--info); }

/* Showcase Box */
.showcase-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 30px;
    background-image: var(--surface-gradient);
    box-shadow: var(--shadow-soft);
}

/* Server List */
.server-list { display: flex; flex-direction: column; gap: 15px; }
.server-row {
    background: var(--bg-panel); border: 1px solid var(--border-highlight); border-radius: 8px;
    padding: 15px 20px; display: flex; align-items: center; gap: 20px; transition: 0.2s;
    box-shadow: var(--shadow-soft);
    background-image: var(--surface-gradient);
}
.server-row:hover { border-color: var(--gold-main); background: rgba(15, 20, 30, 0.7); }
.server-info { flex: 1; }
.server-status { position: relative; }
.status-dot {
    display: block; width: 12px; height: 12px; border-radius: 50%;
    background: var(--text-muted); animation: pulse 2s infinite;
}
.server-status[data-status="online"] .status-dot { background: var(--success); }
.server-status[data-status="offline"] .status-dot { background: var(--error); animation: none; }
.server-status[data-status="starting"] .status-dot, .server-status[data-status="stopping"] .status-dot { background: #f39c12; }

.status-badge {
    display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.7rem;
    font-weight: bold; text-transform: uppercase; margin-left: 15px; letter-spacing: 0.08em;
}
.status-badge[data-status="online"] { background: rgba(46, 204, 113, 0.2); color: var(--success); }
.status-badge[data-status="offline"] { background: rgba(231, 76, 60, 0.2); color: var(--error); }
.status-badge[data-status="starting"], .status-badge[data-status="stopping"] { background: rgba(243, 156, 18, 0.2); color: #f39c12; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Console */
.console-container { background: var(--bg-panel); border: 1px solid var(--border-highlight); border-radius: 8px; overflow: hidden; height: calc(100vh - 200px); display: flex; flex-direction: column; }
.server-main .console-container {
    height: 60vh;
    min-height: 420px;
}
.console-output {
    flex: 1; overflow-y: auto; padding: 20px; background: #000; font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem; line-height: 1.5;
}
.console-line { color: #fff; padding: 2px 0; }
.console-line.error { color: var(--error); }
.console-line.system { color: var(--info); }
.console-line.command { color: var(--gold-main); }

.console-input-container { display: flex; border-top: 1px solid var(--border-highlight); }
.console-input {
    flex: 1; background: var(--bg-input); border: none; padding: 15px 20px; color: white;
    font-family: 'JetBrains Mono', monospace; font-size: 1rem; outline: none;
}

/* Modal */
.modal {
    display: none; position: fixed; inset: 0; background: rgba(5,7,10,0.95); z-index: 10000;
    align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.modal.active { display: flex; }
.modal-content {
    background: var(--bg-panel); border: 1px solid var(--border-highlight);
    padding: 30px; border-radius: var(--radius-md); max-width: 500px; width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.startup-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.startup-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid var(--outline-soft);
    overflow: hidden;
    margin-bottom: 10px;
}

.startup-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-main), var(--gold-light));
    transition: width 0.4s ease;
}

.startup-progress-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.startup-progress-text.error {
    color: var(--error);
}

.startup-step {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-highlight);
    background: rgba(10, 14, 20, 0.6);
}

.startup-step .step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.4);
    background: rgba(148, 163, 184, 0.1);
    margin-top: 4px;
}

.startup-step .step-title {
    font-weight: 700;
    color: white;
}

.startup-step .step-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.startup-step.active {
    border-color: rgba(238, 187, 77, 0.6);
    box-shadow: var(--shadow-soft);
}

.startup-step.active .step-dot {
    border-color: rgba(238, 187, 77, 0.6);
    background: radial-gradient(circle, rgba(238, 187, 77, 0.8), rgba(238, 187, 77, 0.2));
    animation: pulse 1.2s ease-in-out infinite;
}

.startup-step.done {
    border-color: rgba(46, 204, 113, 0.6);
}

.startup-step.done .step-dot {
    border-color: rgba(46, 204, 113, 0.8);
    background: rgba(46, 204, 113, 0.6);
}
.auth-info { margin: 20px 0; }

/* Auth Modal (Download Modal) */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 10, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.auth-modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--border-highlight);
    padding: 30px;
    border-radius: var(--radius-md);
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.server-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.server-sidebar {
    background: var(--bg-panel);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 20px;
    position: sticky;
    top: 90px;
    height: fit-content;
    box-shadow: var(--shadow-soft);
}

.server-sidebar-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-highlight);
}

.server-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    transition: 0.2s;
}

.server-nav-link:hover {
    border-color: var(--gold-main);
    color: white;
    background: rgba(238, 187, 77, 0.1);
}

.server-nav-link.active {
    border-color: rgba(238, 187, 77, 0.6);
    color: white;
    background: rgba(238, 187, 77, 0.12);
}

.sidebar-meta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-highlight);
    font-size: 0.9rem;
}

.meta-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta-value {
    color: white;
    font-size: 1.1rem;
    margin-top: 4px;
}

.server-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(120deg, rgba(238, 187, 77, 0.08), rgba(15, 20, 30, 0.9));
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.page-hero h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 6px;
}

.page-hero p {
    color: var(--text-muted);
    max-width: 520px;
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    border: 1px solid var(--border-highlight);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(5, 7, 10, 0.6);
}

.meta-chip strong {
    color: white;
}

.config-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.config-section h4 {
    margin-bottom: 12px;
    font-family: 'Cinzel', serif;
    color: white;
}

.config-section {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-highlight);
    background: rgba(10, 14, 20, 0.6);
    box-shadow: var(--shadow-soft);
}

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

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row label {
    color: var(--text-muted);
    font-weight: 600;
}

.form-textarea {
    min-height: 120px;
    font-family: 'JetBrains Mono', monospace;
}

.editor-panel {
    margin-top: 20px;
}

.editor-panel.hidden {
    display: none;
}

.hidden {
    display: none;
}

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

.editor-header p {
    color: var(--text-muted);
    margin-top: 4px;
}

.editor-shell {
    min-height: 640px;
    height: 70vh;
    border: 1px solid var(--border-highlight);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.editor-shell .jsoneditor,
.editor-shell .jsoneditor-outer,
.editor-shell .jsoneditor-frame {
    height: 100%;
}

.editor-shell .jsoneditor {
    min-height: 640px;
}

.editor-shell .ace_editor {
    min-height: 600px;
}

.editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 18px;
    position: sticky;
    top: 86px;
    z-index: 5;
    background: linear-gradient(180deg, rgba(5, 7, 10, 0.98), rgba(5, 7, 10, 0.6));
    backdrop-filter: blur(6px);
}

.inline-status {
    font-weight: 600;
    color: var(--text-subtle);
}

.inline-status.dirty {
    color: var(--accent-orange);
}

.inline-status.saved {
    color: var(--success);
}

.toggle-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.toggle-switch {
    appearance: none;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid var(--outline-soft);
    position: relative;
    cursor: pointer;
    transition: 0.2s;
}

.toggle-switch::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-white);
    top: 2px;
    left: 2px;
    transition: 0.2s;
}

.toggle-switch:checked {
    background: rgba(46, 204, 113, 0.3);
    border-color: rgba(46, 204, 113, 0.6);
}

.toggle-switch:checked::after {
    left: 22px;
    background: var(--success);
}

.file-description {
    margin: 10px 0 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.btn-small {
    height: 38px;
    padding: 0 18px;
    font-size: 0.75rem;
}

.unsaved-popup {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: var(--bg-panel);
    border: 1px solid rgba(238, 187, 77, 0.6);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.2s;
    z-index: 1000;
}

.unsaved-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.unsaved-title {
    font-weight: 700;
    color: white;
}

.unsaved-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.save-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: var(--success);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    z-index: 1000;
}

.save-toast.error {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.4);
    color: var(--error);
}

.save-toast.visible {
    opacity: 1;
}

/* Backup page */
.backup-option-list {
    display: grid;
    gap: 12px;
}
.backup-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-highlight);
    background: rgba(15, 23, 42, 0.35);
    cursor: pointer;
}
.backup-option input[type="radio"] {
    margin-top: 4px;
}
.backup-worlds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.backup-world {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-highlight);
    background: rgba(15, 23, 42, 0.35);
}
.backup-schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.backup-schedule-fields {
    display: grid;
    grid-template-columns: 120px 160px;
    gap: 12px;
}
.backup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer {
    margin-top: 40px;
    padding: 24px 20px 36px;
    border-top: 1px solid var(--border-highlight);
    background: rgba(5, 7, 10, 0.6);
    text-align: center;
}
.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.site-footer a {
    color: var(--gold-main);
    text-decoration: none;
    font-weight: 600;
}
.site-footer a:hover {
    text-decoration: underline;
}
.site-footer .footer-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.jsoneditor {
    border: none;
    background: #0b0e14;
    color: var(--text-white);
}

.jsoneditor-menu {
    background: #111827;
    border-bottom: 1px solid var(--border-highlight);
}

.jsoneditor-navigation-bar {
    background: #0b0e14;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-highlight);
}

.jsoneditor-statusbar {
    background: #0b0e14;
    border-top: 1px solid var(--border-highlight);
    color: var(--text-muted);
}

.jsoneditor .ace-jsoneditor .ace_gutter {
    background: #0b0e14;
    color: var(--text-muted);
}

.jsoneditor .ace-jsoneditor {
    background: #0b0e14;
    color: var(--text-white);
}

.jsoneditor .jsoneditor-frame {
    border-color: var(--border-highlight);
}

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

.stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    background-image: var(--surface-gradient);
    box-shadow: var(--shadow-soft);
}

.stat-card h4 {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.stat-card strong {
    font-size: 1.4rem;
    color: white;
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(238, 187, 77, 0.5), transparent);
    margin: 16px 0;
}

.showcase-box,
.server-row,
.page-hero,
.console-container {
    animation: fadeUp 0.4s ease both;
}

.mods-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

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

.mod-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--border-highlight);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mod-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mod-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(238, 187, 77, 0.1);
    border: 1px solid rgba(238, 187, 77, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gold-main);
    overflow: hidden;
}

.mod-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mod-title {
    font-weight: 700;
    color: white;
}

.mod-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mod-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    min-height: 48px;
}

.mod-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mod-actions {
    display: flex;
    justify-content: flex-end;
}

.mods-empty {
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed var(--border-highlight);
    padding: 30px;
    border-radius: 12px;
    color: var(--text-muted);
    text-align: center;
}

.mods-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

.mod-modal {
    max-width: 760px;
    width: 100%;
}

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

.mod-modal-body {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
}

.mod-modal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mod-file-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
}

.mod-file-row input {
    transform: scale(1.05);
}

.mod-file-match {
    border-color: rgba(46, 204, 113, 0.6);
    box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.3);
}

.mod-file-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mod-file-title {
    font-weight: 600;
    color: white;
}

.mod-file-meta,
.mod-file-versions {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mod-file-badge {
    font-size: 0.75rem;
    color: var(--gold-main);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mod-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.mods-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mod-installed-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-highlight);
    background: rgba(15, 23, 42, 0.55);
}

.mod-installed-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

@media (max-width: 900px) {
    .split-container { grid-template-columns: 1fr; }
    .art-side { display: none; }
    .server-layout {
        grid-template-columns: 1fr;
    }
    .server-sidebar {
        position: static;
    }
    .page-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .unsaved-popup {
        right: 20px;
        left: 20px;
        bottom: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .server-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .server-row > div:last-child {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .nav-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    .main-nav .nav-inner {
        height: auto;
        padding: 12px 16px;
    }
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        display: none;
        padding: 10px 0 4px;
        gap: 12px;
    }
    .nav-links.is-open {
        display: flex;
    }
    .nav-center,
    .nav-right {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-item,
    .nav-action {
        width: 100%;
        justify-content: space-between;
    }
    .nav-server {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-server-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .nav-server-actions .btn {
        flex: 1;
    }
    .nav-menu {
        position: static;
        width: 100%;
    }
    .mods-toolbar {
        grid-template-columns: 1fr;
    }
    .mods-grid {
        grid-template-columns: 1fr;
    }
    .mod-installed-row {
        grid-template-columns: 1fr;
    }
    .mod-file-row {
        grid-template-columns: auto 1fr;
    }
    .mod-file-badge {
        grid-column: 1 / -1;
    }
}

/* Player Editor */
.mode-toggle {
    display: inline-flex;
    gap: 10px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mode-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}

.mode-btn.active {
    background: linear-gradient(180deg, rgba(238, 187, 77, 0.9), rgba(184, 138, 45, 0.95));
    color: #2b1d00;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

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

.player-editor-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.player-pagination {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.page-count {
    color: var(--text-muted);
    font-weight: 600;
}

.player-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 16px;
}

.player-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-soft);
}

.player-card.active {
    border-color: rgba(238, 187, 77, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.player-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.player-card-uuid {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.player-card-meta {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.player-card-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.empty-state {
    padding: 24px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    text-align: center;
}

.player-detail {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.player-detail-row {
    grid-column: 1 / -1;
}

.player-detail-row .player-detail {
    border-top: none;
    padding-top: 0;
}

.player-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.player-detail-uuid {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    margin-top: 6px;
}

.player-detail-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.inventory-shell {
    margin-top: 18px;
    background: #141a24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
    overflow-x: auto;
}

.inventory-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.inventory-head h4 {
    font-size: 1.1rem;
    color: white;
}

.inventory-head p {
    color: var(--text-muted);
    margin-top: 4px;
}

.inventory-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.inventory-layout {
    display: grid;
    grid-template-columns: minmax(140px, 180px) 1fr;
    gap: 20px;
}

.inventory-left,
.inventory-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.inventory-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inventory-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 1), 64px);
    gap: 6px;
}

.inventory-slot {
    width: 64px;
    height: 64px;
    background: #1b2431;
    border: 2px solid #2b3647;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s;
}

.inventory-slot.drag-over {
    border-color: rgba(90, 170, 255, 0.8);
    background: rgba(90, 170, 255, 0.12);
}

.inventory-slot.active-slot {
    border-color: #e6c673;
    box-shadow: 0 0 0 2px rgba(230, 198, 115, 0.3);
}

.slot-hotkey {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
}

.slot-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.inventory-item {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: grab;
}

.inventory-item.dragging {
    opacity: 0.3;
}

.inventory-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.inventory-item-img.loading {
    opacity: 0.4;
    filter: grayscale(1);
    transform: scale(0.8);
}

.inventory-count {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.inventory-durability {
    position: absolute;
    bottom: 5px;
    left: 8px;
    width: calc(100% - 16px);
    height: 4px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 999px;
    overflow: hidden;
}

.inventory-durability-fill {
    height: 100%;
    background: linear-gradient(90deg, #5abf41, #8ae05a);
}

.inventory-durability-fill.low {
    background: linear-gradient(90deg, #d63031, #ff7675);
}

.inventory-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(180, 40, 40, 0.9);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

    .inventory-layout {
        grid-template-columns: 1fr;
    }

    .inventory-grid {
        grid-template-columns: repeat(var(--columns, 1), 56px);
    }

    .inventory-slot {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 720px) {
    .mode-toggle {
        width: 100%;
        justify-content: center;
    }

    .player-detail-header {
        align-items: flex-start;
    }

    .player-detail-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.utility-radial {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.utility-center {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid rgba(92, 124, 250, 0.6);
    color: rgba(92, 124, 250, 0.9);
    font-weight: 800;
    font-size: 1.2rem;
    background: rgba(15, 23, 42, 0.6);
}

.utility-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(92, 124, 250, 0.4);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
    transition: 0.2s;
}

.utility-radial:hover .utility-ring,
.utility-ring:hover,
.utility-radial.force-open .utility-ring {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.utility-ring .radial-slot {
    position: absolute;
    width: 56px;
    height: 56px;
}

.utility-ring .pos-top { top: 10px; left: 50%; transform: translateX(-50%); }
.utility-ring .pos-right { top: 50%; right: 10px; transform: translateY(-50%); }
.utility-ring .pos-bottom { bottom: 10px; left: 50%; transform: translateX(-50%); }
.utility-ring .pos-left { top: 50%; left: 10px; transform: translateY(-50%); }

.inventory-slot.split-target {
    border-color: rgba(90, 170, 255, 0.8);
    background: rgba(90, 170, 255, 0.12);
}

.inventory-split {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(90, 170, 255, 0.9);
    color: #0f141d;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 10, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.modal-overlay.hidden {
    display: none;
}

.modal-panel {
    background: #151c27;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    width: min(420px, 92vw);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-body {
    display: grid;
    gap: 10px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.custom-select {
    position: relative;
}

.custom-select-trigger {
    text-align: left;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.7);
}

.custom-select-trigger .option-title {
    font-weight: 700;
    color: white;
}

.custom-select-trigger .option-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #121822;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px;
    display: grid;
    gap: 4px;
    z-index: 20;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.custom-select-menu.hidden {
    display: none;
}

.custom-select-search {
    margin-bottom: 6px;
}

.custom-select-option {
    border: none;
    text-align: left;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    display: grid;
    gap: 4px;
    cursor: pointer;
    color: white;
}

.custom-select-option.hidden {
    display: none;
}

.custom-select-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.custom-select-option .option-title {
    font-weight: 600;
    color: white;
}

.custom-select-option .option-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

body[data-players-mode="json"] #playerEditorSection {
    display: none;
}

body[data-players-mode="player"] #jsonEditorPage {
    display: none;
}

#playerEditorSection.hidden,
#jsonEditorPage.hidden {
    display: none;
}

.censor-on .censor-target {
    filter: blur(6px);
    user-select: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.stat-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(238, 187, 77, 0.12);
    color: var(--gold-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.stat-name {
    font-weight: 700;
    color: white;
}

.stat-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stat-controls {
    display: grid;
    grid-template-columns: 1fr 70px;
    gap: 8px;
    align-items: center;
}

.stat-controls input[type="number"] {
    width: 70px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    border-radius: 8px;
    padding: 6px 8px;
}

.stat-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(238, 187, 77, 0.9), rgba(52, 152, 219, 0.8));
}

.player-data-panels {
    margin-top: 24px;
    display: grid;
    gap: 20px;
}

.data-panel {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
}

.data-panel-header h4 {
    color: white;
    font-size: 1.1rem;
}

.data-panel-header p {
    color: var(--text-muted);
    margin-top: 4px;
}

.world-grid {
    margin-top: 16px;
    display: grid;
    gap: 16px;
}

.world-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    background: rgba(20, 27, 38, 0.9);
    display: grid;
    gap: 12px;
}

.world-title {
    font-weight: 700;
    color: white;
}

.world-toggles {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 600;
}

.world-position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.world-input {
    display: grid;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.world-input input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    border-radius: 8px;
    padding: 6px 8px;
}

.death-list {
    display: grid;
    gap: 8px;
}

.death-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
}

.death-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 960px) {
    .utility-radial {
        width: 150px;
        height: 150px;
    }
    .utility-ring .radial-slot {
        width: 48px;
        height: 48px;
    }
}
