:root {
  --pink: #F472B6;
  --pink-light: #FBCFE8;
  --pink-soft: #FDF2F8;
  --lilac: #C084FC;
  --text-dark: #4B2563;
  --text-mid: #9D6BB5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF5FB 0%, #F0F7FF 60%, #FFF0FB 100%);
}

.bg-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  animation: scrollUp 22s linear infinite;
}

@keyframes scrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.bg-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 18px 0;
}

.bg-row.offset { transform: translateX(70px); }

.ic {
  display: inline-block;
  width: 36px;
  height: 36px;
  opacity: 0.13;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex-shrink: 0;
}

.ic.gift {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='9' width='18' height='13' rx='2'/%3E%3Cpath d='M3 9h18M12 9V22M12 9c0-2.5-3-4-3-4s1 3 3 4zm0 0c0-2.5 3-4 3-4s-1 3-3 4z'/%3E%3Cpath d='M9 5a3 3 0 0 0 3 4 3 3 0 0 0 3-4'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='9' width='18' height='13' rx='2'/%3E%3Cpath d='M3 9h18M12 9V22M12 9c0-2.5-3-4-3-4s1 3 3 4zm0 0c0-2.5 3-4 3-4s-1 3-3 4z'/%3E%3Cpath d='M9 5a3 3 0 0 0 3 4 3 3 0 0 0 3-4'/%3E%3C/svg%3E") no-repeat center / contain;
  background-color: #93C5FD;
}

.ic.star {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") no-repeat center / contain;
  background-color: #C4B5FD;
}

.ic.heart {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") no-repeat center / contain;
  background-color: #F9A8D4;
}

.ic.balloon {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='9' rx='7' ry='9'/%3E%3Cpath d='M12 18 L12 22'/%3E%3Cpath d='M10 22 Q12 20 14 22'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='9' rx='7' ry='9'/%3E%3Cpath d='M12 18 L12 22'/%3E%3Cpath d='M10 22 Q12 20 14 22'/%3E%3C/svg%3E") no-repeat center / contain;
  background-color: #6EE7B7;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 60px;
}

.top-nav {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.top-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
}

.top-logo .kado {
  background: linear-gradient(135deg, #F9A8D4, #F472B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.top-logo .kita {
  background: linear-gradient(135deg, #C084FC, #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header {
  text-align: center;
  margin-bottom: 36px;
  animation: fadeUp 0.7s cubic-bezier(.22,1,.36,1) both;
}

.page-header .icon-wrap {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #FDE8F6, #FBCFE8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.page-header .icon-wrap svg {
  width: 34px; height: 34px;
  stroke: #EC4899; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.page-header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  background: linear-gradient(135deg, #F472B6, #C084FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.page-header p { font-size: 0.92rem; color: var(--text-mid); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.content-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(244,114,182,0.18);
  border-radius: 28px;
  padding: 40px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 8px 40px rgba(244,114,182,0.1);
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: fadeUp 0.7s 0.15s cubic-bezier(.22,1,.36,1) both;
}

@media (max-width: 600px) {
  .content-card { padding: 28px 20px; }
}

.terms-intro {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  background: rgba(253,242,248,0.7);
  border-left: 3px solid var(--pink);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
}

.terms-intro strong { color: var(--text-dark); font-weight: 700; }

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.term-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 16px;
  background: rgba(253,242,248,0.4);
  border: 1px solid rgba(244,114,182,0.1);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}

.term-item:hover {
  background: rgba(253,242,248,0.85);
  border-color: rgba(244,114,182,0.25);
  transform: translateX(5px);
}

.term-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(135deg, #F9A8D4, #F472B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 28px;
  padding-top: 1px;
}

.term-text h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.term-text p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.terms-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(244,114,182,0.12);
}

.terms-footer span {
  font-size: 0.88rem;
  color: var(--text-mid);
}

.btn-home {
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  background: linear-gradient(135deg, #F9A8D4, #F472B6 50%, #C084FC);
  background-size: 200% auto;
  text-decoration: none;
  transition: background-position 0.4s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(244,114,182,0.3);
}

.btn-home:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,114,182,0.4);
}

.btn-home:active { transform: scale(0.97); }

.term-number { display: none; }

.term-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, #FDE8F6, #FBCFE8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.term-icon svg {
  width: 18px;
  height: 18px;
  stroke: #EC4899;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}