body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0f1117; color: #e4e6ed; margin: 0; }

.admin-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.07); background: #12141e; }
.admin-header-left { display: flex; align-items: center; gap: 0.75rem; }
.admin-header-right { display: flex; align-items: center; gap: 0.75rem; }
.admin-logo { font-size: 1.15rem; font-weight: 700; color: #e4e6ed; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.admin-logo:hover { color: #fff; }
.admin-header-sep { width: 1px; height: 1.2rem; background: rgba(255,255,255,0.12); }
.admin-badge { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6c63ff; background: rgba(108,99,255,0.12); padding: 0.2rem 0.55rem; border-radius: 20px; border: 1px solid rgba(108,99,255,0.25); white-space: nowrap; }
.app-version { color: #444; font-size: 0.75rem; }
.admin-back-btn { display: flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; color: #8b8fa3; text-decoration: none; padding: 0.35rem 0.75rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); transition: color 0.15s, border-color 0.15s; white-space: nowrap; }
.admin-back-btn:hover { color: #e4e6ed; border-color: rgba(255,255,255,0.18); }
.btn-icon { background: none; border: none; color: #555; font-size: 1.1rem; cursor: pointer; padding: 0.3rem 0.4rem; border-radius: 6px; transition: color 0.15s, background 0.15s; line-height: 1; }
.btn-icon:hover { color: #e4e6ed; background: rgba(255,255,255,0.05); }

.admin-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0 2rem; }
.admin-tab { padding: 0.8rem 1.5rem; background: none; border: none; border-bottom: 2px solid transparent; color: #8b8fa3; font-size: 0.95rem; cursor: pointer; }
.admin-tab.active { color: #e4e6ed; border-bottom-color: #6c63ff; }

.admin-content { padding: 1.5rem 2rem; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.toolbar h2 { font-size: 1.1rem; font-weight: 600; }

.btn-sm { padding: 0.4rem 1rem; background: #6c63ff; color: #fff; border: none; border-radius: 8px; font-size: 0.85rem; cursor: pointer; }
.btn-sm:hover { background: #5a52d5; }
.btn-sm.outline { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #e4e6ed; }
.btn-sm.danger { background: #e03131; }
.btn-sm.danger:hover { background: #c92a2a; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; padding: 0.6rem 0.8rem; color: #8b8fa3; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.08); }
td { padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
tr:hover { background: rgba(255,255,255,0.02); }

.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem; }
.badge.active { background: rgba(81,207,102,0.15); color: #51cf66; }
.badge.blocked { background: rgba(224,49,49,0.15); color: #ff6b6b; }

.actions { display: flex; gap: 0.4rem; }

/* Toggle checkbox */
.toggle { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; white-space: nowrap; }
.toggle input[type="checkbox"] { width: 16px; height: 16px; accent-color: #e03131; cursor: pointer; }
.toggle-label { font-size: 0.85rem; color: #8b8fa3; }

/* Modal */
.admin-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 100; align-items: center; justify-content: center; }
.admin-modal-overlay.open { display: flex; }
.admin-modal { background: #1a1d27; border-radius: 12px; padding: 1.5rem; width: 100%; max-width: 420px; }
.admin-modal h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.admin-modal label { display: block; color: #8b8fa3; font-size: 0.85rem; margin-bottom: 0.3rem; margin-top: 0.8rem; }
.admin-modal input, .admin-modal select, .admin-modal textarea { width: 100%; padding: 0.6rem 0.8rem; background: #0f1117; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #e4e6ed; font-size: 0.9rem; outline: none; box-sizing: border-box; }
.admin-modal input:focus, .admin-modal select:focus { border-color: #6c63ff; }
.admin-modal textarea { resize: vertical; min-height: 60px; }
.admin-modal select[multiple] { min-height: 80px; }
.modal-buttons { display: flex; gap: 0.5rem; margin-top: 1.2rem; justify-content: flex-end; }
.error-msg { color: #ff6b6b; font-size: 0.85rem; margin-top: 0.5rem; }

/* Import Modal */
.import-modal-wide { max-width: 480px !important; }
.import-modal-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.import-modal-icon { font-size: 1.4rem; color: #6c63ff; line-height: 1; }
.import-modal-header h3 { margin: 0; font-size: 1.1rem; }
.import-source-card { background: #0f1117; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.import-source-row { display: flex; align-items: baseline; gap: 0.5rem; }
.import-meta-label { color: #555; font-size: 0.78rem; min-width: 90px; flex-shrink: 0; }
.import-meta-value { color: #c8cadf; font-size: 0.88rem; word-break: break-all; }
.import-arrow { text-align: center; color: #444; font-size: 1.1rem; margin: 0.6rem 0 0.2rem; }
.import-target-label { display: block; color: #8b8fa3; font-size: 0.85rem; margin-bottom: 0.4rem; }
.import-target-select { width: 100%; padding: 0.65rem 0.9rem; background: #0f1117; border: 1px solid rgba(108,99,255,0.4); border-radius: 8px; color: #e4e6ed; font-size: 0.9rem; outline: none; box-sizing: border-box; }
.import-target-select:focus { border-color: #6c63ff; }
.import-warning { margin-top: 0.9rem; padding: 0.55rem 0.8rem; background: rgba(224,49,49,0.08); border: 1px solid rgba(224,49,49,0.2); border-radius: 8px; color: #ff8787; font-size: 0.82rem; }
.btn-import { background: #6c63ff; gap: 0.3rem; }
