/* ==========================================================================
   KEIZ // COSMIC DEVELOPER IDENTITY DESIGN SYSTEM
   Precision-crafted to match reference constellation design & fully responsive
   ========================================================================== */

:root {
  --bg-space: #03050a;
  --bg-surface: #090d16;
  --bg-surface-elevated: #101624;
  --bg-card: rgba(13, 19, 33, 0.7);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.3);
  --border-active: #ff4655;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --color-purple: #a855f7;
  --color-blue: #3b82f6;
  --color-cyan: #06b6d4;
  --color-success: #22c55e;
  --color-accent: #ff4655;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Space Grotesk', sans-serif;
  --font-btn: 'Ropa Sans', sans-serif;
}

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

html {
  font-size: 14px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* --------------------------------------------------------------------------
   SPACE BACKGROUND & CONSTELLATION CANVAS
   -------------------------------------------------------------------------- */
#space-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   PRELOADER OVERLAY & USER LOADER STYLES
   -------------------------------------------------------------------------- */
.preloader-overlay {
  position: fixed;
  inset: 0;
  background-color: #03050a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.preloader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  --main-size: clamp(2.2rem, 8vw, 3.8rem);
  --text-color: #ffffff;
  --shine-color: #ffffff40;
  --shadow-color: #555555;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  user-select: none;
  position: relative;
  font-size: var(--main-size);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-color);
  width: 7.3em;
  height: 1em;
  filter: drop-shadow(0 0 0.05em var(--shine-color));
}

.loader .text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  position: absolute;
}

.loader .text:nth-child(1) {
  clip-path: polygon(0% 0%, 11.11% 0%, 11.11% 100%, 0% 100%);
  font-size: calc(var(--main-size) / 20);
  margin-left: -2.1em;
  opacity: 0.6;
}

.loader .text:nth-child(2) {
  clip-path: polygon(11.11% 0%, 22.22% 0%, 22.22% 100%, 11.11% 100%);
  font-size: calc(var(--main-size) / 16);
  margin-left: -0.98em;
  opacity: 0.7;
}

.loader .text:nth-child(3) {
  clip-path: polygon(22.22% 0%, 33.33% 0%, 33.33% 100%, 22.22% 100%);
  font-size: calc(var(--main-size) / 13);
  margin-left: -0.33em;
  opacity: 0.8;
}

.loader .text:nth-child(4) {
  clip-path: polygon(33.33% 0%, 44.44% 0%, 44.44% 100%, 33.33% 100%);
  font-size: calc(var(--main-size) / 11);
  margin-left: -0.05em;
  opacity: 0.9;
}

.loader .text:nth-child(5) {
  clip-path: polygon(44.44% 0%, 55.55% 0%, 55.55% 100%, 44.44% 100%);
  font-size: calc(var(--main-size) / 10);
  margin-left: 0em;
  opacity: 1;
}

.loader .text:nth-child(6) {
  clip-path: polygon(55.55% 0%, 66.66% 0%, 66.66% 100%, 55.55% 100%);
  font-size: calc(var(--main-size) / 11);
  margin-left: 0.05em;
  opacity: 0.9;
}

.loader .text:nth-child(7) {
  clip-path: polygon(66.66% 0%, 77.77% 0%, 77.77% 100%, 66.66% 100%);
  font-size: calc(var(--main-size) / 13);
  margin-left: 0.33em;
  opacity: 0.8;
}

.loader .text:nth-child(8) {
  clip-path: polygon(77.77% 0%, 88.88% 0%, 88.88% 100%, 77.77% 100%);
  font-size: calc(var(--main-size) / 16);
  margin-left: 0.98em;
  opacity: 0.7;
}

.loader .text:nth-child(9) {
  clip-path: polygon(88.88% 0%, 100% 0%, 100% 100%, 88.88% 100%);
  font-size: calc(var(--main-size) / 20);
  margin-left: 2.1em;
  opacity: 0.6;
}

.loader .text span {
  animation:
    scrolling 2s cubic-bezier(0.1, 0.6, 0.9, 0.4) infinite,
    shadow 2s cubic-bezier(0.1, 0.6, 0.9, 0.4) infinite;
}

.loader .text:nth-child(1) span {
  background: linear-gradient(to right, var(--text-color) 4%, var(--shadow-color) 7%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.loader .text:nth-child(2) span {
  background: linear-gradient(to right, var(--text-color) 9%, var(--shadow-color) 13%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.loader .text:nth-child(3) span {
  background: linear-gradient(to right, var(--text-color) 15%, var(--shadow-color) 18%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.loader .text:nth-child(4) span {
  background: linear-gradient(to right, var(--text-color) 20%, var(--shadow-color) 23%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.loader .text:nth-child(5) span {
  background: linear-gradient(to right, var(--text-color) 25%, var(--shadow-color) 28%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.loader .text:nth-child(6) span {
  background: linear-gradient(to right, var(--shadow-color) 29%, var(--text-color) 32%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.loader .text:nth-child(7) span {
  background: linear-gradient(to right, var(--shadow-color) 34%, var(--text-color) 37%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.loader .text:nth-child(8) span {
  background: linear-gradient(to right, var(--shadow-color) 39%, var(--text-color) 42%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.loader .text:nth-child(9) span {
  background: linear-gradient(to right, var(--shadow-color) 45%, var(--text-color) 48%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.loader .line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 0.05em;
  width: calc(var(--main-size) / 2);
  margin-top: 0.9em;
  border-radius: 0.05em;
}

.loader .line::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: var(--text-color);
  opacity: 0.3;
}

.loader .line::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 0.05em;
  transform: translateX(-90%);
  animation: wobble 2s cubic-bezier(0.5, 0.8, 0.5, 0.2) infinite;
}

@keyframes wobble {
  0% { transform: translateX(-90%); }
  50% { transform: translateX(90%); }
  100% { transform: translateX(-90%); }
}

@keyframes scrolling {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes shadow {
  0% { background-position: -98% 0; }
  100% { background-position: 102% 0; }
}

/* --------------------------------------------------------------------------
   LAYOUT CONTAINER
   -------------------------------------------------------------------------- */
.app-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   TOP NAVIGATION
   -------------------------------------------------------------------------- */
.top-nav {
  position: sticky;
  top: 0;
  width: 100%;
  height: 60px;
  padding: 0 clamp(12px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.nav-brand {
  flex-shrink: 0;
}

.nav-brand .brand-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.brand-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--color-purple);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-purple);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pst-clock-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pst-clock-dot {
  width: 5px;
  height: 5px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-success);
}

.pst-time-txt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pst-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   HERO CONSTELLATION SECTION
   -------------------------------------------------------------------------- */
.hero-constellation-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(16px, 3vw, 40px) 60px;
  overflow: hidden;
}

/* Constellation Left & Right Clusters */
.tech-constellation {
  position: relative;
  width: 280px;
  height: 480px;
  flex-shrink: 0;
  pointer-events: auto;
}

.tech-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  animation: floatNode 5s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  user-select: none;
}

.tech-node:hover {
  transform: scale(1.15) translateY(-4px) !important;
  filter: brightness(1.2);
  z-index: 50;
}

@keyframes floatNode {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.node-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 15, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.tech-node:hover .node-icon-wrapper {
  border-color: var(--color-purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), inset 0 0 12px rgba(168, 85, 247, 0.2);
}

.node-svg {
  width: 24px;
  height: 24px;
}

.node-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.tech-node:hover .node-label {
  color: var(--text-primary);
}

/* Specific Node Coordinates (Desktop Constellation) */
.node-php       { top: 10%;  left: 20%; }
.node-laravel   { top: 32%;  right: 15%; }
.node-mysql     { top: 52%;  left: 12%; }
.node-livewire  { top: 68%;  right: 28%; }
.node-js        { bottom: 5%; left: 18%; }

.node-flutter   { top: 12%;  left: 15%; }
.node-dart      { top: 22%;  right: 12%; }
.node-go        { top: 48%;  left: 45%; }
.node-linux     { top: 68%;  left: 38%; }
.node-docker    { bottom: 5%; right: 25%; }

/* JavaScript & Go Badge specific styles */
.js-bg {
  background: #f7df1e !important;
}
.js-text {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 14px;
  color: #000000;
}
.go-text {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 11px;
  color: #00add8;
  letter-spacing: -0.5px;
}

/* --------------------------------------------------------------------------
   CENTER PROFILE & HERO IDENTITY
   -------------------------------------------------------------------------- */
.center-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 440px;
  margin: 0 clamp(10px, 3vw, 40px);
  z-index: 10;
}

/* Avatar with Glowing Ring */
.avatar-ring-container {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.avatar-glow-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #a855f7, #3b82f6, #06b6d4, #a855f7);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.45), 0 0 15px rgba(6, 182, 212, 0.3);
  animation: spinSlow 12s linear infinite;
}

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

.avatar-img-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  z-index: 2;
  border: 3px solid #03050a;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-bottom-node {
  position: absolute;
  bottom: -6px;
  width: 14px;
  height: 14px;
  background: #03050a;
  border: 2px solid var(--color-purple);
  border-radius: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--color-purple);
}

.avatar-bottom-node::after {
  content: "";
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
}

/* Hero Typography */
.identity-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.hi-text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.main-title {
  font-family: var(--font-sans);
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.gradient-name {
  background: linear-gradient(135deg, #60a5fa 20%, #a855f7 70%, #ec4899 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.4));
}

/* Facebook Link Badge in Name */
.facebook-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(24, 119, 242, 0.12);
  border: 1px solid rgba(24, 119, 242, 0.35);
  color: #1877f2;
  margin-left: 8px;
  vertical-align: middle;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(24, 119, 242, 0.2);
}

.facebook-link-badge:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
  box-shadow: 0 0 20px rgba(24, 119, 242, 0.65);
  transform: scale(1.15) translateY(-2px);
}

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

.role-subtitle {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-success);
}

.status-txt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-success);
}

/* Social Channels */
.social-channels {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(13, 19, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.social-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
  transform: translateY(-2px);
}

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

/* Scroll Prompt */
.scroll-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.scroll-text {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.scroll-line-node {
  position: relative;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--color-purple), transparent);
}

.scroll-line-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: -2.5px;
  width: 6px;
  height: 6px;
  background: var(--color-purple);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-purple);
}

.scroll-prompt:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   CONTENT SECTIONS (Vault, Updates, Links)
   -------------------------------------------------------------------------- */
.content-section {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-header {
  margin-bottom: 28px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-purple);
  display: block;
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   DIGITAL VAULT (Interactive 3D Folder Card)
   -------------------------------------------------------------------------- */
.vault-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 50px 24px 36px;
  position: relative;
}

.folder-card {
  width: 170px;
  height: 130px;
  perspective: 1200px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 40px;
}

.folder-toggle {
  display: none;
}

.hint-wrapper {
  position: absolute;
  top: -40px;
  right: -50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 100;
  animation: floatHint 2.5s ease-in-out infinite;
}

.hint-text {
  font-family: var(--font-sans);
  color: #60a5fa;
  font-size: 10px;
  font-weight: 900;
  text-decoration: underline;
  letter-spacing: 0.5px;
  white-space: nowrap;
  position: relative;
  right: -25px;
  top: 10px;
  transform: rotate(45deg);
}

.hint-arrow {
  height: 35px;
  width: 35px;
}

@keyframes floatHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.folder-toggle:checked ~ .hint-wrapper {
  opacity: 0;
  transform: translateY(-10px);
}

.folder-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  backface-visibility: hidden;
  will-change: transform;
}

.folder-toggle:checked ~ .folder-container {
  transform: rotateX(10deg) rotateY(-5deg);
}

.folder-back {
  position: absolute;
  bottom: 0;
  width: 100%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.folder-front-wrapper {
  position: absolute;
  bottom: -7px;
  width: 100%;
  z-index: 90;
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 12px;
}

.folder-label {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

.counter {
  position: absolute;
  top: -95px;
  right: -55px;
  background-color: #a18cd1;
  padding: 4px 8px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: scale(0) translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
  pointer-events: auto;
}

.folder-toggle:checked ~ .folder-container .counter {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition-delay: 0.2s;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px #34d399;
}

.status-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

.counter-label {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 800;
  color: black;
  text-transform: capitalize;
}

.counter-number {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.file {
  position: absolute;
  bottom: 5px;
  left: 10%;
  width: 80%;
  height: 85px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 0;
  cursor: pointer;
}

.file-1 { background: #ff5f6d; z-index: 25; transition-delay: 0.15s; }
.file-2 { background: #ffc371; z-index: 24; transition-delay: 0.1s; }
.file-3 { background: #4facfe; z-index: 23; transition-delay: 0.05s; }
.file-4 { background: #00f2fe; z-index: 22; transition-delay: 0.02s; }
.file-5 { background: #a18cd1; z-index: 21; transition-delay: 0s; }

.shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
}

.folder-toggle:checked ~ .folder-container .shine {
  left: 150%;
  transition: left 0.8s ease-in-out;
  transition-delay: 0.3s;
}

.file-text {
  font-family: var(--font-mono);
  font-size: 9px;
  color: white;
  padding: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease 0.4s;
}

.folder-toggle:checked ~ .folder-container .file-text {
  opacity: 1;
  transform: translateY(0);
}

.folder-toggle:checked ~ .folder-container .folder-front-wrapper {
  transform: rotateX(-50deg);
}

.folder-toggle:checked ~ .folder-container .file-1 { transform: translateY(-70px) rotate(-10deg) translateX(-15px) translateZ(20px); }
.folder-toggle:checked ~ .folder-container .file-2 { transform: translateY(-55px) rotate(8deg) translateX(18px) translateZ(10px); }
.folder-toggle:checked ~ .folder-container .file-3 { transform: translateY(-40px) rotate(-15deg) translateX(-8px); }
.folder-toggle:checked ~ .folder-container .file-4 { transform: translateY(-25px) rotate(12deg) translateX(12px); }
.folder-toggle:checked ~ .folder-container .file-5 { transform: translateY(-10px) rotate(-5deg); }

.folder-toggle:checked ~ .folder-container .file:hover { filter: brightness(1.15); }
.folder-toggle:checked ~ .folder-container .file-1:hover { transform: translateY(-82px) rotate(-10deg) translateX(-15px) translateZ(25px); }
.folder-toggle:checked ~ .folder-container .file-2:hover { transform: translateY(-67px) rotate(8deg) translateX(18px) translateZ(15px); }
.folder-toggle:checked ~ .folder-container .file-3:hover { transform: translateY(-52px) rotate(-15deg) translateX(-8px); }
.folder-toggle:checked ~ .folder-container .file-4:hover { transform: translateY(-37px) rotate(12deg) translateX(12px); }
.folder-toggle:checked ~ .folder-container .file-5:hover { transform: translateY(-22px) rotate(-5deg); }

.file-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.file-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.folder-toggle:checked ~ .folder-container .file:hover .file-icon { color: rgba(255, 255, 255, 0.9); }
.folder-toggle:checked ~ .folder-container .file-tag { opacity: 1; }

.folder-search {
  position: absolute;
  top: -40px;
  left: 10%;
  width: 30px;
  height: 25px;
  background-color: #1e293b;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-icon { width: 12px; height: 12px; flex-shrink: 0; }
.search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 9px;
  margin-left: 6px;
  outline: none;
  width: 100%;
}

.folder-toggle:checked ~ .folder-container .folder-search {
  opacity: 1;
  top: -80px;
  width: 80%;
}

.folder-toggle:checked ~ .folder-container .folder-search:focus-within {
  width: 90%;
  background-color: #0f172a;
  border-color: var(--color-purple);
}

.file.search-hidden {
  opacity: 0.1 !important;
  pointer-events: none;
  filter: grayscale(1);
}

/* --------------------------------------------------------------------------
   USER BUTTON DESIGN
   -------------------------------------------------------------------------- */
.folder-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.button-borders {
  position: relative;
  width: fit-content;
  height: fit-content;
}

.primary-button {
  font-family: var(--font-btn);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.05rem;
  border: 1px solid #0E1822;
  padding: 0.75rem 1.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 531.28 200'%3E%3Cdefs%3E%3Cstyle%3E .shape %7B fill: %23FF4655 %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_2' data-name='Layer 2'%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cpolygon class='shape' points='415.81 200 0 200 115.47 0 531.28 0 415.81 200' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
  background-color: #0E1822;
  background-size: 200%;
  background-position: 200%;
  background-repeat: no-repeat;
  transition: 0.3s ease-in-out;
  transition-property: background-position, border, color;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
  min-height: 42px;
}

.primary-button:hover {
  border: 1px solid #FF4655;
  color: white;
  background-position: 40%;
}

.primary-button:before {
  content: "";
  position: absolute;
  background-color: #0E1822;
  width: 0.2rem;
  height: 0.2rem;
  top: -1px;
  left: -1px;
  transition: background-color 0.15s ease-in-out;
}

.primary-button:hover:before { background-color: white; }
.primary-button:hover:after { background-color: white; }

.primary-button:after {
  content: "";
  position: absolute;
  background-color: #FF4655;
  width: 0.3rem;
  height: 0.3rem;
  bottom: -1px;
  right: -1px;
  transition: background-color 0.15s ease-in-out;
}

.button-borders:before {
  content: "";
  position: absolute;
  width: calc(100% + 0.5em);
  height: 50%;
  left: -0.3em;
  top: -0.3em;
  border: 1px solid #1e293b;
  border-bottom: 0px;
}

.button-borders:after {
  content: "";
  position: absolute;
  width: calc(100% + 0.5em);
  height: 50%;
  left: -0.3em;
  bottom: -0.3em;
  border: 1px solid #1e293b;
  border-top: 0px;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   CATEGORIZED REPOSITORY & FREE TOOLS
   -------------------------------------------------------------------------- */
.section-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tool-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 14px;
  width: 100%;
  max-width: 320px;
  transition: all 0.2s ease;
}

.tool-search-box:focus-within {
  border-color: var(--color-purple);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
  background: var(--bg-surface-elevated);
}

.search-svg-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.tool-search-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  width: 100%;
}

.tool-search-input::placeholder {
  color: var(--text-muted);
}

/* Category Filter Tabs (Swipeable on Mobile) */
.category-tabs-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.category-tabs-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  min-height: 38px;
}

.cat-tab:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.cat-tab.active {
  background: rgba(168, 85, 247, 0.12);
  border-color: var(--color-purple);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.2);
}

.cat-count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.cat-tab.active .cat-count {
  background: var(--color-purple);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   LIVE ROTATING NEON RECTANGLE GLOW CARDS
   -------------------------------------------------------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 26px;
}

.tool-card.neon-card {
  position: relative;
  border-radius: 14px;
  background: #090e1a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.5px;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.85);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.tool-card.neon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.95), 0 0 28px rgba(168, 85, 247, 0.35);
}

/* Animated Rotating Conic Neon Beam */
.tool-card.neon-card .neon-beam {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(168, 85, 247, 0.95) 12%,
    rgba(236, 72, 153, 0.95) 24%,
    rgba(59, 130, 246, 0.95) 36%,
    rgba(6, 182, 212, 0.95) 48%,
    transparent 65%
  );
  animation: rotateNeon 3.5s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes rotateNeon {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Inner Card Body */
.tool-card.neon-card .neon-inner {
  position: relative;
  background: #080d1a;
  border-radius: 13px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  height: 100%;
}

/* Tool Preview Banner & Image */
.tool-card-banner {
  width: 100%;
  height: 175px;
  background: linear-gradient(135deg, #0c1220 0%, #151d30 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tool-card-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-card.neon-card:hover .tool-card-banner-img {
  transform: scale(1.05);
}

.banner-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
  z-index: 5;
}

.banner-placeholder-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.tool-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.badge-category {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.cat-badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.cat-badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.cat-badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.cat-badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--color-success);
  letter-spacing: 0.08em;
}

.tool-card-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.tool-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Like Button & Stats Group */
.tool-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3px 9px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-like-btn:hover {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.35);
  color: #f472b6;
  transform: scale(1.05);
}

.tool-like-btn.liked {
  background: rgba(236, 72, 153, 0.18);
  border-color: #ec4899;
  color: #f472b6;
}

.tool-like-btn.liked .heart-icon {
  fill: #ec4899;
  stroke: #ec4899;
}

.heart-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  transition: all 0.2s ease;
}

.card-stats-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.stat-bullet {
  opacity: 0.3;
}

.downloads-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
}

.download-icon-mini {
  width: 13px;
  height: 13px;
  stroke: var(--color-purple);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  gap: 10px;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.btn-action {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #ffffff;
  color: #03050a;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-action:hover {
  background: #e2e8f0;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-action.btn-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* Empty State */
.empty-state-wrap {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: 10px;
  margin-top: 16px;
}

.empty-state-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.app-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  padding: 0 16px;
}

/* --------------------------------------------------------------------------
   COMMUNITY SHOUTBOX (EPHEMERAL 10-DAY CHAT)
   -------------------------------------------------------------------------- */

/* Floating Trigger Pill */
.shoutbox-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #090e1a;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(168, 85, 247, 0.25);
  border-radius: 30px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  z-index: 999;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.shoutbox-trigger:hover {
  background: #10172a;
  border-color: #a855f7;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.9), 0 0 28px rgba(168, 85, 247, 0.45);
}

.shout-pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: shoutPulse 2s infinite ease-in-out;
}

@keyframes shoutPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.shout-unread-badge {
  background: #ec4899;
  color: #fff;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Shoutbox Main Window Frame */
.shoutbox-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 48px);
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.95), 0 0 35px rgba(168, 85, 247, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.shoutbox-window.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92) translateY(20px);
}

/* Shoutbox Header */
.shoutbox-head {
  background: #0f172a;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
}

.shoutbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shoutbox-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shoutbox-expire-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.shoutbox-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shoutbox-btn-ctrl {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.15s ease;
}

.shoutbox-btn-ctrl:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.shoutbox-btn-ctrl.ctrl-close:hover {
  background: #ef4444;
  color: #fff;
}

/* Shoutbox Stream Body */
.shoutbox-stream {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #060913;
  scroll-behavior: smooth;
}

.shoutbox-stream::-webkit-scrollbar {
  width: 5px;
}

.shoutbox-stream::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

/* Shout Item */
.shout-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: fadeInShout 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.shout-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.shout-content-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.shout-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shout-username {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.shout-username:hover {
  color: #a855f7;
}

.shout-admin-crown {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #f472b6;
  letter-spacing: 0.05em;
}

.shout-time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #64748b;
  margin-left: auto;
  flex-shrink: 0;
}

.shout-bubble {
  background: #131d31;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px 10px 10px 10px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #e2e8f0;
  word-break: break-word;
}

.shout-bubble .shout-mention {
  color: #38bdf8;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Shoutbox Empty State */
.shout-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #64748b;
  padding: 20px;
  gap: 8px;
}

.shout-empty-icon {
  font-size: 28px;
}

.shout-empty-txt {
  font-size: 12px;
  color: #94a3b8;
}

/* Shoutbox Footer / Input Area */
.shoutbox-footer {
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shoutbox-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
  user-select: none;
}

.shoutbox-current-name {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #cbd5e1;
  font-weight: 600;
}

.shoutbox-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.shoutbox-edit-name-btn {
  background: transparent;
  border: none;
  color: #a855f7;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.shoutbox-edit-name-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.shoutbox-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.shoutbox-input {
  flex: 1;
  background: #080d1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.shoutbox-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.shoutbox-emoji-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s ease;
}

.shoutbox-emoji-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.shoutbox-send-btn {
  background: #a855f7;
  border: none;
  color: #fff;
  width: 34px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.15s ease;
}

.shoutbox-send-btn:hover {
  background: #9333ea;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
  transform: scale(1.05);
}

.shoutbox-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Quick Emoji Bar */
.shoutbox-emoji-popover {
  position: absolute;
  bottom: 42px;
  right: 40px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  gap: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  z-index: 10;
}

.shoutbox-emoji-popover.hidden {
  display: none;
}

.shoutbox-emoji-item {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: transform 0.1s ease, background 0.1s ease;
}

.shoutbox-emoji-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.2);
}

/* Nickname Modal */
.shoutbox-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.shoutbox-modal-backdrop.hidden {
  display: none;
}

.shoutbox-modal-box {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shoutbox-modal-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.color-picker-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.color-circle-opt {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease;
}

.color-circle-opt.selected {
  border-color: #fff;
  transform: scale(1.2);
}

.shoutbox-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 6px;
}

.btn-modal-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-modal-save {
  background: #a855f7;
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   RESPONSIVE SHOUTBOX MEDIA QUERIES (Mobile-Friendly)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .shoutbox-trigger {
    bottom: 16px;
    right: 16px;
    padding: 8px 14px;
    font-size: 11px;
  }

  .shoutbox-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 80vh;
    max-height: 80vh;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
  }
}

.footer-sep { opacity: 0.3; }
.footer-mono { letter-spacing: 0.08em; }

/* --------------------------------------------------------------------------
   TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 60px);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--color-purple);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999999;
  white-space: nowrap;
}

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

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-constellation-section {
    flex-direction: column;
    min-height: auto;
    padding: 30px 16px 40px;
    gap: 20px;
  }

  .tech-constellation {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    position: static;
  }

  .tech-node {
    position: static !important;
    animation: none;
  }

  .center-identity {
    order: -1;
    margin: 0 auto;
  }

  .tech-left, .tech-right {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .top-nav {
    padding: 0 12px;
    height: 56px;
    gap: 6px;
  }

  .nav-brand .brand-text {
    font-size: 13px;
    letter-spacing: 0.15em;
  }

  .pst-clock-pill {
    padding: 3px 7px;
    gap: 4px;
  }

  .pst-time-txt {
    font-size: 10px;
  }

  .pst-tag {
    display: none;
  }

  .nav-link {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .section-header-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .tool-search-box {
    max-width: 100%;
    padding: 8px 12px;
  }

  .avatar-ring-container {
    width: 135px;
    height: 135px;
    margin-bottom: 16px;
  }

  .avatar-img-wrap {
    width: 125px;
    height: 125px;
  }

  .main-title {
    font-size: 32px;
  }

  .role-subtitle {
    font-size: 11px;
    letter-spacing: 0.15em;
  }

  .content-section {
    padding: 32px 14px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .node-icon-wrapper {
    width: 38px;
    height: 38px;
  }

  .node-svg {
    width: 20px;
    height: 20px;
  }

  .tool-card-banner {
    height: 130px;
  }
}


