@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&display=swap');@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap');


:root {
  --pixel-font: 'Press Start 2P', cursive;
  --cn-font: 'ZCOOL XiaoWei', serif;
  --hand-font: 'Ma Shan Zheng', cursive;
  --primary: #ff6b9d;
  --secondary: #c44dff;
  --accent: #ffe66d;
  --bg-dark: #1a1a2e;
  --bg-card: #16213e;
  --text-light: #ffffff;
  --text-pink: #ff8fab;
  --neon-pink: #ff00ff;
  --neon-blue: #00d4ff;
  --neon-green: #39ff14;
  --neon-yellow: #fff01f;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body, #root {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2V18L6 14L9 21L12 19L9 12L14 11L2 2Z' fill='white' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"), auto;
}
a, button, [role="button"], .social-card, .journal-card, .nav-item, .back-btn, .section-tab, .mood-btn, .weather-btn, .like-btn {
  cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2V10H8V12H6V20H8V22H18V20H20V12H18V10H16V2H14V10H12V2H10Z' fill='white' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"), pointer !important;
}
body {
  font-family: var(--cn-font);
  font-size: 17px;
  color: var(--text-light);
  image-rendering: pixelated;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::-webkit-scrollbar {
  width: 12px;
}
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 6px;
  }
}
::-webkit-scrollbar-track {
  background: #0a0a1a;
  border-left: 2px solid var(--neon-pink);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border: 2px solid #0a0a1a;
  image-rendering: pixelated;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--neon-pink), var(--neon-blue));
}
::selection {
  background: var(--primary);
  color: #fff;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
@keyframes rainbowBorder {
  0% { border-color: var(--neon-pink); }
  25% { border-color: var(--neon-blue); }
  50% { border-color: var(--neon-green); }
  75% { border-color: var(--neon-yellow); }
  100% { border-color: var(--neon-pink); }
}
@keyframes neonGlow {
  0%, 100% { box-shadow: 0 0 8px var(--neon-pink), 0 0 20px rgba(255, 0, 255, 0.15); }
  25% { box-shadow: 0 0 8px var(--neon-blue), 0 0 20px rgba(0, 212, 255, 0.15); }
  50% { box-shadow: 0 0 8px var(--neon-green), 0 0 20px rgba(57, 255, 20, 0.15); }
  75% { box-shadow: 0 0 8px var(--neon-yellow), 0 0 20px rgba(255, 240, 31, 0.15); }
}
@keyframes slideInLeft {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes pixelFadeIn {
  0% { clip-path: inset(0 100% 100% 0); opacity: 0; }
  50% { clip-path: inset(0 50% 0 50%); opacity: 0.5; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 200;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 3px solid var(--neon-pink);
  box-shadow: 4px 4px 0 var(--primary);
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mobile-toggle-text {
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--primary);
  letter-spacing: 1px;
}

.mobile-toggle.open {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-20px);
}

.mobile-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--primary);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(4px);
  z-index: -1;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .sidebar-open {
    transform: translateX(0);
  }

  .sidebar-inner {
    border-radius: 0;
    height: 100%;
    width: 100%;
    justify-content: flex-start;
    padding-top: 80px;
  }

  .sidebar-overlay {
    display: block;
    width: 100vw;
    height: 100vh;
  }
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 15px;
  background: rgba(10, 10, 26, 0.85);
  border-right: 3px solid var(--neon-pink);
  border-left: none;
  border-top: 3px solid var(--neon-pink);
  border-bottom: 3px solid var(--neon-pink);
  border-radius: 0 16px 16px 0;
  position: relative;
  backdrop-filter: blur(10px);
  animation: slideInLeft 0.8s ease, neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.sidebar-inner::before {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  bottom: -3px;
  left: -3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), var(--neon-blue), var(--primary));
  background-size: 100% 400%;
  z-index: -1;
  border-radius: 0 16px 16px 0;
  animation: gradientBorder 4s ease infinite;
  opacity: 0.5;
}

.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatar-frame {
  position: relative;
  width: 100px;
  height: 100px;
  padding: 5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  image-rendering: pixelated;
  animation: pulse 3s ease infinite;
}

.avatar-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--neon-pink);
  animation: rainbowBorder 3s linear infinite;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  display: block;
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.3) 0%, transparent 70%);
  z-index: -1;
  animation: pulse 2s ease infinite;
}

.avatar-pixels {
  position: absolute;
  inset: -15px;
  pointer-events: none;
}

.floating-pixel {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  animation: float 2s ease infinite;
}

.floating-pixel:nth-child(1) { top: 0; left: 50%; background: var(--primary); }
.floating-pixel:nth-child(2) { top: 50%; right: 0; background: var(--secondary); animation-delay: 0.3s; }
.floating-pixel:nth-child(3) { bottom: 0; left: 50%; background: var(--neon-blue); animation-delay: 0.6s; }
.floating-pixel:nth-child(4) { top: 50%; left: 0; background: var(--neon-green); animation-delay: 0.9s; }
.floating-pixel:nth-child(5) { top: 25%; right: 5px; background: var(--accent); animation-delay: 1.2s; }
.floating-pixel:nth-child(6) { bottom: 25%; left: 5px; background: var(--neon-pink); animation-delay: 1.5s; }

.glitch-text-small {
  font-family: var(--pixel-font);
  font-size: 14px;
  color: var(--text-light);
  position: relative;
  display: inline-block;
  text-shadow: 0 0 10px var(--primary);
}

.glitch-text-small::before,
.glitch-text-small::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
}

.glitch-text-small::before {
  color: var(--neon-pink);
  animation: glitch-effect 4s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  transform: translate(-2px, -1px);
}

.glitch-text-small::after {
  color: var(--neon-blue);
  animation: glitch-effect2 3s infinite linear alternate-reverse;
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  transform: translate(2px, 1px);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 0;
  animation: blink 1.5s ease infinite;
  box-shadow: 0 0 6px var(--neon-green);
}

.status-text {
  font-family: var(--pixel-font);
  font-size: 8px;
  color: var(--neon-green);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.nav-item {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nav-item button {
  width: 100%;
}

.sidebar-decorations {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.pixel-divider {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.divider-block {
  width: 6px;
  height: 6px;
  background: var(--primary);
  animation: pulse 1.5s ease infinite;
}

.divider-block:nth-child(even) {
  background: var(--secondary);
}

.sidebar-quote {
  font-family: var(--hand-font);
  font-size: 15px;
  color: var(--text-pink);
  text-align: center;
  font-style: italic;
  opacity: 0.8;
}

.sidebar-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-auth-box {
  padding: 30px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  background: rgba(0, 0, 0, 0.92);
}

.sidebar-auth-title {
  font-family: var(--pixel-font);
  font-size: 12px;
  color: var(--text-pink);
  margin: 16px 0 8px;
  letter-spacing: 2px;
}

.sidebar-auth-desc {
  font-family: var(--cn-font);
  font-size: 14px;
  color: var(--text-light);
  opacity: 0.7;
  margin-bottom: 20px;
}

.sidebar-auth-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 107, 157, 0.4);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 16px;
  text-align: center;
  outline: none;
  transition: all 0.3s;
}

.sidebar-auth-input:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 14px rgba(255, 0, 255, 0.2);
}

.sidebar-auth-error {
  color: #ff4444;
  font-family: var(--cn-font);
  font-size: 13px;
  margin: 10px 0;
}

.sidebar-auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.sidebar-auth-confirm {
  padding: 8px 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  font-family: var(--cn-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.sidebar-auth-confirm:hover {
  box-shadow: 0 0 18px rgba(255, 0, 255, 0.4);
  transform: translateY(-2px);
}

.sidebar-auth-cancel {
  padding: 8px 20px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-auth-cancel:hover {
  border-color: var(--text-pink);
  color: var(--text-pink);
}
.pixel-pet-canvas {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
}

.pixel-pet-canvas:hover {
  cursor: pointer;
  pointer-events: auto;
}
.glitch-wrapper {
  position: relative;
  display: inline-block;
}

.glitch-text {
  position: relative;
  font-family: var(--pixel-font);
  font-size: 1.2em;
  color: var(--text-light);
  animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  color: var(--neon-pink);
  animation: glitch-effect 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-2px, -1px);
}

.glitch-text::after {
  color: var(--neon-blue);
  animation: glitch-effect2 2s infinite linear alternate-reverse;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  transform: translate(2px, 1px);
}

@keyframes glitch-effect {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(3px, 1px); }
  80% { transform: translate(2px, -1px); }
  100% { transform: translate(0); }
}

@keyframes glitch-effect2 {
  0% { transform: translate(0); }
  20% { transform: translate(3px, -2px); }
  40% { transform: translate(2px, 2px); }
  60% { transform: translate(-3px, -1px); }
  80% { transform: translate(-2px, 1px); }
  100% { transform: translate(0); }
}

@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  20% { transform: skew(0deg); }
  21% { transform: skew(2deg); }
  22% { transform: skew(0deg); }
  50% { transform: skew(0deg); }
  51% { transform: skew(-1deg); }
  52% { transform: skew(0deg); }
  80% { transform: skew(0deg); }
  81% { transform: skew(3deg); }
  82% { transform: skew(0deg); }
  100% { transform: skew(0deg); }
}

.subtitle-glitch {
  position: relative;
  display: inline-block;
  animation: subtitle-flicker 8s infinite;
}

.subtitle-glitch::before,
.subtitle-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  image-rendering: pixelated;
}

.subtitle-glitch::before {
  color: var(--neon-pink);
  animation: subtitle-pixel-flash-1 4s infinite steps(1);
  clip-path: polygon(0 10%, 15% 10%, 15% 25%, 30% 25%, 30% 40%, 45% 40%, 45% 55%, 60% 55%, 60% 70%, 75% 70%, 75% 85%, 90% 85%, 90% 100%, 100% 100%, 100% 0, 0 0);
}

.subtitle-glitch::after {
  color: var(--neon-blue);
  animation: subtitle-pixel-flash-2 5s infinite steps(1);
  clip-path: polygon(0 0, 10% 0, 10% 15%, 25% 15%, 25% 30%, 40% 30%, 40% 45%, 55% 45%, 55% 60%, 70% 60%, 70% 75%, 85% 75%, 85% 90%, 100% 90%, 100% 100%, 0 100%);
}

@keyframes subtitle-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.98; }
}

@keyframes subtitle-pixel-flash-1 {
  0%, 88%, 100% {
    opacity: 0;
    transform: translate(0);
  }
  89% {
    opacity: 1;
    transform: translate(-1px, 0);
  }
  90% {
    opacity: 0;
    transform: translate(1px, 0);
  }
  91% {
    opacity: 1;
    transform: translate(-1px, 0);
  }
  92%, 95% {
    opacity: 0;
    transform: translate(0);
  }
  96% {
    opacity: 0.8;
    transform: translate(-1px, -1px);
  }
  97% {
    opacity: 0;
    transform: translate(1px, 1px);
  }
}

@keyframes subtitle-pixel-flash-2 {
  0%, 85%, 100% {
    opacity: 0;
    transform: translate(0);
  }
  86% {
    opacity: 1;
    transform: translate(1px, 0);
  }
  87% {
    opacity: 0;
    transform: translate(-1px, 0);
  }
  88% {
    opacity: 1;
    transform: translate(1px, 1px);
  }
  89%, 93% {
    opacity: 0;
    transform: translate(0);
  }
  94% {
    opacity: 0.9;
    transform: translate(-1px, 1px);
  }
  95% {
    opacity: 0;
    transform: translate(1px, -1px);
  }
}

.crt-overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
}

.pixel-border {
  border: 3px solid var(--neon-pink);
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.neon-text {
  text-shadow:
    0 0 7px var(--primary),
    0 0 10px var(--primary),
    0 0 21px var(--primary),
    0 0 42px var(--neon-pink);
}

.pixel-card {
  background: rgba(22, 33, 62, 0.35);
  backdrop-filter: blur(4px);
  border: 3px solid var(--neon-pink);
  position: relative;
  padding: 20px;
  image-rendering: pixelated;
  transition: all 0.3s;
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.pixel-card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--neon-blue), var(--primary));
  background-size: 400% 400%;
  z-index: -1;
  animation: gradientBorder 3s ease infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.pixel-card:hover::before {
  opacity: 0.15;
}

.pixel-card:hover {
  box-shadow: 0 0 25px var(--neon-pink), 0 0 45px rgba(255, 0, 255, 0.3);
}

@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 230, 109, 0.7);
  color: #333;
  font-size: 10px;
  padding: 4px 20px;
  font-family: var(--pixel-font);
  letter-spacing: 1px;
  border: 1px dashed rgba(0,0,0,0.2);
  z-index: 2;
}

.sticker {
  display: inline-block;
  background: var(--accent);
  color: #333;
  font-family: var(--pixel-font);
  font-size: 10px;
  padding: 5px 12px;
  transform: rotate(-3deg);
  border: 2px solid #333;
  position: relative;
}

.sticker::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.5);
}
.layout-root {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.main-content {
  margin-left: 240px;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  z-index: 10;
  padding: 40px 50px;
  scroll-behavior: smooth;
  transition: margin-left 0.4s ease;
}

@media (max-width: 1024px) {
  .main-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding: 80px 20px 40px;
    height: 100vh;
    overflow-x: hidden;
  }
}
.home-page {
  animation: pixelFadeIn 0.8s ease;
  min-height: 100vh;
  padding-bottom: 80px;
}

.home-welcome {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.home-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pixel-hand {
  font-size: 28px;
  animation: wave 1s ease infinite;
  display: inline-block;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-20deg); }
}

.welcome-text {
  font-family: var(--cn-font);
  font-size: 22px;
  color: var(--text-pink);
}

.home-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  position: relative;
}

.banner-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.banner-pixels {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-pixels.left {
  align-items: flex-end;
}

.banner-pixel {
  width: 8px;
  height: 8px;
  background: var(--primary);
  animation: pulse 1.5s ease infinite;
}

.banner-pixel:nth-child(even) {
  background: var(--secondary);
  width: 12px;
}

.banner-pixel:nth-child(3n) {
  background: var(--neon-blue);
  width: 6px;
}

.title-line {
  display: block;
}

.glitch-text {
  font-family: var(--pixel-font);
  font-size: 28px;
  letter-spacing: 4px;
}

.title-sub {
  font-family: var(--hand-font);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 3px;
}

.home-intro-card {
  width: 100%;
  text-align: center;
  position: relative;
  border: 3px solid var(--neon-pink);
  animation: slideInUp 0.8s ease 0.3s both, welcomeGradient 4s ease infinite, rainbowBorder 3s linear infinite;
}

@keyframes welcomeGradient {
  0% { box-shadow: 0 0 15px var(--neon-pink), 0 0 30px rgba(255, 107, 157, 0.3); }
  33% { box-shadow: 0 0 15px var(--neon-blue), 0 0 30px rgba(0, 212, 255, 0.3); }
  66% { box-shadow: 0 0 15px var(--neon-green), 0 0 30px rgba(57, 255, 20, 0.3); }
  100% { box-shadow: 0 0 15px var(--neon-pink), 0 0 30px rgba(255, 107, 157, 0.3); }
}

.home-intro-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.25) 0%, transparent 70%);
  z-index: -1;
  animation: pulse 2s ease infinite;
}

.home-intro-inner {
  background: rgba(22, 33, 62, 0.35);
  backdrop-filter: blur(4px);
  padding: 20px;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.home-intro-inner .home-greeting {
  justify-content: center;
}

.intro-text {
  font-family: var(--cn-font);
  font-size: 16px;
  line-height: 2;
  color: var(--text-light);
  margin: 15px 0;
}

.intro-decorations {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  align-items: center;
}

.deco-icon {
  font-size: 22px;
  animation: float 2s ease infinite;
}

.deco-icon:nth-child(2) { animation-delay: 0.3s; }
.deco-icon:nth-child(3) { animation-delay: 0.6s; }
.deco-icon:nth-child(4) { animation-delay: 0.9s; }

.home-social-links {
  width: 100%;
  animation: slideInUp 0.8s ease 0.5s both;
}

.social-title {
  display: inline-block;
  text-align: center;
  width: 100%;
  margin-bottom: 18px;
  font-family: var(--hand-font);
  font-size: 22px;
  color: var(--text-pink);
}

.social-title.subtitle-glitch::before,
.social-title.subtitle-glitch::after {
  text-align: center;
}

.social-title-deco {
  color: var(--accent);
  font-size: 14px;
  animation: sparkle 2s ease infinite;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .home-banner {
    padding: 20px 10px;
    gap: 10px;
  }
  
  .glitch-text {
    font-size: 20px;
  }
  
  .title-sub {
    font-size: 12px;
  }

  .home-greeting {
    flex-direction: column;
    text-align: center;
  }
  
  .welcome-text {
    font-size: 16px;
  }
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  background: rgba(22, 33, 62, 0.8);
  border: 2px solid var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.social-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(196, 77, 255, 0.1));
  opacity: 1;
  transition: opacity 0.3s;
}

.social-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 25px var(--neon-pink), 0 0 45px rgba(255, 0, 255, 0.3);
  border-color: var(--neon-pink);
  animation: cardPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), neonGlow 4s ease infinite;
}

@keyframes cardPopIn {
  0% { transform: translateY(-5px) scale(0.97); }
  50% { transform: translateY(-5px) scale(1.06); }
  100% { transform: translateY(-5px) scale(1.03); }
}

.social-icon {
  font-size: 28px;
  animation: float 2s ease infinite;
}

.social-name {
  font-family: var(--pixel-font);
  font-size: 12px;
  color: var(--text-pink);
  letter-spacing: 1px;
}

.social-value {
  font-family: var(--cn-font);
  font-size: 12px;
  color: var(--text-light);
  opacity: 0.7;
  word-break: break-all;
  text-align: center;
  line-height: 1.4;
}

.social-action {
  font-family: var(--pixel-font);
  font-size: 8px;
  color: var(--accent);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.home-status {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideInUp 0.8s ease 0.7s both;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(22, 33, 62, 0.6);
  border-left: 3px solid var(--neon-pink);
  font-size: 14px;
  transition: all 0.3s;
  overflow: hidden;
  position: relative;
  animation: neonGlow 4s ease infinite;
}

.status-item:hover {
  background: rgba(22, 33, 62, 0.9);
  border-left-color: var(--neon-pink);
  transform: translateX(5px);
  box-shadow: 0 0 20px var(--neon-pink);
}

.status-label, .status-value {
  background: linear-gradient(
    90deg, 
    #ff6b9d, #c44dff, #00d4ff, #39ff14, #ffe66d, #ff6b9d
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowFlow 5s linear infinite, textPulse 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes rainbowFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes textPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.02); filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); }
}

.status-label {
  font-family: var(--pixel-font);
  font-size: 11px;
  min-width: 100px;
  margin-right: 12px;
}

.music-label {
  filter: hue-rotate(190deg) saturate(2);
}

.status-value {
  color: var(--text-light);
  font-family: var(--cn-font);
}

.home-footer-decoration {
  font-family: var(--hand-font);
  font-size: 16px;
  color: var(--text-pink);
  opacity: 0.6;
  animation: float 3s ease infinite;
}
.about-page {
  animation: pixelFadeIn 0.8s ease;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.about-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.about-avatar-large {
  position: relative;
  width: 120px;
  height: 120px;
}

.about-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid var(--neon-pink);
  image-rendering: auto;
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.avatar-frame-deco {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.frame-sparkle {
  position: absolute;
  font-size: 14px;
  color: var(--accent);
  animation: sparkle 2s ease infinite;
}

.frame-sparkle:nth-child(1) { top: -5px; left: 50%; }
.frame-sparkle:nth-child(2) { top: 50%; right: -10px; }
.frame-sparkle:nth-child(3) { bottom: -5px; left: 50%; }
.frame-sparkle:nth-child(4) { top: 50%; left: -10px; }

.about-title {
  text-align: center;
}

.about-subtitle {
  font-family: var(--hand-font);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 3px;
  text-align: center;
}

.glitch-text {
  font-family: var(--pixel-font);
  font-size: 24px;
}

.section-tabs {
  display: flex;
  gap: 8px;
}

.about-section {
  margin-top: 30px;
}

.section-heading {
  text-align: center;
  font-family: var(--hand-font);
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.heading-deco {
  font-size: 14px;
  animation: sparkle 2s ease infinite;
}

.heading-deco:nth-child(2) { animation-delay: 0.5s; }

.section-tab {
  padding: 8px 16px;
  background: var(--bg-card);
  color: var(--text-pink);
  border: 2px solid var(--neon-pink);
  font-family: var(--pixel-font);
  font-size: 9px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.section-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 107, 157, 0.4);
}

.section-tab:hover:not(.active) {
  background: rgba(255, 107, 157, 0.2);
  transform: translateY(-2px);
}

.about-section {
  animation: slideInUp 0.5s ease;
}

.intro-card {
  position: relative;
}

.intro-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.intro-text-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intro-line {
  font-family: var(--cn-font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

.intro-line.highlight {
  font-size: 18px;
  color: var(--primary);
  font-weight: bold;
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pixel-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 107, 157, 0.15);
  border: 2px solid var(--neon-pink);
  font-family: var(--pixel-font);
  font-size: 11px;
  color: var(--text-pink);
  transition: all 0.3s;
  cursor: default;
}

.pixel-tag:hover {
  background: rgba(255, 107, 157, 0.3);
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
  color: #fff;
}

.intro-stats {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  background: rgba(10, 10, 26, 0.5);
  border: 2px solid var(--neon-pink);
}

@media (max-width: 600px) {
  .intro-stats {
    flex-direction: row;
    gap: 10px;
    justify-content: space-around;
    padding: 15px 5px;
  }
  
  .stat-number {
    font-size: 16px;
  }
  
  .stat-label {
    font-size: 7px;
  }
  
  .section-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hobbies-grid {
    grid-template-columns: 1fr;
  }

  .about-avatar-large {
    width: 100px;
    height: 100px;
  }
  
  .glitch-text {
    font-size: 20px;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-family: var(--pixel-font);
  font-size: 24px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 230, 109, 0.5);
}

.stat-label {
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--text-pink);
}

.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.hobby-card {
  text-align: center;
  padding: 20px 10px;
  animation: slideInUp 0.5s ease both, neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
  position: relative;
  overflow: visible;
}

.hobby-card:hover {
  box-shadow: 0 0 25px var(--neon-pink), 0 0 45px rgba(255, 0, 255, 0.3);
  transform: translateY(-3px);
}

.hobby-icon {
  font-size: 36px;
  margin-bottom: 10px;
  display: inline-block;
  animation: float 2s ease infinite;
}

.hobby-name {
  font-family: var(--pixel-font);
  font-size: 12px;
  color: var(--text-pink);
  margin-bottom: 8px;
}

.hobby-desc {
  font-size: 13px;
  color: var(--text-light);
  font-family: var(--cn-font);
}

.hobby-pixels {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
}

.hobby-pixel {
  width: 6px;
  height: 6px;
  background: var(--primary);
  animation: pulse 1.5s ease infinite;
}

.hobby-pixel:nth-child(2) { background: var(--secondary); animation-delay: 0.3s; }
.hobby-pixel:nth-child(3) { background: var(--neon-blue); animation-delay: 0.6s; }

.timeline-container {
  position: relative;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), var(--neon-pink));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  z-index: 5;
}

.dot-icon {
  position: absolute;
  font-size: 24px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.dot-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--neon-pink);
  border-radius: 50%;
  animation: pulse 2s ease infinite, neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
  background: var(--bg-dark);
}

.timeline-content {
  width: 42%;
  position: relative;
}

.timeline-content.from-left {
  margin-right: auto;
  margin-left: 0;
  text-align: right;
}

.timeline-content.from-right {
  margin-left: auto;
  margin-right: 0;
  text-align: left;
}

.timeline-date {
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--cn-font);
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-family: var(--cn-font);
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.timeline-decoration {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.timeline-content.from-left .timeline-decoration {
  justify-content: flex-end;
}

.mini-heart {
  color: var(--primary);
  font-size: 12px;
  animation: pulse 1s ease infinite;
}

.mini-star {
  color: var(--accent);
  font-size: 10px;
  animation: sparkle 2s ease infinite;
}

.timeline-end {
  text-align: center;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.end-text {
  font-family: var(--hand-font);
  font-size: 18px;
  color: var(--accent);
  animation: float 2s ease infinite;
}

.end-hearts {
  font-size: 20px;
  color: var(--primary);
  animation: pulse 1.5s ease infinite;
  letter-spacing: 10px;
}

@media (max-width: 768px) {
  .hobbies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-content {
    width: 80% !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: left !important;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-decoration {
    justify-content: flex-start !important;
  }
}
.journal-editor-page {
  animation: pixelFadeIn 0.8s ease;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.journal-editor {
  position: relative;
  background: rgba(0, 0, 0, 0.85);
}

.editor-section {
  margin-bottom: 20px;
}

.editor-section.half {
  flex: 1;
}

.editor-row {
  display: flex;
  gap: 16px;
}

.editor-label {
  display: block;
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--text-pink);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.editor-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 107, 157, 0.3);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 15px;
  transition: all 0.3s;
  outline: none;
}

.editor-input:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.2);
}

.title-input {
  font-size: 18px;
  font-weight: bold;
}

.editor-textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 107, 157, 0.3);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  transition: all 0.3s;
  outline: none;
}

.editor-textarea:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.2);
}

.editor-textarea.quote {
  border-left: 4px solid var(--neon-pink);
  font-style: italic;
  background: rgba(196, 77, 255, 0.05);
}

.editor-input.highlight {
  background: rgba(255, 230, 109, 0.08);
  border-color: rgba(255, 230, 109, 0.3);
}

.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.emoji-btn {
  width: 36px;
  height: 36px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 107, 157, 0.2);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.emoji-btn:hover {
  border-color: var(--neon-pink);
  background: rgba(255, 107, 157, 0.15);
}

.emoji-btn.active {
  border-color: var(--neon-pink);
  background: rgba(255, 0, 255, 0.15);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.editor-blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.editor-block {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 107, 157, 0.15);
  padding: 12px;
  position: relative;
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.block-type-label {
  font-family: var(--pixel-font);
  font-size: 8px;
  color: var(--neon-blue);
  letter-spacing: 1px;
}

.block-actions {
  display: flex;
  gap: 4px;
}

.block-action-btn {
  width: 24px;
  height: 24px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s;
}

.block-action-btn:hover {
  border-color: var(--neon-pink);
  color: var(--primary);
}

.block-action-btn.delete:hover {
  background: rgba(255, 107, 157, 0.2);
  color: #ff4444;
}

.editor-image-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-list-item .list-bullet {
  color: var(--primary);
  flex-shrink: 0;
}

.editor-list-item .editor-input {
  flex: 1;
}

.list-remove-btn {
  width: 24px;
  height: 24px;
  font-size: 10px;
  background: none;
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff6666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s;
}

.list-remove-btn:hover {
  background: rgba(255, 68, 68, 0.15);
  border-color: #ff4444;
}

.add-list-item-btn {
  background: none;
  border: 2px dashed rgba(255, 107, 157, 0.3);
  color: var(--text-pink);
  font-family: var(--cn-font);
  font-size: 13px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.add-list-item-btn:hover {
  border-color: var(--neon-pink);
  background: rgba(255, 0, 255, 0.05);
}

.editor-divider-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px;
  color: var(--primary);
  font-size: 14px;
}

.editor-divider-preview .divider-line {
  flex: 1;
  height: 2px;
  background: var(--neon-pink);
  opacity: 0.5;
}

.add-block-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.add-block-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(255, 107, 157, 0.3);
  color: var(--text-pink);
  font-family: var(--cn-font);
  font-size: 12px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.add-block-btn:hover {
  border-color: var(--neon-pink);
  background: rgba(255, 0, 255, 0.08);
}

.editor-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--neon-pink);
}

.editor-save-btn {
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  font-family: var(--pixel-font);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.editor-save-btn:hover {
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
  transform: translateY(-2px);
}

.editor-cancel-btn {
  padding: 12px 24px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.editor-cancel-btn:hover {
  border-color: var(--text-pink);
  color: var(--text-pink);
}

@media (max-width: 600px) {
  .editor-row {
    flex-direction: column;
    gap: 12px;
  }

  .emoji-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}
.journal-page {
  animation: pixelFadeIn 0.8s ease;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.journal-header {
  text-align: center;
  margin-bottom: 40px;
}

.journal-title {
  margin-bottom: 10px;
}

.journal-subtitle {
  font-family: var(--hand-font);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 3px;
}

.journal-search-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.journal-search-input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 107, 157, 0.4);
  border-radius: 12px;
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

.journal-search-input:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.journal-search-input::placeholder {
  color: var(--text-light);
  opacity: 0.5;
}

.journal-compose-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  font-family: var(--pixel-font);
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 10px;
  white-space: nowrap;
  font-weight: bold;
}

.journal-compose-btn:hover {
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.5);
  transform: translateY(-2px) scale(1.05);
}

@media (max-width: 768px) {
  .journal-search-bar {
    flex-direction: column;
    gap: 12px;
  }

  .journal-search-input {
    width: 100%;
  }

  .journal-compose-btn {
    width: 100%;
  }
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.journal-card {
  cursor: pointer;
  position: relative;
  padding: 0;
  overflow: hidden;
  animation: slideInUp 0.6s ease both, neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.journal-card:hover {
  box-shadow: 0 0 25px var(--neon-pink), 0 0 45px rgba(255, 0, 255, 0.3);
}

.journal-card-tape {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 10, 26, 0.7);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  font-size: 24px;
  z-index: 5;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.journal-card-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.journal-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  image-rendering: auto;
}

.journal-card:hover .journal-card-cover img {
  transform: scale(1.1);
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 26, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.journal-card:hover .cover-overlay {
  opacity: 1;
}

.read-more {
  font-family: var(--pixel-font);
  font-size: 12px;
  color: #fff;
  padding: 8px 20px;
  border: 2px solid #fff;
  letter-spacing: 2px;
}

.journal-card-body {
  padding: 20px;
}

.journal-card-title {
  font-family: var(--cn-font);
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 10px;
}

.journal-card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--pixel-font);
  font-size: 9px;
}

.meta-date {
  color: var(--accent);
}

.meta-mood {
  font-size: 16px;
}

.journal-card-tags {
  display: flex;
  gap: 8px;
}

.journal-tag {
  font-family: var(--pixel-font);
  font-size: 8px;
  color: var(--text-pink);
  padding: 3px 8px;
  border: 1px solid var(--neon-pink);
  background: rgba(255, 107, 157, 0.1);
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.journal-card-pixels {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 3px;
}

.card-pixel {
  width: 5px;
  height: 5px;
  background: var(--primary);
  opacity: 0.5;
}

.card-pixel:nth-child(2) { background: var(--secondary); }
.card-pixel:nth-child(3) { background: var(--neon-blue); }
.card-pixel:nth-child(4) { background: var(--accent); }

/* Detail Page */
.journal-detail-page {
  animation: pixelFadeIn 0.8s ease;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.journal-detail-header {
  display: none;
}

.back-btn {
  display: none;
}

.detail-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 3;
  padding: 0 3px;
}

.detail-meta-left {
  display: flex;
  gap: 0;
}

.detail-weather,
.detail-mood {
  padding: 5px 14px;
  font-size: 18px;
  background: #0a0a1a;
  border: 3px solid var(--neon-pink);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.detail-weather {
  border-right: none;
  border-radius: 6px 0 0 0;
}

.detail-mood {
  border-radius: 0 6px 0 0;
}

.detail-date {
  font-family: var(--pixel-font);
  font-size: 10px;
  padding: 8px 12px;
  background: #0a0a1a;
  border: 3px solid var(--neon-pink);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  display: inline-block;
}

.detail-date span {
  background-image: linear-gradient(
    90deg,
    #ff6b9d, #c44dff, #00d4ff, #39ff14, #ffe66d, #ff6b9d
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowFlow 3s linear infinite;
}

@keyframes rainbowFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.journal-detail-content {
  position: relative;
  background: rgba(0, 0, 0, 0.85);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border: none;
  color: var(--text-pink);
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
  line-height: 1;
  opacity: 0.6;
}

.close-btn:hover {
  opacity: 1;
  background: var(--text-pink);
  color: #000;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 16px rgba(255, 143, 171, 0.5);
}

.detail-title {
  font-family: var(--cn-font);
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 15px;
  text-align: center;
  padding-top: 10px;
}

.detail-music {
  text-align: center;
  font-size: 13px;
  color: var(--text-pink);
  padding: 8px;
  background: rgba(255, 107, 157, 0.1);
  border-left: 3px solid var(--neon-pink);
  margin-bottom: 25px;
  font-family: var(--cn-font);
  animation: neonGlow 4s ease infinite;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.journal-text {
  font-family: var(--cn-font);
  font-size: 16px;
  line-height: 2;
  color: var(--text-light);
  text-indent: 2em;
}

.journal-image-block {
  margin: 10px 0;
}

.image-frame {
  position: relative;
  padding: 8px;
  background: #fff;
  border: 3px solid #ddd;
  transform: rotate(-1deg);
}

.image-frame img {
  width: 100%;
  display: block;
  image-rendering: auto;
  cursor: zoom-in;
}

.deco-tape-left,
.deco-tape-right {
  position: absolute;
  top: -8px;
  width: 60px;
  height: 20px;
  background: rgba(255, 230, 109, 0.7);
}

.deco-tape-left { left: 20px; transform: rotate(-5deg); }
.deco-tape-right { right: 20px; transform: rotate(5deg); }

.image-caption {
  text-align: center;
  font-family: var(--hand-font);
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

.journal-quote {
  position: relative;
  padding: 20px 30px;
  background: rgba(196, 77, 255, 0.1);
  border-left: 4px solid var(--neon-pink);
  animation: neonGlow 4s ease infinite;
  font-family: var(--hand-font);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-pink);
  font-style: italic;
  margin: 10px 0;
}

.quote-mark {
  font-size: 30px;
  color: var(--primary);
  line-height: 1;
  vertical-align: top;
}

.quote-mark.end {
  display: block;
  text-align: right;
}

.journal-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--primary);
  font-size: 14px;
}

.divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.journal-list {
  list-style: none;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.journal-list li {
  font-family: var(--cn-font);
  font-size: 15px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-bullet {
  color: var(--primary);
  font-size: 14px;
}

.journal-highlight {
  text-align: center;
  padding: 20px;
  background: rgba(255, 230, 109, 0.1);
  border: 2px dashed var(--accent);
  font-family: var(--hand-font);
  font-size: 18px;
  color: var(--accent);
}

.highlight-deco {
  color: var(--primary);
  margin: 0 5px;
}

.detail-footer {
  margin-top: 30px;
  text-align: center;
  padding: 10px 0 0;
  border-top: 2px solid var(--neon-pink);
  animation: neonGlow 4s ease infinite;
}

.footer-deco {
  font-family: var(--cn-font);
  font-size: 15px;
  color: var(--text-pink);
}

.image-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.image-zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  image-rendering: auto;
}

@media (max-width: 768px) {
  .journal-grid {
    grid-template-columns: 1fr;
  }
}

.journal-toolbar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 25px;
  padding: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
}

.toolbar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.toolbar-avatar {
  width: 40px;
  height: 40px;
  border: 2px solid var(--neon-pink);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 0, 255, 0.3);
}

.toolbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.toolbar-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toolbar-username {
  font-family: var(--pixel-font);
  font-size: 9px;
  color: var(--text-pink);
  letter-spacing: 1px;
}

.toolbar-role {
  font-family: var(--cn-font);
  font-size: 11px;
  color: var(--text-light);
  opacity: 0.5;
}

.toolbar-auth-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 143, 171, 0.3);
  color: var(--text-pink);
  font-family: var(--pixel-font);
  font-size: 7px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
  margin-left: 4px;
}

.toolbar-auth-btn.login:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.toolbar-auth-btn.logout:hover {
  border-color: #ff4444;
  color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.toolbar-divider {
  width: 2px;
  height: 36px;
  background: var(--neon-pink);
  opacity: 0.4;
  flex-shrink: 0;
}

.toolbar-stats {
  display: flex;
  gap: 24px;
  padding: 14px 24px;
}

.toolbar-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.toolbar-stat-num {
  font-family: var(--pixel-font);
  font-size: 14px;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(255, 230, 109, 0.4);
}

.toolbar-stat-label {
  font-family: var(--cn-font);
  font-size: 11px;
  color: var(--text-light);
  opacity: 0.6;
}

.toolbar-new-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  margin: 16px auto 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

.toolbar-new-btn:hover {
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.4);
  filter: brightness(1.1);
}

.toolbar-new-icon {
  font-size: 16px;
  animation: float 2s ease infinite;
}

.toolbar-new-text {
  font-family: var(--pixel-font);
  font-size: 8px;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  .toolbar-new-btn {
    margin: 12px auto 0;
  }
}

.journal-detail-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.action-btn {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 143, 171, 0.4);
  color: var(--text-pink);
  font-family: var(--cn-font);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.edit-btn:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.delete-btn {
  border-color: rgba(255, 143, 171, 0.4);
}

.delete-btn:hover {
  border-color: #ff4444;
  color: #ff4444;
  background: rgba(255, 68, 68, 0.15);
  box-shadow: 0 0 14px rgba(255, 68, 68, 0.3);
  transform: translateY(-2px);
}

.journal-not-found {
  text-align: center;
  padding: 40px;
}

.journal-not-found p {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-light);
}

.back-btn-inline {
  background: none;
  border: 2px solid var(--neon-pink);
  color: var(--text-pink);
  padding: 8px 20px;
  font-family: var(--cn-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.back-btn-inline:hover {
  background: var(--primary);
  color: #fff;
}

.delete-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-confirm-box {
  padding: 30px;
  max-width: 360px;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
}

.delete-confirm-text {
  font-family: var(--cn-font);
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.delete-confirm-sub {
  font-family: var(--cn-font);
  font-size: 14px;
  color: var(--text-pink);
  margin-bottom: 24px;
  opacity: 0.7;
}

.delete-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-delete-btn {
  padding: 8px 24px;
  background: #ff4444;
  border: none;
  color: #fff;
  font-family: var(--cn-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.confirm-delete-btn:hover {
  background: #ff6666;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

.cancel-delete-btn {
  padding: 8px 24px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-delete-btn:hover {
  border-color: var(--text-pink);
  color: var(--text-pink);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-box {
  padding: 30px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  background: rgba(0, 0, 0, 0.92);
}

.auth-title {
  font-family: var(--pixel-font);
  font-size: 12px;
  color: var(--text-pink);
  margin: 16px 0 8px;
  letter-spacing: 2px;
}

.auth-desc {
  font-family: var(--cn-font);
  font-size: 14px;
  color: var(--text-light);
  opacity: 0.7;
  margin-bottom: 20px;
}

.auth-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 107, 157, 0.4);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 16px;
  text-align: center;
  outline: none;
  transition: all 0.3s;
}

.auth-input:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 14px rgba(255, 0, 255, 0.2);
}

.auth-error {
  color: #ff4444;
  font-family: var(--cn-font);
  font-size: 13px;
  margin: 10px 0;
}

.auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.auth-confirm-btn {
  padding: 8px 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  font-family: var(--cn-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-confirm-btn:hover {
  box-shadow: 0 0 18px rgba(255, 0, 255, 0.4);
  transform: translateY(-2px);
}

.auth-cancel-btn {
  padding: 8px 20px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-cancel-btn:hover {
  border-color: var(--text-pink);
  color: var(--text-pink);
}

.journal-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  padding: 20px;
}

.pagination-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(196, 77, 255, 0.15));
  border: 2px solid var(--neon-pink);
  color: #fff;
  font-family: var(--pixel-font);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.pagination-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.5);
  transform: translateY(-3px) scale(1.05);
}

.pagination-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.pagination-pages {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 107, 157, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.pagination-page {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 107, 157, 0.5);
  color: var(--text-pink);
  font-family: var(--pixel-font);
  font-size: 9px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.pagination-page:hover {
  background: rgba(255, 107, 157, 0.2);
  border-color: var(--neon-pink);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
  transform: translateY(-3px) scale(1.1);
}

.pagination-page.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.2);
  transform: scale(1.15);
  animation: pulse 2s ease infinite;
}

@media (max-width: 768px) {
  .journal-pagination {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .pagination-pages {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 6px;
  }

  .pagination-page {
    width: 38px;
    height: 38px;
    font-size: 8px;
    border-radius: 8px;
  }

  .pagination-btn {
    padding: 10px 20px;
    font-size: 11px;
  }
}

.thoughts-page {
  animation: pixelFadeIn 0.8s ease;
  max-width: 750px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.thoughts-header {
  text-align: center;
  margin-bottom: 25px;
}

.thoughts-title {
  margin-bottom: 10px;
}

.thoughts-subtitle {
  font-family: var(--hand-font);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 3px;
}

.thoughts-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
  padding: 18px;
  background: rgba(22, 33, 62, 0.6);
  border: 2px solid var(--neon-pink);
  border-radius: 4px;
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

@media (max-width: 600px) {
  .thoughts-stats {
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    padding: 12px 5px;
  }
  
  .stat-num {
    font-size: 16px;
  }
  
  .stat-desc {
    font-size: 7px;
  }
  
  .thoughts-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .compose-btn {
    width: 100%;
  }
  
  .filter-bar {
    justify-content: center;
  }
  
  .thoughts-timeline {
    padding-left: 35px;
  }
  
  .timeline-spine {
    left: 12px;
  }
  
  .thought-dot {
    left: -32px;
    width: 28px;
    height: 28px;
  }
  
  .thought-avatar {
    width: 28px;
    height: 28px;
  }
  
  .pixel-avatar {
    width: 16px;
    height: 16px;
  }
  
  .compose-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}

.thought-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-emoji {
  font-size: 24px;
}

.stat-num {
  font-family: var(--pixel-font);
  font-size: 20px;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(255, 230, 109, 0.4);
}

.stat-desc {
  font-family: var(--pixel-font);
  font-size: 8px;
  color: var(--text-pink);
  letter-spacing: 1px;
}

.thoughts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
  flex-wrap: wrap;
}

.compose-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: 2px solid var(--neon-pink);
  font-family: var(--pixel-font);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.compose-btn.active {
  background: rgba(22, 33, 62, 0.8);
  color: var(--text-pink);
  border-color: var(--text-pink);
}

.compose-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

.filter-bar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pixelFadeIn 0.3s ease;
}

.auth-modal {
  width: 340px;
  max-width: 90vw;
  text-align: center;
  padding: 30px 25px;
}

.auth-icon {
  font-size: 40px;
  margin-bottom: 10px;
  animation: float 2s ease infinite;
}

.auth-hint {
  font-family: var(--cn-font);
  font-size: 14px;
  color: var(--text-pink);
  margin-bottom: 18px;
}

.auth-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(10, 10, 26, 0.8);
  border: 2px solid var(--neon-pink);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 14px;
  outline: none;
  text-align: center;
  letter-spacing: 3px;
  transition: border-color 0.3s;
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.auth-input:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.2);
}

.auth-input.error {
  border-color: #ff6b6b;
  animation: shake 0.4s ease;
}

.auth-error {
  font-family: var(--pixel-font);
  font-size: 9px;
  color: #ff6b6b;
  margin-top: 8px;
}

.auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.auth-confirm-btn {
  flex: 1;
  padding: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  font-family: var(--pixel-font);
  font-size: 10px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.auth-confirm-btn:hover {
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.auth-cancel-btn {
  padding: 10px 20px;
  background: none;
  border: 2px solid var(--neon-pink);
  color: var(--text-pink);
  font-family: var(--pixel-font);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-cancel-btn:hover {
  background: rgba(255, 107, 157, 0.15);
}

.filter-btn {
  padding: 6px 10px;
  background: rgba(22, 33, 62, 0.6);
  border: 2px solid transparent;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--pixel-font);
  font-size: 9px;
}

.filter-btn.active {
  border-color: var(--primary);
  background: rgba(255, 107, 157, 0.2);
}

.filter-btn:hover:not(.active) {
  background: rgba(22, 33, 62, 0.9);
}

.compose-area {
  margin-bottom: 25px;
  position: relative;
}

.compose-textarea {
  width: 100%;
  padding: 15px;
  background: rgba(10, 10, 26, 0.6);
  border: 2px solid var(--neon-pink);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s;
  min-height: 80px;
  margin-top: 10px;
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.compose-textarea:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.15);
}

.compose-textarea::placeholder {
  color: rgba(224, 224, 224, 0.3);
}

.compose-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-label {
  font-family: var(--pixel-font);
  font-size: 9px;
  color: var(--text-pink);
  min-width: 55px;
  letter-spacing: 1px;
}

.mood-picker,
.weather-picker {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.mood-btn,
.weather-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 33, 62, 0.6);
  border: 2px solid transparent;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.mood-btn.active,
.weather-btn.active {
  border-color: var(--accent);
  background: rgba(255, 230, 109, 0.15);
  transform: scale(1.15);
}

.mood-btn:hover:not(.active),
.weather-btn:hover:not(.active) {
  background: rgba(22, 33, 62, 0.9);
  transform: scale(1.1);
}

.tags-input-area {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
}

.compose-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(196, 77, 255, 0.2);
  border: 1px solid var(--neon-pink);
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.tag-remove {
  background: none;
  border: none;
  color: var(--text-pink);
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  line-height: 1;
}

.tag-remove:hover {
  color: var(--primary);
}

.tag-input-wrapper {
  display: inline-flex;
}

.tag-input {
  padding: 4px 10px;
  background: rgba(10, 10, 26, 0.6);
  border: 2px solid var(--neon-pink);
  color: var(--text-light);
  font-family: var(--pixel-font);
  font-size: 9px;
  outline: none;
  width: 120px;
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.tag-input:focus {
  border-color: var(--neon-pink);
}

.compose-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.char-count {
  font-family: var(--pixel-font);
  font-size: 8px;
  color: var(--text-pink);
  opacity: 0.6;
}

.submit-thought-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: 2px solid var(--neon-pink);
  font-family: var(--pixel-font);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.submit-thought-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.submit-thought-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

.thoughts-timeline {
  position: relative;
  padding-left: 45px;
}

.timeline-spine {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), var(--neon-blue));
  border-radius: 2px;
}

.thought-item {
  position: relative;
  margin-bottom: 20px;
  animation: slideInUp 0.5s ease both;
}

.thought-dot {
  position: absolute;
  left: -38px;
  top: 15px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.thought-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--neon-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.thought-avatar.avatar-girl {
  border-color: #ff6b9d;
  box-shadow: 0 0 8px rgba(255, 107, 157, 0.3);
}

.thought-avatar.avatar-boy {
  border-color: #00d4ff;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.pixel-avatar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 20px;
  height: 20px;
  gap: 1px;
}

.avatar-pixel {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.dot-mood {
  font-size: 14px;
}

.thought-card {
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  background: rgba(22, 33, 62, 0.8) !important;
}

.thought-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
  background: rgba(10, 10, 26, 0.95) !important;
}

.thought-card.expanded {
  border-color: var(--secondary);
}

.thought-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.thought-author {
  font-family: var(--pixel-font);
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 1px;
}

.thought-author[style*="xixi"],
.thought-item[data-author="xixi"] .thought-author {
  color: #ff6b9d;
  border: 1px solid #ff6b9d;
  background: rgba(255, 107, 157, 0.1);
}

.thought-weather {
  font-size: 16px;
}

.thought-mood-inline {
  font-size: 14px;
}

.thought-time {
  font-family: var(--pixel-font);
  font-size: 8px;
  color: var(--accent);
  opacity: 0.7;
  margin-left: auto;
}

.thought-content {
  font-family: var(--cn-font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  word-break: break-word;
}

.thought-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.thought-tag {
  font-family: var(--pixel-font);
  font-size: 8px;
  color: var(--text-pink);
  padding: 2px 8px;
  border: 1px solid var(--neon-pink);
  background: rgba(255, 107, 157, 0.1);
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.thought-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 107, 157, 0.2);
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.2s;
}

.like-heart {
  font-size: 26px;
  color: rgba(255, 107, 157, 0.4);
  transition: all 0.3s;
  padding-bottom: 0.4dvh;
}

.like-heart.liked {
  color: var(--primary);
  animation: pulse 0.6s ease;
}

.like-heart.heart-burst {
  animation: heartBurst 0.6s ease;
}

@keyframes heartBurst {
  0% {
    transform: scale(1);
    color: var(--primary);
  }
  25% {
    transform: scale(1.5);
    color: #ff6b9d;
  }
  50% {
    transform: scale(1.8);
    color: #ff0080;
    text-shadow: 0 0 20px #ff0080, 0 0 30px #ff6b9d;
  }
  75% {
    transform: scale(1.3);
    color: #ff6b9d;
  }
  100% {
    transform: scale(1);
    color: var(--primary);
  }
}

.like-btn.liking {
  animation: btnShake 0.5s ease;
}

@keyframes btnShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px) rotate(-5deg);
  }
  75% {
    transform: translateX(3px) rotate(5deg);
  }
}

.like-btn:hover .like-heart {
  color: var(--primary);
  transform: scale(1.2);
}

.like-count {
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--text-pink);
}

.thought-delete-btn {
  background: rgba(255, 100, 100, 0.15);
  border: 2px solid rgba(255, 100, 100, 0.6);
  color: #ff6b6b;
  font-family: var(--pixel-font);
  font-size: 10px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: auto;
  border-radius: 6px;
  font-weight: bold;
}

.thought-delete-btn:hover {
  border-color: #ff4444;
  color: #ff4444;
  background: rgba(255, 68, 68, 0.25);
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
  transform: translateY(-2px);
}

.comment-toggle-btn {
  display: flex;
    align-items: center;
    gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.2s;
  color: var(--text-pink);
  }
  
  .comment-icon {
    font-size: 18px;
  }
  
  .comment-count {
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--text-pink);
}

.comment-toggle-btn:hover {
  transform: scale(1.1);
}

.comment-toggle-btn.comment-clicked {
  animation: commentBounce 0.6s ease;
}

@keyframes commentBounce {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.4) rotate(-10deg);
    color: #00d4ff;
    text-shadow: 0 0 15px #00d4ff, 0 0 25px rgba(0, 212, 255, 0.5);
  }
  50% {
    transform: scale(1.6) rotate(5deg);
    color: #00d4ff;
    text-shadow: 0 0 20px #00d4ff, 0 0 30px rgba(0, 212, 255, 0.6);
  }
  75% {
    transform: scale(1.2) rotate(-5deg);
    color: var(--text-pink);
  }
  100% {
    transform: scale(1);
  }
}

.comments-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 107, 157, 0.3);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  background: rgba(10, 10, 26, 0.4);
  border-left: 2px solid var(--neon-pink);
  border-radius: 0 4px 4px 0;
  position: relative;
  transition: all 0.2s;
  animation: neonGlow 4s ease infinite;
}

.comment-item:hover {
  background: rgba(10, 10, 26, 0.6);
}

.comment-avatar {
  flex-shrink: 0;
}

.thought-avatar.mini {
  width: 22px;
  height: 22px;
}

.thought-avatar.mini .pixel-avatar {
  width: 13px;
  height: 13px;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-family: var(--pixel-font);
  font-size: 8px;
  letter-spacing: 1px;
}

.comment-time {
  font-family: var(--pixel-font);
  font-size: 7px;
  color: var(--accent);
  opacity: 0.5;
}

.comment-text {
  font-family: var(--cn-font);
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  word-break: break-word;
}

.comment-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.comment-item:hover .comment-actions {
  opacity: 1;
}

.comment-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  opacity: 0.6;
  transition: all 0.2s;
}

.comment-action-btn:hover {
  opacity: 1;
  transform: scale(1.2);
}

.comment-edit-area {
  display: flex;
  gap: 6px;
  align-items: center;
}

.comment-edit-input {
  flex: 1;
  padding: 4px 8px;
  background: rgba(10, 10, 26, 0.6);
  border: 1px solid var(--neon-pink);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 13px;
  outline: none;
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.comment-edit-input:focus {
  border-color: var(--neon-pink);
}

.comment-save-btn,
.comment-cancel-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.comment-save-btn {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.comment-cancel-btn {
  border-color: rgba(255, 100, 100, 0.5);
  color: rgba(255, 100, 100, 0.7);
}

.comment-input-area {
  display: flex;
  gap: 8px;
}

.comment-input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(10, 10, 26, 0.5);
  border: 1px solid var(--neon-pink);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.comment-input:focus {
  border-color: var(--neon-pink);
}

.comment-input::placeholder {
  color: rgba(224, 224, 224, 0.25);
  font-size: 12px;
}

.comment-submit-btn {
  padding: 8px 14px;
  background: rgba(196, 77, 255, 0.2);
  border: 1px solid var(--neon-pink);
  color: var(--text-pink);
  font-family: var(--pixel-font);
  font-size: 9px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.comment-submit-btn:hover {
  background: rgba(196, 77, 255, 0.4);
  border-color: var(--neon-pink);
}

.thought-pixels {
  position: absolute;
  bottom: 6px;
  right: 8px;
  display: flex;
  gap: 3px;
}

.thought-pixel {
  width: 4px;
  height: 4px;
  background: var(--primary);
  opacity: 0.3;
}

.thought-pixel:nth-child(2) { background: var(--secondary); }
.thought-pixel:nth-child(3) { background: var(--neon-blue); }

.no-thoughts {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-pink);
  opacity: 0.5;
}

.no-emoji {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

.no-thoughts p {
  font-family: var(--pixel-font);
  font-size: 11px;
}

.delete-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-confirm-box {
  padding: 30px;
  max-width: 360px;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
}

.delete-confirm-text {
  font-family: var(--cn-font);
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.delete-confirm-sub {
  font-family: var(--cn-font);
  font-size: 14px;
  color: var(--text-pink);
  margin-bottom: 24px;
  opacity: 0.7;
}

.delete-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-delete-btn {
  padding: 8px 24px;
  background: #ff4444;
  border: none;
  color: #fff;
  font-family: var(--cn-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.confirm-delete-btn:hover {
  background: #ff6666;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

.cancel-delete-btn {
  padding: 8px 24px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-delete-btn:hover {
  border-color: var(--text-pink);
  color: var(--text-pink);
}.guestbook-page {
  animation: pixelFadeIn 0.8s ease;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.guestbook-header {
  text-align: center;
  margin-bottom: 30px;
}

.guestbook-title {
  margin-bottom: 10px;
}

.guestbook-subtitle {
  font-family: var(--hand-font);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 3px;
}

.guestboard-board {
  margin-bottom: 30px;
}

.board-cork {
  position: relative;
  padding: 20px 60px 50px;
  background: rgba(139, 90, 43, 0.15);
  border: 4px solid var(--neon-pink);
  border-radius: 8px;
  min-height: 300px;
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(139, 90, 43, 0.05) 10px,
    rgba(139, 90, 43, 0.05) 20px
  );
}

.messages-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.message-note {
  padding: 20px 15px 15px;
  min-height: 140px;
  position: relative;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: noteFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-note:hover {
  transform: rotate(0deg) scale(1.05) !important;
  z-index: 10;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4);
}

.note-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #cc0000);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 5;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  padding: 0;
}

.note-pin:hover {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.6);
  background: radial-gradient(circle at 30% 30%, #ff3b30, #cc0000);
}

.note-pin:active {
  transform: translateX(-50%) scale(0.95);
}

.note-pin::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.note-name {
  font-family: var(--hand-font);
  font-size: 14px;
  font-weight: bold;
  background: linear-gradient(
    90deg,
    #ff6b9d,
    #c44dff,
    #00d4ff,
    #39ff14,
    #ffe66d,
    #ff6b9d
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowFlow 3s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes rainbowFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.note-text {
  font-family: var(--cn-font);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.note-time {
  font-family: var(--pixel-font);
  font-size: 7px;
  color: rgba(0, 0, 0, 0.4);
  text-align: right;
}

.note-deco {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  gap: 2px;
}

.note-pixel {
  width: 4px;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
}

.guestbook-form-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalFadeIn 0.3s ease;
}

.modal-container {
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.write-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: 3px solid var(--neon-pink);
  font-family: var(--pixel-font);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.write-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
}

.write-icon {
  font-size: 20px;
  animation: float 1.5s ease infinite;
}

.guestbook-form {
  width: 100%;
  max-width: 500px;
  position: relative;
  padding: 35px 25px 25px;
}

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

.form-label {
  display: block;
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--text-pink);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px;
  background: rgba(10, 10, 26, 0.8);
  border: 2px solid var(--neon-pink);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
  animation: neonGlow 4s ease infinite, rainbowBorder 3s linear infinite;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(224, 224, 224, 0.3);
  font-family: var(--cn-font);
}

.form-actions {
  display: flex;
  gap: 10px;
}

.submit-btn {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  font-family: var(--pixel-font);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

.cancel-btn {
  padding: 12px 20px;
  background: transparent;
  border: 2px solid var(--neon-pink);
  color: var(--text-pink);
  font-family: var(--pixel-font);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.cancel-btn:hover {
  background: rgba(255, 107, 157, 0.2);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  text-shadow: 0 0 4px var(--neon-pink);
}

.carousel-btn-left {
  left: 10px;
}

.carousel-btn-right {
  right: 10px;
}

.carousel-btn-left:hover:not(:disabled) {
  transform: translateY(-50%) translateX(-4px) scale(1.1);
  text-shadow: 0 0 12px rgba(255, 107, 157, 1), 0 0 24px rgba(255, 107, 157, 0.6);
}

.carousel-btn-right:hover:not(:disabled) {
  transform: translateY(-50%) translateX(4px) scale(1.1);
  text-shadow: 0 0 12px rgba(255, 107, 157, 1), 0 0 24px rgba(255, 107, 157, 0.6);
}

.carousel-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: none !important;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  width: fit-content;
  margin: 0 auto;
}

.carousel-dots-inline {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  max-width: 10px;
  max-height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border: none !important;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .board-cork {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    padding: 10px;
    gap: 15px;
  }
  
  .message-note {
    padding: 15px 10px 10px;
    min-height: 120px;
  }
  
  .note-text {
    font-size: 13px;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .carousel-dots {
    gap: 8px;
    padding: 6px 10px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .guestbook-form {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .board-cork {
    grid-template-columns: 1fr 1fr;
  }

  .write-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .modal-container {
    max-width: 95vw;
  }

  .guestbook-form {
    padding: 15px;
  }
}

@keyframes noteFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9) rotate(var(--note-rotate, 0deg));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--note-rotate, 0deg));
  }
}

.delete-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-confirm-box {
  padding: 30px;
  max-width: 360px;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
}

.delete-confirm-text {
  font-family: var(--cn-font);
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.delete-confirm-sub {
  font-family: var(--cn-font);
  font-size: 14px;
  color: var(--text-pink);
  margin-bottom: 24px;
  opacity: 0.7;
}

.delete-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-delete-btn {
  padding: 8px 24px;
  background: #ff4444;
  border: none;
  color: #fff;
  font-family: var(--cn-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.confirm-delete-btn:hover {
  background: #ff6666;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

.cancel-delete-btn {
  padding: 8px 24px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-family: var(--cn-font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-delete-btn:hover {
  border-color: var(--text-pink);
  color: var(--text-pink);
}
