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

:root {
  /* Poki Color Palette (Cozy Cyberpunk / Pastel Neon) */
  --poki-black:       #08060e;
  --poki-dark:        #0d0a1b;
  --poki-dark-gray:   #141126;
  --poki-pink:        #ff75a0;
  --poki-pink-rgb:    255, 117, 160;
  --poki-lilac:       #b588f7;
  --poki-lilac-rgb:   181, 136, 247;
  --poki-aqua:        #7ad1ff;
  --poki-aqua-rgb:    122, 209, 255;
  --poki-peach:       #ffd3b6;
  --poki-cream:       #fff0f5;
  
  /* Glassmorphism Variables */
  --glass-bg:         rgba(20, 16, 38, 0.45);
  --glass-border:     rgba(255, 255, 255, 0.08);
  --glass-border-rgb: 255, 255, 255;
  --glass-glow:       rgba(181, 136, 247, 0.12);
  
  /* Font & Shadow Variables */
  --shadow:           rgba(0, 0, 0, 0.55);
  --text-light:       #f5f2fa;
  --text-mid:         #c7c2df;
  --text-soft:        #847f9e;
}

html, body {
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  color: var(--text-light);
  overflow-x: hidden;
  background-color: var(--poki-black);
}

/* ── Deep Space Background Gradient & Blobs ── */
body {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #150f2b 0%, #08060e 100%);
}

/* ── Three.js 3D Beams Background Canvas ── */
.beams-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Above background blobs/gradients, but behind interactive hero details */
  pointer-events: none;
  opacity: 0.65;
  mix-blend-mode: screen; /* Glowing neon blend overlay */
}

/* ── Smooth Drifting Blobs ── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  animation: blobDrift 16s ease-in-out infinite alternate;
}
.blob-1 { width: 550px; height: 550px; background: var(--poki-pink); top: -200px; left: -150px; animation-delay: 0s; }
.blob-2 { width: 450px; height: 450px; background: var(--poki-lilac); bottom: -150px; right: -100px; animation-delay: -4s; }
.blob-3 { width: 350px; height: 350px; background: var(--poki-aqua); top: 50%; left: 60%; animation-delay: -8s; }

@keyframes blobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* ── Dynamic Rising Particles ── */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear infinite;
  filter: drop-shadow(0 0 5px currentColor);
}

@keyframes floatUp {
  0%   { transform: translateY(105vh) rotate(0deg) scale(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-10vh) rotate(360deg) scale(1); opacity: 0; }
}

/* ── Web App Container & Layout ── */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px 140px; /* Secure bottom padding for iOS floating dock */
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Premium Header ── */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  animation: headerIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes headerIn {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.3s;
}
.logo:hover {
  transform: scale(1.05);
}
.logo-sparkle {
  color: var(--poki-pink);
  animation: sparkleRotate 3s ease-in-out infinite;
}
.logo-heart {
  color: var(--poki-lilac);
  font-size: 18px;
  display: inline-block;
  animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes sparkleRotate {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50%       { transform: rotate(180deg) scale(1.2); }
}
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

/* Header Live indicator */
.header-status-dot-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
}
.status-indicator-dot {
  width: 8px;
  height: 8px;
  background: #39e58c;
  border-radius: 50%;
  box-shadow: 0 0 8px #39e58c;
}
.pulse-ring {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #39e58c;
  animation: ringPulse 1.8s ease-out infinite;
}
@keyframes ringPulse {
  0% { transform: translateY(-50%) scale(1); opacity: 1; }
  100% { transform: translateY(-50%) scale(2.4); opacity: 0; }
}

/* ── Dynamic Tab Panes Styling ── */
.tab-content-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: tabFadeIn 0.55s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Tab 1: Hero Two-Column Grid ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
}

/* Left Column: Hero Content */
.hero-content {
  animation: contentIn 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes contentIn {
  from { transform: translateX(-40px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.welcome-pill {
  display: inline-block;
  background: rgba(255, 117, 160, 0.1);
  border: 1px solid rgba(255, 117, 160, 0.22);
  color: var(--poki-pink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

/* Gradient Text System */
.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-name {
  background-image: linear-gradient(135deg, var(--poki-pink) 0%, var(--poki-lilac) 60%, var(--poki-peach) 100%);
  position: relative;
}
.text-role {
  background-image: linear-gradient(135deg, var(--poki-lilac) 0%, var(--poki-aqua) 50%, var(--poki-pink) 100%);
}

/* Typewriter Cursor */
.typewriter-cursor {
  font-family: 'Fira Code', monospace;
  font-weight: 400;
  color: var(--poki-aqua);
  animation: cursorBlink 0.8s infinite;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 18px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 540px;
}

/* Sleek Tags */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(181, 136, 247, 0.15);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.25s;
}
.tag:hover {
  background: rgba(255, 117, 160, 0.08);
  border-color: var(--poki-pink);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Action Buttons (Instagram & Email) */
.social-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}

.btn-glow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.btn-glow svg {
  width: 18px;
  height: 18px;
}

/* Instagram Neon Button */
.btn-instagram {
  background: linear-gradient(135deg, rgba(255, 117, 160, 0.2) 0%, rgba(181, 136, 247, 0.15) 100%);
  border: 1px solid rgba(255, 117, 160, 0.4);
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(255, 117, 160, 0.15);
}
.btn-instagram:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--poki-pink);
  background: linear-gradient(135deg, rgba(255, 117, 160, 0.3) 0%, rgba(181, 136, 247, 0.25) 100%);
  box-shadow: 
    0 8px 30px rgba(255, 117, 160, 0.3),
    0 0 15px rgba(255, 117, 160, 0.1) inset;
}

/* Email Neon Button */
.btn-email {
  background: linear-gradient(135deg, rgba(122, 209, 255, 0.15) 0%, rgba(181, 136, 247, 0.15) 100%);
  border: 1px solid rgba(122, 209, 255, 0.4);
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(122, 209, 255, 0.15);
}
.btn-email:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--poki-aqua);
  background: linear-gradient(135deg, rgba(122, 209, 255, 0.25) 0%, rgba(181, 136, 247, 0.25) 100%);
  box-shadow: 
    0 8px 30px rgba(122, 209, 255, 0.3),
    0 0 15px rgba(122, 209, 255, 0.1) inset;
}

/* Sleek Divider */
.sparkle-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 450px;
}
.sparkle-divider .sparkle {
  color: var(--poki-lilac);
  font-size: 13px;
  animation: sparkleRotate 4s linear infinite;
}
.sparkle-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 136, 247, 0.25), transparent);
}

/* Premium Statistics Container */
.stats-card {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 18px 24px;
  max-width: 450px;
  box-shadow: 0 10px 30px var(--shadow);
}
.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin-top: 3px;
}
.stat-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Right Column: Halo Ring Focus ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: visualIn 1.1s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes visualIn {
  from { transform: translateX(40px) scale(0.95); opacity: 0; }
  to   { transform: translateX(0) scale(1); opacity: 1; }
}

.halo-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Layers of premium rotating neon rings */
.halo-glow-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ring-1 {
  inset: -8px;
  background: conic-gradient(
    from 0deg,
    var(--poki-pink) 0%,
    var(--poki-lilac) 35%,
    var(--poki-aqua) 70%,
    var(--poki-peach) 85%,
    var(--poki-pink) 100%
  );
  animation: ringRotate 8s linear infinite;
  z-index: 0;
}
.ring-2 {
  inset: -8px;
  background: conic-gradient(
    from 180deg,
    var(--poki-pink) 0%,
    var(--poki-lilac) 35%,
    var(--poki-aqua) 70%,
    var(--poki-peach) 85%,
    var(--poki-pink) 100%
  );
  animation: ringRotate 12s linear infinite reverse;
  filter: blur(14px);
  opacity: 0.65;
  z-index: 0;
}
.ring-3 {
  inset: -16px;
  background: radial-gradient(circle, rgba(255,117,160,0.3) 0%, transparent 70%);
  filter: blur(28px);
  animation: ringBreathing 4s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}
@keyframes ringBreathing {
  0% { transform: scale(0.95); opacity: 0.4; }
  100% { transform: scale(1.05); opacity: 0.85; }
}

/* Avatar Photo Wrapper */
.halo-avatar-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  z-index: 1;
  background: var(--poki-dark);
  padding: 6px;
}
.halo-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--poki-dark);
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.halo-avatar-wrapper:hover .halo-avatar {
  transform: scale(1.05);
}

.halo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  font-size: 26px;
  background: rgba(20, 16, 38, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--shadow);
  animation: badgeFloating 3s ease-in-out infinite;
}

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

/* Live breathing status indicator */
.status-pill {
  position: absolute;
  bottom: -22px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 16, 38, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-light);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.status-dot {
  width: 8px;
  height: 8px;
  background: #39e58c;
  border-radius: 50%;
  box-shadow: 0 0 8px #39e58c;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* ── Tab 2: About / Information Panel (Dashboard styling) ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: auto;
  margin-bottom: auto;
}

/* Glassmorphic About Dashboard Cards */
.about-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border: 1.5px solid var(--glass-border);
  border-radius: 24px;
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: 
    0 12px 36px var(--shadow),
    0 2px 8px rgba(255,255,255,0.03) inset;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.about-card:hover {
  transform: translateY(-4px) scale(1.008);
  border-color: rgba(255, 117, 160, 0.24);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.68),
    0 0 20px rgba(181, 136, 247, 0.08);
}

.about-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.card-icon {
  font-size: 21px;
}

/* Anime Corner Listing */
.anime-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.anime-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.anime-item:hover {
  background: rgba(255, 117, 160, 0.06);
  border-color: rgba(255, 117, 160, 0.2);
  transform: translateX(5px);
}

.anime-bullet {
  font-size: 16px;
}

.anime-info h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-light);
}

.anime-info p {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* Overthinking Section */
.overthink-quote {
  font-style: italic;
  font-size: 14px;
  color: var(--poki-peach);
  line-height: 1.55;
  margin-bottom: 18px;
  background: rgba(255, 211, 182, 0.03);
  border-left: 3px solid var(--poki-peach);
  padding: 10px 14px;
  border-radius: 4px 12px 12px 4px;
}

.overthink-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overthink-stats .pill {
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(181, 136, 247, 0.12);
  color: var(--poki-lilac);
  border: 1px solid rgba(181, 136, 247, 0.2);
  padding: 5px 12px;
  border-radius: 99px;
}

/* Student & Traits widgets */
.student-text {
  font-size: 14.5px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 20px;
}

.school-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: rgba(122, 209, 255, 0.12);
  color: var(--poki-aqua);
  border: 1px solid rgba(122, 209, 255, 0.2);
  padding: 6px 16px;
  border-radius: 99px;
}

.traits-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trait-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 99px;
}
.trait-tag.pink { 
  background: rgba(255, 117, 160, 0.1); 
  color: var(--poki-pink); 
  border: 1px solid rgba(255, 117, 160, 0.2); 
}
.trait-tag.lilac { 
  background: rgba(181, 136, 247, 0.1); 
  color: var(--poki-lilac); 
  border: 1px solid rgba(181, 136, 247, 0.2); 
}
.trait-tag.aqua { 
  background: rgba(122, 209, 255, 0.1); 
  color: var(--poki-aqua); 
  border: 1px solid rgba(122, 209, 255, 0.2); 
}

/* ── iOS-like Glassmorphic Bottom Navigation Dock ── */
.ios-dock-wrapper {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  animation: dockIn 1s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes dockIn {
  from { transform: translateX(-50%) translateY(40px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.ios-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 10, 27, 0.35);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  border-radius: 28px;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.65),
    0 2px 10px rgba(255, 255, 255, 0.03) inset,
    0 0 0 1px rgba(181, 136, 247, 0.05);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ios-dock:hover {
  background: rgba(13, 10, 27, 0.5);
  border-color: rgba(255, 117, 160, 0.22);
  box-shadow: 
    0 20px 48px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(181, 136, 247, 0.12);
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--text-mid);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.015);
  border: 1.5px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.25, 1.25, 0.35, 1.25);
  outline: none;
}

.dock-item svg {
  width: 22px;
  height: 22px;
  transition: all 0.3s cubic-bezier(0.25, 1.25, 0.35, 1.25);
}

/* iOS Magnification Hover Effect - Desktop Hover Only to Prevent Sticky Taps on Mobile */
@media (hover: hover) {
  .dock-item:hover {
    transform: translateY(-10px) scale(1.26);
    color: var(--poki-pink);
    background: rgba(255, 117, 160, 0.08);
    border-color: rgba(255, 117, 160, 0.3);
    box-shadow: 
      0 10px 24px rgba(255, 117, 160, 0.25),
      0 0 12px rgba(255, 117, 160, 0.1) inset;
  }
  .dock-item:hover svg {
    transform: scale(1.1);
  }
  .dock-item:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Active Mobile Touch Tap Shrinkage */
.dock-item:active {
  transform: scale(0.92);
  background: rgba(255, 117, 160, 0.12);
  transition: transform 0.1s;
}

/* Active iOS style dot */
.dock-item .dock-dot {
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--poki-pink);
  box-shadow: 0 0 6px var(--poki-pink);
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s ease;
}
.dock-item.active {
  color: var(--poki-pink);
  background: rgba(255, 117, 160, 0.04);
  border-color: rgba(255, 117, 160, 0.15);
}
.dock-item.active .dock-dot {
  opacity: 1;
  transform: scale(1);
}

.dock-separator {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 4px;
}

/* ── Redesigned Admin Panel Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 14, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.modal {
  background: rgba(20, 17, 38, 0.8);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 
    0 24px 70px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(181, 136, 247, 0.05);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 30px 0;
  margin-bottom: 22px;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--poki-pink) 0%, var(--poki-lilac) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.modal-close:hover { 
  background: rgba(255, 117, 160, 0.15); 
  border-color: var(--poki-pink);
  color: var(--poki-pink); 
  transform: scale(1.1); 
}

.modal-body { 
  padding: 0 30px 30px; 
}

#password-gate { 
  text-align: center; 
  padding: 20px 0;
}
.gate-label {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-light);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.modal-input:focus {
  border-color: var(--poki-pink);
  box-shadow: 0 0 0 3px rgba(255, 117, 160, 0.15);
}

.save-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: linear-gradient(135deg, var(--poki-pink) 0%, var(--poki-lilac) 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 6px 20px rgba(255, 117, 160, 0.25);
}

.save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 117, 160, 0.45);
}

.saved-msg {
  text-align: center;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--poki-aqua);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}

.saved-msg.show { 
  opacity: 1; 
}

/* ── Scrollbars ── */
.modal::-webkit-scrollbar { 
  width: 6px; 
}
.modal::-webkit-scrollbar-track { 
  background: transparent; 
}
.modal::-webkit-scrollbar-thumb { 
  background: rgba(255, 255, 255, 0.08); 
  border-radius: 99px; 
}

/* ── Responsive Mobile Styling ── */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    margin-top: 20px;
  }
  .welcome-pill {
    margin-bottom: 20px;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    font-size: 16.5px;
  }
  .tags-row {
    justify-content: center;
  }
  .social-actions {
    justify-content: center;
  }
  .sparkle-divider {
    margin-left: auto;
    margin-right: auto;
  }
  .stats-card {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    order: -1; /* Place visual above content on mobile */
  }
  .halo-container {
    width: 260px;
    height: 260px;
  }
  .halo-avatar-wrapper {
    width: 240px;
    height: 240px;
  }
  .halo-badge {
    bottom: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  
  /* Stacking the About Dashboard columns cleanly */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 20px 15px 140px; /* Secure bottom padding for mobile scroll clearance */
  }
  .header {
    margin-bottom: 30px;
  }
  .logo {
    font-size: 19px;
  }
  .hero-title {
    font-size: 32px;
  }
  .stats-card {
    padding: 14px 18px;
  }
  .stat-num {
    font-size: 20px;
  }
  .stat-label {
    font-size: 11px;
  }
  .halo-container {
    width: 220px;
    height: 220px;
  }
  .halo-avatar-wrapper {
    width: 200px;
    height: 200px;
    padding: 5px;
  }
  .halo-badge {
    bottom: 6px;
    right: 6px;
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .ios-dock {
    gap: 8px;
    padding: 8px 12px;
    border-radius: 22px;
  }
  .dock-item {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .dock-item svg {
    width: 19px;
    height: 19px;
  }
  .dock-separator {
    height: 28px;
  }
  .modal-body {
    padding: 0 20px 20px;
  }
  .modal-header {
    padding: 20px 20px 0;
  }
  }

  /* ── Plasma Background ── */
.plasma-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

  /* ── Enhanced About Tab Sections ── */
  .anime-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--text-mid);
  }

  .tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  }

  .tool-tag {
  background: rgba(122, 209, 255, 0.08);
  border: 1px solid rgba(122, 209, 255, 0.15);
  color: var(--poki-aqua);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  }

  /* Music Player Widget */
  .music-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 16px;
  }

  .song-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-light);
  }

  .song-artist {
  font-size: 12px;
  color: var(--text-soft);
  }

  .music-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  }

  .music-visualizer .bar {
  width: 3px;
  background: var(--poki-pink);
  border-radius: 2px;
  animation: visualizer 0.6s ease-in-out infinite alternate;
  }

  .music-visualizer .bar:nth-child(2) { animation-delay: 0.1s; height: 60%; }
  .music-visualizer .bar:nth-child(3) { animation-delay: 0.2s; height: 80%; }
  .music-visualizer .bar:nth-child(4) { animation-delay: 0.3s; height: 40%; }

  @keyframes visualizer {
  0% { height: 30%; }
  100% { height: 100%; }
  }

  /* ── Contact Tab Grid ── */
  .contact-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  }

  .contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid var(--glass-border);
  border-radius: 32px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px var(--shadow);
  animation: contactIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  }

  @keyframes contactIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .contact-header {
  margin-bottom: 30px;
  }

  .contact-sparkle {
  color: var(--poki-pink);
  font-size: 24px;
  display: block;
  margin-bottom: 12px;
  animation: sparkleRotate 4s linear infinite;
  }

  .contact-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--poki-pink), var(--poki-lilac));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  }

  .contact-header p {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.5;
  }

  .contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
  }

  .info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  }

  .info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-soft);
  font-weight: 700;
  }

  .info-value {
  font-size: 18px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.25s;
  }

  .info-value:hover {
  color: var(--poki-pink);
  }

  .contact-actions {
  display: flex;
  justify-content: center;
  }
