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

body {
    font-family: "Consolas", "JetBrains Mono", monospace;
    background: #0c0c0c;
    color: #d4d4d4;
    min-height: 100vh;
}

/* HEADER */
header {
    background: #141414;
    border-bottom: 2px solid #cd412b;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(205, 65, 43, 0.2);
}

.logo {
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 4px;
    color: #e8833a;
    text-shadow: 0 0 12px rgba(205, 65, 43, 0.6);
}

.logo span {
    color: #cd412b;
}

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

nav a {
    color: #b8b8b8;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.15s;
    letter-spacing: 1px;
    font-size: 13px;
}

nav a:hover { color: #e8833a; background: #1c1c1c; }

nav a.active {
    color: #e8833a;
    background: #1c1c1c;
    border-bottom: 2px solid #cd412b;
}

nav a.logout { color: #a05050; }
nav a.logout:hover { color: #cd412b; }

/* MAIN */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 30px;
}

h1.form-title {
    font-size: 22px;
    color: #e8833a;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* FLASH */
.flash {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
    font-size: 14px;
}
.flash-success { background: #1a2e1a; border-color: #7ba85c; color: #b8d8a0; }
.flash-error   { background: #2e1a1a; border-color: #cd412b; color: #e8a0a0; }

/* STATS */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.stat-num {
    font-size: 36px;
    font-weight: 900;
    color: #e8833a;
    text-shadow: 0 0 16px rgba(205, 65, 43, 0.5);
}

.stat-label {
    font-size: 12px;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

thead {
    background: #1c1c1c;
    border-bottom: 2px solid #cd412b;
}

th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e8833a;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid #1c1c1c;
    font-size: 13px;
}

tr:hover td { background: #1a1a1a; }

td.dim { color: #666; font-size: 12px; }

code {
    background: #1c1c1c;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #7ba85c;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    letter-spacing: 1px;
}

.badge-file { background: #1a2e1a; color: #7ba85c; }
.badge-url  { background: #2e2a1a; color: #e8c14a; }

/* ACTIONS */
.actions { white-space: nowrap; }

.btn {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #b8b8b8;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
    margin-right: 4px;
}

.btn:hover {
    background: #232323;
    border-color: #cd412b;
    color: #e8833a;
}

.btn-delete:hover {
    background: #2e1a1a;
    border-color: #cd412b;
    color: #e84a4a;
}

.btn-notify:hover {
    background: #1a2e1a;
    border-color: #7ba85c;
    color: #7ba85c;
}

/* GAME SECTION */
.game-section { margin-bottom: 30px; }

.game-section h2 {
    font-size: 18px;
    color: #e8833a;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.count {
    color: #808080;
    font-size: 14px;
    font-weight: normal;
}

/* EMPTY */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #808080;
}

.empty p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* FORM */
.cheat-form {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
}

.row {
    margin-bottom: 20px;
}

.row label {
    display: block;
    font-size: 12px;
    color: #e8833a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.row input[type="text"],
.row input[type="file"],
.row select,
.row textarea {
    width: 100%;
    padding: 10px 12px;
    background: #0c0c0c;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #d4d4d4;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}

.row input:focus,
.row select:focus,
.row textarea:focus {
    border-color: #cd412b;
    box-shadow: 0 0 8px rgba(205, 65, 43, 0.4);
}

.row textarea { resize: vertical; }

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn-primary {
    background: #cd412b;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    display: inline-block;
}

.btn-primary:hover {
    background: #e8833a;
    box-shadow: 0 0 16px rgba(232, 131, 58, 0.6);
}

.btn-secondary {
    background: #1c1c1c;
    color: #b8b8b8;
    border: 1px solid #2a2a2a;
    padding: 12px 28px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-secondary:hover {
    background: #232323;
    color: #fff;
}

/* LOGIN */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #1a0a0a 0%, #0c0c0c 70%);
}

.login-box {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 50px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow:
        0 0 60px rgba(205, 65, 43, 0.25),
        0 20px 60px rgba(0, 0, 0, 0.8);
}

.login-box h1 {
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 6px;
    color: #e8833a;
    text-align: center;
    text-shadow: 0 0 20px rgba(205, 65, 43, 0.8);
    margin-bottom: 8px;
}

.login-box h1 span { color: #cd412b; }

.subtitle {
    text-align: center;
    color: #808080;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.login-box input {
    width: 100%;
    padding: 14px 16px;
    background: #0c0c0c;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #d4d4d4;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 2px;
    outline: none;
    margin-bottom: 16px;
    transition: all 0.15s;
}

.login-box input:focus {
    border-color: #cd412b;
    box-shadow: 0 0 16px rgba(205, 65, 43, 0.5);
}

.login-box button {
    width: 100%;
    padding: 14px;
    background: #cd412b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

.login-box button:hover {
    background: #e8833a;
    box-shadow: 0 0 24px rgba(232, 131, 58, 0.7);
}
