body {
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  background-color: #fffbe7;
  margin: 0;
  padding: 0;
}

.gift-image {
  width: 200px;
  height: auto;
  margin-top: 100px;
  cursor: pointer;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.card {
  margin-top: 50px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  overflow: visible;
  min-height: 300px;
}

.gif {
  width: 200px;
  border-radius: 12px;
  margin-bottom: 20px;
}

#loveMsg {
  font-size: 18px;
  color: #ff4081;
  line-height: 1.5;
  white-space: pre-line;
}

#fromTag {
  display: block !important;
  opacity: 1 !important;
  color: #000000 !important;
  font-size: 1.2em;
  margin-top: 20px;
  text-align: center;
  position: relative;
  z-index: 10;
  transition: opacity 1s ease;
}

/* Style cho loveStage */
#loveStage {
  margin-top: 50px;
  padding: 20px;
  display: none;
  transition: opacity 1s ease; /* Hiệu ứng fade-out */
}

#loveStage.hidden {
  opacity: 0; /* Ẩn mượt mà */
}

#lovePrompt {
  font-size: 20px;
  color: #ff4081;
  margin-bottom: 20px;
}

.love-card {
  display: inline-block;
  padding: 30px 28px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
  max-width: 520px;
  width: 100%;
}

#loveIcons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.love-icon {
  font-size: 44px;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.love-icon.tapped {
  opacity: 0.7;
  transform: scale(1.2);
  animation: sparkle 0.5s ease; /* Hiệu ứng lấp lánh khi chạm */
}

@keyframes sparkle {
  0% { transform: scale(1.2); }
  50% { transform: scale(1.4); text-shadow: 0 0 10px #ff4081, 0 0 20px #ff4081; }
  100% { transform: scale(1.2); }
}

.input-card {
  display: inline-block;
  margin: 80px auto 0;
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.15);
  color: #332839;
  text-align: center;
}

.input-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #d81b60;
  letter-spacing: 0.08em;
}

.input-subtitle {
  margin-bottom: 24px;
  color: #6d4a7e;
  line-height: 1.5;
}

#nameInput {
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(216, 27, 96, 0.18);
  font-size: 1rem;
  margin-bottom: 20px;
  outline: none;
  background: #fbf2ff;
  color: #3c1a36;
}

#nameInput:focus {
  border-color: #d81b60;
  box-shadow: 0 0 0 4px rgba(216, 27, 96, 0.08);
}

.submit-btn {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff5fa2, #d81b60);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(216, 27, 96, 0.24);
}

.submit-btn:active {
  transform: translateY(0);
}

.number-pad {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px);
  padding: 30px 20px 50px;
}

.pad-card {
  width: min(420px, 100%);
  padding: 28px;
  background: rgba(20, 18, 35, 0.95);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.26);
  color: #f7edf8;
  text-align: center;
}

.pad-title {
  font-size: 1.35rem;
  color: #f5a2dc;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.pad-digits {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}

.digit-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
}

.digit-dot.active {
  background: radial-gradient(circle at top left, #ff9ee7, #ff4fbb);
  box-shadow: 0 0 16px rgba(255, 95, 175, 0.4);
  border-color: rgba(255, 255, 255, 0.35);
}

.pad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 14px;
}

.pad-btn {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pad-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.12);
}

.pad-empty {
  background: transparent;
  box-shadow: none;
  cursor: default;
}

.pad-clear {
  background: #ff5fa2;
  border-color: rgba(255, 95, 162, 0.45);
}

.pad-clear:hover {
  background: #ff3b8d;
}

.pad-note {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Style cho buttons */
#buttonContainer {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.response-btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.agree-btn {
  background-color: #4caf50;
  color: white;
}

.agree-btn:hover {
  background-color: #45a049;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.agree-btn:active {
  transform: scale(0.98);
}

.disagree-btn {
  background-color: #f44336;
  color: white;
}

.disagree-btn:hover {
  background-color: #da190b;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.disagree-btn:active {
  transform: scale(0.98);
}