/* ==================== 变量定义 ==================== */
:root {
  /* 浅色主题 */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #10b981;
  --border: #e2e8f0;
  --glow: rgba(59, 130, 246, 0.3);
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #10b981;
  --border: rgba(255, 255, 255, 0.1);
  --glow: rgba(59, 130, 246, 0.4);
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* ==================== 基础样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ==================== 背景动画 ==================== */
.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
    var(--bg-primary);
  z-index: 0;
  transition: all 0.5s;
}

[data-theme="dark"] .bg-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    var(--bg-primary);
}

/* ==================== 头部 ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

[data-theme="dark"] .header {
  background: rgba(30, 41, 59, 0.8);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  transition: all 0.3s;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

.logo:hover .logo-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* 头部操作区 */
.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* 搜索框 */
.search-container {
  position: relative;
}

.search-input {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1.25rem 0.75rem 3rem;
  color: var(--text-primary);
  font-size: 1rem;
  width: 300px;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  min-height: 48px;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: white;
  box-shadow: 0 4px 12px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem;
  min-height: auto;
}

.btn-ghost:hover {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
}

.btn-icon {
  width: 48px;
  padding: 0;
  min-height: 48px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 快捷键提示 */
.shortcut-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

/* ==================== 主内容 ==================== */
.main {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* 分类区块 */
.category-section {
  margin-bottom: 2.5rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  position: relative;
}

.category-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 50%, transparent 100%);
  border-radius: 1px;
}

.category-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.category-count {
  font-size: 0.75rem;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.category-line {
  flex: 1;
}

.category-actions {
  display: flex;
  gap: 0.5rem;
}

/* 链接网格 */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* 链接卡片 */
.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
  opacity: 0;
  transition: opacity 0.3s;
}

.link-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.link-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.link-card:hover::before {
  opacity: 1;
}

.link-card:hover::after {
  transform: scaleX(1);
}

.link-card:active {
  transform: scale(0.98);
}

.link-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.link-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px var(--glow);
  transition: transform 0.3s;
}

.link-card:hover .link-icon {
  transform: scale(1.1) rotate(-5deg);
}

.link-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.link-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* 卡片操作按钮 */
.link-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.link-card:hover .link-actions {
  opacity: 1;
}

.link-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.link-action-btn:hover {
  background: var(--accent);
  color: white;
}

.link-action-btn.delete:hover {
  background: var(--danger);
}

.link-action-btn svg {
  width: 14px;
  height: 14px;
}

/* 添加卡片 */
.add-link-card {
  background: transparent;
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

.add-link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
  opacity: 0;
  transition: opacity 0.3s;
}

.add-link-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  border-style: solid;
  transform: translateY(-4px);
}

.add-link-card:hover::before {
  opacity: 1;
}

.add-link-card svg {
  width: 36px;
  height: 36px;
  transition: transform 0.3s;
}

.add-link-card:hover svg {
  transform: scale(1.15) rotate(90deg);
}

.add-link-card span {
  font-size: 0.95rem;
  font-weight: 600;
}

/* 添加分类按钮 */
.add-category-btn {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.add-category-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
  opacity: 0;
  transition: opacity 0.3s;
}

.add-category-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  border-style: solid;
  transform: translateY(-2px);
}

.add-category-btn:hover::before {
  opacity: 1;
}

.add-category-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.add-category-btn:hover svg {
  transform: rotate(90deg);
}

/* ==================== 空状态 ==================== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 0.95rem;
}

/* ==================== 模态框 ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

select.form-input {
  cursor: pointer;
}

.form-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.form-footer-left {
  display: flex;
  gap: 0.5rem;
}

.form-footer-right {
  display: flex;
  gap: 0.75rem;
}

/* 危险按钮 */
.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

/* ==================== Toast 提示 ==================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  font-size: 0.95rem;
  min-width: 280px;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast.success svg {
  color: var(--success);
}

.toast.error svg {
  color: var(--danger);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==================== 编辑模式提示 ==================== */
.edit-mode-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 100;
  display: none;
  box-shadow: var(--shadow-lg);
}

body.edit-mode .edit-mode-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==================== 快捷键面板 ==================== */
.shortcuts-panel {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  z-index: 1500;
  display: none;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
}

.shortcuts-panel.show {
  display: block;
}

.shortcuts-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.shortcut-item:last-child {
  border-bottom: none;
}

.shortcut-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.shortcut-key {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* ==================== 移动端菜单按钮 ==================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.3s;
}

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

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 抽屉遮罩 */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer-overlay.show {
  opacity: 1;
}

/* 移动端底部操作栏 */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-add-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 14px;
}

.mobile-add-btn svg {
  width: 20px;
  height: 20px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .header {
    padding: 0.75rem 1rem;
  }

  .header-content {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .logo {
    flex: 1;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-icon svg {
    width: 18px;
    height: 18px;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .header-actions {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .header-actions.show {
    display: flex;
  }

  .header-actions .search-container {
    width: 100%;
    order: -1;
  }

  .header-actions .search-input {
    width: 100%;
  }

  .header-actions .btn-ghost {
    width: 44px;
    height: 44px;
  }

  .header-actions .btn-secondary {
    flex: 1;
  }

  .main {
    padding: 1rem;
    padding-bottom: 5rem;
  }

  .category-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .category-header::after {
    display: none;
  }

  .category-line {
    display: none;
  }

  .category-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }

  .links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .link-card {
    padding: 1rem;
  }

  .link-icon {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .link-actions {
    opacity: 1;
    top: 0.5rem;
    right: 0.5rem;
  }

  .link-action-btn {
    width: 28px;
    height: 28px;
  }

  .add-link-card {
    min-height: 120px;
    padding: 1rem;
  }

  .mobile-bottom-bar {
    display: block;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
  }

  .toast {
    min-width: auto;
  }

  .edit-mode-indicator {
    bottom: 5rem;
    left: 1rem;
    right: 1rem;
    text-align: center;
  }

  .shortcuts-panel {
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
  }

  .modal {
    width: 95%;
    max-height: 85vh;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .links-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }
}

@media (hover: none) {
  .link-actions {
    opacity: 1;
  }

  .link-card:hover {
    transform: none;
  }
}

/* ==================== 动画 ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-section {
  animation: fadeIn 0.4s ease;
}

/* 加载动画 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
