:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card: #1f2940;
  --bg-input: #2a3a5c;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0b0;
  --accent: #6c63ff;
  --accent-hover: #5a52d5;
  --danger: #ff4757;
  --success: #2ed573;
  --warning: #ffa502;
  --border: #2a3a5c;
  --shadow: rgba(0,0,0,0.3);
  --radius: 12px;
}

[data-theme="light"] {
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f5f5f5;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --border: #dfe6e9;
  --shadow: rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* 动画 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.animate-fadeIn { animation: fadeIn 0.4s ease; }
.animate-slideUp { animation: slideUp 0.5s ease both; }
.animate-scaleIn { animation: scaleIn 0.3s ease; }
.animate-shake { animation: shake 0.4s ease; }

/* 认证页 */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: 1rem;
}

.auth-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px var(--shadow);
  border: 1px solid var(--border);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.auth-logo h1 {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.auth-logo p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.auth-tabs button {
  flex: 1;
  padding: 0.7rem;
  border: none;
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.auth-tabs button.active {
  background: var(--accent);
  color: #fff;
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.input-group:focus-within {
  border-color: var(--accent);
}

.input-group i {
  padding: 0 1rem;
  color: var(--text-secondary);
}

.input-group input {
  flex: 1;
  padding: 0.8rem 1rem 0.8rem 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
}

.btn-primary {
  width: 100%;
  padding: 0.8rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-hint {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.8rem;
}

.auth-error {
  color: var(--danger);
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* 主布局 */
.main-app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar.collapsed { width: 60px; }

.sidebar-header {
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.1rem;
}

.sidebar-header i { color: var(--accent); font-size: 1.3rem; }

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-nav a:hover { background: var(--bg-input); color: var(--text-primary); }
.sidebar-nav a.active { background: var(--accent); color: #fff; }
.sidebar-nav a i { width: 20px; text-align: center; }

.sidebar-footer {
  padding: 1rem 0.5rem;
  border-top: 1px solid var(--border);
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.sidebar-footer a:hover { background: var(--bg-input); color: var(--text-primary); }

.main-content {
  flex: 1;
  margin-left: 240px;
  transition: margin-left 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sidebar.collapsed ~ .main-content { margin-left: 60px; }

.topbar {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar h2 { flex: 1; font-size: 1.2rem; margin-left: 1rem; }

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.menu-toggle:hover { background: var(--bg-input); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.btn-logout {
  background: none;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover { background: var(--danger); color: #fff; }

.page-content {
  padding: 1.5rem;
  flex: 1;
}

/* 仪表盘 */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-header .btn-primary { width: auto; padding: 0.7rem 1.5rem; }

.stats-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-width: 140px;
}

.stat-card i { font-size: 1.8rem; color: var(--accent); }
.stat-card h3 { font-size: 1.5rem; }
.stat-card p { color: var(--text-secondary); font-size: 0.8rem; }

/* 服务器卡片 */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}

.server-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}

.server-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow);
  border-color: var(--accent);
}

.server-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.server-card-header h3 { font-size: 1rem; }

.status-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.status-badge.online { background: rgba(46,213,115,0.15); color: var(--success); }
.status-badge.offline { background: rgba(255,71,87,0.15); color: var(--danger); }
.status-badge.unknown { background: rgba(255,165,2,0.15); color: var(--warning); }
.status-badge i { font-size: 0.5rem; }

.server-card-body {
  padding: 1rem 1.2rem;
}

.server-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.server-card-body p i { width: 16px; color: var(--accent); }

.perf-bars { margin-top: 0.8rem; }

.perf-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
}

.perf-item span:first-child { width: 35px; color: var(--text-secondary); }
.perf-item span:last-child { width: 35px; text-align: right; }

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar div {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-bar .low { background: var(--success); }
.progress-bar .mid { background: var(--warning); }
.progress-bar .high { background: var(--danger); }

.uptime { font-size: 0.75rem !important; margin-top: 0.5rem !important; }

.server-card-actions {
  display: flex;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}

.server-card-actions button {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.server-card-actions button:hover { border-color: var(--accent); color: var(--accent); }
.server-card-actions button.danger:hover { border-color: var(--danger); color: var(--danger); }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-body { padding: 1.5rem; }

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--accent);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-secondary {
  flex: 1;
  padding: 0.7rem;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover { border-color: var(--text-secondary); }
.modal-actions .btn-primary { flex: 1; }

/* 终端 */
.terminal-overlay { z-index: 2000; }

.terminal-modal {
  max-width: 900px;
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.terminal-header { border-bottom: 1px solid var(--border); }

.terminal-container {
  flex: 1;
  padding: 0.5rem;
  overflow: hidden;
}

.terminal-container .xterm { height: 100%; }

/* 表格 */
.table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

th {
  background: var(--bg-input);
  color: var(--text-secondary);
  font-weight: 600;
}

tr:hover td { background: var(--bg-input); }

.action-cell {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.action-cell select {
  padding: 0.3rem 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.8rem;
}

.btn-danger-sm {
  padding: 0.3rem 0.6rem;
  background: none;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-sm:hover { background: var(--danger); color: #fff; }

.role-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.role-badge.admin { background: rgba(108,99,255,0.15); color: var(--accent); }
.role-badge.user { background: rgba(46,213,115,0.15); color: var(--success); }
.role-badge.visitor { background: rgba(255,165,2,0.15); color: var(--warning); }

.log-action {
  background: var(--bg-input);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.log-filters {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.log-filters input {
  padding: 0.6rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
}

.log-filters .btn-primary { width: auto; padding: 0.6rem 1.2rem; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 6px;
  cursor: pointer;
}

.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* 设置 */
.settings-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  max-width: 600px;
}

.settings-card h3 { margin-bottom: 1.5rem; }

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.setting-item p { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.3rem; }

.switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  inset: 0;
  background: var(--bg-input);
  border-radius: 26px;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid var(--border);
}

.slider:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 2px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider:before { transform: translateX(23px); background: #fff; }

/* 个人中心 */
.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  max-width: 600px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.profile-form { margin-bottom: 1.5rem; }

.profile-meta {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.profile-meta p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 颜色选择 */
.color-modal {
  max-width: 350px;
  padding: 1.5rem;
  text-align: center;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  border: 3px solid transparent;
  margin: 0 auto;
}

.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: var(--text-primary); transform: scale(1.2); }

/* Toast */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

.toast-enter-active { animation: slideUp 0.3s ease; }
.toast-leave-active { animation: fadeIn 0.3s ease reverse; }

/* 响应式 */
@media (max-width: 768px) {
  .sidebar {
    width: 60px;
  }
  .sidebar span { display: none; }
  .main-content { margin-left: 60px; }
  .stats-cards { flex-direction: column; }
  .server-grid { grid-template-columns: 1fr; }
  .dashboard-header { flex-direction: column; align-items: stretch; }
  .dashboard-header .btn-primary { width: 100%; }
  .log-filters { flex-direction: column; }
  .modal { max-width: 95vw; }
  .terminal-modal { height: 90vh; max-width: 95vw; }
  .topbar h2 { font-size: 1rem; }
  .profile-card { padding: 1.2rem; }
}

@media (max-width: 480px) {
  .auth-container { padding: 1.5rem; }
  .page-content { padding: 1rem; }
  .server-card-actions { flex-wrap: wrap; }
  .server-card-actions button { min-width: 40px; }
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ========== 花里胡哨背景 ========== */
.fancy-bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: bgZoomIn 1.2s ease both;
  pointer-events: none;
}

/* 暗色蒙版，保证文字可读性 */
.fancy-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,17,30,0.74) 0%, rgba(13,17,30,0.55) 100%);
}

html[data-theme="light"] .fancy-bg-layer::after {
  background: linear-gradient(180deg, rgba(240,242,245,0.72) 0%, rgba(240,242,245,0.5) 100%);
}

@keyframes bgZoomIn {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}

/* 开启背景后：底层透明，卡片半透明毛玻璃化 */
body.has-fancy-bg { background: transparent; }
html:has(> body.has-fancy-bg) { background: transparent; }

body.has-fancy-bg .auth-page { background: transparent; }

body.has-fancy-bg .sidebar,
body.has-fancy-bg .topbar {
  background: rgba(18, 24, 42, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.has-fancy-bg .server-card,
body.has-fancy-bg .stat-card,
body.has-fancy-bg .settings-card,
body.has-fancy-bg .profile-card,
body.has-fancy-bg .table-container,
body.has-fancy-bg .modal,
body.has-fancy-bg .auth-container {
  background: rgba(26, 33, 56, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme="light"] body.has-fancy-bg .sidebar,
html[data-theme="light"] body.has-fancy-bg .topbar {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] body.has-fancy-bg .server-card,
html[data-theme="light"] body.has-fancy-bg .stat-card,
html[data-theme="light"] body.has-fancy-bg .settings-card,
html[data-theme="light"] body.has-fancy-bg .profile-card,
html[data-theme="light"] body.has-fancy-bg .table-container,
html[data-theme="light"] body.has-fancy-bg .modal,
html[data-theme="light"] body.has-fancy-bg .auth-container {
  background: rgba(255, 255, 255, 0.82);
}

/* 登录页右上角悬浮开关 */
.bg-toggle-float {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(31, 41, 64, 0.65);
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10;
  font-size: 1rem;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.bg-toggle-float:hover {
  transform: rotate(12deg) scale(1.12);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 20px var(--shadow);
}

/* ========== 图标上传 ========== */
.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s;
  user-select: none;
  white-space: nowrap;
}

.btn-upload:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow);
}

.favicon-preview {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--bg-input);
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  animation: fadeIn 0.4s ease;
}

.favicon-preview img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  box-shadow: 0 2px 8px var(--shadow);
}