* {
  box-sizing: border-box;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Biarkan form login tetap bisa diketik */
input[type="text"],
input[type="password"] {
  -webkit-user-select: text;
  user-select: text;
}

/* HILANGKAN SCROLLBAR */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden !important;
  height: 100% !important;
  width: 100% !important;
  position: fixed !important;
  top: 0;
  left: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top, #1a1d29 0%, #0d0f14 70%);
  color: #f4f1ea;
}

/* Warna teks tombol SweetAlert jadi hitam */
.swal-button-dark {
  color: #000000 !important;
  font-weight: 600 !important;
}

:root {
  --bg-dark: #0d0f14;
  --bg-card: #181b24;
  --gold: #e8c97f;
  --gold-soft: #f5e3b3;
  --text-light: #f4f1ea;
  --text-muted: #a9adc1;
  --accent: #ff9fb2;
  --border: rgba(232, 201, 127, 0.25);
}

/* ===== LOGIN PAGE ===== */
.login_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.login_container h2 {
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 30px;
  color: var(--gold-soft);
  text-shadow: 0 0 12px rgba(232, 201, 127, 0.25);
}

.login_form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 400px;
  height: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

input[type="text"],
input[type="password"] {
  width: 300px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  margin-bottom: 12px;
  padding-left: 14px;
  background: #11141c;
  color: var(--text-light);
  font-family: inherit;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: var(--text-muted);
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 201, 127, 0.15);
}

button[type="submit"] {
  width: 300px;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #c9a45c);
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 201, 127, 0.35);
}

.login_description {
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0 0;
  padding: 0 10px;
  text-align: center;
}

.login_form input:focus {
  outline: none;
  border-color: #e8c97f;   /* emas */
  box-shadow: 0 0 0 3px rgba(232, 201, 127, 0.2);
  transition: 0.2s;
}

#loginBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== BIRTHDAY PAGE ===== */
.song {
  visibility: hidden;
}

.container {
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  text-align: center;
  visibility: hidden;
  width: 100vw;
  background: radial-gradient(circle at top, #1a1d29 0%, #0d0f14 70%);
}

.container > div {
  left: 0;
  right: 0;
  top: 20vh;
  position: absolute;
}

.one {
  font-size: 4.5rem;
  color: var(--text-light);
}

.one #name {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232, 201, 127, 0.35);
}

.two {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-muted);
}

.three {
  font-size: 3rem;
  color: var(--gold-soft);
}

.four .text-box {
  border: 1px solid var(--border);
  border-radius: 20px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
  width: 600px;
  background: var(--bg-card);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  color: var(--text-light);
}

.text-box p {
  margin: 0;
  text-align: left;
}

.text-box span {
  visibility: hidden;
}

.text-box .fake-btn {
  background-color: #2c2f3a;
  border-radius: 6px;
  bottom: -50px;
  right: 5px;
  position: absolute;
  color: #727786;
  font-weight: 600;
  padding: 0.5rem 1rem;
  margin: 0;
  box-shadow: none;
  cursor: default;
  white-space: nowrap;
  transition: all 0.4s ease-in-out;
}

.text-box .fake-btn.ready {
  color: #1a1a1a;
  cursor: pointer;
  animation: pulseButton 2s infinite ease-in-out;
}

.text-box .fake-btn.clicked {
  animation: none;
  transform: scale(0.93);
  opacity: 0;
}

@keyframes pulseButton {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 18px rgba(232, 201, 127, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(232, 201, 127, 0.6), 0 0 10px rgba(232, 201, 127, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 18px rgba(232, 201, 127, 0.3);
  }
}

.five p {
  font-size: 2rem;
  position: absolute;
  left: 0;
  right: 0;
  color: var(--text-light);
}

.idea-3 strong {
  border-radius: 4px;
  display: inline-block;
  padding: 3px 8px;
}

.five .idea-5 {
  font-size: 4rem;
  color: var(--gold-soft);
}

.idea-5 span,
.idea-6 span,
.wish-hbd span {
  display: inline-block;
}

/* ===== PERBAIKAN IDEA-6 (SELAMAT) DI TENGAH & BESAR ===== */
.idea-6 {
  text-align: center !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
}

.idea-6 span {
  font-size: 5rem !important;
  font-weight: bold;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(232, 201, 127, 0.4);
  display: inline-block;
  letter-spacing: 8px;
}

/* ===== PERBAIKAN FOTO & TOPI ===== */
.six {
  position: relative;
  top: 8vh;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.six img.profile-picture {
  display: block;
  width: 280px;
  height: 280px;
  max-width: 80%;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border);
  margin: 0 auto;
}

/* TOPI - DEKAT DENGAN FOTO */
.six .hat {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%) !important;
  width: 70px;
  height: auto;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  z-index: 10;
  pointer-events: none;
}

/* Hilangkan stroke dari SVG topi */
.six .hat svg,
.six .hat svg *,
.six .hat path,
.six .hat circle {
  stroke: none !important;
  stroke-width: 0 !important;
}

/* ===== PERBAIKAN TEKS WISH - TIDAK TERPOTONG ===== */
.wish {
  width: 100%;
  max-width: 550px;
  margin: 15px auto 0;
  padding: 10px;
  text-align: center;
  overflow: visible !important;
}

.wish-hbd {
  font-size: 2rem;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(232, 201, 127, 0.35);
}

.wish h5 {
  font-size: 1rem !important;
  font-weight: 300;
  line-height: 1.4 !important;
  margin: 8px 0 0 !important;
  color: var(--text-light);
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  overflow: visible !important;
  padding: 0 10px !important;
  display: block !important;
  height: auto !important;
}

/* BALON */
.ballons img {
  display: inline-block;
  position: absolute;
}

.ballons img:nth-child(even) {
  left: -10%;
}

.ballons img:nth-child(odd) {
  right: -10%;
}

.ballons img:nth-child(3n + 0) {
  left: 30%;
}

.seven .eight {
  height: 100vh;
  position: fixed;
  top: 0;
  width: 100vw;
}

.eight svg {
  left: 0;
  position: absolute;
  top: 0;
  visibility: hidden;
  width: 25px;
  z-index: -1;
}

.eight svg:nth-child(1) { fill: #e8c97f; left: 5vw; top: 7vh; }
.eight svg:nth-child(2) { fill: #ff9fb2; left: 35vw; top: 23vh; }
.eight svg:nth-child(3) { fill: #8c7ae6; left: 23vw; top: 33vh; }
.eight svg:nth-child(4) { fill: #6fa8dc; left: 57vw; top: 43vh; }
.eight svg:nth-child(5) { fill: #f0b27a; left: 7vw; top: 68vh; }
.eight svg:nth-child(6) { fill: #e8c97f; left: 77vw; top: 42vh; }
.eight svg:nth-child(7) { fill: #ff9fb2; left: 83vw; top: 68vh; }
.eight svg:nth-child(8) { fill: #8c7ae6; left: 37vw; top: 86vh; }
.eight svg:nth-child(9) { fill: #6fa8dc; left: 87vw; top: 94vh; }

.nine p {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-muted);
}

.nine .last-smile {
  color: var(--gold-soft);
}

#replay {
  cursor: pointer;
  z-index: 3;
  color: var(--gold);
  text-decoration: underline;
}

#replay:hover {
  color: var(--gold-soft);
}

.swal-dark {
  border: 1px solid var(--border);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

/* Animasi */
@keyframes floatGlow {
  0%, 100% { transform: translateY(0); text-shadow: 0 0 12px rgba(232,201,127,0.25); }
  50% { transform: translateY(-4px); text-shadow: 0 0 20px rgba(232,201,127,0.45); }
}

.login_container h2 {
  animation: floatGlow 4s ease-in-out infinite;
}

.login_form {
  animation: fadeUp 0.8s ease both;
}

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

.container::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(232,201,127,0.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,159,178,0.06), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ===== RESPONSIF HP ===== */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 10px;
  }

  .four .text-box {
    width: 90%;
  }

  .text-box .fake-btn {
    bottom: -50px;
    right: 5px;
  }

  .idea-5 span {
    display: block;
  }

  .idea-6 span {
    font-size: 3rem !important;
    letter-spacing: 4px;
  }

  .six .hat {
    width: 50px;
    top: -30px;
  }

  .wish-hbd {
    font-size: 1.8rem;
  }

  .wish h5 {
    font-size: 0.85rem !important;
  }

  .nine p {
    font-size: 1.5rem;
  }
  
  .six img.profile-picture {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 480px) {
  .wish h5 {
    font-size: 0.75rem !important;
  }
  
  .idea-6 span {
    font-size: 2rem !important;
    letter-spacing: 2px;
  }
  
  .six .hat {
    width: 40px;
    top: -25px;
  }
  
  .six img.profile-picture {
    width: 180px;
    height: 180px;
  }
  
  .wish-hbd {
    font-size: 1.4rem;
  }
}