/* ==========================================================================
   16-BIO: Dark Cyber-Brutalism (Neon Edition) Master Styles
   Public Landing Page & Admin Dashboard
   ========================================================================== */

:root {
  --bg-dark: #090a10;
  --bg-card: #11121d;
  --bg-surface: #161726;
  --bg-elevated: #1e1f32;
  --neon-cyan: #00f3ff;
  --neon-pink: #ff007f;
  --neon-lime: #39ff14;
  --neon-yellow: #facc15;
  --neon-purple: #a855f7;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

/* ==========================================================================
   NO VERTICAL WHITE SCROLLBAR (Full Mobile & Desktop Custom Styling)
   ========================================================================== */
html, body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-heading);
  min-height: 100vh;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-cyan) var(--bg-dark);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 243, 255, 0.8);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-pink);
  box-shadow: 0 0 8px rgba(255, 0, 127, 0.8);
}

/* Hide vertical scrollbar ONLY on Mobile for Landing Page */
@media (max-width: 768px) {
  body.home-landing-page,
  html:has(body.home-landing-page) {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE & Edge */
  }

  body.home-landing-page::-webkit-scrollbar,
  html:has(body.home-landing-page)::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Android Webkit */
    width: 0 !important;
    height: 0 !important;
  }
}

/* Background Cyber Grid Pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 243, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   PUBLIC LANDING PAGE LAYOUT (Fully Responsive: Mobile & Desktop)
   ========================================================================== */
.bio-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 48px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Top Admin Trigger Pill */
.top-admin-nav {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
}

.btn-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #11121d;
  color: var(--neon-cyan);
  border: 1.5px solid var(--neon-cyan);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 2px 2px 0px var(--neon-pink);
  transition: all 0.2s ease;
}

.btn-admin-pill:hover {
  background: var(--neon-cyan);
  color: #090a10;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--neon-pink);
}

.btn-admin-pill svg {
  width: 13px;
  height: 13px;
}

/* Profile Header Section */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
}

.avatar-wrapper {
  position: relative;
  margin-bottom: 18px;
}

.profile-avatar {
  width: 105px;
  height: 105px;
  object-fit: cover;
  border-radius: 16px;
  border: 3.5px solid var(--neon-cyan);
  box-shadow: 4px 4px 0px var(--neon-pink), 0 0 20px rgba(0, 243, 255, 0.4);
  display: block;
}

.avatar-verified {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  background: var(--neon-pink);
  color: #ffffff;
  border: 2px solid var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--neon-pink);
}

.avatar-verified svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 3.5;
}

.profile-name-box {
  background: #12131f;
  border: 2px solid var(--neon-cyan);
  box-shadow: 4px 4px 0px var(--neon-pink);
  padding: 6px 18px;
  margin-bottom: 8px;
  display: inline-block;
}

.profile-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.profile-handle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.profile-bio {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 440px;
  margin-bottom: 20px;
}

/* Social Icons Row (Auto-adapting: collapses completely with ZERO space when empty) */
.social-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
  margin-bottom: 22px;
  transition: all 0.25s ease;
}

.social-icons-row:empty,
.social-icons-row[data-empty="true"],
.social-icons-row[style*="display: none"] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #12131f;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  border-radius: 8px;
  box-shadow: 3px 3px 0px var(--neon-pink);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--neon-cyan);
  color: var(--bg-dark);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--neon-pink), 0 0 14px var(--neon-cyan);
}

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

/* ==========================================================================
   MODERN CYBER-BRUTALIST SKELETON LOADING
   ========================================================================== */
.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 20%,
    rgba(0, 243, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.04) 80%
  );
  background-size: 200% 100%;
  animation: cyberShimmer 1.5s infinite ease-in-out;
  border-radius: 8px;
}

@keyframes cyberShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-link-card {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid rgba(0, 243, 255, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 4px 4px 0px rgba(0, 243, 255, 0.1);
}

.skeleton-media-box {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  flex-shrink: 0;
}

.skeleton-text-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  margin-left: 16px;
}

.skeleton-line-title {
  height: 16px;
  width: 60%;
}

.skeleton-line-sub {
  height: 11px;
  width: 40%;
}

.skeleton-arrow-box {
  width: 18px;
  height: 18px;
  margin-left: 10px;
}

.fade-in-content {
  animation: contentFadeIn 0.35s ease forwards;
}

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   LINKS CONTAINER & CARDS
   ========================================================================== */
.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.link-card {
  width: 100%;
  background: var(--bg-card);
  border: 2.5px solid var(--neon-cyan);
  border-radius: 12px;
  color: #ffffff;
  padding: 14px 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 4px 4px 0px var(--neon-cyan), 0 0 14px rgba(0, 243, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

/* Dynamic Accent Colors */
.link-card[data-color="pink"], .link-card:nth-child(2) {
  border-color: var(--neon-pink);
  box-shadow: 4px 4px 0px var(--neon-pink), 0 0 14px rgba(255, 0, 127, 0.2);
}
.link-card[data-color="lime"], .link-card:nth-child(3) {
  border-color: var(--neon-lime);
  box-shadow: 4px 4px 0px var(--neon-lime), 0 0 14px rgba(57, 255, 20, 0.2);
}
.link-card[data-color="yellow"], .link-card:nth-child(4) {
  border-color: var(--neon-yellow);
  box-shadow: 4px 4px 0px var(--neon-yellow), 0 0 14px rgba(250, 204, 21, 0.2);
}
.link-card[data-color="purple"], .link-card:nth-child(5) {
  border-color: var(--neon-purple);
  box-shadow: 4px 4px 0px var(--neon-purple), 0 0 14px rgba(168, 85, 247, 0.2);
}

.link-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0px var(--neon-cyan), 0 0 18px rgba(0, 243, 255, 0.6);
}
.link-card[data-color="pink"]:hover, .link-card:nth-child(2):hover {
  box-shadow: 1px 1px 0px var(--neon-pink), 0 0 18px rgba(255, 0, 127, 0.6);
}
.link-card[data-color="lime"]:hover, .link-card:nth-child(3):hover {
  box-shadow: 1px 1px 0px var(--neon-lime), 0 0 18px rgba(57, 255, 20, 0.6);
}
.link-card[data-color="yellow"]:hover, .link-card:nth-child(4):hover {
  box-shadow: 1px 1px 0px var(--neon-yellow), 0 0 18px rgba(250, 204, 21, 0.6);
}
.link-card[data-color="purple"]:hover, .link-card:nth-child(5):hover {
  box-shadow: 1px 1px 0px var(--neon-purple), 0 0 18px rgba(168, 85, 247, 0.6);
}

.link-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

/* Symmetrical Leading Slot: Image or Icon */
.link-media-slot {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  border: 2px solid var(--neon-cyan);
  box-shadow: 2px 2px 0px var(--neon-pink);
}

.link-card[data-color="pink"] .link-thumb, .link-card:nth-child(2) .link-thumb {
  border-color: var(--neon-pink);
  box-shadow: 2px 2px 0px var(--neon-cyan);
}
.link-card[data-color="lime"] .link-thumb, .link-card:nth-child(3) .link-thumb {
  border-color: var(--neon-lime);
  box-shadow: 2px 2px 0px var(--neon-cyan);
}
.link-card[data-color="yellow"] .link-thumb, .link-card:nth-child(4) .link-thumb {
  border-color: var(--neon-yellow);
  box-shadow: 2px 2px 0px var(--neon-pink);
}
.link-card[data-color="purple"] .link-thumb, .link-card:nth-child(5) .link-thumb {
  border-color: var(--neon-purple);
  box-shadow: 2px 2px 0px var(--neon-cyan);
}

.link-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #151624;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  box-shadow: 2px 2px 0px var(--neon-pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-card[data-color="pink"] .link-icon-box, .link-card:nth-child(2) .link-icon-box {
  border-color: var(--neon-pink);
  box-shadow: 2px 2px 0px var(--neon-cyan);
  color: var(--neon-pink);
}
.link-card[data-color="lime"] .link-icon-box, .link-card:nth-child(3) .link-icon-box {
  border-color: var(--neon-lime);
  box-shadow: 2px 2px 0px var(--neon-cyan);
  color: var(--neon-lime);
}
.link-card[data-color="yellow"] .link-icon-box, .link-card:nth-child(4) .link-icon-box {
  border-color: var(--neon-yellow);
  box-shadow: 2px 2px 0px var(--neon-pink);
  color: var(--neon-yellow);
}
.link-card[data-color="purple"] .link-icon-box, .link-card:nth-child(5) .link-icon-box {
  border-color: var(--neon-purple);
  box-shadow: 2px 2px 0px var(--neon-cyan);
  color: var(--neon-purple);
}

.link-icon-box svg {
  width: 22px;
  height: 22px;
}

.link-text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.link-text-content.no-sub {
  justify-content: center;
}

.link-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.link-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--neon-cyan);
  color: #090a10;
  box-shadow: 0 0 8px var(--neon-cyan);
}

.link-card[data-color="pink"] .link-badge, .link-card:nth-child(2) .link-badge {
  background: var(--neon-pink);
  color: #ffffff;
  box-shadow: 0 0 8px var(--neon-pink);
}

.link-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-arrow {
  color: var(--neon-cyan);
  flex-shrink: 0;
  margin-left: 10px;
  transition: transform 0.2s ease;
}

.link-card:hover .link-arrow {
  transform: translate(2px, -2px);
}

.link-arrow svg {
  width: 18px;
  height: 18px;
}

.page-footer {
  margin-top: auto;
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  letter-spacing: 0.05em;
}

.page-footer a {
  color: var(--neon-cyan);
  text-decoration: none;
}

/* ==========================================================================
   ADMIN PANEL DASHBOARD STYLES
   ========================================================================== */
.admin-body {
  background: var(--bg-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  height: 64px;
  background: rgba(17, 18, 29, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--neon-cyan);
  box-shadow: 0 4px 20px rgba(0, 243, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.admin-logo .badge-tag {
  background: var(--neon-pink);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 0 8px var(--neon-pink);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-header-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}
.btn-logout:hover {
  background: #ef4444;
  color: #fff;
}

/* Admin Container Layout */
.admin-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  flex: 1;
}

/* Login Card Overlay (Shown when unauthenticated) */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 10, 16, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.login-card {
  background: #11121d;
  border: 2.5px solid var(--neon-cyan);
  box-shadow: 6px 6px 0px var(--neon-pink), 0 0 30px rgba(0, 243, 255, 0.3);
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.login-card p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: #090a10;
  border: 1.5px solid #27273a;
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--neon-cyan);
  color: #090a10;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 4px 4px 0px var(--neon-pink);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--neon-pink), 0 0 16px var(--neon-cyan);
}

/* Tabs Bar */
.admin-tabs-bar {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #1e2035;
  padding-bottom: 12px;
  margin-bottom: 28px;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: var(--neon-cyan);
  color: #090a10;
  box-shadow: 3px 3px 0px var(--neon-pink);
}

/* Tab Panels */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Dashboard Cards */
.admin-card {
  background: #11121d;
  border: 2px solid #202237;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4);
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid #1e2035;
  padding-bottom: 12px;
}

.admin-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

/* Manage Links Table / List */
.admin-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-link-row {
  background: #161828;
  border: 1.5px solid #262842;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
  position: relative;
}

.admin-link-row:hover {
  border-color: rgba(0, 243, 255, 0.6);
}

/* Drag Handle Grip Icon (Press & Hold for Mobile + Desktop) */
.drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 38px;
  cursor: grab;
  color: #64748b;
  touch-action: none;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.drag-handle:active {
  cursor: grabbing;
  color: var(--neon-cyan);
  transform: scale(1.1);
}

.drag-handle:hover {
  color: var(--neon-cyan);
}

.drag-handle svg {
  width: 18px;
  height: 18px;
}

/* Dragging States */
.admin-link-row.dragging {
  opacity: 0.45;
  border-color: var(--neon-cyan) !important;
  background: #0f111e !important;
  box-shadow: 0 0 16px rgba(0, 243, 255, 0.4) !important;
  transform: scale(0.99);
}

.admin-link-row.drag-over-top {
  border-top: 3px solid var(--neon-cyan) !important;
  box-shadow: 0 -4px 14px rgba(0, 243, 255, 0.5) !important;
}

.admin-link-row.drag-over-bottom {
  border-bottom: 3px solid var(--neon-cyan) !important;
  box-shadow: 0 4px 14px rgba(0, 243, 255, 0.5) !important;
}

.row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.row-media-preview {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #090a10;
  border: 1px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.row-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-media-preview svg {
  width: 20px;
  height: 20px;
  color: var(--neon-cyan);
}

.row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.row-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-url {
  font-size: 0.75rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-stats {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-lime);
  background: rgba(57, 255, 20, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  background: #202237;
  color: #cbd5e1;
  border: 1px solid #333654;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-action:hover {
  background: var(--neon-cyan);
  color: #090a10;
}

.btn-icon-action.btn-del:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

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

/* Modal Form */
.modal-admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 10, 16, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
}

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

.modal-admin-box {
  background: #11121d;
  border: 2.5px solid var(--neon-cyan);
  box-shadow: 6px 6px 0px var(--neon-pink);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
}

/* SVG Picker Grid */
.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  background: #090a10;
  border: 1px solid #27273a;
  border-radius: 8px;
  padding: 10px;
  margin-top: 6px;
}

.icon-picker-item {
  width: 44px;
  height: 44px;
  border: 1px solid #27273a;
  border-radius: 6px;
  background: #12131f;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-picker-item:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: #181b2e;
}

.icon-picker-item.selected {
  border-color: var(--neon-cyan);
  background: var(--neon-cyan);
  color: #090a10;
  box-shadow: 0 0 10px var(--neon-cyan);
}

.icon-picker-item svg {
  width: 20px;
  height: 20px;
}

/* Live Preview Box */
.preview-inline-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #161828;
  border: 1.5px dashed var(--neon-cyan);
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 8px;
}

.preview-media-square {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 2px solid var(--neon-cyan);
  box-shadow: 2px 2px 0px var(--neon-pink);
  background: #090a10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.preview-media-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-media-square svg {
  width: 22px;
  height: 22px;
  color: var(--neon-cyan);
}

/* ==========================================================================
   MODERN CYBER TOAST NOTIFICATION SYSTEM (1.5s Auto-Hide)
   ========================================================================== */
.cyber-toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999999;
  pointer-events: none;
  width: 90%;
  max-width: 440px;
}

.cyber-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(17, 18, 29, 0.96);
  backdrop-filter: blur(14px);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cyber-toast.hide-out {
  opacity: 0;
  transform: translateY(-16px) scale(0.95);
}

.cyber-toast.success {
  border: 2px solid var(--neon-lime);
  box-shadow: 4px 4px 0px rgba(57, 255, 20, 0.3), 0 0 20px rgba(57, 255, 20, 0.25);
}

.cyber-toast.success .toast-icon {
  color: var(--neon-lime);
}

.cyber-toast.error {
  border: 2px solid var(--neon-pink);
  box-shadow: 4px 4px 0px rgba(255, 0, 127, 0.3), 0 0 20px rgba(255, 0, 127, 0.25);
}

.cyber-toast.error .toast-icon {
  color: var(--neon-pink);
}

.cyber-toast.info {
  border: 2px solid var(--neon-cyan);
  box-shadow: 4px 4px 0px rgba(0, 243, 255, 0.3), 0 0 20px rgba(0, 243, 255, 0.25);
}

.cyber-toast.info .toast-icon {
  color: var(--neon-cyan);
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 20px;
  height: 20px;
}

.toast-message {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

/* 1.5 Second Progress Countdown Bar */
.toast-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--neon-cyan);
  animation: toastCountdown 1.5s linear forwards;
}

.cyber-toast.success .toast-progress-bar {
  background: var(--neon-lime);
}

.cyber-toast.error .toast-progress-bar {
  background: var(--neon-pink);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastCountdown {
  from { width: 100%; }
  to { width: 0%; }
}

/* ==========================================================================
   MODERN GENERATION SCROLL ANIMATIONS & BATCH SENTINEL
   ========================================================================== */
@keyframes modernCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.link-card.animated-entrance {
  animation: modernCardEntrance 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.links-scroll-sentinel {
  height: 20px;
  width: 100%;
  margin-top: 10px;
  pointer-events: none;
}

.batch-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
}

.batch-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 243, 255, 0.25);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spinLoader 0.7s linear infinite;
}

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

/* ==========================================================================
   MOBILE-ONLY: DISABLE STICKY HOVER & ENABLE TACTILE PRESS FEEL FEEDBACK
   Applies exclusively to touch screens and mobile viewports (<= 768px)
   ========================================================================== */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  /* Prevent default browser tap highlight grey/blue box */
  *, *::before, *::after {
    -webkit-tap-highlight-color: transparent !important;
  }

  /* -------------------------------------------------------------------------
     1. DISABLE HOVER STATES IN MOBILE (Prevents sticky transforms & lingering glows)
     ------------------------------------------------------------------------- */
  .link-card:hover {
    transform: none !important;
    box-shadow: 4px 4px 0px var(--neon-cyan), 0 0 14px rgba(0, 243, 255, 0.2) !important;
  }
  .link-card[data-color="pink"]:hover, .link-card:nth-child(2):hover {
    box-shadow: 4px 4px 0px var(--neon-pink), 0 0 14px rgba(255, 0, 127, 0.2) !important;
  }
  .link-card[data-color="lime"]:hover, .link-card:nth-child(3):hover {
    box-shadow: 4px 4px 0px var(--neon-lime), 0 0 14px rgba(57, 255, 20, 0.2) !important;
  }
  .link-card[data-color="yellow"]:hover, .link-card:nth-child(4):hover {
    box-shadow: 4px 4px 0px var(--neon-yellow), 0 0 14px rgba(250, 204, 21, 0.2) !important;
  }
  .link-card[data-color="purple"]:hover, .link-card:nth-child(5):hover {
    box-shadow: 4px 4px 0px var(--neon-purple), 0 0 14px rgba(168, 85, 247, 0.2) !important;
  }
  .link-card:hover .link-arrow {
    transform: none !important;
  }

  .social-btn:hover {
    background: #12131f !important;
    color: var(--neon-cyan) !important;
    transform: none !important;
    box-shadow: 3px 3px 0px var(--neon-pink) !important;
  }

  .btn-primary:hover,
  .btn-return-home:hover {
    transform: none !important;
    box-shadow: 4px 4px 0px var(--neon-pink) !important;
  }

  .tab-btn:hover:not(.active) {
    background: transparent !important;
    color: #94a3b8 !important;
  }

  .btn-icon-action:hover {
    background: #202237 !important;
    color: #cbd5e1 !important;
    border-color: #333654 !important;
    transform: none !important;
  }

  .btn-header-link:hover:not(.btn-logout) {
    background: transparent !important;
    color: #cbd5e1 !important;
  }

  .icon-picker-item:hover:not(.selected) {
    border-color: #27273a !important;
    color: #94a3b8 !important;
    background: #12131f !important;
  }

  .login-back-link:hover {
    color: #94a3b8 !important;
  }

  /* -------------------------------------------------------------------------
     2. ULTRA-SMOOTH TACTILE PRESS FEEL FEEDBACK ON TOUCH / CLICK (:active)
     ------------------------------------------------------------------------- */
  /* Main Link Bio Cards: Smooth tactile haptic sink */
  .link-card:active {
    transform: scale(0.972) translateY(2px) !important;
    box-shadow: 1.5px 1.5px 0px var(--neon-cyan), 0 0 8px rgba(0, 243, 255, 0.4) !important;
    transition: transform 0.08s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.08s ease !important;
  }
  .link-card[data-color="pink"]:active, .link-card:nth-child(2):active {
    box-shadow: 1.5px 1.5px 0px var(--neon-pink), 0 0 8px rgba(255, 0, 127, 0.4) !important;
  }
  .link-card[data-color="lime"]:active, .link-card:nth-child(3):active {
    box-shadow: 1.5px 1.5px 0px var(--neon-lime), 0 0 8px rgba(57, 255, 20, 0.4) !important;
  }
  .link-card[data-color="yellow"]:active, .link-card:nth-child(4):active {
    box-shadow: 1.5px 1.5px 0px var(--neon-yellow), 0 0 8px rgba(250, 204, 21, 0.4) !important;
  }
  .link-card[data-color="purple"]:active, .link-card:nth-child(5):active {
    box-shadow: 1.5px 1.5px 0px var(--neon-purple), 0 0 8px rgba(168, 85, 247, 0.4) !important;
  }

  /* Social Icons: Tactile bounce press */
  .social-btn:active {
    transform: scale(0.91) translate(1.5px, 1.5px) !important;
    box-shadow: 1px 1px 0px var(--neon-pink), 0 0 12px var(--neon-cyan) !important;
    background: rgba(0, 243, 255, 0.2) !important;
    transition: transform 0.08s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.08s ease !important;
  }

  /* Primary Action Buttons & Submit Buttons */
  .btn-primary:active,
  button[type="submit"]:active,
  .btn-return-home:active {
    transform: scale(0.965) translate(2px, 2px) !important;
    box-shadow: 1.5px 1.5px 0px var(--neon-pink), 0 0 16px var(--neon-cyan) !important;
    transition: transform 0.08s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.08s ease !important;
  }

  /* Dashboard Tab Buttons */
  .tab-btn:active {
    transform: scale(0.94) !important;
    transition: transform 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }

  /* Header & Action Buttons */
  .btn-header-link:active,
  .btn-icon-action:active {
    transform: scale(0.90) translateY(1px) !important;
    transition: transform 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }

  /* SVG Icon Studio Grid Items */
  .icon-picker-item:active {
    transform: scale(0.88) !important;
    border-color: var(--neon-cyan) !important;
    background: rgba(0, 243, 255, 0.15) !important;
    transition: transform 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }

  /* Back Links & Text Buttons */
  .login-back-link:active,
  .page-footer a:active {
    transform: scale(0.95) !important;
    opacity: 0.75;
    transition: transform 0.08s ease, opacity 0.08s ease !important;
  }
}

