:root {
    --bg: #080c14;
    --card: rgba(255, 255, 255, 0.04);
    --panel: rgba(255, 255, 255, 0.08);
    --text: #e7edf7;
    --muted: #9fb1ce;
    --accent: #69e7cf;
    --accent-strong: #5ad1b9;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at 20% 20%, rgba(105, 231, 207, 0.12), transparent 25%),
                radial-gradient(circle at 80% 0%, rgba(111, 129, 255, 0.12), transparent 22%),
                var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 18px 44px;
    display: grid;
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.list-card {
    margin-bottom: 30px;
}

.card__header h1,
.card__header h2 {
    margin: 4px 0 6px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card__header .subhead {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--accent);
    margin: 0;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text);
}

.field span {
    color: var(--muted);
    font-size: 0.85rem;
}

.field input,
.field textarea {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 12px;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s ease, transform 0.1s ease;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.fieldset {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fieldset__title {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

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

.options.inline {
    flex-wrap: wrap;
}

.option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.1s ease, background 0.15s ease;
    user-select: none;
}

.option:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.option input {
    accent-color: var(--accent);
}

.conditional {
    display: none;
}

.conditional.active {
    display: flex;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-top: 4px;
}

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

.btn {
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    color: #0a0d12;
    background: #e9eef5;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #0b1413;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn.ghost {
    background: transparent;
    color: var(--muted);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.status {
    min-height: 20px;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.list-item {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 12px;
    display: grid;
    gap: 4px;
}

.list-item__row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(105, 231, 207, 0.16);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}

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

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 0.95rem;
}

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

.table th,
.table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table th {
    text-align: left;
    color: var(--muted);
    font-weight: 600;
}

.table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 720px) {
    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .card {
        padding: 18px 14px;
    }
    .actions {
        width: 100%;
    }
    .actions__secondary {
        width: 100%;
        justify-content: space-between;
    }
    .btn {
        flex: 1;
        text-align: center;
    }
    .admin-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        width: 100%;
        gap: 8px;
    }
    .admin-actions .btn {
        width: 100%;
    }
}
