/* ──────────────────────────────────────────────
   Reset & base
────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #0a0a0f;
  color: #f0f0f5;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: #7c3aed; color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #2a2a3e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a5e; }

/* ──────────────────────────────────────────────
   Animations
────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes splash-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes equalizer-1 { from { height: 20% } to { height: 80% } }
@keyframes equalizer-2 { from { height: 40% } to { height: 100% } }
@keyframes equalizer-3 { from { height: 60% } to { height: 30% } }

.animate-float   { animation: float 3s ease-in-out infinite; }
.animate-fade-up { animation: fade-up 0.5s ease-out forwards; }

/* ──────────────────────────────────────────────
   Glass utilities
────────────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
}
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.glass-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}

/* ──────────────────────────────────────────────
   Profile page layout
────────────────────────────────────────────── */
#profile-bg-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}
.bg-radial-glow {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
}
.bg-grid {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background-size: 50px 50px;
}
.profile-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 64px 16px;
  z-index: 2;
}
.profile-card { width: 100%; max-width: 384px; }

/* Avatar */
.avatar-wrap {
  display: flex; justify-content: center; margin-bottom: 20px;
}
.avatar-inner {
  position: relative;
}
.avatar-box {
  width: 96px; height: 96px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.avatar-box img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initial {
  font-size: 2.25rem; font-weight: 800; color: #fff;
}
.avatar-dot {
  position: absolute; bottom: -4px; right: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0a0a0f;
}

/* Name / bio */
.profile-info { text-align: center; margin-bottom: 24px; }
.profile-tagline {
  font-size: 0.8125rem; color: #8b8b9a; margin-bottom: 6px;
}
.profile-extended-bio {
  font-size: 0.8125rem; color: #6b7280; line-height: 1.65;
  margin-top: 8px; white-space: pre-line;
  padding: 0 4px;
}
.profile-name {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 4px;
}
.profile-bio {
  font-size: 0.875rem; color: #8b8b9a;
  line-height: 1.6; white-space: pre-line;
}
.profile-views {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 0.75rem; color: #4a4a5a;
}
.profile-views svg { width: 12px; height: 12px; }

/* Social buttons */
.socials-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-bottom: 24px;
}
.social-btn {
  padding: 10px;
  border-radius: 12px;
  color: #6b7280;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover { transform: translateY(-1px); }

/* Link cards */
.links-col { display: flex; flex-direction: column; gap: 12px; }
.link-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border-radius: 16px; width: 100%;
  cursor: pointer;
}
.link-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.link-card:hover .link-icon { transform: scale(1.1); }
.link-icon svg { width: 16px; height: 16px; }
.link-favicon {
  width: 22px; height: 22px; border-radius: 5px;
  object-fit: contain; display: block;
}
.link-favicon-fallback {
  display: flex; align-items: center; justify-content: center;
}
.link-favicon-fallback svg { width: 16px; height: 16px; }
.link-title {
  flex: 1; font-size: 0.875rem; font-weight: 500; color: #f0f0f5;
}
.link-external { width: 14px; height: 14px; color: #4a4a5a; opacity: 0; transition: opacity 0.2s; }
.link-card:hover .link-external { opacity: 1; }

/* ──────────────────────────────────────────────
   Role tooltip on display name
────────────────────────────────────────────── */
.profile-name-wrap {
  position: relative; display: inline-block;
}
.role-tooltip {
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: var(--accent, #7c3aed);
  color: #fff; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: translateX(-50%) translateY(4px);
}
.profile-name-wrap:hover .role-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ──────────────────────────────────────────────
   Discord presence card
────────────────────────────────────────────── */
.discord-card {
  background: rgba(88,101,242,0.08);
  border: 1px solid rgba(88,101,242,0.22);
  border-radius: 16px; padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px; cursor: default;
  transition: background 0.2s, border-color 0.2s;
}
.discord-card:hover {
  background: rgba(88,101,242,0.13);
  border-color: rgba(88,101,242,0.38);
}
.discord-avatar-wrap { position: relative; flex-shrink: 0; }
.discord-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; display: block;
  background: rgba(88,101,242,0.2);
}
.discord-avatar-placeholder {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(88,101,242,0.2);
  display: flex; align-items: center; justify-content: center;
}
.discord-avatar-placeholder svg { width: 20px; height: 20px; color: #5865f2; }
.discord-status-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #0a0a0f;
}
.discord-status-dot.online  { background: #22c55e; }
.discord-status-dot.idle    { background: #f59e0b; }
.discord-status-dot.dnd     { background: #ef4444; }
.discord-status-dot.offline { background: #6b7280; }
.discord-info { flex: 1; min-width: 0; }
.discord-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.discord-name { font-size: 0.875rem; font-weight: 600; color: #f0f0f5; }
.discord-badges { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.discord-badge { width: 16px; height: 16px; object-fit: contain; vertical-align: middle; }
.discord-badge-nitro { filter: drop-shadow(0 0 3px rgba(88,101,242,.6)); }
.discord-activity {
  font-size: 0.725rem; color: #8b8b9a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.discord-badge {
  width: 18px; height: 18px; flex-shrink: 0;
  opacity: 0.7;
}
.discord-loading { opacity: 0.4; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:.8} }

/* ──────────────────────────────────────────────
   Music player
────────────────────────────────────────────── */
#music-player {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10,10,15,0.85);
}
.music-progress-track {
  height: 2px; width: 100%;
  background: rgba(255,255,255,0.07);
  cursor: pointer;
}
.music-progress-fill { height: 100%; transition: width 0.3s; }
.music-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; max-width: 768px; margin: 0 auto;
}
.music-eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; flex-shrink: 0; }
.music-eq-bar { width: 2px; border-radius: 2px; transition: height 0.3s; }
.music-info { flex: 1; min-width: 0; }
.music-title { font-size: 0.75rem; font-weight: 500; color: #f0f0f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-artist { font-size: 0.625rem; color: #4a4a5a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-btn {
  padding: 8px; border-radius: 8px;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; background: none;
}
.music-btn svg { width: 14px; height: 14px; }
.music-mute { color: #4a4a5a; }
.music-mute:hover { color: #a0a0b0; }

/* Inline volume control inside music bar */
.music-vol {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.music-vol-wrap {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.music-vol-slider {
  -webkit-appearance: none; appearance: none;
  width: 72px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.12); outline: none; cursor: pointer;
}
.music-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: #e0e0f0; cursor: pointer;
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
  transition: transform 0.15s;
}
.music-vol-slider::-webkit-slider-thumb:hover { transform: scale(1.25); }
.music-vol-slider::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: #e0e0f0; cursor: pointer; border: none;
}

/* ──────────────────────────────────────────────
   Profile top bar (nav links + volume control)
────────────────────────────────────────────── */
.profile-top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; height: 52px;
  background: rgba(10,10,15,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.profile-top-vol {
  display: flex; align-items: center; gap: 8px;
}
.vol-icon-btn {
  background: none; border: none; cursor: pointer; padding: 6px;
  color: rgba(255,255,255,0.55); border-radius: 8px;
  transition: color 0.2s, background 0.2s; flex-shrink: 0;
}
.vol-icon-btn:hover { color: #f0f0f5; background: rgba(255,255,255,0.06); }
.vol-icon-btn svg   { width: 18px; height: 18px; display: block; }
.vol-range {
  -webkit-appearance: none; appearance: none;
  width: 72px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.12); outline: none; cursor: pointer;
}
.vol-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; border-radius: 50%;
  background: #e0e0f0; cursor: pointer;
  box-shadow: 0 0 3px rgba(0,0,0,0.5); transition: transform 0.15s;
}
.vol-range::-webkit-slider-thumb:hover { transform: scale(1.25); }
.vol-range::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: #e0e0f0; cursor: pointer; border: none;
}
.profile-top-links {
  display: flex; align-items: center; gap: 6px;
}
.profile-top-links a {
  font-size: 0.8rem; color: rgba(255,255,255,0.55); padding: 5px 12px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s, background 0.2s;
}
.profile-top-links a:hover { color: #f0f0f5; background: rgba(255,255,255,0.06); }

/* ──────────────────────────────────────────────
   Splash screen
────────────────────────────────────────────── */
#splash {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #0a0a0f;
  cursor: pointer; user-select: none;
  transition: opacity 0.6s ease;
}
#splash.fading { opacity: 0; }
.splash-glow {
  position: absolute; inset: 0; pointer-events: none;
}
.splash-text {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
  position: relative; z-index: 1;
}
.splash-dot {
  position: absolute;
  font-size: 14px;
  animation: float 3s ease-in-out infinite;
  pointer-events: none;
}

/* ──────────────────────────────────────────────
   Portfolio page
────────────────────────────────────────────── */
.portfolio-header {
  text-align: center; padding: 64px 16px 32px;
  position: relative; z-index: 2;
}
.portfolio-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: #6b7280;
  margin-bottom: 24px; transition: color 0.2s;
}
.portfolio-back:hover { color: #f0f0f5; }
.portfolio-back svg { width: 16px; height: 16px; }
.portfolio-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.portfolio-subtitle { color: #8b8b9a; font-size: 0.875rem; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  max-width: 900px; margin: 0 auto;
  padding: 0 16px 64px;
  position: relative; z-index: 2;
}
.project-card {
  border-radius: 20px; overflow: hidden;
  transition: transform 0.2s;
}
.project-card:hover { transform: translateY(-2px); }
.project-img {
  width: 100%; height: 160px;
  object-fit: cover; display: block;
}
.project-img-placeholder {
  width: 100%; height: 160px;
  display: flex; align-items: center; justify-content: center;
}
.project-body { padding: 20px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.project-tag {
  font-size: 0.6875rem; padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: #8b8b9a;
}
.project-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.project-desc { font-size: 0.8125rem; color: #8b8b9a; line-height: 1.5; margin-bottom: 16px; }
.project-links { display: flex; gap: 8px; }
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; padding: 6px 12px;
  border-radius: 8px; border: none; cursor: pointer;
  transition: all 0.2s;
}
.project-link svg { width: 12px; height: 12px; }
.featured-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.6875rem; padding: 2px 8px; border-radius: 999px;
  margin-bottom: 8px;
}
.featured-badge svg { width: 10px; height: 10px; }

/* ──────────────────────────────────────────────
   Admin – shell
────────────────────────────────────────────── */
.admin-body { background: #0a0a0f; color: #f0f0f5; min-height: 100vh; display: flex; }

/* Sidebar */
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 20;
}
.sidebar-brand {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.875rem; color: #fff;
  flex-shrink: 0;
}
.sidebar-brand-name { font-size: 0.875rem; font-weight: 600; }
.sidebar-brand-sub { font-size: 0.6875rem; color: #4a4a5a; }
.sidebar-nav { flex: 1; padding: 8px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 0.8125rem; color: #6b7280;
  cursor: pointer; transition: all 0.15s;
  margin-bottom: 2px; border: none; background: none;
  width: 100%; text-align: left;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: #f0f0f5; }
.nav-item.active { background: rgba(124,58,237,0.15); color: #a78bfa; }
.sidebar-footer { padding: 12px 8px; border-top: 1px solid rgba(255,255,255,0.05); }
.sidebar-footer a, .sidebar-footer button {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 0.75rem; color: #4a4a5a;
  cursor: pointer; transition: all 0.15s;
  background: none; border: none; width: 100%; text-align: left;
}
.sidebar-footer a:hover, .sidebar-footer button:hover { color: #f0f0f5; background: rgba(255,255,255,0.04); }
.sidebar-footer svg { width: 14px; height: 14px; }

/* Main content area */
.admin-content {
  margin-left: 240px; flex: 1; display: flex; flex-direction: column;
  min-height: 100vh;
}
.admin-topbar {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.01);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.admin-topbar-title { font-size: 1rem; font-weight: 600; }
.admin-topbar-sub { font-size: 0.75rem; color: #4a4a5a; }
.btn-save {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  font-size: 0.8125rem; font-weight: 600; color: #fff;
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn-save:hover { filter: brightness(1.1); }
.btn-save:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-save svg { width: 14px; height: 14px; }
.admin-inner { padding: 24px; flex: 1; }

/* Admin sections */
.section-panel { display: none; }
.section-panel.active { display: block; }

/* Cards */
.admin-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 20px; margin-bottom: 16px;
}
.admin-card-title {
  font-size: 0.875rem; font-weight: 600; margin-bottom: 16px; color: #f0f0f5;
}
.admin-card-sub { font-size: 0.75rem; color: #4a4a5a; margin-top: 4px; }

/* Form fields */
.field-group { margin-bottom: 16px; }
.field-label { font-size: 0.75rem; font-weight: 500; color: #8b8b9a; margin-bottom: 6px; display: block; }
.admin-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.875rem; color: #f0f0f5;
  outline: none; transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}
.admin-input:focus {
  border-color: rgba(124,58,237,0.6);
  background: rgba(255,255,255,0.07);
}
.admin-input::placeholder { color: #4a4a5a; }
textarea.admin-input { resize: vertical; min-height: 80px; }
.admin-select {
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
  cursor: pointer;
}

/* Color swatch row */
.color-row { display: flex; align-items: center; gap: 10px; }
.color-swatch {
  width: 40px; height: 40px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.15);
  cursor: pointer; flex-shrink: 0;
}
.color-row .admin-input { flex: 1; }

/* Toggle */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 0.875rem; color: #d4d4e0; }
.toggle-desc { font-size: 0.75rem; color: #4a4a5a; }
.toggle-switch {
  position: relative; width: 42px; height: 24px; cursor: pointer; flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 12px;
  background: rgba(255,255,255,0.1); transition: background 0.2s;
}
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.toggle-switch input:checked ~ .toggle-track { background: #7c3aed; }
.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(18px); }

/* Stats grid */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px;
}
.stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 16px;
}
.stat-val { font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: 0.75rem; color: #4a4a5a; margin-top: 2px; }

/* Links section */
.link-list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; margin-bottom: 8px;
}
.link-list-item-drag { cursor: grab; color: #3a3a5a; }
.link-list-item-drag svg { width: 16px; height: 16px; }
.link-list-item-info { flex: 1; min-width: 0; }
.link-list-item-title { font-size: 0.875rem; font-weight: 500; }
.link-list-item-url { font-size: 0.75rem; color: #4a4a5a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-list-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.icon-btn {
  padding: 6px; border-radius: 8px; border: none; background: none;
  color: #4a4a5a; cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn:hover { background: rgba(255,255,255,0.07); color: #f0f0f5; }
.icon-btn.danger:hover { background: rgba(239,68,68,0.15); color: #f87171; }

/* Portfolio cards */
.portfolio-admin-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 12px;
}
.portfolio-admin-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 16px;
}
.portfolio-admin-card-title { font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.portfolio-admin-card-desc { font-size: 0.8125rem; color: #8b8b9a; margin-bottom: 12px; line-height: 1.4; }
.portfolio-admin-card-actions { display: flex; gap: 8px; }

/* Staff cards */
.staff-card {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; margin-bottom: 10px;
}
.staff-avatar {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff; flex-shrink: 0;
}
.staff-info { flex: 1; }
.staff-name { font-size: 0.875rem; font-weight: 600; }
.staff-user { font-size: 0.75rem; color: #4a4a5a; }
.staff-actions { display: flex; gap: 6px; }

/* Modal overlay */
.modal-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: #141420; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 24px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
}
.modal-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.btn-primary {
  padding: 9px 18px; border-radius: 10px; border: none;
  font-size: 0.8125rem; font-weight: 600; color: #fff;
  cursor: pointer; transition: filter 0.2s;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary {
  padding: 9px 18px; border-radius: 10px;
  font-size: 0.8125rem; font-weight: 500; color: #8b8b9a;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); color: #f0f0f5; }
.btn-danger {
  padding: 9px 18px; border-radius: 10px; border: none;
  font-size: 0.8125rem; font-weight: 600; color: #fff;
  background: rgba(239,68,68,0.8); cursor: pointer; transition: filter 0.2s;
}
.btn-danger:hover { filter: brightness(1.1); }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 12px;
  font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: translateY(100px); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.3); color: #34d399; }
.toast.error   { background: rgba(239,68,68,0.2);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.toast svg { width: 16px; height: 16px; }

/* Add button */
.btn-add {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; border: none;
  font-size: 0.8125rem; font-weight: 600; color: #fff;
  cursor: pointer; transition: filter 0.2s;
}
.btn-add:hover { filter: brightness(1.1); }
.btn-add svg { width: 14px; height: 14px; }

/* Admin login */
.login-page {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 16px;
  background: #0a0a0f;
}
.login-card {
  width: 100%; max-width: 380px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 32px;
}
.login-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.25rem;
}
.login-title { font-size: 1.25rem; font-weight: 700; text-align: center; margin-bottom: 4px; }
.login-sub { font-size: 0.8125rem; color: #4a4a5a; text-align: center; margin-bottom: 24px; }
.login-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #f87171; border-radius: 10px; padding: 10px 14px;
  font-size: 0.8125rem; margin-bottom: 16px;
}
.btn-login {
  width: 100%; padding: 12px; border-radius: 10px; border: none;
  font-size: 0.9375rem; font-weight: 600; color: #fff;
  cursor: pointer; transition: filter 0.2s; margin-top: 4px;
}
.btn-login:hover { filter: brightness(1.1); }

/* Responsive */
@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .admin-topbar { padding: 12px 16px; }
  .admin-inner { padding: 16px; }
  .portfolio-admin-grid { grid-template-columns: 1fr; }
}
