*, *::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 130px; }
.filter-bar input[type="date"] { flex: 0 0 150px; }

.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); }

.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 Page - Linear Aesthetic ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #050506; position: relative; overflow: hidden; }
.auth-page::before { content: ''; position: absolute; top: -40%; left: -20%; width: 80%; height: 80%; background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, transparent 70%); pointer-events: none; }
.auth-page::after { content: ''; position: absolute; bottom: -30%; right: -10%; width: 60%; height: 60%; background: radial-gradient(ellipse, rgba(168,85,247,0.06) 0%, transparent 70%); pointer-events: none; }
.auth-card { background: rgba(10,10,10,0.8); 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.06); box-shadow: 0 0 80px rgba(99,102,241,0.04), 0 32px 64px rgba(0,0,0,0.5); position: relative; z-index: 1; }
.auth-card::before { content: ''; position: absolute; inset: 0; border-radius: 16px; padding: 1px; background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 50%, rgba(99,102,241,0.1) 100%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.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.4); box-shadow: 0 0 0 3px rgba(99,102,241,0.1), 0 0 20px rgba(99,102,241,0.05); 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(-1px); }
.auth-form .btn-primary.btn-block:active { transform: translateY(0); }

/* 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); }

.slider-verify { margin-bottom: 18px; user-select: none; }
.slider-track { position: relative; height: 42px; background: #e8e8e8; border-radius: 21px; overflow: hidden; border: 1px solid #d0d0d0; }
.slider-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: linear-gradient(135deg, var(--primary), #818cf8); border-radius: 21px 0 0 21px; transition: background .3s; }
.slider-fill.ok { background: linear-gradient(135deg, #22c55e, #4ade80); }
.slider-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #888; letter-spacing: 2px; pointer-events: none; }
.slider-text.ok { color: #fff; font-weight: 600; }
.slider-text.fail { color: #ef4444; }
.slider-handle { position: absolute; left: 0; top: 0; width: 42px; height: 42px; background: #fff; border: 1px solid #d0d0d0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: grab; z-index: 2; transition: border-color .3s, background .3s; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.slider-handle:active, .slider-handle.dragging { cursor: grabbing; }
.slider-handle.ok { background: #22c55e; border-color: #22c55e; color: #fff; }
.slider-handle.ok svg { stroke: #fff; }