@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Raleway:wght@300;400;600&family=Space+Grotesk:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  height: 100%;
  width: 100%;
  color: #fff;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29, #1c1354, #24243e);
  color: #f8f9fa;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

.space-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.stars {
  background: #000 url('https://i.imgur.com/YKY28eT.png') repeat top center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.twinkling {
  background: transparent url('https://i.imgur.com/XYMF4ca.png') repeat top center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  animation: move-twinkle 200s linear infinite;
  opacity: 0.5;
}

.nebula {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(76, 0, 255, 0.15) 0%, rgba(76, 0, 255, 0) 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 183, 255, 0.15) 0%, rgba(0, 183, 255, 0) 60%),
    radial-gradient(circle at 50% 50%, rgba(198, 0, 255, 0.08) 0%, rgba(198, 0, 255, 0) 70%);
  opacity: 0.6;
  z-index: -2;
  filter: blur(8px);
}

.shooting-star {
  position: absolute;
  top: 50px;
  left: -100px;
  width: 100px;
  height: 2px;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
  animation: shooting 8s linear infinite;
  animation-delay: 2s;
  transform: rotate(20deg);
  z-index: -1;
  box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.5);
}

.shooting-star:nth-child(2) {
  top: 30%;
  left: 30%;
  width: 80px;
  animation-delay: 5s;
  animation-duration: 10s;
  transform: rotate(45deg);
}

.shooting-star:nth-child(3) {
  top: 70%;
  left: 70%;
  width: 120px;
  animation-delay: 7s;
  animation-duration: 7s;
  transform: rotate(-30deg);
}

.planet-1 {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #a670c8, #4b2064);
  box-shadow: 0 0 30px 2px rgba(166, 112, 200, 0.4),
              inset 5px -5px 15px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
  transition: all 0.5s;
}

.planet-1::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 20px;
  background: rgba(166, 112, 200, 0.2);
  left: -20%;
  top: 50%;
  transform: translateY(-50%) rotate(20deg);
  border-radius: 50%;
  filter: blur(5px);
}

.planet-2 {
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #70a6c8, #204b64);
  box-shadow: 0 0 30px 2px rgba(112, 166, 200, 0.4),
              inset 5px -5px 15px rgba(0, 0, 0, 0.4);
  opacity: 0.8;
  transition: all 0.5s;
}

.planet-2::before {
  content: "";
  position: absolute;
  width: 160%;
  height: 10px;
  background: rgba(112, 166, 200, 0.2);
  left: -30%;
  top: 60%;
  transform: rotate(-15deg);
  border-radius: 50%;
  filter: blur(5px);
}

.container {
  max-width: 850px;
  margin: 0 auto;
  padding: 50px 25px;
  position: relative;
  z-index: 1;
}

h1 {
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.4;
  position: relative;
}

h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #6e48aa, #9d50bb);
  margin: 15px auto 0;
  border-radius: 2px;
}

.cosmic-title {
  font-size: 3.5rem;
  background: linear-gradient(to right, 
    #24c6ff 0%, 
    #833aff 30%, 
    #fc59e3 50%, 
    #6e48aa 70%, 
    #24c6ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  position: relative;
  text-shadow: 
    0 0 10px rgba(161, 210, 255, 0.2),
    0 0 30px rgba(161, 210, 255, 0.1);
  animation: shimmerText 8s linear infinite;
  letter-spacing: 4px;
  transform: perspective(500px) translateZ(0);
}

.cosmic-title::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, 
    transparent 0%,
    rgba(255, 255, 255, 0.5) 10%,
    rgba(255, 255, 255, 0.7) 20%,
    transparent 30%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cosmicFlare 6s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

.cosmic-title::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: calc(100% + 40px);
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.8) 0.5px, transparent 1px),
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.8) 0.5px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.8) 0.5px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.8) 0.5px, transparent 1px);
  background-size: 100px 100px;
  opacity: 0.5;
  z-index: -1;
  filter: blur(1px);
  animation: starsFloat 100s linear infinite;
  pointer-events: none;
}

.cosmic-subtitle {
  font-size: 1.8rem;
  display: block;
  background: linear-gradient(to right, #b3e5fc, #dff3ff, #b3e5fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 5px;
  letter-spacing: 2px;
  position: relative;
  text-shadow: 0 0 15px rgba(179, 229, 252, 0.7);
  animation: pulseLight 4s infinite alternate;
}

.cosmic-subtitle::before,
.cosmic-subtitle::after {
  content: "✧";
  position: relative;
  display: inline-block;
  margin: 0 10px;
  font-size: 1.2rem;
  top: -3px;
  opacity: 0.8;
  color: #dff3ff;
  text-shadow: 0 0 10px rgba(179, 229, 252, 0.9);
  -webkit-text-fill-color: initial;
  animation: twinkling 3s infinite alternate;
}

@keyframes cosmicFlare {
  0% {
    background-position: -100% 0;
    opacity: 0.5;
  }
  100% {
    background-position: 200% 0;
    opacity: 0.8;
  }
}

@keyframes pulseLight {
  0% {
    text-shadow: 0 0 15px rgba(179, 229, 252, 0.7);
  }
  100% {
    text-shadow: 0 0 25px rgba(179, 229, 252, 0.9), 0 0 40px rgba(161, 210, 255, 0.6);
  }
}

@keyframes twinkling {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.form-container {
  background: linear-gradient(135deg, rgba(13, 12, 34, 0.8), rgba(25, 18, 99, 0.8), rgba(43, 12, 93, 0.8));
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
              0 0 60px rgba(98, 0, 234, 0.3),
              inset 0 0 20px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.form-container:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 
              0 0 80px rgba(98, 0, 234, 0.4),
              inset 0 0 25px rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.form-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 20%, rgba(131, 58, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(36, 210, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(255, 91, 227, 0.12) 0%, transparent 50%);
  opacity: 0.8;
  transform: rotate(0deg);
  pointer-events: none;
  animation: galaxyRotate 120s linear infinite;
}

.form-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 10%, transparent 0%, transparent 8%, rgba(255, 255, 255, 0.03) 8.5%, transparent 9%),
    radial-gradient(circle at 15% 25%, transparent 0%, transparent 3%, rgba(255, 255, 255, 0.03) 3.5%, transparent 4%),
    radial-gradient(circle at 30% 50%, transparent 0%, transparent 4%, rgba(255, 255, 255, 0.03) 4.5%, transparent 5%),
    radial-gradient(circle at 80% 15%, transparent 0%, transparent 5%, rgba(255, 255, 255, 0.03) 5.5%, transparent 6%),
    radial-gradient(circle at 95% 40%, transparent 0%, transparent 3%, rgba(255, 255, 255, 0.03) 3.5%, transparent 4%),
    radial-gradient(circle at 60% 80%, transparent 0%, transparent 4%, rgba(255, 255, 255, 0.03) 4.5%, transparent 5%);
  pointer-events: none;
  animation: twinkleStars 10s ease infinite;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

input, textarea {
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(131, 58, 255, 0.3);
  background: rgba(13, 12, 34, 0.6);
  color: white;
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 
              0 0 10px rgba(131, 58, 255, 0.1);
  background-image: linear-gradient(to bottom, rgba(43, 12, 93, 0.3), rgba(13, 12, 34, 0.6));
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(131, 58, 255, 0.7);
  box-shadow: 0 0 20px rgba(131, 58, 255, 0.4), 
              inset 0 2px 5px rgba(0, 0, 0, 0.1);
  background: rgba(28, 29, 55, 0.7);
  transform: translateY(-2px);
}

textarea {
  min-height: 140px;
  resize: vertical;
  background-image: 
    linear-gradient(to bottom, rgba(43, 12, 93, 0.3), rgba(13, 12, 34, 0.6)),
    radial-gradient(circle at 95% 5%, rgba(131, 58, 255, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 5% 95%, rgba(36, 210, 255, 0.1) 0%, transparent 30%);
}

button[type="submit"] {
  padding: 16px 25px;
  background: linear-gradient(45deg, #3a6eff, #833aff, #9429ff);
  background-size: 300% auto;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.5s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(58, 110, 255, 0.3),
              0 0 30px rgba(131, 58, 255, 0.2);
  animation: galaxyShimmer 8s infinite alternate;
}

button[type="submit"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s;
  z-index: -1;
}

button[type="submit"]:hover {
  background-position: right center;
  transform: translateY(-5px);
  box-shadow: 0 7px 25px rgba(131, 58, 255, 0.5),
              0 0 40px rgba(131, 58, 255, 0.3);
  letter-spacing: 1px;
}

button[type="submit"]:hover::before {
  left: 100%;
}

button[type="submit"]::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: 
    radial-gradient(circle at 10% 10%, transparent 0%, transparent 90%, rgba(255, 255, 255, 0.05) 100%),
    radial-gradient(circle at 90% 90%, transparent 0%, transparent 90%, rgba(255, 255, 255, 0.05) 100%),
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 96%, rgba(255, 255, 255, 0.05) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}

button[type="submit"]:hover::after {
  opacity: 1;
}

@keyframes galaxyRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes twinkleStars {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes galaxyShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.cooldown-container {
  margin: 10px 0;
  position: relative;
  width: 100%;
  display: block; 
}

.cooldown-timer {
  margin: 0; 
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(16, 23, 41, 0.9), rgba(43, 22, 99, 0.9), rgba(16, 23, 41, 0.9));
  background-size: 300% 300%;
  animation: galaxyShift 15s infinite alternate, pulse 5s infinite;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(98, 0, 234, 0.3), 
              inset 0 0 15px rgba(161, 210, 255, 0.15);
  border: 1px solid rgba(138, 171, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateZ(0);
}

.form-container .cooldown-timer {
  border: 1px solid rgba(255, 91, 227, 0.25);
  box-shadow: 0 0 30px rgba(255, 91, 227, 0.2), 
              inset 0 0 15px rgba(255, 161, 210, 0.1);
}

.form-container .cooldown-timer::after {
  content: '⌛'; 
  right: 15px;
}

.wish-cooldown-active button[type="submit"] {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(45deg, #6e48aa, #833aff, #6e48aa);
  pointer-events: none;
  transform: translateY(0) !important;
  box-shadow: 0 4px 15px rgba(58, 110, 255, 0.2) !important;
}

.cooldown-notice {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 161, 210, 0.9);
  margin-bottom: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(255, 91, 227, 0.5);
  animation: fadeInOut 2s infinite alternate;
}

.wishes-container {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  min-height: 200px;
  position: relative;
}

.wish-card {
  background: rgba(13, 12, 34, 0.7);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.wish-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(122, 157, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}

.wish-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #3a6eff, #6e48aa);
}

.wish-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(122, 157, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.wish-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #a9c2ff;
  letter-spacing: 0.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wish-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.wish-card .delete-wish {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s;
  z-index: 10;
}

.wish-card .delete-wish:hover {
  color: #ff3a6e;
  transform: scale(1.1) rotate(10deg);
}

.wish-card .wish-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.wish-card .wish-date {
  font-style: italic;
  position: relative;
  padding-left: 25px;
}

.wish-card .wish-date::before {
  content: '🕒';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9rem;
  margin-right: 8px;
}

.wish-card .wish-location {
  display: flex;
  align-items: center;
}

.wish-card .wish-location::before {
  content: '📍';
  margin-right: 5px;
  font-size: 0.9rem;
}

.wish-card .wish-content {
  flex-grow: 1;
  margin: 12px 0;
  overflow-wrap: break-word;
  word-break: break-word;
  position: relative;
  z-index: 1;
}

.no-wishes-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px;
  background: rgba(13, 12, 34, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.no-wishes-message h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #a9c2ff;
}

.wishes-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.wishes-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.wishes-filter select {
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(13, 12, 34, 0.8);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 180px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 15px) center;
  padding-right: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wishes-filter select:focus {
  outline: none;
  border-color: #7a9dff;
  box-shadow: 0 0 15px rgba(122, 157, 255, 0.3);
}

.wishes-stats {
  padding: 15px 25px;
  background: linear-gradient(45deg, rgba(13, 12, 34, 0.8), rgba(48, 27, 89, 0.8), rgba(25, 41, 96, 0.8));
  background-size: 200% 200%;
  animation: galaxyShift 8s infinite alternate;
  border-radius: 30px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 
              inset 0 0 10px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(138, 171, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.wishes-stats::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.3;
  animation: starsFloat 80s linear infinite;
  pointer-events: none;
}

.counter-icon {
  font-size: 1.4rem;
  animation: twinkle 2s infinite alternate;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 
               0 0 30px rgba(161, 210, 255, 0.7);
}

#wishesCount {
  font-weight: bold;
  background: linear-gradient(to right, #e2f3ff, #a9c2ff, #7a9dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.6rem;
  position: relative;
  padding: 0 8px;
  display: inline-block;
}

#wishesCount::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, rgba(161, 210, 255, 0.3) 0%, rgba(161, 210, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulseGlow 3s infinite alternate;
}

#wishesCount::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #a9c2ff, transparent);
  animation: shimmer 2s infinite;
}

.counter-label {
  font-style: italic;
  font-size: 0.9rem;
  text-shadow: 0 0 5px rgba(161, 210, 255, 0.5);
  letter-spacing: 0.5px;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 15px 0;
}

.page-button {
  background: rgba(13, 12, 34, 0.7);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.page-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.6s;
  z-index: -1;
}

.page-button:hover:not(:disabled)::before {
  left: 100%;
}

.page-button:hover:not(:disabled) {
  background: rgba(58, 110, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.page-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#pageIndicator {
  background: rgba(13, 12, 34, 0.7);
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 110px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.cooldown-timer {
  margin: 0; 
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(16, 23, 41, 0.9), rgba(43, 22, 99, 0.9), rgba(16, 23, 41, 0.9));
  background-size: 300% 300%;
  animation: galaxyShift 15s infinite alternate, pulse 5s infinite;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(98, 0, 234, 0.3), 
              inset 0 0 15px rgba(161, 210, 255, 0.15);
  border: 1px solid rgba(138, 171, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateZ(0);
}

.cooldown-timer::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(131, 58, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 20px 20px;
  opacity: 0.3;
  animation: starsFloat 120s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.cooldown-timer::after {
  content: '⌛'; 
  position: absolute;
  font-size: 1.3rem;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  animation: pulseTime 3s infinite alternate;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
  z-index: 2;
  opacity: 0.85;
}

.cooldown-timer span {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 15px rgba(138, 171, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.5px;
  display: inline-block;
  padding: 0 5px;
  margin: 0 auto;
}

.cooldown-timer span::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 10px);
  background: linear-gradient(90deg, transparent, rgba(131, 58, 255, 0.15), transparent);
  border-radius: 10px;
  z-index: -1;
}

.cooldown-progress {
  height: 8px;
  width: 100%;
  background: rgba(13, 12, 34, 0.6);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.cooldown-bar {
  height: 100%;
  background: linear-gradient(90deg, #4b36d1, #9429ff, #24c6ff);
  background-size: 200% 100%;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(138, 171, 255, 0.8);
  animation: cooldownProgress var(--duration, 600s) linear forwards, 
             galaxyShimmer 3s infinite alternate;
  position: relative;
  overflow: hidden;
}

.cooldown-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  animation: progressGlow 2s infinite linear;
  transform: translateX(-100%);
}

.cooldown-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(255, 255, 255, 0.7),
    0 0 30px rgba(255, 255, 255, 0.5);
  opacity: 0.7;
}

.cooldown-constellation {
  position: absolute;
  top: 50%;
  left: 15%;
  width: 70%;
  height: 100%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.15;
  pointer-events: none;
}

.cooldown-constellation::before, 
.cooldown-constellation::after {
  content: '✦';
  position: absolute;
  font-size: 1rem;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: twinkle 3s infinite alternate;
}

.cooldown-constellation::before {
  top: 20%;
  left: 30%;
  animation-delay: 0.5s;
}

.cooldown-constellation::after {
  bottom: 30%;
  right: 20%;
  animation-delay: 1.5s;
}

@keyframes progressGlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pulseTime {
  0% { 
    transform: translateY(-50%) scale(1);
    opacity: 0.7; 
  }
  100% { 
    transform: translateY(-50%) scale(1.15);
    opacity: 1; 
  }
}

@keyframes galaxyShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Enhanced animations */
@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes galaxyShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

@keyframes starsFloat {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0% {
    opacity: 0.3;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    opacity: 0.3;
    transform: translateX(-10px);
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.3;
    transform: translateX(10px);
  }
}

.wish-particle-container {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.wish-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(161,210,255,0.8) 50%, rgba(105,155,255,0) 100%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.wish-trail {
  position: absolute;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.8), rgba(161,210,255,0.3));
  border-radius: 50%;
  opacity: 0;
  transform-origin: top center;
  pointer-events: none;
}

.wish-text {
  position: absolute;
  color: white;
  font-size: 14px;
  text-shadow: 0 0 10px rgba(255,255,255,0.7);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  font-family: 'Montserrat', sans-serif;
  z-index: 1001;
}

.starburst {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  box-shadow: 
    0 0 20px 10px rgba(255, 255, 255, 0.7),
    0 0 40px 20px rgba(179, 217, 255, 0.5),
    0 0 60px 30px rgba(161, 210, 255, 0.3);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.3);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120vh) scale(0.1);
    opacity: 0;
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
  }
}

@keyframes trailFollow {
  0% {
    transform: translateY(20px) scaleY(0.5);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(0) scaleY(1);
    opacity: 0;
  }
}

@keyframes wishText {
  0% {
    transform: translateY(0);
    opacity: 0;
    filter: blur(4px);
  }
  10% {
    opacity: 1;
    filter: blur(0);
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-50vh);
    opacity: 0;
    filter: blur(5px);
  }
}

@keyframes starburst {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  40% {
    transform: scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.wish-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(16, 23, 41, 0.9);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(80, 128, 255, 0.5);
  transform: translateX(200%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  border-left: 4px solid #5080ff;
}

.wish-notification.show {
  transform: translateX(0);
}

.wishes-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.wishes-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.wishes-filter select {
  padding: 10px 15px;
  border-radius: 8px;
  background: rgba(16, 23, 41, 0.8);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 150px;
}

.wishes-filter select:focus {
  outline: none;
  border-color: #5080ff;
  box-shadow: 0 0 10px rgba(80, 128, 255, 0.5);
}

.wishes-stats {
  padding: 12px 20px;
  background: linear-gradient(45deg, rgba(16, 23, 41, 0.8), rgba(37, 61, 106, 0.8));
  border-radius: 30px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(80, 128, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.wishes-stats:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(80, 128, 255, 0.5);
}

.counter-icon {
  font-size: 1.2rem;
  animation: twinkle 1.5s infinite alternate;
}

#wishesCount {
  font-weight: bold;
  color: #a9c2ff;
  font-size: 1.4rem;
  text-shadow: 0 0 10px rgba(169, 194, 255, 0.7);
  position: relative;
  padding: 0 5px;
}

#wishesCount::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #a9c2ff, transparent);
}

.counter-label {
  font-style: italic;
}

@keyframes twinkle {
  0% {
    opacity: 0.7;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 20px rgba(161, 210, 255, 0.6);
  }
}

#wishesCount {
  font-weight: bold;
  color: white;
  font-size: 1.1rem;
}

.danger-button {
  background: linear-gradient(45deg, #ff3a6e, #ff5080);
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  padding: 15px 0;
}

.page-button {
  background: rgba(16, 23, 41, 0.8);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: normal;
  font-size: 0.9rem;
}

.page-button:hover:not(:disabled) {
  background: rgba(80, 128, 255, 0.3);
  transform: translateY(-2px);
}

.page-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#pageIndicator {
  background: rgba(16, 23, 41, 0.8);
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 80px;
  text-align: center;
}

.loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 100%;
}

.loading-star {
  font-size: 24px;
  animation: rotate 2s infinite linear;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  form {
    padding: 1.5rem;
  }

  .cosmic-title {
    font-size: 2.2rem;
  }
  
  .cosmic-subtitle {
    font-size: 1.4rem;
  }
  
  .wishes-container {
    grid-template-columns: 1fr;
  }
  
  .planet-1, .planet-2 {
    width: 60px;
    height: 60px;
  }

  .wishes-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .wishes-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .wishes-filter select,
  .danger-button {
    width: 100%;
  }
}

.wish-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  transition: all 0.5s ease;
}

.wish-confirmation {
  display: none; 
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
  animation: fadeIn 1s ease forwards;
}

form.wish-sent .wish-inputs {
  display: none;
}

form.wish-sent .wish-confirmation {
  display: flex;
}

.star-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.star-gif {
  max-width: 150px;
  margin: 0 auto 20px;
  animation: floatStar 4s ease-in-out infinite alternate;
}

.star-gif.fallback {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 30% 30%, #fffd9b, #ffa62b);
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.star-gif.fallback::before {
  content: "★";
  font-size: 60px;
  color: white;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  animation: twinkle 2s infinite alternate;
}

.star-gif.fallback::after {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulseStar 2s infinite alternate;
}

@keyframes pulseStar {
  from { transform: scale(0.9); opacity: 0.5; }
  to { transform: scale(1.1); opacity: 1; }
}

.wish-success-message {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  text-shadow: 0 0 10px rgba(131, 58, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #b3e5fc, #dff3ff, #b3e5fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 5s linear infinite;
}


@keyframes floatStar {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
  }
  50% {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 0 25px rgba(131, 58, 255, 0.7));
  }
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer styles */
.cosmic-footer {
  background: linear-gradient(135deg, rgba(13, 12, 34, 0.9), rgba(25, 18, 99, 0.9), rgba(13, 12, 34, 0.9));
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  margin-top: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.cosmic-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(131, 58, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(36, 210, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(255, 91, 227, 0.12) 0%, transparent 50%);
  opacity: 0.6;
  transform: rotate(0deg);
  pointer-events: none;
  animation: galaxyRotate 180s linear infinite;
  z-index: 0;
}

.footer-content {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.footer-link {
  color: #a9c2ff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(16, 23, 41, 0.6);
  border-radius: 30px;
  border: 1px solid rgba(138, 171, 255, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  transition: 0.6s;
  z-index: -1;
}

.footer-link:hover {
  transform: translateY(-5px);
  background: rgba(58, 110, 255, 0.2);
  color: #dff3ff;
  border-color: rgba(138, 171, 255, 0.4);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(122, 157, 255, 0.4);
}

.footer-link:hover::before {
  left: 100%;
}

.footer-icon {
  font-size: 1.4rem;
  animation: twinkle 2s infinite alternate;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-link:hover .footer-icon {
  transform: scale(1.2) rotate(10deg);
}

.footer-text {
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
  background: linear-gradient(to right, #b3e5fc, #dff3ff, #b3e5fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 5px rgba(179, 229, 252, 0.3);
  animation: shimmerText 8s linear infinite;
  display: inline-block;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .footer-link {
    width: 100%;
    justify-content: center;
  }
}

.footer-icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 5px rgba(138, 171, 255, 0.7));
  transition: all 0.4s ease;
}

.footer-icon .mail-icon {
  stroke: #a9c2ff;
  stroke-width: 2px;
  fill: none;
}

.footer-icon .github-icon {
  fill: #a9c2ff;
}

.footer-link:hover .footer-icon svg {
  filter: drop-shadow(0 0 8px rgba(161, 210, 255, 0.9));
  transform: scale(1.2) rotate(5deg);
}

.footer-link:hover .mail-icon {
  stroke: #dff3ff;
}

.footer-link:hover .github-icon {
  fill: #dff3ff;
}
