@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap");

:root {
  --color-primary: #ffb3d9;
  --color-secondary: #c9a0dc;
  --color-accent: #b4e4ff;
  --color-success: #bffcc6;
  --color-warning: #fff5ba;
  --color-bg: #fff8f3;
  --color-bg-alt: #fff0f5;
  --color-text: #5a5a5a;
  --color-text-dark: #3a3a3a;
  --color-white: #ffffff;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(255, 179, 217, 0.15);
  --shadow-md: 0 4px 16px rgba(255, 179, 217, 0.2);
  --shadow-lg: 0 8px 24px rgba(255, 179, 217, 0.25);
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --font-base: "Quicksand", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Quicksand", "Nunito", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  animation: gradientShift 20s ease-in-out infinite;
  cursor: url("/imgs/cursors/kitty.png"), auto;
}

body.night-theme {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e0e0e0;
}

body.night-theme .cloud {
  opacity: 0.1;
  filter: invert(1);
}

body.night-theme .animated-gradient-bg::after {
  background-image: radial-gradient(white 1px, transparent 1px), radial-gradient(white 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

body.night-theme .card {
  color: #2c3e50 !important;
}

a,
button,
.card,
.nav-tab,
.connection-heart,
.hero-emoji,
.edit-location-btn,
.k-btn,
.player-tab,
.k-progress-bar,
.k-volume-slider {
  cursor: url("/imgs/cursors/purr.png"), pointer !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--space-sm);
}

.animated-gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #fff8f3, #ffe5f0, #f0e5ff, #e5f0ff, #fff5e5);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  z-index: -1;
}

.animated-gradient-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(white 1px, transparent 1px), radial-gradient(white 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  opacity: 0.3;
  animation: twinkle 4s infinite alternate;
}

.animated-gradient-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 2px, transparent 2px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.cursor-trail-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9997;
}

.cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.8), transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  animation: trailFade 0.5s ease-out forwards;
}

.parallax-clouds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.cloud {
  position: absolute;
  font-size: 3rem;
  opacity: 0.15;
  animation: cloudDrift linear infinite;
}

.cloud-1 { top: 10%; animation-duration: 60s; font-size: 4rem; }
.cloud-2 { top: 30%; animation-duration: 80s; animation-delay: -20s; }
.cloud-3 { top: 50%; animation-duration: 70s; animation-delay: -40s; font-size: 3.5rem; }
.cloud-4 { top: 70%; animation-duration: 90s; animation-delay: -10s; }

.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 182, 193, 0.8), 0 0 20px rgba(255, 182, 193, 0.4);
}

.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-heart,
.floating-star,
.floating-petal {
  position: absolute;
  animation: floatUp linear infinite;
  opacity: 0.6;
}

.floating-heart { font-size: 1.2rem; }
.floating-star { font-size: 0.8rem; }
.floating-petal { font-size: 1rem; }

.floating-item {
  position: absolute;
  bottom: -50px;
  animation: floatUp linear infinite;
}

.click-heart {
  position: fixed;
  pointer-events: none;
  font-size: 1.5rem;
  animation: heartBurst 1s ease-out forwards;
  z-index: 9999;
}

.corner-mascot {
  position: fixed;
  bottom: 0;
  right: 20px;
  width: 120px;
  height: auto;
  z-index: 10000;
  opacity: 0.9;
  pointer-events: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  transition: transform 0.3s ease;
  display: none;
}

.corner-mascot:hover {
  transform: scale(1.1) translateY(-5px);
}

nav {
  background: linear-gradient(135deg, #ffe5f0 0%, #e8d5ff 25%, #d4e9ff 50%, #e8d5ff 75%, #ffe5f0 100%);
  background-size: 200% 200%;
  animation: kawaii-gradient 8s ease infinite;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  margin: var(--space-md) auto;
  max-width: 1200px;
  border-radius: 60px;
  box-shadow: 0 10px 40px rgba(255, 179, 217, 0.3), 0 6px 25px rgba(224, 187, 228, 0.25), 0 3px 15px rgba(180, 228, 255, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.95), inset 0 -2px 4px rgba(255, 179, 217, 0.1);
  padding: 1.2rem 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.8);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav::before {
  content: "☁️✨";
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 1.8rem;
  opacity: 0.6;
  animation: float-cloud-left 4s ease-in-out infinite;
  pointer-events: none;
}

nav::after {
  content: "✨☁️";
  position: absolute;
  top: -15px;
  right: 20px;
  font-size: 1.8rem;
  opacity: 0.6;
  animation: float-cloud-right 4s ease-in-out infinite 1s;
  pointer-events: none;
}

nav:hover {
  box-shadow: 0 15px 50px rgba(255, 179, 217, 0.4), 0 8px 30px rgba(224, 187, 228, 0.35), 0 4px 20px rgba(180, 228, 255, 0.25), inset 0 2px 4px rgba(255, 255, 255, 1), inset 0 -2px 4px rgba(255, 179, 217, 0.15);
  transform: translateY(-3px);
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #c71585;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-base);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(199, 21, 133, 0.5);
  filter: drop-shadow(0 2px 6px rgba(255, 105, 180, 0.4));
  animation: logo-float 3s ease-in-out infinite;
  text-align: center;
}

.logo:hover {
  transform: scale(1.08) translateY(-3px);
  color: #ff1493;
  text-shadow: 0 2px 3px rgba(255, 255, 255, 0.9), 0 3px 6px rgba(255, 20, 147, 0.6);
  filter: drop-shadow(0 4px 12px rgba(255, 105, 180, 0.6));
}

.nav-tabs {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2rem;
  row-gap: 2.5rem;
  list-style: none;
  justify-content: center;
  align-items: center;
}

.nav-tab {
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 252, 0.9) 100%);
  border: 2px solid rgba(255, 179, 217, 0.3);
  cursor: pointer;
  position: relative;
  overflow: visible;
  box-shadow: 0 3px 10px rgba(255, 105, 180, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  text-align: center;
  animation: floatCloud 4s ease-in-out infinite;
}

.nav-tab:nth-child(1) { animation: floatCloud1 5s ease-in-out infinite; }
.nav-tab:nth-child(2) { animation: floatCloud2 6s ease-in-out infinite 0.5s; }
.nav-tab:nth-child(3) { animation: floatCloud3 5.5s ease-in-out infinite 1s; }
.nav-tab:nth-child(4) { animation: floatCloud4 6.5s ease-in-out infinite 1.5s; }
.nav-tab:nth-child(5) { animation: floatCloud5 5.8s ease-in-out infinite 0.3s; }
.nav-tab:nth-child(6) { animation: floatCloud6 6.2s ease-in-out infinite 0.8s; }
.nav-tab:nth-child(7) { animation: floatCloud7 5.3s ease-in-out infinite 1.2s; }
.nav-tab:nth-child(8) { animation: floatCloud8 6.8s ease-in-out infinite 1.8s; }

.nav-tab::before {
  content: "💖";
  position: absolute;
  top: -25px;
  right: -5px;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(10px) rotate(15deg);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.nav-tab:hover::before {
  opacity: 1;
  top: -20px;
  transform: translateY(0) rotate(0deg);
}

.nav-tab::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 105, 180, 0.3), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.nav-tab:hover {
  background: linear-gradient(135deg, #ffe5f5 0%, #e8d5ff 50%, #d4e9ff 100%);
  border-color: rgba(255, 179, 217, 0.6);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3), 0 4px 12px rgba(224, 187, 228, 0.2), inset 0 2px 3px rgba(255, 255, 255, 1);
}

.nav-tab:hover::after {
  width: 100%;
  height: 100%;
}

.nav-tab:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 179, 217, 0.5);
}

.nav-tab.active {
  background: linear-gradient(135deg, #ff69b4 0%, #ff85c0 30%, #ffb3d9 60%, #e0bbe4 100%);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.45), 0 3px 12px rgba(224, 187, 228, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.4), inset 0 -2px 3px rgba(255, 105, 180, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  animation: active-pulse 3s ease-in-out infinite;
  transform: scale(1.03);
}

.nav-tab.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.hamburger {
  display: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 248, 252, 0.85) 100%);
  border: 2px solid rgba(255, 179, 217, 0.4);
  border-radius: 50%;
  cursor: pointer;
  padding: 0.6rem;
  z-index: 1000;
  position: relative;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger:hover {
  background: linear-gradient(135deg, rgba(255, 229, 245, 0.95) 0%, rgba(232, 213, 255, 0.9) 100%);
  border-color: rgba(255, 179, 217, 0.6);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 16px rgba(255, 105, 180, 0.3), inset 0 1px 2px rgba(255, 255, 255, 1);
}

.hamburger.active {
  background: linear-gradient(135deg, #ffe5f5 0%, #e8d5ff 100%);
  border-color: #ffb3d9;
  transform: scale(1.05);
}

.hamburger-icon {
  width: 28px;
  height: 22px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.5s ease-in-out;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: linear-gradient(135deg, #ff69b4, #e0bbe4);
  border-radius: 4px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
  box-shadow: 0 1px 2px rgba(255, 105, 180, 0.3);
}

.hamburger-icon span:nth-child(1) { top: 0px; }
.hamburger-icon span:nth-child(2),
.hamburger-icon span:nth-child(3) { top: 10px; }
.hamburger-icon span:nth-child(4) { top: 20px; }

.hamburger.active .hamburger-icon span:nth-child(1) { top: 10px; width: 0%; left: 50%; }
.hamburger.active .hamburger-icon span:nth-child(2) { transform: rotate(45deg); }
.hamburger.active .hamburger-icon span:nth-child(3) { transform: rotate(-45deg); }
.hamburger.active .hamburger-icon span:nth-child(4) { top: 10px; width: 0%; left: 50%; }

.session-manager {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  padding: 0.5rem 1rem;
}

.session-countdown {
  font-size: 0.85rem;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  font-weight: 600;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.session-countdown.time-safe {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.5), rgba(22, 163, 74, 0.5));
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.session-countdown.time-warning {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.5), rgba(220, 38, 38, 0.5));
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  border: 1px solid rgba(239, 68, 68, 0.7);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  animation: warningPulse 2s ease infinite;
}

.session-extension {
  position: relative;
}

.extend-summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  font-weight: 700;
  list-style: none;
  transition: all var(--transition-base);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.extend-summary::-webkit-details-marker {
  display: none;
}

.extend-summary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.extend-options {
  position: absolute;
  top: 120%;
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
  z-index: 10001;
  animation: slideDown 0.3s ease;
}

.extend-btn {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.extend-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.extend-btn:active {
  transform: translateY(0);
}

#main-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

#main-content.content-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  color: #ff1493;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-md);
  animation: heroFloat 3s ease-in-out infinite;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 4px 8px rgba(255, 20, 147, 0.6), 0 6px 20px rgba(255, 105, 180, 0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.hero-emoji {
  font-size: 4rem;
  display: inline-block;
  animation: emojiBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(255, 105, 180, 0.4));
  cursor: pointer;
}

.hero-emoji:hover {
  animation: emojiSpin 0.5s ease-in-out;
}

.daily-message-box {
  background: rgba(255, 255, 255, 0.9);
  border: 2px dashed #ffb3d9;
  border-radius: 15px;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
  animation: bounceIn 1s ease;
}

.daily-label {
  font-size: 0.8rem;
  color: #ff69b4;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
}

#daily-text {
  font-size: 1.1rem;
  color: #555;
  margin-top: 0.5rem;
  font-style: italic;
}

.ldr-section {
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-xl) var(--space-md);
}

.ldr-container {
  background: linear-gradient(135deg, rgba(255, 179, 217, 0.1), rgba(201, 160, 220, 0.1));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.ldr-title {
  text-align: center;
  color: #ff1493;
  margin-bottom: var(--space-sm);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-shadow: 0 2px 4px rgba(255, 20, 147, 0.3), 0 0 20px rgba(255, 182, 193, 0.5);
}

.ldr-subtitle {
  text-align: center;
  color: var(--color-text);
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
}

.timezone-clocks {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  align-items: center;
}

.timezone-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-base);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.timezone-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.timezone-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timezone-card:hover::before {
  opacity: 0.2;
}

.lily-card { border-color: #ffb3d9; }
.neo-card { border-color: #c9a0dc; }

.timezone-card.theme-morning {
  background: linear-gradient(135deg, #fff9e6 0%, #ffe8cc 100%);
  border-color: #ffd700;
}
.timezone-card.theme-morning::before { background: radial-gradient(circle at 30% 30%, #ffd700, transparent); }

.timezone-card.theme-afternoon {
  background: linear-gradient(135deg, #fff8e1 0%, #ffe5b4 100%);
  border-color: #ffa500;
}
.timezone-card.theme-afternoon::before { background: radial-gradient(circle at 50% 20%, #ffa500, transparent); }

.timezone-card.theme-evening {
  background: linear-gradient(135deg, #ffe8f0 0%, #ffd5e5 100%);
  border-color: #ff69b4;
}
.timezone-card.theme-evening::before { background: radial-gradient(circle at 70% 30%, #ff69b4, transparent); }

.timezone-card.theme-night {
  background: linear-gradient(135deg, #e6e6fa 0%, #d8bfd8 100%);
  border-color: #9370db;
}
.timezone-card.theme-night::before { background: radial-gradient(circle at 20% 80%, #9370db, transparent); }

.timezone-card.is-sleeping {
  opacity: 0.7;
  background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%) !important;
  color: white !important;
  border-color: #87ceeb !important;
  position: relative;
  overflow: hidden;
}

.timezone-card.is-sleeping::after {
  content: "💤 Zzz...";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  animation: floatUp 3s infinite;
  font-weight: bold;
}

.timezone-card.is-sleeping h3,
.timezone-card.is-sleeping .timezone-time {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.timezone-card.is-sleeping .timezone-location,
.timezone-card.is-sleeping .timezone-date,
.timezone-card.is-sleeping .timezone-weather,
.timezone-card.is-sleeping .timezone-period,
.timezone-card.is-sleeping .timezone-name,
.timezone-card.is-sleeping .location-icon {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.timezone-card.is-sleeping .edit-location-btn {
  color: #ffffff !important;
  opacity: 0.8;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.timezone-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.timezone-emoji {
  font-size: 2.5rem;
  animation: floatEmoji 3s ease-in-out infinite;
}

.timezone-name {
  font-size: 1.8rem;
  color: var(--color-text-dark);
  margin: 0;
}

.timezone-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  font-size: 0.95rem;
}

.location-icon {
  font-size: 1.1rem;
}

.timezone-time {
  font-size: 3rem;
  font-weight: 700;
  font-family: "Courier New", monospace;
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
}

.timezone-period {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.timezone-date {
  font-size: 0.95rem;
  color: var(--color-text);
}

.timezone-weather {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 5px;
}

.is-sleeping .timezone-weather {
  color: #ddd;
}

.connection-viz {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 150px;
}

.connection-line {
  width: 100%;
  height: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heartbeat-svg {
  width: 100%;
  height: 100%;
  max-width: 250px;
}

.heartbeat-path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: heartbeatDraw 4s ease-in-out infinite, heartbeatGlow 1.5s ease-in-out infinite;
}

.connection-heart {
  font-size: 2rem;
  animation: heartBeat 1.5s ease-in-out infinite;
  margin: var(--space-sm) 0;
}

.distance-info {
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(255, 179, 217, 0.2);
  backdrop-filter: blur(5px);
  display: inline-block; 
  margin-top: 0.5rem; 
}

.distance-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.time-diff {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 600;
}

.cute-map {
  margin-top: var(--space-xl);
}

.map-container {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  height: 500px;
  position: relative;
}

#ldr-map {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  z-index: 1;
}

.leaflet-popup-content-wrapper {
  background: linear-gradient(135deg, #fff8f3 0%, #ffe8f5 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-primary);
}

.leaflet-popup-content {
  font-family: var(--font-base);
  color: var(--color-text-dark);
  margin: 1rem;
  text-align: center;
}

.leaflet-popup-tip {
  background: linear-gradient(135deg, #fff8f3 0%, #ffe8f5 100%);
}

.location-popup {
  text-align: center;
}

.location-popup-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.location-popup-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.location-popup-city {
  font-size: 0.95rem;
  color: var(--color-text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  padding: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.card::before {
  content: "🎀";
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 3rem;
  opacity: 0;
  transform: rotate(-15deg);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
  background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
}

.card:hover::before {
  opacity: 0.15;
  top: 10px;
  right: 10px;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  display: block;
  transition: transform var(--transition-base);
  filter: drop-shadow(0 2px 4px rgba(255, 179, 217, 0.3));
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(255, 179, 217, 0.5));
}

.card h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-base);
}

.card:hover h3 {
  color: #ff69b4;
}

.card--garden {
  background: linear-gradient(135deg, #ffe5f0 0%, #ffd5e8 50%, #ffe8f5 100%);
  border: 2px solid #ffb3d9;
}

.card--garden::before {
  content: "🌸";
  font-size: 4rem;
  opacity: 0.08;
}

.card--garden:hover {
  background: linear-gradient(135deg, #ffd5e8 0%, #ffc0db 50%, #ffd5e8 100%);
  border-color: #ff8fc7;
  box-shadow: 0 8px 30px rgba(255, 105, 180, 0.4);
}

.card--garden h3 {
  color: #e91e63;
  text-shadow: 0 2px 4px rgba(233, 30, 99, 0.2);
}

.card--garden .card-icon {
  filter: drop-shadow(0 4px 8px rgba(255, 105, 180, 0.4));
}

.card--minecraft {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
  border: 4px solid #654321;
  position: relative;
  overflow: hidden;
}

.card--minecraft::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.3;
}

.card--minecraft:hover {
  background: linear-gradient(135deg, #a0522d 0%, #cd853f 50%, #a0522d 100%);
  border-color: #8b7355;
  box-shadow: 0 8px 30px rgba(139, 69, 19, 0.5);
}

.card--minecraft h3 {
  font-family: "Courier New", "Consolas", monospace;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000000, 4px 4px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  font-weight: bold;
}

.card--minecraft p {
  color: #f5deb3;
  font-family: "Courier New", "Consolas", monospace;
}

.card--minecraft .card-icon {
  filter: drop-shadow(3px 3px 0 #000000) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.card--gallery {
  background: linear-gradient(135deg, #fff8e7 0%, #f5e6d3 100%);
  border: 3px solid #d4a574;
  position: relative;
}

.card--gallery::before {
  content: "📷";
  font-size: 4rem;
  opacity: 0.08;
}

.card--gallery::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, transparent 40%, #c9a0dc 40%, #c9a0dc 60%, transparent 60%);
  opacity: 0.15;
  transform: rotate(-15deg);
}

.card--gallery:hover {
  background: linear-gradient(135deg, #fff0d9 0%, #ffe4b5 100%);
  border-color: #c19a6b;
  box-shadow: 0 8px 30px rgba(210, 180, 140, 0.4);
  transform: translateY(-5px) rotate(1deg);
}

.card--gallery h3 {
  color: #8b4513;
  font-family: "Brush Script MT", cursive;
}

.card--gallery .card-icon {
  filter: drop-shadow(0 4px 8px rgba(139, 69, 19, 0.3)) sepia(0.2);
}

.card--timeline {
  background: linear-gradient(135deg, #e8f4ff 0%, #d4e9ff 100%);
  border: 2px solid #87ceeb;
  position: relative;
}

.card--timeline::before {
  content: "📍";
  font-size: 4rem;
  opacity: 0.08;
}

.card--timeline::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(to bottom, #87ceeb 0%, #4682b4 50%, #87ceeb 100%);
  opacity: 0.2;
}

.card--timeline:hover {
  background: linear-gradient(135deg, #d4e9ff 0%, #b8d8ff 100%);
  border-color: #4682b4;
  box-shadow: 0 8px 30px rgba(70, 130, 180, 0.4);
}

.card--timeline h3 {
  color: #1e90ff;
}

.card--timeline .card-icon {
  filter: drop-shadow(0 4px 8px rgba(30, 144, 255, 0.3));
}

.card--letters {
  background: linear-gradient(135deg, #fff5f7 0%, #ffe9f0 100%);
  border: 2px solid #ffb6c1;
  position: relative;
}

.card--letters::before {
  content: "✉️";
  font-size: 4rem;
  opacity: 0.08;
  transform: rotate(-10deg);
}

.card--letters::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom right, transparent 0%, transparent calc(50% - 1px), #ffb6c1 calc(50% - 1px), #ffb6c1 calc(50% + 1px), transparent calc(50% + 1px));
  opacity: 0.15;
}

.card--letters:hover {
  background: linear-gradient(135deg, #ffe9f0 0%, #ffd4e0 100%);
  border-color: #ff69b4;
  box-shadow: 0 8px 30px rgba(255, 105, 180, 0.4);
}

.card--letters h3 {
  color: #c71585;
  font-family: "Brush Script MT", cursive;
}

.card--letters .card-icon {
  filter: drop-shadow(0 4px 8px rgba(199, 21, 133, 0.3));
}

.card--playlist {
  background: linear-gradient(135deg, #2c1654 0%, #3d1f6e 50%, #2c1654 100%);
  border: 3px solid #8b5fbf;
  position: relative;
}

.card--playlist::before {
  content: "🎵";
  font-size: 4rem;
  opacity: 0.1;
}

.card--playlist::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1a1a1a 0%, #1a1a1a 30%, #8b5fbf 30%, #8b5fbf 32%, #1a1a1a 32%);
  opacity: 0.2;
}

.card--playlist:hover {
  background: linear-gradient(135deg, #3d1f6e 0%, #5b3a9d 50%, #3d1f6e 100%);
  border-color: #a47fd5;
  box-shadow: 0 8px 30px rgba(139, 95, 191, 0.5);
}

.card--playlist h3 {
  color: #dda0dd;
  text-shadow: 0 2px 8px rgba(221, 160, 221, 0.5);
}

.card--playlist p {
  color: #e6d5ff;
}

.card--playlist .card-icon {
  filter: drop-shadow(0 4px 12px rgba(221, 160, 221, 0.5));
}

.card--dates {
  background: linear-gradient(135deg, #fff9e6 0%, #ffecb3 100%);
  border: 2px solid #ffd700;
  position: relative;
}

.card--dates::before {
  content: "📆";
  font-size: 4rem;
  opacity: 0.08;
}

.card--dates::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffd700;
  opacity: 0.2;
}

.card--dates:hover {
  background: linear-gradient(135deg, #ffecb3 0%, #ffe082 100%);
  border-color: #ffc107;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

.card--dates h3 {
  color: #f57c00;
}

.card--dates .card-icon {
  filter: drop-shadow(0 4px 8px rgba(245, 124, 0, 0.3));
}

.kawaii-player {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  flex-direction: row;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: transparent;
  overflow: visible;
  width: auto;
  border: none;
  box-shadow: none;
}

.kawaii-player.closed {
  transform: translateX(calc(-100% + 75px));
}

.player-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid #ffb3d9;
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
  padding: 15px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.kawaii-player.closed .player-content {
  opacity: 0;
  pointer-events: none;
}

.player-tab {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff6b9d, #c9a0dc);
  border-radius: 50%;
  border: 3px solid white;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: -25px;
  margin-bottom: 15px;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease;
  animation: musicPulse 2s infinite;
}

.player-tab:hover {
  transform: scale(1.1) rotate(10deg);
}

.player-tab.playing {
  animation: musicRotate 3s linear infinite, musicPulse 2s infinite;
  background: linear-gradient(135deg, #ff1493, #ff69b4);
}

.k-now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
}

.k-album-art {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  background: transparent;
  transition: border-radius 0.5s ease, transform 0.3s ease;
  z-index: 5;
}

.k-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.k-album-art.playing {
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 179, 217, 0.3);
}

.k-album-art.playing img {
  animation: vinylSpin 6s linear infinite;
  border-radius: 50%;
}

.k-track-info {
  flex: 1;
  overflow: hidden;
}

.k-track-title {
  font-weight: 700;
  color: #ff69b4;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.k-track-artist {
  font-size: 0.8rem;
  color: #888;
}

.k-progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #888;
}

.k-progress-bar {
  flex: 1;
  height: 6px;
  background: #ffe5f0;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}

.k-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffb3d9, #ff69b4);
  width: 0%;
  border-radius: 10px;
}

.k-progress-knob {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2px solid #ff69b4;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.k-progress-knob,
.k-volume-knob {
  transition: transform 0.1s;
  pointer-events: none;
}

.k-progress-bar:hover .k-progress-knob {
  opacity: 1;
}

.k-progress-bar,
.k-volume-slider {
  cursor: pointer;
  touch-action: none;
}

.k-progress-bar::before,
.k-volume-slider::before {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 0;
  right: 0;
}

.k-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 5px;
}

.k-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.k-btn:hover {
  transform: scale(1.2);
}

.play-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffb3d9, #ff69b4);
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
}

.k-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}

.k-volume-container {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 50%;
}

.k-volume-slider {
  flex: 1;
  height: 4px;
  background: #ffe5f0;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}

.k-volume-fill {
  height: 100%;
  background: #c9a0dc;
  width: 70%;
  border-radius: 10px;
}

.playlist-toggle {
  font-size: 0.8rem;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 15px;
  color: #666;
  margin-right: 15px;
}

.k-playlist {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.k-playlist.show {
  height: 350px;
}

.k-playlist-header {
  padding: 15px;
  background: linear-gradient(to right, #ffe5f0, #fff0f5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #ff69b4;
  border-bottom: 1px solid #ffb3d9;
}

.k-playlist-tracks {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: #ffb3d9 transparent;
}

.k-track-item {
  padding: 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  gap: 10px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.k-track-item:hover {
  background: #fff5f8;
  padding-left: 15px;
}

.k-track-item.active {
  background: linear-gradient(135deg, #ffb3d9, #ff69b4);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
}

#k-playlist-close {
  background: #ffb3d9;
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

#k-playlist-close:hover {
  background: #ff1493;
  transform: rotate(90deg);
}

.k-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border-left: 5px solid #ff69b4;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateX(200%);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10000;
}

.k-toast.show {
  transform: translateX(0);
}

#lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #ffb3d9 0%, #c9a0dc 50%, #b4e4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 600ms ease, transform 600ms ease;
}

#lock-screen.unlocked {
  opacity: 0;
  transform: scale(1.1);
}

.lock-container {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: lockFloat 3s ease-in-out infinite;
}

.lock-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  animation: lockPulse 2s ease-in-out infinite;
}

.lock-container h2 {
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.lock-container p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.password-group {
  margin-bottom: var(--space-md);
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 1rem;
  text-align: center;
  transition: all var(--transition-base);
  outline: none;
}

.password-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(201, 160, 220, 0.2);
  transform: scale(1.02);
}

.password-input.shake {
  animation: shake 500ms;
}

.emoji-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.2rem;
  z-index: 2;
  max-width: 90%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.animation-emoji {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.animation-emoji.typing {
  opacity: 1;
  animation: bounceIn 0.3s ease;
}

.animation-emoji.deleting {
  opacity: 1;
  animation: rotateIn 0.15s ease;
}

.unlock-btn {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.unlock-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.unlock-btn:active:not(:disabled) {
  transform: translateY(0);
}

.unlock-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-message {
  color: #ff6b9d;
  font-size: 0.9rem;
  margin-top: var(--space-sm);
  display: none;
}

#session-msg {
  display: none;
  font-size: 1.1rem;
  color: var(--color-success);
  font-weight: 600;
}

.scary-warning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  animation: fadeIn 0.3s ease;
}

.warning-container {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d0000 100%);
  padding: 3rem;
  border-radius: 1rem;
  border: 3px solid #ff0000;
  box-shadow: 0 0 50px rgba(255, 0, 0, 0.5), 0 0 100px rgba(255, 0, 0, 0.3);
  text-align: center;
  max-width: 500px;
  width: 90%;
  animation: warningShake 0.5s ease infinite;
  color: #fff;
}

.warning-icon {
  font-size: 5rem;
  animation: warningPulse 1s ease infinite;
}

.warning-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 0, 0, 0.3);
  border-top-color: #ff0000;
  border-radius: 50%;
  margin: 2rem auto 0;
  animation: spin 1s linear infinite;
}

.success-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15000;
  animation: fadeIn 0.5s ease;
}

.success-lock {
  font-size: 10rem;
  animation: successBounce 1s ease;
  filter: drop-shadow(0 0 30px #00ff00);
}

.success-text {
  font-size: 2rem;
  color: #00ff00;
  font-weight: bold;
  margin-top: 1rem;
  animation: slideUp 0.5s ease 0.5s both;
  text-shadow: 0 0 20px #00ff00;
}

.edit-location-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.6;
  transition: all var(--transition-fast);
  padding: 0.25rem;
}

.edit-location-btn:hover {
  opacity: 1;
  transform: scale(1.2);
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), #ff69b4);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "✨";
  position: absolute;
  right: 10px;
  opacity: 0;
  transition: all var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #ff69b4, var(--color-primary), var(--color-secondary));
}

.btn-primary:hover::before {
  opacity: 0.8;
  right: 15px;
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-effect 600ms ease-out;
  pointer-events: none;
}

footer {
  text-align: center;
  padding: var(--space-lg);
  color: var(--color-text);
  font-size: 0.9rem;
}

.footer-heart {
  display: inline-block;
  color: #ff6b9d;
  animation: heartBeat 1.5s ease-in-out infinite;
}

.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes twinkle {
  0% { opacity: 0.1; }
  100% { opacity: 0.4; }
}

@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

@keyframes cloudDrift {
  0% { transform: translateX(-100px); }
  100% { transform: translateX(calc(100vw + 100px)); }
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-30px) scale(1.5); opacity: 0.8; }
}

@keyframes heartBurst {
  0% { transform: scale(0) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.5) rotate(15deg); opacity: 0.8; }
  100% { transform: scale(0.5) translateY(-100px) rotate(-15deg); opacity: 0; }
}

@keyframes float-cloud-left {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5px, -3px); }
}

@keyframes float-cloud-right {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, -3px); }
}

@keyframes kawaii-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes floatCloud {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -5px); }
}

@keyframes floatCloud1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-8px, -5px); }
  50% { transform: translate(-5px, 8px); }
  75% { transform: translate(8px, -3px); }
}

@keyframes floatCloud2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, 5px); }
  50% { transform: translate(5px, -8px); }
  75% { transform: translate(-8px, 5px); }
}

@keyframes floatCloud3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-6px, 8px); }
  50% { transform: translate(10px, -5px); }
  75% { transform: translate(-5px, 5px); }
}

@keyframes floatCloud4 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(8px, -8px); }
  50% { transform: translate(-10px, 5px); }
  75% { transform: translate(5px, 8px); }
}

@keyframes floatCloud5 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-10px, 5px); }
  50% { transform: translate(8px, 8px); }
  75% { transform: translate(-5px, -8px); }
}

@keyframes floatCloud6 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(5px, -5px); }
  50% { transform: translate(-8px, -8px); }
  75% { transform: translate(10px, 5px); }
}

@keyframes floatCloud7 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, -5px); }
  50% { transform: translate(-5px, 8px); }
  75% { transform: translate(-10px, -5px); }
}

@keyframes floatCloud8 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-8px, 8px); }
  50% { transform: translate(10px, -8px); }
  75% { transform: translate(5px, 5px); }
}

@keyframes active-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(255, 105, 180, 0.4), 0 2px 8px rgba(224, 187, 228, 0.3); }
  50% { box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5), 0 3px 12px rgba(224, 187, 228, 0.4); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes emojiBounce {
  0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); }
  25% { transform: translateY(-10px) rotate(5deg) scale(1.05); }
  50% { transform: translateY(0) rotate(-5deg) scale(1); }
  75% { transform: translateY(-5px) rotate(5deg) scale(1.02); }
}

@keyframes emojiSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bounceIn {
  0% { transform: translateX(-50%) scale(0); }
  50% { transform: translateX(-50%) scale(1.2); }
  100% { transform: translateX(-50%) scale(1); }
}

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes heartbeatDraw {
  0% { stroke-dashoffset: 500; }
  25% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: -500; }
  75% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 500; }
}

@keyframes heartbeatGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 105, 180, 0.4)) drop-shadow(0 0 4px rgba(255, 105, 180, 0.2)); }
  50% { filter: drop-shadow(0 0 6px rgba(255, 105, 180, 0.8)) drop-shadow(0 0 12px rgba(255, 105, 180, 0.5)); }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1); }
  75% { transform: scale(1.15); }
}

@keyframes musicPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(255, 107, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0); }
}

@keyframes musicRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes vinylSpin {
  to { transform: rotate(360deg); }
}

@keyframes lockFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes lockPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

@keyframes rotateIn {
  0% { transform: translateX(-50%) rotate(-180deg) scale(0); }
  100% { transform: translateX(-50%) rotate(0deg) scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes warningShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes warningPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.2); filter: brightness(1.5); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes successBounce {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  50% { transform: scale(1.3) rotate(0deg); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes trailFade {
  to { transform: scale(0); opacity: 0; }
}

@keyframes ripple-effect {
  to { transform: scale(4); opacity: 0; }
}

@media (max-width: 768px) {
  nav {
    margin: var(--space-sm) var(--space-sm);
    padding: var(--space-md) var(--space-md);
    border-radius: 50px;
  }

  nav::before {
    left: 10px;
    font-size: 1.4rem;
    top: -12px;
  }

  nav::after {
    right: 10px;
    font-size: 1.4rem;
    top: -12px;
  }

  .nav-container {
    position: relative;
    flex-direction: column;
    text-align: center;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
  }

  .logo {
    font-size: 1.4rem;
    margin-right: 50px;
  }

  .nav-tabs {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    padding-bottom: 0.5rem;
    border-top: 3px solid rgba(255, 179, 217, 0.3);
    justify-content: center;
  }

  .nav-tabs.active {
    display: flex;
  }

  .nav-tab {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    border-radius: 15px;
  }

  .session-manager {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-left: 0;
    padding: 0.5rem;
  }

  .session-countdown {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .extend-summary {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .warning-container {
    padding: 2rem;
    font-size: 0.9rem;
  }

  .warning-icon {
    font-size: 3.5rem;
  }

  .success-lock {
    font-size: 7rem;
  }

  .success-text {
    font-size: 1.5rem;
  }

  .hero {
    padding: var(--space-lg) var(--space-md);
  }

  .ldr-container {
    padding: var(--space-lg);
  }

  .timezone-clocks {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .connection-viz {
    margin: var(--space-md) 0;
    position: relative;
    min-height: 160px;
  }

  .connection-line {
    position: absolute;
    width: 180px;
    height: 30px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    margin: 0;
    z-index: 0;
    overflow: visible;
  }

  .heartbeat-svg {
    width: 100%;
    height: 100%;
    max-width: none;
  }

  .connection-heart,
  .distance-info {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
  }

  .timezone-time {
    font-size: 2.5rem;
  }

  .timezone-emoji {
    font-size: 2rem;
  }

  .timezone-name {
    font-size: 1.5rem;
  }

  .map-container {
    height: 400px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .corner-mascot {
    display: none;
  }
}

@media (max-width: 480px) {
  nav {
    margin: var(--space-xs) var(--space-xs);
    padding: var(--space-sm) var(--space-sm);
    border-radius: 30px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-tabs {
    gap: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .nav-tab {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}