:root {
  --bg-color: #080809;
  --bg-card: rgba(18, 19, 23, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text-pure: #ffffff;
  --text-dim: #9ea1a8;
  --text-dark: #585a63;
  --spotify-accent: rgba(255, 255, 255, 0.15);
  --accent-glow: rgba(255, 255, 255, 0.2);
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 11, 14, 0.6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(10, 11, 14, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

img,
svg,
a {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-pure);
  font-family: var(--font-sans);
  overflow: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M5 5 L17 17 M17 5 L5 17' stroke='%23000000' stroke-opacity='0.5' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M5 5 L17 17 M17 5 L5 17' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 11 11, crosshair !important;
  perspective: 1000px;
}

*,
*::before,
*::after {
  cursor: inherit !important;
}

a,
a:hover,
button,
button:hover,
[role="button"],
.gh-split-panel,
.mem-media-card,
.uc-subcard-discord,
.ctx-item {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5 5 L19 19 M19 5 L5 19' stroke='%23000000' stroke-opacity='0.55' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M5 5 L19 19 M19 5 L5 19' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") 12 12, pointer !important;
}

.entry-curtain {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle at center, rgba(8, 9, 14, 0.42) 0%, rgba(5, 6, 10, 0.72) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-backdrop-filter 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.85s;
  will-change: opacity, backdrop-filter;
}

.entry-curtain.fading {
  opacity: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  visibility: hidden;
  pointer-events: none;
}

.entry-curtain.fading .entry-minimal-wrap {
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.entry-minimal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  user-select: none;
}

.entry-avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
}

.entry-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  display: block;
}

.entry-avatar-wrap .user-status-dot {
  width: 14px;
  height: 14px;
  right: 1px;
  bottom: 1px;
  border: 2.5px solid #0b0c10;
}

.entry-prompt {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 7vw, 4.6rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.06em;
  text-indent: 0.06em;
  color: #ffffff;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
  transition: color 0.3s ease, letter-spacing 0.3s ease, text-shadow 0.3s ease;
  display: inline-block;
}

.entry-hint {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: rgba(255, 255, 255, 0.62);
  animation: entryHintPulse 2.6s infinite ease-in-out;
}

@keyframes entryHintPulse {
  0%, 100% {
    opacity: 0.48;
  }
  50% {
    opacity: 0.92;
  }
}

/* ── Simultaneous Soft Fade & Illumination Entrance ── */
body.site-locked .scene-center .unified-card,
body.site-locked .scene-center .brand-title,
body.site-locked .scene-center .discord-activity-pill,
body.site-locked .scene-center .horizontal-nav,
body.site-locked .scene-center .visitor-counter-card,
body.site-locked #bottomVisualizerCanvas {
  opacity: 0;
  pointer-events: none !important;
}

body.site-entered .scene-center .unified-card,
body.site-entered .scene-center .brand-title,
body.site-entered .scene-center .discord-activity-pill,
body.site-entered .scene-center .horizontal-nav,
body.site-entered .scene-center .visitor-counter-card {
  animation: simultaneousIlluminate 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.site-entered #bottomVisualizerCanvas {
  animation: simultaneousIlluminate 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes simultaneousIlluminate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* ── Interactive Focus / Spot Dimming ── */
.scene-center .brand-title,
.scene-center .discord-activity-pill,
.scene-center .horizontal-nav,
.scene-center .visitor-counter-card {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When the user hovers over any main box, dim the other boxes to focus attention */
.scene-center:has(.discord-activity-pill:hover) .brand-title,
.scene-center:has(.discord-activity-pill:hover) .horizontal-nav,
.scene-center:has(.discord-activity-pill:hover) .visitor-counter-card {
  opacity: 0.35;
  filter: blur(1.5px) brightness(0.75);
}

.scene-center:has(.horizontal-nav:hover) .brand-title,
.scene-center:has(.horizontal-nav:hover) .discord-activity-pill,
.scene-center:has(.horizontal-nav:hover) .visitor-counter-card {
  opacity: 0.35;
  filter: blur(1.5px) brightness(0.75);
}

.scene-center:has(.brand-title:hover) .discord-activity-pill,
.scene-center:has(.brand-title:hover) .horizontal-nav,
.scene-center:has(.brand-title:hover) .visitor-counter-card {
  opacity: 0.38;
  filter: blur(1.5px) brightness(0.75);
}

.scene-center:has(.visitor-counter-card:hover) .brand-title,
.scene-center:has(.visitor-counter-card:hover) .discord-activity-pill,
.scene-center:has(.visitor-counter-card:hover) .horizontal-nav {
  opacity: 0.45;
  filter: blur(1px) brightness(0.8);
}

.cursor-dot {
  display: none !important;
}

.cursor-dot::before,
.cursor-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
  transition: width 0.15s ease, background-color 0.15s ease;
}

.cursor-dot::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.cursor-dot::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.cursor-ring {
  display: none !important;
}

body.cursor-hover .cursor-dot::before,
body.cursor-hover .cursor-dot::after {
  width: 21px;
  box-shadow: 0 0 14px rgba(255, 255, 255, 1);
}

.click-ripple {
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%) scale(0.15);
  animation: rippleExpand 0.65s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}

@keyframes rippleExpand {
  0% {
    width: 8px;
    height: 8px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.2);
  }

  100% {
    width: 85px;
    height: 85px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
    border-color: rgba(255, 255, 255, 0);
  }
}

.spotify-dynamic-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, var(--spotify-accent) 0%, transparent 70%);
  opacity: 0.45;
  transition: background 1.2s ease, opacity 1s ease;
}

#dna-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

.background-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, #18191d 0%, #0c0c0e 55%, #050506 100%);
  overflow: hidden;
}

.discord-bg-banner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: blur(25px) brightness(0.8);
  transform: scale(1.1);
  transition: background-image 1s ease, opacity 1s ease;
}

.mist-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.95);
}

.scene-center {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  will-change: transform;
}

.brand-title {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: var(--text-pure);
  text-shadow: 0 4px 25px rgba(255, 255, 255, 0.25);
  margin-bottom: 18px;
  padding: 8px 18px;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  transform-style: preserve-3d;
  will-change: transform;
  transition: text-shadow 0.25s ease;
}

.brand-title:hover {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 10px rgba(255, 255, 255, 0.4);
}

.discord-activity-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(22, 23, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.7);
  margin-bottom: 16px;
  width: 394px;
  max-width: 92vw;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.discord-activity-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 255, 255, 0.05);
}

.pill-banner-slice {
  width: 100%;
  height: 0px;
  background-size: cover;
  background-position: center;
  transition: height 0.4s ease;
}

.pill-banner-slice.has-banner {
  height: 55px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pill-main-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 12px;
  pointer-events: none;
}

.avatar-holder {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.avatar-holder img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: #111;
}

.user-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #14151a;
  background: #747f8d;
}

.user-status-dot.online {
  background: #3ba55d;
  box-shadow: 0 0 6px #3ba55d;
}

.user-status-dot.idle {
  background: #faa81a;
}

.user-status-dot.dnd {
  background: #ed4245;
}

.user-status-dot.offline {
  background: #747f8d;
}

.pill-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

.pill-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-username {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-pure);
}

.pill-custom-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
}

.pill-custom-badge.badge-vscode {
  background: rgba(0, 122, 204, 0.15);
  border-color: rgba(0, 122, 204, 0.4);
  color: #38bdf8;
}

.pill-custom-badge.badge-spotify {
  background: rgba(30, 215, 96, 0.15);
  border-color: rgba(30, 215, 96, 0.4);
  color: #1ed760;
}

.pill-activity {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.act-state {
  display: inline-block;
  max-width: 275px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-spotify-progress {
  width: 100%;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pill-spotify-progress.hidden {
  display: none !important;
}

.spotify-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.spotify-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--spotify-progress-pct, 0%);
  background: #1ed760;
  box-shadow: 0 0 8px rgba(30, 215, 96, 0.7);
  border-radius: 3px;
  transition: width 0.3s linear;
}

.spotify-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-dark);
  font-family: var(--font-mono);
}

.pill-badge {
  flex-shrink: 0;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-verified-svg {
  width: 20px;
  height: 20px;
  color: #5865F2;
  filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.5));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.badge-verified-svg:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 12px rgba(88, 101, 242, 0.8));
}

/* ── Visitor Counter ───────────────────────────────────── */
.visitor-counter-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.04em;
  background: transparent;
  border: none;
  box-shadow: none;
}

.visitor-counter-icon {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.visitor-counter-label {
  color: rgba(255, 255, 255, 0.28);
}

.visitor-counter-sep {
  color: rgba(255, 255, 255, 0.15);
}

.visitor-counter-num {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  transition: opacity 0.3s ease;
}

.visitor-counter-num.loading {
  opacity: 0.3;
}

.horizontal-nav {
  position: relative;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 394px;
  max-width: 94vw;
  background: rgba(22, 23, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.7);
  padding: 4px;
  pointer-events: auto;
}

.icon-nav-btn {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 52;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  background: transparent;
  border: none;
  border-radius: 13px;
  outline: none;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  transition: background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
}

.icon-nav-btn * {
  pointer-events: none;
}

.icon-nav-btn:hover,
.icon-nav-btn.is-hover {
  transform: translateY(-2.5px) scale(1.08);
}

.icon-nav-btn:active {
  transform: scale(0.92);
  filter: brightness(1.4);
}

.icon-nav-btn.btn-clicked {
  animation: navBtnPulse 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navBtnPulse {
  0% {
    transform: scale(0.92);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.nav-svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
}

.icon-nav-btn:hover .nav-svg,
.icon-nav-btn.is-hover .nav-svg {
  transform: scale(1.12);
}

.btn-discord {
  color: #5865F2;
}

.btn-discord:hover,
.btn-discord.is-hover {
  background: rgba(88, 101, 242, 0.22);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover .nav-svg,
.btn-discord.is-hover .nav-svg {
  filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.7));
}

.btn-gunslol {
  color: #b166e6;
}

.btn-gunslol:hover,
.btn-gunslol.is-hover {
  background: rgba(177, 102, 230, 0.22);
  box-shadow: 0 0 16px rgba(177, 102, 230, 0.35);
}

.btn-gunslol:hover .nav-svg,
.btn-gunslol.is-hover .nav-svg {
  filter: drop-shadow(0 0 8px rgba(177, 102, 230, 0.7));
}

.btn-youtube {
  color: #ff0000;
}

.btn-youtube:hover,
.btn-youtube.is-hover {
  background: rgba(255, 0, 0, 0.22);
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.35);
}

.btn-youtube:hover .nav-svg,
.btn-youtube.is-hover .nav-svg {
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.7));
}

.btn-spotify {
  color: #1DB954;
}

.btn-spotify:hover,
.btn-spotify.is-hover {
  background: rgba(29, 185, 84, 0.22);
  box-shadow: 0 0 16px rgba(29, 185, 84, 0.35);
}

.btn-spotify:hover .nav-svg,
.btn-spotify.is-hover .nav-svg {
  filter: drop-shadow(0 0 8px rgba(29, 185, 84, 0.7));
}

.btn-github {
  color: #f0f6fc;
}

.btn-github:hover,
.btn-github.is-hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.btn-github:hover .nav-svg,
.btn-github.is-hover .nav-svg {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.btn-terminal {
  color: #00ff66;
}

.btn-terminal:hover,
.btn-terminal.is-hover {
  background: rgba(0, 255, 102, 0.2);
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.35);
}

.btn-terminal:hover .nav-svg,
.btn-terminal.is-hover .nav-svg {
  filter: drop-shadow(0 0 8px rgba(0, 255, 102, 0.7));
}

.interactive-terminal {
  position: absolute;
  bottom: 85px;
  width: 90vw;
  max-width: 480px;
  background: rgba(12, 13, 17, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  z-index: 80;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.interactive-terminal.hidden {
  opacity: 0;
  transform: translateY(15px) scale(0.96);
  pointer-events: none;
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 6px;
  margin-right: 12px;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.close {
  background: #ff5f56;
  cursor: pointer;
}

.dot.min {
  background: #ffbd2e;
}

.dot.max {
  background: #27c93f;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  flex-grow: 1;
}

.terminal-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dark);
}

.terminal-body {
  padding: 14px;
  max-height: 200px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.term-line.cmd {
  color: #fff;
}

.term-line.output {
  color: #a5b4fc;
}

.term-line.error {
  color: #f87171;
}

.term-line.text-dim {
  color: var(--text-dim);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prompt-sign {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #34d399;
}

.term-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fff;
}

@media (max-width: 640px) {
  .brand-title {
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
  }

  .horizontal-nav {
    gap: 8px;
  }

  .icon-nav-btn {
    width: 40px;
    height: 40px;
  }

  .nav-svg {
    width: 18px;
    height: 18px;
  }
}

@media (hover: none),
(pointer: coarse) {
  * {
    cursor: default !important;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep standard subtle transitions without breaking site experience */
}

.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: radial-gradient(circle at center, rgba(10, 11, 16, 0.6) 0%, rgba(5, 5, 8, 0.85) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.35s ease, visibility 0.35s;
}

.confirm-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
}

.confirm-modal-box {
  position: relative;
  background: rgba(16, 17, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 22px 24px;
  width: 100%;
  max-width: 340px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 35px rgba(255, 255, 255, 0.05);
  transform: scale(1) translateY(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  overflow: hidden;
}

.confirm-modal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.confirm-modal-overlay.hidden .confirm-modal-box {
  transform: scale(0.88) translateY(18px);
  opacity: 0;
}

.confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.confirm-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.confirm-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  animation: pulseTag 2s infinite ease-in-out;
}

@keyframes pulseTag {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.confirm-host {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.confirm-url {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 9px 12px;
  border-radius: 9px;
  margin-bottom: 16px;
  word-break: break-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.confirm-url:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.confirm-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 11px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease, filter 0.2s ease;
}

.confirm-btn:active {
  transform: scale(0.96);
}

.confirm-btn.cancel {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.confirm-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.confirm-btn.proceed {
  background: #ffffff;
  color: #08080a;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.confirm-btn.proceed:hover {
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.45);
  transform: translateY(-1.5px);
}

.bottom-visualizer-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 42px;
  pointer-events: none;
  z-index: 25;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  opacity: 0.9;
}

#bottomVisualizerCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Cyber Themes (Switchable via CMD `theme <name>`) ── */
body.theme-matrix {
  --bg-color: #030804;
  --spotify-accent: rgba(34, 197, 94, 0.25);
  --accent-glow: rgba(34, 197, 94, 0.4);
}

body.theme-matrix .brand-title {
  text-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
  color: #86efac;
}

body.theme-matrix .icon-nav-btn:hover {
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.35);
}

body.theme-matrix .cursor-dot {
  background-color: #4ade80;
  box-shadow: 0 0 12px #22c55e;
}

body.theme-matrix .cursor-ring {
  border-color: rgba(74, 222, 128, 0.5);
}

body.theme-bloodmoon {
  --bg-color: #090304;
  --spotify-accent: rgba(239, 68, 68, 0.25);
  --accent-glow: rgba(239, 68, 68, 0.4);
}

body.theme-bloodmoon .brand-title {
  text-shadow: 0 0 25px rgba(239, 68, 68, 0.65);
  color: #fca5a5;
}

body.theme-bloodmoon .icon-nav-btn:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
}

body.theme-bloodmoon .cursor-dot {
  background-color: #f87171;
  box-shadow: 0 0 12px #ef4444;
}

body.theme-bloodmoon .cursor-ring {
  border-color: rgba(248, 113, 113, 0.5);
}

body.theme-synthwave {
  --bg-color: #08030d;
  --spotify-accent: rgba(192, 132, 252, 0.25);
  --accent-glow: rgba(217, 70, 239, 0.4);
}

body.theme-synthwave .brand-title {
  text-shadow: 0 0 25px rgba(217, 70, 239, 0.6);
  color: #f0abfc;
}

body.theme-synthwave .icon-nav-btn:hover {
  border-color: rgba(217, 70, 239, 0.6);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.35);
}

body.theme-synthwave .cursor-dot {
  background-color: #e879f9;
  box-shadow: 0 0 12px #d946ef;
}

body.theme-synthwave .cursor-ring {
  border-color: rgba(232, 121, 249, 0.5);
}

/* ── Tech / Node Details Modal ── */
.tech-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tech-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tech-modal-box {
  background: rgba(18, 19, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 90%;
  max-width: 440px;
  padding: 22px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.05);
  transform: scale(1);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-modal-overlay.hidden .tech-modal-box {
  transform: scale(0.92);
}

.tech-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.tech-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.tech-modal-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-pure);
  flex-grow: 1;
  font-family: var(--font-sans);
}

.tech-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 1.25rem;
  cursor: pointer !important;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  pointer-events: auto !important;
}

.tech-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.tech-modal-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.tech-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-pure);
}

.tech-modal-projects {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #7dd3fc;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.tech-project-item {
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1.4;
}

/* ── Typewriter Bio ── */
.typewriter-bio {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-top: 6px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0;
  user-select: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

body.site-entered .typewriter-bio {
  opacity: 1;
  transform: translateY(0);
}

.tw-prefix {
  color: rgba(255, 255, 255, 0.2);
  margin-right: 2px;
}

.tw-text {
  color: rgba(255, 255, 255, 0.55);
}

.tw-cursor {
  color: rgba(255, 255, 255, 0.4);
  animation: twBlink 1.1s step-end infinite;
  margin-left: 1px;
}

@keyframes twBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── Cursor Trail ── */
.cursor-trail-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999990;
  transform: translate(-50%, -50%);
  animation: trailFade 0.55s ease-out forwards;
}

@keyframes trailFade {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
  }
}

/* ── Discord Profile Card ── */
.discord-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 8500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  perspective: 1000px;
}

.discord-card-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.discord-card-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.discord-card {
  position: relative;
  width: 495px;
  max-width: calc(100vw - 32px);
  background: #1e1f26;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s cubic-bezier(0.2, 0, 0.38, 0.9), box-shadow 0.15s ease;
  /* No overflow:hidden here so badge tooltips can overflow */
}

.discord-card-overlay:not(.hidden) .discord-card {
  animation: cardPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.discord-card.is-tilted {
  animation: none !important;
}

.discord-card.is-resetting {
  animation: none !important;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s ease;
}

@keyframes cardPop {
  0% {
    opacity: 0;
    transform: perspective(1000px) scale(0.88) translateY(-12px);
  }

  100% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
  }
}

.dc-banner {
  width: 100%;
  height: 120px;
  background: #111216;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
  border-radius: 16px 16px 0 0;
}

.dc-avatar-wrap {
  position: absolute;
  top: 74px;
  left: 16px;
  width: 80px;
  height: 80px;
}

.dc-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 5px solid #1e1f26;
  object-fit: cover;
  background: #111;
  display: block;
}

.dc-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #1e1f26;
  background: #747f8d;
}

.dc-status-dot.online {
  background: #3ba55d;
  box-shadow: 0 0 8px #3ba55d88;
}

.dc-status-dot.idle {
  background: #faa81a;
}

.dc-status-dot.dnd {
  background: #ed4245;
}

.dc-status-dot.offline {
  background: #747f8d;
}

.dc-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.2s, color 0.2s;
  pointer-events: auto !important;
}

.dc-close:hover {
  background: rgba(237, 66, 69, 0.3);
  color: #fff;
  border-color: rgba(237, 66, 69, 0.5);
}

.dc-close svg {
  width: 14px;
  height: 14px;
}

.dc-body {
  padding: 52px 16px 16px;
}

.dc-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.dc-display-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.dc-badge-shield {
  width: 22px;
  height: 22px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7289da;
}

.dc-username {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

/* Discord Badges */
.dc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  min-height: 0;
}

.dc-badge {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, transform 0.15s;
  padding: 2px;
}

.dc-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.15);
}

.dc-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dc-badge svg {
  display: block;
}

/* Tooltip on badge — appears BELOW to avoid overflow:hidden clipping */
.dc-badge::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: #111216;
  color: #fff;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
}

.dc-badge:hover::after {
  opacity: 1;
  visibility: visible;
}

.dc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 10px 0;
}

.dc-section-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 7px;
}

.dc-about {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.dc-activity {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
}

.dc-act-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dim);
  overflow: hidden;
}

.dc-act-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.dc-act-info {
  min-width: 0;
}

.dc-act-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-act-detail {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
}

.dc-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
}

.dc-link-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.67rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.dc-link-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.dc-link-yt:hover {
  background: rgba(255, 0, 0, 0.15);
  color: #ff4444;
  border-color: rgba(255, 0, 0, 0.3);
}

.dc-link-sp:hover {
  background: rgba(30, 215, 96, 0.15);
  color: #1ed760;
  border-color: rgba(30, 215, 96, 0.3);
}



/* ══════════════════════════════════════════════════════════════════
   UNIFIED SINGLE-CARD PROFILE LAYOUT (Inspired by Modern Glassmorphic Card)
   ══════════════════════════════════════════════════════════════════ */
.unified-card {
  position: relative;
  width: min(720px, 94vw);
  padding: 34px 34px 30px;
  border-radius: 22px;
  background: rgba(8, 9, 13, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
  transition: border-color 0.25s ease;
}

.unified-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

@keyframes ucBorderSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.uc-border-ring {
  position: absolute !important;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  overflow: hidden;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.uc-border-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 960px;
  height: 960px;
  background: conic-gradient(
    transparent 0deg,
    transparent 220deg,
    rgba(255, 255, 255, 0.3) 260deg,
    #ffffff 315deg,
    rgba(255, 255, 255, 0.4) 345deg,
    transparent 360deg
  );
  will-change: transform;
  animation: ucBorderSpin 4.5s linear infinite;
}

.uc-banner-glow {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.uc-banner-glow.has-banner {
  opacity: 0.06;
}

.unified-card>*:not(.uc-banner-glow) {
  position: relative;
  z-index: 1;
}

/* ── Header: Avatar + Name/Badges/Bio/Meta ── */
.uc-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.uc-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.uc-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.uc-avatar-wrap .user-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #0e0f14;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.uc-avatar-wrap .user-status-dot.online {
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
}

.uc-header-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.uc-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.uc-brand-title {
  font-size: clamp(1.45rem, 3.2vw, 1.95rem) !important;
  letter-spacing: 0.14em !important;
  text-indent: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.1;
  text-align: left;
  color: #ffffff;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
}

.uc-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.uc-badge-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
  transition: transform 0.2s ease, color 0.2s ease;
}

.uc-badge-item:hover {
  transform: translateY(-1px) scale(1.1);
  color: #ffffff;
}

.uc-typewriter-bio {
  margin: 0 !important;
  justify-content: flex-start !important;
  font-size: 0.85rem !important;
  min-height: 1.25em;
  color: rgba(226, 228, 236, 0.78);
}

.uc-visitor-meta {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  justify-content: flex-start !important;
  font-size: 0.76rem !important;
  color: rgba(180, 184, 198, 0.68);
  gap: 6px;
}

/* ── Segmented Tabs ── */
.uc-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.uc-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(200, 204, 218, 0.65);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
}

.uc-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.uc-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* ── Tab Panels ── */
.uc-tab-panel {
  display: none;
  animation: ucPanelFade 0.24s ease;
}

.uc-tab-panel.active {
  display: block;
}

@keyframes ucPanelFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Two-Column Sub-Cards ── */
.uc-subcards {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 12px;
}

.uc-subcard {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.11);
  transition: background 0.2s ease, border-color 0.2s ease;
  min-width: 0;
}

.uc-subcard:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}

.uc-subcard-discord {
  cursor: pointer;
}

.uc-mini-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.uc-mini-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.uc-mini-avatar-wrap .user-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2.5px solid #101117;
}

.uc-subcard-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.uc-subcard-text .pill-username {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uc-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: rgba(180, 184, 198, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Override legacy .discord-activity-pill sizing inside unified card */
.uc-subcard-activity.discord-activity-pill {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.015) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  cursor: pointer;
}

.uc-subcard-activity.discord-activity-pill:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.uc-act-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.uc-spotify-art {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.uc-spotify-art.hidden {
  display: none;
}

.uc-act-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  width: 100%;
}

.uc-act-info .pill-activity {
  font-size: 0.8rem;
  color: rgba(226, 228, 236, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uc-pill-action {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(88, 101, 242, 0.18);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #a5b4fc;
}

/* ── Projects & Skills Panels ── */
.uc-grid-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.uc-grid-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  transition: all 0.22s ease;
}

.uc-grid-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.uc-grid-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.uc-grid-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(190, 194, 208, 0.72);
}

.uc-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 2px;
}

.uc-skill-chip {
  padding: 7px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: rgba(235, 237, 245, 0.88);
  transition: all 0.2s ease;
}

.uc-skill-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* ── Bottom Social Row inside Unified Card ── */
.uc-social-row.horizontal-nav {
  margin: 2px auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px !important;
  width: 100%;
}

.uc-social-row .icon-nav-btn {
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}

.uc-social-row .icon-nav-btn:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-3px) !important;
}

/* ── Responsive Adjustments ── */
@media (max-width: 640px) {
  .unified-card {
    padding: 22px 18px 20px;
    gap: 16px;
  }

  .uc-header {
    gap: 14px;
  }

  .uc-avatar-wrap {
    width: 72px;
    height: 72px;
    border-radius: 15px;
  }

  .uc-avatar-wrap img {
    border-radius: 13px;
  }

  .uc-subcards,
  .uc-grid-items {
    grid-template-columns: 1fr;
  }

  .uc-tab-btn {
    padding: 7px 6px;
    font-size: 0.78rem;
  }
}


/* ══════════════════════════════════════════════════════════════════
   LEFT-EDGE HANDLE & FULLSCREEN 2-WAY GITHUB PROJECTS SPLIT DRAWER
   ══════════════════════════════════════════════════════════════════ */
body.site-locked .gh-edge-handle {
  opacity: 0;
  pointer-events: none !important;
  transform: translate(-100%, -50%);
}

.gh-edge-handle {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: none;
  border-radius: 0 14px 14px 0;
  background: rgba(14, 15, 21, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(235, 237, 245, 0.86);
  cursor: grab;
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease, padding 0.25s ease, opacity 0.4s ease;
  user-select: none;
}

.gh-edge-handle:hover {
  background: rgba(24, 26, 36, 0.95);
  border-color: rgba(255, 255, 255, 0.28);
  padding-left: 13px;
  color: #ffffff;
}

.gh-edge-handle:active {
  cursor: grabbing;
}

.gh-edge-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gh-edge-arrow {
  font-size: 1.05rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.65);
  transition: transform 0.25s ease;
}

.gh-edge-handle:hover .gh-edge-arrow {
  transform: translateX(3px);
  color: #ffffff;
}

.gh-edge-icon {
  opacity: 0.85;
}

.edge-live-pointer {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

.edge-live-left {
  left: calc(100% + 12px);
  animation: edgePointLeft 1.5s ease-in-out infinite;
}

.edge-live-right {
  right: calc(100% + 12px);
  animation: edgePointRight 1.5s ease-in-out infinite;
}

.gh-edge-handle:hover .edge-live-left,
.mem-edge-handle:hover .edge-live-right {
  color: #ffffff;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
}

@keyframes edgePointLeft {
  0%, 100% {
    transform: translate(6px, -50%);
    opacity: 0.45;
  }
  50% {
    transform: translate(-3px, -50%);
    opacity: 1;
  }
}

@keyframes edgePointRight {
  0%, 100% {
    transform: translate(-6px, -50%);
    opacity: 0.45;
  }
  50% {
    transform: translate(3px, -50%);
    opacity: 1;
  }
}

/* Fullscreen Split Drawer */
.gh-split-drawer {
  position: fixed;
  inset: 0;
  z-index: 96000;
  background: rgba(7, 8, 12, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 72px 28px 48px;
}

.gh-split-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.gh-split-close {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 96010;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e8e8ec;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.22s ease;
}

.gh-split-close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  transform: translateY(-1px);
}

.gh-split-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  width: min(1320px, 94vw);
  margin: auto;
}

.gh-split-panel {
  position: relative;
  flex: 1 1 340px;
  max-width: 420px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 30px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.3s ease, opacity 0.3s ease;
}

.gh-panel-left {
  background: radial-gradient(circle at 25% 30%, rgba(56, 189, 248, 0.12) 0%, rgba(12, 14, 20, 0.85) 75%);
}

.gh-panel-mid {
  background: radial-gradient(circle at 50% 30%, rgba(52, 211, 153, 0.11) 0%, rgba(12, 14, 20, 0.85) 75%);
}

.gh-panel-right {
  background: radial-gradient(circle at 75% 30%, rgba(168, 85, 247, 0.12) 0%, rgba(12, 14, 20, 0.85) 75%);
}

.gh-split-container:hover .gh-split-panel:not(:hover) {
  opacity: 0.72;
}

.gh-split-panel:hover {
  opacity: 1;
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.26);
}

.gh-panel-left:hover {
  background: radial-gradient(circle at 35% 45%, rgba(56, 189, 248, 0.22) 0%, rgba(10, 12, 18, 0.96) 72%);
}

.gh-panel-mid:hover {
  background: radial-gradient(circle at 50% 45%, rgba(52, 211, 153, 0.2) 0%, rgba(10, 12, 18, 0.96) 72%);
}

.gh-panel-right:hover {
  background: radial-gradient(circle at 65% 45%, rgba(168, 85, 247, 0.22) 0%, rgba(10, 12, 18, 0.96) 72%);
}

.gh-panel-bg-num {
  position: absolute;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(9rem, 20vw, 17rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
}

.gh-split-panel:hover .gh-panel-bg-num {
  transform: scale(1.08);
  color: rgba(255, 255, 255, 0.06);
}

.gh-panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gh-panel-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gh-lang-pill,
.gh-star-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(235, 237, 245, 0.9);
}

.gh-panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  word-break: break-word;
}

.gh-panel-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(205, 209, 224, 0.78);
}

.gh-panel-cta {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.gh-panel-cta:hover {
  background: #ffffff;
  color: #0b0c10;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .gh-split-container {
    flex-direction: column;
  }

  .gh-panel-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .gh-split-panel {
    padding: 32px 24px;
  }

  .gh-edge-handle {
    padding: 12px 7px;
  }
}



/* ══════════════════════════════════════════════════════════════════
   BOTTOM-CENTER FLOATING MUSIC DOCK
   ══════════════════════════════════════════════════════════════════ */
body.site-locked .music-player-wrap {
  opacity: 0;
  pointer-events: none !important;
  transform: translate(-50%, 16px);
}

.music-player-wrap {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95000;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.music-player-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 16px 9px 10px;
  border-radius: 16px;
  background: rgba(12, 13, 18, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.52);
}

.mp-cover-btn {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 9px;
  overflow: hidden;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.mp-cover-btn:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.32);
}

.mp-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-info-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 190px;
  max-width: 230px;
}

.mp-track-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.18s ease;
}

.mp-track-btn:hover {
  opacity: 0.85;
}

.mp-track-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-track-artist {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(200, 204, 218, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

.mp-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mp-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(235, 237, 245, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mp-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.mp-btn.mp-toggle {
  width: 34px;
  height: 34px;
  background: #ffffff;
  color: #0b0c10;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.22);
}

.mp-btn.mp-toggle:hover {
  background: #ffffff;
  color: #0b0c10;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.music-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 260px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(12, 13, 19, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.68);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.music-dropdown.hidden {
  display: none;
}

.music-drop-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(220, 224, 238, 0.82);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.music-drop-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.music-drop-item.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
}

.music-drop-artist {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: rgba(180, 184, 198, 0.6);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════════
   SPECULAR GLARE, VOLUME/PROGRESS, MEMORIES DRAWER, TOAST & MOBILE
   ══════════════════════════════════════════════════════════════════ */
.uc-specular-glare {
  position: absolute !important;
  top: -210px;
  left: -210px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  will-change: transform, opacity;
  transform: translate3d(var(--glare-tx, 360px), var(--glare-ty, 180px), 0);
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.085) 0%,
      transparent 65%);
  transition: opacity 0.25s ease;
}

.unified-card:hover .uc-specular-glare {
  opacity: 1;
}

.uc-handle {
  cursor: pointer;
  transition: color 0.18s ease;
}

.uc-handle:hover {
  color: #ffffff;
}

/* Music Switcher: Shuffle, Volume Slider & Progress */
.mp-btn.mp-shuffle {
  font-size: 0.8rem;
  opacity: 0.55;
}

.mp-btn.mp-shuffle.active {
  opacity: 1;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}

.mp-vol-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 2px 0 4px;
}

.mp-vol-icon {
  color: rgba(220, 224, 238, 0.72);
  flex-shrink: 0;
}

.mp-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.mp-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.mp-vol-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.mp-progress-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
}

.mp-progress-track {
  flex: 1;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  cursor: pointer;
  transition: height 0.15s ease, background 0.15s ease;
}

.mp-progress-track:hover {
  height: 5.5px;
  background: rgba(255, 255, 255, 0.24);
}

.mp-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: #ffffff;
  transition: width 0.2s linear;
}

.mp-time-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: rgba(200, 204, 218, 0.62);
  white-space: nowrap;
}

/* GitHub Language Dot & Updated Pill */
.gh-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.gh-lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.gh-updated-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(195, 200, 215, 0.75);
}

/* Right-Edge Handle & Memories Drawer */
body.site-locked .mem-edge-handle {
  opacity: 0;
  pointer-events: none !important;
  transform: translate(100%, -50%);
}

.mem-edge-handle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  border-radius: 14px 0 0 14px;
  background: rgba(14, 15, 21, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(235, 237, 245, 0.86);
  cursor: pointer;
  box-shadow: -6px 0 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease, padding 0.25s ease, opacity 0.4s ease;
  user-select: none;
}

.mem-edge-handle:hover {
  background: rgba(24, 26, 36, 0.95);
  border-color: rgba(255, 255, 255, 0.28);
  padding-right: 13px;
  color: #ffffff;
}

.mem-edge-text {
  writing-mode: vertical-rl;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mem-edge-arrow {
  font-size: 1.05rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.65);
  transition: transform 0.25s ease;
}

.mem-edge-handle:hover .mem-edge-arrow {
  transform: translateX(-3px);
  color: #ffffff;
}

.mem-drawer {
  position: fixed;
  inset: 0;
  z-index: 97000;
  background: rgba(7, 8, 12, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
}

.mem-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mem-drawer-inner {
  width: min(1420px, 94vw);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mem-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mem-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
}

.mem-subtitle {
  font-size: 0.9rem;
  color: rgba(190, 195, 210, 0.72);
}

.mem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.mem-card {
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.mem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.mem-card-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(235, 237, 245, 0.9);
}

.mem-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.mem-card-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(195, 200, 214, 0.76);
}

/* Copy Toast */
.copy-toast {
  position: fixed;
  bottom: 62px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  z-index: 999999;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(18, 20, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile & Touch Optimizations */
@media (hover: none),
(pointer: coarse) {

  body,
  * {
    cursor: auto !important;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mem-grid {
    grid-template-columns: 1fr;
  }

  .mem-edge-handle {
    padding: 12px 7px;
  }
}

@media (max-width: 640px) {
  .music-player-wrap {
    bottom: 14px;
    max-width: 94vw;
  }

  .music-player-pill {
    gap: 10px;
    padding: 8px 12px 8px 8px;
  }

  .mp-info-col {
    min-width: 130px;
    max-width: 165px;
  }

  .mp-vol-wrap {
    display: none;
  }

  .music-dropdown {
    left: 50%;
    transform: translateX(-50%);
  }
}


/* ══════════════════════════════════════════════════════════════════
   NOW PLAYING TOAST, DISCORD STATUS GLOW & BACKGROUND PRESET BUTTON
   ══════════════════════════════════════════════════════════════════ */
.now-playing-toast {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 6px);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 15, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(240, 242, 248, 0.92);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.now-playing-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.np-icon {
  color: #4ade80;
  font-size: 0.85rem;
}

/* Subtle Dynamic Status Glow on Discord Mini Sub-Card */
.uc-subcard-discord.status-online {
  background: radial-gradient(circle at 15% 50%, rgba(34, 197, 94, 0.11), rgba(255, 255, 255, 0.015) 70%);
  border-color: rgba(34, 197, 94, 0.22);
}

.uc-subcard-discord.status-dnd {
  background: radial-gradient(circle at 15% 50%, rgba(239, 68, 68, 0.11), rgba(255, 255, 255, 0.015) 70%);
  border-color: rgba(239, 68, 68, 0.22);
}

.uc-subcard-discord.status-idle {
  background: radial-gradient(circle at 15% 50%, rgba(245, 158, 11, 0.11), rgba(255, 255, 255, 0.015) 70%);
  border-color: rgba(245, 158, 11, 0.22);
}

/* Bottom-Left Background Preset Switcher */
body.site-locked .bg-preset-btn {
  opacity: 0;
  pointer-events: none !important;
  transform: translateY(10px);
}

.bg-preset-btn {
  position: fixed;
  bottom: 54px;
  left: 20px;
  z-index: 95000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(12, 13, 19, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(225, 228, 240, 0.85);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: opacity 0.35s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bg-preset-btn:hover {
  background: rgba(24, 26, 38, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-2px);
}

.bg-preset-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

@media (max-width: 640px) {
  .bg-preset-btn {
    bottom: 50px;
    left: 12px;
    padding: 6px 11px;
    font-size: 0.68rem;
  }
}


/* ══════════════════════════════════════════════════════════════════
   CUSTOM GLASSMORPHIC RIGHT-CLICK CONTEXT MENU
   ══════════════════════════════════════════════════════════════════ */
.custom-ctx-menu {
  position: fixed;
  z-index: 999998;
  min-width: 215px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(12, 13, 19, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform-origin: top left;
  animation: ctxPopIn 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-ctx-menu.hidden {
  display: none;
}

@keyframes ctxPopIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ctx-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(232, 235, 245, 0.88);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ctx-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ctx-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  flex-shrink: 0;
}

.ctx-divider {
  height: 1px;
  margin: 4px 6px;
  background: rgba(255, 255, 255, 0.09);
}


/* ══════════════════════════════════════════════════════════════════
   MEMORIES CATEGORIES, MEDIA GALLERY & LIGHTBOX
   ══════════════════════════════════════════════════════════════════ */
.mem-drawer {
  overflow-y: auto;
  align-items: flex-start;
  padding: 64px 28px 48px;
}

.mem-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mem-cat-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(210, 214, 228, 0.78);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mem-cat-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.mem-cat-btn.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.mem-media-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(12, 13, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  display: block;
}

.mem-media-card:has(video) {
  grid-column: span 2;
}

.mem-media-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
}

.mem-media-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 210px;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.mem-media-card:has(video) .mem-media-thumb {
  aspect-ratio: 16 / 9;
}

.mem-media-thumb img,
.mem-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mem-media-card:hover .mem-media-thumb img,
.mem-media-card:hover .mem-media-thumb video {
  transform: scale(1.04);
}

.mem-video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  z-index: 2;
}

.mem-media-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 16px 13px;
  background: linear-gradient(to top, rgba(6, 7, 10, 0.9) 0%, rgba(6, 7, 10, 0.45) 60%, transparent 100%);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

@media (max-width: 720px) {
  .mem-media-card:has(video) {
    grid-column: span 1;
  }
}

.mem-media-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.mem-media-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(180, 185, 200, 0.65);
}

.mem-empty-box {
  grid-column: 1 / -1;
  padding: 34px 24px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  color: rgba(200, 205, 220, 0.72);
  font-size: 0.88rem;
  line-height: 1.6;
}

.mem-empty-box code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Lightbox */
.mem-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(4, 5, 9, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
}

.mem-lightbox.hidden {
  display: none;
}

.mem-lb-close {
  position: fixed;
  top: 20px;
  right: 26px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.mem-lb-content {
  max-width: min(1000px, 92vw);
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mem-lb-content img,
.mem-lb-content video {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.mem-lb-caption {
  font-size: 0.9rem;
  color: rgba(225, 228, 240, 0.88);
}


/* ══════════════════════════════════════════════════════════════════
   MEMORIES VIDEO SPOTLIGHT HERO & EDITORIAL MASONRY PHOTO WALL
   ══════════════════════════════════════════════════════════════════ */
.mem-video-spotlight {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(22, 24, 34, 0.72), rgba(10, 11, 16, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.mem-video-spotlight.hidden {
  display: none;
}

.mem-video-spotlight:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.mem-spot-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.mem-spot-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mem-spot-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  transition: transform 0.22s ease, background 0.22s ease;
}

.mem-video-spotlight:hover .mem-spot-play {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.24);
}

.mem-spot-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.mem-spot-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.mem-spot-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
}

.mem-spot-meta {
  font-size: 0.88rem;
  color: rgba(195, 200, 215, 0.72);
}

.mem-spot-cta {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Editorial Masonry Photo Wall */
.mem-grid:not(.mem-grid--picker):not(.mem-grid--profiles) {
  display: block;
  columns: 4 270px;
  column-gap: 16px;
}

.mem-grid .mem-media-card {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 14px;
}

.mem-grid .mem-media-thumb {
  min-height: 0;
  aspect-ratio: auto;
}

.mem-grid .mem-media-thumb img {
  width: 100%;
  height: auto;
}

.mem-grid .mem-media-info {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mem-grid .mem-media-card:hover .mem-media-info {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .mem-video-spotlight {
    grid-template-columns: 1fr;
  }
  .mem-spot-body {
    padding: 20px 22px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   MEMORIES — KULLANDIĞIM PROFİLLER (CIRCULAR AVATAR ARCHIVE)
   ══════════════════════════════════════════════════════════════════ */
.mem-grid.mem-grid--profiles {
  display: flex;
  flex-direction: column;
  gap: 24px;
  columns: unset;
  column-count: unset;
}

.mem-live-profile-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.14), rgba(16, 185, 129, 0.08) 55%, rgba(16, 18, 28, 0.72));
  border: 1px solid rgba(129, 140, 248, 0.28);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mem-live-profile-hero:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.52), 0 0 28px rgba(88, 101, 242, 0.18);
}

.mem-live-avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #22c55e, #6366f1);
  box-shadow: 0 0 26px rgba(99, 102, 241, 0.35);
}

.mem-live-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0c0d14;
}

.mem-live-profile-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.mem-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.34);
}

.mem-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: memLivePulse 1.8s ease-in-out infinite;
}

@keyframes memLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.mem-live-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
}

.mem-live-desc {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(212, 216, 232, 0.78);
  line-height: 1.45;
}

.mem-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.mem-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.mem-profile-btn--primary {
  background: rgba(99, 102, 241, 0.24);
  border: 1px solid rgba(129, 140, 248, 0.48);
  color: #eef2ff;
}

.mem-profile-btn--primary:hover {
  background: rgba(99, 102, 241, 0.38);
  transform: translateY(-1px);
}

.mem-profile-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(235, 238, 248, 0.9);
}

.mem-profile-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.mem-profiles-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(226, 232, 240, 0.85);
}

.mem-profiles-count {
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(203, 213, 225, 0.85);
}

.mem-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 22px 18px;
}

.mem-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.mem-profile-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

.mem-profile-avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(99, 102, 241, 0.25));
  transition: background 0.24s ease, box-shadow 0.24s ease;
}

.mem-profile-card:hover .mem-profile-avatar-wrap {
  background: linear-gradient(145deg, rgba(129, 140, 248, 0.7), rgba(56, 189, 248, 0.55));
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.3);
}

.mem-profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0b0c12;
}

.mem-profile-gif-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(129, 140, 248, 0.55);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.mem-profile-quick-dl {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 16, 24, 0.9);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mem-profile-card:hover .mem-profile-quick-dl,
.mem-profile-quick-dl:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.mem-profile-quick-dl:hover {
  background: rgba(99, 102, 241, 0.85);
  border-color: rgba(165, 180, 252, 0.8);
}

.mem-profile-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  text-align: center;
}

.mem-profile-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #f1f5f9;
}

.mem-profile-note-pill {
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profile Lightbox Mode */
.mem-lightbox.mem-lb-profile-mode .mem-lb-content img {
  width: min(340px, 70vw);
  height: min(340px, 70vw);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(129, 140, 248, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 36px rgba(99, 102, 241, 0.24);
}

.mem-lb-meta {
  width: min(440px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.mem-lb-meta.hidden {
  display: none;
}

.mem-lb-note-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mem-lb-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mem-lb-note-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.mem-lb-note-edit-btn {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.mem-lb-note-edit-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.mem-lb-note-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #f1f5f9;
  white-space: pre-wrap;
}

.mem-lb-note-text.empty {
  color: rgba(148, 163, 184, 0.72);
  font-style: italic;
}

.mem-lb-note-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mem-lb-note-editor.hidden {
  display: none;
}

.mem-lb-note-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(8, 10, 18, 0.75);
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
}

.mem-lb-note-input:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.75);
}

.mem-lb-note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mem-lb-note-cancel,
.mem-lb-note-save {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.mem-lb-note-cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
}

.mem-lb-note-save {
  background: rgba(99, 102, 241, 0.34);
  border: 1px solid rgba(129, 140, 248, 0.65);
  color: #ffffff;
}

.mem-lb-actions {
  display: flex;
  justify-content: center;
}

.mem-lb-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(56, 189, 248, 0.28));
  border: 1px solid rgba(129, 140, 248, 0.55);
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.mem-lb-download-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

@media (max-width: 640px) {
  .mem-live-profile-hero {
    flex-direction: column;
    text-align: center;
    padding: 20px 18px;
  }
  .mem-live-badge {
    align-self: center;
  }
  .mem-live-actions {
    justify-content: center;
  }
  .mem-profiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px 12px;
  }
  .mem-profile-avatar-wrap {
    width: 92px;
    height: 92px;
  }
  .mem-profile-quick-dl {
    opacity: 1;
    transform: scale(1);
  }
}

/* ══════════════════════════════════════════════════════════════════
   MEMORIES — BÖLÜM SEÇİM EKRANI (SECTION PICKER)
   ══════════════════════════════════════════════════════════════════ */
.mem-cat-btn.mem-cat-back {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(226, 232, 240, 0.92);
}

.mem-cat-btn.mem-cat-back:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mem-grid.mem-grid--picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  columns: unset;
  column-count: unset;
}

.mem-section-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 34px 32px;
  min-height: 270px;
  width: 100%;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(14, 16, 26, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.11);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.28s ease;
}

.mem-section-card:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.52), 0 0 32px rgba(99, 102, 241, 0.16);
}

.mem-section-card--profiles {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(14, 16, 26, 0.82));
}

.mem-section-num {
  position: absolute;
  right: 18px;
  bottom: -10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  transition: color 0.25s ease, transform 0.28s ease;
}

.mem-section-card:hover .mem-section-num {
  color: rgba(129, 140, 248, 0.11);
  transform: translateY(-4px);
}

.mem-section-preview {
  width: 124px;
  height: 124px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0b10;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.mem-section-preview.is-circular {
  border-radius: 50%;
  padding: 3px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #6366f1);
}

.mem-section-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.mem-section-preview.is-circular img {
  border-radius: 50%;
}

.mem-section-card:hover .mem-section-preview img {
  transform: scale(1.06);
}

.mem-section-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  z-index: 1;
}

.mem-section-stats {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.28);
}

.mem-section-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
}

.mem-section-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.78);
}

.mem-section-cta {
  margin-top: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #a5b4fc;
  transition: transform 0.2s ease;
}

.mem-section-card:hover .mem-section-cta {
  transform: translateX(4px);
}

@media (max-width: 860px) {
  .mem-grid.mem-grid--picker {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mem-section-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .mem-section-stats {
    align-self: center;
  }
}


/* ══════════════════════════════════════════════════════════════════
   SUBTLE BRAND FOOTER
   ══════════════════════════════════════════════════════════════════ */
body.site-locked .brand-footer {
  opacity: 0;
  pointer-events: none !important;
  transform: translateY(-10px);
}

.brand-footer {
  position: fixed;
  bottom: 10px;
  right: 16px;
  z-index: 50;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  opacity: 0.42;
  transition: opacity 0.25s ease, transform 0.45s ease;
}

.brand-footer:hover {
  opacity: 0.85;
}

.brand-footer a {
  color: var(--text-dim);
  text-decoration: none;
}

.brand-footer a:hover {
  color: var(--text-pure);
}

@media (max-width: 640px) {
  .brand-footer {
    bottom: 6px;
    right: 10px;
    font-size: 0.62rem;
  }
}
