@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #151515;
    color: #f6f2df;
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
}

.admin-shell {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 22px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    border-bottom: 4px solid #f6c945;
    padding-bottom: 18px;
}

h1 {
    margin: 0;
    color: #39ff14;
    font-family: 'Press Start 2P', 'Microsoft JhengHei', system-ui, sans-serif;
    font-size: 28px;
    line-height: 1.5;
    text-shadow: 3px 3px 0 #000;
}

[hidden] {
    display: none !important;
}

.admin-subtitle {
    margin: 8px 0 0;
    color: #ffd60a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button,
.admin-link {
    border: 3px solid #0b0b12;
    background: #ffd60a;
    color: #141414;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 3px 3px 0 #0b0b12;
}

button.secondary,
.admin-link.secondary {
    background: #00f0ff;
}

button.danger {
    background: #ff4d6d;
    color: #fff;
}

button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.tab.active {
    background: #39ff14;
}

.panel {
    display: none;
}

.panel.active {
    display: grid;
    gap: 14px;
}

.toolbar,
.form-grid,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

.quota-controls {
    display: grid;
    grid-template-columns: 86px 120px auto;
    gap: 8px;
    align-items: center;
}

.quota-controls input,
.quota-controls select {
    min-height: 42px;
    width: 100%;
}

.box {
    border: 3px solid #4a4a68;
    background: #201f2a;
    padding: 16px;
}

.box-title {
    margin: 0 0 14px;
    color: #bffcff;
    font-size: 18px;
    line-height: 1.5;
}

label {
    display: grid;
    gap: 6px;
    color: #bffcff;
    font-size: 14px;
    font-weight: 700;
}

input,
select {
    min-height: 40px;
    border: 3px solid #4a4a68;
    background: #0e0e16;
    color: #fffbea;
    font: inherit;
    font-size: 14px;
    padding: 9px 10px;
}

input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #201f2a;
    border: 3px solid #4a4a68;
}

th,
td {
    border-bottom: 2px solid #34344c;
    padding: 12px;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    vertical-align: middle;
}

th {
    color: #ffd60a;
    background: #12121d;
}

.status-enabled {
    color: #39ff14;
}

.status-banned,
.used {
    color: #ff6b8a;
}

.notice {
    min-height: 22px;
    color: #ff6b8a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.notice.ok {
    color: #39ff14;
}

.table-wrap {
    overflow-x: auto;
}

.console-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.metric-label {
    color: #bffcff;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
}

.metric-value,
.metric-big {
    margin: 0 0 12px;
    color: #ffd60a;
    font-size: 16px;
    line-height: 1.7;
}

.metric-big {
    color: #39ff14;
    font-size: 28px;
}

@media (max-width: 820px) {
    .admin-shell {
        padding: 14px;
    }

    .admin-header {
        display: grid;
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .console-cards {
        grid-template-columns: 1fr;
    }

    .quota-controls {
        grid-template-columns: 1fr;
    }
}
