.admin-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 132px 0 56px;
}

.admin-hero {
    margin-bottom: 28px;
}

.admin-hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.96;
}

.admin-status {
    margin: 16px 0 0;
    color: var(--muted-strong);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.admin-stat,
.admin-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(11, 15, 24, 0.78);
    backdrop-filter: blur(14px);
}

.admin-stat {
    padding: 18px;
}

.admin-stat span,
.admin-form span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
}

.admin-card {
    margin-top: 14px;
    padding: 22px;
}

.admin-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-card h2 {
    margin: 0;
    font-size: 28px;
}

.admin-form,
.admin-search {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

.admin-form label {
    display: grid;
    gap: 7px;
    min-width: 150px;
    flex: 1;
}

.admin-form input,
.admin-search input {
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
}

.admin-form input:focus,
.admin-search input:focus {
    border-color: var(--border-strong);
}

.admin-search input {
    width: min(300px, 100%);
}

.generated-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.generated-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(124, 240, 183, 0.22);
    border-radius: 6px;
    background: rgba(124, 240, 183, 0.06);
    color: var(--mint);
    font-family: "Cascadia Code", Consolas, monospace;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table.compact {
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(204, 214, 229, 0.1);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-table td {
    color: var(--muted-strong);
}

.admin-table strong {
    display: block;
    color: var(--text);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-mini-button {
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    cursor: pointer;
}

.admin-mini-button:hover {
    border-color: var(--border-strong);
}

.admin-danger-button {
    border-color: rgba(255, 111, 138, 0.32);
    color: #ffc8d2;
}

.admin-danger-button:hover {
    border-color: rgba(255, 111, 138, 0.72);
    background: rgba(255, 111, 138, 0.1);
}

.invite-code {
    font-family: "Cascadia Code", Consolas, monospace;
    color: var(--mint);
    white-space: nowrap;
}

.muted {
    color: var(--muted);
}

@media (max-width: 920px) {
    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .admin-shell {
        width: min(100% - 28px, 1180px);
        padding-top: 112px;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-card-header,
    .admin-form,
    .admin-search,
    .generated-code {
        align-items: stretch;
        flex-direction: column;
    }

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