/* ==========================================================================
   Wassim Bannour — Reach
   Lusion-Caliber Luxury Dark Aesthetic • Razor-Sharp Typography • Glassmorphism
   ========================================================================== */

:root {
  /* Obsidian Void Palette */
  --bg-void: #05070c;
  --bg-surface: rgba(13, 17, 28, 0.72);
  --bg-surface-hover: rgba(20, 26, 42, 0.88);
  --bg-surface-active: rgba(28, 36, 58, 0.95);

  /* Primary Interactive Accents */
  --electric-cyan: #00f0ff;
  --electric-cyan-glow: rgba(0, 240, 255, 0.35);
  --deep-violet: #8b5cf6;
  --deep-violet-glow: rgba(139, 92, 246, 0.35);
  --warm-amber: #f59e0b;
  --emerald-live: #10b981;
  --rose-accent: #f43f5e;
  --linkedin-blue: #0a66c2;

  /* Specular Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --border-cyan: rgba(0, 240, 255, 0.45);
  --border-violet: rgba(139, 92, 246, 0.45);

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-card: 0 12px 32px -10px rgba(0, 0, 0, 0.7);
  --shadow-card-hover: 0 20px 45px -12px rgba(0, 0, 0, 0.85);
  --shadow-cyan: 0 14px 40px -10px rgba(0, 240, 255, 0.25);
  --shadow-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.4);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  font-size: 16px;
}

body {
  background-color: var(--bg-void);
  color: #ffffff;
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px 80px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Custom Minimalist Cursor
   ========================================================================== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--electric-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--electric-cyan);
  transition: opacity 0.2s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 240, 255, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-spring), height 0.25s var(--ease-spring), border-color 0.25s ease, background 0.25s ease;
}

.cursor-ring.active-hover {
  width: 48px;
  height: 48px;
  border-color: var(--electric-cyan);
  background: rgba(0, 240, 255, 0.08);
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

/* ==========================================================================
   3D WebGL Canvas & Background Atmosphere
   ========================================================================== */
.webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.vignette-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(5, 7, 12, 0.15) 0%, rgba(5, 7, 12, 0.85) 100%);
}

.ambient-glow {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  mix-blend-mode: screen;
  transition: transform 0.6s ease;
}

.glow-cyan {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #00f0ff 0%, rgba(0, 240, 255, 0) 70%);
}

.glow-violet {
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
}

/* ==========================================================================
   Main Central Container (Modern Linktree / Bento Grid Layout)
   ========================================================================== */
.tree-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ==========================================================================
   Profile Header
   ========================================================================== */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 16px;
}

/* Avatar Stage */
.avatar-stage {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
  cursor: pointer;
}

.avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #8b5cf6);
  filter: blur(14px);
  opacity: 0.65;
  transition: opacity 0.4s ease, filter 0.4s ease;
  animation: pulseAvatarGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseAvatarGlow {
  0% { opacity: 0.45; filter: blur(12px); transform: scale(0.98); }
  100% { opacity: 0.75; filter: blur(18px); transform: scale(1.04); }
}

.avatar-stage:hover .avatar-glow {
  opacity: 0.95;
  filter: blur(20px);
}

.avatar-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #00f0ff, #8b5cf6 50%, rgba(255, 255, 255, 0.4));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.avatar-crop {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #0d111c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s var(--ease-spring);
}

.avatar-stage:hover .avatar-img {
  transform: scale(1.06);
}

.avatar-initials {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: #ffffff;
}

/* Online Beacon on Avatar */
.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070c;
  border-radius: 50%;
  border: 2px solid #05070c;
}

.status-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-live);
  box-shadow: 0 0 10px var(--emerald-live);
}

.status-ping {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Profile Identity */
.profile-identity {
  margin-bottom: 14px;
}

.profile-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--electric-cyan);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}

.profile-role {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
  margin-top: 6px;
}

/* Profile Pills */
.profile-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s ease;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.pill-cyan {
  color: var(--electric-cyan);
  border-color: rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.05);
}

.pill-violet {
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.05);
}

.pill-dim {
  color: rgba(255, 255, 255, 0.65);
}

/* Bio */
.profile-bio {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  max-width: 460px;
  margin: 0 auto;
}

/* ==========================================================================
   2-Column Bento Grid & Section Headers
   ========================================================================== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.grid-span-full {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  padding: 0 4px;
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cyan-dot {
  background: var(--electric-cyan);
  box-shadow: 0 0 8px var(--electric-cyan);
}

.violet-dot {
  background: var(--deep-violet);
  box-shadow: 0 0 8px var(--deep-violet);
}

.amber-dot {
  background: var(--warm-amber);
  box-shadow: 0 0 8px var(--warm-amber);
}

/* ==========================================================================
   Luxury Frosted Glass Link Cards
   ========================================================================== */
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  height: 100%;
  min-height: 82px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--ease-spring), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
}

.link-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Specular Glare Layer */
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle 180px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.08), transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Shimmer Edge */
.card-edge-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  pointer-events: none;
}

/* ==========================================================================
   Flagship ProjLink Hero Showcase (Centerpiece "Screaming to be Clicked")
   ========================================================================== */
.flagship-wrapper {
  position: relative;
  width: 100%;
}

/* Ambient Pulsing Halo Behind the Card */
.flagship-ambient-halo {
  position: absolute;
  inset: -14px;
  border-radius: calc(var(--radius-lg) + 12px);
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 240, 255, 0.35) 0%, rgba(139, 92, 246, 0.18) 45%, transparent 75%);
  filter: blur(28px);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
  animation: flagshipHaloBreathe 4s ease-in-out infinite alternate;
}

@keyframes flagshipHaloBreathe {
  0% {
    opacity: 0.55;
    transform: scale(0.98);
    filter: blur(22px);
  }
  100% {
    opacity: 0.95;
    transform: scale(1.02);
    filter: blur(34px);
  }
}

/* Enhanced Section Label for Flagship */
.section-label-flagship {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.flagship-section-title {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.cyan-dot-pulse {
  background: var(--electric-cyan);
  box-shadow: 0 0 10px var(--electric-cyan);
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.cyan-dot-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--electric-cyan);
  animation: pingDot 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingDot {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.flagship-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

/* Featured Card Special Styling (ProjLink Flagship) */
.card-featured {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(15, 24, 42, 0.9) 35%, rgba(10, 14, 24, 0.95) 100%);
  border: 1.5px solid rgba(0, 240, 255, 0.45);
  box-shadow: 
    0 20px 48px -10px rgba(0, 0, 0, 0.85),
    0 0 35px -5px rgba(0, 240, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 25px rgba(0, 240, 255, 0.08);
}

.card-flagship {
  position: relative;
  z-index: 1;
  padding: 16px 20px;
  min-height: auto;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  animation: cardAttentionPulse 3.5s ease-in-out infinite alternate;
  transition: transform 0.4s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

@keyframes cardAttentionPulse {
  0% {
    box-shadow: 
      0 16px 40px -10px rgba(0, 0, 0, 0.85),
      0 0 22px -5px rgba(0, 240, 255, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      inset 0 0 18px rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.45);
  }
  100% {
    box-shadow: 
      0 20px 48px -8px rgba(0, 0, 0, 0.9),
      0 0 38px 0px rgba(0, 240, 255, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      inset 0 0 28px rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.75);
  }
}

.card-flagship:hover {
  border-color: var(--electric-cyan);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18) 0%, rgba(18, 30, 52, 0.95) 35%, rgba(12, 17, 28, 0.98) 100%);
  box-shadow: 
    0 24px 54px -10px rgba(0, 0, 0, 0.95),
    0 0 45px 5px rgba(0, 240, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 32px rgba(0, 240, 255, 0.18);
  transform: translateY(-3px) scale(1.008);
}

/* Automatic Periodic Specular Light Sweep */
.flagship-light-sweep {
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(0, 240, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(0, 240, 255, 0.12) 55%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: sweepLight 4.2s ease-in-out infinite;
  z-index: 2;
}

@keyframes sweepLight {
  0%, 20% {
    left: -120%;
  }
  60%, 100% {
    left: 180%;
  }
}

/* Flagship Icon Stage */
.icon-flagship {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(13, 17, 28, 0.8));
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s ease;
}

.icon-pulse-ring {
  position: absolute;
  inset: -5px;
  border-radius: 18px;
  border: 1px dashed rgba(0, 240, 255, 0.4);
  animation: rotateRing 12s linear infinite;
  pointer-events: none;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.card-flagship:hover .icon-flagship {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
  border-color: var(--electric-cyan);
}

/* Flagship Content Area */
.flagship-content {
  gap: 4px;
}

.flagship-headline {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.flagship-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flagship-title {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  background: linear-gradient(120deg, #ffffff 40%, #bbf7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 14px rgba(0, 240, 255, 0.3);
}

.flagship-sub-indicator {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--electric-cyan);
  opacity: 0.85;
}

.flagship-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-flagship-gold {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.badge-flagship-gold svg {
  color: #fbbf24;
  filter: drop-shadow(0 0 4px #fbbf24);
}

.badge-live-pulse {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.5);
  color: var(--electric-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.beacon-cyan-ping {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--electric-cyan);
  box-shadow: 0 0 8px var(--electric-cyan);
}

.beacon-cyan-ping::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.4);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.flagship-desc {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  white-space: normal;
  max-width: 520px;
}

/* Flagship Compact CTA Pill Button */
.flagship-cta-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.95) 0%, rgba(0, 160, 255, 0.95) 100%);
  color: #040814;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, filter 0.3s ease;
}

.card-flagship:hover .flagship-cta-pill {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.65), inset 0 1px 0 #ffffff;
  filter: brightness(1.06);
}

.cta-arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(4, 8, 20, 0.9);
  color: var(--electric-cyan);
  transition: transform 0.3s var(--ease-spring), background 0.3s ease, color 0.3s ease;
}

.card-flagship:hover .cta-arrow-circle {
  transform: translate(2px, -2px);
  background: #ffffff;
  color: #040814;
}

/* 3D Laser & Interactive Card Elements */
.card-laser-target {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0;
}

.bot-card-pulse-ring {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid var(--electric-cyan);
  box-shadow: 0 0 15px var(--electric-cyan);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: 99994;
}

.bot-laser-beam {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #00f0ff 0%, #38bdf8 70%, #ffffff 100%);
  box-shadow: 
    0 0 8px #00f0ff,
    0 0 18px rgba(0, 240, 255, 0.8),
    0 0 28px rgba(0, 240, 255, 0.5);
  border-radius: 2px;
  transform-origin: 0 50%;
  pointer-events: none;
  z-index: 99992;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bot-laser-beam::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #00f0ff, 0 0 22px #00f0ff;
  animation: laserHitPing 0.7s ease-in-out infinite alternate;
}

@keyframes laserHitPing {
  from { transform: scale(0.8); opacity: 0.7; }
  to { transform: scale(1.4); opacity: 1; }
}

.bot-poking-badge {
  position: absolute;
  left: -20px;
  bottom: -10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(10, 16, 32, 0.95);
  border: 1.5px solid var(--electric-cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--electric-cyan);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  animation: pokingBadgeBounce 1.6s ease-in-out infinite;
}

@keyframes pokingBadgeBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.06); }
}

.poking-hand {
  font-size: 1.05rem;
  filter: drop-shadow(0 0 6px #00f0ff);
}

.poking-label {
  letter-spacing: 0.04em;
}

/* 4th-Wall Glass Tap Ripple Effect */
.glass-tap-ripple {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.95);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.4) 0%, rgba(139, 92, 246, 0.18) 50%, transparent 75%);
  box-shadow: 
    0 0 30px rgba(0, 240, 255, 0.85),
    inset 0 0 20px rgba(0, 240, 255, 0.4);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: 99999;
}

/* 4th-Wall Glass-Tap Hand Indicator */
.bot-glass-finger {
  position: absolute;
  top: -24px;
  right: -24px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(10, 16, 32, 0.96);
  border: 1.5px solid var(--electric-cyan);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--electric-cyan);
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
  transform: translateZ(35px);
}

.glass-finger-emoji {
  font-size: 1.25rem;
  filter: drop-shadow(0 0 8px #00f0ff);
  animation: fingerTapGlass 1.2s ease-in-out infinite alternate;
}

@keyframes fingerTapGlass {
  0% { transform: scale(1) translateZ(0); }
  100% { transform: scale(1.3) translateZ(20px); filter: drop-shadow(0 0 14px #00f0ff); }
}

.glass-finger-label {
  letter-spacing: 0.05em;
}

/* Peeking Mode at Bottom Edge */
.bot-stage.peeking {
  position: fixed !important;
  bottom: 12px !important;
  top: auto !important;
  flex-direction: column-reverse !important;
  align-items: center !important;
  gap: 12px !important;
}

.bot-stage.peeking .bot-avatar-wrap {
  transform: translateY(38px); /* Hides body, reveals only cute head & eyes! */
}

.bot-stage.peeking .bot-glass-finger {
  display: inline-flex !important;
}

.bot-stage.peeking .bot-poking-badge {
  display: none !important;
}

.bubble-btn-launch {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25) 0%, rgba(0, 160, 255, 0.25) 100%);
  border: 1px solid var(--electric-cyan);
  color: var(--electric-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  text-decoration: none;
}

.bubble-btn-launch:hover {
  background: var(--electric-cyan);
  color: #040814;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  transform: translateY(-1px);
}

/* Card Highlighting when Pointed at by LinkBot */
.bot-pointed-card {
  border-color: var(--electric-cyan) !important;
  box-shadow: 
    0 24px 60px -8px rgba(0, 0, 0, 0.95),
    0 0 45px rgba(0, 240, 255, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 20px rgba(0, 240, 255, 0.2) !important;
  transform: translateY(-6px) scale(1.025) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Card Icons */
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--ease-spring), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.link-card:hover .card-icon {
  transform: scale(1.08);
}

.icon-cyan {
  color: var(--electric-cyan);
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
}

.card-featured:hover .icon-cyan {
  background: rgba(0, 240, 255, 0.18);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.icon-violet {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
}

.link-card:hover .icon-violet {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

.icon-blue {
  color: #60a5fa;
  background: rgba(10, 102, 194, 0.12);
  border-color: rgba(10, 102, 194, 0.3);
}

.link-card:hover .icon-blue {
  box-shadow: 0 0 20px rgba(10, 102, 194, 0.4);
}

.icon-silver {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.icon-emerald {
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.link-card:hover .icon-emerald {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.icon-rose {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.25);
}

.link-card:hover .icon-rose {
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.35);
}

/* Card Content */
.card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: #ffffff;
  transition: color 0.25s ease;
}

.link-card:hover .card-title {
  color: #ffffff;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.005em;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.badge-live {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--electric-cyan);
}

.live-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric-cyan);
  box-shadow: 0 0 6px var(--electric-cyan);
  animation: beaconBlink 1.8s ease-in-out infinite alternate;
}

@keyframes beaconBlink {
  0% { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.2); }
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--emerald-live);
}

.beacon-emerald {
  background: var(--emerald-live);
  box-shadow: 0 0 6px var(--emerald-live);
}

.badge-violet {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}

.badge-blue {
  background: rgba(10, 102, 194, 0.15);
  border-color: rgba(10, 102, 194, 0.4);
  color: #93c5fd;
}

.badge-rose {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.badge-dim {
  color: rgba(255, 255, 255, 0.6);
}

/* Card Arrow */
.card-arrow {
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-spring), color 0.35s ease;
}

.link-card:hover .card-arrow {
  color: #ffffff;
  transform: translate(3px, -3px);
}

.card-featured:hover .card-arrow {
  color: var(--electric-cyan);
}

/* ==========================================================================
   Email Card Special (With 1-Click Copy Button)
   ========================================================================== */
.card-email {
  cursor: default;
}

.email-action {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card-copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.card-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: scale(1.06);
}

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

/* ==========================================================================
   Social Grid (Facebook & Instagram Dock)
   ========================================================================== */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 100%;
}

.social-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s var(--ease-spring);
  box-shadow: var(--shadow-card);
}

.social-cell:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.cell-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.social-cell:hover .cell-icon {
  transform: scale(1.1);
}

.icon-fb {
  background: rgba(24, 119, 242, 0.15);
  color: #1877f2;
}

.icon-ig {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(253, 29, 29, 0.15));
  color: #f43f5e;
}

.cell-content {
  display: flex;
  flex-direction: column;
}

.cell-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
}

.cell-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Grounded Footer
   ========================================================================== */
.tree-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px 0;
  text-align: center;
}

.footer-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.footer-share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
}

.copyright {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.location-stamp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Specular Notification Toast
   ========================================================================== */
.specular-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 60px);
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(13, 17, 28, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(20px);
  transition: transform 0.4s var(--ease-spring), opacity 0.35s ease;
}

.specular-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--electric-cyan);
  box-shadow: 0 0 8px var(--electric-cyan);
}

.toast-body {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: #ffffff;
}

.toast-icon {
  color: var(--electric-cyan);
}

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */
@media (max-width: 680px) {
  body {
    padding: 36px 14px 60px;
  }

  .tree-container {
    max-width: 500px;
    gap: 20px;
  }

  .links-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-name {
    font-size: 1.8rem;
  }

  .avatar-stage {
    width: 96px;
    height: 96px;
  }

  .link-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .card-icon {
    width: 42px;
    height: 42px;
  }

  .social-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Grand Student Hero Mobile Refinements */
  .flagship-ambient-halo {
    inset: -8px;
    filter: blur(20px);
  }

  .card-hero-student {
    padding: 20px 16px !important;
    gap: 14px !important;
  }

  .student-hero-body {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .student-hero-title {
    font-size: 1.28rem !important;
  }

  .student-hero-tagline {
    font-size: 0.86rem !important;
  }

  .student-deliverables-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .deliv-sub {
    white-space: normal !important;
  }

  .student-hero-cta-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .giant-cta-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 20px !important;
  }

  .giant-cta-btn .cta-label {
    font-size: 0.88rem !important;
  }

  .icon-flagship {
    width: 50px;
    height: 50px;
  }
}

/* ==========================================================================
   Interactive Futuristic Guide Droid (LinkBot Guide)
   ========================================================================== */
.bot-companion {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99990;
}

/* Stage that flies around the screen */
.bot-stage {
  position: fixed;
  z-index: 99995;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform-origin: center center;
  transform-style: preserve-3d;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.bot-companion.active .bot-stage {
  opacity: 1;
  visibility: visible;
}

.bot-companion.docked .bot-stage {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5) translate(80px, 80px);
  pointer-events: none;
}

/* Avatar Wrap & Organic 3D Physics */
.bot-avatar-wrap {
  position: relative;
  width: 76px;
  height: 84px;
  flex-shrink: 0;
  transform-style: preserve-3d;
  filter: drop-shadow(0 10px 25px rgba(0, 240, 255, 0.45));
  cursor: pointer;
}

@keyframes botFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(-1.5deg); }
  100% { transform: translateY(3px) rotate(1.5deg); }
}

.bot-halo {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.45) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 75%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}

/* Plasma Jet Thruster */
.bot-thruster-flame {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #00f0ff 0%, #8b5cf6 60%, transparent 100%);
  filter: blur(3px);
  animation: botThruster 0.5s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes botThruster {
  0% {
    height: 16px;
    opacity: 0.6;
    transform: translateX(-50%) scaleX(0.85);
  }
  100% {
    height: 26px;
    opacity: 1;
    transform: translateX(-50%) scaleX(1.2);
    filter: blur(4px);
  }
}

/* Robot SVG Animation Elements */
.bot-svg {
  display: block;
  overflow: visible;
}

.bot-eye {
  transform-origin: 50% 50%;
  animation: botEyeBlink 3.8s ease-in-out infinite;
}

@keyframes botEyeBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

.bot-antenna-pulse {
  transform-origin: 50px 6px;
  animation: botAntennaPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes botAntennaPing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

.bot-core-reactor {
  animation: reactorGlow 2s ease-in-out infinite alternate;
}

@keyframes reactorGlow {
  0% { opacity: 0.5; filter: drop-shadow(0 0 2px #00f0ff); }
  100% { opacity: 1; filter: drop-shadow(0 0 6px #00f0ff); }
}

/* Simulated Click Indicator (👆 Tap Demonstration) */
.bot-click-indicator {
  position: absolute;
  right: -52px;
  bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.3s ease;
  animation: clickTapBounce 1.3s ease-in-out infinite;
}

.bot-companion.step-1 .bot-click-indicator {
  opacity: 1;
}

@keyframes clickTapBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(9px) scale(1.15); }
}

.click-hand {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.9));
}

.click-beacon-ring {
  position: absolute;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--electric-cyan);
  animation: beaconPing 1.3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beaconPing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.click-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: #040812;
  background: var(--electric-cyan);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-top: 2px;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  letter-spacing: 0.04em;
}

/* Holographic Speech Bubble */
.bot-speech-bubble {
  position: relative;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: rgba(10, 16, 32, 0.95);
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  border-radius: calc(var(--radius-lg) + 2px);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(0, 240, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bubble-tag {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bot-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric-cyan);
  box-shadow: 0 0 8px var(--electric-cyan);
  animation: beaconBlink 1.4s ease-in-out infinite alternate;
}

.bot-name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--electric-cyan);
  letter-spacing: 0.08em;
}

.bubble-step-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bubble-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.bubble-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.bubble-body {
  margin: 2px 0;
}

.bubble-text {
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.52;
  color: rgba(255, 255, 255, 0.92);
}

.bubble-text strong {
  color: var(--electric-cyan);
  font-weight: 600;
}

.bubble-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bubble-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.bubble-btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #0099ff 100%);
  color: #040812;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
}

.bubble-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.6);
  filter: brightness(1.08);
}

.bubble-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
}

.bubble-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Docked Floating Mascot Button */
.bot-docked-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(10, 16, 32, 0.94);
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.35);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.bot-companion.docked .bot-docked-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bot-docked-btn:hover {
  transform: translateY(-2px);
  border-color: var(--electric-cyan);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 240, 255, 0.55);
}

.docked-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.docked-label {
  letter-spacing: -0.01em;
}

.docked-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--electric-cyan);
  box-shadow: 0 0 8px var(--electric-cyan);
  animation: beaconBlink 1.6s ease-in-out infinite alternate;
}

/* Spotlight Pulsing Target Class on Focused Card */
.bot-spotlight {
  animation: botTargetGlow 1.8s ease-in-out infinite alternate !important;
  border-color: var(--electric-cyan) !important;
}

@keyframes botTargetGlow {
  0% {
    box-shadow: 
      0 20px 48px -10px rgba(0, 0, 0, 0.85),
      0 0 30px rgba(0, 240, 255, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  100% {
    box-shadow: 
      0 28px 65px -8px rgba(0, 0, 0, 0.95),
      0 0 65px rgba(0, 240, 255, 0.85),
      inset 0 0 25px rgba(0, 240, 255, 0.3);
  }
}

/* Mobile Responsiveness for Guide Droid */
@media (max-width: 680px) {
  .bot-stage {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 92vw;
    left: 4vw !important;
    transform: none !important;
  }

  .bot-avatar-wrap {
    width: 64px;
    height: 72px;
  }

  .bot-svg {
    width: 64px;
    height: 72px;
  }

  .bot-speech-bubble {
    width: 100%;
    padding: 14px 16px;
  }

  .bot-click-indicator {
    right: -10px;
    bottom: -15px;
    transform: scale(0.85);
  }

  .bot-docked-btn {
    bottom: 16px;
    right: 16px;
    padding: 9px 15px;
    font-size: 0.8rem;
  }
}

