.admin-tools-page { width: 100%; color: var(--premium-text-primary, #f8f7ff); }
.admin-tools-heading { margin-bottom: 1.25rem; }
.admin-tools-heading > span { color: #f59e0b; font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.admin-tools-heading h1 { margin: .15rem 0 .2rem; font-size: clamp(1.65rem, 4vw, 2.3rem); font-weight: 900; }
.admin-tools-heading p { margin: 0; color: var(--premium-text-secondary, #9992ad); font-size: .82rem; }
.admin-tools-card { margin-bottom: 1.2rem; overflow: hidden; border: 1px solid rgba(139, 92, 246, .28); border-radius: .8rem; background: rgba(5, 7, 30, .8); box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .15); }
.admin-tools-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid rgba(139, 92, 246, .2); background: linear-gradient(105deg, rgba(49, 16, 92, .8), rgba(17, 22, 63, .8)); }
.admin-tools-card-heading > div { display: flex; align-items: center; gap: .65rem; }
.admin-tools-card-heading h2 { margin: 0; font-size: 1rem; font-weight: 850; }
.admin-tools-card-heading p { margin: 0; color: #a9a2bb; font-size: .72rem; }
.admin-tools-step { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: .45rem; color: #ddd6fe; background: rgba(124, 58, 237, .25); font-size: .7rem; font-weight: 900; }
.admin-tools-step.warning { color: #fde68a; background: rgba(217, 119, 6, .22); }
.admin-tools-step.danger { color: #fecaca; background: rgba(220, 38, 38, .22); }
.admin-transfer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; padding: 1rem; }
.admin-transfer-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.admin-transfer-field label { color: #a9a2bb; font-size: .7rem; }
.admin-transfer-field-action { justify-content: flex-end; }
.admin-transfer-grid select, .admin-transfer-grid input, .admin-reset-form input { width: 100%; min-height: 2.55rem; padding: .55rem .68rem; border: 1px solid rgba(139, 92, 246, .35); border-radius: .48rem; color: inherit; background: #0b0d2d; font: inherit; font-size: .78rem; }
.admin-transfer-grid select:disabled { opacity: .55; }
.admin-transfer-button, .admin-reset-form button { width: 100%; min-height: 2.55rem; padding: .55rem .9rem; border: 0; border-radius: .48rem; color: #fff; background: linear-gradient(105deg, #7c3aed, #9333ea); font-size: .76rem; font-weight: 850; white-space: nowrap; }
.admin-tools-note { margin: 0; padding: 0 1rem 1rem; color: #8f87a3; font-size: .7rem; }
.admin-preserve-card { border-color: rgba(245, 158, 11, .35); }
.admin-reset-card { border-color: rgba(239, 68, 68, .35); }
.admin-reset-list { display: flex; flex-wrap: wrap; gap: .45rem; padding: 1rem; }
.admin-reset-list span { padding: .35rem .55rem; border: 1px solid rgba(239, 68, 68, .24); border-radius: 999px; color: #fecaca; background: rgba(127, 29, 29, .14); font-size: .68rem; font-weight: 700; }
.admin-preserve-list span { border-color: rgba(245, 158, 11, .28); color: #fde68a; background: rgba(120, 53, 15, .14); }
.admin-preserve-list span.kept { border-color: rgba(34, 197, 94, .32); color: #bbf7d0; background: rgba(20, 83, 45, .18); }
.admin-reset-form { padding: 0 1rem 1rem; }
.admin-reset-form label { display: block; margin-bottom: .4rem; color: #fca5a5; font-size: .74rem; }
.admin-preserve-form label { color: #fcd34d; }
.admin-reset-form > div { display: flex; gap: .65rem; }
.admin-reset-form button { background: linear-gradient(105deg, #b91c1c, #ef4444); }
.admin-preserve-form button { background: linear-gradient(105deg, #b45309, #f59e0b); }
.admin-reset-form button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .45; }
body.light-theme .admin-tools-page, body.forest-theme .admin-tools-page { color: var(--premium-text, #172033); }
body.light-theme .admin-tools-card, body.forest-theme .admin-tools-card { border-color: var(--premium-border, #dce3e8); background: var(--premium-panel, #fff); box-shadow: 0 .55rem 1.4rem rgba(20, 30, 50, .07); }
body.light-theme .admin-tools-card-heading { background: linear-gradient(105deg, #e5f4fb, #f4f8fb); }
body.forest-theme .admin-tools-card-heading { background: linear-gradient(105deg, #e5f3e6, #fff9e6); }
body.light-theme .admin-tools-card-heading p, body.forest-theme .admin-tools-card-heading p { color: var(--premium-text-secondary, #64748b); }
body.light-theme .admin-transfer-grid select, body.light-theme .admin-transfer-grid input, body.light-theme .admin-reset-form input,
body.forest-theme .admin-transfer-grid select, body.forest-theme .admin-transfer-grid input, body.forest-theme .admin-reset-form input { border-color: var(--premium-border, #dce3e8); color: inherit; background: #fff; }
body.light-theme .admin-transfer-field label, body.forest-theme .admin-transfer-field label { color: var(--premium-text-secondary, #64748b); }
@media (max-width: 575.98px) {
    .admin-tools-card-heading { align-items: flex-start; flex-direction: column; }
    .admin-reset-form > div { flex-direction: column; }
    .admin-reset-form button { width: 100%; }
}
.admin-sort-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: inherit;
    text-decoration: none;
}
.admin-sort-link:hover { color: inherit; text-decoration: underline; }
