/* xnight admin — anonymous numbers (+888) */

.anum { display: flex; flex-direction: column; gap: 16px; padding: 4px 0 24px; }
.anum * { box-sizing: border-box; }

.anum-card {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-bg);
}
.anum-card.is-hero {
    border-color: rgba(29, 155, 240, .32);
    background: linear-gradient(135deg, rgba(29, 155, 240, .10), rgba(139, 92, 246, .05));
}
.anum-kicker { color: #1d9bf0; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.anum-card h4 { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--text-main); font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; }
.anum-card p.anum-lead { margin: 0 0 16px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

.anum-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.anum-stat { padding: 12px 14px; border-radius: 16px; background: var(--input-bg); border: 1px solid var(--border-color); }
.anum-stat span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.anum-stat b { display: block; margin-top: 2px; font-size: 20px; font-weight: 800; color: var(--text-main); font-variant-numeric: tabular-nums; }

.anum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.anum-field { display: flex; flex-direction: column; gap: 6px; }
.anum-field > span { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.anum-field input, .anum-field select {
    width: 100%; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--border-color);
    background: var(--input-bg); color: var(--text-main); font: inherit; font-weight: 600; outline: none;
    transition: border-color .15s;
}
.anum-field input:focus, .anum-field select:focus { border-color: #1d9bf0; }
.anum-field .num { font-variant-numeric: tabular-nums; }

.anum-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text-main); user-select: none; }
.anum-switch input { display: none; }
.anum-switch i { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--border-color); transition: background .2s; flex: none; }
.anum-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.16, 1, .3, 1); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.anum-switch input:checked + i { background: #1d9bf0; }
.anum-switch input:checked + i::after { transform: translateX(18px); }

.anum-range { display: flex; align-items: center; gap: 12px; }
.anum-range input[type=range] { flex: 1; accent-color: #1d9bf0; padding: 0; border: 0; background: transparent; }
.anum-range b { min-width: 58px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-main); }

.anum-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.anum-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
    border: none; background: #1d9bf0; color: #fff; font: inherit; font-weight: 800; cursor: pointer;
    transition: background .15s, transform .1s, opacity .15s; box-shadow: 0 4px 16px rgba(29, 155, 240, .22);
}
.anum-btn:hover { background: #1a8cd8; }
.anum-btn:active { transform: scale(.97); }
.anum-btn:disabled { opacity: .5; cursor: not-allowed; }
.anum-btn.is-ghost { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); box-shadow: none; }
.anum-btn.is-ghost:hover { background: rgba(128, 128, 128, .12); }
.anum-btn.is-danger { background: transparent; color: #f4212e; border: 1px solid rgba(244, 33, 46, .35); box-shadow: none; }
.anum-btn.is-danger:hover { background: rgba(244, 33, 46, .1); }
.anum-btn.is-sm { padding: 7px 13px; font-size: 13px; }

.anum-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.anum-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-main); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.anum-chip:hover, .anum-chip.is-on { border-color: #1d9bf0; color: #1d9bf0; }

.anum-grant { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 760px) { .anum-grant { grid-template-columns: 1fr; } }

.anum-preview {
    text-align: center; padding: 22px 18px 18px; border-radius: 24px; background: var(--card-bg);
    border: 1px solid var(--border-color); box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
}
.anum-preview .ico {
    width: 64px; height: 64px; border-radius: 50%; background: #1d9bf0; color: #fff; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(29, 155, 240, .25);
}
.anum-preview .big { font-size: 20px; font-weight: 800; color: var(--text-main); font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.anum-preview .sub { margin-top: 6px; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.anum-preview .star { color: #f59e0b; }
.anum-preview .warn { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: #f4212e; }
.anum-preview .ok { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: #00ba7c; }

.anum-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.anum-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
    background: var(--input-bg); border: 1px solid var(--border-color);
}
.anum-item .ico { width: 38px; height: 38px; border-radius: 50%; background: rgba(29, 155, 240, .14); color: #1d9bf0; display: flex; align-items: center; justify-content: center; flex: none; }
.anum-item .main { flex: 1; min-width: 0; }
.anum-item .n { font-weight: 800; color: var(--text-main); font-variant-numeric: tabular-nums; }
.anum-item .meta { font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anum-item .acts { display: flex; gap: 6px; flex: none; }
.anum-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.anum-badge.pretty { background: rgba(245, 158, 11, .15); color: #f59e0b; }
.anum-badge.admin { background: rgba(139, 92, 246, .15); color: #a78bfa; }
.anum-empty { padding: 16px 4px; color: var(--text-muted); font-size: 14px; }

.anum-modal { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.anum-modal .box { width: 100%; max-width: 420px; padding: 24px; border-radius: 26px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.anum-modal h5 { margin: 0 0 14px; font-size: 17px; font-weight: 800; color: var(--text-main); }
