@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fredoka+One&family=Press+Start+2P&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: #e8e0f0;
    background: #181528;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated gradient orbs background */

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 600px 400px at 15% 25%, rgba(120, 200, 80, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 500px 500px at 85% 15%, rgba(180, 140, 100, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 400px 600px at 50% 80%, rgba(100, 160, 220, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 300px 300px at 70% 60%, rgba(160, 120, 200, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 500px 300px at 30% 70%, rgba(100, 200, 180, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: drift 30s ease-in-out infinite alternate;
}

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(5%, -3%) rotate(2deg) scale(1.02); }
    50% { transform: translate(-3%, 5%) rotate(-1deg) scale(0.98); }
    75% { transform: translate(4%, 2%) rotate(3deg) scale(1.01); }
    100% { transform: translate(-2%, -4%) rotate(-2deg) scale(0.99); }
}

/* Floating particles */

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(120, 200, 80, 0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 30% 60%, rgba(180, 140, 255, 0.2) 0%, transparent 100%),
        radial-gradient(2px 2px at 50% 10%, rgba(255, 200, 100, 0.25) 0%, transparent 100%),
        radial-gradient(2px 2px at 70% 40%, rgba(100, 180, 220, 0.2) 0%, transparent 100%),
        radial-gradient(2px 2px at 90% 80%, rgba(160, 120, 200, 0.15) 0%, transparent 100%),
        radial-gradient(2px 2px at 15% 85%, rgba(139, 107, 63, 0.15) 0%, transparent 100%),
        radial-gradient(2px 2px at 60% 90%, rgba(100, 200, 255, 0.15) 0%, transparent 100%),
        radial-gradient(2px 2px at 80% 25%, rgba(120, 200, 80, 0.2) 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 45%, rgba(255, 200, 100, 0.15) 0%, transparent 100%),
        radial-gradient(2px 2px at 25% 35%, rgba(100, 200, 255, 0.2) 0%, transparent 100%),
        radial-gradient(3px 3px at 5% 50%, rgba(120, 200, 80, 0.15) 0%, transparent 100%),
        radial-gradient(3px 3px at 95% 50%, rgba(139, 107, 63, 0.12) 0%, transparent 100%),
        radial-gradient(3px 3px at 45% 75%, rgba(100, 200, 255, 0.12) 0%, transparent 100%),
        radial-gradient(2px 2px at 65% 15%, rgba(180, 140, 255, 0.18) 0%, transparent 100%),
        radial-gradient(2px 2px at 35% 5%, rgba(120, 200, 80, 0.12) 0%, transparent 100%);
    background-size: 200% 200%;
    pointer-events: none;
    z-index: 0;
    animation: floatParticles 25s ease-in-out infinite alternate;
}

@keyframes floatParticles {
    0% { background-position: 0% 0%; opacity: 0.3; }
    33% { background-position: 10% -10%; opacity: 0.5; }
    66% { background-position: -8% 8%; opacity: 0.4; }
    100% { background-position: 5% -5%; opacity: 0.5; }
}

.container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

header {
    background: rgba(24, 21, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    text-align: center;
    padding: 2.5rem 0 1.8rem;
    position: relative;
    z-index: 100;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(120, 200, 80, 0.4), rgba(139, 107, 63, 0.4), transparent);
}

header h1 {
    font-family: 'Press Start 2P', 'Inter', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #7bbc5b 0%, #8b6b3f 50%, #6a7c8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

header p {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

header nav {
    margin-top: 1.4rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

header nav a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
}

header nav a:hover,
header nav a.active {
    background: rgba(120, 200, 80, 0.12);
    border-color: rgba(120, 200, 80, 0.2);
    color: #a8e080;
    transform: translateY(-1px);
}

header nav a.active {
    background: rgba(120, 200, 80, 0.15);
    border-color: rgba(120, 200, 80, 0.25);
}

.nav-left {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.nav-right {
    margin-left: auto;
}

/* Dropdown */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.dropbtn:hover,
.dropbtn.active {
    background: rgba(120, 200, 80, 0.12);
    border-color: rgba(120, 200, 80, 0.2);
    color: #a8e080;
    transform: translateY(-1px);
}

.dropbtn.active {
    background: rgba(120, 200, 80, 0.15);
    border-color: rgba(120, 200, 80, 0.25);
}

.caret {
    font-size: 0.6rem;
    opacity: 0.6;
    transition: transform 0.2s;
}

.dropdown:hover .caret {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: rgba(30, 26, 46, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.2s, opacity 0.15s ease;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover,
.dropdown-content:focus-within {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s 0s, opacity 0.15s ease;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    transform: none;
}

.dropdown-content a:hover,
.dropdown-content a.active {
    background: rgba(120, 200, 80, 0.1);
    color: #a8e080;
}

.dropdown-login {
    min-width: 240px;
}

.dropdown-login form {
    padding: 0.5rem;
}

.dropdown-login input {
    width: 100%;
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.dropdown-login input:focus {
    border-color: rgba(120, 200, 80, 0.3);
}

.dropdown-login button[type="submit"] {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(120, 200, 80, 0.2), rgba(100, 160, 60, 0.15));
    color: #a8e080;
    border: 1px solid rgba(120, 200, 80, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
}

.dropdown-login button[type="submit"]:hover {
    background: linear-gradient(135deg, rgba(120, 200, 80, 0.3), rgba(100, 160, 60, 0.25));
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.3rem 0;
}

.dropdown-register {
    text-align: center;
    font-weight: 700 !important;
    color: #a8e080 !important;
    padding: 0.6rem 0.9rem !important;
}

main {
    padding: 3rem 0;
}

section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 1.5rem;
    padding: 2.5rem;
    border-radius: 14px;
    border: 1px solid rgba(120, 200, 80, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

section:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

h2 {
    font-family: 'Fredoka One', 'Inter', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #e0f0d8;
    letter-spacing: -0.3px;
}

h3 {
    font-family: 'Fredoka One', 'Inter', sans-serif;
    font-size: 1.15rem;
    margin: 1.5rem 0 1rem;
    color: #e0f0d8;
}

p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

a {
    color: #8fc86a;
    transition: color 0.2s ease;
}

a:hover {
    color: #a8e080;
}

ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

input, textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    outline: none;
    transition: all 0.25s ease;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input:focus, textarea:focus {
    border-color: rgba(120, 200, 80, 0.4);
    box-shadow: 0 0 0 4px rgba(120, 200, 80, 0.08);
    background: rgba(255, 255, 255, 0.08);
}

button, .btn-primary {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.7rem 1.8rem;
    background: linear-gradient(135deg, rgba(120, 200, 80, 0.2), rgba(100, 160, 60, 0.15));
    color: #a8e080;
    border: 1px solid rgba(120, 200, 80, 0.2);
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

button:hover, .btn-primary:hover {
    background: linear-gradient(135deg, rgba(120, 200, 80, 0.3), rgba(100, 160, 60, 0.25));
    border-color: rgba(120, 200, 80, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(80, 160, 40, 0.15);
}

button:active, .btn-primary:active {
    transform: translateY(0);
}

.btn-copy {
    background: linear-gradient(135deg, rgba(100, 180, 255, 0.15), rgba(60, 140, 220, 0.1));
    border-color: rgba(100, 180, 255, 0.15);
    color: #90c8f8;
    font-size: 0.75rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
}

.btn-copy:hover {
    background: linear-gradient(135deg, rgba(100, 180, 255, 0.25), rgba(60, 140, 220, 0.2));
    border-color: rgba(100, 180, 255, 0.3);
    box-shadow: 0 8px 24px rgba(60, 140, 220, 0.12);
}

.discord-button {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.7rem 1.8rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(71, 82, 196, 0.15));
    color: #a8b4ff;
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
}

.discord-button:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(71, 82, 196, 0.25));
    border-color: rgba(88, 101, 242, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(71, 82, 196, 0.12);
}

footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.alert {
    padding: 0.85rem 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid;
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    border-color: rgba(220, 38, 38, 0.15);
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.12);
}

.alert-locked {
    background: rgba(250, 204, 21, 0.08);
    color: #fde68a;
    border-color: rgba(250, 204, 21, 0.15);
    text-align: center;
}

.alert-locked strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.form-footer {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.form-footer a {
    color: #8fc86a;
    font-weight: 700;
    text-decoration: none;
}

.form-footer a:hover {
    color: #a8e080;
    text-decoration: underline;
}

.profile-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.profile-info strong {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.inline-form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.inline-form .form-group {
    flex: 1;
    min-width: 220px;
    margin-bottom: 0;
}

.invite-section {
    text-align: center;
}

.invite-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.invite-code {
    font-family: 'Press Start 2P', 'Inter', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: #a8e080;
    background: rgba(24, 21, 40, 0.6);
    padding: 1rem 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(120, 200, 80, 0.15);
    box-shadow: 0 0 40px rgba(120, 200, 80, 0.05);
    user-select: all;
}

.uses-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.uses-left {
    color: #86efac;
    font-weight: 700;
}

.uses-exhausted {
    color: #fca5a5;
    font-weight: 700;
}

.uses-unlimited {
    color: #a8e080;
    font-weight: 700;
}

/* Server Status */

#server-status {
    text-align: center;
}

#server-status h2 {
    text-align: left;
}

.status-loading {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
    padding: 1rem 0;
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot.offline {
    background: #f87171;
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.3);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(74, 222, 128, 0.4); }
    50% { opacity: 0.5; box-shadow: 0 0 20px rgba(74, 222, 128, 0.6); }
}

.status-label {
    font-family: 'Fredoka One', 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #f0e6ff;
}

.status-ip {
    font-family: 'Press Start 2P', 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #a8e080;
    background: rgba(120, 200, 80, 0.06);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(120, 200, 80, 0.08);
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.status-motd {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.status-error {
    font-size: 0.85rem;
    color: #fca5a5;
    margin-top: 0.5rem;
}

.status-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.stat {
    text-align: center;
    min-width: 100px;
}

.stat-value {
    display: block;
    font-family: 'Fredoka One', 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #f0e6ff;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.15rem;
}

.stat-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.player-list {
    margin-top: 0.5rem;
}

.player-list .stat-label {
    margin-bottom: 0.4rem;
}

.player-names {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.player-name {
    background: rgba(120, 200, 80, 0.08);
    color: #a8e080;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    border: 1px solid rgba(120, 200, 80, 0.06);
}

.player-name:hover {
    background: rgba(120, 200, 80, 0.14);
}

/* Admin */

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.admin-header h2 {
    margin-bottom: 0;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-form input {
    width: 240px;
}

.btn-clear {
    font-size: 0.8rem;
    color: rgba(120, 200, 80, 0.6);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-clear:hover {
    color: #a8e080;
    text-decoration: underline;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 800px;
}

.admin-table th {
    text-align: left;
    padding: 0.7rem 0.8rem;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.75);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.code-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: #8fc86a;
}

.used-code {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Courier New', monospace;
}

.date-cell {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell .inline-form {
    display: inline-flex;
    margin-right: 0.3rem;
}

.btn-small {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-role {
    background: rgba(120, 200, 80, 0.08);
    color: #8fc86a;
    border-color: rgba(120, 200, 80, 0.08);
}

.btn-role:hover {
    background: rgba(120, 200, 80, 0.16);
    border-color: rgba(120, 200, 80, 0.15);
}

.btn-danger {
    background: rgba(220, 38, 38, 0.08);
    color: #fca5a5;
    border-color: rgba(220, 38, 38, 0.08);
}

.btn-danger:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.12);
}

.role-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.role-admin {
    background: rgba(120, 200, 80, 0.12);
    color: #a8e080;
}

.status-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-ok {
    background: rgba(74, 222, 128, 0.1);
    color: #86efac;
}

.status-locked {
    background: rgba(250, 204, 21, 0.1);
    color: #fde68a;
}

.row-locked {
    opacity: 0.55;
}

.btn-lock {
    background: rgba(250, 204, 21, 0.08);
    color: #fde68a;
    border-color: rgba(250, 204, 21, 0.08);
}

.btn-lock:hover {
    background: rgba(250, 204, 21, 0.16);
    border-color: rgba(250, 204, 21, 0.12);
}

.btn-unlock {
    background: rgba(74, 222, 128, 0.08);
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.08);
}

.btn-unlock:hover {
    background: rgba(74, 222, 128, 0.16);
    border-color: rgba(74, 222, 128, 0.12);
}

.role-user {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.4);
}

.text-muted {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
    font-style: italic;
}

.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    padding: 2rem 0;
    font-size: 0.95rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-link {
    font-weight: 700;
    color: #8fc86a;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.page-link:hover {
    color: #a8e080;
    text-decoration: underline;
}

.page-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* CTA Section */

#register-cta {
    text-align: center;
}

#register-cta p {
    font-size: 1.05rem;
}

/* Responsive */

.blog-post {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 2rem;
}

.blog-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 0.5rem 0 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.post-author {
    font-weight: 600;
    color: #a8e080;
}

.post-date {
    color: rgba(255, 255, 255, 0.25);
}

.post-content {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    white-space: pre-wrap;
}

.post-image {
    display: block;
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    margin: 1rem 0;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.empty-blog {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-blog h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.empty-blog p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.05rem;
}

.badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-online {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
    border: 1px solid rgba(22, 163, 74, 0.3);
}

.badge-offline {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.admin-section {
    margin-top: 3rem;
}

.admin-section h2 {
    margin-bottom: 1.5rem;
}

.blog-form .form-group {
    margin-bottom: 1rem;
}

.blog-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8fc86a;
    margin-bottom: 0.4rem;
}

.blog-form input[type="text"],
.blog-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.blog-form input[type="text"]:focus,
.blog-form textarea:focus {
    border-color: rgba(120, 200, 80, 0.4);
}

.action-cell {
    white-space: nowrap;
}

.action-cell .inline-form {
    display: inline-flex;
    margin-right: 0.3rem;
}

.action-cell .btn-small {
    margin-right: 0.3rem;
}

/* Accordion / dropdown rules */

.accordion {
    margin: 1.5rem 0;
}

.accordion-item {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s;
}

.accordion-item:hover {
    border-color: rgba(120, 200, 80, 0.12);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.2rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.accordion-header:hover {
    color: #a8e080;
}

.accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(120, 200, 80, 0.1);
    color: rgba(120, 200, 80, 0.6);
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.accordion-item.open .accordion-icon {
    background: rgba(120, 200, 80, 0.2);
    color: #a8e080;
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.2rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.7;
}

.accordion-item.open .accordion-body {
    max-height: 500px;
    padding: 0 1.2rem 1.2rem;
}

.rules-intro {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

#rules,
#about {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#about p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

#about code {
    background: rgba(120, 200, 80, 0.1);
    padding: 0.15rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #a8e080;
}

#blog-posts h2 {
    margin-bottom: 1.5rem;
}

/* Player grid */

.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.player-card:hover {
    background: rgba(120, 200, 80, 0.05);
    border-color: rgba(120, 200, 80, 0.12);
    transform: translateY(-2px);
}

.player-head {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    image-rendering: pixelated;
    border: 2px solid rgba(255, 255, 255, 0.06);
}

.player-nick {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    word-break: break-all;
    max-width: 100%;
}

.player-card:hover .player-nick {
    color: #a8e080;
}

.player-card-admin {
    border-color: rgba(120, 200, 80, 0.15);
    background: rgba(120, 200, 80, 0.03);
}

.player-card-admin:hover {
    border-color: rgba(120, 200, 80, 0.3);
    background: rgba(120, 200, 80, 0.06);
}

.player-role-badge {
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: rgba(120, 200, 80, 0.15);
    color: #a8e080;
    border: 1px solid rgba(120, 200, 80, 0.2);
}

/* About page info grid */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s, border-color 0.2s;
}

.info-card:hover {
    background: rgba(120, 200, 80, 0.05);
    border-color: rgba(120, 200, 80, 0.12);
}

.info-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.info-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.3rem;
}

.info-value {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 0.85rem;
    }

    header nav a {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .dropbtn {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .dropdown-content {
        right: auto;
        left: 0;
        min-width: 180px;
    }

    .dropdown-login {
        min-width: 200px;
    }

    .container {
        padding: 0 20px;
    }

    main {
        padding: 1.5rem 0;
    }

    section {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .invite-code {
        font-size: 1.3rem;
        padding: 0.8rem 1.5rem;
    }

    .invite-code-box {
        flex-direction: column;
    }

    .inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-form .form-group {
        min-width: unset;
    }

    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        flex-wrap: wrap;
    }

    .search-form input {
        width: 100%;
    }
}
