/* ==========================================================================
   ADMIN PANEL â€” BDELASCA.COM.AR
   Estilos Premium Dark Mode para el Panel de AdministraciÃ³n
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:              #0b0f19;
  --bg-gradient:     radial-gradient(circle at 50% 0%, #172033 0%, #0b0f19 75%);
  --surface:         rgba(18, 26, 43, 0.75);
  --surface-hover:   rgba(28, 40, 66, 0.9);
  --surface-solid:   #151d30;
  --surface-input:   rgba(13, 19, 33, 0.8);
  --sidebar-bg:      #0f1624;

  --border:          rgba(255,255,255,0.08);
  --border-hover:    rgba(99,102,241,0.4);
  --border-active:   #6366f1;

  --text-primary:    #f8fafc;
  --text-secondary:  #94a3b8;
  --text-muted:      #64748b;

  --accent:          #6366f1;
  --accent-light:    #818cf8;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --accent-glow:     0 0 30px rgba(99,102,241,0.35);

  --danger:          #ef4444;
  --danger-bg:       rgba(239,68,68,0.12);
  --danger-border:   rgba(239,68,68,0.3);

  --success:         #22c55e;
  --success-bg:      rgba(34,197,94,0.12);
  --success-border:  rgba(34,197,94,0.3);

  --warning:         #f59e0b;

  --shadow-sm:       0 4px 6px -1px rgba(0,0,0,0.35);
  --shadow-md:       0 12px 30px -5px rgba(0,0,0,0.5);
  --shadow-glow:     0 0 35px -5px rgba(99,102,241,0.25);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-full: 9999px;

  --sidebar-w:   260px;
  --transition:  all 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* â”€â”€ Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent); }

/* â”€â”€ Login â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.ambient { 
  position: fixed; top: -150px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 350px;
  background: var(--accent-gradient); filter: blur(140px); opacity: 0.2;
  border-radius: 50%; pointer-events: none;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  position: relative;
  z-index: 1;
}

.login-logo {
  width: 54px; height: 54px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.4rem;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-glow);
}

.login-card h1 {
  font-size: 1.5rem; font-weight: 800; text-align: center;
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}

.login-card .subtitle {
  text-align: center; color: var(--text-secondary);
  font-size: 0.875rem; margin-bottom: 2rem;
}

/* â”€â”€ Formularios â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-group {
  margin-bottom: 1.2rem;
  display: flex; flex-direction: column; gap: 0.45rem;
}

.form-group label {
  font-size: 0.825rem; font-weight: 600; color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit; font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-group select option { background: #1e293b; }

.form-hint {
  font-size: 0.78rem; color: var(--text-muted);
}

/* â”€â”€ Botones â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-full);
  font-family: inherit; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
  width: 100%;
  justify-content: center;
}

.btn-primary:hover {
  opacity: 0.9; transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(99,102,241,0.5);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.btn-danger {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(239,68,68,0.22);
}

.btn-ghost {
  background: transparent; border: none;
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  background: var(--surface); color: var(--text-primary);
}

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }

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

/* â”€â”€ Layout Principal (Admin autenticado) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  flex-shrink: 0;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.8rem;
}

.sidebar-logo {
  width: 38px; height: 38px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-title { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.sidebar-subtitle { font-size: 0.72rem; color: var(--text-muted); }

.sidebar-nav {
  flex: 1;
  padding: 1.25rem 0.75rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}

.nav-section-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer;
  border: none; background: transparent; width: 100%;
  text-align: left;
  transition: var(--transition);
}

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

.nav-item:hover {
  background: var(--surface); color: var(--text-primary);
}

.nav-item.active {
  background: rgba(99,102,241,0.15);
  color: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.2);
}

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

.user-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.user-avatar {
  width: 36px; height: 36px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}

.user-name { font-size: 0.825rem; font-weight: 600; color: var(--text-primary); }
.user-email { font-size: 0.72rem; color: var(--text-muted); }

/* Contenido principal */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,15,25,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

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

.topbar-actions {
  display: flex; align-items: center; gap: 0.75rem;
}

.content-area {
  flex: 1;
  padding: 2rem;
  max-width: 1100px;
  width: 100%;
}

/* â”€â”€ Tab Panels â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* â”€â”€ Tabla de Links â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.2rem; font-weight: 700;
}

.data-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.data-table thead tr {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem; color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr {
  transition: background 0.18s ease;
}

.data-table tbody tr:hover {
  background: rgba(255,255,255,0.025);
}

.td-title { font-weight: 600; }
.td-url {
  color: var(--text-muted); font-size: 0.8rem;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.badge-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
}

.pinned-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
}

.actions-cell {
  display: flex; align-items: center; gap: 0.3rem;
}

/* â”€â”€ Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1; pointer-events: auto;
}

.modal-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px; width: 100%;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(20px) scale(0.96);
  transition: var(--transition);
}

.modal-overlay.open .modal-card {
  transform: none;
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-header h3 { font-size: 1.15rem; font-weight: 700; }

.modal-footer {
  display: flex; justify-content: flex-end; gap: 0.75rem;
  margin-top: 1.75rem;
}

/* â”€â”€ Toast â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.toast-stack {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  z-index: 1000;
  display: flex; flex-direction: column; gap: 0.6rem;
  pointer-events: none;
}

.toast {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.15rem;
  font-size: 0.875rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.6rem;
  box-shadow: var(--shadow-md);
  transform: translateX(110%); opacity: 0;
  transition: all 0.35s cubic-bezier(0.175,0.885,0.32,1.275);
}

.toast.show { transform: none; opacity: 1; }

.toast.is-success { border-color: var(--success-border); }
.toast.is-error   { border-color: var(--danger-border); }

.toast svg { width: 18px; height: 18px; }
.toast.is-success svg { color: var(--success); }
.toast.is-error svg   { color: var(--danger); }

/* â”€â”€ Hamburguer (mobile) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hamburger {
  display: none;
  background: transparent; border: none; color: var(--text-primary);
  padding: 0.4rem; cursor: pointer;
}

.hamburger svg { width: 24px; height: 24px; }

.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 49;
  background: rgba(0,0,0,0.55);
}

/* â”€â”€ CategorÃ­as List â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cat-list {
  display: flex; flex-direction: column; gap: 0.75rem;
}

.cat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: var(--transition);
}

.cat-item:hover {
  border-color: var(--border-hover);
}

.cat-item-info {
  display: flex; align-items: center; gap: 0.75rem;
}

.cat-icon-wrap {
  width: 36px; height: 36px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light);
}

.cat-icon-wrap svg { width: 18px; height: 18px; }
.cat-name { font-weight: 700; font-size: 0.95rem; }
.cat-slug { font-size: 0.78rem; color: var(--text-muted); }

/* â”€â”€ Perfil â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 560px;
}

.profile-avatar-large {
  width: 72px; height: 72px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.divider {
  height: 1px; background: var(--border);
  margin: 1.5rem 0;
}

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-md);
  }

  .sidebar-backdrop.open { display: block; }

  .main-content { margin-left: 0; }

  .hamburger { display: flex; }

  .topbar { padding: 0.85rem 1rem; }

  .content-area { padding: 1.25rem 1rem; }

  .form-row { grid-template-columns: 1fr; }

  .data-table th:nth-child(n+3),
  .data-table td:nth-child(n+3) {
    display: none;
  }
}

/* -- Drag & Drop — Link Cards ------------------------------------------------ */
.links-group { margin-bottom: 2rem; }

.links-group-header {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.links-group-header h3 {
  font-size: 0.9rem; font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em;
}

.links-group-badge {
  font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  background: rgba(99,102,241,0.15); color: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.2);
}

.links-group-badge.pinned-badge {
  background: rgba(245,158,11,0.12); color: #fbbf24;
  border-color: rgba(245,158,11,0.25);
}

.sortable-list {
  display: flex; flex-direction: column; gap: 0.6rem;
  min-height: 60px;
}

.link-drag-card {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.link-drag-card:hover { border-color: var(--border-hover); }

.drag-handle {
  color: var(--text-muted); cursor: grab;
  padding: 0.2rem; flex-shrink: 0;
  transition: color 0.2s ease;
  display: flex; align-items: center;
}

.drag-handle:active { cursor: grabbing; }
.drag-handle:hover  { color: var(--accent-light); }
.drag-handle svg    { width: 18px; height: 18px; }

.link-card-icon {
  width: 36px; height: 36px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light); flex-shrink: 0;
}

.link-card-icon svg { width: 16px; height: 16px; }

.link-card-info { flex: 1; min-width: 0; }

.link-card-title {
  font-size: 0.9rem; font-weight: 700; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.link-card-meta {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 0.15rem; flex-wrap: wrap;
}

.link-card-url {
  font-size: 0.75rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 260px;
}

.link-card-cat {
  font-size: 0.72rem; color: var(--text-muted); font-weight: 600;
}

.link-card-actions {
  display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0;
}

.sortable-ghost {
  opacity: 0.3;
  background: rgba(99,102,241,0.06) !important;
  border: 1px dashed var(--accent) !important;
}

.sortable-drag {
  box-shadow: 0 12px 30px -5px rgba(0,0,0,0.6), 0 0 35px -5px rgba(99,102,241,0.35) !important;
  border-color: var(--accent) !important;
  cursor: grabbing !important;
}

.empty-group {
  padding: 1.5rem; text-align: center;
  border: 1px dashed var(--border); border-radius: var(--radius-md);
  color: var(--text-muted); font-size: 0.85rem;
}

.saving-indicator {
  font-size: 0.8rem; color: var(--accent-light);
  display: inline-flex; align-items: center; gap: 0.4rem;
  opacity: 0; transition: opacity 0.3s ease; margin-left: auto;
}

.saving-indicator.visible { opacity: 1; }
.saving-indicator svg { width: 14px; height: 14px; animation: spin2 1s linear infinite; }

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