*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --purple: #8b5cf6;
    --purple-light: #ede9fe;
    --bg: #f1f5f9;
    --bg-card: #ffffff;
    --bg-sidebar: #1e293b;
    --bg-sidebar-hover: #334155;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-sidebar: #cbd5e1;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --sidebar-width: 260px;
    --topbar-height: 60px;
}

html { font-size: 14px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }

.app-container { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar { width: var(--sidebar-width); background: var(--bg-sidebar); color: var(--text-sidebar); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; transition: transform 0.3s ease; }
.sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { width: 32px; height: 32px; color: var(--primary-light); flex-shrink: 0; }
.logo-text { font-size: 16px; font-weight: 700; color: #f8fafc; white-space: nowrap; }
.version-badge { display: inline-block; margin-top: 8px; padding: 2px 8px; background: rgba(255,255,255,0.1); border-radius: 10px; font-size: 11px; color: var(--text-light); }

.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: var(--radius); color: var(--text-sidebar); text-decoration: none; transition: all 0.2s; margin-bottom: 2px; font-size: 14px; }
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-sidebar-hover); color: #f8fafc; }
.nav-item.active { background: var(--primary); color: #fff; }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.api-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-light); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }

/* Main Content */
.main-content { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; }

.top-bar { height: var(--topbar-height); background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 24px; gap: 16px; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--text); }
.menu-toggle svg { width: 24px; height: 24px; }
.page-title { font-size: 18px; font-weight: 600; flex: 1; }
.top-actions { display: flex; gap: 8px; }

.content-area { flex: 1; padding: 24px; overflow-y: auto; }
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon-blue { background: var(--info-light); color: var(--info); }
.stat-icon-green { background: var(--success-light); color: var(--success); }
.stat-icon-red { background: var(--danger-light); color: var(--danger); }
.stat-icon-purple { background: var(--purple-light); color: var(--purple); }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* Cards */
.card { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 20px; overflow: hidden; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 15px; font-weight: 600; }
.card-body { padding: 20px; }

.badge { display: inline-block; padding: 2px 10px; background: var(--info-light); color: var(--info); border-radius: 10px; font-size: 12px; font-weight: 500; }

/* Forms */
.form-group { margin-bottom: 16px; }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }

.input, .select, .textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; color: var(--text); background: var(--bg-card); transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.input-sm { padding: 6px 10px; font-size: 13px; }
.select-sm { padding: 6px 10px; font-size: 13px; }

.input-group { display: flex; gap: 10px; align-items: stretch; }
.input-group .input { flex: 2; }
.input-group .select { flex: 0 0 180px; }
.input-group .btn { flex: 0 0 auto; white-space: nowrap; }

.textarea-info { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.batch-textarea-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.batch-textarea-toolbar .btn-sm { padding: 5px 12px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.batch-textarea-toolbar .text-muted { font-size: 12px; }
.text-muted { color: var(--text-light); font-weight: normal; }

.form-actions { display: flex; gap: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 500; font-family: inherit; cursor: pointer; transition: all 0.2s; text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-outline:hover:not(:disabled) { background: var(--bg); color: var(--text); border-color: var(--text-light); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #dc2626; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-icon { background: none; border: none; cursor: pointer; color: var(--text-secondary); padding: 4px; border-radius: 4px; display: inline-flex; transition: all 0.2s; }
.btn-icon:hover { color: var(--primary); background: rgba(79,70,229,0.08); }

/* Spinner */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Results */
.result-box { padding: 16px 20px; border-radius: var(--radius); margin-top: 16px; animation: fadeIn 0.3s ease; }
.result-safe { background: var(--success-light); border: 1px solid #a7f3d0; }
.result-danger { background: var(--danger-light); border: 1px solid #fecaca; }
.result-error { background: var(--warning-light); border: 1px solid #fde68a; }
.result-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.result-status { font-weight: 600; font-size: 15px; }
.status-safe { color: var(--success); }
.status-danger { color: var(--danger); }
.status-error { color: var(--warning); }
.result-domain { color: var(--text-secondary); font-size: 13px; }
.result-detail { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.result-panel { margin-top: 20px; animation: fadeIn 0.3s ease; }

/* Detail Result */
.detail-result { padding: 24px; border-radius: var(--radius-lg); }
.detail-safe { background: var(--success-light); border: 1px solid #a7f3d0; }
.detail-danger { background: var(--danger-light); border: 1px solid #fecaca; }
.detail-error { background: var(--warning-light); border: 1px solid #fde68a; }
.detail-status { font-size: 20px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.detail-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; font-weight: 700; }
.detail-safe .detail-icon { background: var(--success); color: #fff; }
.detail-danger .detail-icon { background: var(--danger); color: #fff; }
.detail-error .detail-icon { background: var(--warning); color: #fff; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.detail-item { display: flex; flex-direction: column; gap: 2px; }
.detail-label { font-size: 12px; color: var(--text-light); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-value { font-size: 14px; color: var(--text); word-break: break-all; }

/* Batch Results */
.batch-result-panel { margin-top: 20px; animation: fadeIn 0.3s ease; }
.batch-progress { padding: 16px; background: var(--bg); border-radius: var(--radius); margin-bottom: 12px; }
.batch-progress-bar { width: 100%; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.batch-progress-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.3s ease; }
.batch-progress-text { margin-top: 8px; font-size: 13px; color: var(--text-secondary); text-align: center; }
.batch-summary { display: flex; gap: 20px; padding: 12px 16px; background: var(--bg); border-radius: var(--radius); margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.batch-stopped { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); border-radius: var(--radius); margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--danger); }
.batch-total { color: var(--text); }
.batch-safe { color: var(--success); }
.batch-blocked { color: var(--danger); }
.batch-error { color: var(--warning); }
.batch-list { display: flex; flex-direction: column; gap: 6px; max-height: 500px; overflow-y: auto; }
.batch-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); font-size: 13px; }
.batch-item-safe { background: var(--success-light); }
.batch-item-danger { background: var(--danger-light); }
.batch-item-error { background: var(--warning-light); }
.batch-item-icon { font-weight: 700; font-size: 16px; width: 20px; text-align: center; }
.batch-item-safe .batch-item-icon { color: var(--success); }
.batch-item-danger .batch-item-icon { color: var(--danger); }
.batch-item-error .batch-item-icon { color: var(--warning); }
.batch-item-domain { font-weight: 600; min-width: 150px; }
.batch-item-msg { color: var(--text-secondary); }

/* Info List */
.info-list { display: flex; flex-direction: column; gap: 14px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.info-icon-blue { background: var(--info-light); color: var(--info); }
.info-icon-green { background: var(--success-light); color: var(--success); }
.info-icon-red { background: var(--danger-light); color: var(--danger); }
.info-content strong { display: block; font-size: 14px; margin-bottom: 2px; }
.info-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Trend Chart */
.trend-chart { min-height: 200px; }
.trend-bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding: 0 10px; }
.trend-bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; position: relative; }
.trend-bar { width: 100%; max-width: 48px; background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: 6px 6px 0 0; min-height: 4px; transition: height 0.5s ease; }
.trend-bar-label { font-size: 11px; color: var(--text-light); margin-top: 8px; }
.trend-bar-value { font-size: 11px; color: var(--text-secondary); font-weight: 600; position: absolute; top: -18px; }

/* Table */
.filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filter-bar .input { flex: 1; min-width: 160px; }
.filter-bar .select { flex: 0 0 140px; }
.filter-bar input[type="date"] { flex: 0 0 150px; }
.filter-category-group { display: flex; gap: 4px; flex-wrap: wrap; width: 100%; margin-bottom: 2px; }
.filter-cat-btn { padding: 4px 12px; font-size: 12px; border-radius: 6px; cursor: pointer; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-secondary); transition: all .15s ease; white-space: nowrap; }
.filter-cat-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); border-color: var(--primary); }
.filter-cat-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.date-range-group { display: flex; flex-direction: column; gap: 8px; }
.date-quick-btns { display: flex; gap: 4px; }
.btn-xs { padding: 3px 8px; font-size: 11px; border-radius: 4px; }
.btn-xs.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.date-custom-range { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.date-sep { color: var(--text-light); font-size: 12px; }
.date-error { color: var(--danger); font-size: 12px; width: 100%; }

.export-modal { display: flex; flex-direction: column; gap: 20px; }
.export-summary { background: var(--bg); border-radius: var(--radius); padding: 16px; }
.export-summary-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.export-summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.export-summary-item { display: flex; flex-direction: column; gap: 2px; }
.export-count { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--info-light); border-radius: var(--radius); color: var(--info); font-size: 14px; }
.export-count strong { font-size: 18px; }
.export-empty { text-align: center; padding: 20px; color: var(--text-light); font-size: 14px; }
.export-actions { display: flex; justify-content: center; }

.table-container { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { background: var(--bg); padding: 10px 12px; text-align: left; font-weight: 600; color: var(--text-secondary); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: rgba(79,70,229,0.02); }
.td-domain { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.td-url { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); font-size: 12px; }
.td-msg { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }

.status-badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 500; }
.status-badge.status-safe { background: var(--success-light); color: var(--success); }
.status-badge.status-danger { background: var(--danger-light); color: var(--danger); }
.status-badge.status-pending { background: #f1f5f9; color: var(--text-light); }
.status-badge.status-redirect-warning { background: #fff7ed; color: #ea580c; }
.status-badge.status-risk-warning { background: #fef2f2; color: #dc2626; }
.status-badge.status-whitelisted { background: #f0fdfa; color: #0d9488; }
.status-badge.status-not-whitelisted { background: #f8fafc; color: #64748b; }
.status-badge.status-error { background: #fef3c7; color: #b45309; }

.detail-redirect-warning { background: #fff7ed; border: 1px solid #fed7aa; }
.detail-risk-warning { background: #fef2f2; border: 1px solid #fecaca; }
.detail-whitelisted { background: #f0fdfa; border: 1px solid #99f6e4; }
.detail-not-whitelisted { background: #f8fafc; border: 1px solid #e2e8f0; }
.detail-redirect-warning .detail-icon { background: #ea580c; color: #fff; }
.detail-risk-warning .detail-icon { background: #dc2626; color: #fff; }
.detail-whitelisted .detail-icon { background: #0d9488; color: #fff; }
.detail-not-whitelisted .detail-icon { background: #64748b; color: #fff; }

.result-redirect-warning { background: #fff7ed; border: 1px solid #fed7aa; }
.result-risk-warning { background: #fef2f2; border: 1px solid #fecaca; }
.result-whitelisted { background: #f0fdfa; border: 1px solid #99f6e4; }
.result-not-whitelisted { background: #f8fafc; border: 1px solid #e2e8f0; }
.status-redirect-warning { color: #ea580c; }
.status-risk-warning { color: #dc2626; }
.status-whitelisted { color: #0d9488; }
.status-not-whitelisted { color: #64748b; }

.batch-item-redirect-warning { background: #fff7ed; }
.batch-item-risk-warning { background: #fef2f2; }
.batch-item-whitelisted { background: #f0fdfa; }
.batch-item-not-whitelisted { background: #f8fafc; }
.batch-item-redirect-warning .batch-item-icon { color: #ea580c; }
.batch-item-risk-warning .batch-item-icon { color: #dc2626; }
.batch-item-whitelisted .batch-item-icon { color: #0d9488; }
.batch-item-not-whitelisted .batch-item-icon { color: #64748b; }
.batch-redirect-warning { color: #ea580c; }
.batch-risk-warning { color: #dc2626; }
.batch-whitelisted { color: #0d9488; }
.batch-not-whitelisted { color: #64748b; }

.filter-bar .select-sm { flex: 0 0 140px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); font-size: 14px; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.page-info { font-size: 13px; color: var(--text-secondary); margin-right: 10px; }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 20px; border-radius: var(--radius); font-size: 14px; color: #fff; transform: translateX(120%); transition: transform 0.3s ease; box-shadow: var(--shadow-lg); max-width: 360px; }
.toast.show { transform: translateX(0); }
.toast-info { background: var(--info); }
.toast-success { background: var(--success); }
.toast-warning { background: var(--warning); }
.toast-error { background: var(--danger); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.2s ease; }
.modal { background: var(--bg-card); border-radius: var(--radius-lg); width: 90%; max-width: 600px; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-secondary); padding: 0 4px; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px; }

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .menu-toggle { display: flex; }
    .stats-grid { grid-template-columns: 1fr; }
    .input-group { flex-direction: column; }
    .input-group .select { flex: auto; }
    .filter-bar { flex-direction: column; }
    .filter-bar .input, .filter-bar .select { flex: auto; }
    .batch-summary { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
    .content-area { padding: 12px; }
    .card-body { padding: 14px; }
    .top-bar { padding: 0 12px; }
    .auth-card { padding: 32px 20px; }
    .auth-tabs { gap: 0; }
    .auth-tab { font-size: 12px; padding: 8px; }
    .captcha-row { flex-direction: column; align-items: stretch; }
    .captcha-input-wrap { max-width: 100%; }
    .captcha-img-wrap { width: 100%; height: 50px; }
}

/* ===== Auth Page - Enterprise Tech ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0a0e27 0%, #1a1a4e 40%, #16213e 100%); position: relative; overflow-y: auto; overflow-x: hidden; }
.auth-page::before { content: ''; position: absolute; top: -40%; left: -20%; width: 80%; height: 80%; background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%); pointer-events: none; z-index: 1; }
.auth-page::after { content: ''; position: absolute; bottom: -30%; right: -10%; width: 60%; height: 60%; background: radial-gradient(ellipse, rgba(168,85,247,0.08) 0%, transparent 70%); pointer-events: none; z-index: 1; }
.auth-page .particle-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
@supports not (backdrop-filter: blur(1px)) {
    .auth-card { background: rgba(10,10,10,0.92); }
}
.auth-card { background: rgba(10,10,10,0.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 16px; padding: 48px 40px; width: 420px; max-width: 92vw; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 0 80px rgba(99,102,241,0.06), 0 32px 64px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05); position: relative; z-index: 2; animation: cardEntrance 500ms cubic-bezier(0.16,1,0.3,1) both; }
@keyframes cardEntrance { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo svg { width: 44px; height: 44px; color: #6366F1; margin-bottom: 16px; filter: drop-shadow(0 0 12px rgba(99,102,241,0.3)); }
.auth-logo h1 { font-size: 20px; font-weight: 600; color: #EDEDEF; margin-bottom: 6px; letter-spacing: -0.02em; }
.auth-logo p { color: #8A8F98; font-size: 13px; letter-spacing: -0.01em; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 28px; background: rgba(255,255,255,0.04); border-radius: 10px; padding: 3px; border: 1px solid rgba(255,255,255,0.04); }
.auth-tab { flex: 1; padding: 10px; text-align: center; font-size: 13px; font-weight: 500; color: #8A8F98; background: none; border: none; cursor: pointer; border-radius: 8px; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); font-family: inherit; letter-spacing: -0.01em; }
.auth-tab.active { color: #EDEDEF; background: rgba(255,255,255,0.08); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.auth-tab:hover:not(.active) { color: #A1A1AA; }
.auth-form .form-group { margin-bottom: 18px; }
.auth-form .form-group label { display: block; font-size: 12px; font-weight: 500; color: #8A8F98; margin-bottom: 6px; letter-spacing: 0.02em; text-transform: uppercase; }
.auth-form .input { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); color: #EDEDEF; border-radius: 10px; padding: 12px 16px; font-size: 14px; letter-spacing: -0.01em; }
.auth-form .input::placeholder { color: #555; }
.auth-form .input:focus { border-color: rgba(99,102,241,0.5); box-shadow: 0 0 0 3px rgba(99,102,241,0.15), 0 0 20px rgba(99,102,241,0.08); background: rgba(255,255,255,0.06); }
.btn-block { width: 100%; }
.auth-form .btn-primary.btn-block { background: linear-gradient(135deg, #6366F1, #8B5CF6); border: none; border-radius: 10px; padding: 13px; font-weight: 600; letter-spacing: -0.01em; box-shadow: 0 0 20px rgba(99,102,241,0.2), 0 4px 12px rgba(0,0,0,0.3); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.auth-form .btn-primary.btn-block:hover:not(:disabled) { box-shadow: 0 0 30px rgba(99,102,241,0.35), 0 8px 20px rgba(0,0,0,0.4); transform: translateY(-2px); }
.auth-form .btn-primary.btn-block:active { transform: translateY(1px); box-shadow: 0 0 15px rgba(99,102,241,0.2), 0 2px 8px rgba(0,0,0,0.3); }

/* Points Center - Linear Aesthetic */
.points-overview { display: flex; justify-content: center; margin-bottom: 10px; }
.points-balance-card { text-align: center; padding: 30px 60px; background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A855F7 100%); border-radius: var(--radius-lg); color: #fff; position: relative; overflow: hidden; }
.points-balance-card::before { content: ''; position: absolute; top: -50%; right: -30%; width: 60%; height: 120%; background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%); pointer-events: none; }
.points-label { font-size: 14px; opacity: 0.85; margin-bottom: 8px; }
.points-value { font-size: 48px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.points-hint { font-size: 12px; opacity: 0.6; margin-top: 8px; }

/* User Card in Sidebar */
.user-card { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-points { font-size: 11px; color: var(--text-light); }

/* Top Points Badge */
.points-badge { display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.15); border-radius: 20px; color: #818cf8; font-size: 13px; font-weight: 600; }

.remember-row { display: flex; align-items: center; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-light); user-select: none; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

.remaining-modal {}
.remaining-info { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.remaining-info strong { color: var(--danger); }
.remaining-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.remaining-list { max-height: 400px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.remaining-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.remaining-item:last-child { border-bottom: none; }
.remaining-idx { width: 32px; text-align: right; color: var(--text-secondary); font-size: 12px; flex-shrink: 0; }
.remaining-url { word-break: break-all; font-family: 'SF Mono',Consolas,monospace; font-size: 12px; }

.dropdown { position: relative; display: inline-block; }
.dropdown-menu { display: none; position: absolute; right: 0; top: 100%; margin-top: 4px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 100; min-width: 160px; overflow: hidden; }
.dropdown-menu a { display: block; padding: 10px 14px; font-size: 13px; color: var(--text); text-decoration: none; white-space: nowrap; }
.dropdown-menu a:hover { background: var(--bg); }
.dropdown-menu a + a { border-top: 1px solid var(--border); }

.captcha-verify { margin-bottom: 18px; }
.captcha-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: .3px; text-transform: uppercase; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-input-wrap { position: relative; flex: 1; min-width: 0; max-width: 140px; }
.captcha-input-wrap .captcha-input { padding-left: 34px; width: 100%; }
.captcha-input-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-light); pointer-events: none; transition: color .2s; }
.captcha-input-wrap:focus-within .captcha-input-icon { color: var(--primary); }
.captcha-input { flex: 1; min-width: 0; max-width: 120px; }
.captcha-img-wrap { position: relative; width: 150px; height: 50px; flex-shrink: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; }
.captcha-img-wrap:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.captcha-img { width: 150px; height: 50px; border-radius: 8px; cursor: pointer; border: 1px solid var(--border); flex-shrink: 0; object-fit: contain; display: block; }
.captcha-img-wrap .captcha-img { border: none; border-radius: 0; cursor: default; }
.captcha-refresh { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.45); opacity: 0; transition: opacity .2s; color: #fff; pointer-events: none; }
.captcha-img-wrap:hover .captcha-refresh { opacity: 1; }
.captcha-loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(255,255,255,.85); }
.captcha-loading.active { display: flex; }
.captcha-spinner { width: 20px; height: 20px; animation: captchaSpin .8s linear infinite; color: var(--primary); }
@keyframes captchaSpin { to { transform: rotate(360deg); } }
.auth-form .captcha-img-wrap { border-color: rgba(255,255,255,0.15); }
.auth-form .captcha-img-wrap:hover { border-color: var(--primary); }
.auth-form .captcha-img[alt] { font-size: 11px; color: #8A8F98; text-align: center; line-height: 50px; }
.auth-form { transition: opacity 300ms cubic-bezier(0.4,0,0.2,1), transform 300ms cubic-bezier(0.4,0,0.2,1); }
.auth-form.fade-out { opacity: 0; transform: translateY(8px); }
.auth-form.fade-in { opacity: 0; transform: translateY(-8px); }

/* ===== Free Detection ===== */
.badge-free { background: var(--success-light); color: var(--success); font-weight: 600; }

.free-lobby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.free-lobby-card { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); cursor: pointer; transition: all 0.25s; }
.free-lobby-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.free-lobby-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.free-lobby-icon svg { width: 24px; height: 24px; }
.free-lobby-icon-red { background: rgba(239,68,68,0.1); color: #ef4444; }
.free-lobby-icon-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.free-lobby-icon-purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.free-lobby-icon-teal { background: rgba(20,184,166,0.1); color: #14b8a6; }
.free-lobby-icon-amber { background: rgba(245,158,11,0.1); color: #f59e0b; }
.free-lobby-info { flex: 1; min-width: 0; }
.free-lobby-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.free-lobby-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.free-lobby-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.free-lobby-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
.free-lobby-cost-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-top: 6px; font-weight: 600; }
.cost-badge-free { background: rgba(34,197,94,0.1); color: #16a34a; border: 1px solid rgba(34,197,94,0.3); }
.cost-badge-paid { background: rgba(245,158,11,0.1); color: #d97706; border: 1px solid rgba(245,158,11,0.3); }
.cost-badge-mixed { background: rgba(59,130,246,0.1); color: #2563eb; border: 1px solid rgba(59,130,246,0.3); }
.free-lobby-arrow { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.free-detail-back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-secondary); font-size: 13px; cursor: pointer; margin-bottom: 16px; padding: 4px 0; transition: color 0.2s; }
.free-detail-back:hover { color: var(--primary); }

.free-detect-categories { display: flex; gap: 8px; margin-bottom: 16px; }
.free-category-tab { padding: 8px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text-secondary); cursor: pointer; font-size: 14px; font-weight: 500; font-family: inherit; transition: all 0.2s; }
.free-category-tab:hover { border-color: var(--primary); color: var(--primary); }
.free-category-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.free-detect-types { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.free-type-btn { padding: 6px 18px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg); color: var(--text-secondary); cursor: pointer; font-size: 13px; font-weight: 500; font-family: inherit; transition: all 0.2s; }
.free-type-btn:hover { border-color: var(--primary); color: var(--primary); }
.free-type-btn.active { background: rgba(79,70,229,0.1); color: var(--primary); border-color: var(--primary); font-weight: 600; }

.free-detect-form { margin-bottom: 8px; }

.free-result-box { padding: 20px 24px; border-radius: var(--radius-lg); animation: fadeIn 0.3s ease; }
.free-result-safe { background: var(--success-light); border: 1px solid #a7f3d0; }
.free-result-danger { background: var(--danger-light); border: 1px solid #fecaca; }
.free-result-warning { background: #fff7ed; border: 1px solid #fed7aa; }
.free-result-error { background: var(--warning-light); border: 1px solid #fde68a; }

.free-result-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.free-result-status { font-weight: 700; font-size: 16px; }
.free-result-status.safe { color: var(--success); }
.free-result-status.blocked { color: var(--danger); }
.free-result-status.warning { color: #ea580c; }
.free-result-status.error { color: var(--warning); }
.free-result-domain { color: var(--text-secondary); font-size: 14px; font-family: 'SF Mono', Consolas, monospace; }

.free-result-status-text { font-size: 14px; color: var(--text); margin-bottom: 16px; font-weight: 500; }

.free-result-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.free-result-detail-item { display: flex; flex-direction: column; gap: 2px; }
.free-result-label { font-size: 11px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.free-result-value { font-size: 13px; color: var(--text); word-break: break-all; }

.free-result-ratelimit { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.08); font-size: 12px; color: var(--text-secondary); }
.free-result-time { margin-top: 8px; font-size: 11px; color: var(--text-light); }

.free-whois-raw { margin-top: 12px; }
.free-whois-raw summary { cursor: pointer; font-size: 13px; color: var(--primary); font-weight: 500; padding: 6px 0; }
.free-whois-raw pre { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; font-size: 12px; line-height: 1.5; max-height: 300px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; margin-top: 8px; }

.free-rate-limit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.free-rate-item { padding: 12px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.free-rate-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.free-rate-name { font-size: 13px; font-weight: 600; color: var(--text); }
.free-rate-count { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.free-rate-bar { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.free-rate-fill { height: 100%; border-radius: 3px; transition: width 0.3s ease; }
.rate-bar-low { background: var(--success); }
.rate-bar-mid { background: var(--warning); }
.rate-bar-high { background: #ea580c; }
.rate-bar-full { background: var(--danger); }
.free-rate-remain { font-size: 11px; color: var(--text-light); margin-top: 6px; }

.gen-result-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.gen-result-main { margin-bottom: 16px; }
.gen-result-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; margin-bottom: 6px; }
.gen-result-link { display: flex; align-items: center; gap: 0; }
.gen-result-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; background: rgba(255,255,255,0.6); border-radius: var(--radius); border: 1px solid #d1fae5; }
.gen-meta-item { display: flex; flex-direction: column; gap: 2px; }
.gen-meta-label { font-size: 11px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.gen-meta-value { font-size: 13px; color: var(--text); word-break: break-all; }

@media (max-width: 1024px) {
    .free-rate-limit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .free-lobby-grid { grid-template-columns: 1fr; }
    .free-detect-categories { flex-wrap: wrap; }
    .free-result-detail-grid { grid-template-columns: 1fr; }
    .gen-result-meta { grid-template-columns: 1fr; }
    .gen-result-link { flex-direction: column; }
    .gen-result-link .btn { margin-left: 0 !important; margin-top: 8px; width: 100%; }
    .free-rate-limit-grid { grid-template-columns: 1fr; }
}
.undead-result { margin-top: 12px; }
.undead-level-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.undead-level-badge.undead-strong { background: linear-gradient(135deg,#fef3c7,#fde68a); color: #92400e; border: 1px solid #f59e0b; }
.undead-level-badge.undead-normal { background: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.undead-level-badge.undead-weak { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
.undead-level-badge.undead-none { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }
.undead-level-icon { font-size: 18px; }
.undead-conclusion { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; padding: 10px 14px; background: var(--bg-secondary); border-radius: 8px; border-left: 3px solid var(--primary); }
.undead-section { margin-bottom: 14px; }
.undead-section-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.undead-sub-list { display: flex; flex-direction: column; gap: 4px; }
.undead-sub-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; border-radius: 6px; font-size: 12px; }
.undead-sub-safe { background: #f0fdf4; border: 1px solid #bbf7d0; }
.undead-sub-blocked { background: #fef2f2; border: 1px solid #fecaca; }
.undead-sub-domain { font-family: 'SF Mono',Monaco,Consolas,monospace; color: var(--text-primary); word-break: break-all; }
.undead-sub-status { font-weight: 600; white-space: nowrap; margin-left: 12px; }
.undead-yes { color: #059669; font-weight: 600; }
.undead-no { color: #dc2626; font-weight: 600; }
.batch-input-wrap { margin-top: 8px; }
.batch-input-wrap textarea { resize: vertical; font-size: 13px; font-family: 'SF Mono',Monaco,Consolas,monospace; line-height: 1.5; }
.batch-input-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 0 2px; }
.batch-input-hint { font-size: 12px; color: var(--text-tertiary); }
.batch-input-count { font-size: 12px; color: var(--text-secondary); }
.batch-undead-container { width: 100%; }
.batch-undead-progress { height: 6px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.batch-undead-progress-bar { height: 100%; background: linear-gradient(90deg,#f59e0b,#fbbf24); border-radius: 3px; transition: width .3s ease; }
.batch-undead-progress-text { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.batch-undead-stats { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.batch-undead-controls { display: flex; gap: 8px; margin-bottom: 16px; }
.batch-undead-controls .btn { padding: 4px 14px; font-size: 12px; border-radius: 6px; cursor: pointer; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); }
.batch-undead-controls .btn:hover { background: var(--bg-tertiary); }
.batch-undead-controls .btn-danger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.batch-undead-controls .btn-danger:hover { background: #fecaca; }
.batch-undead-stat { display: flex; flex-direction: column; align-items: center; padding: 8px 16px; background: var(--bg-secondary); border-radius: 8px; min-width: 80px; }
.batch-undead-stat-num { font-size: 20px; font-weight: 700; line-height: 1.2; }
.batch-undead-stat-num.batch-undead-stat-total { color: var(--primary); }
.batch-undead-stat-label { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.batch-undead-table-wrap { max-height: 500px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }
.batch-undead-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.batch-undead-table th { position: sticky; top: 0; background: var(--bg-secondary); padding: 8px 10px; text-align: left; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--border); z-index: 1; }
.batch-undead-table td { padding: 6px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.batch-undead-table tr:hover td { background: rgba(79,70,229,.02); }
.undead-row-safe td { background: rgba(16,185,129,.03); }
.undead-row-warning td { background: rgba(245,158,11,.03); }
.undead-row-danger td { background: rgba(239,68,68,.03); }
.undead-td-domain { font-family: 'SF Mono',Monaco,Consolas,monospace; font-weight: 500; max-width: 200px; word-break: break-all; }
.undead-td-conclusion { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undead-level-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.undead-lvl-strong { background: #fef3c7; color: #92400e; }
.undead-lvl-normal { background: #d1fae5; color: #065f46; }
.undead-lvl-weak { background: #fef3c7; color: #92400e; }
.undead-lvl-none { background: #fee2e2; color: #991b1b; }

/* ===== History Lobby ===== */
.history-lobby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.history-lobby-card { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); cursor: pointer; transition: all 0.25s; }
.history-lobby-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.history-lobby-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.history-lobby-icon svg { width: 24px; height: 24px; }
.history-lobby-icon-red { background: rgba(239,68,68,0.1); color: #ef4444; }
.history-lobby-icon-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.history-lobby-icon-purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.history-lobby-icon-teal { background: rgba(20,184,166,0.1); color: #14b8a6; }
.history-lobby-icon-amber { background: rgba(245,158,11,0.1); color: #f59e0b; }
.history-lobby-icon-indigo { background: rgba(99,102,241,0.1); color: #6366f1; }
.history-lobby-info { flex: 1; min-width: 0; }
.history-lobby-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.history-lobby-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.history-lobby-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.history-lobby-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
.history-lobby-arrow { width: 20px; height: 20px; color: var(--text-light); flex-shrink: 0; }
.history-detail-back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-secondary); font-size: 13px; cursor: pointer; margin-bottom: 16px; padding: 4px 0; transition: color 0.2s; }
.history-detail-back:hover { color: var(--primary); }

@media (max-width: 768px) {
    .history-lobby-grid { grid-template-columns: 1fr; }
}

.modal-lg { max-width: 900px; width: 92%; }
.undead-history-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.undead-history-search { flex: 1; min-width: 160px; }
.undead-history-search .input { width: 100%; }
.undead-history-toolbar-right { display: flex; gap: 6px; margin-left: auto; }
.undead-history-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.undead-history-selected { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.table-sm th, .table-sm td { padding: 6px 8px; font-size: 13px; }